/* ==========================================================================
   The Prostate Post — Editorial design system
   ========================================================================== */

:root {
  --navy: #10263d;
  --navy-deep: #0b1b2c;
  --ink: #1f2d3a;
  --body: #3d4c5c;
  --muted: #64748b;
  --teal: #0e7c72;
  --teal-dark: #0a5f58;
  --teal-soft: #e6f4f2;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #e5e2da;
  --amber: #d97a1f;
  --amber-dark: #b8641a;
  --amber-soft: #fdf3e7;
  --danger-soft: #fdeeee;
  --max: 1200px;
  --col: 780px;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 38, 61, .07), 0 12px 32px rgba(16, 38, 61, .06);
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.25; font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo {
  font-family: var(--font-serif); font-size: 1.45rem; font-weight: 800;
  color: var(--navy); text-decoration: none; letter-spacing: -.02em; white-space: nowrap;
}
.logo span { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.site-nav a.nav-cta {
  background: var(--amber); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--amber-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.4rem; padding: 4px 12px; cursor: pointer; color: var(--navy); }

.topbar {
  background: var(--navy-deep); color: #b8c7d6; font-size: .8rem; text-align: center; padding: 7px 16px; line-height: 1.5;
}
.topbar a { color: #d4e2ef; }

/* -------------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #e9f0f6; padding: 88px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .kicker {
  display: inline-block; background: rgba(14, 124, 114, .25); border: 1px solid rgba(94, 200, 190, .4);
  color: #8fdcd4; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 20px; letter-spacing: -.02em; }
.hero p.lede { font-size: 1.2rem; line-height: 1.7; color: #b9c9d8; max-width: 34em; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }

/* ------------------------------------------------------------ trust strip */
.trust-strip { background: var(--card); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .ico { font-size: 1.5rem; line-height: 1.2; }
.trust-item strong { display: block; color: var(--ink); font-size: .98rem; }
.trust-item small { color: var(--muted); font-size: .87rem; line-height: 1.5; display: block; }

/* ---------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section-alt { background: #f2f0ea; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--teal); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 10px 0 14px; }
.section-head p { color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: linear-gradient(135deg, #dfeae8, #c6d8d5); }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .tag { color: var(--teal); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card h3 { font-size: 1.22rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.card p { font-size: .95rem; color: var(--muted); flex: 1; }
.card .more { font-weight: 600; font-size: .92rem; text-decoration: none; }

/* ------------------------------------------------------------ article page */
.article-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.article-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 21em; letter-spacing: -.015em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: .88rem; color: var(--muted); align-items: center; }
.article-meta .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; font-family: var(--font-sans);
}
.byline { display: flex; align-items: center; gap: 10px; }
.byline b { color: var(--ink); font-weight: 600; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 56px 0 72px; }
.article-body { max-width: var(--col); }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-size: 1.65rem; margin-top: 2.2em; scroll-margin-top: 96px; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .5em; }
.article-body img { border-radius: var(--radius); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.article-body th { background: var(--teal-soft); color: var(--ink); font-family: var(--font-sans); }
.table-scroll { overflow-x: auto; }

.answer-block {
  background: var(--teal-soft); border-left: 5px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
}
.answer-block .ab-label {
  font-family: var(--font-sans); font-weight: 700; font-size: .8rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--teal-dark); display: block; margin-bottom: 8px;
}
.answer-block p { color: var(--ink); font-size: 1.08rem; line-height: 1.7; }

.stat-callout {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); display: flex; gap: 18px; align-items: flex-start;
}
.stat-callout .num { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1.1; white-space: nowrap; }
.stat-callout p { font-size: .95rem; color: var(--body); }
.stat-callout small { color: var(--muted); display: block; margin-top: 4px; font-size: .82rem; }

/* ------------------------------------------------------------------ aside */
.article-aside { position: relative; }
.aside-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.toc, .aside-cta {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
}
.toc h4, .aside-cta h4 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a { text-decoration: none; color: var(--ink); font-size: .92rem; display: flex; gap: 10px; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--teal); font-weight: 700; font-size: .8rem; padding-top: 2px; }
.toc a:hover { color: var(--teal); }
.aside-cta p { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.aside-cta .btn { width: 100%; text-align: center; font-size: .95rem; padding: 12px 18px; }

/* -------------------------------------------------------------- affiliate */
.affiliate-box {
  background: var(--amber-soft); border: 1px solid #eeD9b8; border-radius: var(--radius); padding: 30px 32px;
}
.affiliate-box .ab-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.affiliate-box h3 { font-size: 1.35rem; margin: 0; }
.affiliate-box .verdict { font-family: var(--font-sans); font-weight: 700; color: var(--amber-dark); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.affiliate-box .disclosure-note { font-size: .8rem; color: #8a6a3f; line-height: 1.5; margin-top: 18px; }
.affiliate-box ul { padding-left: 1.3em; margin: 14px 0; }
.affiliate-box .btn { margin-top: 6px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 18px 0; }
.pros-cons > div { background: #fff; border-radius: 10px; padding: 18px 20px; border: 1px solid var(--line); }
.pros-cons h4 { font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.pros-cons .pros h4 { color: var(--teal-dark); }
.pros-cons .cons h4 { color: #b3462e; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { padding-left: 1.5em; position: relative; font-size: .93rem; margin-top: .45em; }
.pros-cons .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.pros-cons .cons li::before { content: "✕"; position: absolute; left: 0; color: #b3462e; font-weight: 700; }

/* --------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px;
  padding: 20px 4px; font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; font-family: var(--font-sans); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 4px 22px; }

/* ------------------------------------------------------------- disclaimer */
.note-box {
  background: var(--danger-soft); border-left: 5px solid #c0564a; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px; font-size: .93rem; color: #6b3d36;
}
.note-box strong { color: #93392c; }

.sources { font-size: .88rem; color: var(--muted); }
.sources h2 { font-size: 1.2rem; }
.sources ol { padding-left: 1.3em; }
.sources li { margin-top: .5em; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ about */
.about-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%); color: #dbe6ef; padding: 76px 0; }
.about-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.about-hero p { max-width: 40em; font-size: 1.15rem; color: #b9c9d8; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.method-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow); }
.method-card .num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 800; color: var(--teal); }
.method-card h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.method-card p { font-size: .95rem; color: var(--muted); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--navy-deep); color: #93a7ba; padding: 60px 0 32px; margin-top: 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 16px; }
.site-footer a { color: #b9c9d8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer li { margin-top: .55em; }
.footer-logo { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-logo span { color: #5ec8be; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: .78rem; line-height: 1.7; color: #7b8fa3; }

/* ------------------------------------------------------------------ legal */
.legal-body { max-width: var(--col); padding: 56px 0 80px; }
.legal-body > * + * { margin-top: 1.2em; }
.legal-body h2 { font-size: 1.4rem; margin-top: 2em; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .aside-sticky { position: static; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 16px;
    box-shadow: 0 16px 30px rgba(16,38,61,.12);
  }
  body.nav-open .site-nav { display: flex; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 52px 0; }
  .card-grid, .trust-grid, .method-grid, .pros-cons, .footer-grid { grid-template-columns: 1fr; }
  .affiliate-box { padding: 24px 22px; }
  .article-layout { padding: 40px 0 56px; }
}
