:root {
  --bg: #f6f3ec;
  --paper: #fffdf9;
  --ink: #17213a;
  --muted: #5f687c;
  --navy: #101a31;
  --navy-soft: #1d2d50;
  --violet: #7659ff;
  --violet-soft: #eeeaff;
  --orange: #f19a38;
  --orange-soft: #fff0dd;
  --green: #2f8166;
  --line: #dde1ea;
  --shadow: 0 20px 55px rgba(27, 35, 57, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(118, 89, 255, .08), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: #4932c9; text-underline-offset: 3px; }
a:hover { color: #241876; }
button, input { font: inherit; }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 15px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: 10px;
  color: white;
  background: var(--navy);
}

.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: white;
  background: var(--navy);
}
.header-inner {
  display: flex;
  width: min(1160px, calc(100% - 36px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: linear-gradient(135deg, #ffd193, var(--orange));
  font-size: .88rem;
  letter-spacing: -.04em;
}
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { color: #e9ebf4; font-size: .92rem; text-decoration: none; }
.header-nav a:hover { color: white; }

.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(790px, calc(100% - 36px)); margin: 0 auto; }

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 126px) 0 clamp(62px, 8vw, 96px);
  color: white;
  background:
    radial-gradient(circle at 82% 24%, rgba(118, 89, 255, .48), transparent 28rem),
    radial-gradient(circle at 9% 110%, rgba(241, 154, 56, .24), transparent 25rem),
    linear-gradient(135deg, #0c1427, #17264a 72%, #1f3157);
}
.blog-hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -310px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}
.eyebrow {
  margin: 0 0 16px;
  color: #ffd8a8;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.blog-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.blog-hero .lead {
  max-width: 720px;
  margin: 27px 0 0;
  color: #dbe0f0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.status-note {
  display: inline-flex;
  margin-top: 28px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 209, 147, .3);
  border-radius: 999px;
  color: #ffe3bd;
  background: rgba(241, 154, 56, .1);
  font-size: .86rem;
  font-weight: 760;
}

.articles-section { padding: clamp(55px, 8vw, 90px) 0 100px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; }
.section-head p { max-width: 440px; margin: 0; color: var(--muted); font-size: .96rem; }
.article-tools { display: flex; gap: 12px; margin-bottom: 25px; }
.search-field {
  width: min(520px, 100%);
  min-height: 52px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  box-shadow: 0 8px 22px rgba(27, 35, 57, .04);
}
.search-field:focus { outline: 3px solid rgba(118, 89, 255, .2); border-color: var(--violet); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(173, 159, 214, .22);
  border-radius: 22px;
  color: #f8f6ff;
  background: linear-gradient(165deg, #171622, #11121a);
  box-shadow: 0 22px 55px rgba(20, 19, 31, .16);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); border-color: rgba(168, 139, 255, .5); box-shadow: 0 28px 65px rgba(20, 19, 31, .23); }
.article-card[hidden] { display: none; }
.card-media { display: block; overflow: hidden; border-bottom: 1px solid rgba(173, 159, 214, .18); background: #090a0f; }
.card-image { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .card-image { transform: scale(1.025); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; color: #a8a5b2; font-size: .74rem; font-weight: 720; }
.category { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(176, 146, 255, .18); border-radius: 999px; color: #d5c1ff; background: rgba(118, 89, 255, .16); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.article-card h3 { margin: 17px 0 12px; font-size: 1.34rem; line-height: 1.2; letter-spacing: -.025em; }
.article-card h3 a { color: #fbfaff; text-decoration: none; }
.article-card h3 a:hover { color: #d8c9ff; }
.article-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #aaa8b3; font-size: .9rem; line-height: 1.58; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(173, 159, 214, .16); }
.reading-time { color: #888692; font-size: .72rem; font-weight: 720; letter-spacing: .03em; }
.read-link { display: inline-flex; flex: none; align-items: center; gap: 5px; color: #d0b9ff; font-size: .79rem; font-weight: 850; text-decoration: none; }
.read-link:hover { color: white; }
.empty-state { padding: 28px; border: 1px dashed #b9bfcc; border-radius: 18px; color: var(--muted); background: white; }

.article-shell { padding-bottom: 100px; }
.breadcrumbs { padding: 23px 0; color: var(--muted); font-size: .84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "→"; margin-left: 7px; color: #9ca3b3; }
.breadcrumbs a { color: #4f586c; }
.article-header { padding: clamp(28px, 6vw, 67px) 0 40px; }
.article-header h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.article-deck { max-width: 780px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; color: var(--muted); font-size: .87rem; }
.article-cover {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto clamp(38px, 7vw, 72px);
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(20, 28, 50, .18);
}
.article-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }

.article-layout {
  display: grid;
  width: min(1100px, calc(100% - 36px));
  grid-template-columns: minmax(0, 790px) 260px;
  gap: 50px;
  align-items: start;
  margin: 0 auto;
}
.article-content { min-width: 0; }
.side-toc {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 118px);
  padding: 18px 17px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 16px 38px rgba(27, 35, 57, .08);
  backdrop-filter: blur(12px);
}
.side-toc h2 { margin: 0 0 14px; color: #5a6376; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }
.side-toc ol { margin: 0; padding: 0 0 0 15px; border-left: 2px solid #e1e3eb; list-style: none; }
.side-toc li { position: relative; margin: 0; }
.side-toc li::before { content: ""; position: absolute; top: 14px; left: -20px; width: 8px; height: 8px; border: 2px solid #c8cbd6; border-radius: 50%; background: var(--paper); }
.side-toc a { display: block; padding: 7px 0; color: #70788a; font-size: .79rem; font-weight: 680; line-height: 1.32; text-decoration: none; transition: color .18s ease; }
.side-toc a:hover, .side-toc a.is-active { color: #4932c9; }
.side-toc li:has(a.is-active)::before { border-color: var(--violet); background: var(--violet); box-shadow: 0 0 0 4px rgba(118, 89, 255, .13); }
.side-toc-btn, .side-toc-backdrop { display: none; }

.article-content h2, .article-content h3 { line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.article-content h2 { margin: 2.5em 0 .7em; font-size: clamp(1.8rem, 4vw, 2.65rem); }
.article-content h3 { margin: 1.8em 0 .55em; font-size: clamp(1.25rem, 2.6vw, 1.55rem); }
.article-content p { margin: 0 0 1.1em; }
.article-content ul, .article-content ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.article-content li { margin: .46em 0; }
.article-content strong { color: #111a2f; }
.article-content blockquote {
  margin: 1.4em 0;
  padding: 19px 22px;
  border-left: 4px solid var(--violet);
  border-radius: 0 15px 15px 0;
  color: #26304a;
  background: var(--violet-soft);
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.summary-box, .quick-answer, .toc-box, .minute-path, .action-box {
  margin: 0 0 28px;
  padding: clamp(21px, 4vw, 31px);
  border-radius: 20px;
}
.summary-box { border: 1px solid #e9d7be; background: var(--orange-soft); }
.quick-answer { border: 1px solid #dcd6ff; background: var(--violet-soft); }
.toc-box { border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.summary-box h2, .quick-answer h2, .toc-box h2, .minute-path h2, .action-box h2 { margin-top: 0; font-size: 1.38rem; }
.summary-box ul, .toc-box ol { margin-bottom: 0; }
.toc-box ol { columns: 2; column-gap: 40px; }
.toc-box li { break-inside: avoid; margin-bottom: .55em; }
.inline-figure { margin: 2em 0; }
.inline-figure img { width: 100%; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow); }
.inline-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; text-align: center; }
.time-table { width: 100%; margin: 1.5em 0 2em; border-collapse: collapse; font-size: .92rem; }
.time-table th, .time-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.time-table th { color: #3b2a9f; background: var(--violet-soft); }
.prompt-box { margin: 1.25em 0; padding: 20px; border: 1px solid #d9dcec; border-radius: 16px; background: white; }
.prompt-box .prompt-label { display: block; margin-bottom: 8px; color: #6a4ee9; font-size: .76rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.minute-path { margin-top: 2.5em; border: 1px solid #bfe0d3; background: #eaf7f1; }
.faq { margin-top: 3em; }
.faq details { margin: 12px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; }
.faq summary { padding: 18px 48px 18px 19px; cursor: pointer; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 14px; right: 17px; color: #6a4ee9; font-size: 1.45rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 19px 18px; margin: 0; color: #40495f; }
.related { margin-top: 3em; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.related a { display: block; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: white; font-weight: 760; text-decoration: none; }
.related a:hover { border-color: #9d8dff; }
.author-box {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 3em;
  padding: 24px;
  border-radius: 20px;
  color: white;
  background: var(--navy);
}
.author-box img { width: 110px; height: 110px; border-radius: 18px; object-fit: cover; }
.author-box h2 { margin: 0 0 8px; color: white; font-size: 1.35rem; }
.author-box p { margin: 0; color: #dfe3ef; font-size: .93rem; }
.author-copy { min-width: 0; }
.author-label { display: block; margin-bottom: 4px; color: #bdb4ff; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.author-blog-link { display: inline-flex; margin-top: 10px; color: #ffe0b8; font-size: .84rem; font-weight: 800; text-decoration: none; }
.author-blog-link:hover { color: white; }
.action-box { margin-top: 2em; border: 1px solid #dfd3bb; background: #fff8eb; }
.action-box p:last-child { margin-bottom: 0; }

.site-footer { padding: 35px 0; color: #bdc3d4; background: var(--navy); font-size: .84rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.site-footer a { color: white; }

@media (max-width: 1140px) {
  .article-layout { display: block; width: min(790px, calc(100% - 36px)); }
  .side-toc {
    position: fixed;
    z-index: 95;
    top: auto;
    right: 12px;
    bottom: 78px;
    left: 12px;
    width: auto;
    max-height: min(72vh, 620px);
    transform: translateY(calc(100% + 110px));
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
  }
  .side-toc.is-open { transform: translateY(0); opacity: 1; }
  .side-toc-btn {
    position: fixed;
    z-index: 96;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: var(--navy);
    box-shadow: 0 14px 34px rgba(16, 26, 49, .3);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 820;
  }
  .side-toc-backdrop { position: fixed; z-index: 90; inset: 0; display: block; background: rgba(10, 16, 31, .5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .side-toc-backdrop.is-open { opacity: 1; pointer-events: auto; }
  body.toc-open { overflow: hidden; }
}

@media (max-width: 850px) {
  .article-grid { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 650px) {
  body { font-size: 16.5px; }
  .header-inner { min-height: 62px; }
  .brand-label { display: none; }
  .header-nav a:first-child { display: none; }
  .article-header h1 { font-size: clamp(2rem, 10vw, 2.4rem); overflow-wrap: anywhere; }
  .article-grid, .related-grid { grid-template-columns: 1fr; }
  .toc-box ol { columns: 1; }
  .article-cover { width: calc(100% - 22px); border-radius: 18px; }
  .container, .narrow { width: min(100% - 24px, 1160px); }
  .author-box { grid-template-columns: 76px 1fr; gap: 15px; padding: 18px; }
  .author-box img { width: 76px; height: 76px; border-radius: 14px; }
  .footer-inner { flex-direction: column; }
  .time-table { table-layout: fixed; font-size: .78rem; }
  .time-table th, .time-table td { padding: 9px 7px; overflow-wrap: anywhere; }
}

@media print {
  .site-header, .site-footer, .breadcrumbs, .article-cover, .article-tools, .side-toc, .side-toc-btn, .side-toc-backdrop { display: none !important; }
  body { color: #111; background: white; font-size: 11pt; }
  .article-shell { padding: 0; }
  .article-header { padding-top: 0; }
  .narrow, .container { width: 100%; }
  a { color: #111; text-decoration: none; }
  .summary-box, .quick-answer, .toc-box, .minute-path, .action-box, .author-box { border: 1px solid #bbb; color: #111; background: white; box-shadow: none; break-inside: avoid; }
  .author-box p, .author-box h2 { color: #111; }
}

/* Manual long-form article additions */
.table-wrap { max-width: 100%; margin: 1.5em 0 2em; overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 10px 28px rgba(27,35,57,.05); }
.table-wrap .time-table { min-width: 720px; margin: 0; }
.income-table td:first-child { min-width: 240px; font-weight: 750; color: var(--ink); }
@media (max-width: 650px) { .table-wrap { margin-right: -4px; margin-left: -4px; } .table-wrap .time-table { display: table; width: 100%; min-width: 0; table-layout: fixed; white-space: normal; font-size: .78rem; } .table-wrap .time-table th, .table-wrap .time-table td { padding: 9px 7px; overflow-wrap: anywhere; } .income-table td:first-child { min-width: 0; } }
