/* GOES public site: shared design system.
   Loaded on every page that extends base.html, after main.css.
   Tokens → header → footer → page layout → components → utilities.
   Page stylesheets should only hold what is truly specific to one page. */

:root {
  --ui-ink: #112135;
  --ui-muted: #506274;
  --ui-soft: #6b7a8b;
  --ui-line: #dfe6ee;
  --ui-line-strong: #c9d4df;
  --ui-paper: #ffffff;
  --ui-wash: #f4f7fb;
  --ui-wash-2: #eaf1f8;
  --ui-brand: #0d63d8;
  --ui-brand-600: #0a52b5;
  --ui-brand-50: #e8f1fd;
  --ui-teal: #0e8b82;
  --ui-teal-50: #e3f5f3;
  --ui-gold: #f0b648;
  --ui-gold-50: #fdf4e1;
  --ui-violet: #6d3fd1;
  --ui-violet-50: #f0eafc;
  --ui-rose: #c42b6b;
  --ui-rose-50: #fce9f1;
  --ui-green: #1a7f4b;
  --ui-green-50: #e3f4ea;
  --ui-danger: #b42318;
  --ui-danger-50: #fdecea;
  --ui-navy: #0e2035;
  --ui-radius: 14px;
  --ui-radius-sm: 10px;
  --ui-shadow: 0 1px 2px rgba(14, 32, 53, .05), 0 8px 24px rgba(14, 32, 53, .06);
  --ui-shadow-lg: 0 18px 44px rgba(14, 32, 53, .12);
  --ui-header-h: 72px;
  --ui-container: 1200px;
  --ui-gutter: clamp(16px, 3vw, 32px);
}

body {
  background: var(--ui-wash);
  color: var(--ui-ink);
}

.ui-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pub-container {
  width: 100%;
  max-width: calc(var(--ui-container) + 2 * var(--ui-gutter));
  margin: 0 auto;
  padding: 0 var(--ui-gutter);
}

/* ============================================================
   Header (G2): one sticky bar with logo, menu and actions
   ============================================================ */
.lu-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ui-line);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .18s ease;
}

.lu-header.is-stuck {
  box-shadow: 0 6px 20px rgba(14, 32, 53, .08);
}

.lu-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--ui-header-h);
}

.lu-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.lu-brand img {
  display: block;
  width: auto;
  height: 44px;
}

.lu-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  font-size: 1.4rem;
}

.lu-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.lu-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lu-menu-item {
  position: static;
  display: flex;
  align-items: center;
}

.lu-menu-link,
.lu-menu-caret {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  min-height: 40px;
  border: 0;
  background: none;
  color: var(--ui-ink);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}

.lu-menu-link {
  padding: 8px 4px 8px 10px;
  border-radius: 8px 0 0 8px;
}

.lu-menu-link:only-child {
  padding-right: 10px;
  border-radius: 8px;
}

.lu-menu-caret {
  padding: 8px 8px 8px 2px;
  border-radius: 0 8px 8px 0;
  color: var(--ui-soft);
  font-size: .8rem;
  cursor: pointer;
}

.lu-menu-caret.lu-menu-caret-only {
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ui-ink);
  font-size: .95rem;
}

.lu-menu-caret.lu-menu-caret-only .bi {
  color: var(--ui-soft);
  font-size: .75rem;
}

.lu-menu-item:hover .lu-menu-link,
.lu-menu-item:hover .lu-menu-caret,
.lu-menu-caret[aria-expanded="true"],
.lu-menu-link[aria-current="page"] {
  background: var(--ui-wash);
  color: var(--ui-brand);
}

.lu-menu-caret[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

.lu-menu-caret .bi {
  transition: transform .18s ease;
}

.lu-mega {
  left: 50% !important;
  right: auto;
  top: calc(100% - 6px) !important;
  width: min(1040px, calc(100vw - 32px));
  margin: 0 !important;
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  box-shadow: var(--ui-shadow-lg);
  transform: translateX(-50%) !important;
}

.lu-mega.show {
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.lu-mega-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ui-navy), var(--ui-brand));
  color: #fff;
}

.lu-mega-feature > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lu-mega-feature strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.lu-mega-feature a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.lu-mega-feature a:hover {
  text-decoration: underline;
}

