/* JohnTernusCEO.com — independent editorial design. Not Apple's visual identity. */
:root {
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #78716c;
  --paper: #f6f1e8;
  --paper-2: #fffdf8;
  --line: #e7e0d4;
  --brand: #1b2a41;
  --brand-2: #243656;
  --brand-dark: #121c2c;
  --accent: #c9a227;
  --accent-2: #e0bc4a;
  --warm: #efe6d6;
  --ok: #3f6f5b;
  --news: #9a3412;
  --shadow: 0 12px 36px rgba(18, 28, 44, 0.08);
  --shadow-sm: 0 4px 14px rgba(18, 28, 44, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin: 0 0 1rem; }
h3 { font-size: 1.18rem; margin: 0 0 0.55rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 46rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.independence-bar {
  background: var(--brand-dark);
  color: #e8e0d4;
  font-size: .82rem;
  letter-spacing: .01em;
  padding: .4rem 0;
}
.independence-bar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.independence-bar a { color: var(--accent-2) !important; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand);
  color: #f6f1e8;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 1.05rem;
  letter-spacing: .01em;
}
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: #d6cbb8; letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.nav-links a {
  color: #e8e0d4 !important; text-decoration: none !important; font-size: .9rem; font-weight: 600;
  padding: .35rem .15rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-2) !important; border-bottom-color: var(--accent-2); }
.nav-search {
  color: #fff !important; text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: .3rem .75rem; font-size: .85rem; font-weight: 600;
}
.nav-toggle {
  display: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 8px; padding: .45rem .7rem; cursor: pointer; font-weight: 700;
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    padding: .5rem 0 1rem; border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav-links.open { display: flex; }
}

