/* Fraunces (SIL OFL), self-hosted Latin subset: the same files as pg-guides.css (../fonts). Loaded only on the 8 recipe pages. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/Fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Fraunces-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Portugalia – individual recipe pages (/recipes/<slug>)
   One shared stylesheet for every recipe. Each page picks its
   category colour with a class on the wrapper:
     pg-cat-cod (blue) · pg-cat-soup (green) · pg-cat-snack (orange) · pg-cat-sweet (burgundy)
   Same design language as the /recipes landing page.
   Everything is scoped under .pg-recipe-page.
   Fonts: Fraunces (headings) + Poppins (already on the site).
   ========================================================= */

.pg-recipe-page{
  --pg-ink:#2a211c; --pg-muted:#6b5d54; --pg-cream:#fbf6ee; --pg-line:#eadfce;
  --pg-azul:#1d4e89; --pg-red:#b3262e; --pg-wine:#6e1f31;
  --c:#1f5e3b; --c-tint:#edf5f0;
  --pg-serif:'Fraunces',Georgia,'Times New Roman',serif;
  font-family:Poppins,system-ui,sans-serif;
  color:var(--pg-ink);
  font-size:17px;
  line-height:1.7;
}
.pg-recipe-page.pg-cat-cod  {--c:#1d4e89; --c-tint:#edf2f9}
.pg-recipe-page.pg-cat-soup {--c:#1f5e3b; --c-tint:#edf5f0}
.pg-recipe-page.pg-cat-snack{--c:#a3501c; --c-tint:#fbf0e8}
.pg-recipe-page.pg-cat-sweet{--c:#8a2a40; --c-tint:#f9eef1}

.pg-recipe-page *,.pg-recipe-page *::before,.pg-recipe-page *::after{box-sizing:border-box}
.pg-recipe-page p{margin:0 0 1em}
.pg-recipe-page a{color:var(--c);font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.pg-recipe-page a:hover{text-decoration-thickness:2px}
.pg-recipe-page strong{font-weight:600}
.pg-recipe-page h2{
  font-family:var(--pg-serif);font-weight:700;font-size:clamp(25px,3vw,32px);line-height:1.15;color:var(--pg-ink);margin:0 0 18px;
}
.pg-recipe-page h3{font-family:var(--pg-serif);font-weight:700;font-size:21px;line-height:1.3;color:var(--pg-ink);margin:0 0 12px}

/* ---------- Back link ---------- */
.pg-recipe-page .pg-back{
  display:inline-flex;align-items:center;gap:6px;margin:0 0 16px;
  font-size:14px;font-weight:600;color:var(--pg-muted);text-decoration:none;
}
.pg-recipe-page .pg-back:hover{color:var(--c)}

/* ---------- Hero ---------- */
.pg-recipe-page .pg-rhero{
  display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
  background:var(--pg-cream);border:1px solid var(--pg-line);border-radius:20px;overflow:hidden;margin:0 0 40px;
}
.pg-recipe-page .pg-rhero-text{padding:46px 44px 40px}
.pg-recipe-page .pg-rhero-art{
  position:relative;min-height:280px;overflow:hidden;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c) 78%,#fff),var(--c));background-color:var(--c);
}
.pg-recipe-page .pg-rhero-art::before{
  content:"";position:absolute;inset:0;opacity:.14;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3Cpath d='M28 4 Q36 15 28 18 Q20 15 28 4Z M28 52 Q36 41 28 38 Q20 41 28 52Z M4 28 Q15 20 18 28 Q15 36 4 28Z M52 28 Q41 20 38 28 Q41 36 52 28Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:56px;
}
.pg-recipe-page .pg-rhero-art .pg-icon{position:absolute;left:50%;top:50%;width:68%;max-width:220px;transform:translate(-50%,-50%)}
/* Optional real photo: <img class="pg-photo" src="..." alt="..."> inside .pg-rhero-art */
.pg-recipe-page .pg-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pg-recipe-page .pg-rhero-art:has(.pg-photo)::before,
.pg-recipe-page .pg-rhero-art:has(.pg-photo) .pg-icon{display:none}
.pg-recipe-page .pg-badge{
  position:absolute;left:20px;top:18px;z-index:1;font-size:12px;font-weight:600;letter-spacing:.04em;color:#fff;
  background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.35);padding:4px 11px;border-radius:999px;
}
.pg-recipe-page .pg-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--c);
}
.pg-recipe-page .pg-eyebrow::before{content:"";width:28px;height:2px;background:var(--c)}
.pg-recipe-page .pg-title{
  font-family:var(--pg-serif);font-weight:700;font-size:clamp(34px,4.6vw,52px);line-height:1.06;
  letter-spacing:-.01em;color:var(--pg-ink);margin:12px 0 16px;
}
.pg-recipe-page .pg-intro{font-size:18px;color:var(--pg-muted);margin:0}

/* Serves / Prep / Cook */
.pg-recipe-page .pg-stats{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:24px 0 0;padding:0}
.pg-recipe-page .pg-stats li{
  margin:0;background:#fff;border:1px solid var(--pg-line);border-radius:14px;padding:10px 16px;line-height:1.35;
}
.pg-recipe-page .pg-stats .pg-stat-label{
  display:block;font-size:11.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--c);margin-bottom:2px;
}
.pg-recipe-page .pg-stats .pg-stat-value{font-size:15.5px;font-weight:600;color:var(--pg-ink)}

