/* ==========================================================================
   EDUILM — one stylesheet, both themes. No build step, no CDN.
   Colours live in CSS variables: change --brand / --accent and the whole
   site follows.
   ========================================================================== */

:root {
  --brand-50: 245 243 255;
  --brand-100: 237 233 254;
  --brand-300: 196 181 253;
  --brand-400: 167 139 250;
  --brand-500: 139 92 246;
  --brand: 124 58 237;
  --brand-700: 109 40 217;
  --accent: 99 102 241;
  --accent-2: 217 70 239;

  --surface: 255 255 255;
  --canvas: 239 243 251;
  --ink: 15 18 34;
  --muted: 100 108 130;
  --hairline: 226 230 240;
  --glass: 255 255 255;
  --glass-a: 0.66;

  --header-h: 4.5rem;
  --shadow-panel: 0 1px 0 rgb(255 255 255 / .5) inset, 0 18px 50px -28px rgb(15 18 34 / .28);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --surface: 13 14 30;
  --canvas: 8 8 20;
  --ink: 237 240 250;
  --muted: 150 157 180;
  --hairline: 42 44 78;
  --glass: 24 25 50;
  --glass-a: 0.6;
  --shadow-panel: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 60px -30px rgb(0 0 0 / .85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: rgb(var(--canvas));
  background-image:
    radial-gradient(70rem 40rem at 8% -8%, rgb(var(--brand-500) / .10), transparent 60%),
    radial-gradient(60rem 36rem at 105% 0%, rgb(var(--accent) / .10), transparent 55%);
  background-attachment: fixed;
  color: rgb(var(--ink));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
::selection { background: rgb(var(--brand) / .16); }

:focus-visible { outline: 2px solid rgb(var(--brand)); 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: 1rem; top: -3rem; z-index: 100;
  background: rgb(var(--brand)); color: #fff; padding: .5rem 1rem; border-radius: .5rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------ primitives -- */
.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }

.panel {
  position: relative;
  border: 1px solid rgb(var(--hairline));
  border-radius: 1.5rem;
  background: rgb(var(--glass) / var(--glass-a));
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: var(--shadow-panel);
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid rgb(var(--hairline));
  border-radius: 1.125rem;
  background: rgb(var(--glass) / calc(var(--glass-a) + .2));
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--brand-400) / .6);
  box-shadow: 0 22px 44px -22px rgb(var(--brand) / .45);
}

.gradient-text {
  background-image: linear-gradient(92deg, rgb(var(--brand)), rgb(var(--accent)) 55%, rgb(var(--accent-2)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; font-size: .875rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background-image: linear-gradient(92deg, rgb(var(--brand)), rgb(var(--accent)));
  color: #fff; box-shadow: 0 10px 26px -10px rgb(var(--brand) / .7);
  padding: .7rem 1.5rem;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  border-color: rgb(var(--hairline)); background: rgb(var(--surface) / .7);
  color: rgb(var(--ink)); padding: .7rem 1.25rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: rgb(var(--brand-400) / .7); color: rgb(var(--brand)); }
.btn-sm { padding: .5rem 1rem; font-size: .8125rem; }

.icon-btn {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; border: 1px solid rgb(var(--hairline));
  color: rgb(var(--muted)); background: transparent; cursor: pointer; transition: all .2s;
}
.icon-btn:hover { border-color: rgb(var(--brand-400)); color: rgb(var(--brand)); }
.theme-sun { display: none; }
html[data-theme="dark"] .theme-sun { display: block; }
html[data-theme="dark"] .theme-moon { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  border: 1px solid rgb(var(--hairline)); border-radius: 999px;
  background: rgb(var(--surface) / .7); padding: .25rem .625rem;
  font-size: .75rem; font-weight: 500; color: rgb(var(--muted));
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: rgb(var(--brand-400)); color: rgb(var(--brand)); }

.input {
  width: 100%; border: 1px solid rgb(var(--hairline)); border-radius: .75rem;
  background: rgb(var(--surface) / .8); padding: .625rem .875rem;
  font-size: .875rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: rgb(var(--muted) / .7); }
.input:focus { border-color: rgb(var(--brand-500)); box-shadow: 0 0 0 4px rgb(var(--brand-500) / .15); }

.muted { color: rgb(var(--muted)); }
.eyebrow { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--muted)); }
.icon { width: 1rem; height: 1rem; stroke-width: 2; flex: none; }

