/* Receitas Caminho do Mar
   Visual do mockup aprovado em 25/09/2026 (mesmo visual do Instagram da marca).
   Amarelo só no botão de pedido e nos selos do Seu Vino. */

:root {
  --navy: #001953;
  --navy-deep: #000D33;
  --navy-card: #07296B;
  --line: rgba(92, 195, 247, 0.38);
  --line-soft: rgba(184, 212, 232, 0.14);
  --sky: #5CC3F7;
  --silver: #B8D4E8;
  --silver-2: #7AA8C4;
  --text: #FFFFFF;
  --muted: #A9BCD8;
  --yellow: #FFD600;
  --orange: #E8871E;
  --ink: #001953;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --col: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(92, 195, 247, 0.20), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(0, 60, 140, 0.35), transparent 60%),
    var(--navy-deep);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hl { color: var(--sky); }
svg.sprite { position: absolute; }
.ico { flex: none; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px;
  padding: 12px 16px; border-radius: 12px; transition: top .2s;
}
.pular:focus { top: 12px; }

/* ---------- aviso de sem conexão ---------- */
.aviso-offline {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--orange); color: #1A0E00;
  font-size: 13px; font-weight: 700; padding: 10px 16px; text-align: center;
}
.aviso-offline[hidden] { display: none; }
.aviso-botao {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  border: 2px solid #1A0E00; border-radius: 999px; padding: 5px 12px;
}

/* ---------- aviso de instalar ---------- */
.aviso-instalar {
  position: sticky; top: 0; z-index: 19;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  background: var(--navy-card); border-bottom: 1.5px solid var(--line);
  padding: 12px 16px; text-align: left;
}
.aviso-instalar[hidden] { display: none; }
.aviso-instalar p { font-size: 12.5px; line-height: 1.4; color: #D6E2F2; }
.aviso-instalar strong { color: var(--text); }
.aviso-instalar-acoes { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.aviso-instalar-btn {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 8px 16px;
}
.aviso-instalar-fechar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; line-height: 1; color: var(--muted);
}

/* ---------- coluna ---------- */
.app {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  background:
    repeating-radial-gradient(circle at 115% -5%, transparent 0 34px, rgba(92, 195, 247, .06) 34px 36px),
    var(--navy);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

/* ---------- marca ---------- */
.logo-full {
  display: block; width: 120px; aspect-ratio: 340 / 285;
  background: url("/assets/logo-cdm.png") no-repeat;
  background-size: 183.5% auto; background-position: 49.3% 59.8%;
  margin: 0 auto;
}
.logo-mark {
  display: inline-block; width: 26px; aspect-ratio: 178 / 160;
  background: url("/assets/logo-cdm.png") no-repeat;
  background-size: 350.6% auto; background-position: 49.8% 38.9%;
  flex: none;
}
.app-top { padding: 22px 20px 0; text-align: center; }

.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--silver);
}

/* ---------- início ---------- */
.hero-home { position: relative; padding: 10px 20px 0; min-height: 330px; }
.hero-home .copy { position: relative; z-index: 2; width: 56%; padding-top: 22px; }
.hero-home h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 38px; line-height: .98; margin: 10px 0 14px; letter-spacing: .01em;
}
.hero-home .chamada { color: #D6E2F2; font-size: 12.5px; line-height: 1.55; }
.vino-hero { position: absolute; right: -44px; bottom: -6px; width: 212px; z-index: 1; }
.vino-hero::before {
  content: ""; position: absolute; inset: 8% -10% 12% 0;
  background: radial-gradient(circle, rgba(255, 236, 190, .55) 0%, rgba(92, 195, 247, .28) 38%, transparent 68%);
  filter: blur(6px); z-index: -1;
}
.vino-hero img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.bubble {
  position: absolute; z-index: 3; right: 14px; top: 6px;
  background: var(--yellow); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5);
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-4px); } }

/* ---------- busca e filtros ---------- */
.busca-form { position: relative; z-index: 3; }
.search {
  display: flex; align-items: center; gap: 10px; margin: 0 20px;
  background: rgba(7, 41, 107, .92); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 13px 16px; backdrop-filter: blur(6px);
}
.search input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--text);
  font: inherit; font-size: 16px; outline: none;
}
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--sky); }