.lu-mega-group h2 {
  margin: 4px 0 8px;
  color: var(--ui-soft);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.lu-mega-group a,
.lu-mega-group span {
  display: block;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  color: var(--ui-ink);
  font-size: .94rem;
  font-weight: 550;
  text-decoration: none;
}

.lu-mega-group a:hover,
.lu-mega-group a:focus-visible {
  background: var(--ui-brand-50);
  color: var(--ui-brand);
}

.lu-mega-group a[aria-current="page"] {
  color: var(--ui-brand);
  font-weight: 750;
}

.lu-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.lu-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ui-muted);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.lu-action:hover {
  background: var(--ui-wash);
  color: var(--ui-brand);
}

.lu-action-apply {
  margin-left: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ui-brand);
  color: #fff;
  font-weight: 750;
}

.lu-action-apply:hover {
  background: var(--ui-brand-600);
  color: #fff;
}

@media (min-width: 1100px) {
  .lu-nav.collapse:not(.show) { display: flex; }
}

@media (max-width: 1279px) {
  .lu-action-label { display: none; }
  .lu-action-apply .lu-action-label { display: inline; }
}

@media (max-width: 1099px) {
  .lu-toggler { display: inline-flex; }

  .lu-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--ui-header-h));
    padding: 8px var(--ui-gutter) 20px;
    overflow-y: auto;
    border-bottom: 1px solid var(--ui-line);
    background: var(--ui-paper);
    box-shadow: var(--ui-shadow-lg);
  }

  .lu-nav.show { display: flex; }

  .lu-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .lu-menu-item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--ui-line);
  }

  .lu-menu-link {
    flex: 1;
    min-height: 48px;
    padding-left: 0;
  }

  .lu-menu-caret {
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
  }

  .lu-menu-caret.lu-menu-caret-only {
    flex: 1;
    justify-content: space-between;
    padding-left: 0;
  }

  .lu-mega {
    position: static !important;
    width: 100%;
    padding: 4px 0 14px;
    border: 0;
    box-shadow: none;
    transform: none !important;
  }

  .lu-mega.show {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lu-mega-feature { display: none; }

  .lu-actions {
    flex-wrap: wrap;
    margin: 14px 0 0;
    gap: 8px;
  }

  .lu-action {
    border: 1px solid var(--ui-line);
  }

  .lu-action-label { display: inline; }

  .lu-action-apply {
    flex: 1 1 100%;
    justify-content: center;
    margin: 4px 0 0;
    border: 0;
  }
}

@media (max-width: 480px) {
  .lu-brand img { height: 38px; }
}

.site-messages {
  margin-top: 16px;
}

/* ============================================================
   Footer (G6): five columns and a legal row
   ============================================================ */
.lu-footer {
  margin-top: 56px;
  background: var(--ui-navy);
  color: rgba(255, 255, 255, .76);
  font-size: .94rem;
}

.lu-footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.lu-footer a:hover,
.lu-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.lu-footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) 3.7fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.lu-footer-brand img {
  display: block;
  width: auto;
  height: 46px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
}

.lu-footer-brand p {
  max-width: 34ch;
  margin: 0 0 16px;
  line-height: 1.6;
}

.lu-footer-contact {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.lu-footer-contact i {
  margin-right: 8px;
  color: var(--ui-gold);
}

.lu-footer-social {
  display: flex;
  gap: 8px;
}

.lu-footer-social a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
}

.lu-footer-social a:hover {
  background: rgba(255, 255, 255, .1);
  text-decoration: none;
}

.lu-footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.lu-footer-col h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.lu-footer-col h2 button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: default;
}

.lu-footer-col h2 .bi {
  display: none;
}

.lu-footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lu-footer-col li {
  line-height: 1.35;
}

.lu-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.lu-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: .86rem;
}

.lu-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1099px) {
  .lu-footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lu-footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .lu-footer-columns { grid-template-columns: 1fr; gap: 0; }
  .lu-footer-col { border-top: 1px solid rgba(255, 255, 255, .12); }
  .lu-footer-col h2 { margin: 0; }
  .lu-footer-col h2 button { min-height: 50px; cursor: pointer; }
  .lu-footer-col h2 .bi { display: inline-block; transition: transform .18s ease; }
  .lu-footer-col h2 button[aria-expanded="true"] .bi { transform: rotate(180deg); }
  .lu-footer-col ul { padding-bottom: 14px; }
  .lu-footer-col ul[hidden] { display: none; }
}

/* ============================================================
   Page layout (G3, G4): one full-width header band, one column
   ============================================================ */
.public-main.pub-main {
  padding: 0;
}

.pub-page {
  --hero-from: #0e2035;
  --hero-to: #0d63d8;
  --hero-accent: #7cc4ff;
  --accent: var(--ui-brand);
  --accent-50: var(--ui-brand-50);
}

