/* BarExamOntario.com — site styles (theme-independent, plugin-scoped) */

:root {
  --beo-bg: hsl(40, 30%, 98%);
  --beo-fg: hsl(222, 32%, 14%);
  --beo-card: #fff;
  --beo-primary: hsl(214, 65%, 28%);
  --beo-primary-fg: hsl(40, 30%, 98%);
  --beo-secondary: hsl(40, 22%, 94%);
  --beo-muted: hsl(220, 12%, 42%);
  --beo-accent: hsl(36, 75%, 44%);
  --beo-border: hsl(35, 14%, 87%);
  --beo-radius: 0.75rem;
  --beo-rose: hsl(350, 70%, 50%);
  --beo-blue: hsl(217, 80%, 45%);
  --beo-amber: hsl(36, 75%, 44%);
  --beo-emerald: hsl(160, 70%, 32%);
  --beo-violet: hsl(262, 60%, 50%);
}

#beo-main, .beo-header, .beo-footer { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
#beo-main [hidden], .beo-header [hidden], .beo-search-overlay[hidden] { display: none !important; }
#beo-main h1, #beo-main h2, #beo-main h3, .beo-brand-text, .beo-cd-num, .beo-stats dd, .beo-footer h3,
.beo-quiz-title, .beo-engage-title { font-family: 'Fraunces', Georgia, serif; }

#beo-main { background: var(--beo-bg); color: var(--beo-fg); line-height: 1.5; }
#beo-main *, .beo-header *, .beo-footer *, .beo-search-overlay * { box-sizing: border-box; }
#beo-main a { color: inherit; text-decoration: none; }
#beo-main p { margin: 0; }
#beo-main h1, #beo-main h2, #beo-main h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
#beo-main ul, #beo-main ol { margin: 0; padding: 0; list-style: none; }
#beo-main button { font-family: inherit; cursor: pointer; }
#beo-main svg, .beo-header svg, .beo-footer svg, .beo-search-overlay svg { width: 1em; height: 1em; flex-shrink: 0; }
#beo-main img { max-width: 100%; }
#beo-main ::selection { background: hsla(36, 75%, 44%, 0.25); }

.c-primary { color: var(--beo-primary); }
.c-accent { color: var(--beo-accent); }
.beo-small { font-size: 12px; color: var(--beo-muted); }
.beo-muted { color: var(--beo-muted); line-height: 1.7; margin-top: 14px !important; }
.beo-mb { margin-bottom: 36px !important; }
.beo-center { text-align: center; margin-top: 40px; }
.beo-mx { margin-left: auto; margin-right: auto; }
.beo-maxw { max-width: 36rem; }
.beo-empty { text-align: center; padding: 70px 0; color: var(--beo-muted); border: 1px dashed var(--beo-border); border-radius: 16px; }
.beo-empty a { color: var(--beo-primary); font-weight: 600; text-decoration: underline; }

.beo-wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.beo-wrap-narrow { max-width: 56rem; margin: 0 auto; padding: 0 20px; }
.beo-section { padding: 56px 20px; }
.beo-section-narrow { padding: 48px 20px; }
.beo-band { border-top: 1px solid var(--beo-border); background: hsla(40, 22%, 94%, 0.5); padding: 56px 0; }
.beo-band > .beo-wrap { padding: 0 20px; }

/* ---------- Buttons / links ---------- */
.beo-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 600; border: 0; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.beo-btn-primary { background: var(--beo-primary); color: var(--beo-primary-fg); }
.beo-btn-primary:hover { transform: scale(1.03); }
.beo-btn-outline { border: 1px solid hsla(214, 65%, 28%, .3); color: var(--beo-primary); background: transparent; }
.beo-btn-outline:hover { background: var(--beo-primary); color: var(--beo-primary-fg); }
.beo-btn-lg { padding: 15px 28px; }
.beo-link { display: inline-flex; align-items: center; gap: 6px; color: var(--beo-primary); font-weight: 600; font-size: 14px; }
.beo-link svg { transition: transform .2s; }
.beo-link:hover svg { transform: translateX(3px); }
.beo-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--beo-border); background: transparent; color: var(--beo-muted); position: relative; }
.beo-icon-btn:hover { color: var(--beo-accent); border-color: hsla(36,75%,44%,.4); }

