/* ============================================================
   LearnerPros blog: shared article layout
   Used by every article page under /blog/. Palette and logo
   match the main learnerpro.it.com homepage.
   ============================================================ */

:root{
  --ink:#111111;          /* headings, titles */
  --text:#333333;         /* body copy */
  --muted:#6B6B6B;        /* metadata */
  --line:#E8E8E8;         /* separators */
  --surface:#FAFAFA;      /* quiet section background */
  --accent:#B7F23D;       /* LearnerPros lime: primary buttons, brand mark */
  --accent-hover:#A8E62E;
  --primary:#168EE8;      /* LearnerPros blue: active states, rules, focus */
  --primary-text:#0878C9; /* blue for small text on white (AA contrast) */
  --primary-light:#F2F8FD;
  --wrap:1160px;
  --measure:720px;        /* article reading column */
  --gutter:24px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ============ BASE ============ */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  margin:0; background:#fff; color:var(--text);
  font-family:'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ font-family:'Manrope','Inter',sans-serif; color:var(--ink); margin:0; letter-spacing:-0.02em; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
img{ max-width:100%; height:auto; display:block; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible{
  outline:3px solid rgba(22,142,232,.45); outline-offset:2px; border-radius:4px;
}
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link{ position:absolute; left:16px; top:-48px; z-index:300; background:var(--ink); color:#fff; padding:10px 14px; border-radius:6px; font-weight:600; }
.skip-link:focus{ top:12px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 var(--gutter); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:10px 18px; border-radius:10px;
  font-weight:700; font-size:15px; line-height:1.2; border:1px solid transparent; cursor:pointer;
  transition:background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  text-decoration:none;
}
.btn-primary{ background:var(--accent); color:var(--ink); }
.btn-primary:hover{ background:var(--accent-hover); }
.btn-secondary{ background:#fff; color:var(--ink); border-color:#D4D4D4; }
.btn-secondary:hover{ border-color:var(--ink); }

/* ============ HEADER ============ */
.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(8px); -webkit-backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:32px; height:64px; }
.brand{ display:flex; align-items:center; gap:9px; flex-shrink:0; }
.brand-mark{
  width:29px; height:29px; border-radius:8px; flex-shrink:0;
  background:var(--accent); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-family:'Manrope','Inter',sans-serif; font-weight:700; font-size:9px; letter-spacing:-0.5px;
}
.brand-name{ display:flex; flex-direction:column; }
.brand-text{ font-family:'Manrope','Inter',sans-serif; font-weight:700; font-size:18px; line-height:1.2; color:var(--ink); letter-spacing:-0.6px; }
.brand-tagline{ font-size:9px; font-weight:500; line-height:1.3; color:#999999; }

.main-nav{ display:flex; align-items:center; gap:4px; }
.main-nav a, .main-nav button{
  display:inline-flex; align-items:center; height:64px; padding:0 12px;
  font-size:15px; font-weight:500; color:var(--text);
  background:none; border:none; cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-1px;
}
.main-nav a:hover, .main-nav button:hover{ color:var(--ink); }
.main-nav a[aria-current]{ color:var(--ink); font-weight:600; border-bottom-color:var(--primary); }
.header-cta{ margin-left:auto; min-height:40px; padding:8px 16px; font-size:14.5px; }
.menu-toggle{
  display:none; width:44px; height:44px; align-items:center; justify-content:center;
  background:none; border:1px solid var(--line); border-radius:8px; color:var(--ink); cursor:pointer;
}

/* ============ READING PROGRESS ============ */
.progress{ position:absolute; left:0; bottom:-1px; height:2px; width:0; background:var(--primary); }

/* ============ ARTICLE HEADER ============ */
.article-header{ padding:40px 0 32px; border-bottom:1px solid var(--line); }
.article-header .inner{ max-width:820px; }
.breadcrumb ol{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 20px; padding:0; list-style:none; font-size:14px; color:var(--muted); }
.breadcrumb li + li::before{ content:"/"; margin-right:6px; color:#C4C4C4; }
.breadcrumb a{ color:var(--muted); text-decoration:underline; text-decoration-color:#D4D4D4; text-underline-offset:3px; }
.breadcrumb a:hover{ color:var(--ink); }
.breadcrumb [aria-current]{ color:var(--ink); }
.eyebrow{ display:inline-block; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--primary-text); margin-bottom:12px; }
.article-header h1{ font-size:42px; line-height:1.15; font-weight:800; margin-bottom:16px; }
.dek{ font-size:19px; line-height:1.6; color:#4A4A4A; max-width:var(--measure); margin-bottom:24px; }
.byline{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; font-size:14.5px; color:var(--muted); }
.byline .author{ display:flex; align-items:center; gap:10px; color:var(--ink); font-weight:600; }
.byline .avatar{
  width:32px; height:32px; border-radius:8px; background:var(--accent); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-family:'Manrope','Inter',sans-serif; font-size:10px; font-weight:700;
}
.byline .sep{ color:#C4C4C4; }

/* ============ LAYOUT ============ */
.article-layout{
  display:grid; grid-template-columns:minmax(0,var(--measure)) 260px;
  justify-content:space-between; gap:64px; padding-top:40px; padding-bottom:16px;
}
.article-layout > .toc{ grid-column:2; grid-row:1; }
.article-layout > .article-body{ grid-column:1; grid-row:1; }

/* ============ TABLE OF CONTENTS ============ */
.toc{ align-self:start; position:sticky; top:88px; max-height:calc(100vh - 110px); overflow:auto; }
.toc summary{
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px;
  font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted);
  padding:0 0 10px; border-bottom:1px solid var(--line);
}
.toc summary::-webkit-details-marker{ display:none; }
.toc summary::after{ content:"+"; font-size:18px; font-weight:500; color:var(--ink); }
.toc[open] summary::after{ content:"–"; }
.toc ol{ list-style:none; margin:0; padding:8px 0 0; }
.toc li a{
  display:block; padding:7px 0 7px 12px; border-left:2px solid var(--line);
  font-size:14.5px; line-height:1.4; color:var(--text);
}
.toc li a:hover{ color:var(--ink); border-left-color:#B5B5B5; }
.toc li a.active{ color:var(--ink); font-weight:600; border-left-color:var(--primary); }

/* ============ ARTICLE BODY ============ */
.article-body{ font-size:18px; line-height:1.75; color:var(--text); min-width:0; }
.article-body > * + *{ margin-top:1.15em; }
.article-body h2{ font-size:28px; line-height:1.25; font-weight:800; margin-top:2.2em; }
.article-body h3{ font-size:21px; line-height:1.35; font-weight:700; margin-top:1.8em; }
.article-body h2 + *, .article-body h3 + *{ margin-top:.7em; }
.article-body ul, .article-body ol{ margin-bottom:0; padding-left:1.4em; }
.article-body li + li{ margin-top:.45em; }
.article-body li::marker{ color:var(--muted); }
.article-body strong{ color:var(--ink); font-weight:650; }
.article-body a:not(.btn){ color:var(--primary-text); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.article-body a:not(.btn):hover{ color:var(--ink); }
.article-body hr{ border:none; border-top:1px solid var(--line); margin:2.5em 0; }
.article-body blockquote{ margin-left:0; padding-left:20px; border-left:3px solid var(--line); color:#4A4A4A; font-style:italic; }
.article-body img{ border-radius:8px; }
.article-body figcaption{ font-size:14px; color:var(--muted); margin-top:8px; }

/* Tables: scroll sideways on small screens instead of overflowing */
.table-wrap, .table-scroll, .table-container{ overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:8px; }
.article-body table{ width:100%; border-collapse:collapse; font-size:15.5px; line-height:1.5; min-width:520px; }
.article-body th p, .article-body td p{ margin:0; }
.article-body th, .article-body td{ text-align:left; vertical-align:top; padding:12px 14px; border-bottom:1px solid var(--line); }
.article-body th{ background:var(--surface); color:var(--ink); font-weight:700; font-size:14px; }
.article-body tr:last-child td{ border-bottom:none; }

/* Callouts: quick answers, takeaways, tips */
.quick-answer, .key-takeaway, .tip-box, .highlight-box, .quick-fact-box{
  padding:20px 24px; border-left:4px solid var(--primary); border-radius:0 8px 8px 0;
  background:var(--primary-light); font-size:17px; line-height:1.65;
}
.quick-answer > * + *, .key-takeaway > * + *, .tip-box > * + *, .highlight-box > * + *, .quick-fact-box > * + *{ margin-top:.6em; }
.highlight-box h3{ margin-top:0; font-size:19px; }
.qa-label, .kt-label, .fact-badge{ display:block; font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--primary-text); }
.key-takeaway ul{ padding-left:1.2em; }

/* Two-up comparison boxes */
.fit-grid, .comparison-grid, .math-breakdown{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.fit-card, .comp-box, .mb-card{ padding:20px 22px; border:1px solid var(--line); border-radius:8px; font-size:16px; line-height:1.6; }
.fit-card h3, .comp-box h3, .mb-card h3{ font-size:17px; margin:0 0 10px; }
.fit-card ul, .comp-box ul{ padding-left:1.2em; }
.comp-box.new, .fit-card.ged{ border-color:var(--primary); box-shadow:inset 0 3px 0 var(--primary); }
.icon-check{ color:var(--primary-text); margin-right:4px; }
.mb-card .pct{ display:block; font-family:'Manrope','Inter',sans-serif; font-size:32px; font-weight:800; color:var(--ink); line-height:1.1; margin-bottom:6px; }
.mb-card p{ color:var(--text); }

/* Numbered steps */
ol.steps{ list-style:none; padding:0; counter-reset:step; }
ol.steps > li{ counter-increment:step; position:relative; padding-left:48px; }
ol.steps > li + li{ margin-top:1.1em; }
ol.steps > li::before{
  content:counter(step); position:absolute; left:0; top:2px;
  width:30px; height:30px; border-radius:50%; background:var(--ink); color:#fff;
  font-family:'Manrope','Inter',sans-serif; font-size:14px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
ol.steps > li > strong:first-child{ display:block; }

/* FAQ blocks */
.qa-block, .blog-faq-item, .faq-item{ padding:20px 0; border-top:1px solid var(--line); }
.qa-block .q, .blog-faq-item h3, .faq-item h3{ font-size:19px; line-height:1.4; font-weight:700; margin:0 0 6px; }
.article-body > .qa-block + .qa-block{ margin-top:0; }
.blog-faq-item + .blog-faq-item, .faq-item + .faq-item{ margin-top:0; }
.faq-section > h2{ margin-top:2.2em; }
.faq-section > h2 + .faq-item{ margin-top:.7em; }

/* In-article call to action */
.article-cta, .cta-inline, .final-cta{
  padding:24px 26px; border:1px solid var(--line); border-left:4px solid var(--primary);
  border-radius:8px; background:#fff; font-size:16.5px; line-height:1.6;
}
.article-cta h2, .article-cta h3, .cta-inline h3, .final-cta h2{ font-size:21px; margin:0 0 6px; }
.cta-row, .btn-row, .final-cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }

/* ============ RELATED + HELP ============ */
.after-article{ padding:48px 0 0; }
.related{ border-top:2px solid var(--ink); padding-top:20px; }
.related-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:4px; }
.related-head h2{ font-size:24px; font-weight:800; }
.related-head a{ font-size:15px; font-weight:600; color:var(--primary-text); text-decoration:underline; text-underline-offset:3px; }
.related-list{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:40px; list-style:none; margin:0; padding:0; }
.related-list li{ padding:20px 0; border-bottom:1px solid var(--line); }
.related-list .meta{ font-size:13.5px; color:var(--muted); margin-bottom:6px; }
.related-list .meta .cat{ font-weight:700; color:var(--primary-text); }
.related-list h3{ font-size:19px; line-height:1.3; font-weight:700; margin-bottom:6px; }
.related-list h3 a:hover{ color:var(--primary-text); }
.related-list p{ font-size:15px; color:var(--text); line-height:1.55; }
.related-more{ margin-top:16px; font-size:15px; }
.related-more a{ color:var(--primary-text); font-weight:600; text-decoration:underline; text-underline-offset:3px; }

.help-cta{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:center; margin-top:48px; padding:28px 32px; border:1px solid var(--line); border-left:4px solid var(--primary); border-radius:8px; background:var(--primary-light); }
.help-cta h2{ font-size:22px; font-weight:800; margin-bottom:6px; }
.help-cta p{ max-width:620px; }
.help-cta-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ============ FOOTER ============ */
.site-footer{ background:var(--ink); color:#fff; padding:48px 0 28px; margin-top:64px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-brand p{ font-size:14.5px; color:#B3B3B3; margin-top:12px; max-width:300px; }
.site-footer .brand-text{ color:#fff; }
.footer-col h2, .footer-col .footer-title{ font-family:'Inter',sans-serif; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#fff; margin:0 0 12px; }
.footer-col ul{ display:flex; flex-direction:column; gap:8px; list-style:none; margin:0; padding:0; }
.footer-col a, .footer-col button{ font-size:15px; color:#B3B3B3; background:none; border:none; padding:0; cursor:pointer; text-align:left; }
.footer-col a:hover, .footer-col button:hover{ color:#fff; text-decoration:underline; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:20px; font-size:13.5px; color:#999999; }
.site-footer a:focus-visible, .site-footer button:focus-visible{ outline-color:rgba(183,242,61,.7); }

/* ============ HELP WIDGET ============ */
.help-widget{ position:fixed; right:16px; bottom:16px; z-index:150; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.help-panel{
  display:none; flex-direction:column; gap:4px; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:8px; width:min(80vw,220px); box-shadow:0 12px 32px rgba(17,17,17,.14);
}
.help-panel.open{ display:flex; }
.help-option{
  display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 10px; border-radius:6px;
  border:none; background:none; cursor:pointer; text-align:left; width:100%;
  font-size:14.5px; font-weight:600; color:var(--ink);
}
.help-option:hover{ background:var(--surface); }
.help-option svg{ flex-shrink:0; color:var(--muted); }
.help-fab{
  display:flex; align-items:center; gap:8px; min-height:44px; padding:10px 16px; border-radius:999px;
  background:var(--primary-text); color:#fff; font-weight:600; font-size:14px; border:none; cursor:pointer;
  box-shadow:0 6px 18px rgba(17,17,17,.2);
}
.help-fab:hover{ background:#06629F; }
.help-fab .dot{ width:8px; height:8px; border-radius:50%; background:#22C55E; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px){
  .article-layout{ grid-template-columns:minmax(0,1fr); gap:0; max-width:calc(var(--measure) + 2 * var(--gutter)); }
  .article-layout > .toc, .article-layout > .article-body{ grid-column:1; grid-row:auto; }
  .toc{ position:static; max-height:none; overflow:visible; margin-bottom:32px; padding:14px 18px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
  .toc summary{ padding:0; border-bottom:none; min-height:28px; }
  .toc[open] summary{ padding-bottom:10px; border-bottom:1px solid var(--line); }
  .related-list{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 900px){
  .header-inner{ gap:12px; }
  .menu-toggle{ display:inline-flex; }
  .main-nav{
    display:none; position:absolute; left:0; right:0; top:64px;
    flex-direction:column; align-items:stretch; gap:0;
    background:#fff; border-bottom:1px solid var(--line);
    padding:8px var(--gutter) 16px; box-shadow:0 12px 24px rgba(17,17,17,.08);
  }
  .main-nav.open{ display:flex; }
  .main-nav a, .main-nav button{ height:48px; padding:0; border-bottom:1px solid var(--line); margin:0; width:100%; text-align:left; }
  .main-nav a[aria-current]{ border-bottom-color:var(--line); color:var(--primary-text); }
  .help-cta{ grid-template-columns:1fr; gap:20px; padding:24px; }
}
@media (max-width: 640px){
  :root{ --gutter:16px; }
  .header-cta{ padding:8px 12px; font-size:14px; }
  .brand-tagline{ display:none; }
  .article-header{ padding:24px 0 24px; }
  .article-header h1{ font-size:30px; }
  .dek{ font-size:17px; }
  .breadcrumb li:last-child{ display:none; }
  .article-layout{ padding-top:24px; }
  .article-body{ font-size:17px; }
  .article-body h2{ font-size:24px; }
  .article-body h3{ font-size:19px; }
  .fit-grid, .comparison-grid, .math-breakdown{ grid-template-columns:1fr; }
  .quick-answer, .key-takeaway, .tip-box, .highlight-box, .quick-fact-box{ padding:16px 18px; }
  .article-cta, .cta-inline, .final-cta{ padding:20px; }
  .cta-row .btn, .btn-row .btn, .final-cta-row .btn, .help-cta-actions .btn{ width:100%; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
}

/* Lead capture form inside an article */
.lead-box{ scroll-margin-top:90px; }
.lead-fields{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px; }
.lead-form label{ display:block; font-size:14px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.lead-form input[type="text"], .lead-form input[type="email"]{ width:100%; padding:12px 14px; border:1px solid #cfcfcf; border-radius:8px; background:#fff; font:inherit; font-size:16px; color:var(--ink); }
.lead-form input[type="text"]:focus, .lead-form input[type="email"]:focus{ outline:2px solid var(--primary); outline-offset:1px; border-color:var(--primary); }
.lead-form .lead-consent{ display:flex; gap:10px; align-items:flex-start; margin:14px 0; font-size:14px; line-height:1.5; font-weight:400; color:var(--text); cursor:pointer; }
.lead-consent input{ flex:none; width:17px; height:17px; margin-top:2px; }
.lead-hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.lead-form button{ border:0; cursor:pointer; }
.lead-form button:disabled{ opacity:.65; cursor:default; }
.lead-msg{ display:none; margin-top:12px; font-size:14px; font-weight:600; }
.lead-msg.ok{ display:block; color:#047857; }
.lead-msg.err{ display:block; color:#B91C1C; }
.lead-fine{ margin-top:10px; font-size:13px; color:var(--muted); }
@media (max-width:640px){ .lead-fields{ grid-template-columns:1fr; } }