.pub-theme-teal { --hero-to: #0b7f77; --hero-accent: #7fe3d7; --accent: var(--ui-teal); --accent-50: var(--ui-teal-50); }
.pub-theme-violet { --hero-from: #1d1747; --hero-to: #6d3fd1; --hero-accent: #cdb8ff; --accent: var(--ui-violet); --accent-50: var(--ui-violet-50); }
.pub-theme-rose { --hero-from: #2b0f2a; --hero-to: #b3265f; --hero-accent: #ffb3d1; --accent: var(--ui-rose); --accent-50: var(--ui-rose-50); }
.pub-theme-green { --hero-from: #0c2a22; --hero-to: #1a7f4b; --hero-accent: #9ee6be; --accent: var(--ui-green); --accent-50: var(--ui-green-50); }
.pub-theme-dark { --hero-from: #0b1220; --hero-to: #1e3a5f; --hero-accent: #f0b648; }

.pub-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .12), transparent 32rem),
    linear-gradient(120deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #fff;
}

.pub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}

.pub-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.pub-hero-inner:has(.pub-hero-aside) {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
}

.pub-hero-copy {
  max-width: 760px;
}

.pub-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: .86rem;
}

.pub-breadcrumbs li + li::before {
  content: "/";
  margin-right: 4px;
  color: rgba(255, 255, 255, .45);
}

.pub-breadcrumbs a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.pub-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.pub-breadcrumbs [aria-current] {
  color: #fff;
}

.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--hero-accent);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pub-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.pub-lead {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, .95rem + .3vw, 1.14rem);
  line-height: 1.6;
}

.pub-hero .pub-actions {
  margin-top: 22px;
}

.pub-hero-aside {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
}

.pub-hero-aside h2 {
  margin: 0 0 12px;
  color: var(--hero-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pub-hero-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.pub-hero-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.pub-hero-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pub-hero-facts dt {
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
}

.pub-hero-facts dd {
  margin: 0;
  color: #fff;
  font-weight: 750;
  text-align: right;
}

.pub-hero-aside p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  line-height: 1.55;
}

.pub-hero-aside .pub-hero-aside-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.pub-hero-aside .pub-hero-aside-link:hover {
  text-decoration: underline;
}

.pub-body {
  padding-top: 36px;
  padding-bottom: 24px;
}

@media (max-width: 899px) {
  .pub-hero-inner:has(.pub-hero-aside) { grid-template-columns: minmax(0, 1fr); }
}

/* ---- sub navigation (P3 step bar, P15 service tabs) ---- */
.pub-subnav {
  position: sticky;
  top: var(--ui-header-h);
  z-index: 20;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-paper);
}

.pub-subnav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.pub-subnav-list::-webkit-scrollbar { display: none; }

.pub-subnav-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: var(--ui-muted);
  font-size: .93rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.pub-subnav-list a:hover {
  color: var(--ui-ink);
}

.pub-subnav-list a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.pub-steps {
  counter-reset: step;
}

.pub-steps .pub-subnav-list a {
  gap: 10px;
}

.pub-steps .pub-subnav-list a::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ui-line-strong);
  border-radius: 50%;
  color: var(--ui-soft);
  font-size: .8rem;
  font-weight: 800;
}

.pub-steps .pub-subnav-list li + li a {
  padding-left: 34px;
  background: linear-gradient(var(--ui-line-strong), var(--ui-line-strong)) 6px 50% / 20px 1.5px no-repeat;
}

.pub-steps .pub-subnav-list a[aria-current="page"]::before {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   Components
   ============================================================ */
.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pub-btn-primary {
  background: var(--accent, var(--ui-brand));
  color: #fff;
}

.pub-btn-primary:hover { filter: brightness(.94); color: #fff; }

.pub-btn-outline {
  border-color: var(--ui-line-strong);
  background: var(--ui-paper);
  color: var(--ui-ink);
}

.pub-btn-outline:hover { border-color: var(--accent, var(--ui-brand)); color: var(--accent, var(--ui-brand)); }

.pub-hero .pub-btn-primary {
  background: #fff;
  color: var(--hero-from);
}

.pub-hero .pub-btn-primary:hover { background: rgba(255, 255, 255, .9); filter: none; color: var(--hero-from); }

.pub-hero .pub-btn-outline {
  border-color: rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
}

.pub-hero .pub-btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.pub-btn-sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; }

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent, var(--ui-brand));
  font-weight: 750;
  text-decoration: none;
}