/* ---------- Reading progress ---------- */
.beo-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; }
#beo-progress-bar { display: block; height: 100%; width: 0; background: var(--beo-accent); transition: width .1s linear; }

/* ---------- Header ---------- */
.beo-header { position: sticky; top: 0; z-index: 1000; background: hsla(40, 30%, 98%, .95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--beo-border); }
.beo-nav { max-width: 72rem; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.beo-brand { display: inline-flex; align-items: center; gap: 10px; }
.beo-brand-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--beo-primary); color: var(--beo-primary-fg); }
.beo-brand-icon svg { width: 20px; height: 20px; }
.beo-brand-text { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--beo-fg); }
.beo-nav-links { display: flex; align-items: center; gap: 4px; }
.beo-nav-links > a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--beo-muted); }
.beo-nav-links > a:hover { color: var(--beo-fg); background: var(--beo-secondary); }
.beo-nav-links > a.active { color: var(--beo-primary); background: hsla(214,65%,28%,.08); }
.beo-nav-links kbd { background: hsla(40,30%,98%,.2); border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 700; }
.beo-nav-mobile-btns { display: none; gap: 6px; }
.beo-mobile-menu { border-top: 1px solid var(--beo-border); padding: 12px 20px; }
.beo-mobile-menu a { display: block; padding: 12px 16px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--beo-muted); }
.beo-mobile-menu a:hover { background: var(--beo-secondary); color: var(--beo-fg); }

/* Saved dropdown */
.beo-saved-wrap { position: relative; margin-left: 4px; }
.beo-saved-count { position: absolute; top: -4px; right: -4px; background: var(--beo-accent); color: #fff; font-size: 9px; font-weight: 800; border-radius: 999px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.beo-saved-drop { position: absolute; right: 0; top: 44px; width: 320px; background: var(--beo-card); border: 1px solid var(--beo-border); border-radius: 16px; padding: 12px; box-shadow: 0 18px 40px hsla(214,65%,28%,.12); z-index: 60; }
.beo-saved-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--beo-muted); padding: 4px 8px 10px; }
.beo-saved-drop a { display: block; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--beo-fg); }
.beo-saved-drop a:hover { background: var(--beo-secondary); }
.beo-saved-drop a span { display: block; font-size: 12px; font-weight: 400; color: var(--beo-muted); margin-top: 2px; }
.beo-saved-empty { padding: 6px 10px 10px; font-size: 13px; color: var(--beo-muted); line-height: 1.5; }

/* ---------- Search overlay ---------- */
.beo-search-overlay { position: fixed; inset: 0; z-index: 2000; background: hsla(222,32%,14%,.4); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.beo-search-box { width: 100%; max-width: 560px; background: var(--beo-card); border: 1px solid var(--beo-border); border-radius: 18px; box-shadow: 0 30px 80px hsla(222,32%,14%,.3); overflow: hidden; }
.beo-search-inputwrap { position: relative; }
.beo-search-inputwrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--beo-muted); width: 16px; height: 16px; }
.beo-search-inputwrap input { width: 100%; border: 0; outline: none; padding: 16px 18px 16px 44px; font-size: 15px; font-family: inherit; background: transparent; color: var(--beo-fg); border-bottom: 1px solid var(--beo-border); }
.beo-search-box ul { max-height: 320px; overflow-y: auto; }
.beo-search-box ul li a { display: block; padding: 12px 18px; }
.beo-search-box ul li a:hover, .beo-search-box ul li a.sel { background: var(--beo-secondary); }
.beo-search-box ul li strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.beo-search-box ul li span { font-size: 12px; color: var(--beo-muted); }
.beo-search-foot { padding: 10px 18px; font-size: 11px; color: var(--beo-muted); border-top: 1px solid var(--beo-border); }

