/* ---- study-guide-type-1: inline block 1 moved out 1/3 (Step 0, 2026-09-08) ---- */
/* ============================================================
       DESIGN TOKENS — lifted from homepage / article-restyled.html
       ============================================================ */
    :root {
      --dk: #080c16; --dk2: #0e1420; --dk3: #131b2e; --dk4: #192236;
      --db1: #1c2a42; --db2: #243350; --db3: #2e4068;
      --dtext: #edf1f9; --dt2: #7f96be; --dt3: #3f5278; --dt4: #243350;
      --lk: #ffffff; --lk2: #f8fafc; --lk3: #f1f5f9;
      --lb1: #e2eaf5; --lb2: #c8d8ee;
      --ltext: #0f1f3d; --lt2: #4a6690; --lt3: #8aa0c0; --lt4: #c8d8ee;
      --or: #F97316; --or2: #e86209;
      --ordim-d: rgba(249,115,22,.09); --orbd-d: rgba(249,115,22,.26);
      --orglow: rgba(249,115,22,.22);
      --ordim-l: #fff5ee; --orbd-l: rgba(249,115,22,.30);
      --gold: #f5b840; --green: #16a34a; --green-d: #34d399;
      --gdim-l: #f0fdf6; --gbd-l: rgba(22,163,74,.30);
      --warn: #b45309; --wdim-l: #fffaf0; --wbd-l: rgba(245,184,64,.55);
      --red: #dc2626; --rdim-l: #fef2f2;
      --r: 7px; --r2: 12px;
    }

    body {
      font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
      font-size: 16px; line-height: 1.5; color: var(--ltext);
      background: var(--lk); -webkit-font-smoothing: antialiased;
    }
    html { scroll-behavior: smooth; }

    /* ── Wide article container ── */
    .container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

    .breadcrumb {
      font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .03em;
      color: var(--lt3); margin: 28px 0 0;
    }
    .breadcrumb a { color: var(--lt2); text-decoration: none; }
    .breadcrumb a:hover { color: var(--or); }

    /* ── Full-width dark hero ── */
    .hero {
      background: var(--dk);
      background-image: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(249,115,22,.07), transparent 65%);
      margin: 22px 0 40px; padding: 52px 48px 44px; border-radius: var(--r2);
      border: 1px solid var(--db2);
    }
    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 7px;
      background: var(--ordim-d); border: 1px solid var(--orbd-d); border-radius: 20px;
      padding: 5px 13px; font-family: 'JetBrains Mono', monospace; font-size: 10px;
      font-weight: 600; color: var(--or); text-transform: uppercase; letter-spacing: .1em;
      margin-bottom: 18px;
    }
    .hero h1 {
      font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 900; font-size: clamp(30px, 4.2vw, 44px);
      line-height: 1.1; letter-spacing: -.5px; color: var(--dtext); margin-bottom: 14px;
    }
    .hero h1 em { color: var(--or); font-style: italic; font-weight: 700; }
    .hero .byline {
      font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--dt3);
      margin: 6px 0 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    }
    .hero .byline a { color: var(--or); text-decoration: none; }
    .hero .lead {
      font-size: 18px; font-weight: 400; color: var(--dt2); line-height: 1.65; max-width: 760px;
    }
    .hero .lead strong { color: var(--dtext); font-weight: 600; }
    /* TL;DR bullet block on the dark hero */
    .tldr {
      background: rgba(255,255,255,.03); border: 1px solid var(--db1); border-radius: var(--r);
      padding: 20px 24px; margin-top: 24px; max-width: 820px;
    }
    .tldr .tldr-label {
      font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
      letter-spacing: .12em; color: var(--gold); text-transform: uppercase;
    }
    .tldr ul { margin: 12px 0 0; padding-left: 20px; }
    .tldr li { color: var(--dt2); font-size: 15px; line-height: 1.55; margin-bottom: 8px; }