.chips { display: flex; gap: 8px; padding: 16px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-soft); font-size: 12.5px; font-weight: 600;
  color: var(--muted); transition: background-color .2s, color .2s, border-color .2s;
}
.chip[aria-pressed="true"] { background: var(--sky); color: var(--ink); border-color: var(--sky); }

/* ---------- lista de peixes ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px 8px; }
.fish-card {
  background: var(--navy-card); border: 1.5px solid var(--line); border-radius: 22px;
  overflow: hidden; display: block; transition: transform .25s ease, border-color .25s;
}
.fish-card:hover { transform: translateY(-3px); border-color: var(--sky); }
.fish-card .ph { height: 116px; }
.fish-card .body { padding: 11px 14px 14px; }
.fish-card h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 21px; letter-spacing: .01em; line-height: 1.05;
}
.fish-card .cuts { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.fish-card .count { margin-top: 10px; }
.fish-card .count .todo { letter-spacing: .06em; white-space: nowrap; font-size: 8.5px; }
.fish-card .cont { font-size: 11.5px; font-weight: 700; color: var(--sky); }
.fish-card[hidden] { display: none; }

/* ---------- arte no lugar da foto ---------- */
.ph {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 25% 15%, var(--ph-a, #2a64a8) 0%, #0b2f6e 45%, #041a4a 100%);
}
.ph::after {
  content: ""; position: absolute; inset: auto -10% -30% -10%; height: 70%;
  background: repeating-radial-gradient(ellipse at 50% 120%, transparent 0 14px, rgba(184, 212, 232, .10) 14px 15px);
}
.ph.tem-foto { background: #041a4a; }
.ph.tem-foto::after { display: none; }
.ph.tem-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph svg.art {
  width: 46%; max-width: 150px; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}
.ph .tag-photo {
  position: absolute; z-index: 2; left: 10px; bottom: 10px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--silver); background: rgba(0, 13, 51, .55);
  border: 1px solid var(--line-soft); padding: 4px 8px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ph .tag-photo:empty { display: none; }

.todo {
  display: inline-block; font-family: var(--sans); font-size: 9px; font-weight: 800;
  letter-spacing: .16em; color: var(--orange); border: 1px solid var(--orange);
  border-radius: 999px; padding: 3px 8px; vertical-align: middle; text-transform: uppercase;
}
.skel {
  height: 9px; border-radius: 6px; margin-top: 9px;
  background: linear-gradient(90deg, rgba(184, 212, 232, .14), rgba(184, 212, 232, .28), rgba(184, 212, 232, .14));
  background-size: 200% 100%; animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- estados vazios ---------- */
.vazio {
  margin: 8px 20px; padding: 22px 18px; text-align: center;
  background: var(--navy-card); border: 1.5px dashed var(--line);
  border-radius: 20px;
}
.vazio p { font-size: 13.5px; color: #D6E2F2; line-height: 1.55; }
.vazio[hidden] { display: none; }
.vazio-receitas { margin: 0; }
.btn-linha {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid var(--sky); color: var(--sky);
  font-size: 13px; font-weight: 700;
}

/* ---------- dica do Seu Vino ---------- */
.tip {
  position: relative; margin: 44px 20px 8px;
  background: linear-gradient(135deg, #0B3380, #07296B);
  border: 1.5px solid var(--line); border-radius: 22px;
  padding: 18px; overflow: visible;
}
.tip .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 10px 10px 10px 3px;
}
.tip .tip-titulo {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 22px; line-height: 1.02; margin: 10px 0 8px;
}
.tip p { font-size: 12px; color: #D6E2F2; line-height: 1.5; }
.tip .mini-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 11.5px; font-weight: 700;
  border-bottom: 2px solid var(--yellow); padding-bottom: 2px;
}

/* ---------- rodapé ---------- */
.rodape {
  display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 20px 36px; margin-top: 18px;
  border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted);
}
.rodape span, .rodape a { display: inline-flex; align-items: center; gap: 7px; }
.rodape b { color: var(--text); font-weight: 700; }

/* ---------- topo de peixe e receita ---------- */
.hero-img { position: relative; height: 340px; }
.hero-img .ph { position: absolute; inset: 0; }
.hero-img::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 25, 83, .45) 0%, transparent 30%, transparent 45%, var(--navy) 100%);
}
.hero-img .ph .tag-photo { bottom: auto; top: 76px; left: 20px; }
.hero-receita { height: 320px; }
.top-actions {
  position: absolute; top: 18px; left: 16px; right: 16px; z-index: 3;
  display: flex; justify-content: space-between;
}
.round-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 13, 51, .55); border: 1px solid var(--line-soft); backdrop-filter: blur(8px);
}
.hero-title { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3; }
.hero-title h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(42px, 15vw, 64px); line-height: .95; margin: 6px 0 12px;
}
.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; background: rgba(92, 195, 247, .14);
  border: 1.5px solid var(--line); margin: 0 6px 6px 0;
}