/* ---------- Hero ---------- */
.beo-hero { background: linear-gradient(to bottom, hsla(214,65%,28%,.05), var(--beo-bg)); padding: 70px 0 56px; }
.beo-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; max-width: 46rem; }
.beo-hero-sub { margin-top: 22px; max-width: 42rem; font-size: 18px; color: var(--beo-muted); line-height: 1.65; }
.beo-eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid hsla(36,75%,44%,.4); background: hsla(36,75%,44%,.1); color: var(--beo-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.beo-eyebrow-sm { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--beo-accent); margin-bottom: 20px; }
.beo-pills { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.beo-pill { border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; color: hsla(222,32%,14%,.85); transition: all .2s; }
.beo-pill:hover { border-color: hsla(214,65%,28%,.5); color: var(--beo-primary); box-shadow: 0 2px 8px hsla(214,65%,28%,.08); }
.beo-stats { margin-top: 44px; padding-top: 26px; border-top: 1px solid hsla(35,14%,87%,.7); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 42rem; }
.beo-stats dd { font-size: 28px; font-weight: 600; color: var(--beo-primary); margin: 0; }
.beo-stats dt { font-size: 13px; color: var(--beo-muted); margin-top: 4px; }

/* ---------- Countdown ---------- */
.beo-countdown { background: var(--beo-card); border: 1px solid var(--beo-border); border-radius: 24px; padding: 28px; box-shadow: 0 1px 3px hsla(214,65%,28%,.05); }
.beo-cd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.beo-cd-titlewrap { display: flex; gap: 12px; align-items: center; }
.beo-cd-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: hsla(214,65%,28%,.1); color: var(--beo-primary); }
.beo-cd-icon svg { width: 20px; height: 20px; }
.beo-cd-head h2 { font-size: 22px; }
.beo-cd-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.beo-cd-card { position: relative; border: 1px solid var(--beo-border); border-radius: 18px; padding: 22px; background: var(--beo-card); }
.beo-cd-card.urgent { border-color: hsla(36,75%,44%,.6); background: linear-gradient(135deg, hsla(36,75%,44%,.09), var(--beo-card)); box-shadow: 0 10px 30px hsla(36,75%,44%,.1); }
.beo-urgent { position: absolute; top: 14px; right: 14px; background: var(--beo-accent); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.beo-cd-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.beo-cd-sitting { font-size: 14px; font-weight: 600; margin-top: 4px; }
.beo-cd-date { font-size: 12px; color: var(--beo-muted); margin-top: 2px; }
.beo-cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.beo-cd-grid > div { background: hsla(40,22%,94%,.7); border-radius: 12px; padding: 10px 4px; text-align: center; }
.beo-cd-num { display: block; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.beo-cd-unit { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--beo-muted); margin-top: 6px; }
.beo-cd-reg { font-size: 11px; color: var(--beo-muted); margin-top: 14px; }
.beo-cd-reg strong { color: hsla(222,32%,14%,.85); }
.beo-cd-all { border-top: 1px solid var(--beo-border); margin-top: 22px; padding-top: 18px; }
.beo-cd-all-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--beo-muted); margin-bottom: 12px; }
.beo-cd-rows { display: grid; gap: 8px; grid-template-columns: 1fr; }
.beo-cd-row { display: flex; justify-content: space-between; align-items: center; background: hsla(40,22%,94%,.5); border-radius: 12px; padding: 10px 16px; font-size: 12px; }
.beo-cd-days { font-weight: 700; color: var(--beo-muted); font-variant-numeric: tabular-nums; }
.beo-cd-note { font-size: 11px; color: hsla(220,12%,42%,.8); margin-top: 18px; line-height: 1.6; }