.pub-link:hover { text-decoration: underline; }

.pub-section {
  margin-top: 48px;
}

.pub-body > .pub-section:first-child,
.pub-section:first-child {
  margin-top: 0;
}

.pub-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.pub-section-head h2 {
  margin: 0;
  color: var(--ui-ink);
  font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

.pub-section-head p {
  max-width: 64ch;
  margin: 6px 0 0;
  color: var(--ui-muted);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.pub-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.pub-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pub-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.pub-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.pub-split-aside > * + * { margin-top: 16px; }

@media (max-width: 991px) {
  .pub-split { grid-template-columns: minmax(0, 1fr); }
}

.pub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-paper);
  box-shadow: var(--ui-shadow);
}

.pub-card h3 {
  margin: 0;
  color: var(--ui-ink);
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.3;
}

.pub-card h3 a {
  color: inherit;
  text-decoration: none;
}

.pub-card-linked h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.pub-card-linked:hover {
  border-color: var(--accent, var(--ui-brand));
}

.pub-card-linked:hover h3 a { color: var(--accent, var(--ui-brand)); }

.pub-card p {
  margin: 0;
  color: var(--ui-muted);
  line-height: 1.55;
}

.pub-card .pub-link,
.pub-card-footer {
  margin-top: auto;
  padding-top: 6px;
}

.pub-card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-50, var(--ui-brand-50));
  color: var(--accent, var(--ui-brand));
  font-size: 1.3rem;
}

.pub-card-muted {
  background: var(--ui-wash);
  box-shadow: none;
}

.pub-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  color: var(--ui-soft);
  font-size: .86rem;
}

.pub-card-meta i { margin-right: 4px; }

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-50, var(--ui-brand-50));
  color: var(--accent, var(--ui-brand));
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .02em;
}

.pub-tag-neutral { background: var(--ui-wash-2); color: var(--ui-muted); }
.pub-tag-warning { background: var(--ui-gold-50); color: #8a5a00; }
.pub-tag-success { background: var(--ui-green-50); color: var(--ui-green); }

/* Media cards: image on top, a coloured banner with an icon when there is no image (P9, P10). */
.pub-media-card {
  padding: 0;
  overflow: hidden;
}

.pub-media-card .pub-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--accent, var(--ui-brand)), var(--ui-navy));
}

.pub-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, .88);
  font-size: 2.4rem;
}

.pub-media-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
  color: var(--ui-ink);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(14, 32, 53, .18);
}

.pub-media-badge strong {
  font-size: 1.3rem;
}

.pub-media-card .pub-media-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

/* Numbered steps list */
.pub-steps-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pubstep;
}

.pub-steps-list li {
  position: relative;
  padding-left: 44px;
  counter-increment: pubstep;
}

.pub-steps-list li::before {
  content: counter(pubstep);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-50, var(--ui-brand-50));
  color: var(--accent, var(--ui-brand));
  font-size: .85rem;
  font-weight: 800;
}

.pub-steps-list strong {
  display: block;
  color: var(--ui-ink);
}

.pub-steps-list span {
  color: var(--ui-muted);
  font-size: .94rem;
}

/* Checklists and plain lists */
.pub-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--ui-muted);
  line-height: 1.5;
}

.pub-checklist li::before {
  content: "\F26E";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent, var(--ui-brand));
  font-family: "bootstrap-icons";
  font-weight: 700;
}

.pub-checklist strong { color: var(--ui-ink); }

/* Key facts */
.pub-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.pub-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ui-line);
}

.pub-facts div:last-child { border-bottom: 0; }

.pub-facts dt {
  color: var(--ui-muted);
  font-weight: 500;
}

.pub-facts dd {
  margin: 0;
  color: var(--ui-ink);
  font-weight: 700;
  text-align: right;
}

/* Stats */
.pub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.pub-stat {
  padding: 18px 20px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-paper);
}

.pub-stat strong {
  display: block;
  color: var(--accent, var(--ui-brand));
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}

.pub-stat span {
  color: var(--ui-muted);
  font-size: .92rem;
}

/* Empty state (G10) */
.pub-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px dashed var(--ui-line-strong);
  border-radius: var(--ui-radius);
  background: var(--ui-paper);
  color: var(--ui-muted);
}

.pub-empty > i {
  flex-shrink: 0;
  color: var(--ui-soft);
  font-size: 1.5rem;
}

.pub-empty p { margin: 0; }
.pub-empty strong { color: var(--ui-ink); }

