/* WaterDen v2: friendly, light and easy to read. One typeface (Figtree), soft pastel
   section colours, rounded cards. Body text is regular weight; bold is reserved for titles. */
/* WaterDen v3. Light: Peach & Navy. Dark: Midnight Study (follows the device setting, or the header toggle). */
:root {
  --bg: #fff8f3;
  --surface: #ffffff;
  --ink: #1b2340;
  --ink-2: #4a5270;
  --muted: #6c7290;
  --line: #f2e4da;
  --line-2: #faefe8;
  --brand: #24346b;
  --brand-ink: #1b2852;
  --brand-tint: #ffe9dc;
  --on-brand: #ffffff;
  --verified: #15804c;
  --warn-bg: #fff5de;
  --warn-ink: #7a4b00;
  --danger: #c0352b;
  --danger-bg: #fdecea;
  --ok-bg: #e4f6ec;
  --ok-ink: #145c39;
  /* section colours: tint / ink */
  --coop: #ffe9dc;
  --coop-ink: #9a4a26;
  --careers: #e5ecff;
  --careers-ink: #24346b;
  --campus: #e2f6ec;
  --campus-ink: #1d7550;
  --market: #fff4cf;
  --market-ink: #7d6200;
  --housing: #ffe8f0;
  --housing-ink: #a8305a;
  --groups: #e3f0ff;
  --groups-ink: #1f5ea6;
  --cat-ink: #9a4a26;
  --header-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #1b2340;
  --footer-ink: #d6daea;
  --input-border: #e2d3c9;
  --drop-border: #f4b79a;
  --hot-bg: #24346b;
  --hot-ink: #ffffff;
  --hot-sub: #ffd9c4;
  --grad: linear-gradient(150deg, #ffb48f, #f08a6a 50%, #24346b);
  --art-line: #f4b79a;
  --art-fill: rgba(255, 255, 255, 0.85);
  --art-sun: #ffc8a6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 35, 64, 0.04), 0 4px 16px -8px rgba(27, 35, 64, 0.14);
  --font: 'Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 70ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1328; --surface: #171d38; --ink: #eef0fa; --ink-2: #b6bcd6; --muted: #8c93b3; --line: #262e52; --line-2: #1e2546;
    --brand: #8b93ff; --brand-ink: #a9afff; --brand-tint: #252c5c; --on-brand: #0e1328;
    --verified: #6fdca4; --warn-bg: #3a3018; --warn-ink: #f7d48a; --danger: #ff8a80; --danger-bg: #3a1e24; --ok-bg: #173a2c; --ok-ink: #8fe3c2;
    --coop: #20274f; --coop-ink: #b3b8ff; --careers: #3a2433; --careers-ink: #ffb3a1; --campus: #1d3631; --campus-ink: #8fe3c2;
    --market: #3a341c; --market-ink: #f5d77a; --housing: #3a2130; --housing-ink: #ffa8c6; --groups: #1b2e4a; --groups-ink: #9ccbff;
    --cat-ink: #b3b8ff; --header-bg: rgba(14, 19, 40, 0.92); --footer-bg: #0a0e20; --footer-ink: #b6bcd6; --input-border: #323b66; --drop-border: #4d56a8;
    --hot-bg: #8b93ff; --hot-ink: #0e1328; --hot-sub: #1b2150; --grad: linear-gradient(150deg, #5b63ff, #8b93ff 55%, #ff7e6b);
    --art-line: #4d56a8; --art-fill: rgba(23, 29, 56, 0.9); --art-sun: #ff8c77;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px -10px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1328; --surface: #171d38; --ink: #eef0fa; --ink-2: #b6bcd6; --muted: #8c93b3; --line: #262e52; --line-2: #1e2546;
  --brand: #8b93ff; --brand-ink: #a9afff; --brand-tint: #252c5c; --on-brand: #0e1328;
  --verified: #6fdca4; --warn-bg: #3a3018; --warn-ink: #f7d48a; --danger: #ff8a80; --danger-bg: #3a1e24; --ok-bg: #173a2c; --ok-ink: #8fe3c2;
  --coop: #20274f; --coop-ink: #b3b8ff; --careers: #3a2433; --careers-ink: #ffb3a1; --campus: #1d3631; --campus-ink: #8fe3c2;
  --market: #3a341c; --market-ink: #f5d77a; --housing: #3a2130; --housing-ink: #ffa8c6; --groups: #1b2e4a; --groups-ink: #9ccbff;
  --cat-ink: #b3b8ff; --header-bg: rgba(14, 19, 40, 0.92); --footer-bg: #0a0e20; --footer-ink: #b6bcd6; --input-border: #323b66; --drop-border: #4d56a8;
  --hot-bg: #8b93ff; --hot-ink: #0e1328; --hot-sub: #1b2150; --grad: linear-gradient(150deg, #5b63ff, #8b93ff 55%, #ff7e6b);
  --art-line: #4d56a8; --art-fill: rgba(23, 29, 56, 0.9); --art-sun: #ff8c77;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px -10px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
[hidden] {
  display: none !important;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 450 1.0625rem/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--brand-ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3,
.h3,
.h4 {
  font-family: var(--font);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem);
  font-weight: 700;
}
h2 {
  font-size: 1.3rem;
  font-weight: 650;
}
h3,
.h3 {
  font-size: 1.08rem;
  font-weight: 650;
}
.h4 {
  font-size: 1rem;
  font-weight: 600;
}
strong {
  font-weight: 600;
}
p {
  margin: 0 0 0.9em;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 760px;
}
.lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: var(--measure);
}
.muted {
  color: var(--muted);
}
.small,
.fineprint {
  font-size: 0.9rem;
}
.fineprint {
  color: var(--muted);
  max-width: var(--measure);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 50;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  flex: none;
}
.brand span {
  color: var(--ink);
}
.primary {
  display: flex;
  gap: 2px;
  flex: 1;
}
.primary a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.primary a:hover {
  background: var(--line-2);
  color: var(--ink);
}
.primary a[aria-current='page'] {
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-weight: 600;
}
.primary .nav-campus[aria-current='page'] {
  background: var(--campus);
  color: var(--campus-ink);
}
.primary .nav-marketplace[aria-current='page'] {
  background: var(--market);
  color: var(--market-ink);
}
.primary .nav-housing[aria-current='page'] {
  background: var(--housing);
  color: var(--housing-ink);
}
.primary .nav-groups[aria-current='page'] {
  background: var(--groups);
  color: var(--groups-ink);
}
.primary .nav-premium {
  color: var(--careers-ink);
}
.account {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--ink-2);
}
.icon-btn:hover,
.icon-btn[aria-current='page'] {
  background: var(--line-2);
  color: var(--ink);
}
.nav-toggle {
  display: none;
}
@media (max-width: 920px) {
  .header-row {
    flex-wrap: wrap;
  }
  .header-row {
    gap: 8px;
  }
  .nav-toggle {
    display: block;
    order: 2;
  }
  .nav-toggle summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 500;
    min-height: 42px;
  }
  .nav-toggle summary::-webkit-details-marker {
    display: none;
  }
  .burger,
  .burger::before,
  .burger::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
  }
  .burger::before,
  .burger::after {
    content: '';
    position: absolute;
  }
  .burger::before {
    top: -5px;
  }
  .burger::after {
    top: 5px;
  }
  .account {
    order: 3;
  }
  .primary {
    display: none;
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    padding: 4px 0 12px;
  }
  .nav-toggle[open] ~ .primary {
    display: flex;
  }
  .primary a {
    padding: 12px 14px;
    border-radius: 12px;
  }
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  min-height: 42px;
}
.menu summary:hover {
  background: var(--line-2);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-name {
  font-weight: 500;
}
@media (max-width: 520px) {
  .menu-name {
    display: none;
  }
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.avatar.big {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
  flex: none;
}
.count {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 1px 7px;
  font-weight: 600;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(30, 34, 51, 0.3);
  min-width: 230px;
  padding: 8px;
  display: grid;
}
.menu-panel a,
.menu-panel .linklike {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  width: 100%;
  font-size: 1rem;
}
.menu-panel a:hover,
.menu-panel .linklike:hover {
  background: var(--line-2);
}
.demo-bar {
  background: var(--line-2);
  color: var(--ink-2);
  text-align: center;
  font-size: 0.88rem;
  padding: 6px 16px;
}

/* ---------------------------------------------------------------- buttons and forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: var(--line-2);
}
.btn.small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.92rem;
}
.btn.big {
  min-height: 52px;
  padding: 12px 26px;
  font-size: 1.05rem;
}
.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn[aria-pressed='true'] {
  background: var(--brand-tint);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-ink);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.inline {
  display: inline;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.row.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 18px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .two {
    grid-template-columns: 1fr;
  }
}
label {
  font-weight: 500;
}
.field {
  display: grid;
  gap: 6px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 46px;
  width: 100%;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
}
textarea {
  line-height: 1.55;
  resize: vertical;
}
input[type='checkbox'],
input[type='radio'] {
  width: 20px;
  height: 20px;
  min-height: 0;
  flex: none;
  margin-top: 3px;
  accent-color: var(--brand);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 18px;
  margin: 0;
  display: grid;
  gap: 10px;
  background: var(--surface);
}
legend {
  font-weight: 600;
  padding: 0 6px;
}

/* ---------------------------------------------------------------- feedback */
.flash {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 12px;
}
.flash.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.flash.error {
  background: var(--danger-bg);
  color: var(--danger);
}
.flash.info {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.status-note {
  display: grid;
  gap: 2px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 10px 14px;
  border-radius: 12px;
  margin: 8px 0 16px;
  font-size: 0.95rem;
}
.pii-warning {
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 10px 14px;
  border-radius: 12px;
}
.warning {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 12px 0 16px;
}
.warning ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.empty {
  background: var(--surface);
  border: 1px dashed var(--input-border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--ink-2);
}
.notice-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.responsibility {
  font-size: 0.92rem;
  color: var(--ink-2);
  background: var(--line-2);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0;
}
.draft-note {
  font-size: 0.9rem;
  color: var(--warn-ink);
  background: var(--warn-bg);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
}
.premium-note {
  font-size: 0.9rem;
  color: var(--careers-ink);
  background: var(--careers);
  border-radius: 12px;
  padding: 8px 14px;
  margin: 0;
}
.premium-note a {
  color: var(--careers-ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- home */
main {
  padding-bottom: 72px;
}
.hero {
  position: relative;
  padding: 14px 0 4px;
  min-height: 0;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero .lede {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}
/* Search and the two actions share one row to keep the hero short. */
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  max-width: 340px;
}
.hero-search .btn,
.hero-actions .btn {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 0.9rem;
}
.hero-search input {
  border: 0;
  min-height: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0 0 0 14px;
  font-size: 0.92rem;
  background: transparent;
}
.hero-search input:focus {
  outline: none;
}
.hero-search:focus-within {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
/* Line-art scene sits behind the right side of the title, like the mortgage site's house drawing. */
.hero-art {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(40%, 430px);
  z-index: 0;
  color: var(--art-line);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.campus-scene {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 860px) {
  .hero {
    min-height: 0;
    padding-top: 14px;
  }
  .hero-art {
    width: 100%;
    max-width: 520px;
    right: -16px;
    top: 0;
    transform: none;
    display: none;
    opacity: 0.75;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
}

/* ---------------------------------------------------------------- Around campus slide-out */
.side-drawer {
  position: fixed;
  right: 0;
  top: 32vh;
  z-index: 35;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
}
.drawer-tab {
  list-style: none;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.drawer-tab::-webkit-details-marker {
  display: none;
}
.drawer-tab:hover {
  color: var(--brand-ink);
}
.drawer-dots {
  width: 6px;
  height: 18px;
  background: radial-gradient(circle, var(--brand) 2.5px, transparent 3px) 0 0 / 6px 6px repeat-y;
}
.drawer-chevron {
  transform: rotate(90deg);
  font-size: 1.1rem;
  line-height: 1;
}
.side-drawer[open] .drawer-chevron {
  transform: rotate(-90deg);
}
.drawer-panel {
  width: min(340px, calc(100vw - 64px));
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px 0 0 18px;
  box-shadow: 0 20px 50px -20px rgba(30, 34, 51, 0.35);
  padding: 16px;
  margin-top: -8px;
}
.drawer-title {
  font-weight: 650;
  margin: 0;
}
.drawer-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 2px 0 10px;
}
.drawer-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.drawer-panel a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
}
.drawer-panel a:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.drawer-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.drawer-text {
  display: grid;
  gap: 1px;
}
.drawer-text strong {
  font-weight: 600;
}
.drawer-text span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 520px) {
  .side-drawer {
    top: auto;
    bottom: 96px;
  }
}

/* Work terms: compact strip */
.terms {
  margin: 12px 0 18px;
}
.term-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.term a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
}
.term a:hover {
  border-color: var(--brand);
}
.term-dot {
  display: none;
}
.term.now a {
  background: var(--coop);
  border-color: transparent;
}
.term.recruiting a {
  background: var(--hot-bg);
  border-color: var(--hot-bg);
  color: var(--hot-ink);
}
.term.recruiting .term-state,
.term.recruiting .term-link {
  color: var(--hot-sub);
}
.term.recruiting .term-state {
  font-weight: 600;
}
.term-name {
  font-weight: 650;
  font-size: 0.92rem;
}
.term-state {
  font-size: 0.8rem;
  color: var(--ink-2);
}
.term-link {
  flex-basis: 100%;
  font-size: 0.76rem;
  color: var(--brand-ink);
  text-decoration: underline;
}
@media (max-width: 760px) {
  .term-track {
    grid-template-columns: 1fr 1fr;
  }
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.home-grid .thread-row {
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 16px;
}
.home-grid .thread-row {
  position: relative;
}
.home-grid .tr-stats {
  position: absolute;
  right: 16px;
  bottom: 12px;
}
.home-grid .tr-stats {
  justify-items: start;
  grid-auto-flow: column;
  justify-content: start;
  gap: 12px;
}
@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.block-head h2 {
  font-size: 1.15rem;
}
.home-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .home-tools {
    grid-template-columns: 1fr;
  }
}
.home-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.home-side h2 {
  font-size: 1.05rem;
}
.deadlines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.deadlines li {
  display: grid;
}
.deadlines span {
  color: var(--muted);
  font-size: 0.9rem;
}
.template-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.template-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.template-links a:hover {
  background: var(--brand-tint);
}
.careers-band {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
  background: var(--careers);
  border-radius: 24px;
  padding: 28px;
}
.careers-band h2 {
  color: var(--careers-ink);
  font-size: 1.5rem;
}
@media (max-width: 860px) {
  .careers-band {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
.campus-band {
  margin-top: 48px;
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.band-grid > div {
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.band-grid > div:nth-child(1) {
  background: var(--housing);
  border-color: transparent;
}
.band-grid > div:nth-child(2) {
  background: var(--market);
  border-color: transparent;
}
.band-grid > div:nth-child(3) {
  background: var(--groups);
  border-color: transparent;
}
.band-grid > div:nth-child(4) {
  background: var(--campus);
  border-color: transparent;
}
@media (max-width: 900px) {
  .band-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .band-grid {
    grid-template-columns: 1fr;
  }
}
.band-grid h3 a {
  color: var(--ink);
  text-decoration: none;
}
.band-grid h3 a::after {
  content: ' ›';
}
.mini {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.mini li {
  display: grid;
}
.mini .muted {
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------- page heads and lists */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 20px 0 14px;
}
.crumbs + .section-head {
  margin-top: 6px;
}
/* Title and main button share one row; the description sits underneath. */
.section-head > div {
  display: contents;
}
.section-head h1 {
  order: 1;
  margin: 0;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem);
}
.section-head > .btn,
.section-head > .row {
  order: 2;
}
.section-head > div > p {
  order: 3;
  flex-basis: 100%;
  margin: 0;
}
.section-head .lede {
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 900px;
}
.section-head > .btn,
.section-head > .row .btn {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 0.92rem;
}
.section-head > a.btn::before {
  content: '+';
  font-size: 1.2em;
  line-height: 0.8;
  font-weight: 500;
}
/* Category shortcuts: one compact row of pills per group. */
.cat-groups {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.cat-groups > section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.group-h {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0;
  min-width: 150px;
}
.cat-strip {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-groups .cat-strip {
  margin: 0;
}
.cat-strip a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  line-height: 1.3;
  font-size: 0.88rem;
  background: var(--coop);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
}
.cat-strip a:hover {
  border-color: var(--coop-ink);
}
.cat-strip strong {
  color: var(--coop-ink);
  font-weight: 600;
}
.careers-block .cat-strip a {
  background: var(--careers);
}
.careers-block .cat-strip a:hover {
  border-color: var(--careers-ink);
}
.careers-block .cat-strip strong {
  color: var(--careers-ink);
}
.cat-strip span {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
}
.cat-strip.tone-campus a {
  background: var(--campus);
}
.cat-strip.tone-campus a:hover {
  border-color: var(--campus-ink);
}
.cat-strip.tone-campus strong {
  color: var(--campus-ink);
}
.cat-strip.tone-careers a {
  background: var(--careers);
}
.cat-strip.tone-careers strong {
  color: var(--careers-ink);
}
.list-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.list-tools .tabs {
  margin: 0;
}
.tabs a {
  padding: 4px 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tabs a:hover {
  border-color: var(--ink-2);
}
.tabs a[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.tag-filter select {
  width: auto;
  min-width: 160px;
  border-radius: 999px;
  min-height: 34px;
  padding: 4px 12px;
  font-size: 0.9rem;
}
.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.thread-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.thread-row:hover {
  border-color: var(--drop-border);
}
.tr-title {
  font-weight: 600;
  font-size: 1.07rem;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
}
.tr-title:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}
.tr-excerpt {
  margin: 2px 0 8px;
  color: var(--ink-2);
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tr-meta {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.88rem;
}
.cat {
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1.5;
  text-decoration: none;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--coop);
  color: var(--cat-ink);
}
.cat-careers {
  background: var(--careers);
  color: var(--careers-ink);
}
.cat-campus {
  background: var(--campus);
  color: var(--campus-ink);
}
.tag {
  display: inline-block;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  line-height: 1.5;
  text-decoration: none;
  margin: 1px 2px 1px 0;
}
.tr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.tr-by {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.tr-by a {
  color: var(--ink);
  font-weight: 550;
}
.tag:hover {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.tr-stats {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}
.stat strong {
  color: var(--ink);
  font-size: 1rem;
}
.stat.zero strong {
  color: var(--brand-ink);
}
.stat.accepted {
  color: var(--verified);
  font-weight: 600;
}
@media (max-width: 520px) {
  .thread-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }
  .tr-stats {
    justify-items: start;
    grid-auto-flow: column;
    justify-content: start;
    gap: 12px;
  }
}
.load-more {
  text-align: center;
  margin: 18px 0;
}

/* ---------------------------------------------------------------- people */
.author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.author a {
  font-weight: 500;
  color: var(--ink);
}
.verified {
  position: relative;
  display: inline-flex;
  color: var(--verified);
  cursor: help;
  border-radius: 4px;
}
.verified .tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 30;
}
.verified:hover .tip,
.verified:focus .tip,
.verified.open .tip {
  display: block;
}
.role-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--line-2);
  border-radius: 999px;
  padding: 1px 8px;
}
.role-label.staff {
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.role-label.helpful {
  background: var(--careers);
  color: var(--careers-ink);
}
.role-label.accepted {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.accent-lake {
  color: #1f6fb2 !important;
}
.accent-moss {
  color: #4f7a28 !important;
}
.accent-plum {
  color: #7b3fa6 !important;
}
.accent-ember {
  color: #a8481d !important;
}
.profile-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 28px 0 16px;
}
.profile-head.celebrate .avatar {
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--brand);
}
.verified-line {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}

/* ---------------------------------------------------------------- thread */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 12px 0 4px;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 4px;
}
.thread,
.listing {
  max-width: 820px;
}
.thread-head {
  margin-bottom: 16px;
}
.thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 0.95rem;
}
.tags {
  margin: 10px 0 0;
}
.prose {
  max-width: var(--measure);
}
.prose h3,
.prose h4,
.prose h5 {
  margin: 1.2em 0 0.4em;
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose blockquote {
  margin: 0 0 1em;
  border-left: 3px solid var(--line);
  padding-left: 14px;
  color: var(--ink-2);
}
.prose pre,
.raw {
  background: #0f1428;
  color: #eef0fa;
  padding: 12px 14px;
  border-radius: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.9rem;
}
.prose code {
  background: var(--line-2);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
.prose pre code {
  background: none;
  padding: 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.fields div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.fields dt {
  font-size: 0.85rem;
  color: var(--muted);
}
.fields dd {
  margin: 0;
  font-weight: 500;
}
.field-block {
  margin-bottom: 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 20px;
}
.report-link {
  font-size: 0.9rem;
  color: var(--muted);
}
.mod-inline {
  display: inline-flex;
  gap: 8px;
}
.accepted-answer {
  background: var(--ok-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 8px 0 24px;
}
.replies-wrap {
  margin-top: 28px;
}
.replies {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.reply {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.reply.is-accepted {
  border-color: var(--verified);
  box-shadow: inset 4px 0 0 var(--verified);
}
.reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.reply .actions {
  margin: 4px 0 0;
}
.composer {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.composer-closed {
  margin-top: 24px;
  color: var(--muted);
}
.similar {
  background: var(--brand-tint);
  border-radius: 12px;
  padding: 12px 16px;
}
.similar ul {
  margin: 0;
  padding-left: 18px;
}
.compose {
  max-width: 820px;
}
.guidance {
  background: var(--coop);
  color: var(--ink-2);
  padding: 12px 16px;
  border-radius: 12px;
  max-width: var(--measure);
}
.template-tabs a {
  font-size: 0.92rem;
}
.tag-pick {
  gap: 12px;
}
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tag-group-name {
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 90px;
}
.tag-check {
  font-weight: 400;
  position: relative;
}
.tag-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tag-check span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.9rem;
}
.tag-check input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.tag-check input:checked + span::before {
  content: '✓ ';
}
.tag-check input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.char-count {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}
.ad-slot {
  min-height: 140px;
  margin: 24px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ad-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------- listings */
.cross-link {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 0 0 12px;
}
.listing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.listing-card.sold {
  opacity: 0.6;
}
.lc-title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}
.lc-key {
  margin: 4px 0 0;
}
.lc-key strong {
  font-size: 1.15rem;
  margin-right: 6px;
}
.lc-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin: 8px 0 0;
}
.avail {
  font-weight: 500;
  font-size: 0.85rem;
  padding: 1px 10px;
  border-radius: 999px;
}
.avail.available {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.avail.pending {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.avail.sold {
  background: var(--line-2);
  color: var(--ink-2);
}
.owner-tools {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.owner-tools select {
  width: auto;
}
.enquiry {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.enquiry-msgs {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
}
.enquiry-msgs li {
  background: var(--line-2);
  border-radius: 12px;
  padding: 8px 12px;
}
.enquiry-msgs li.mine {
  background: var(--brand-tint);
}
.enquiry-msgs p {
  margin: 0;
}

/* photo picker */
.photo-picker {
  gap: 12px;
}
.file-drop {
  display: grid;
  place-items: center;
  border: 2px dashed var(--drop-border);
  background: var(--coop);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  color: var(--coop-ink);
  font-weight: 500;
  position: relative;
}
.file-drop:hover {
  border-color: var(--brand);
}
.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  min-height: 0;
}
.file-drop:focus-within {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.photo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.photo-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--line-2);
  border-radius: 12px;
  padding: 10px;
}
.photo-list img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}
.photo-list li > div {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.photo-list p {
  margin: 0;
}
.photo-list .err {
  color: var(--danger);
}

/* ---------------------------------------------------------------- groups and chat */
.group-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.group-list li {
  background: var(--groups);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 2px;
}
.group-list p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
}
@media (max-width: 820px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
}
.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 480px;
  overflow: hidden;
}
.theme-confetti .chat {
  background-image: radial-gradient(var(--brand-tint) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.chat-note {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 10px 14px;
  margin: 0;
  border-bottom: 1px solid var(--line-2);
}
.messages {
  list-style: none;
  margin: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 60vh;
  order: 2;
}
.older {
  order: 1;
  text-align: center;
  margin: 8px 0 0;
}
.chat-form {
  order: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-2);
}
.msg {
  max-width: 80%;
  background: var(--line-2);
  border-radius: 16px 16px 16px 4px;
  padding: 8px 12px;
}
.msg.mine {
  align-self: flex-end;
  background: var(--brand-tint);
  border-radius: 16px 16px 4px 16px;
}
.msg.held {
  border: 1px dashed var(--warn-ink);
}
.msg-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.msg p {
  margin: 2px 0 0;
  white-space: pre-wrap;
}
.chat-error {
  grid-column: 1 / -1;
  color: var(--danger);
  margin: 0;
}
.members ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.invite input {
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- account */
.card-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 20px 0;
}
.bean-balance {
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  margin: 4px 0 12px;
  color: var(--careers-ink);
}
.perks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.perks li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  flex-wrap: wrap;
}
.perks select {
  width: auto;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ledger,
.plans {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}
.table-wrap .ledger,
.table-wrap .plans {
  border: 0;
}
:not(.table-wrap) > .ledger {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  overflow-x: auto;
}
.ledger th,
.ledger td,
.plans th,
.plans td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  overflow-wrap: normal;
}
.ledger thead th,
.plans thead th {
  background: var(--line-2);
  font-weight: 600;
}
.plans tbody th {
  font-weight: 500;
}
.num {
  text-align: right !important;
}
.status-pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--line-2);
  margin-right: 6px;
  white-space: nowrap;
}
.status-pill.published,
.status-pill.approved {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.status-pill.pending,
.status-pill.held {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.status-pill.rejected,
.status-pill.removed {
  background: var(--danger-bg);
  color: var(--danger);
}
.meter {
  height: 12px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
  margin-bottom: 16px;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--grad);
}
.notifications {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.notifications li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
}
.notifications li.unread {
  box-shadow: inset 4px 0 0 var(--brand);
}
.auth {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.oauth {
  margin-top: 24px;
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
}
.oauth-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

/* ---------------------------------------------------------------- about and premium */
.about-hero {
  margin: 32px 0 20px;
  max-width: 760px;
}
.independence-card {
  background: var(--coop);
  border-radius: 24px;
  padding: 24px 28px;
  max-width: 860px;
  margin-bottom: 28px;
}
.independence-card h2 {
  color: var(--coop-ink);
}
.independence-card p {
  margin: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.about-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.about-item p {
  margin: 0;
  color: var(--ink-2);
}
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin-bottom: 32px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.plan-card.featured {
  background: var(--grad);
  color: #fff;
  border: 0;
}
.plan-card.featured h2,
.plan-card.featured .price {
  color: #fff;
}
.plan-card.featured .btn {
  background: #fff;
  color: #1b2340;
  border-color: #fff;
  justify-self: start;
}
.plan-card ul {
  padding-left: 1.2em;
  margin: 0 0 8px;
}
.price {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
}
.price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}
.soon {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0;
  font-size: 0.92rem;
}
.fine-list {
  max-width: var(--measure);
  padding-left: 1.2em;
  color: var(--ink-2);
  margin-top: 16px;
}

/* ---------------------------------------------------------------- uploads */
.uploader {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin: 12px 0;
  max-width: var(--measure);
}
.uploader summary {
  cursor: pointer;
  font-weight: 500;
  min-height: 32px;
}
.uploader[open] {
  display: grid;
  gap: 10px;
}
.upload-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.upload-preview img {
  max-width: 200px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.attachments {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.attachments img {
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  width: 160px;
  height: 120px;
}
.pending-file {
  display: inline-block;
  padding: 8px 12px;
  border: 1px dashed var(--warn-ink);
  border-radius: 12px;
  color: var(--warn-ink);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------- moderation */
.queue {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.queue > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.queue > li.urgent {
  box-shadow: inset 5px 0 0 var(--danger);
}
.urgent-label {
  color: var(--danger);
}
.flagged {
  color: var(--warn-ink);
  background: var(--warn-bg);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.quote {
  border-left: 3px solid var(--line);
  padding-left: 12px;
  color: var(--ink-2);
}
.decide {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
}
.mod-preview {
  max-width: 320px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.seed {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.filters label {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}
.filters label.wide {
  flex: 1 1 320px;
}
.filters select,
.filters input {
  min-height: 40px;
}
.content-table td {
  font-size: 0.92rem;
}
.clamp {
  margin: 2px 0 0;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 60ch;
}
.actions-cell {
  white-space: nowrap;
}
.actions-cell a + a {
  margin-left: 10px;
}
.agent-help {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.agent-help summary {
  cursor: pointer;
  font-weight: 500;
}
.prose-page h2 {
  margin-top: 1.4em;
}
.prose-page ul {
  padding-left: 1.3em;
}
.tag-cloud {
  margin-top: 24px;
}
.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 760px;
}
main > section:first-child > h1:first-child,
main > h1:first-child,
main > .flash + section > h1:first-child {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 36px 0 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.independence {
  max-width: 60ch;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-content: start;
}
.footer-links a {
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font: 500 0.9rem var(--font);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.theme-toggle .moon {
  display: inline;
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: inline;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: inline;
  }
}
@media (max-width: 520px) {
  .theme-toggle .label {
    display: none;
  }
}
.attachments img,
.upload-preview img {
  background: var(--line-2);
}