/* ---------- Quiz + most read row ---------- */
.beo-quiz-row { display: grid; gap: 28px; grid-template-columns: 1fr; }
.beo-quiz { background: var(--beo-card); border: 1px solid var(--beo-border); border-radius: 24px; padding: 28px; }
.beo-quiz-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; }
.beo-quiz-title svg { color: var(--beo-accent); }
.beo-quiz-progress { display: flex; gap: 6px; margin: 18px 0 22px; }
.beo-quiz-progress span { height: 4px; flex: 1; border-radius: 999px; background: var(--beo-secondary); }
.beo-quiz-progress span.done { background: var(--beo-accent); }
.beo-quiz-q { font-family: 'Fraunces', Georgia, serif; font-size: 21px; font-weight: 600; margin-bottom: 16px; }
.beo-quiz-opt { display: flex; width: 100%; align-items: center; justify-content: space-between; text-align: left; border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 14px; padding: 14px 18px; font-size: 14px; font-weight: 500; margin-bottom: 10px; transition: all .15s; color: var(--beo-fg); }
.beo-quiz-opt:hover { border-color: hsla(214,65%,28%,.5); background: hsla(214,65%,28%,.04); }
.beo-quiz-opt svg { color: var(--beo-muted); }
.beo-quiz-result h3 { font-size: 24px; margin-bottom: 10px; }
.beo-quiz-result p { color: var(--beo-muted); line-height: 1.7; margin-bottom: 18px; }
.beo-quiz-result ul { display: grid; gap: 8px; }
.beo-quiz-result ul a { display: flex; align-items: center; gap: 8px; border: 1px solid var(--beo-border); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--beo-primary); }
.beo-quiz-result ul a:hover { border-color: hsla(214,65%,28%,.5); }
.beo-quiz-restart { margin-top: 16px; background: none; border: 0; color: var(--beo-muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.beo-quiz-restart:hover { color: var(--beo-primary); }

.beo-read-card { padding: 26px; }
.beo-read-list { display: grid; gap: 18px; margin-bottom: 22px; }
.beo-read-list a { display: flex; gap: 14px; align-items: flex-start; }
.beo-read-num { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 700; color: hsla(36,75%,44%,.6); line-height: 1; }
.beo-read-title { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 16px; font-weight: 600; line-height: 1.35; }
.beo-read-list a:hover .beo-read-title { color: var(--beo-primary); }
.beo-read-meta { display: block; font-size: 12px; color: var(--beo-muted); margin-top: 5px; }

/* ---------- Hubs ---------- */
.beo-hubs { display: grid; gap: 18px; grid-template-columns: 1fr; }
.beo-hub { display: block; background: var(--beo-card); border: 1px solid var(--beo-border); border-radius: 18px; padding: 24px; transition: all .2s; }
.beo-hub:hover { border-color: hsla(214,65%,28%,.4); transform: translateY(-4px); box-shadow: 0 16px 32px hsla(214,65%,28%,.06); }
.beo-hub h3 { font-size: 18px; margin-bottom: 8px; }
.beo-hub:hover h3 { color: var(--beo-primary); }
.beo-hub p { font-size: 14px; color: var(--beo-muted); line-height: 1.6; }

/* ---------- NCA section ---------- */
.beo-nca-band { background: hsla(214,65%,28%,.04); }
.beo-nca-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.beo-nca-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; margin-bottom: 6px; }
.beo-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.beo-nca-steps { display: grid; gap: 12px; }
.beo-nca-step, .beo-guide-step { display: flex; gap: 14px; background: var(--beo-card); border: 1px solid var(--beo-border); border-radius: 16px; padding: 18px; }
.beo-nca-step h3, .beo-guide-step h3 { font-size: 16px; margin-bottom: 4px; }
.beo-nca-step p, .beo-guide-step p { font-size: 14px; color: var(--beo-muted); line-height: 1.6; }
.beo-step-detail { margin-top: 8px; font-size: 13px; }
.beo-nca-num { display: flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: hsla(214,65%,28%,.1); color: var(--beo-primary); font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 14px; }

/* ---------- Cards / grids ---------- */
.beo-grid-3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.beo-grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.beo-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.beo-section-head h2, .beo-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.beo-card { display: block; background: var(--beo-card); border: 1px solid var(--beo-border); border-radius: 20px; padding: 24px; transition: all .2s; height: 100%; }
a.beo-card:hover { border-color: hsla(214,65%,28%,.4); transform: translateY(-3px); box-shadow: 0 14px 30px hsla(214,65%,28%,.07); }
.beo-card h3 { font-size: 19px; line-height: 1.3; margin: 14px 0 10px; }
.beo-card > p { font-size: 14px; color: var(--beo-muted); line-height: 1.65; }
.beo-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid hsla(35,14%,87%,.7); }
.beo-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--beo-muted); }
.beo-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.beo-chip { display: inline-flex; align-items: center; border-radius: 999px; background: hsla(214,65%,28%,.09); color: var(--beo-primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; }
.beo-card-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.beo-author-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.beo-avatar { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; background: hsla(214,65%,28%,.1); color: var(--beo-primary); font-size: 11px; font-weight: 800; }

/* Flair badges + matching card treatment */
.beo-flair { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 11px; }
.beo-flair svg { width: 11px; height: 11px; }
.beo-flair-trending { background: hsla(350,70%,50%,.12); color: var(--beo-rose); }
.beo-flair-most-asked { background: hsla(217,80%,45%,.12); color: var(--beo-blue); }
.beo-flair-most-read { background: hsla(36,75%,44%,.12); color: var(--beo-amber); }
.beo-flair-editors-pick { background: hsla(160,70%,32%,.12); color: var(--beo-emerald); }
.beo-flair-new { background: hsla(262,60%,50%,.12); color: var(--beo-violet); }
.beo-card-flair-trending { border-color: hsla(350,70%,50%,.35); background: linear-gradient(135deg, hsla(350,70%,50%,.06), var(--beo-card)); }
.beo-card-flair-most-asked { border-color: hsla(217,80%,45%,.3); background: linear-gradient(135deg, hsla(217,80%,45%,.06), var(--beo-card)); }
.beo-card-flair-most-read { border-color: hsla(36,75%,44%,.35); background: linear-gradient(135deg, hsla(36,75%,44%,.07), var(--beo-card)); }
.beo-card-flair-editors-pick { border-color: hsla(160,70%,32%,.3); background: linear-gradient(135deg, hsla(160,70%,32%,.07), var(--beo-card)); }
.beo-card-flair-new { border-color: hsla(262,60%,50%,.3); background: linear-gradient(135deg, hsla(262,60%,50%,.06), var(--beo-card)); }

/* ---------- Page head / filters ---------- */
.beo-pagehead { background: linear-gradient(to bottom, hsla(214,65%,28%,.05), var(--beo-bg)); padding: 56px 0 40px; }
.beo-pagehead h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.beo-center-head { text-align: center; }
.beo-center-head .beo-hero-sub { margin-left: auto; margin-right: auto; }
.beo-filterbar { margin-top: 30px; display: grid; gap: 16px; }
.beo-filterbar .beo-search-inputwrap input { border: 1px solid var(--beo-border); border-radius: 999px; background: var(--beo-card); padding: 14px 20px 14px 44px; font-size: 14px; }
.beo-filterbar .beo-search-inputwrap input:focus { border-color: var(--beo-primary); box-shadow: 0 0 0 3px hsla(214,65%,28%,.12); }
.beo-cat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.beo-cat-btn { border-radius: 999px; padding: 9px 16px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--beo-border); background: var(--beo-card); color: var(--beo-muted); transition: all .15s; }
.beo-cat-btn:hover { border-color: hsla(214,65%,28%,.4); color: var(--beo-fg); }
.beo-cat-btn.active { background: var(--beo-primary); color: var(--beo-primary-fg); border-color: var(--beo-primary); }

