/* ============================================================
   GUIDE.CSS — shared layout for /guides/* and /become-a-piercer-uk/
   Loaded via frontmatter `extraStylesheet: /styles/guide.css`
============================================================ */

/* Focus + active states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn-gold:active, .btn-gold-lg:active, .btn-ghost-w:active,
.btn-ghost-dk:active, .btn-dark:active, .btn-outline:active { transform: translateY(1px); }

/* ── HERO ───────────────────────────────────────────────── */
.article-hero {
  padding: 9.5rem 3rem 5rem; background: var(--black);
  position: relative; overflow: hidden; text-align: center;
}
.article-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/brand_assets/Essex%20Piercing%20Academy%20Header.png') center 30% / cover no-repeat;
  opacity: .08;
}
.article-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,164,90,.08), transparent 55%),
    linear-gradient(to bottom, rgba(10,10,10,.55), rgba(10,10,10,.92));
}
.ah-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.article-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.breadcrumb {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { margin: 0 .5rem; color: var(--gold); }
.article-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 300; color: white; line-height: 1.04;
  letter-spacing: -.03em; margin: 1rem 0 1.25rem;
}
.article-hero h1 em { font-style: italic; color: var(--gold-light); }
.article-hero .ah-sub {
  font-size: 1rem; color: rgba(255,255,255,.6); font-weight: 300;
  line-height: 1.8; max-width: 600px; margin: 0 auto 2rem;
}
.ah-meta {
  display: inline-flex; gap: 1.75rem; flex-wrap: wrap; justify-content: center;
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-top: .5rem;
}
.ah-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.ah-meta span::before { content: '\2726'; color: var(--gold); font-size: .6rem; }

/* ── ARTICLE LAYOUT ────────────────────────────────────── */
.article { padding: 5rem 3rem 6rem; background: var(--white); }
.article-wrap {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr; gap: 4rem;
}
.toc {
  position: sticky; top: 6.5rem;
  align-self: start;
  padding: 1.5rem 0; border-top: 1px solid var(--border-gold);
}
.toc-label { font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1.1rem; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: .85rem; }
.toc li { counter-increment: toc; }
.toc a { font-size: .82rem; line-height: 1.5; color: var(--muted); font-weight: 300; display: flex; gap: .55rem; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--gold); font-weight: 500; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); }

/* ── ARTICLE BODY TYPOGRAPHY ───────────────────────────── */
.article-body { max-width: 720px; }
.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300; color: var(--text); line-height: 1.15;
  letter-spacing: -.02em;
  margin: 4rem 0 1.25rem;
  scroll-margin-top: 5rem;
}
.article-body h2:first-of-type { margin-top: 0; }
.article-body h2:first-child  { margin-top: 0; }
.article-body h2 em { font-style: italic; color: var(--gold); }
.article-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500; color: var(--text);
  letter-spacing: .02em; margin: 2.25rem 0 .75rem;
}
.article-body p { font-size: 1rem; line-height: 1.85; color: var(--text); font-weight: 300; margin-bottom: 1.25rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.article-body a:hover { color: var(--gold-hov); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 0 0 1.5rem; }
.article-body li { font-size: 1rem; line-height: 1.85; color: var(--text); font-weight: 300; margin-bottom: .5rem; }
.article-body li::marker { color: var(--gold); }

/* ── TL;DR + CALLOUT ───────────────────────────────────── */
.tldr { background: var(--ivory); padding: 1.5rem 1.75rem; border-left: 2px solid var(--gold); margin: 0 0 3rem; }
.tldr-label { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: .6rem; }
.tldr p { font-size: .98rem; color: var(--text); margin: 0; line-height: 1.75; }

.callout { background: var(--ivory); padding: 1.5rem 1.75rem; border-left: 2px solid var(--gold); margin: 2rem 0; }
.callout-label { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: .6rem; }
.callout p { font-size: .92rem; color: var(--text); margin: 0; line-height: 1.75; }
.callout p + p { margin-top: .75rem; }

/* ── PRICE TABLE (used in salary + insurance guides) ───── */
.price-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: .92rem; border-top: 1px solid var(--border-gold); }
.price-table th, .price-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table th { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 500; border-bottom: 1px solid var(--border-gold); }
.price-table td { color: var(--text); font-weight: 300; line-height: 1.5; }
.price-table td:first-child { font-weight: 500; }
.price-table tr:last-child td { border-bottom: none; }

/* ── INLINE LEAD-MAGNET CTA ────────────────────────────── */
.article-cta {
  background: var(--black); color: white;
  padding: 2.5rem 2.25rem; margin: 3rem 0;
  position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: .55;
}
.article-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300; color: white;
  line-height: 1.2; margin-bottom: .75rem;
}
.article-cta h3 em { font-style: italic; color: var(--gold-light); }
.article-cta p { font-size: .92rem; color: rgba(255,255,255,.55); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; }
.article-cta a.btn-gold-lg { padding: .9rem 2rem; font-size: .65rem; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-mini { padding: 6rem 3rem; background: var(--ivory); }
.faq-mini-hd { text-align: center; margin-bottom: 3rem; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0; cursor: pointer; gap: 1rem;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit;
}
.faq-qt { font-size: .92rem; font-weight: 400; color: var(--text); line-height: 1.4; }
.faq-tog {
  width: 26px; height: 26px; border: 1px solid var(--border);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem; line-height: 1;
  transition: transform .3s, border-color .3s;
}
.faq-item.open .faq-tog { transform: rotate(45deg); border-color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.22,1,.36,1); }
.faq-item.open .faq-a { max-height: 460px; }
.faq-a-in { padding: 0 0 1.4rem; font-size: .95rem; line-height: 1.85; color: var(--muted); font-weight: 300; }
.faq-a-in a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA STRIP ─────────────────────────────────────────── */
.cta-strip { padding: 7rem 3rem; background: var(--black); text-align: center; position: relative; overflow: hidden; }
.cta-strip::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(196,164,90,.09) 0%, transparent 65%);
  pointer-events: none;
}
.cta-in { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.cta-in h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300; color: white; line-height: 1.08;
  letter-spacing: -.02em; margin-bottom: 1.1rem;
}
.cta-in h2 em { font-style: italic; color: var(--gold-light); }
.cta-in p { font-size: .92rem; color: rgba(255,255,255,.5); font-weight: 300; line-height: 1.8; margin-bottom: 2.25rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .toc { position: static; padding: 1.25rem 1.5rem; background: var(--ivory); border-left: 2px solid var(--gold); border-top: none; }
}
@media (max-width: 768px) {
  .article-hero { padding: 7.5rem 1.5rem 4rem; }
  .article, .faq-mini, .cta-strip { padding: 4rem 1.5rem; }
  .article-cta { padding: 2rem 1.5rem; }
  .price-table th, .price-table td { padding: .7rem .5rem; font-size: .85rem; }
}
