/* ---- study-guide-type-3: inline block 1 moved out 1/3 (Step 0, 2026-09-08) ---- */
: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;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
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; }

/* ── Article shell ── */
.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); }

/* ── Hero (full width) ── */
.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: 20px;
}
.hero h1 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 900; font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12; letter-spacing: -.5px; color: var(--dtext); margin-bottom: 14px; max-width: 880px;
}
.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 20px; 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; }
.tldr {
  background: rgba(255,255,255,.03); border: 1px solid var(--db1); border-radius: var(--r);
  padding: 20px 24px; margin-top: 24px; max-width: 760px;
}
.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 ── */
.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; }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.author-card {
  background: var(--lk2); border: 1px solid var(--lb1); border-radius: var(--r2); padding: 20px 22px;
}
.author-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.author-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-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-role { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--lt2); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.author-card p { font-size: 13.5px; line-height: 1.55; color: var(--lt2); margin: 0 0 12px; }
.author-card a.why { font-size: 13px; font-weight: 600; color: var(--or); text-decoration: none; }
.author-card a.why:hover { color: var(--or2); }
.toc {
  background: var(--lk); border: 1px solid var(--lb1); border-radius: var(--r2); padding: 18px 20px;
}
.toc .toc-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; color: var(--lt3); text-transform: uppercase; margin-bottom: 12px;
}
.toc ul { list-style: none; }
.toc li { margin-bottom: 9px; }
.toc a { font-size: 13.5px; color: var(--lt2); text-decoration: none; line-height: 1.4; display: block; border-left: 2px solid var(--lb1); padding-left: 12px; transition: color .12s, border-color .12s; }
.toc a:hover { color: var(--or); border-left-color: var(--or); }
.toc-inline { display: none; }

/* ── Body typography ── */
.main-col p { font-size: 17px; line-height: 1.75; color: var(--lt2); margin-bottom: 20px; }
.main-col p strong { color: var(--ltext); font-weight: 600; }
.main-col a { color: var(--or); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--orbd-l); }
.main-col a:hover { color: var(--or2); border-bottom-color: var(--or); }
.main-col ul, .main-col ol { margin: 0 0 22px; padding-left: 24px; }
.main-col li { font-size: 17px; line-height: 1.7; color: var(--lt2); margin-bottom: 10px; }
.main-col li strong { color: var(--ltext); font-weight: 600; }
.main-col li::marker { color: var(--or); }
h2 {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: clamp(23px, 3vw, 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;
}
h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: linear-gradient(90deg, var(--or), var(--gold)); }
h3 { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: 20px; color: var(--ltext); margin: 28px 0 10px; }

/* ── 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: 13px 16px; text-align: left; font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--lb1); }
td { padding: 12px 16px; border-bottom: 1px solid var(--lb1); color: var(--lt2); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(15,31,61,.015); }
td strong { color: var(--ltext); }

/* ── 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: .12em; color: var(--or); margin: 0 0 8px; }
.callout p, .callout { font-size: 15.5px; line-height: 1.65; }
.callout p { margin: 0; color: var(--lt2); }
.callout strong { color: var(--ltext); }
.callout a { color: var(--or); text-decoration: none; font-weight: 500; }
.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; color: var(--lt2); font-size: 15.5px; line-height: 1.65; }
.warn strong { color: var(--warn); }

/* ── 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 16px; color: var(--lt2); font-size: 15px; line-height: 1.7; border-top: 1px solid var(--lb1); padding-top: 13px; }
.faq-a strong { color: var(--ltext); }

/* ── CTA ── */
.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, 3.4vw, 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: 520px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 22px auto 0; max-width: 480px; }
.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); }
.btn-w { display: inline-block; background: var(--or); color: #fff; padding: 14px 32px; border-radius: var(--r); text-decoration: none; font-weight: 600; margin-top: 18px; transition: all .2s ease; }
.btn-w:hover { background: var(--or2); transform: translateY(-1px); box-shadow: 0 4px 16px var(--orglow); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { position: static; flex-direction: column; margin-bottom: 28px; }
  .toc { order: 2; }
  .toc-inline { display: block; }
  .toc-stack { display: none; }
  .author-card { order: 1; }
  .main-col { max-width: 100%; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 38px 24px 34px; }
  .hero h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  .main-col p, .main-col li { font-size: 16px; }
  .cta { padding: 34px 22px; }
  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-3: inline block 2 moved out 2/3 (Step 0, 2026-09-08) ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Header ── */

/* ── Nav ── */

/* ── Dropdown ── */

/* ── CTA Button ── */

/* ── Auth buttons ── */
@media (max-width: 768px) {
}

/* ── Footer ── */
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; }

/* ── Mobile ── */
@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-3: 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}
