/* ==========================================================================
   IRIXEN — Corporate / institutional design system
   Palette: navy + white + near-black. Standard system fonts. Conventional
   document-like layout: utility bar, header with org name, hero, sections,
   multi-column footer.
   ========================================================================== */

:root {
  /* brand */
  --navy: #0b3d91;
  --navy-dk: #082c6b;
  --navy-lt: #1a5ec4;
  --navy-tint: #eef3fb;
  --navy-tint-2: #dbe6f7;

  /* neutrals */
  --ink: #0f1720;
  --ink-2: #3c4653;
  --ink-3: #6b7684;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --line: #dfe4ec;
  --line-2: #c9d1dd;

  /* status */
  --green: #1f7a44;
  --green-tint: #e8f4ec;
  --amber: #9a6400;
  --amber-tint: #fdf3e0;
  --red: #b3261e;

  --maxw: 1200px;
  --pad: clamp(16px, 3vw, 32px);

  /* Type: rounded system faces first, then the standard UI stack.
     Apple devices get SF Rounded / Hiragino Maru Gothic, Windows gets
     Microsoft YaHei UI / Segoe UI Variable, others fall back cleanly. */
  --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Maru Gothic ProN", "Yuanti SC",
    "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "SimSun", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;

  --shadow-1: 0 1px 2px rgba(15, 23, 32, 0.06);
  --shadow-2: 0 6px 20px rgba(15, 23, 32, 0.08);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--navy-lt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--navy-tint-2);
}

:focus-visible {
  outline: 2px solid var(--navy-lt);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.spacer {
  margin-left: auto;
}

/* screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

/* wordmark: trimmed asset, sized to stay crisp on hi-dpi screens */
.brand img {
  height: clamp(27px, 2.6vw, 34px);
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 15px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 9px 14px;
  color: var(--ink-2);
  border-radius: 0;
  border-bottom: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: var(--navy);
  background: var(--navy-tint);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--navy);
  border-radius: 0;
}

.lang-toggle {
  display: flex;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 0;
  overflow: hidden;
}

