/* ============================================================
   AURIXA — Editorial content sections for the 9 MAIN app pages
   (homepage, metal rate pages, charts, news, calculator,
   jewellers, ai-advisor).

   WHY THIS FILE EXISTS
   The app pages were built as live-price widgets: they had no
   <h1>, no <h2>, and almost no <p>. To a crawler they were
   unlabelled tools rather than documents, which is what drove
   the AdSense "Low value content" rejection. This stylesheet
   dresses the real written content added to each page.

   RULES / SAFETY
   - SELF-CONTAINED. Every token has an inline fallback via
     var(--x, #hex), so it does not depend on any page's :root.
   - Its own @media block. It does NOT live in mobile.css, so
     the "bump mobile.css?v=N" rule does NOT apply here.
   - All classes are namespaced `.pc-` so they cannot collide
     with existing page styles.
   - Headings are styled by CLASS, so converting a decorative
     <div> into a semantic <h2> is a zero-visual-change edit.
   Served via the static allow-list (.css is permitted).
   ============================================================ */

/* ── section shell ── */
.pc-section{
  max-width:1280px;
  margin:0 auto;
  padding:40px 20px 8px;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--ink,#35302A);
  line-height:1.62;
}
.pc-section + .pc-section{padding-top:8px}

/* Card wrapper so the prose reads as a deliberate block, not leftover text */
.pc-card{
  background:var(--white,#FFFFFF);
  border:1px solid var(--border,#E7E2D8);
  border-radius:var(--radius,12px);
  padding:30px 32px;
  box-shadow:0 1px 4px rgba(0,0,0,0.06);
}

/* ── headings ── */
.pc-h1{
  font-family:'Manrope',system-ui,sans-serif;
  font-size:30px;font-weight:800;
  color:var(--charcoal,#26221C);
  line-height:1.18;letter-spacing:-0.02em;
  margin:0 0 12px;
}
.pc-h2{
  font-family:'Manrope',system-ui,sans-serif;
  font-size:20px;font-weight:700;
  color:var(--charcoal,#26221C);
  line-height:1.25;letter-spacing:-0.01em;
  margin:32px 0 12px;
}
.pc-h2:first-child{margin-top:0}
.pc-h3{
  font-family:'Manrope',system-ui,sans-serif;
  font-size:15.5px;font-weight:700;
  color:var(--ink,#35302A);
  margin:22px 0 8px;
}

/* A visually-hidden heading, for pages where a visible <h1> would
   fight the existing hero design but the document still needs one. */
.pc-sr-only{
  position:absolute!important;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* ── prose ── */
.pc-lead{
  font-size:14px;color:var(--slate,#6E675C);
  margin:0 0 18px;line-height:1.65;
}
.pc-section p{font-size:13.5px;margin:0 0 14px;color:var(--ink,#35302A)}
.pc-section ul,.pc-section ol{margin:0 0 16px 22px}
.pc-section li{font-size:13.5px;margin-bottom:8px;color:var(--ink,#35302A)}
.pc-section strong{color:var(--charcoal,#26221C);font-weight:650}
.pc-section a{color:var(--gold-mid,#B07E2B);font-weight:500;text-decoration:none}
.pc-section a:hover{color:var(--gold,#9C6B24);text-decoration:underline}

/* ── highlighted note ── */
.pc-note{
  background:var(--gold-pale,#F8F1E3);
  border:1px solid var(--gold-border,rgba(156,107,36,0.2));
  border-left:3px solid var(--gold-mid,#B07E2B);
  border-radius:8px;
  padding:12px 16px;margin:18px 0;
  font-size:13px;color:var(--ink,#35302A);
}

/* ── two-column prose grid (collapses on mobile) ──
   NOTE: deliberately NOT called .pc-grid — gold-calculator.html defines its
   OWN .pc-grid (a 4-column Popular Calculators row). This file loads AFTER
   that page's inline <style>, so reusing the name would silently override it
   and collapse that row to 2 columns. Renamed to .pc-cols to stay clear. ── */
.pc-cols{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:18px 0}
.pc-cols > div{min-width:0}

/* ── data table ── */
.pc-table{width:100%;border-collapse:collapse;margin:18px 0;font-size:14.5px}
.pc-table th{
  text-align:left;padding:10px 13px;
  background:var(--bg,#F7F4EE);
  border-bottom:2px solid var(--border,#E7E2D8);
  font-weight:700;color:var(--charcoal,#26221C);font-size:12.5px;
  text-transform:uppercase;letter-spacing:0.03em;
}
.pc-table td{padding:10px 13px;border-bottom:1px solid var(--border,#E7E2D8);color:var(--ink,#35302A)}
.pc-table tr:last-child td{border-bottom:none}

/* ── FAQ accordion (native <details>, no JS) ── */
.pc-faq{margin:18px 0 4px}
.pc-faq details{
  background:var(--white,#FFFFFF);
  border:1px solid var(--border,#E7E2D8);
  border-radius:10px;margin-bottom:10px;overflow:hidden;
}
.pc-faq summary{
  cursor:pointer;padding:12px 16px;
  font-size:14px;font-weight:600;
  color:var(--charcoal,#26221C);
  list-style:none;position:relative;padding-right:44px;
}
.pc-faq summary::-webkit-details-marker{display:none}
.pc-faq summary::after{
  content:'+';position:absolute;right:18px;top:50%;
  transform:translateY(-50%);
  font-size:19px;font-weight:600;
  color:var(--gold-mid,#B07E2B);line-height:1;
}
.pc-faq details[open] summary::after{content:'\2212'}
.pc-faq summary:hover{background:var(--gold-pale,#F8F1E3)}
.pc-faq .pc-faq-body{
  padding:0 16px 13px;font-size:13.5px;
  color:var(--slate,#6E675C);line-height:1.7;
}
.pc-faq .pc-faq-body p{font-size:13.5px;color:var(--slate,#6E675C)}
.pc-faq .pc-faq-body :last-child{margin-bottom:0}

/* ── inline related-reading strip ── */
.pc-related{margin:26px 0 0;padding-top:22px;border-top:1px solid var(--border,#E7E2D8)}
.pc-related-title{
  font-family:'Manrope',system-ui,sans-serif;
  font-size:15px;font-weight:700;
  color:var(--charcoal,#26221C);margin-bottom:12px;
}
.pc-related-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pc-related-card{
  display:block;background:var(--white,#FFFFFF);
  border:1px solid var(--border,#E7E2D8);
  border-radius:8px;padding:13px 15px;
  font-size:14px;font-weight:600;
  color:var(--charcoal,#26221C)!important;
  text-decoration:none!important;
  transition:border-color .2s,background .2s;
}
.pc-related-card:hover{
  border-color:var(--gold-border,rgba(156,107,36,0.2));
  background:var(--gold-pale,#F8F1E3);
}
.pc-related-card span{
  display:block;font-size:12px;font-weight:400;
  color:var(--mist,#A29A8C);margin-top:3px;
}

/* ── updated stamp ── */
.pc-updated{font-size:12.5px;color:var(--mist,#A29A8C);margin:0 0 22px}

/* ── mobile ── */
@media(max-width:1024px){
  .pc-section{padding:28px 16px 6px}
  .pc-card{padding:22px 18px;border-radius:12px}
  .pc-h1{font-size:24px}
  .pc-h2{font-size:18px;margin:24px 0 10px}
  .pc-h3{font-size:15px}
  .pc-lead{font-size:14px}
  .pc-section p,.pc-section li{font-size:13.5px}
  .pc-cols{grid-template-columns:1fr;gap:0}
  .pc-related-grid{grid-template-columns:1fr}
  /* let a wide table scroll rather than break the layout */
  .pc-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .pc-table{min-width:420px}
}

/* keep clear of the fixed mobile tab bar on pages that have one */
@media(max-width:1024px){
  .pc-section:last-of-type{padding-bottom:18px}
}

@media(prefers-reduced-motion:reduce){
  .pc-related-card{transition:none}
}