/* ---------- Article page ---------- */
.beo-article-wrap { padding: 36px 20px 70px; }
.beo-crumbs { font-size: 13px; color: var(--beo-muted); margin-bottom: 26px; }
.beo-crumbs a { color: var(--beo-muted); }
.beo-crumbs a:hover { color: var(--beo-primary); }
.beo-crumbs span { margin: 0 6px; }
.beo-crumbs > span:last-child { margin: 0; color: var(--beo-fg); font-weight: 500; }
.beo-article-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.beo-article-title { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; margin: 18px 0 20px; }
.beo-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; color: var(--beo-muted); margin-bottom: 16px; }
.beo-article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.beo-save-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--beo-muted); margin-bottom: 12px; transition: all .15s; }
.beo-save-btn:hover { border-color: hsla(36,75%,44%,.5); color: var(--beo-accent); }
.beo-save-btn.saved { border-color: hsla(36,75%,44%,.5); color: var(--beo-accent); }
.beo-save-btn.saved svg { fill: currentColor; }

.beo-article-body p { font-size: 1.05rem; line-height: 1.85; color: hsla(222,32%,14%,.85); margin: 0 0 24px; }
.beo-article-body h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 48px 0 18px; scroll-margin-top: 110px; }
.beo-article-body h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 36px 0 14px; scroll-margin-top: 110px; }
.beo-article-body ul { margin: 0 0 24px; display: grid; gap: 10px; }
.beo-article-body ul li { position: relative; padding-left: 24px; font-size: 1.02rem; line-height: 1.75; color: hsla(222,32%,14%,.85); }
.beo-article-body ul li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 999px; background: var(--beo-accent); }
.beo-article-body strong { font-weight: 600; color: var(--beo-fg); }
.beo-quote { border-left: 4px solid var(--beo-accent); background: hsla(40,22%,94%,.7); border-radius: 0 16px 16px 0; padding: 20px 24px; margin: 30px 0; }
.beo-quote svg { color: var(--beo-accent); width: 20px; height: 20px; margin-bottom: 8px; }
.beo-quote p { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-style: italic; line-height: 1.6; margin: 0 !important; }
.beo-callout { border: 1px solid hsla(36,75%,44%,.4); background: hsla(36,75%,44%,.08); border-radius: 16px; padding: 22px; margin: 30px 0; }
.beo-callout p { margin: 0 !important; }
.beo-callout-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--beo-accent); margin-bottom: 8px !important; }
.beo-callout-title svg { width: 16px; height: 16px; }
.beo-table-wrap { overflow-x: auto; border: 1px solid var(--beo-border); border-radius: 16px; margin: 30px 0; }
.beo-table-wrap table { width: 100%; font-size: 14px; border-collapse: collapse; }
.beo-table-wrap th { text-align: left; font-weight: 700; padding: 14px 20px; background: var(--beo-secondary); color: var(--beo-fg); }
.beo-table-wrap td { padding: 13px 20px; line-height: 1.6; color: hsla(222,32%,14%,.85); vertical-align: top; }
.beo-table-wrap tbody tr:nth-child(even) { background: hsla(40,22%,94%,.4); }