.lang-toggle button {
  appearance: none;
  font: inherit;
  font-size: 13px;
  background: var(--white);
  color: var(--ink-2);
  border: 0;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-toggle button + button {
  border-left: 1px solid var(--line-2);
}

.lang-toggle button:hover {
  background: var(--navy-tint);
  color: var(--navy);
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.nav-tag {
  font-size: 13px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-2);
  padding: 6px 12px;
}

@media (max-width: 960px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 0 16px;
    min-height: 0;
  }
  .brand {
    padding: 4px 0 10px;
  }
  .lang-toggle {
    margin-left: auto;
    order: 2;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 4px 0 2px;
    border-top: 1px solid var(--line);
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar {
    display: none;
  }
  .site-nav a {
    padding: 10px 12px;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .brand img {
    height: 26px;
  }
  .site-header .btn.ghost {
    order: 4;
    width: 100%;
    justify-content: center;
    margin: 6px 0 8px;
  }
}

/* ==========================================================================
   Hero — homepage blue header band (same treatment as inner page banners)
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy);
  background-image: radial-gradient(
    120% 130% at 88% 0%,
    rgba(255, 255, 255, 0.11),
    transparent 58%
  );
  color: #fff;
  border-bottom: 1px solid var(--navy-dk);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(34px, 5.5vh, 60px);
  padding-bottom: clamp(34px, 5.5vh, 60px);
}

.hero .crumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

.hero .crumb a {
  color: rgba(255, 255, 255, 0.88);
}

.hero .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}

.hero .sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.87);
  max-width: 62ch;
}

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

/* on blue, the secondary button inverts */
.hero .btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

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

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

.hero .btn.primary:hover {
  background: var(--navy-tint);
  border-color: var(--navy-tint);
  color: var(--navy-dk);
}

/* key figures ride on top of the band */
.hero .facts {
  align-self: center;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 34px rgba(3, 20, 55, 0.28);
  padding: 6px 24px;
  color: var(--ink);
}

.hero .fact {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.hero .fact:last-child {
  border-bottom: 0;
}

.hero .fact .v {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.hero .fact .k {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero .facts {
    padding: 4px 22px;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: clamp(46px, 7vh, 76px) 0;
  border-bottom: 1px solid var(--line);
}

.section.alt {
  background: var(--bg-2);
}

.section.tight {
  padding: clamp(24px, 4vh, 40px) 0;
}

.sec-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

.sec-title .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.sec-title h2 {
  font-size: clamp(21px, 2.4vw, 28px);
}

.sec-title .more {
  margin-left: auto;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .sec-title {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .sec-title .more {
    margin-left: 0;
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Cards / grid
   ========================================================================== */

.grid {
  display: grid;
  gap: 20px;
}

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

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

.grid > * {
  min-width: 0;
}

.cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: var(--shadow-1);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.section.alt .cell {
  background: #fff;
}

.cell:hover {
  border-color: var(--navy-tint-2);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.cell h3 {
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cell p {
  font-size: 15px;
  color: var(--ink-2);
}

.grid.c3 .cell h3 {
  border-bottom: 0;
  padding-bottom: 0;
  position: relative;
  padding-left: 16px;
}

.grid.c3 .cell h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: var(--navy);
}

@media (max-width: 900px) {
  .grid.c3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid.c2,
  .grid.c3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Page banner
   ========================================================================== */

.band {
  background: var(--navy);
  color: #fff;
}

.band .wrap {
  padding-top: clamp(30px, 5vh, 50px);
  padding-bottom: clamp(30px, 5vh, 50px);
}

.band .crumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.band .crumb a {
  color: rgba(255, 255, 255, 0.88);
}

.band h1 {
  color: #fff;
  font-size: clamp(27px, 3.6vw, 40px);
}

.band .desc {
  margin-top: 14px;
  max-width: 78ch;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 11px 22px;
  border-radius: 0;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: var(--navy-tint);
  color: var(--navy-dk);
  text-decoration: none;
  border-color: var(--navy-dk);
}

.btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--shadow-1);
}

.btn.primary:hover {
  background: var(--navy-dk);
  color: #fff;
  border-color: var(--navy-dk);
}

.btn.ghost {
  font-size: 14px;
  padding: 8px 14px;
  border-color: var(--line-2);
  color: var(--ink-2);
}

.btn.ghost:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--navy-tint);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .hero .actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  background: var(--bg-2);
  vertical-align: middle;
}

.badge.live {
  color: var(--green);
  background: var(--green-tint);
  border-color: #bfdcc9;
}

.badge.dev {
  color: var(--amber);
  background: var(--amber-tint);
  border-color: #ecd9b0;
}

/* ==========================================================================
   Model cards
   ========================================================================== */

.mcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mcard .row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mcard h3 {
  margin: 0;
  font-size: 19px;
  border-bottom: 0;
  padding-bottom: 0;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 0;
  padding: 4px 0;
}

.metrics .m {
  flex: 1 1 96px;
  padding: 8px 14px;
  border-right: 1px solid var(--line);
}

.metrics .m:last-child {
  border-right: 0;
}

.metrics .m .v {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.metrics .m .k {
  font-size: 12px;
  color: var(--ink-3);
}

/* ==========================================================================
   Model detail
   ========================================================================== */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(30px, 5vh, 54px) 0;
  border-bottom: 1px solid var(--line);
}

.detail:first-child {
  padding-top: 0;
}

.detail:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail .text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail .head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail h2 {
  font-size: clamp(22px, 2.8vw, 32px);
}

.detail p {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 70ch;
}

.detail ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-2);
}

.detail ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--navy);
}

.detail .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.detail .contact-note {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .detail {
    grid-template-columns: 1fr;
  }
}

/* spec table */
.spec {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.spec .head {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 16px;
}

.spec .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.spec .row:nth-child(even) {
  background: var(--bg-2);
}

.spec .row:last-child {
  border-bottom: 0;
}

.spec .row .k {
  color: var(--ink-3);
  flex: none;
}

.spec .row .v {
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   Team
   ========================================================================== */

.person {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow-1);
  padding: clamp(22px, 3vw, 34px);
}

.person .avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-2);
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-1);
}

.person .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.person h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.person .role {
  display: inline-block;
  margin: 8px 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--navy-tint);
  border: 1px solid var(--navy-tint-2);
  border-radius: 0;
  padding: 3px 10px;
}

.person p {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 72ch;
}