/* Callout */
.pub-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 24px 28px;
  border-radius: var(--ui-radius);
  background: linear-gradient(120deg, var(--ui-navy), var(--accent, var(--ui-brand)));
  color: #fff;
}

.pub-callout h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.pub-callout p { margin: 0; color: rgba(255, 255, 255, .85); }

.pub-callout .pub-btn-primary { background: #fff; color: var(--ui-navy); }
.pub-callout .pub-btn-outline { border-color: rgba(255, 255, 255, .5); background: transparent; color: #fff; }

/* Tables */
.pub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-paper);
}

.pub-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.pub-table th,
.pub-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ui-line);
  text-align: left;
  vertical-align: top;
}

.pub-table thead th {
  background: var(--ui-wash);
  color: var(--ui-muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pub-table tbody th { color: var(--ui-ink); font-weight: 600; }
.pub-table tfoot th, .pub-table tfoot td { background: var(--ui-wash); color: var(--ui-ink); font-weight: 800; }
.pub-table tr:last-child td, .pub-table tr:last-child th { border-bottom: 0; }

.pub-table td.pub-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Forms (P4) */
.pub-form {
  display: grid;
  gap: 18px;
}

.pub-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px 18px;
}

.pub-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pub-field-wide { grid-column: 1 / -1; }

.pub-field label,
.pub-field .pub-field-label {
  color: var(--ui-ink);
  font-size: .92rem;
  font-weight: 700;
}

.pub-field input:not([type=checkbox]):not([type=radio]),
.pub-field select,
.pub-field textarea,
.pub-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 10px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  font: inherit;
}

.pub-field textarea { min-height: 130px; }

.pub-field input:focus,
.pub-field select:focus,
.pub-field textarea:focus,
.pub-input:focus {
  border-color: var(--accent, var(--ui-brand));
  outline: 3px solid var(--accent-50, var(--ui-brand-50));
  outline-offset: 0;
  box-shadow: none;
}

.pub-field.has-error input,
.pub-field.has-error select,
.pub-field.has-error textarea { border-color: var(--ui-danger); }

.pub-help { color: var(--ui-soft); font-size: .84rem; }
.pub-error { color: var(--ui-danger); font-size: .86rem; font-weight: 650; }
.pub-required { color: var(--ui-danger); }

.pub-form-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--ui-wash);
  color: var(--ui-muted);
  font-size: .9rem;
}

.pub-form-note i { color: var(--accent, var(--ui-brand)); }

.pub-alert {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ui-danger-50);
  color: var(--ui-danger);
  font-weight: 600;
}

.pub-alert-success { background: var(--ui-green-50); color: var(--ui-green); }

/* Filter bar */
.pub-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-paper);
}

.pub-filters .pub-field { flex: 1 1 180px; }
.pub-filters .pub-field-grow { flex: 3 1 260px; }

.pub-result-count {
  margin: 0 0 14px;
  color: var(--ui-muted);
  font-size: .94rem;
}

/* Pagination */
.pub-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pub-pagination a,
.pub-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-paper);
  color: var(--ui-ink);
  font-weight: 650;
  text-decoration: none;
}

.pub-pagination [aria-current="page"] {
  border-color: var(--accent, var(--ui-brand));
  background: var(--accent, var(--ui-brand));
  color: #fff;
}

/* Prose (long text) */
.pub-prose {
  color: var(--ui-ink);
  font-size: 1.04rem;
  line-height: 1.75;
}

.pub-prose > :first-child { margin-top: 0; }
.pub-prose p { margin: 0 0 1em; }
.pub-prose h2 { margin: 1.6em 0 .5em; font-size: 1.35rem; font-weight: 800; }
.pub-prose h3 { margin: 1.4em 0 .4em; font-size: 1.12rem; font-weight: 750; }

/* Quote (P11) */
.pub-quote {
  margin: 0;
}

.pub-quote blockquote {
  position: relative;
  margin: 0;
  padding-top: 18px;
  color: var(--ui-ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.pub-quote blockquote::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: -4px;
  color: var(--accent, var(--ui-brand));
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
  opacity: .5;
}

.pub-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.pub-avatar {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-50, var(--ui-brand-50));
  color: var(--accent, var(--ui-brand));
  font-weight: 800;
}

.pub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }

.pub-quote figcaption strong { display: block; color: var(--ui-ink); }
.pub-quote figcaption span { color: var(--ui-soft); font-size: .88rem; }

/* Clamp text to a number of lines with a real "read more" (P11) */
.pub-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines, 4);
}

