/* Fraunces (SIL OFL), self-hosted Latin subset: the same files as pg-guides.css (../fonts). Loaded only on the 3 guide articles. */
@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 – guide article pages
   /guides/portuguese-wine-regions   (.pg-article.pg-theme-wine)
   /guides/port-wine-guide           (.pg-article.pg-theme-port)
   /guides/portuguese-coffee-guide   (.pg-article.pg-theme-coffee)
   One shared stylesheet; each page picks its accent colour with a
   theme class. Same design language as pg-guides.css / pg-recipes.css.
   Everything is scoped under .pg-article.
   Fonts: Fraunces (headings) + Poppins (already on the site).
   ========================================================= */

.pg-article{
  --pg-ink:#2a211c; --pg-muted:#6b5d54; --pg-cream:#fbf6ee; --pg-line:#eadfce;
  --pg-azul:#1d4e89; --pg-red:#b3262e;
  --pg-accent:#1d4e89; --pg-tint:#eef3f9;
  --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-article.pg-theme-wine  {--pg-accent:#6e1f31; --pg-tint:#f8eef0}
.pg-article.pg-theme-port  {--pg-accent:#8c4a1c; --pg-tint:#f9f0e8}
.pg-article.pg-theme-coffee{--pg-accent:#5a3e2f; --pg-tint:#f5eee8}

.pg-article *,.pg-article *::before,.pg-article *::after{box-sizing:border-box}
.pg-article p{margin:0 0 1em}
.pg-article a{color:var(--pg-accent);font-weight:500;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.pg-article a:hover{text-decoration-thickness:2px}
.pg-article strong{font-weight:600}
.pg-article ul,.pg-article ol{margin:0 0 1em;padding-left:1.25em}
.pg-article li{margin:0 0 .45em}
.pg-article li::marker{color:var(--pg-accent)}

/* ---------- Headings ---------- */
.pg-article h2{
  font-family:var(--pg-serif);font-weight:700;font-size:clamp(26px,3.2vw,34px);line-height:1.15;
  letter-spacing:-.005em;color:var(--pg-ink);margin:0 0 18px;
}
.pg-article h3{
  font-family:var(--pg-serif);font-weight:700;font-size:22px;line-height:1.25;color:var(--pg-ink);margin:0 0 8px;
}

/* ---------- Hero ---------- */
.pg-article .pg-hero{
  position:relative;overflow:hidden;background:var(--pg-cream);
  border:1px solid var(--pg-line);border-radius:18px;padding:52px 48px 48px;margin:0 0 24px;
}
.pg-article .pg-hero::after{
  content:"";position:absolute;right:0;top:0;bottom:0;width:40%;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Crect width='80' height='80' fill='%23fbf6ee'/%3E%3Cg fill='none' stroke='%231d4e89' stroke-width='2.2'%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M40 6 Q52 22 40 26 Q28 22 40 6Z M40 74 Q52 58 40 54 Q28 58 40 74Z M6 40 Q22 28 26 40 Q22 52 6 40Z M74 40 Q58 28 54 40 Q58 52 74 40Z'/%3E%3Cpath d='M0 0 Q12 4 10 10 Q4 12 0 0Z M80 0 Q68 4 70 10 Q76 12 80 0Z M0 80 Q12 76 10 70 Q4 68 0 80Z M80 80 Q68 76 70 70 Q76 68 80 80Z'/%3E%3C/g%3E%3Ccircle cx='40' cy='40' r='5' fill='%23b3262e'/%3E%3C/svg%3E");
  background-size:80px;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 50%);
          mask-image:linear-gradient(to right,transparent,#000 50%);
  opacity:.5;
}
.pg-article .pg-hero-inner{position:relative;z-index:1;max-width:680px}
.pg-article .pg-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--pg-red);
}
.pg-article .pg-eyebrow::before{content:"";width:28px;height:2px;background:var(--pg-red)}
.pg-article .pg-title{
  font-family:var(--pg-serif);font-weight:700;font-size:clamp(32px,4.6vw,50px);line-height:1.08;
  letter-spacing:-.01em;color:var(--pg-ink);margin:14px 0 20px;
}
.pg-article .pg-title .pg-sub{
  display:block;font-style:italic;font-weight:500;font-size:.62em;line-height:1.25;color:var(--pg-accent);margin-top:8px;
}
.pg-article .pg-hero p{font-size:18px;color:var(--pg-muted)}
.pg-article .pg-hero p:last-of-type{margin-bottom:0}

/* ---------- Buttons ---------- */
.pg-article .pg-btn{
  display:inline-flex;align-items:center;gap:10px;margin-top:22px;
  background:var(--pg-accent);color:#fff;font-weight:600;font-size:15px;text-decoration:none;
  padding:12px 22px;border-radius:999px;transition:filter .15s,transform .15s;
}
.pg-article .pg-btn:hover{filter:brightness(1.12);text-decoration:none;color:#fff}
.pg-article .pg-btn-ghost{background:#fff;color:var(--pg-accent);border:1px solid var(--pg-line)}
.pg-article .pg-btn-ghost:hover{background:var(--pg-cream);color:var(--pg-accent);filter:none}
.pg-article .pg-btn-row{display:flex;flex-wrap:wrap;gap:12px}
.pg-article .pg-btn-row .pg-btn{margin-top:0}

/* ---------- "In this guide" nav ---------- */
.pg-article .pg-toc{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 48px;padding:0;
}
.pg-article .pg-toc-label{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--pg-muted);margin-right:6px}
.pg-article .pg-toc a{
  font-size:14px;font-weight:500;text-decoration:none;color:var(--pg-ink);
  padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--pg-line);transition:background .15s,border-color .15s;
}
.pg-article .pg-toc a:hover{background:var(--pg-tint);border-color:var(--pg-accent)}

/* ---------- Sections ---------- */
.pg-article .pg-sec{margin:0 0 56px;scroll-margin-top:90px}
.pg-article .pg-lead{font-size:18px;color:var(--pg-muted);max-width:62ch}

/* ---------- Generic card / grid ---------- */
.pg-article .pg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.pg-article .pg-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pg-article .pg-card{
  background:#fff;border:1px solid var(--pg-line);border-radius:16px;padding:24px 26px;
  box-shadow:0 1px 2px rgba(42,33,28,.04);
}
.pg-article .pg-card > :last-child{margin-bottom:0}
.pg-article .pg-card-tint{background:var(--pg-tint);border-color:transparent}

/* ---------- Tables ---------- */
.pg-article .pg-table-wrap{overflow-x:auto;border:1px solid var(--pg-line);border-radius:16px;margin:0 0 1em;background:#fff}
.pg-article .pg-table{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.5}
.pg-article .pg-table th{
  text-align:left;font-size:12.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:#fff;background:var(--pg-accent);padding:13px 18px;white-space:nowrap;
}
.pg-article .pg-table td{padding:13px 18px;border-top:1px solid var(--pg-line);vertical-align:top}
.pg-article .pg-table tbody tr:nth-child(even) td{background:var(--pg-cream)}
.pg-article .pg-table td:first-child{font-weight:600}
.pg-article .pg-table td:first-child a{color:var(--pg-ink)}

/* ---------- Region / style blocks ---------- */
.pg-article .pg-block{
  background:#fff;border:1px solid var(--pg-line);border-radius:20px;overflow:hidden;margin:0 0 28px;
  scroll-margin-top:90px;box-shadow:0 1px 2px rgba(42,33,28,.04);
}
.pg-article .pg-block-head{
  position:relative;padding:26px 30px 22px;background:var(--pg-tint);border-bottom:1px solid var(--pg-line);
  display:flex;align-items:center;gap:16px;
}
.pg-article .pg-block-head h2,.pg-article .pg-block-head h3{margin:0}
.pg-article .pg-num{
  flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  font-family:var(--pg-serif);font-weight:700;font-size:18px;color:#fff;background:var(--pg-accent);
}
.pg-article .pg-swatch{flex:none;width:44px;height:44px;border-radius:12px;border:3px solid #fff;box-shadow:0 0 0 1px var(--pg-line)}
.pg-article .pg-dot{display:inline-block;width:20px;height:20px;border-radius:6px;vertical-align:-2px;margin-right:10px}
/* port colour swatches */
.pg-article .pg-sw-ruby{background:#8b1a2b}
.pg-article .pg-sw-reserve{background:#6e1424}
.pg-article .pg-sw-tawny{background:#b5652a}
.pg-article .pg-sw-aged{background:#9a5520}
.pg-article .pg-sw-colheita{background:#a5602a}
.pg-article .pg-sw-lbv{background:#5c1020}
.pg-article .pg-sw-vintage{background:#3d0a16}
.pg-article .pg-sw-crusted{background:#4a0f1c}
.pg-article .pg-sw-white{background:#e2c066}
.pg-article .pg-sw-rose{background:#e58fa0}
.pg-article .pg-mt{margin-top:32px}
.pg-article .pg-mt-s{margin-top:20px}
.pg-article .pg-grid > .pg-block{margin:0}
.pg-article .pg-block-body{padding:26px 30px 28px}
.pg-article .pg-block-body > :last-child{margin-bottom:0}

/* facts list (Where / Style / Key grapes / Food) */
.pg-article .pg-facts{display:grid;grid-template-columns:130px 1fr;gap:12px 20px;margin:0 0 24px}
.pg-article .pg-facts dt{
  font-size:12.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--pg-accent);padding-top:4px;
}
.pg-article .pg-facts dd{margin:0}

/* "Best for" / "Needs" rows inside style blocks */
.pg-article .pg-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;margin:0 0 12px}
.pg-article .pg-meta-label{
  font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--pg-accent);background:var(--pg-tint);border-radius:999px;padding:2px 10px;
}

/* "Try" box with product links */
.pg-article .pg-try{background:var(--pg-cream);border:1px solid var(--pg-line);border-radius:14px;padding:18px 22px}
.pg-article .pg-try-label{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;
  font-size:12.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--pg-red);
}
.pg-article .pg-try-label::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--pg-red)}
.pg-article .pg-try ul{list-style:none;padding:0;margin:0}
.pg-article .pg-try li{position:relative;padding-left:20px;margin:0 0 8px}
.pg-article .pg-try li:last-child{margin-bottom:0}
.pg-article .pg-try li::before{content:"→";position:absolute;left:0;top:0;color:var(--pg-accent);font-weight:600}
.pg-article .pg-try p{margin:0}
.pg-article .pg-after{margin:16px 0 0;font-weight:600}

/* ---------- Drinks / glossary grid (coffee) ---------- */
.pg-article .pg-term h3{color:var(--pg-accent);font-size:21px}
.pg-article .pg-term p{font-size:16px;color:var(--pg-muted)}

/* ---------- Recipe steps ---------- */
.pg-article .pg-steps{counter-reset:pg-step;list-style:none;padding:0;margin:0}
.pg-article .pg-steps li{counter-increment:pg-step;position:relative;padding-left:40px;margin:0 0 10px;font-size:16px}
.pg-article .pg-steps li::before{
  content:counter(pg-step);position:absolute;left:0;top:1px;width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;font-size:13px;font-weight:600;color:#fff;background:var(--pg-accent);
}

/* ---------- Callout ---------- */
.pg-article .pg-callout{
  position:relative;background:var(--pg-azul);color:#fff;border-radius:18px;padding:30px 34px;margin:0 0 1em;
}
.pg-article .pg-callout h2,.pg-article .pg-callout h3{color:#fff}
.pg-article .pg-callout a{color:#fff}
.pg-article .pg-callout p:last-child{margin-bottom:0}
.pg-article .pg-tip{border-left:4px solid var(--pg-accent);background:var(--pg-tint);border-radius:0 12px 12px 0;padding:14px 18px;margin:16px 0 0}

/* ---------- FAQ ---------- */
.pg-article .pg-faq{border:1px solid var(--pg-line);border-radius:16px;overflow:hidden;background:#fff}
.pg-article .pg-faq details{border-top:1px solid var(--pg-line)}
.pg-article .pg-faq details:first-child{border-top:0}
.pg-article .pg-faq summary{
  list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:18px 24px;font-weight:600;font-size:17px;
}
.pg-article .pg-faq summary::-webkit-details-marker{display:none}
.pg-article .pg-faq summary::after{
  content:"+";flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  font-size:20px;font-weight:500;color:var(--pg-accent);background:var(--pg-tint);transition:transform .2s;
}
.pg-article .pg-faq details[open] summary::after{transform:rotate(45deg)}
.pg-article .pg-faq summary:hover{background:var(--pg-cream)}
.pg-article .pg-faq .pg-faq-a{padding:0 24px 20px;color:var(--pg-muted)}
.pg-article .pg-faq .pg-faq-a p:last-child{margin:0}
/* h3 inside summary (port & coffee FAQs keep their H3s) */
.pg-article .pg-faq summary h3{font-family:Poppins,system-ui,sans-serif;font-size:17px;font-weight:600;margin:0;line-height:1.4}

/* ---------- Read next ---------- */
.pg-article .pg-next{
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  background:var(--pg-cream);border:1px solid var(--pg-line);border-radius:18px;padding:26px 30px;margin:0 0 24px;
}
.pg-article .pg-next-label{font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--pg-red);margin:0 0 4px}
.pg-article .pg-next-title{font-family:var(--pg-serif);font-weight:700;font-size:24px;margin:0}
.pg-article .pg-next-title a{color:var(--pg-ink);text-decoration:none}
.pg-article .pg-next .pg-btn{margin-top:0}

/* ---------- Mobile ---------- */
@media (max-width:767px){
  .pg-article{font-size:16px}
  .pg-article .pg-hero{padding:38px 22px 32px;border-radius:14px}
  .pg-article .pg-hero::after{width:100%;opacity:.1;-webkit-mask-image:none;mask-image:none}
  .pg-article .pg-grid,.pg-article .pg-grid-3{grid-template-columns:1fr;gap:16px}
  .pg-article .pg-block-head{padding:20px 20px 18px}
  .pg-article .pg-block-body{padding:20px}
  .pg-article .pg-facts{grid-template-columns:1fr;gap:2px}
  .pg-article .pg-facts dd{margin-bottom:12px}
  .pg-article .pg-card{padding:20px}
  .pg-article .pg-callout{padding:24px 22px}
  .pg-article .pg-table{font-size:14.5px}
  .pg-article .pg-table th,.pg-article .pg-table td{padding:11px 14px}
  .pg-article .pg-faq summary{padding:16px 18px}
  .pg-article .pg-faq .pg-faq-a{padding:0 18px 18px}
}

@media (prefers-reduced-motion:reduce){
  .pg-article .pg-btn,.pg-article .pg-faq summary::after{transition:none}
}

@media print{
  .pg-article .pg-toc,.pg-article .pg-hero::after{display:none}
  .pg-article .pg-faq details{display:block}
  .pg-article .pg-faq .pg-faq-a{display:block}
}