/* -------------------------------------------------------------- header --- */
.header-shell { position: sticky; top: 0; z-index: 50; padding: .75rem 1rem 0; }
@media (min-width: 640px) { .header-shell { padding: 1rem 1rem 0; } }

.header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 80rem; margin-inline: auto; height: var(--header-h);
  padding-inline: 1rem; border-radius: 1.125rem;
}
@media (min-width: 640px) { .header { padding-inline: 1.5rem; } }
.header.scrolled { border-color: rgb(var(--brand-500) / .25); }

.logo { display: flex; align-items: center; gap: .625rem; flex: none; }
.logo-mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .75rem;
  background-image: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent)));
  color: #fff; box-shadow: 0 8px 20px -8px rgb(var(--brand) / .9); transition: transform .2s;
}
.logo:hover .logo-mark { transform: scale(1.05); }
.logo-name { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; display: block; }
.logo-tag { font-size: .65625rem; font-weight: 500; color: rgb(var(--muted)); display: block; margin-top: .125rem; }

.nav { display: none; align-items: center; gap: .125rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .25rem; border-radius: 999px;
  padding: .5rem .875rem; font-size: .84375rem; font-weight: 500; color: rgb(var(--muted));
  transition: color .2s;
}
.nav-link:hover { color: rgb(var(--ink)); }
.nav-link.active { color: rgb(var(--brand)); }
.nav-link.active::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -.25rem; height: 2px;
  border-radius: 999px; background-image: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--accent)));
}
.dropdown {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(4px);
  width: 14rem; padding: .375rem; border-radius: 1.125rem;
  opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; border-radius: .75rem; padding: .5rem .75rem;
  font-size: .84375rem; font-weight: 500; color: rgb(var(--muted)); transition: all .2s;
}
.dropdown a:hover { background: rgb(var(--brand-500) / .1); color: rgb(var(--brand)); }

.header-actions { display: flex; align-items: center; gap: .375rem; }
.menu-toggle { display: grid; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.subscribe-btn { display: none; }
@media (min-width: 640px) { .subscribe-btn { display: inline-flex; } }

.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + 1rem) 0 0; z-index: 40;
  background: rgb(var(--canvas) / .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  overflow-y: auto; padding: 1rem 1.25rem 3rem; display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: .875rem 0; font-size: 1.0625rem; font-weight: 600;
  border-bottom: 1px solid rgb(var(--hairline));
}
.mobile-menu .sub a { font-size: .9375rem; font-weight: 400; color: rgb(var(--muted)); padding: .5rem 0 .5rem 1rem; border: 0; }

