/* divvalor.com: potes vistos de cima e etiquetas de fita. */
@font-face { font-family: "Yeseva One"; src: url("/assets/fontes/yeseva-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Ysabeau; src: url("/assets/fontes/ysabeau.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Ysabeau; src: url("/assets/fontes/ysabeau-italico.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --folha: #2F6B45;
  --folha-escura: #234F34;
  --abobora: #E8863A;
  --beterraba: #8E2F5B;
  --arroz: #F4EEDC;
  --fundo: #FBF9F3;
  --texto: #2A2723;
  --suave: #5C554B;
  --linha: #E3D9BF;
  --fita: #EFDFAE;
  --titulo: "Yeseva One", Georgia, serif;
  --corpo: Ysabeau, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: var(--corpo); font-size: 1.16rem; line-height: 1.6; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; line-height: 1.2; margin: 1.8em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin-top: .4em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p, ul, ol, table, figure { margin: 0 0 1em; }
a { color: var(--beterraba); text-underline-offset: .18em; }
a:hover { color: var(--folha-escura); }
:focus-visible { outline: 3px solid #1D4E89; outline-offset: 3px; }
[hidden] { display: none !important; }

.largura { width: min(1180px, 100% - 2.2rem); margin-inline: auto; }
.largura-texto { width: min(720px, 100% - 2.2rem); margin-inline: auto; }
.sem-margem { margin-inline: 0; width: min(720px, 100%); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; }
.pular { position: absolute; left: .8rem; top: -4rem; background: var(--texto); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 20; }
.pular:focus { top: .8rem; color: #fff; }
.bloco { padding-block: 1rem 2.5rem; }
.chamada { font-size: 1.3rem; color: var(--suave); max-width: 40ch; }
.nota { font-size: 1rem; color: var(--suave); }

/* topo */
.topo { border-bottom: 2px solid var(--linha); background: var(--fundo); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .8rem; }
.marca { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--titulo); font-size: 1.4rem; color: var(--texto); text-decoration: none; }
.menu ul { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: .35rem 0; color: var(--texto); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--abobora); }

/* botões e campos */
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
.botao, .app button:where(:not(.item, .alimento, .comp-fundo, .exemplo, .fita)), .menu-botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px;
  padding: .45rem 1.05rem; border: 2px solid var(--folha); border-radius: 999px; background: var(--fundo); color: var(--folha-escura);
  font-weight: 700; line-height: 1.2; text-decoration: none;
}
.menu-botao { display: none; }
.botao, .app button.botao { background: var(--folha); color: #fff; }
.botao:hover, .app button.botao:hover { background: var(--folha-escura); color: #fff; }
.botao.secundario, .app button.botao.secundario { background: transparent; color: var(--folha-escura); }
.botao.secundario:hover, .app button.botao.secundario:hover { background: var(--arroz); color: var(--folha-escura); }
button:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
input[type="text"], input[type="email"], input[type="search"], input[type="date"], input:not([type]), select, textarea {
  min-height: 44px; padding: .45rem .7rem; border: 2px solid #8C8271; border-radius: 10px; background: #fff; max-width: 100%;
}
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--folha); vertical-align: -.15rem; }

/* fita de etiqueta */
.fita {
  display: inline-block; background: var(--fita); color: var(--texto); padding: .18rem 1rem; font-family: var(--titulo); font-weight: 400;
  transform: rotate(-1.2deg); text-decoration: none; line-height: 1.5; border: 0;
  clip-path: polygon(0 8%, 5px 0, calc(100% - 3px) 3%, 100% 22%, calc(100% - 5px) 42%, 100% 64%, calc(100% - 3px) 100%, 4px 95%, 0 76%, 5px 55%, 0 34%);
}
a.fita:hover { color: var(--texto); background: #E6D08C; }

/* potes */
.pote { display: grid; gap: 7px; padding: 10px; aspect-ratio: 4 / 3; width: 100%; background: var(--folha); border-radius: 28px; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .18), 0 8px 0 rgb(42 39 35 / .12); }
.pote.gelado { background: #2B6C8E; }
.pote-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.pote-2 { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); grid-template-rows: minmax(0, 1fr); }
.pote-3 { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.pote-3 .comp:first-child { grid-row: span 2; }
.comp { position: relative; min-width: 0; min-height: 0; border-radius: 17px; background: var(--arroz); box-shadow: inset 0 4px 10px rgb(42 39 35 / .18); container-type: size; }
.previa .comp { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.previa .comp img { width: 88cqmin; height: auto; }
.previa .comp-itens-2 img { width: 62cqmin; }
.previa .comp-itens-3 img { width: 50cqmin; }

/* abertura */
.abertura { background: var(--arroz); padding-block: 1.5rem 2.5rem; }
.abertura-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.abertura h1 { max-width: 13ch; }
.previa { min-width: 0; }
.previa-titulo { font-size: 1.15rem; margin: 0 0 .6rem; }
.previa .comp img { flex: 0 1 auto; min-width: 0; }
.previa-dias { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; visibility: hidden; }
.previa.ativa .previa-dias { visibility: visible; }
.previa-dias button { min-height: 44px; font-size: 1.05rem; }
.previa-dias button[aria-pressed="true"] { background: var(--beterraba); color: #fff; }
.previa-painel .pote { max-width: 520px; }
.previa-texto { margin-top: 1.1rem; }

.usos { display: grid; gap: 1.6rem; list-style: none; padding: 0; }
.usos li { border-top: 6px solid var(--folha); padding-top: .2rem; }
.usos li:nth-child(2) { border-top-color: var(--abobora); }
.usos li:nth-child(3) { border-top-color: var(--beterraba); }
.usos h3 { margin-top: .6em; }

.faixa { background: var(--arroz); }
.assuntos { list-style: none; padding: 0; margin: 0; }
.assuntos li { display: flex; gap: 1.4rem; align-items: center; padding: 1.1rem 0; border-top: 2px dashed #CBBD97; }
.assuntos h3 { margin: 0; }
.assuntos p { margin: 0; max-width: 62ch; }
.assuntos a { color: var(--texto); text-decoration-color: var(--cor); text-decoration-thickness: 3px; }
.assunto-desenho { display: inline-flex; flex: none; }
.assunto-desenho img { margin-right: -14px; }
.transparencia p { max-width: 70ch; }

/* cartões de artigo */
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 2rem 1.4rem; list-style: none; padding: 0; }
.cartao img { display: block; width: 100%; border-radius: 18px; margin-bottom: .6rem; }
.cartao-titulo { font-family: var(--titulo); font-size: 1.15rem; line-height: 1.3; margin: 0 0 .3rem; }
.cartao-titulo a { color: var(--texto); text-decoration-color: var(--abobora); }
.cartao p:not(.cartao-titulo) { font-size: 1.04rem; color: var(--suave); margin: 0; }

/* explorador e categoria */
.explorador { background: var(--arroz); border-radius: 20px; padding: 1.1rem 1.2rem .4rem; margin-bottom: 1.5rem; }
.explorador > label { display: block; font-weight: 700; }
.explorador input[type="search"] { width: min(460px, 100%); }
.explorador fieldset { border: 0; padding: 0; margin: .8rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.explorador legend { font-weight: 700; padding: 0; margin-bottom: .3rem; }
.grupo h2 a { color: var(--texto); text-decoration-color: var(--abobora); }
.topo-categoria { border-bottom: 8px solid var(--cor); margin-bottom: 1.5rem; padding-bottom: .8rem; }
.topo-categoria .assunto-desenho img { margin-right: -18px; }
.outros-assuntos ul { display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; padding: 0; }

/* trilha */
.trilha ol { display: flex; flex-wrap: wrap; gap: .2rem .6rem; list-style: none; padding: 0; margin: .9rem 0 0; font-size: 1rem; color: var(--suave); }
.trilha li + li::before { content: "/"; margin-right: .6rem; color: #A79C86; }

/* texto corrido */
.texto li { margin-bottom: .4em; }
.assinatura { font-size: 1rem; color: var(--suave); }
.capa img { display: block; width: 100%; border-radius: 22px; }
.capa figcaption { font-size: .95rem; color: var(--suave); margin-top: .35rem; }
.tabela { overflow-x: auto; margin-bottom: 1.2em; }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: 1.05rem; }
caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--linha); }
thead th { background: var(--folha); color: #fff; }
tbody th { font-weight: 700; }
.dicas { position: relative; background: var(--arroz); border-radius: 20px; padding: 1.4rem 1.3rem .6rem; margin: 2.2rem 0; }
.dicas::before { content: ""; position: absolute; top: -11px; left: 28px; width: 92px; height: 24px; background: var(--fita); transform: rotate(-3deg); }
.dicas h2 { margin-top: 0; }
.dicas ul { padding-left: 1.2rem; }
.dicas li::marker { color: var(--beterraba); }
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li { position: relative; padding-left: 1.9rem; }
ul.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1rem; height: 1rem; border: 2px solid var(--folha); border-radius: 4px; }
.receita { border: 3px dashed var(--abobora); border-radius: 20px; padding: .4rem 1.3rem; margin-bottom: 1.4em; }
.receita h3 { margin-top: .8em; }
.titulo-bloco { font-family: var(--titulo); font-size: 1.35rem; margin-bottom: .5rem; }
.fontes { border-top: 6px solid var(--linha); padding-top: 1rem; margin-top: 2.5rem; font-size: 1.04rem; }
.fontes li { margin-bottom: .5em; }
.convite { background: var(--arroz); border-radius: 20px; padding: 1.1rem 1.3rem .2rem; margin-block: 2rem; }
.relacionados { padding-bottom: 2.5rem; }
.relacionados .cartoes { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.erro { padding-block: 2rem 4rem; }

/* contato */
.formulario label { display: block; font-weight: 700; margin-bottom: .2rem; }
.formulario input, .formulario textarea { width: 100%; }
.formulario [aria-invalid="true"] { border-color: #A3231F; }
.erro-campo { display: block; color: #A3231F; font-weight: 700; font-size: 1rem; }
.aviso { border-radius: 14px; padding: .9rem 1.1rem .1rem; margin-bottom: 1.2rem; }
.aviso-certo { background: #E4F0E6; border: 2px solid var(--folha); }
.aviso-erro { background: #FBE9E7; border: 2px solid #A3231F; }
.nao-preencher { position: absolute; left: -9999px; }

/* rodapé */
.rodape { background: var(--folha-escura); color: #F6F1E2; padding-block: 2.2rem 1.2rem; margin-top: 2rem; font-size: 1.04rem; }
.rodape a { color: #fff; }
.rodape a:hover { color: #FFD9B8; }
.rodape :focus-visible { outline-color: #FFD9B8; }
.rodape ul { list-style: none; padding: 0; }
.rodape li { margin-bottom: .25rem; }
.rodape-grade { display: grid; gap: 1.6rem; }
.rodape-marca, .rodape-titulo { font-family: var(--titulo); font-size: 1.2rem; margin-bottom: .4rem; }
.rodape-fim { border-top: 1px solid rgb(255 255 255 / .25); padding-top: 1rem; margin-bottom: 0; }

@media (min-width: 640px) {
  .rodape-grade { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .usos { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .abertura-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
@media (max-width: 639px) {
  body { font-size: 1.1rem; }
  .com-js .menu-botao { display: inline-flex; }
  .com-js .menu { display: none; width: 100%; }
  .com-js .menu.aberto { display: block; }
  .com-js .menu ul { flex-direction: column; }
  .assuntos li { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topo, .rodape, .trilha, .pular { display: none !important; }
}