/* ---------- seções ---------- */
.sec { padding: 22px 20px 4px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 24px; letter-spacing: .01em;
}
.sec .hint { font-size: 11px; color: var(--muted); text-align: right; }
.note-box {
  background: var(--navy-card); border: 1.5px dashed rgba(232, 135, 30, .6);
  border-radius: 18px; padding: 16px;
}
.note-box.preenchido { border-style: solid; border-color: var(--line); }
.note-box p { font-size: 13.5px; line-height: 1.6; color: #D6E2F2; }
.note-box p.cap { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.cuts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cut-tile {
  background: var(--navy-card); border: 1.5px solid var(--line);
  border-radius: 18px; padding: 14px;
}
.cut-tile svg { color: var(--sky); }
.cut-tile strong { display: block; font-size: 14px; margin: 8px 0 6px; }
.cut-tile small { font-size: 10.5px; color: var(--muted); }

/* ---------- lista de receitas ---------- */
.recipe-list { display: flex; flex-direction: column; gap: 10px; }
.recipe-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center;
  background: var(--navy-card); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 8px 14px 8px 8px; transition: border-color .2s;
}
.recipe-row:hover { border-color: var(--sky); }
.recipe-row .ph { width: 88px; height: 88px; border-radius: 14px; }
.recipe-row .ph svg.art { width: 58%; }
.recipe-row .ph::after { display: none; }
.recipe-row h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 17px; letter-spacing: .02em;
}
.recipe-row .sub { font-size: 11.5px; color: var(--muted); margin: 2px 0 7px; }
.recipe-row .sub:empty { margin: 0 0 4px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--silver); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- botão de pedido ---------- */
.sticky-cta {
  position: sticky; bottom: 0; z-index: 6; display: flex; gap: 10px;
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--navy) 35%);
}
.btn-order {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px;
  border-radius: 18px; padding: 16px 18px; text-align: center;
  box-shadow: 0 12px 30px -10px rgba(255, 214, 0, .55); transition: transform .15s;
}
.btn-order:active { transform: scale(.98); }
.btn-ghost {
  width: 54px; flex: none; border-radius: 18px; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--navy-card);
}

.compartilhar-acoes { flex: none; width: 100px; display: flex; flex-direction: column; gap: 4px; }
.compartilhar-acoes .btn-ghost { width: 100%; min-height: 54px; padding: 8px 4px; gap: 4px; font-size: 12px; }
.btn-copiar-alternativo { min-height: 44px; color: var(--text); text-decoration: underline; font-size: 12px; }
.btn-copiar-alternativo[hidden] { display: none; }

/* ---------- receita ---------- */
.recipe-head { padding: 4px 20px 0; margin-top: -8px; position: relative; z-index: 3; }
.recipe-head h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 9vw, 38px); line-height: 1; margin: 8px 0 12px;
}
.byline { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.byline b { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 20px 4px; }
.fact {
  background: var(--navy-card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 12px 10px; text-align: center;
}
.fact svg { color: var(--sky); }
.fact b { display: block; font-size: 15px; margin-top: 6px; }
.fact small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; margin: 20px 20px 0;
  background: var(--navy-card); border-radius: 16px; padding: 4px; border: 1.5px solid var(--line);
}
.tab {
  padding: 11px; border-radius: 12px; font-size: 13px; font-weight: 700;
  color: var(--muted); transition: background-color .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--sky); color: var(--ink); }