/* ---------------------------------------------------------------- hero --- */
.hero { position: relative; overflow: hidden; padding: 3rem 1.5rem; margin-top: 1rem; }
@media (min-width: 640px) { .hero { padding: 3.5rem 2.5rem; } }
@media (min-width: 1024px) { .hero { padding: 4rem 3.5rem; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(50rem 26rem at 78% 12%, rgb(var(--brand-500) / .22), transparent 62%),
    radial-gradient(38rem 22rem at 8% 96%, rgb(var(--accent) / .16), transparent 60%);
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .625rem;
  border: 1px solid rgb(var(--hairline)); border-radius: 999px;
  background: rgb(var(--surface) / .7); padding: .375rem 1rem .375rem .375rem;
  margin-bottom: 1.75rem; font-size: .78125rem; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.faces { display: flex; }
.faces img {
  width: 1.5rem; height: 1.5rem; border-radius: 999px; object-fit: cover;
  border: 2px solid rgb(var(--surface)); margin-left: -.5rem;
}
.faces img:first-child { margin-left: 0; }
.pulse { position: relative; display: inline-flex; width: .5rem; height: .5rem; }
.pulse::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: #34d399; opacity: .7; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite;
}
.pulse::after { content: ""; position: relative; width: .5rem; height: .5rem; border-radius: 999px; background: #10b981; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.hero h1 span { display: block; }
.hero-sub { margin-top: 1.5rem; max-width: 34rem; font-size: 1rem; line-height: 1.7; color: rgb(var(--muted)); }
.hero-ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-ctas .btn { height: 3rem; padding-inline: 1.75rem; font-size: .875rem; }

.trust { margin-top: 2.5rem; display: grid; gap: .5rem; list-style: none; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li {
  display: flex; align-items: center; gap: .75rem;
  border: 1px solid rgb(var(--hairline)); border-radius: 1.125rem;
  background: rgb(var(--surface) / .6); padding: .75rem .875rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.trust .tile { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: rgb(var(--brand) / .12); color: rgb(var(--brand)); flex: none; }
.trust b { display: block; font-size: .8125rem; font-weight: 600; }
.trust small { display: block; font-size: .71875rem; color: rgb(var(--muted)); }

.hero-visual { position: relative; }
.hero-image {
  position: relative; aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid rgb(var(--hairline));
  box-shadow: 0 30px 80px -40px rgb(var(--brand) / .75);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .25), transparent 60%);
}
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .25); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.trending-card {
  position: absolute; left: .5rem; right: .5rem; bottom: -1.5rem; padding: 1rem; border-radius: 1.125rem;
}
@media (min-width: 640px) { .trending-card { left: 1.5rem; right: auto; width: 22rem; } }
.trending-card .label { display: flex; align-items: center; gap: .375rem; font-size: .71875rem; font-weight: 600; color: rgb(var(--brand)); margin-bottom: .625rem; }
.trending-card h2 { font-size: .90625rem; font-weight: 600; line-height: 1.35; }
.trending-card img { width: 4.5rem; height: 3.5rem; border-radius: .5rem; object-fit: cover; border: 1px solid rgb(var(--hairline)); flex: none; }
.read-link { display: inline-flex; align-items: center; gap: .25rem; margin-top: .5rem; font-size: .78125rem; font-weight: 500; color: rgb(var(--brand)); }

/* ------------------------------------------------------------- sections -- */
.section { padding-top: 1.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; }
.section-title { display: flex; align-items: center; gap: .625rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; }
.section-title .icon { width: 1.5rem; height: 1.5rem; color: rgb(var(--brand)); }
.section-sub { margin-top: .375rem; font-size: .875rem; color: rgb(var(--muted)); }
.view-all { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 500; color: rgb(var(--brand)); }
.view-all .icon { width: .875rem; height: .875rem; transition: transform .2s; }
.view-all:hover .icon { transform: translateX(2px); }

.split { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) 20rem; } }

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------- post cards --- */
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-badge {
  position: absolute; left: .75rem; top: .75rem; border-radius: 999px;
  padding: .25rem .625rem; font-size: .6875rem; font-weight: 600; color: #fff;
  border: 1px solid rgb(255 255 255 / .25); background: rgb(0 0 0 / .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.card-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.card-title a { transition: color .2s; }
.card:hover .card-title a { color: rgb(var(--brand)); }
.card-excerpt { margin-top: .5rem; font-size: .84375rem; line-height: 1.6; color: rgb(var(--muted)); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-author { margin-top: 1rem; display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 500; }
.card-author img { width: 1.625rem; height: 1.625rem; border-radius: 999px; object-fit: cover; }
.card-foot {
  margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; font-size: .75rem; color: rgb(var(--muted));
}
.save-btn { background: none; border: 0; color: rgb(var(--muted)); cursor: pointer; padding: .125rem; transition: color .2s; }
.save-btn:hover, .save-btn.on { color: rgb(var(--brand)); }
.save-btn.on .icon { fill: currentColor; }

/* trending rail */
.rail { display: flex; flex-direction: column; padding: 1.25rem 1.5rem; }
.rail h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1875rem; font-weight: 800; margin-bottom: 1.25rem; }
.rail h2 .icon { width: 1.125rem; height: 1.125rem; color: rgb(var(--brand)); }
.rail ol { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.rail-item { display: flex; align-items: center; gap: .875rem; }
.rail-item img { width: 4rem; height: 3.5rem; border-radius: .5rem; object-fit: cover; border: 1px solid rgb(var(--hairline)); flex: none; transition: transform .5s; }
.rail-item:hover img { transform: scale(1.05); }
.rail-item h3 { font-size: .84375rem; font-weight: 600; line-height: 1.35; }
.rail-item h3 a:hover { color: rgb(var(--brand)); }
.rail-item .meta { margin-top: .25rem; display: flex; align-items: center; gap: .25rem; font-size: .71875rem; color: rgb(var(--muted)); }
.rank {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; flex: none;
  background: rgb(var(--brand) / .12); color: rgb(var(--brand)); font-size: .6875rem; font-weight: 700;
}

/* ------------------------------------------------------------ category --- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.25rem; text-align: center; height: 100%; }
.cat-tile .tile { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1.125rem; }
.cat-tile b { font-size: .84375rem; font-weight: 600; }
.cat-tile small { font-size: .71875rem; color: rgb(var(--muted)); }

/* ---------------------------------------------------------- newsletter --- */
.news-band { position: relative; overflow: hidden; padding: 1.5rem; }
@media (min-width: 640px) { .news-band { padding: 2rem; } }
.news-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(100deg, rgb(var(--brand-500) / .16), rgb(var(--accent) / .1) 45%, rgb(var(--accent-2) / .12));
}
.news-grid { position: relative; display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 1024px) { .news-grid { grid-template-columns: auto 1fr auto; } }
.news-icon {
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1.125rem; color: #fff;
  background-image: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--accent)));
  box-shadow: 0 16px 36px -16px rgb(var(--brand));
}
.news-icon .icon { width: 1.75rem; height: 1.75rem; }
.news-grid h2 { font-size: 1.375rem; font-weight: 800; }
@media (min-width: 640px) { .news-grid h2 { font-size: 1.625rem; } }
.news-form { display: flex; gap: .5rem; width: 100%; }
@media (min-width: 1024px) { .news-form { width: 28rem; } }
.news-form .input { height: 2.75rem; border-radius: 999px; padding-inline: 1rem; }
.news-form .btn { height: 2.75rem; flex: none; }
.form-note { margin-top: .625rem; font-size: .75rem; color: rgb(var(--muted)); }
.form-ok { color: rgb(var(--brand)); font-weight: 600; font-size: .875rem; display: flex; align-items: center; gap: .5rem; }