@media (max-width: 600px) {
  .tldr li { margin-bottom: 7px; line-height: 1.45; }
  .tldr ul { gap: 0; }
}

    .tldr li strong { color: var(--dtext); }
    .tldr li::marker { color: var(--or); }

    /* ── Two-column layout: main + sticky sidebar ── */
    .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
    /* Explicit placement: the sidebar takes the narrow column no matter where it
       sits in the source order. Two pages list <aside> first and were rendering
       the sidebar in the wide column with the article squeezed into 300px. */
    .layout > .sidebar, .layout > aside { grid-column: 2; grid-row: 1; }
    .layout > .article-body, .layout > .main-col { grid-column: 1; grid-row: 1; }
    @media (max-width: 960px) {
      .layout > .sidebar, .layout > aside,
      .layout > .article-body, .layout > .main-col { grid-column: 1; grid-row: auto; }
    }

    .main-col { max-width: 720px; min-width: 0; }
    .side-col { position: sticky; top: 88px; }

    /* ── Sidebar author card ── */
    .author-card {
      background: var(--lk2); border: 1px solid var(--lb1); border-radius: var(--r2);
      padding: 22px; margin-bottom: 22px;
    }
    .author-card .ac-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    .author-card img {
      width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
      border: 2px solid var(--lb1);
    }
    .author-card .ac-name { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: 17px; color: var(--ltext); line-height: 1.2; }
    .author-card .ac-role { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--lt2); margin-top: 3px; letter-spacing: .01em; }
    .author-card .ac-cred { font-size: 13.5px; line-height: 1.6; color: var(--lt2); margin: 0 0 12px; }
    .author-card .ac-link { font-size: 13px; font-weight: 600; color: var(--or); text-decoration: none; }
    .author-card .ac-link:hover { color: var(--or2); }

    /* ── Sidebar TOC ── */
    .toc {
      background: var(--lk); border: 1px solid var(--lb1); border-radius: var(--r2); padding: 20px 22px;
    }
    .toc .toc-label {
      font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600;
      letter-spacing: .12em; color: var(--lt3); text-transform: uppercase; margin-bottom: 12px;
    }
    .toc ul { list-style: none; margin: 0; padding: 0; }
    .toc li { margin: 0; }
    .toc a {
      display: block; padding: 6px 0; font-size: 13.5px; line-height: 1.4; color: var(--lt2);
      text-decoration: none; border-bottom: 1px solid transparent;
    }
    .toc a:hover { color: var(--or); }

    /* compact inline TOC for mobile (hidden on desktop) */
    .toc-inline { display: none; }

    /* ── Body typography ── */
    .article-body p { font-size: 17px; line-height: 1.75; color: var(--lt2); margin-bottom: 20px; }
    .article-body p strong { color: var(--ltext); font-weight: 600; }
    .article-body a { color: var(--or); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--orbd-l); }
    .article-body a:hover { color: var(--or2); border-bottom-color: var(--or); }
    .article-body em { font-style: italic; }
    .article-body h2 {
      font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: clamp(23px, 2.6vw, 29px);
      line-height: 1.2; color: var(--ltext); margin: 46px 0 16px; padding-bottom: 12px;
      border-bottom: 2px solid var(--lb1); position: relative; scroll-margin-top: 88px;
    }
    .article-body h2::after {
      content: ''; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px;
      background: linear-gradient(90deg, var(--or), var(--gold));
    }
    .article-body h3 { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: 20px; color: var(--ltext); margin: 28px 0 10px; }
    .article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
    .article-body li { font-size: 17px; line-height: 1.7; color: var(--lt2); margin-bottom: 10px; }
    .article-body li strong { color: var(--ltext); font-weight: 600; }
    .article-body li::marker { color: var(--or); }

    /* ── Compact callout / warn ── */
    .callout {
      background: var(--lk2); border: 1px solid var(--lb1); border-left: 4px solid var(--or);
      border-radius: var(--r); padding: 18px 22px; margin: 26px 0;
    }
    .callout h3 {
      font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
      text-transform: uppercase; letter-spacing: .1em; color: var(--or); margin: 0 0 8px;
    }
    .callout p { margin: 0; font-size: 16px; color: var(--lt2); line-height: 1.65; }
    .warn {
      background: var(--wdim-l); border: 1px solid var(--wbd-l); border-left: 4px solid var(--gold);
      border-radius: var(--r); padding: 18px 22px; margin: 26px 0;
    }
    .warn h3 {
      font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
      text-transform: uppercase; letter-spacing: .1em; color: var(--warn); margin: 0 0 8px;
    }
    .warn p { margin: 0; font-size: 16px; color: var(--lt2); line-height: 1.65; }
    .warn strong { color: var(--warn); }

    /* ── Tables ── */
    table {
      width: 100%; border-collapse: collapse; font-size: 15px; margin: 26px 0;
      border: 1px solid var(--lb1); border-radius: var(--r); overflow: hidden;
    }
    th { background: var(--lk3); color: var(--ltext); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--lb1); }
    td { padding: 11px 16px; border-bottom: 1px solid var(--lb1); color: var(--lt2); vertical-align: top; line-height: 1.5; }
    tr:last-child td { border-bottom: none; }
    tbody tr:hover td { background: rgba(15,31,61,.015); }
    .highlight-col { color: var(--green); font-weight: 700; }

    /* ── FAQ ── */
    .faq-item { background: var(--lk); border: 1px solid var(--lb1); border-radius: var(--r); margin-bottom: 8px; overflow: hidden; }
    .faq-q { padding: 16px 20px; font-weight: 600; font-size: 16px; color: var(--ltext); line-height: 1.45; background: var(--lk); }
    .faq-a { padding: 0 20px 18px; color: var(--lt2); font-size: 15px; line-height: 1.7; border-top: 1px solid var(--lb1); padding-top: 14px; }
    .faq-a strong { color: var(--ltext); }

    /* ── CTA band ── */
    .cta {
      background: var(--dk);
      background-image: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(249,115,22,.10), transparent 65%);
      border: 1px solid var(--db2); border-radius: var(--r2); padding: 48px 36px; text-align: center; margin: 52px 0;
    }
    .cta h2, .cta .cta-h { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: clamp(23px, 3vw, 32px); color: var(--dtext); margin: 0 0 12px; line-height: 1.15; border: none; padding: 0; }
    .cta h2::after { display: none; }
    .cta p { color: var(--dt2); font-size: 16px; line-height: 1.6; margin: 0 auto 6px; max-width: 540px; }
    .tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 24px auto 0; max-width: 540px; }
    .tool-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 14px 22px; background: var(--or); color: #fff; text-decoration: none; border-radius: var(--r); font-weight: 600; font-size: 15px; transition: all .2s ease; }
    .tool-btn:hover { background: var(--or2); transform: translateY(-1px); box-shadow: 0 4px 16px var(--orglow); }
    /* Buttons keep their own colour: .article-body a is more specific than
       .tool-btn and would otherwise paint the label orange on an orange fill. */
    .article-body .tool-btn { color: #fff; border-bottom: none; }
    .article-body .tool-btn.dark { color: var(--dtext); }
    .article-body .tool-btn:hover { text-decoration: none; border-bottom: none; }

    .tool-btn.dark { background: transparent; color: var(--dtext); border: 1px solid var(--db2); }
    .tool-btn.dark:hover { background: rgba(255,255,255,.05); border-color: var(--db3); transform: translateY(-1px); box-shadow: none; }

    /* ── Responsive: collapse to one column ── */
    @media (max-width: 960px) {
      .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
      .side-col { position: static; }
      .author-card { margin-bottom: 24px; }
      .toc { display: none; }
      .toc-inline {
        display: block; background: var(--lk2); border: 1px solid var(--lb1); border-radius: var(--r);
        padding: 14px 18px; margin: 0 0 30px;
      }
      .toc-inline .toc-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--lt3); text-transform: uppercase; margin-bottom: 8px; }
      .toc-inline ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
      .toc-inline a { font-size: 13px; color: var(--lt2); text-decoration: none; }
      .toc-inline a:hover { color: var(--or); }
    }
    @media (max-width: 600px) {
      .hero { padding: 38px 22px 34px; }
      .hero h1 { font-size: 26px; }
      .article-body h2 { font-size: 22px; }
      .article-body p, .article-body li { font-size: 16px; }
      .cta { padding: 34px 20px; }
      .container { padding: 0 16px; }
      table { font-size: 14px; }
      th, td { padding: 10px 12px; }
    }
    .appdata{margin:22px 0 26px;padding:18px 20px;background:#f0f9ff;border:1px solid #bae6fd;border-left:4px solid #0284c7;border-radius:0 10px 10px 0}
.appdata-label{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#0369a1;margin-bottom:8px}
.appdata p{margin:0 0 8px;line-height:1.65}
.appdata-note{font-size:13px;color:#475569;margin:0}

/* ---- study-guide-type-1: inline block 2 moved out 2/3 (Step 0, 2026-09-08) ---- */
/* ── Footer (legacy navy) ── */
footer { background: #0f172a; color: #94a3b8; padding: 56px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: #64748b; margin: 12px 0 20px; max-width: 260px; }
.footer-brand .footer-logo { font-size: 16px; font-weight: 700; color: #f1f5f9; }
.footer-badge { display: inline-block; padding: 5px 12px; background: rgba(0,122,204,0.15); color: #38bdf8; border-radius: 20px; font-size: 12px; font-weight: 600; }
.footer-col h3 { font-size: 13px; font-weight: 700; color: #f1f5f9; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #64748b; text-decoration: none; font-size: 14px; transition: color 0.15s; line-height: 1.4; display: block; }
.footer-col ul li a:hover { color: #38bdf8; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: #475569; }
.footer-bottom a { color: #475569; text-decoration: none; font-size: 13px; }
.footer-bottom a:hover { color: #94a3b8; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- study-guide-type-1: inline block 3 moved out 3/3 (Step 0, 2026-09-08) ---- */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:26px 0;width:0;min-width:100%}.table-wrap table{margin:0;min-width:640px}.table-wrap.fit table{min-width:0}