.pub-clamp.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.pub-clamp-toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, var(--ui-brand));
  font-weight: 700;
  cursor: pointer;
}

.pub-clamp-toggle:hover { text-decoration: underline; }

/* Hub link lists (site map, hubs) */
.pub-link-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-ink);
  font-weight: 600;
  text-decoration: none;
}

.pub-link-list li:last-child a { border-bottom: 0; }
.pub-link-list a:hover { color: var(--accent, var(--ui-brand)); }
.pub-link-list a .bi { color: var(--ui-soft); font-size: .85rem; }

/* Progressive enhancement for reveal effects (G9): content is visible unless JS opts in. */
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}

.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media print {
  .lu-header, .lu-footer, .pub-subnav { display: none !important; }
  .pub-hero { background: none; color: #000; }
  .pub-hero h1, .pub-lead { color: #000; }
}

/* Pill navigation inside a section (academic support pages) */
.pub-pills {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pub-pills a,
.pub-pills button {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-paper);
  color: var(--ui-muted);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.pub-pills a:hover,
.pub-pills button:hover { border-color: var(--accent); color: var(--accent); }

.pub-pills [aria-current="page"],
.pub-pills [aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pub-narrow { max-width: 780px; }
.pub-clamp-3 { --lines: 3; }
.pub-table-caption { caption-side: top; padding: 14px 16px 4px; color: var(--ui-ink); font-weight: 800; }

/* Tour stops (P6) */
.pub-tour {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tour;
}

.pub-tour > li {
  flex-direction: row;
  gap: 16px;
  counter-increment: tour;
}

.pub-tour > li > div { display: flex; flex-direction: column; gap: 6px; }

.pub-tour > li::before {
  content: counter(tour);
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--ui-line-strong);
  font-size: 1.6rem;
  font-weight: 800;
}

.pub-tour .pub-card-icon { flex-shrink: 0; }
.pub-detail-image { width: 100%; max-height: 420px; margin-bottom: 18px; border-radius: var(--ui-radius); object-fit: cover; }
.pub-byline { margin: 18px 0 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.pub-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; color: var(--ui-muted); font-weight: 600; }
.pub-share a { color: var(--ui-ink); text-decoration: none; }
.pub-share a:hover { color: var(--accent, var(--ui-brand)); }

/* Search (P12) */
.pub-hero-search {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin-top: 22px;
}

.pub-hero-search input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.05rem;
}

.pub-results {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-results .pub-tags { align-items: center; }

@media (max-width: 575px) {
  .pub-hero-search { flex-direction: column; }
}

/* Comfortable tap targets for footer and breadcrumb links on touch screens */
@media (max-width: 719px) {
  .lu-footer-col li a,
  .lu-footer-legal a,
  .lu-footer-contact a { display: inline-block; padding: 6px 0; }
  .pub-breadcrumbs a { display: inline-block; padding: 4px 0; }
}

/* Linked rows with a title and a short description (tutoring subject areas). */
.pub-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-rows a {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--ui-line);
  color: inherit;
  text-decoration: none;
}

.pub-rows strong { color: var(--ui-ink); font-weight: 750; }
.pub-rows span { color: var(--ui-muted); font-size: .94rem; line-height: 1.5; }
.pub-rows a:hover strong { color: var(--accent, var(--ui-brand)); text-decoration: underline; }

@media (max-width: 719px) {
  .pub-rows { grid-template-columns: minmax(0, 1fr); }
}

/* Questions and answers */
.pub-faq {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-paper);
}

.pub-faq details + details { border-top: 1px solid var(--ui-line); }

.pub-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: var(--ui-ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.pub-faq summary::-webkit-details-marker { display: none; }

.pub-faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent, var(--ui-brand));
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.pub-faq details[open] summary::after { content: "\2212"; }
.pub-faq summary:focus-visible { outline: 3px solid var(--ui-focus, #2f6fed); outline-offset: -3px; }

.pub-faq details > div {
  padding: 0 20px 16px;
  color: var(--ui-muted);
  line-height: 1.6;
}

.pub-faq details > div p:last-child { margin-bottom: 0; }

/* Numbered steps inside the dark hero panel */
.pub-hero-aside .pub-steps-list li::before { background: rgba(255, 255, 255, .16); color: #fff; }
.pub-hero-aside .pub-steps-list strong { color: #fff; }
.pub-hero-aside .pub-steps-list span { color: rgba(255, 255, 255, .8); }

/* Spam-trap field: kept out of view and out of the tab order. */
.pub-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