/* ---------------------------------------------------------------- why ---- */
.why-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.why-head .line { flex: 1; height: 1px; background: rgb(var(--hairline)); display: none; }
@media (min-width: 640px) { .why-head .line { display: block; } }
.why-grid { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid li { align-items: center; padding: 1.75rem; text-align: center; gap: .75rem; }
.why-grid .tile { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1.125rem; background: rgb(var(--brand) / .12); color: rgb(var(--brand)); margin-inline: auto; }
.why-grid b { display: block; margin-top: .75rem; font-size: .9375rem; font-weight: 600; }
.why-grid small { display: block; margin-top: .25rem; font-size: .78125rem; color: rgb(var(--muted)); }

/* -------------------------------------------------------------- footer --- */
footer { margin-top: 5rem; padding-bottom: 1.5rem; }
.footer-panel { padding: 1.75rem; }
@media (min-width: 640px) { .footer-panel { padding: 2.5rem; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); } }
.footer-about { margin-top: 1rem; max-width: 20rem; font-size: .84375rem; line-height: 1.7; color: rgb(var(--muted)); }
.socials { margin-top: 1.25rem; display: flex; gap: .375rem; }
.socials a {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .75rem;
  border: 1px solid rgb(var(--hairline)); color: rgb(var(--muted)); transition: all .2s;
}
.socials a:hover { border-color: rgb(var(--brand-400)); color: rgb(var(--brand)); }
.footer-col h2 { font-size: .84375rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer-col a { font-size: .8125rem; color: rgb(var(--muted)); transition: color .2s; }
.footer-col a:hover { color: rgb(var(--brand)); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(var(--hairline));
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-size: .78125rem; color: rgb(var(--muted));
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a:hover { color: rgb(var(--brand)); }

/* ------------------------------------------------------------- article --- */
.progress-track { position: fixed; inset-inline: 0; top: 0; height: 4px; background: rgb(var(--hairline) / .6); z-index: 60; }
.progress-bar { height: 100%; width: 0; background-image: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--accent))); transition: width .075s linear; }
.progress-label {
  position: fixed; left: 50%; top: .375rem; transform: translateX(-50%); z-index: 60;
  font-size: .6875rem; font-weight: 500; color: rgb(var(--muted)); pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.progress-label.show { opacity: 1; }
.progress-label b { color: rgb(var(--brand)); font-weight: 600; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: 2rem; font-size: .78125rem; color: rgb(var(--muted)); list-style: none; }
.crumbs a:hover { color: rgb(var(--brand)); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: rgb(var(--ink)); }

.article-shell { display: grid; gap: 2.5rem; padding-top: 2rem; }
@media (min-width: 1024px) { .article-shell { grid-template-columns: minmax(0, 1fr) 20rem; } }
@media (min-width: 1280px) { .article-shell { grid-template-columns: 4.5rem minmax(0, 1fr) 20rem; gap: 2rem; } }

.rail-side { display: none; }
@media (min-width: 1280px) { .rail-side { display: block; } }
.rail-sticky {
  position: sticky; top: calc(var(--header-h) + 2.5rem);
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  width: 4.5rem; padding: .5rem; border-radius: 1.125rem;
  border: 1px solid rgb(var(--hairline)); background: rgb(var(--surface) / .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 100%;
  padding: .5rem; border: 0; border-radius: .75rem; background: none; cursor: pointer;
  font-size: .6875rem; font-weight: 500; color: rgb(var(--muted)); transition: all .2s;
}
.rail-btn:hover { background: rgb(var(--brand-500) / .1); color: rgb(var(--brand)); }
.rail-btn.liked { color: #f43f5e; }
.rail-btn.liked .icon { fill: currentColor; }
.rail-btn.saved { color: rgb(var(--brand)); }
.rail-btn.saved .icon { fill: currentColor; }
.rail-btn .icon { width: 1.125rem; height: 1.125rem; }

.article-head .cat-pill {
  display: inline-block; border-radius: 999px; padding: .25rem .75rem;
  font-size: .75rem; font-weight: 600; background: rgb(var(--brand) / .12); color: rgb(var(--brand));
}
.article-head h1 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.article-lede { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.7; color: rgb(var(--muted)); }
.byline {
  margin-top: 2rem; padding: 1rem 0; border-block: 1px solid rgb(var(--hairline));
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  font-size: .8125rem; color: rgb(var(--muted));
}
.byline .who { display: flex; align-items: center; gap: .625rem; }
.byline .who img { width: 2rem; height: 2rem; border-radius: 999px; object-fit: cover; }
.byline .who b { display: block; font-size: .8125rem; color: rgb(var(--ink)); }
.byline .who small { display: block; font-size: .6875rem; }
.byline .dot { display: inline-flex; align-items: center; gap: .375rem; }
.share-row { margin-left: auto; display: flex; gap: .375rem; }
.share-row a, .share-row button { width: 2rem; height: 2rem; }
.share-row .icon { width: .9375rem; height: .9375rem; }

.hero-figure { margin-top: 2rem; }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 1.125rem; border: 1px solid rgb(var(--hairline)); }
.hero-figure figcaption { margin-top: .75rem; text-align: center; font-size: .78125rem; color: rgb(var(--muted)); }

.prose { margin-top: 2.5rem; font-size: 1.0625rem; line-height: 1.8; }
.prose p { margin-block: 1.25rem; color: rgb(var(--ink) / .88); }
.prose h2 { margin-top: 3rem; scroll-margin-top: calc(var(--header-h) + 2rem); font-size: 1.5rem; font-weight: 700; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 600; }
.prose a { color: rgb(var(--brand)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--brand) / .3); }
.prose a:hover { text-decoration-color: rgb(var(--brand)); }
.prose ul, .prose ol { margin-block: 1.25rem; padding-left: 1.25rem; }
.prose li { margin-block: .5rem; }
.prose strong { font-weight: 700; }
.prose img { margin-block: 2rem; border-radius: 1rem; border: 1px solid rgb(var(--hairline)); }
.prose blockquote {
  margin-block: 2rem; padding-left: 1.25rem; border-left: 2px solid rgb(var(--brand));
  font-family: var(--serif); font-size: 1.2rem;
}
.prose table {
  width: 100%; margin-block: 2rem; border-collapse: collapse; font-size: .875rem;
  border: 1px solid rgb(var(--hairline)); border-radius: .75rem; overflow: hidden;
}
.prose thead { background: rgb(var(--brand-500) / .1); }
.prose th { padding: .625rem 1rem; text-align: left; font-size: .8125rem; font-weight: 600; }
.prose td { padding: .625rem 1rem; border-top: 1px solid rgb(var(--hairline)); color: rgb(var(--muted)); vertical-align: top; }

/* callouts */
.callout {
  display: flex; align-items: flex-start; gap: 1rem; margin-block: 1.75rem;
  padding: 1.25rem; border-radius: 1.125rem; border: 1px solid;
}
.callout .callout-title { margin-bottom: .25rem; font-size: .875rem; font-weight: 600; }
.callout p, .callout li { font-size: .875rem; line-height: 1.6; margin: 0; }
.callout ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.callout ul li { display: flex; align-items: flex-start; gap: .625rem; }
.callout ul li::before { content: "✓"; font-weight: 700; flex: none; }
.callout-note { border-color: rgb(var(--brand-500) / .25); background: rgb(var(--brand-500) / .07); }
.callout-note .callout-title, .callout-note li::before { color: rgb(var(--brand)); }
.callout-success { border-color: rgb(16 185 129 / .25); background: rgb(16 185 129 / .07); }
.callout-success .callout-title, .callout-success li::before { color: #059669; }
.callout-warning { border-color: rgb(245 158 11 / .3); background: rgb(245 158 11 / .08); }
.callout-warning .callout-title, .callout-warning li::before { color: #d97706; }
.callout-danger { border-color: rgb(244 63 94 / .25); background: rgb(244 63 94 / .07); }
.callout-danger .callout-title, .callout-danger li::before { color: #e11d48; }
.callout-info { border-color: rgb(14 165 233 / .25); background: rgb(14 165 233 / .07); }
.callout-info .callout-title, .callout-info li::before { color: #0284c7; }

.helpful {
  margin-top: 3rem; padding: 1.25rem; border-radius: 1.125rem;
  border: 1px solid rgb(var(--hairline)); background: rgb(var(--surface) / .6);
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 640px) { .helpful { flex-direction: row; align-items: center; justify-content: space-between; } }
.helpful b { font-size: .90625rem; }
.helpful small { display: block; margin-top: .125rem; font-size: .78125rem; color: rgb(var(--muted)); }
.helpful .actions { display: flex; gap: .5rem; }
.vote {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  border: 1px solid rgb(var(--hairline)); background: none; cursor: pointer;
  padding: .5rem 1rem; font-size: .8125rem; font-weight: 500; transition: all .2s;
}
.vote:hover { border-color: rgb(var(--brand-400)); color: rgb(var(--brand)); }
.vote.on-yes { border-color: rgb(16 185 129 / .4); background: rgb(16 185 129 / .1); color: #059669; }
.vote.on-no { border-color: rgb(244 63 94 / .4); background: rgb(244 63 94 / .1); color: #e11d48; }

.tags-row { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.faq-list { margin-top: 3.5rem; }
.faq-list h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }
details.faq {
  border: 1px solid rgb(var(--hairline)); border-radius: 1rem; padding: 1rem 1.25rem;
  background: rgb(var(--surface) / .5); margin-bottom: .625rem;
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: .9375rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: rgb(var(--brand)); font-weight: 700; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: .75rem; font-size: .875rem; line-height: 1.7; color: rgb(var(--muted)); }

.refs { margin-top: 2.5rem; padding: 1.25rem; border-radius: 1.125rem; border: 1px solid rgb(var(--hairline)); }
.refs h2 { font-size: .875rem; font-weight: 700; margin-bottom: .75rem; }
.refs ol { padding-left: 1.25rem; font-size: .8125rem; color: rgb(var(--muted)); display: flex; flex-direction: column; gap: .5rem; }
.refs a { color: rgb(var(--brand)); }

.prevnext { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext a { display: flex; align-items: center; gap: .875rem; padding: 1rem; border-radius: 1.125rem; }
.prevnext .next { text-align: right; flex-direction: row-reverse; }
.prevnext small { font-size: .6875rem; color: rgb(var(--brand)); font-weight: 600; }
.prevnext b { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.prevnext img { width: 3.5rem; height: 3rem; border-radius: .5rem; object-fit: cover; flex: none; }

/* article sidebar */
.aside-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.side-card { padding: 1.25rem; }
.side-card h2 { font-size: .90625rem; font-weight: 700; margin-bottom: 1rem; }
.author-box { display: flex; align-items: center; gap: .75rem; }
.author-box img { width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover; }
.author-box b { font-size: .875rem; font-weight: 600; }
.author-box small { display: block; font-size: .75rem; color: rgb(var(--muted)); }
.author-bio { margin-top: 1rem; font-size: .8125rem; line-height: 1.7; color: rgb(var(--muted)); }
.author-links { margin-top: 1rem; display: flex; gap: .375rem; }
.author-links a { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid rgb(var(--hairline)); color: rgb(var(--muted)); transition: all .2s; }
.author-links a:hover { border-color: rgb(var(--brand-400)); color: rgb(var(--brand)); }

.toc-card { padding: 0; overflow: hidden; }
.toc-card p.head { padding: 1rem 1.25rem; border-bottom: 1px solid rgb(var(--hairline)); font-size: .90625rem; font-weight: 700; }
.toc-card ol { list-style: none; padding: .375rem; }
.toc-card a {
  display: flex; align-items: flex-start; gap: .75rem; border-left: 2px solid transparent;
  border-radius: .75rem; padding: .625rem .75rem; font-size: .8125rem; line-height: 1.35;
  color: rgb(var(--muted)); transition: all .2s;
}
.toc-card a:hover { background: rgb(var(--brand-500) / .06); color: rgb(var(--ink)); }
.toc-card a.active { border-left-color: rgb(var(--brand)); background: rgb(var(--brand-500) / .1); color: rgb(var(--brand)); font-weight: 600; }
.toc-card .num { color: rgb(var(--muted) / .7); flex: none; font-variant-numeric: tabular-nums; }
.toc-card a.active .num { color: rgb(var(--brand)); }

.news-side { padding: 1.5rem; text-align: center; position: relative; overflow: hidden; }
.news-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(160deg, rgb(var(--brand-500) / .14), transparent 65%); }
.news-side > * { position: relative; }
.news-side .news-icon { width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 1rem; }
.news-side .news-icon .icon { width: 1.25rem; height: 1.25rem; }
.news-side h2 { font-size: 1.0625rem; font-weight: 800; margin: 0; }
.news-side p { margin: .375rem auto 0; max-width: 16rem; font-size: .78125rem; line-height: 1.6; color: rgb(var(--muted)); }
.news-side form { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.news-side .input { height: 2.5rem; }
.news-side .btn { width: 100%; }
.side-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.ad-slot {
  border: 1px dashed rgb(var(--hairline)); border-radius: 1.125rem; padding: 1rem;
  text-align: center; color: rgb(var(--muted)); font-size: .75rem;
  min-height: 15rem; display: grid; place-items: center;
}
.ad-slot .eyebrow { display: block; margin-bottom: .5rem; }

/* ------------------------------------------------------ listing / misc --- */
.page-head { padding-top: 2rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
.page-head p { margin-top: .75rem; max-width: 40rem; font-size: .9375rem; line-height: 1.7; color: rgb(var(--muted)); }
.search-box { margin-top: 2rem; position: relative; max-width: 32rem; }
.search-box .input { height: 3rem; border-radius: 999px; padding-left: 2.75rem; }
.search-box .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgb(var(--muted)); }
.filters { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.filter { border: 1px solid rgb(var(--hairline)); background: rgb(var(--surface) / .6); border-radius: 999px; padding: .375rem .875rem; font-size: .78125rem; font-weight: 500; color: rgb(var(--muted)); cursor: pointer; transition: all .2s; }
.filter:hover { border-color: rgb(var(--brand-400)); color: rgb(var(--brand)); }
.filter.on { background-image: linear-gradient(92deg, rgb(var(--brand)), rgb(var(--accent))); color: #fff; border-color: transparent; }
.empty { padding: 4rem 1rem; text-align: center; color: rgb(var(--muted)); font-size: .875rem; }

.legal-prose { max-width: 46rem; margin-inline: auto; }
.contact-grid { display: grid; gap: 3rem; padding-block: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .375rem; font-size: .8125rem; font-weight: 500; }
.field textarea { resize: vertical; min-height: 8rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .875rem; font-size: .875rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .75rem; }
.contact-list .icon { color: rgb(var(--muted)); margin-top: .125rem; }
.map { margin-top: 2rem; border-radius: 1.125rem; overflow: hidden; border: 1px solid rgb(var(--hairline)); }
.map iframe { width: 100%; height: 16rem; border: 0; display: block; }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid rgb(var(--hairline));
  background: rgb(var(--surface)); color: rgb(var(--ink)); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: all .3s;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / .3);
}
.back-to-top.show { opacity: 1; visibility: visible; }

.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; padding: 1rem 1.25rem;
  display: none; flex-direction: column; gap: .875rem; font-size: .8125rem;
}
@media (min-width: 640px) { .cookie { left: auto; width: 26rem; } }
.cookie.show { display: flex; }
.cookie .row { display: flex; gap: .5rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); z-index: 90;
  background: rgb(var(--ink)); color: rgb(var(--surface)); padding: .625rem 1.25rem;
  border-radius: 999px; font-size: .8125rem; font-weight: 500;
  opacity: 0; visibility: hidden; transition: all .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media print {
  .header-shell, footer, .rail-side, aside, .no-print, .back-to-top, .progress-track, .progress-label { display: none !important; }
  body { background: #fff; }
  .prose { font-size: 11.5pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------- WordPress additions -- */
.eduilm-pagination, .navigation.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.eduilm-pagination .nav-links, .navigation.pagination .nav-links {
  display: flex; flex-wrap: wrap; gap: .375rem; align-items: center;
}
.eduilm-pagination .page-numbers, .navigation.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
  border: 1px solid rgb(var(--hairline)); border-radius: .75rem;
  background: rgb(var(--surface) / .6); font-size: .875rem; font-weight: 500;
  color: rgb(var(--muted)); transition: all .2s;
}
.eduilm-pagination .page-numbers:hover, .navigation.pagination .page-numbers:hover {
  border-color: rgb(var(--brand-400)); color: rgb(var(--brand));
}
.eduilm-pagination .page-numbers.current, .navigation.pagination .page-numbers.current {
  background-image: linear-gradient(92deg, rgb(var(--brand)), rgb(var(--accent)));
  color: #fff; border-color: transparent;
}

/* Widget titles in the sidebar */
.widget-title { font-size: .90625rem; font-weight: 700; margin-bottom: 1rem; }
.widget ul { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.widget ul a { font-size: .8125rem; color: rgb(var(--muted)); transition: color .2s; }
.widget ul a:hover { color: rgb(var(--brand)); }

/* Footer category list (wp_list_categories) */
.footer-col ul ul { margin-left: 1rem; }
.footer-col .children { display: none; }

/* Comment form submit uses our button styles */
.comment-form .submit { cursor: pointer; }
.page-links { margin-top: 2rem; font-size: .8125rem; font-weight: 600; display: flex; gap: .5rem; }
.page-links a { color: rgb(var(--brand)); }

/* Sticky post badge in listings */
.sticky .card { border-color: rgb(var(--brand-400) / .5); }