.panel { padding: 16px 20px 4px; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: -3px; }
.progress { font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.progress b { color: var(--yellow); }
.ing {
  display: flex; align-items: center; gap: 12px; padding: 13px 4px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13.5px;
}
.ing input {
  appearance: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--silver-2); flex: none; display: grid; place-items: center;
  transition: background-color .2s, border-color .2s; cursor: pointer;
}
.ing input:checked { background: var(--yellow); border-color: var(--yellow); }
.ing input:checked::after {
  content: ""; width: 6px; height: 11px; border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.ing input:checked + span { color: var(--muted); text-decoration: line-through; }
.ing .qty { margin-left: auto; padding-left: 10px; font-size: 11.5px; color: var(--muted); text-align: right; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; }
.step .n { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--sky); }
.step p { font-size: 13.5px; line-height: 1.6; color: #D6E2F2; }
.step .step-ph { margin-top: 10px; height: 160px; border-radius: 14px; }
.step .step-ph svg.art { width: 30%; }

/* ---------- crédito da receita ---------- */
.credito { margin: 18px 20px 0; font-size: 11.5px; font-style: normal; color: var(--muted); text-align: center; }

/* ---------- página de erro ---------- */
.erro { padding: 48px 20px 24px; text-align: center; }
.erro h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 40px; line-height: 1; margin: 10px 0 14px;
}
.erro .chamada { color: #D6E2F2; font-size: 13.5px; line-height: 1.6; }
.erro-acoes { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.erro-acoes .btn-order { width: 100%; }

/* ---------- avisos flutuantes ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 40; background: var(--navy-card); color: var(--text);
  border: 1.5px solid var(--sky); border-radius: 999px;
  font-size: 13px; font-weight: 600; padding: 11px 18px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
}

/* ---------- telas maiores ---------- */
@media (min-width: 900px) {
  :root { --col: 720px; }
  .app { border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
  .app-top { padding-top: 32px; }
  .logo-full { width: 150px; }
  .hero-home { min-height: 380px; padding-inline: 32px; }
  .hero-home .copy { width: 60%; }
  .hero-home h1 { font-size: 52px; }
  .hero-home .chamada { font-size: 14px; }
  .vino-hero { width: 270px; right: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .fish-card .ph { height: 140px; }
  .sec, .chips, .facts, .panel { padding-inline: 32px; }
  .search, .tabs, .tip, .vazio { margin-inline: 32px; }
  .aviso-instalar { flex-direction: row; align-items: center; justify-content: center; padding-inline: 32px; }
  .aviso-instalar-acoes { flex: none; }
  .hero-img { height: 400px; }
  .recipe-head { padding-inline: 32px; }
  .sticky-cta { padding-inline: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Categoria e origem das orientações pesquisadas. */
.fish-card .categoria { font-size: 11px; color: var(--sky); margin-top: 5px; }
.tip .tip-origem { font-size: 11px; margin-top: 10px; }

.chips[aria-label="Filtrar por categoria"] { flex-wrap: wrap; overflow-x: visible; }

/* Notas de estimativa e variação culinária, sem alterar a identidade visual. */
.tempo-nota, .ingredientes-nota { margin: 12px 20px; color: var(--silver); font-size: 12px; line-height: 1.6; }
@media (min-width: 700px) { .tempo-nota, .ingredientes-nota { margin-inline: 32px; } }


/* Encaixe autorizado na continuação do Dia 6: fotografia inteira, sem distorção. */
.ph.tem-foto img { position: absolute; inset: 0; object-fit: contain; }
.hero-img.hero-com-foto { height: auto; padding-top: 60px; }
.hero-com-foto .ph { position: relative; inset: auto; height: clamp(240px, 55vw, 360px); }
.hero-com-foto .hero-title { position: relative; inset: auto; padding: 18px 20px; color: var(--text); }
.hero-com-foto .hero-title .kicker { color: var(--silver); }
.hero-com-foto .hero-title .pill { color: var(--text); border-color: var(--line); }
.hero-com-foto::after { display: none; }


/* Alternância aprovada em 05/11: somente as cores existentes e a linha de escolha. */
.tema-escolha {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 6px 16px; border-bottom: 1px solid var(--line-soft);
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.tema-escolha button {
  min-width: 64px; min-height: 44px; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: 999px; color: var(--text);
}
.tema-escolha button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--ink); }
html[data-tema="branco"] {
  --navy-deep: #FFFFFF;
  --navy-card: #FFFFFF;
  --line: #7A8CA3;
  --line-soft: #B3C0D0;
  --sky: #005B8F;
  --silver: #365878;
  --silver-2: #58758F;
  --text: #001953;
  --muted: #42566F;
}
html[data-tema="branco"] body, html[data-tema="branco"] .app,
html[data-tema="branco"] .search, html[data-tema="branco"] .tip { background: #FFFFFF; }
html[data-tema="branco"] .aviso-instalar p, html[data-tema="branco"] .hero-home .chamada,
html[data-tema="branco"] .vazio p, html[data-tema="branco"] .tip p,
html[data-tema="branco"] .note-box p, html[data-tema="branco"] .step p,
html[data-tema="branco"] .erro .chamada { color: #243B59; }
html[data-tema="branco"] .chip[aria-pressed="true"],
html[data-tema="branco"] .tab[aria-selected="true"],
html[data-tema="branco"] .tema-escolha button[aria-pressed="true"] { color: #FFFFFF; }
html[data-tema="branco"] .hero-title, html[data-tema="branco"] .round-btn { color: #FFFFFF; }
html[data-tema="branco"] .hero-title .hl { color: #5CC3F7; }
html[data-tema="branco"] .hero-title .kicker, html[data-tema="branco"] .ph .tag-photo { color: #B8D4E8; }
html[data-tema="branco"] .hero-title .pill { color: #FFFFFF; border-color: #B8D4E8; }
html[data-tema="branco"] .progress b { color: #001953; }
html[data-tema="branco"] .sticky-cta { background: linear-gradient(180deg, transparent, #FFFFFF 35%); }
html[data-tema="branco"] .hero-com-foto .hero-title { color: var(--text); }
html[data-tema="branco"] .hero-com-foto .hero-title .kicker { color: var(--silver); }
html[data-tema="branco"] .hero-com-foto .hero-title .pill { color: var(--text); border-color: var(--line); }
html[data-tema="branco"] :focus-visible { outline-color: #005B8F; }


/* Refinamento solicitado em 05/11: regras restritas ao tema branco. */
html[data-tema="branco"] {
  --navy-deep: #EDF4FA;
  --navy-card: #F8FCFF;
  --line: #7890AA;
  --line-soft: #CBDBE9;
}
html[data-tema="branco"] body {
  background: radial-gradient(ellipse at 15% 0, #DCECF8, transparent 65%), #EDF4FA;
}
html[data-tema="branco"] .app {
  background: repeating-radial-gradient(circle at 115% -5%, transparent 0 34px, rgba(50, 115, 160, .045) 34px 36px), #F4F9FD;
  box-shadow: 0 0 48px rgba(25, 62, 105, .07);
}
html[data-tema="branco"] .tema-escolha {
  background: linear-gradient(110deg, #E6F1FA, #F8FCFF);
}
html[data-tema="branco"] .app-top {
  position: relative; z-index: 2;
  background: linear-gradient(135deg, #EDF6FC, #DDEDF8);
}
html[data-tema="branco"] .logo-full {
  background-color: #001953; border-radius: 16px;
  box-shadow: 0 0 0 7px #001953, 0 9px 25px rgba(0, 25, 83, .17);
}
html[data-tema="branco"] .hero-home {
  background: repeating-linear-gradient(145deg, transparent 0 48px, rgba(45, 111, 157, .045) 48px 49px), radial-gradient(ellipse at 86% 55%, #BEDFF3, transparent 65%), linear-gradient(135deg, #EDF6FC, #DDEDF8);
  box-shadow: inset 0 -1px #CBDEED;
}
html[data-tema="branco"] .vino-hero::before {
  background: radial-gradient(ellipse, rgba(132, 192, 229, .55), rgba(189, 223, 244, .3) 48%, transparent 72%);
  filter: none;
}
html[data-tema="branco"] .bubble { box-shadow: 0 5px 15px rgba(83, 112, 134, .16); }
html[data-tema="branco"] .busca-form,
html[data-tema="branco"] .chips { background: #EAF3FA; }
html[data-tema="branco"] .search {
  background: #FBFDFF; box-shadow: 0 4px 14px rgba(25, 62, 105, .06); backdrop-filter: none;
}
html[data-tema="branco"] .chips[aria-label="Filtrar por corte"] { box-shadow: inset 0 -1px #D5E3EE; }
html[data-tema="branco"] .chip:not([aria-pressed="true"]) { background: #F8FCFF; border-color: #AEC4D7; }
html[data-tema="branco"] .grid { background: linear-gradient(180deg, #EAF3FA, #F4F9FD 260px); }
html[data-tema="branco"] .fish-card,
html[data-tema="branco"] .recipe-row,
html[data-tema="branco"] .cut-tile,
html[data-tema="branco"] .note-box,
html[data-tema="branco"] .fact {
  background: linear-gradient(145deg, #FFFFFF, #EDF5FC);
  border-color: #A8BFD3;
  box-shadow: 0 5px 14px rgba(25, 62, 105, .065);
}
html[data-tema="branco"] .fish-card:hover,
html[data-tema="branco"] .recipe-row:hover { border-color: #005B8F; }
html[data-tema="branco"] .hero-com-foto { background: #E4F0F8; }
html[data-tema="branco"] .hero-com-foto .hero-title,
html[data-tema="branco"] .recipe-head { background: linear-gradient(120deg, #E7F2FA, #F6FAFD); }
html[data-tema="branco"] .sec { background: rgba(233, 243, 250, .45); box-shadow: inset 0 1px rgba(144, 178, 204, .22); }
html[data-tema="branco"] .sec:nth-of-type(even) { background: rgba(221, 236, 247, .55); }
html[data-tema="branco"] .tabs { background: #E1EEF8; border-color: #ABC2D7; }
html[data-tema="branco"] .panel { background: rgba(248, 252, 255, .8); }
html[data-tema="branco"] .tip {
  background: repeating-linear-gradient(145deg, transparent 0 48px, rgba(45, 111, 157, .035) 48px 49px), linear-gradient(120deg, #E0EFF9, #F8FCFF);
  border-color: #9EBAD1; box-shadow: 0 6px 18px rgba(25, 62, 105, .07);
}
html[data-tema="branco"] .rodape { background: #E4EFF7; border-color: #B8CEDF; }
html[data-tema="branco"] .sticky-cta { background: linear-gradient(180deg, transparent, #E8F2FA 35%); }

/* Presença dos banners originais: personagem ancorado à base, sem definir a altura do texto. */
.tip-com-avatar {
  padding-right: 170px; min-height: 164px;
}
.tip-conteudo { min-width: 0; }
.tip-avatar {
  position: absolute; display: block; right: -2px; bottom: -1px;
  width: 180px; height: auto; max-width: none; object-fit: contain;
  border-bottom-right-radius: 20px; pointer-events: none;
}
.tip-celular { padding-right: 190px; }
.tip-celular .tip-avatar { width: 190px; right: -4px; }
.tip-acolhimento { padding-right: 158px; }
.tip-acolhimento .tip-avatar { width: 180px; right: -16px; }
.tip-com-avatar::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 180px; height: 180px;
  background: radial-gradient(circle at 60% 55%, rgba(255, 236, 190, .13), transparent 65%);
  pointer-events: none; z-index: 0;
}
.facts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
@media (max-width: 379px) {
  .tip-com-avatar .badge { font-size: 9px; white-space: nowrap; }
  .tip-com-avatar { padding-right: 138px; }
  .tip-avatar { width: 150px; }
  .tip-celular { padding-right: 142px; }
  .tip-celular .tip-avatar { width: 142px; }
  .tip-acolhimento .tip-avatar { width: 148px; }
}
@media (min-width: 520px) {
  .tip-com-avatar { padding-right: 204px; min-height: 150px; }
  .tip-avatar { width: 218px; }
  .tip-celular { padding-right: 238px; }
  .tip-celular .tip-avatar { width: 230px; }
  .tip-acolhimento .tip-avatar { width: 200px; right: -14px; }
}

/* Seletor limitado às fichas com fotos específicas de cada corte. */
.cortes-foto { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cortes-foto[hidden] { display: none; }
.corte-foto { min-height: 44px; min-width: 64px; padding: 10px 16px; }
.foto-corte-atual { color: var(--silver); font-size: 12px; line-height: 1.6; margin: 8px 0 0; min-height: 20px; }

/* Fonte do experimento local, incorporada ao CSS da cópia ampliada. Nada muda abaixo de 640px. */
@media (min-width: 640px) {
  :root { --col: 880px; }
  .app { width: calc(100% - 48px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .fish-card .ph { height: 150px; }
  .hero-home { min-height: 360px; padding-inline: 28px; }
  .hero-home .copy { width: 57%; max-width: 540px; padding-top: 28px; }
  .hero-home h1 { font-size: 48px; max-width: 14ch; }
  .hero-home .chamada { font-size: 14px; max-width: 40ch; }
  .vino-hero { width: 270px; right: 8px; }
  .bubble { right: 220px; top: 20px; }
}

@media (min-width: 1024px) {
  :root { --col: 1160px; }
  .app { width: calc(100% - 64px); }
  .app-top { text-align: left; padding: 24px 48px 0; }
  .app-top .logo-full { margin: 0; width: 140px; }
  /* Deixa visível o cabelo que ultrapassa o topo do banner no desktop claro. */
  html[data-tema="branco"] .vino-hero { z-index: 3; }
  .hero-home { min-height: 410px; padding: 8px 48px 0; }
  .hero-home .copy { width: 58%; max-width: 600px; padding-top: 28px; }
  .hero-home h1 { font-size: 64px; line-height: 1.02; max-width: 15ch; }
  .hero-home .chamada { font-size: 16px; line-height: 1.65; max-width: 44ch; }
  .vino-hero { width: 330px; right: 64px; bottom: -6px; }
  .bubble { right: 364px; top: 36px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 22px 32px 8px; }
  .fish-card .ph { height: 180px; }
  .fish-card .body { padding: 16px; }
  .fish-card h2 { font-size: 22px; }
  .fish-card .cuts, .fish-card .categoria, .fish-card .cont { font-size: 12px; }
  .search { padding-block: 15px; }
  .tip { max-width: 960px; margin-inline: auto; width: calc(100% - 64px); }
  .tip .tip-titulo { font-size: 26px; }
  .tip p { font-size: 14px; }
  .tip .tip-origem { font-size: 12px; }
  .tip .mini-btn { font-size: 13px; }

  /* Pescados: foto limitada à mesma escala; informação aproveita duas colunas. */
  .pagina-peixe .app { max-width: 1040px; }
  .pagina-peixe main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pagina-peixe main > .hero-img,
  .pagina-peixe main > .tip,
  .pagina-peixe main > .sec:last-of-type { grid-column: 1 / -1; }
  .pagina-peixe main > .sec:first-of-type:has(+ .sec:last-of-type) { grid-column: 1 / -1; }
  .hero-img.hero-com-foto { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; column-gap: 32px; padding: 72px 32px 12px; }
  .hero-com-foto .ph { height: 320px; border-radius: 20px; }
  .hero-com-foto .hero-title { padding: 20px 0; background: none; }
  html[data-tema="branco"] .hero-com-foto .hero-title { background: none; }
  .hero-com-foto .hero-title h1 { font-size: 56px; }
  .pagina-peixe .note-box p { font-size: 14px; line-height: 1.65; }
  .pagina-peixe .recipe-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pagina-peixe .recipe-row { grid-template-columns: 60px minmax(0, 1fr) 18px; gap: 12px; padding: 14px 12px; }
  .pagina-peixe .recipe-row .ph { width: 60px; height: 72px; }
  .pagina-peixe .recipe-row .sub { font-size: 12px; line-height: 1.5; }
  .pagina-peixe .recipe-row h3 { font-size: 19px; }

  /* Receitas: moldura ampla, coluna de leitura contida; abas e funções originais. */
  .pagina-receita .app { max-width: 960px; }
  .pagina-receita .hero-receita { height: 240px; }
  .pagina-receita .recipe-head,
  .pagina-receita .facts,
  .pagina-receita .panel { max-width: 800px; width: 100%; margin-inline: auto; }
  .pagina-receita .tabs,
  .pagina-receita .tempo-nota,
  .pagina-receita .ingredientes-nota,
  .pagina-receita .tip,
  .pagina-receita .credito { width: calc(100% - 64px); max-width: 736px; margin-inline: auto; }
  .pagina-receita .recipe-head { padding-top: 22px; }
  .pagina-receita .recipe-head h1 { font-size: 40px; line-height: 1.1; }
  .pagina-receita .tempo-nota,
  .pagina-receita .ingredientes-nota { font-size: 13px; line-height: 1.7; }
  .pagina-receita .step p { font-size: 15px; line-height: 1.75; }
  .pagina-receita .ing { font-size: 15px; padding-block: 15px; }
  .pagina-receita .sticky-cta { max-width: 800px; width: 100%; margin-inline: auto; }
}