/* Engagement */
.beo-engage { margin-top: 46px; border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.beo-engage-title { font-size: 19px; font-weight: 600; }
.beo-engage-row { display: flex; align-items: center; gap: 14px; margin: 12px 0 8px; flex-wrap: wrap; }
.beo-engage .beo-btn svg { width: 15px; height: 15px; }
.beo-btn.upvoted { background: hsla(214,65%,28%,.1); color: var(--beo-primary); cursor: default; transform: none; }
.beo-btn.upvoted svg { fill: currentColor; }
.beo-shared-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--beo-muted); }
.beo-share-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--beo-muted); margin-bottom: 12px; }
.beo-share-row { display: flex; gap: 10px; }
.beo-share-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--beo-border); background: var(--beo-card); color: var(--beo-muted); transition: all .15s; }
.beo-share-btn:hover { border-color: var(--beo-primary); color: var(--beo-primary); transform: scale(1.06); }
.beo-share-btn svg { width: 16px; height: 16px; }
.beo-share-btn .beo-fill { fill: currentColor; stroke: none; }
#beo-copied { color: var(--beo-primary); font-weight: 600; margin-top: 8px; }

.beo-helpful { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--beo-border); border-radius: 16px; padding: 18px 22px; }
.beo-helpful p { font-size: 14px; font-weight: 600; margin-right: 6px; }
.beo-helpful .beo-btn { padding: 9px 16px; font-size: 13px; }
.beo-helpful.done p { color: var(--beo-primary); font-weight: 700; }
.beo-helpful.done .beo-btn { display: none; }