.person .interests {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

.person .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.person .contact-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

.text-link {
  font-size: 14.5px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .person {
    grid-template-columns: 1fr;
  }
  .person .avatar {
    width: 190px;
    aspect-ratio: 1 / 1;
    justify-self: start;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(24px, 3.5vw, 48px);
  padding: clamp(34px, 5vh, 60px) 0 clamp(50px, 8vh, 86px);
}

@media (max-width: 900px) {
  .form-shell {
    grid-template-columns: 1fr;
  }
}

form.ticket {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-1);
}

form.ticket .fhead {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
}

form.ticket .fbody {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 28px);
}

.field {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.field:last-of-type {
  border-bottom: 0;
}

.field.wide {
  grid-template-columns: minmax(0, 1fr);
}

.field > label {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding-top: 9px;
}

.field .req::after {
  content: " *";
  color: var(--red);
}

.field .hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

/* live description-length counter */
.hint .counter {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.hint .counter.ok {
  color: var(--green);
}

.hint .counter.short {
  color: #b3261e;
  font-weight: 600;
}

/* rejection reason — only shown when a reason was recorded */
.reject-note {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  color: #b3261e;
  background: #fdf2f1;
  border: 1px solid #f0c9c5;
  border-radius: 0;
}

/* locked (rejected + archived) status cell */
.status-locked {
  white-space: nowrap;
}

.status-locked .lock {
  margin-right: 6px;
  font-size: 11px;
}

.status-locked .lock-meta {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 0;
  padding: 9px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.14);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 4px 0 2px;
}

.check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--navy);
}

.fsubmit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.fmsg {
  font-size: 14px;
  color: var(--ink-2);
}

.fmsg.ok {
  color: var(--green);
  font-weight: 600;
}

.fmsg.err {
  color: var(--red);
  font-weight: 600;
}

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0;
  background: var(--bg-2);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.notice h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.notice ol {
  counter-reset: n;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.notice ol li {
  position: relative;
  padding-left: 26px;
}

.notice ol li::before {
  counter-increment: n;
  content: counter(n) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 620px) {
  .field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .field > label {
    padding-top: 0;
  }
}

/* ==========================================================================
   Admin
   ========================================================================== */

.login-shell {
  width: 100%;
  max-width: 420px;
  margin: clamp(44px, 10vh, 96px) auto;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-2);
}

.login-shell .fhead {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 20px;
}

.login-shell form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
}

.login-shell form > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* two-factor field — revealed only after the password is accepted */
#tfa-row[hidden] {
  display: none;
}

#tfa-row input {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.28em;
  text-align: center;
}

.login-shell .hint {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}

.admin-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.admin-bar strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

select.compact {
  width: auto;
  font-size: 14px;
  padding: 8px 32px 8px 12px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink-2);
}

.inline-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--navy);
}

.admin-tip {
  display: block;
  padding: 14px 0 50px;
  color: var(--ink-3);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--shadow-1);
}

table.tickets {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 14px;
}

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

table.tickets th {
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 2px solid var(--navy);
}

table.tickets td {
  color: var(--ink-2);
}

table.tickets tbody tr:hover td {
  background: var(--navy-tint);
}

table.tickets td strong {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 13px;
}

table.tickets td select {
  width: auto;
  font-size: 13px;
  padding: 6px 28px 6px 10px;
}

table.tickets tr.detail-row td {
  background: var(--bg-2);
  color: var(--ink-2);
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 14px;
}

.empty {
  padding: 56px 16px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #0d1622;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer .top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  padding: clamp(36px, 5vh, 58px) 0 clamp(28px, 4vh, 40px);
}

.site-footer .col h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer .col a {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  padding: 4px 0;
}

.site-footer .col a:hover {
  color: #fff;
}

.site-footer .col p {
  max-width: 42ch;
  line-height: 1.75;
}

.site-footer .brandmark {
  margin-bottom: 16px;
}

.site-footer .brandmark img {
  height: 24px;
  width: auto;
  opacity: 0.92;
}

.site-footer .bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer .bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer .bottom a:hover {
  color: #fff;
}

.site-footer .bottom .spacer {
  flex: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

@media (max-width: 900px) {
  .site-footer .top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer .col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer .top {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .hero .actions,
  .fsubmit {
    display: none;
  }
  body {
    font-size: 12pt;
  }
  .cell,
  .spec,
  .person,
  form.ticket {
    box-shadow: none;
  }
}
