:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #eaf0f6;
  --surface-muted: #f0f3f7;
  --line: #d9e2ec;
  --line-strong: #c8d5e1;
  --text: #14324c;
  --muted: #64748b;
  --gold: #f5b400;
  --gold-deep: #d89200;
  --slate: #40596d;
  --ink: #0f172a;
  --success: #0f766e;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 213, 224, 0.72);
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 240px 1fr 72px;
  align-items: center;
  gap: 20px;
}

.brand img {
  width: 288px;
  max-width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
}

.module-menu {
  position: relative;
}

.module-trigger {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.module-trigger:hover,
.module-trigger:focus-visible,
.module-menu.is-open .module-trigger {
  background: rgba(245, 180, 0, 0.1);
  border-color: rgba(245, 180, 0, 0.22);
  outline: none;
}

.menu-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: #d64a46;
}

.menu-icon svg,
.alert-button svg,
.button-primary svg,
.button-secondary svg,
.module-icon svg,
.module-link-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
}

.module-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 280px;
  padding: 10px;
  border: 1px solid rgba(201, 213, 224, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.module-menu.is-open .module-dropdown,
.module-menu:hover .module-dropdown,
.module-menu:focus-within .module-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.module-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  transition: background 0.18s ease;
}

.module-link:hover,
.module-link:focus-visible,
.module-link-active {
  background: var(--surface-muted);
  outline: none;
}

.module-link-icon,
.module-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.module-link-icon-gold,
.module-icon-gold {
  background: rgba(245, 180, 0, 0.12);
  color: var(--gold-deep);
}

.module-link-icon-slate,
.module-icon-slate {
  background: rgba(64, 89, 109, 0.12);
  color: var(--slate);
}

.alert-button {
  justify-self: end;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: var(--slate);
  display: inline-grid;
  place-items: center;
}

.alert-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #111827;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.board-band,
.module-hero-band {
  padding: 34px 0 24px;
}

.board-layout,
.module-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.board-hero,
.board-aside,
.module-hero-copy,
.module-summary {
  border: 1px solid rgba(201, 213, 224, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(234, 240, 246, 0.96), rgba(243, 246, 250, 0.96));
}

.board-hero,
.module-hero-copy {
  min-height: 420px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.board-aside,
.module-summary {
  padding: 28px;
}

.eyebrow,
.aside-kicker,
.metric-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
}

.board-hero h1,
.module-hero-copy h1 {
  margin-top: 16px;
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.module-hero-copy h1 {
  max-width: 14ch;
}

.lead {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.button-inline {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.button-inline {
  border: 1px solid rgba(245, 180, 0, 0.35);
  background: rgba(245, 180, 0, 0.12);
  color: #8a5f00;
  width: fit-content;
}

.button-primary:hover,
.button-secondary:hover,
.button-inline:hover {
  transform: translateY(-1px);
}

.hero-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.status-chip,
.metric-box {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(201, 213, 224, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.status-chip strong,
.metric-box strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.status-chip span,
.section-copy,
.card-meta,
.aside-item p,
.module-card p,
.feature-list,
.announcement-card p,
.summary-card p,
.insight-card p,
.tutorial-list p {
  color: var(--muted);
  line-height: 1.65;
}

.aside-card-title h2,
.section-heading h2,
.announcement-card h3,
.module-card h3,
.summary-card h3,
.insight-card h3,
.tutorial-list h3 {
  color: var(--ink);
}

.aside-card-title h2 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.aside-list {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.aside-item {
  padding: 18px;
  border: 1px solid rgba(201, 213, 224, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.aside-item h3 {
  margin-top: 12px;
  font-size: 1rem;
}

.aside-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.aside-pill-gold,
.badge-gold {
  background: rgba(245, 180, 0, 0.14);
  color: #8a5f00;
}

.aside-pill-slate,
.badge-slate {
  background: rgba(64, 89, 109, 0.12);
  color: #3b5569;
}

.aside-pill-soft,
.badge-soft {
  background: rgba(15, 118, 110, 0.12);
  color: var(--success);
}

.content-band,
.module-band {
  padding: 28px 0 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 16px 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.announcement-grid,
.module-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

.announcement-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.announcement-card,
.module-card,
.summary-card,
.insight-card {
  border: 1px solid rgba(201, 213, 224, 0.9);
  border-radius: 8px;
  background: var(--surface);
}

.announcement-card,
.summary-card,
.insight-card {
  padding: 24px;
}

.announcement-card-featured {
  background:
    linear-gradient(135deg, rgba(245, 180, 0, 0.09), transparent 48%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-topline time {
  color: var(--muted);
  font-size: 0.9rem;
}

.announcement-card h3 {
  font-size: 1.32rem;
  line-height: 1.28;
}

.announcement-card p {
  margin-top: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 0.93rem;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: #8a5f00;
  font-weight: 700;
}

.module-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.module-card-header p {
  margin-top: 6px;
}

.feature-list {
  padding-left: 18px;
}

.feature-list li + li,
.tutorial-list li + li {
  margin-top: 10px;
}

.module-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.content-column {
  min-width: 0;
}

.tutorial-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.tutorial-list li {
  padding: 20px;
  border: 1px solid rgba(201, 213, 224, 0.9);
  border-radius: 8px;
  background: var(--surface);
}

.tutorial-list p,
.insight-card p {
  margin-top: 10px;
}

.insight-stack {
  display: grid;
  gap: 14px;
}

.summary-card h3 {
  margin-bottom: 10px;
}

.site-footer {
  padding: 32px 0 44px;
}

.footer-inner {
  padding-top: 18px;
  border-top: 1px solid rgba(201, 213, 224, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: minmax(180px, 240px) 1fr 56px;
  }

  .board-layout,
  .module-hero-layout,
  .section-heading,
  .announcement-grid,
  .module-content-grid,
  .module-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .board-hero,
  .module-hero-copy {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 1240px);
  }

  .topbar {
    min-height: 86px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand bell"
      "menu menu";
    gap: 10px 16px;
    padding: 12px 0;
  }

  .brand {
    grid-area: brand;
  }

  .main-nav {
    grid-area: menu;
    justify-content: flex-start;
  }

  .alert-button {
    grid-area: bell;
  }

  .brand img {
    width: 212px;
  }

  .board-hero,
  .board-aside,
  .module-hero-copy,
  .module-summary,
  .announcement-card,
  .module-card,
  .summary-card,
  .insight-card,
  .tutorial-list li {
    padding: 20px;
  }

  .hero-status-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-dropdown {
    left: 0;
    transform: translateX(0);
    width: min(280px, calc(100vw - 32px));
  }

  .module-menu.is-open .module-dropdown,
  .module-menu:hover .module-dropdown,
  .module-menu:focus-within .module-dropdown {
    transform: translateX(0);
  }
}
