/* CSSE Graduate Student Resource Hub. Colors follow the OCM Brand Center: see tiger-ux-findings.md. */

:root {
  color-scheme: light;
  --auburn-blue: #0b2341;
  --auburn-orange: #e86100;
  --sunkissed-yellow: #ffc044;

  --page: #ffffff;
  --band: #f3f4f6;
  --surface: #ffffff;
  --border: #d5d8dc;
  --heading: #0b2341;
  --text: #636466;
  --link: #0b2341;
  --tile: #eceef1;
  --tile-ink: #0b2341;
  --chip: #0b2341;
  --chip-month: #e86100;
  --on-blue: #ffffff;
  --accent: #e86100;
  --hero-bg: #0b2341;
  --badge: #e6e8eb;
  --focus: #0b2341;
  --section-line: transparent;
  --chip-line: transparent;

  --font: Arial, Helvetica, sans-serif;
  --radius: 8px;
  --gutter: 16px;
}

/* Auto follows the device. The theme button sets data-theme to light or dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0b2341;
    --band: #0b2341;
    --surface: #233954;
    --border: #54657a;
    --heading: #f3f5f8;
    --text: #ced3d9;
    --link: #f3f5f8;
    --tile: #0b2341;
    --tile-ink: #f3f5f8;
    --chip: #0b2341;
    --badge: #0b2341;
    --focus: #ffffff;
    --section-line: #54657a;
    --on-blue: #f3f5f8;
    --accent: #cc4e0b; /* Samford Brick Orange: decorative lines only */
    --hero-bg: linear-gradient(180deg, #0b2341 0%, #081b33 100%);
    --chip-line: #54657a;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b2341;
  --band: #0b2341;
  --surface: #233954;
  --border: #54657a;
  --heading: #f3f5f8;
  --text: #ced3d9;
  --link: #f3f5f8;
  --tile: #0b2341;
  --tile-ink: #f3f5f8;
  --chip: #0b2341;
  --badge: #0b2341;
  --focus: #ffffff;
  --section-line: #54657a;
  --on-blue: #f3f5f8;
  --accent: #cc4e0b; /* Samford Brick Orange: decorative lines only */
  --hero-bg: linear-gradient(180deg, #0b2341 0%, #081b33 100%);
  --chip-line: #54657a;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.125rem; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

.icon { flex: none; width: 1.25em; height: 1.25em; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }  /* keeps a short phrase, such as a time range, on one line */

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  padding: 10px 16px; border-radius: var(--radius);
  background: #ffffff; color: #0b2341; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Header: white in both themes, because the full-color logo needs a light background. */
.site-header {
  --focus: #0b2341;
  color-scheme: light;
  background: #ffffff;
  color: #0b2341;
  border-bottom: 4px solid var(--auburn-orange);
}
.brand-row { border-bottom: 1px solid #d5d8dc; }
.brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.logo { flex: 0 1 240px; min-width: 0; }
.brand-tools { flex: none; display: flex; align-items: center; gap: 8px; }
.dept { display: none; font-size: 0.875rem; color: #0b2341; text-align: right; }
.theme-button {
  display: none; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  border: 1px solid #0b2341; border-radius: var(--radius);
  background: #ffffff; color: #0b2341; font: 700 0.875rem var(--font); cursor: pointer;
}
.js .theme-button { display: inline-flex; }
.search-link {
  display: none; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; justify-content: center; padding: 6px 8px;
  border: 1px solid #0b2341; border-radius: var(--radius);
  background: #ffffff; color: #0b2341; font: 700 0.875rem var(--font); text-decoration: none;
}
.js .search-link { display: inline-flex; }
.search-link:hover { text-decoration: underline; }
.search-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.theme-button:hover { text-decoration: underline; }
.theme-prefix {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 10px; }
.site-title { flex: 1 1 0; min-width: 0; color: #0b2341; font-size: 1.125rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
.site-title:hover { text-decoration: underline; }

.menu-button {
  flex: none; display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid #0b2341; border-radius: var(--radius);
  background: #ffffff; color: #0b2341; font: 700 1rem var(--font); cursor: pointer;
}
.js .menu-button { display: inline-flex; }

.site-nav { flex-basis: 100%; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

.nav-list > li { border-top: 1px solid #d5d8dc; }
.nav-list a, .nav-group summary {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  min-height: 44px; padding: 10px 4px;
  color: #0b2341; font-size: 0.9375rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.nav-list a:hover, .nav-group summary:hover { text-decoration: underline; }
.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group[open] summary .icon { transform: rotate(180deg); }
.nav-group ul { padding: 0 0 8px 16px; }
.nav-group ul a { font-weight: 400; }

/* Hero */
.hero { border-bottom: 1px solid var(--section-line); background: var(--hero-bg); color: var(--on-blue); padding-block: 44px 40px; }
.eyebrow { color: var(--auburn-orange); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin-top: 12px; color: var(--on-blue); font-size: clamp(2.125rem, 7.5vw, 3.25rem); line-height: 1.1; }
.lede { margin-top: 16px; max-width: 40rem; font-size: 1.125rem; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero :focus-visible { outline-color: #ffffff; }
.hero-note { margin-top: 20px; color: #ced3d9; font-size: 0.875rem; }
.hero-note + .hero-note { margin-top: 6px; }
.hero-note a { color: var(--on-blue); }
/* Launch-period feedback prompt; remove with the launch_feedback block in site.yaml. */
.launch-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; color: #ffffff; font-size: 0.875rem; }
.launch-note a { color: #ffffff; font-weight: 700; }
.launch-close { display: none; margin-left: auto; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: #ffffff; cursor: pointer; line-height: 0; }
.launch-close .icon { width: 18px; height: 18px; }
.launch-close:hover { background: rgba(255, 255, 255, 0.15); }
.js .launch-close { display: inline-block; }
.feedback-dismissed .launch-note { display: none; }
.launch-tag { padding: 1px 8px; border-radius: 4px; background: #e86100; color: #000000; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 12px; border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 700; text-align: center; text-decoration: none;
}
.btn:hover { text-decoration: underline; }
.btn-primary { background: var(--auburn-orange); color: var(--auburn-blue); }
.btn-secondary { border-color: var(--on-blue); color: var(--on-blue); }

/* Sections */
.section { padding-block: 44px; }
.section-band { background: var(--band); }
.section + .section { border-top: 1px solid var(--section-line); }
.section-lead { margin-top: 8px; }
.section-lead + .split { margin-top: 24px; }
.stacked-heading { margin-top: 36px; }
.split { display: grid; gap: 40px; }
.split > * { min-width: 0; }

/* Cards */
.card-grid { display: grid; gap: 16px; margin-top: 24px; }
.card, .info-row {
  position: relative; display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.card:hover, .info-row:hover { border-color: var(--heading); }
.card:focus-within, .info-row:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-link { color: var(--heading); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:hover .card-link, .info-row:hover .card-link { text-decoration: underline; }
.card-link:focus-visible { outline: none; }
.card-body, .info-body { flex: 1; min-width: 0; }
.card-sub { margin-top: 2px; }
.card-detail { margin-top: 8px; font-size: 0.875rem; }
.card-chevron { align-self: center; color: var(--heading); }

.icon-tile {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--tile); color: var(--tile-ink);
}
.icon-tile-solid { background: var(--auburn-blue); color: var(--on-blue); }

/* Opportunities */
.feature {
  padding: 24px; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
}
.feature-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.feature h3 { margin-top: 6px; font-size: 1.25rem; }
.feature p + p { margin-top: 10px; }
.feature h3 + p { margin-top: 10px; }

.split-even .link-grid { align-self: start; }
.link-grid { display: grid; gap: 12px; }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--heading); font-weight: 700; text-decoration: none;
}
.link-grid a:hover { border-color: var(--heading); text-decoration: underline; }

/* Dates, announcements, events */
.date-list { margin-top: 16px; }
.date-list li { display: flex; align-items: center; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--border); }
.date-list-panel { padding: 4px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.date-list-panel li:last-child { border-bottom: 0; }
.chip {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 68px; min-height: 56px; padding: 6px 4px; border-radius: 6px;
  border: 1px solid var(--chip-line); background: var(--chip); color: var(--on-blue); line-height: 1.15; text-align: center;
}
.chip-month { color: var(--chip-month); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.chip-day { font-size: 1.0625rem; font-weight: 700; white-space: nowrap; }
.date-title { color: var(--heading); font-weight: 700; line-height: 1.35; }
.list-note { margin-top: 14px; font-size: 0.875rem; }

.news-list { margin-top: 16px; }
.news-list li { padding-block: 12px; border-bottom: 1px solid var(--border); }
.news-date { font-size: 0.875rem; }
.news-title { color: var(--heading); font-weight: 700; line-height: 1.35; }
.news-detail { margin-top: 2px; font-size: 0.875rem; line-height: 1.45; }

.todo {
  display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 4px;
  background: var(--sunkissed-yellow); color: #0b2341; font-size: 0.8125rem; font-weight: 700; line-height: 1.4;
}

/* Important information */
.info-list { display: grid; gap: 12px; margin-top: 16px; }
.info-row { flex-wrap: wrap; align-items: center; row-gap: 8px; }
.info-row .info-body { flex-basis: calc(100% - 60px); }
.info-row .badge { margin-left: 60px; }
.badge-group { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 60px; }
.info-row .badge-group .badge { margin-left: 0; }
.badge.badge-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px;
  border: 1px solid var(--heading); text-decoration: none;
}
.badge.badge-link:hover { text-decoration: underline; }
.info-body p { margin-top: 2px; font-size: 0.875rem; }
.badge {
  padding: 2px 10px; border-radius: 999px; background: var(--badge); color: var(--heading);
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}

/* Tools */
.split .tool { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tool-head { display: flex; align-items: center; gap: 14px; }
.tool > p { margin-top: 14px; }
.tool-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.tool-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px;
  color: var(--heading); font-weight: 700; text-decoration: underline;
  text-decoration-color: var(--auburn-orange); text-decoration-thickness: 2px;
}
.ext .icon { width: 0.875em; height: 0.875em; margin-left: 4px; vertical-align: -0.05em; }
.tool-links .ext .icon { margin-left: 0; }
#plan-title + .split { margin-top: 24px; }

/* Content pages */
[hidden] { display: none !important; }
.nav-list .is-current { box-shadow: inset 0 -3px 0 var(--auburn-orange); }

.page-head { padding-block: 20px 28px; background: var(--band); border-bottom: 1px solid var(--section-line); }
.breadcrumbs { font-size: 0.875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.page-head h1 { margin-top: 14px; font-size: clamp(1.75rem, 5.5vw, 2.5rem); line-height: 1.15; }
.page-lede { margin-top: 10px; max-width: 46rem; font-size: 1.125rem; }

.page-layout { display: grid; gap: 24px; padding-block: 24px 48px; }
.page-layout > * { min-width: 0; }

.section-nav { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.section-nav summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 10px 14px; color: var(--heading); font-weight: 700; cursor: pointer; list-style: none;
}
.section-nav summary::-webkit-details-marker { display: none; }
.section-nav[open] summary .icon { transform: rotate(180deg); }
.section-nav nav { padding: 0 8px 8px; }
.section-nav-title { display: none; }
.section-nav a {
  display: block; padding: 7px 10px; border-left: 3px solid transparent;
  color: var(--heading); line-height: 1.3; text-decoration: none;
}
.section-nav a:hover { text-decoration: underline; }
.section-nav a[aria-current] { border-left-color: var(--accent); font-weight: 700; }
.section-nav .sub > a { padding-left: 24px; font-size: 0.9375rem; }
.on-this-page { margin: 2px 0 6px 10px; border-left: 1px solid var(--border); }
.on-this-page a { padding-block: 5px; font-size: 0.875rem; }

.prose { max-width: 52rem; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 40px; scroll-margin-top: 16px; font-size: 1.5rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 26px; scroll-margin-top: 16px; }
.prose ul:not(.date-list, .news-list, .contact-grid, .form-list, .link-grid, .card-grid),
.prose ol { padding-left: 1.5rem; list-style: revert; }
.prose li + li { margin-top: 6px; }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose strong { color: var(--heading); }

.table-wrap { position: relative; margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.9375rem; line-height: 1.45; }
table.cols-3 { min-width: 33rem; }
table.cols-4 { min-width: 41rem; }
table.cols-5 { min-width: 48rem; }
caption { padding: 12px 14px; color: var(--heading); font-weight: 700; text-align: left; }
th, td { padding: 10px 14px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { background: var(--tile); color: var(--heading); font-size: 0.875rem; }
tbody th { color: var(--heading); font-weight: 400; }
.group th { background: var(--tile); font-weight: 700; }
.total th, .total td { color: var(--heading); font-weight: 700; }

.callout {
  padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--surface);
}
.callout-note { border-left-color: var(--heading); }
/* Copy and Save buttons above a sample email; site.js adds them, so they appear only with JavaScript. */
.sample-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 16px 10px; }
.sample-actions button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--link); border-radius: var(--radius); background: transparent; color: var(--link);
  font: inherit; font-weight: 700; cursor: pointer;
}
.sample-actions button:hover { text-decoration: underline; }
.sample-actions .icon { width: 20px; height: 20px; }
.sample-status { color: var(--text); font-size: 0.9375rem; }
.callout > * + * { margin-top: 8px; }

.policy-ref {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.875rem;
}
.owner {
  padding: 2px 10px; border-radius: 999px; background: var(--badge); color: var(--heading);
  font-size: 0.75rem; font-weight: 700;
}

.timeline ol { margin: 16px 0 0 7px; padding: 0; border-left: 3px solid var(--accent); list-style: none; }
.timeline li { position: relative; margin: 0; padding: 0 0 18px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 5px; width: 15px; height: 15px;
  border: 3px solid var(--accent); border-radius: 50%; background: var(--page);
}
.timeline li > strong:first-child { display: block; }

.contact-grid { display: grid; gap: 12px; margin-top: 16px; }
.contact-card { margin: 0 !important; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 0.9375rem; }
.contact-card h3 { margin: 0; font-size: 1rem; }
.contact-card p { margin-top: 8px; }
.contact-name { color: var(--heading); font-weight: 700; }

.forms-filter { display: none; gap: 12px; margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.js .forms-filter { display: grid; }
.field label { display: block; margin-bottom: 4px; color: var(--heading); font-size: 0.875rem; font-weight: 700; }
.field input, .field select {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--text); border-radius: 6px;
  background: var(--page); color: var(--heading); font: 400 1rem var(--font);
}
.forms-reset {
  justify-self: start; min-height: 44px; padding: 8px 14px; border: 2px solid var(--heading); border-radius: var(--radius);
  background: transparent; color: var(--heading); font: 700 0.9375rem var(--font); cursor: pointer;
}
.forms-status { display: none; color: var(--heading); font-weight: 700; }
.js .forms-status { display: block; }
.forms-group h2 { margin-top: 32px; }
.form-list { display: grid; gap: 12px; margin-top: 12px; }
.form-card { margin: 0 !important; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form-card h3 { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.form-card > p { margin-top: 6px; }
.form-card dl { display: grid; gap: 4px 20px; margin: 10px 0 0; font-size: 0.875rem; }
.form-card dt, .form-card dd { display: inline; }
.form-card dt { color: var(--heading); font-weight: 700; }
.form-card dt::after { content: ": "; }
.form-card dd { margin: 0; }
.project-list .form-card dl { grid-template-columns: 1fr; }  /* COMP 7980 projects: details are long */
.form-card > .project-file { margin-top: 12px; font-weight: 700; }

.about-page { margin-top: 44px !important; padding-top: 16px; border-top: 2px solid var(--border); font-size: 0.875rem; }
.about-page p + p { margin-top: 6px; }

.site-search > * + * { margin-top: 14px; }
.search-form label { display: block; margin-bottom: 6px; color: var(--heading); font-weight: 700; }
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; border: 1px solid var(--text); border-radius: 6px;
  background: var(--page); color: var(--heading); font: 400 1rem var(--font);
}
.search-row button {
  min-height: 48px; padding: 8px 18px; border: 0; border-radius: var(--radius);
  background: var(--auburn-orange); color: var(--auburn-blue); font: 700 1rem var(--font); cursor: pointer;
}
.search-row button:hover { text-decoration: underline; }
.search-status { color: var(--heading); font-weight: 700; }
.search-status:empty { display: none; }
.prose ol.search-results { padding: 0; list-style: none; }
.search-results li { margin: 0; padding-block: 14px; border-top: 1px solid var(--border); }
.search-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.search-page { margin-top: 2px; font-size: 0.8125rem; }
.search-snippet { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; }
mark { padding-inline: 1px; background: var(--sunkissed-yellow); color: #0b2341; }
/* A key sentence inside a table cell: bold with a thick orange underline. */
.key-note { text-decoration: underline; text-decoration-color: var(--auburn-orange); text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-skip-ink: none; }

/* Your Graduate Journey: five connected steps (a column on narrow screens, a row on desktop). */
.journey { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.journey-step {
  position: relative; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.journey-step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; line-height: 1.3; }
.journey-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 2px solid var(--accent); border-radius: 50%; background: var(--auburn-blue); color: #ffffff;
  font-size: 0.9375rem; font-weight: 700;
}
.journey-step ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 42px; font-size: 0.9375rem; line-height: 1.4; }
.journey-step:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; bottom: -16px; width: 2px; height: 16px; background: var(--accent);
}

/* Footer */
.site-footer { --focus: #ffffff; border-top: 1px solid var(--section-line); padding-block: 40px 24px; background: var(--auburn-blue); color: #ced3d9; font-size: 0.9375rem; }
.site-footer a { color: var(--on-blue); }
.footer-grid { display: grid; gap: 32px; }
.footer-grid p + p { margin-top: 4px; }
.footer-name { color: var(--on-blue); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.footer-heading { margin-bottom: 8px; color: var(--on-blue); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links li { padding-block: 3px; }
/* The GPO card's lines use the link lists' spacing, so all three columns line up row for row. */
.footer-grid .footer-contact p { margin-top: 0; padding-block: 3px; }
.footer-base {
  display: flex; flex-direction: column; gap: 4px; margin-top: 32px; padding-top: 16px;
  border-top: 1px solid #54657a; font-size: 0.875rem;
}

/* Tablet */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .logo { flex-basis: 322px; }
  .brand-inner { gap: 24px; }
  .brand-tools { gap: 16px; }
  .theme-prefix { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: row; justify-content: space-between; }
  .btn { padding-inline: 20px; }
  .card, .info-row { padding: 20px; }
  .info-row { flex-wrap: nowrap; }
  .info-row .info-body { flex-basis: 0; }
  .info-row .badge { margin-left: 0; }
  .badge-group { flex: none; margin-left: 0; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js .forms-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forms-filter .field:first-child { grid-column: 1 / -1; }
  .form-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .dept { display: block; }
  .hero { padding-block: 56px 48px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 56px; }
  .footer-grid { grid-template-columns: 1.3fr 1.3fr 1fr 1fr; }
  .journey { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .journey-step ul { padding-left: 0; }
  .journey-step:not(:last-child)::after { left: auto; right: -16px; top: 31px; bottom: auto; width: 16px; height: 2px; }

  .search-link { padding-inline: 12px; }
  .search-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .page-head { padding-block: 24px 36px; }
  .page-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-block: 40px 64px; }
  .page-layout-single { grid-template-columns: minmax(0, 1fr); }
  .section-nav { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; border: 0; background: none; }
  .section-nav summary { display: none; }
  .section-nav nav { padding: 0; }
  .section-nav-title { display: block; padding: 0 0 8px 13px; color: var(--heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
}


/* Research & Defenses */
.research-cards .card-title { margin: 0; font-size: 1.125rem; }
.prose .research-cards li + li { margin-top: 0; }
.archive-filter { display: none; gap: 12px; margin-top: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.js .archive-filter { display: grid; }
.archive-status { color: var(--heading); font-weight: 700; }
.archive-status:empty { display: none; }
.archive-table { min-width: 0; }
.archive-table thead th { padding: 0; }
.sort-button {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 14px; border: 0;
  background: transparent; color: var(--heading); font: 700 0.875rem/1.3 var(--font); text-align: left; cursor: pointer;
}
.sort-button:hover { text-decoration: underline; }
.sort-icon { white-space: pre; }
.archive-table thead th:last-child { padding: 10px 14px; }
.archive-table td:nth-child(5) { white-space: nowrap; }
.archive-more button {
  min-height: 44px; padding: 8px 14px; border: 2px solid var(--heading); border-radius: var(--radius);
  background: transparent; color: var(--heading); font: 700 0.9375rem var(--font); cursor: pointer;
}
.archive-more button:hover { text-decoration: underline; }

/* Phone: each record becomes a card; the Sort by menu replaces the column headings. */
@media (max-width: 639.98px) {
  .archive-wrap { overflow: visible; border: 0; }
  .archive-table, .archive-table tbody, .archive-table tr, .archive-table th, .archive-table td { display: block; }
  .archive-table { background: transparent; }
  .archive-table caption { display: block; padding: 0 0 8px; }
  .archive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .archive-table tbody tr { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .archive-table tbody th, .archive-table tbody td { padding: 2px 0; border: 0; }
  .archive-table tbody th { font-size: 1.0625rem; font-weight: 700; }
  .archive-table td::before { content: attr(data-label) ": "; color: var(--heading); font-weight: 700; }
  .archive-table td.is-empty { display: none; }
}
@media (min-width: 640px) {
  .archive-sort-field { display: none; }
  .js .archive-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-filter .field:first-child { grid-column: 1 / -1; }
  .archive-table { min-width: 40rem; }
}

/* Wide desktop: the full menu (1086px) fits on one row from about 1105px; 1140px leaves room for a scrollbar.
   Narrower screens keep the Menu button. */
@media (min-width: 1140px) {
  .js .menu-button { display: none; }
  .site-title { flex: none; white-space: nowrap; }
  .site-nav, .js .site-nav { margin-left: -7px; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .nav-list { display: flex; align-items: center; }
  .nav-list > li { position: relative; border-top: 0; }
  .nav-list a, .nav-group summary { padding: 8px 7px; white-space: nowrap; }
  .nav-group ul {
    position: absolute; z-index: 10; top: 100%; left: 0; min-width: 240px; padding: 6px;
    border: 1px solid #d5d8dc; border-radius: var(--radius); background: #ffffff;
    box-shadow: 0 8px 20px rgb(11 35 65 / 16%);
  }
}


@media (prefers-reduced-motion: no-preference) {
  .nav-group summary .icon, .section-nav summary .icon { transition: transform 120ms ease; }
}


/* Checklists: a checkbox in each item, a count, and Clear and Print buttons (added by site.js). */
.check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: 12px 10px; }
.check-actions button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border: 2px solid var(--link); border-radius: var(--radius); background: transparent; color: var(--link);
  font: 700 0.9375rem var(--font); cursor: pointer;
}
.check-actions button:hover { text-decoration: underline; }
.check-actions .icon { width: 20px; height: 20px; }
.check-count { flex-basis: 100%; color: var(--text); font-size: 0.9375rem; }
.check-item { display: flex; align-items: flex-start; gap: 10px; }
td.check-item, th.check-item { display: table-cell; }
th.check-item .check-box { margin-right: 10px; }
.check-box { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--auburn-orange); vertical-align: -4px; cursor: pointer; }
.prose ul.check-list { padding-left: 0; list-style: none; }
.check-list li { margin-bottom: 8px; }

/* Homepage dates: past ones step back; the next one gets a tag. */
.date-list li.is-past .date-title { font-weight: 400; color: var(--text); }
.date-list li.is-past .chip { opacity: 0.75; }
.next-tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--auburn-orange); color: #000000; font-size: 0.75rem; font-weight: 700; vertical-align: 2px;
}

/* Back to Top: a round button at the lower right, shown on long pages once you scroll. */
.back-to-top { display: none; }
.js .back-to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 2px solid var(--auburn-orange); border-radius: 999px;
  background: var(--auburn-blue); color: #ffffff; font-weight: 700; font-size: 0.9375rem; text-decoration: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.js .back-to-top.is-shown { opacity: 1; visibility: visible; }
.back-to-top:hover span { text-decoration: underline; }
.back-to-top .icon { width: 20px; height: 20px; }
@media (max-width: 600px) { .back-to-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .js .back-to-top { padding: 10px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* 404 page search box. */
.not-found-search { margin-bottom: 24px; }

@media print {
  .back-to-top, .check-actions { display: none !important; }
  /* Print Checklist: only the page title and the checklist. */
  .print-checklist .prose > :not(.print-keep), .print-checklist .page-lede, .print-checklist .breadcrumbs,
  .print-checklist .site-header, .print-checklist .site-footer, .print-checklist .hero { display: none !important; }
  .print-checklist .prose a[href^="http"]::after { content: none; }
  .launch-note { display: none; }
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    color-scheme: light;
    --page: #ffffff; --band: #ffffff; --surface: #ffffff; --border: #999999;
    --heading: #000000; --text: #000000; --link: #000000;
  }
  .site-nav, .menu-button, .theme-button, .search-link, .search-form, .skip-link, .cta-row, .section-nav,
  .forms-filter, .forms-status, .archive-filter, .archive-more { display: none !important; }
  .hero, .site-footer { background: #ffffff; color: #000000; }
  .hero h1, .site-footer a, .footer-name, .footer-heading { color: #000000; }

  /* Policy pages: full-width text, whole tables, and addresses a reader can type. */
  .page-layout { display: block; padding-block: 12px 0; }
  .page-head { padding-block: 8px; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.4; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose li, .callout, .form-card, .contact-card, tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  table.cols-3, table.cols-4, table.cols-5 { min-width: 0; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .ext .icon { display: none; }
}