.hero {
  position: relative; min-height: 420px; color: #fff; overflow: hidden;
  background: var(--brand-dark);
}
.hero picture, .hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { object-fit: cover; opacity: .48; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(18,28,44,.94) 0%, rgba(27,42,65,.78) 50%, rgba(18,28,44,.5) 100%);
}
.hero-content { position: relative; padding: 4.2rem 0 3.2rem; max-width: 46rem; }
.hero .eyebrow {
  display: inline-block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 700; margin-bottom: .7rem;
}
.hero h1 { color: #fff; }
.hero p { color: #ece6db; font-size: 1.08rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fef9c3; border-radius: 999px; padding: .32rem .72rem; font-size: .8rem; font-weight: 600;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 999px; padding: .68rem 1.15rem; font-weight: 700; text-decoration: none !important;
  border: 0; cursor: pointer; font-size: .95rem;
}
.btn-primary { background: var(--accent); color: var(--brand-dark) !important; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.page { padding: 2.4rem 0 3rem; }
.prose { max-width: 48rem; }
.prose h2 {
  margin-top: 2.2rem; padding-bottom: .4rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block; min-width: min(100%, 16rem);
}
.prose h3 { margin-top: 1.45rem; color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.prose li { margin-bottom: .38rem; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption, .credit { font-size: .84rem; color: var(--muted); margin-top: .45rem; }
.prose img, .content-img {
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
}
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  text-decoration: none !important; color: inherit; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.card-body { padding: 1.05rem 1.1rem 1.2rem; border-top: 3px solid var(--accent); flex: 1; }
.card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.card p { font-size: .92rem; margin: 0; color: var(--muted); }

.callout {
  background: linear-gradient(135deg, #fff 0%, var(--warm) 100%);
  border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.05rem 1.2rem; margin: 1.4rem 0;
}
.callout.analysis { border-left-color: var(--brand); }
.callout.reported { border-left-color: var(--news); }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .85rem;
  margin: 1.4rem 0 1.8rem;
}
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1rem; box-shadow: var(--shadow-sm);
}
.fact dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fact dd { margin: .22rem 0 0; font-size: 1.02rem; font-weight: 700; color: var(--brand-dark); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.7rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .72rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand); color: #f6f1e8; font-weight: 700; }
tr:nth-child(even) td { background: #faf7f1; }

.sidebar-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; position: sticky; top: 5.6rem;
}
.sidebar-box h3 { margin-top: 0; font-size: 1.02rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { border-bottom: 1px solid var(--line); }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box a {
  display: block; padding: .62rem 0; text-decoration: none !important; color: var(--brand) !important; font-weight: 600; font-size: .94rem;
}

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; margin-bottom: .65rem;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin-top: 1rem; }
.related a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; text-decoration: none !important; color: var(--brand-dark) !important;
  font-weight: 700; box-shadow: var(--shadow-sm);
}
.related a:hover { border-color: var(--accent); }

.meta-line { font-size: .88rem; color: var(--muted); margin: 0 0 1.1rem; }
.meta-line a { color: var(--brand); text-decoration: none; font-weight: 600; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.toc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.15rem; margin: 1.2rem 0 1.6rem;
}
.toc strong { display: block; margin-bottom: .45rem; }
.toc a { display: block; padding: .22rem 0; text-decoration: none; font-weight: 600; font-size: .94rem; }
.sources { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-top: 2rem; }
.sources h2 { margin-top: 0; }
.sources ol { margin: 0; padding-left: 1.2rem; }
.sources li { margin-bottom: .45rem; }
.author-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; margin-top: 2rem;
}
.author-mark {
  width: 48px; height: 48px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 800; flex-shrink: 0;
}
.updated { font-size: .86rem; color: var(--muted); margin-top: 1.2rem; }
.status {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 999px; padding: .2rem .55rem; margin-right: .35rem;
}
.status-confirmed { background: #dcfce7; color: #166534; }
.status-reported { background: #ffedd5; color: #9a3412; }
.status-analysis { background: #e0e7ff; color: #3730a3; }
.status-unconfirmed { background: #f4f4f5; color: #3f3f46; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; max-width: 36rem; }
.form label { display: block; font-weight: 700; margin: .7rem 0 .3rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: var(--paper-2);
}
.form textarea { min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.search-box { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.search-box input { flex: 1; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.search-box button, .form button { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: .75rem 1.1rem; font-weight: 700; cursor: pointer; }
.search-results li { margin-bottom: .8rem; }

.timeline { border-left: 3px solid var(--accent); margin: 1.4rem 0 2rem; padding-left: 1.2rem; }
.tl-item { margin: 0 0 1.15rem; position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -1.55rem; top: .35rem; width: 11px; height: 11px;
  background: var(--brand); border: 2px solid var(--accent); border-radius: 50%;
}
.tl-item time { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tl-item strong { display: block; color: var(--brand-dark); }

.site-footer {
  margin-top: 3rem; background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand-dark) 100%);
  color: #d6cbb8;
}
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--accent), #fde68a, #93c5fd); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding: 2.6rem 0 2rem; width: min(100% - 2rem, var(--max)); margin-inline: auto;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  color: #fff; font-family: var(--font); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; margin: 0 0 1rem;
}
.site-footer a { color: #e8e0d4 !important; text-decoration: none !important; font-size: .92rem; }
.site-footer a:hover { color: var(--accent-2) !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.12); background: #0b1220;
  padding: 1rem 0; font-size: .82rem; color: #b8aea0;
}
.footer-copy-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  width: min(100% - 2rem, var(--max)); margin-inline: auto;
}
.disclaimer {
  font-size: .86rem; line-height: 1.55; color: #d6cbb8; margin: .7rem 0 0;
}

.section { padding: 2.2rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin-bottom: .4rem; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { min-height: 0; }
  .hero-content { padding: 2.4rem 0 2rem; }
  .facts { grid-template-columns: 1fr 1fr; }
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button, a, input, textarea, select, summary { touch-action: manipulation; }
.nav-toggle, .btn, .search-box button, .form button { min-height: 44px; }
.nav-links a { min-height: 40px; display: inline-flex; align-items: center; }