/* FAQ items */
.beo-article-faqs { margin-top: 46px; }
.beo-article-faqs h2 { font-size: 26px; margin-bottom: 18px; }
.beo-faq-item { border: 1px solid var(--beo-border); border-radius: 14px; background: var(--beo-card); margin-bottom: 10px; }
.beo-faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.beo-faq-item summary::-webkit-details-marker { display: none; }
.beo-faq-item summary::after { content: '+'; font-size: 20px; color: var(--beo-muted); flex-shrink: 0; transition: transform .2s; }
.beo-faq-item[open] summary::after { transform: rotate(45deg); }
.beo-faq-item p { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.75; color: hsla(222,32%,14%,.85); }
.beo-faq-section { margin-bottom: 40px; }
.beo-faq-section h2 { font-size: 26px; margin-bottom: 6px; }
.beo-faq-section > p { margin-bottom: 18px; }

.beo-about-author { margin-top: 46px; }
.beo-about-author h2 { font-size: 22px; margin-bottom: 14px; }
.beo-author-card { border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 16px; padding: 22px; }
.beo-author-role { font-size: 12px; color: var(--beo-muted); margin: 6px 0 10px; }
.beo-author-card > p:last-child { font-size: 14px; color: var(--beo-muted); line-height: 1.65; }

.beo-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 46px; }
.beo-pn { border: 1px solid var(--beo-border); border-radius: 16px; padding: 18px 20px; background: var(--beo-card); transition: all .15s; }
.beo-pn:hover { border-color: hsla(214,65%,28%,.4); }
.beo-pn span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--beo-muted); margin-bottom: 6px; }
.beo-pn strong { font-size: 15px; line-height: 1.35; font-family: 'Fraunces', Georgia, serif; }
.beo-pn-next { text-align: right; }

/* Rail */
.beo-rail { display: grid; gap: 20px; align-content: start; }
.beo-toc { border: 1px solid var(--beo-border); border-radius: 16px; background: var(--beo-card); padding: 20px 22px; position: sticky; top: 90px; }
.beo-toc p { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--beo-muted); margin-bottom: 12px; }
.beo-toc ol { display: grid; gap: 8px; counter-reset: toc; }
.beo-toc li { counter-increment: toc; }
.beo-toc a { font-size: 13.5px; line-height: 1.4; color: hsla(222,32%,14%,.8); display: block; padding-left: 26px; position: relative; }
.beo-toc a::before { content: counter(toc) '.'; position: absolute; left: 0; color: hsla(36,75%,44%,.7); font-weight: 700; }
.beo-toc a:hover, .beo-toc a.active { color: var(--beo-primary); }
.beo-related { margin-top: 56px; }
.beo-related h2 { font-size: 26px; margin-bottom: 22px; }

/* ---------- FAQ preview / newsletter / trust ---------- */
.beo-faq-preview { display: grid; gap: 36px; grid-template-columns: 1fr; }
.beo-faq-preview h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 6px; }
.beo-faq-preview .beo-btn { margin-top: 22px; }
.beo-faq-cat { display: block; border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 16px; padding: 20px; transition: all .15s; }
.beo-faq-cat:hover { border-color: hsla(214,65%,28%,.4); box-shadow: 0 8px 20px hsla(214,65%,28%,.06); }
.beo-faq-cat h3 { font-size: 17px; margin-bottom: 6px; }
.beo-faq-cat:hover h3 { color: var(--beo-primary); }
.beo-faq-cat p { font-size: 13.5px; color: var(--beo-muted); line-height: 1.6; }
.beo-faq-cat .beo-link { margin-top: 10px; font-size: 12px; }
.beo-newsletter { border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 24px; padding: 36px; text-align: center; max-width: 46rem; margin: 0 auto; }
.beo-newsletter h2 { font-size: 26px; }
.beo-subscribe-form { display: flex; gap: 10px; max-width: 26rem; margin: 22px auto 0; }
.beo-subscribe-form input { flex: 1; border: 1px solid var(--beo-border); border-radius: 999px; padding: 12px 20px; font-size: 14px; font-family: inherit; outline: none; }
.beo-subscribe-form input:focus { border-color: var(--beo-primary); box-shadow: 0 0 0 3px hsla(214,65%,28%,.12); }
#beo-subscribe-msg { margin-top: 12px; }
#beo-subscribe-msg.ok { color: var(--beo-emerald); font-weight: 600; }
#beo-subscribe-msg.err { color: var(--beo-rose); font-weight: 600; }
.beo-trust { border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 24px; padding: 36px; display: grid; gap: 28px; grid-template-columns: 1fr; }
.beo-trust h3 { font-size: 19px; margin-bottom: 8px; }
.beo-trust p { font-size: 14px; color: var(--beo-muted); line-height: 1.65; }