/* ---------- Two-column body ---------- */
.pg-recipe-page .pg-layout{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:40px;align-items:start;margin:0 0 40px}

/* Ingredients */
.pg-recipe-page .pg-ingredients{
  position:sticky;top:20px;background:#fff;border:1px solid var(--pg-line);border-radius:18px;padding:26px 24px;
  box-shadow:0 1px 2px rgba(42,33,28,.04);
}
.pg-recipe-page .pg-ingredients h2{font-size:26px;padding-bottom:14px;border-bottom:3px solid var(--c);margin-bottom:16px}
.pg-recipe-page .pg-ingredients ul{list-style:none;margin:0;padding:0}
.pg-recipe-page .pg-ingredients li{
  position:relative;padding:9px 0 9px 30px;margin:0;font-size:15.5px;line-height:1.5;border-bottom:1px dashed var(--pg-line);
}
.pg-recipe-page .pg-ingredients li:last-child{border-bottom:0}
.pg-recipe-page .pg-ingredients li::before{
  content:"";position:absolute;left:0;top:12px;width:16px;height:16px;border-radius:5px;border:2px solid var(--c);
}

/* Method */
.pg-recipe-page .pg-method{margin:0 0 36px}
.pg-recipe-page .pg-steps{counter-reset:pg-step;list-style:none;margin:0;padding:0}
.pg-recipe-page .pg-steps > li{
  counter-increment:pg-step;position:relative;margin:0 0 16px;padding:18px 22px 18px 74px;
  background:#fff;border:1px solid var(--pg-line);border-radius:16px;
}
.pg-recipe-page .pg-steps > li::before{
  content:counter(pg-step);position:absolute;left:20px;top:16px;width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;font-family:var(--pg-serif);font-weight:700;font-size:18px;color:#fff;background:var(--c);
}
.pg-recipe-page .pg-steps > li > strong:first-child{display:block;font-size:17.5px;color:var(--pg-ink);margin-bottom:2px}
/* Multi-stage methods (e.g. Bacalhau com Todos) */
.pg-recipe-page .pg-stage{background:var(--c-tint);border-radius:18px;padding:22px 22px 8px;margin:0 0 20px}
.pg-recipe-page .pg-stage > h3{margin:0 0 14px}
.pg-recipe-page .pg-stage > p{background:#fff;border:1px solid var(--pg-line);border-radius:16px;padding:16px 20px;margin:0 0 14px}
.pg-recipe-page .pg-stage .pg-steps > li{padding:14px 18px 14px 62px;margin-bottom:12px;font-size:16px}
.pg-recipe-page .pg-stage .pg-steps > li::before{left:16px;top:13px;width:32px;height:32px;font-size:15px}

/* Tips & other notes */
.pg-recipe-page .pg-note{background:var(--c-tint);border-radius:18px;padding:26px 28px;margin:0 0 24px}
.pg-recipe-page .pg-note h2{font-size:24px;margin-bottom:12px}
.pg-recipe-page .pg-note > :last-child{margin-bottom:0}
.pg-recipe-page .pg-note ul{margin:0;padding-left:1.2em}
.pg-recipe-page .pg-note li{margin:0 0 8px}
.pg-recipe-page .pg-note li::marker{color:var(--c)}

/* What to drink */
.pg-recipe-page .pg-drink{
  display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:start;
  background:var(--pg-wine);color:#fff;border-radius:18px;padding:26px 28px;margin:0 0 24px;
}
.pg-recipe-page .pg-drink-ico{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.14)}
.pg-recipe-page .pg-drink-ico svg{width:30px;height:30px}
.pg-recipe-page .pg-drink h2{color:#fff;font-size:24px;margin-bottom:8px}
.pg-recipe-page .pg-drink p{color:rgba(255,255,255,.92);margin:0}
.pg-recipe-page .pg-drink a{color:#fff}

/* ---------- More recipes / shop ---------- */
.pg-recipe-page .pg-more{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;
  background:var(--pg-cream);border:1px solid var(--pg-line);border-radius:18px;padding:24px 28px;margin:0 0 24px;
}
.pg-recipe-page .pg-more-text{font-family:var(--pg-serif);font-weight:700;font-size:22px;margin:0}
.pg-recipe-page .pg-btn-row{display:flex;flex-wrap:wrap;gap:12px}
.pg-recipe-page .pg-btn{
  display:inline-flex;align-items:center;gap:8px;background:var(--c);color:#fff;font-weight:600;font-size:15px;
  text-decoration:none;padding:12px 22px;border-radius:999px;border:1px solid transparent;transition:filter .15s;
}
.pg-recipe-page .pg-btn:hover{filter:brightness(1.12);color:#fff;text-decoration:none}
.pg-recipe-page .pg-btn-ghost{background:#fff;color:var(--c);border-color:var(--pg-line)}
.pg-recipe-page .pg-btn-ghost:hover{background:var(--c-tint);color:var(--c);filter:none}

/* ---------- Mobile / tablet ---------- */
@media (max-width:900px){
  .pg-recipe-page .pg-layout{grid-template-columns:1fr;gap:28px}
  .pg-recipe-page .pg-ingredients{position:static}
}
@media (max-width:767px){
  .pg-recipe-page{font-size:16px}
  .pg-recipe-page .pg-rhero{grid-template-columns:1fr;border-radius:16px;margin-bottom:28px}
  .pg-recipe-page .pg-rhero-art{order:-1;min-height:150px}
  .pg-recipe-page .pg-rhero-art .pg-icon{width:120px}
  .pg-recipe-page .pg-rhero-text{padding:28px 22px 26px}
  .pg-recipe-page .pg-steps > li{padding:16px 16px 16px 62px}
  .pg-recipe-page .pg-steps > li::before{left:14px;width:34px;height:34px;font-size:16px}
  .pg-recipe-page .pg-stage{padding:18px 14px 6px}
  .pg-recipe-page .pg-note,.pg-recipe-page .pg-drink{padding:22px 20px}
  .pg-recipe-page .pg-drink{grid-template-columns:1fr;gap:12px}
  .pg-recipe-page .pg-more{padding:22px 20px}
}

@media (prefers-reduced-motion:reduce){
  .pg-recipe-page .pg-btn{transition:none}
}

/* ---------- Print: a clean recipe card ---------- */
@media print{
  .pg-recipe-page{font-size:12pt;color:#000}
  .pg-recipe-page .pg-back,.pg-recipe-page .pg-rhero-art,.pg-recipe-page .pg-more,.pg-recipe-page .pg-drink-ico{display:none}
  .pg-recipe-page .pg-rhero{display:block;border:0;background:none}
  .pg-recipe-page .pg-rhero-text{padding:0}
  .pg-recipe-page .pg-layout{display:block}
  .pg-recipe-page .pg-ingredients{position:static;border:1px solid #ccc;box-shadow:none;margin-bottom:16pt}
  .pg-recipe-page .pg-steps > li,.pg-recipe-page .pg-stage,.pg-recipe-page .pg-note,.pg-recipe-page .pg-drink{
    background:none;color:#000;border:0;break-inside:avoid;
  }
  .pg-recipe-page .pg-drink h2,.pg-recipe-page .pg-drink p,.pg-recipe-page .pg-drink a{color:#000}
  .pg-recipe-page a{color:#000;text-decoration:none}
}