/* ---------- Guides / resources / about ---------- */
.beo-guide { margin-bottom: 48px; }
.beo-guide h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 10px; }
.beo-guide > .beo-muted { margin-bottom: 22px; }
.beo-guide .beo-nca-steps { margin-bottom: 20px; }
.beo-criteria { margin-bottom: 36px; }
.beo-criteria h2 { font-size: 20px; margin-bottom: 14px; }
.beo-criteria ul { display: grid; gap: 10px; }
.beo-criteria li { font-size: 14.5px; line-height: 1.65; color: hsla(222,32%,14%,.85); padding-left: 20px; position: relative; }
.beo-criteria li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 999px; background: var(--beo-accent); }
.beo-provider { border: 1px solid var(--beo-border); background: var(--beo-card); border-radius: 20px; padding: 28px; margin-bottom: 22px; }
.beo-provider h2 { font-size: 24px; margin-bottom: 8px; }
.beo-provider-best { font-size: 14.5px; margin-bottom: 10px; }
.beo-provider .beo-muted { margin-top: 0 !important; }
.beo-provider-list { margin: 16px 0; display: grid; gap: 8px; }
.beo-provider-list li { font-size: 14px; color: hsla(222,32%,14%,.85); padding-left: 20px; position: relative; }
.beo-provider-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 999px; background: var(--beo-primary); }
.beo-provider-note { font-size: 13px; color: var(--beo-muted); border-top: 1px solid hsla(35,14%,87%,.7); padding-top: 14px; line-height: 1.6; }

/* ---------- Footer ---------- */
.beo-footer { border-top: 1px solid var(--beo-border); background: hsla(40,22%,94%,.5); color: var(--beo-fg); }
.beo-footer-grid { max-width: 72rem; margin: 0 auto; padding: 52px 20px; display: grid; gap: 36px; grid-template-columns: 1fr; }
.beo-footer-brand p { font-size: 14px; color: var(--beo-muted); line-height: 1.65; margin: 14px 0 0; }
.beo-footer h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; font-family: 'Inter', sans-serif; }
.beo-footer ul { display: grid; gap: 10px; font-size: 14px; }
.beo-footer a { color: var(--beo-muted); }
.beo-footer a:hover { color: var(--beo-primary); }
.beo-footer-bar { border-top: 1px solid var(--beo-border); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between; max-width: 72rem; margin: 0 auto; font-size: 12px; color: var(--beo-muted); }
.beo-footer-bar p { margin: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .beo-grid-2, .beo-cd-cards { grid-template-columns: repeat(2, 1fr); }
  .beo-cd-rows { grid-template-columns: repeat(2, 1fr); }
  .beo-trust { grid-template-columns: repeat(3, 1fr); }
  .beo-footer-bar { flex-direction: row; }
}
@media (min-width: 900px) {
  .beo-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .beo-hubs { grid-template-columns: repeat(4, 1fr); }
  .beo-quiz-row { grid-template-columns: 3fr 2fr; align-items: start; }
  .beo-nca-grid { grid-template-columns: 2fr 3fr; }
  .beo-faq-preview { grid-template-columns: 2fr 3fr; align-items: start; }
  .beo-article-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .beo-cd-rows { grid-template-columns: repeat(3, 1fr); }
  .beo-footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; }
}
@media (max-width: 899px) {
  .beo-nav-links { display: none; }
  .beo-nav-mobile-btns { display: flex; }
  .beo-prevnext { grid-template-columns: 1fr; }
  .beo-subscribe-form { flex-direction: column; }
  .beo-engage { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
