/* styles.css */
﻿:root {
  --bg: oklch(0.105 0.006 24);
  --bg-2: oklch(0.14 0.008 24);
  --surface: oklch(0.17 0.008 24);
  --surface-2: oklch(0.205 0.01 24);
  --surface-3: oklch(0.255 0.012 24);
  --ink: oklch(0.93 0.006 36);
  --muted: oklch(0.70 0.012 36);
  --faint: oklch(0.54 0.01 36);
  --primary: oklch(0.54 0.13 16);
  --primary-deep: oklch(0.32 0.08 16);
  --accent: oklch(0.68 0.08 190);
  --warning: oklch(0.74 0.10 75);
  --success: oklch(0.70 0.10 145);
  --border: oklch(0.30 0.012 28);
  --radius: 10px;
  --font-display: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --z-sticky: 10;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.noise {
  display: none;
}

main,
.site-header,
.site-footer,
.flash {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark,
.thread-seal {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  font-size: 1.42rem;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header-cta,
.button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.header-cta {
  padding: 0.52rem 0.78rem;
  font-size: 0.9rem;
}

.header-cta:hover,
.board-link:hover,
.tool-chip:hover,
.quiet-link:hover {
  border-color: color-mix(in oklch, var(--accent) 48%, var(--border));
  background: var(--surface-2);
}

.header-form {
  margin: 0;
}

.header-cta,
.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}

.flash {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.flash-error {
  border-color: color-mix(in oklch, var(--primary) 72%, var(--border));
}

.flash-success {
  border-color: color-mix(in oklch, var(--success) 72%, var(--border));
}

.flash-warning {
  border-color: color-mix(in oklch, var(--warning) 72%, var(--border));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.65rem, 5.6vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.006em;
  font-weight: 800;
}

h3 {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.62rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
}

.button.full {
  width: 100%;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.seal {
  width: fit-content;
  margin: 0 0 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  padding: 0.26rem 0.6rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-text,
.page-title p,
.dossier-header p,
.thread-main p,
.member-card p,
.muted,
.empty-state p,
.reply p {
  color: var(--muted);
  text-wrap: pretty;
}

.hero-text {
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.hero-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions {
  margin-top: 1.6rem;
}

.intel-board,
.member-card,
.toolbox,
.board-nav,
.thread-feed,
.auth-card,
.dossier,
.reply-panel,
.search-panel,
.stack-form,
.stat-grid article,
.admin-action-card,
.admin-panel,
.admin-filter-bar {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}

.intel-board,
.board-nav,
.thread-feed,
.member-card,
.toolbox,
.auth-card,
.dossier,
.reply-panel,
.search-panel,
.stack-form,
.admin-panel,
.admin-action-card,
.admin-filter-bar {
  padding: 1rem;
}

.board-topline,
.panel-heading,
.feed-header,
.thread-meta,
.classified-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.board-topline,
.panel-heading,
.feed-header {
  justify-content: space-between;
  gap: 1rem;
}

.board-topline,
.panel-heading,
.thread-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.live-dot::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
}

.terminal-window {
  margin: 1rem 0;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 72%, var(--surface));
  padding: 0.9rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.terminal-window p {
  margin: 0.25rem 0;
}

.terminal-window span,
.quiet-link,
.auth-card a:not(.button),
.site-footer a {
  color: var(--accent);
}

.classified-strip {
  flex-wrap: wrap;
  gap: 0.65rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}

.classified-strip b,
.ticker span {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 7px;
  padding: 0.2rem 0.58rem;
  font-weight: 700;
}

.classified-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  border-block: 1px solid var(--border);
  padding: 0.9rem 0;
}

.ticker p {
  margin: 0;
  color: var(--muted);
}

.ticker p:not(:last-child)::after {
  content: " /";
  color: var(--faint);
}

.forum-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.forum-shell.compact {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.7fr);
}

.board-nav,
.side-stack,
.reply-panel {
  position: sticky;
  top: 5.6rem;
}

.board-nav,
.side-stack {
  display: grid;
  gap: 1rem;
}

.board-link {
  display: grid;
  gap: 0.22rem;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  border-radius: 8px;
  padding: 0.72rem;
}

.board-link span {
  color: var(--ink);
  font-weight: 700;
}

.board-link b {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 400;
}

.board-link.is-active {
  border-color: var(--border);
  background: var(--surface-2);
}
.search-box,
.search-panel,
.stack-form {
  display: grid;
  gap: 0.65rem;
}
.feed-header {
  align-items: end;
  margin-bottom: 0.8rem;
}

.feed-header .seal {
  margin-bottom: 0.65rem;
}

.search-box {
  min-width: min(100%, 20rem);
  color: var(--muted);
  font-size: 0.85rem;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 76%, var(--surface));
  color: var(--ink);
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  outline: none;
}

.search-box input {
  min-height: 2.65rem;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in oklch, var(--muted) 82%, var(--ink));
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
}
.thread-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.thread-row:first-of-type {
  border-top: 0;
}

.thread-seal {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.thread-row.is-locked .thread-seal {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--primary) 65%, var(--border));
  background: color-mix(in oklch, var(--primary-deep) 54%, var(--surface));
}
.thread-meta {
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.35rem;
  color: var(--faint);
  font-size: 0.82rem;
}

.thread-meta span,
.thread-meta a {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.1rem 0.42rem;
}

.thread-main h3 {
  margin-bottom: 0.4rem;
}

.thread-main p {
  max-width: 66ch;
  margin-bottom: 0;
}

.thread-stats {
  display: grid;
  justify-items: end;
  min-width: 3.2rem;
  color: var(--muted);
}

.thread-stats strong {
  color: var(--muted);
  font-size: 0.86rem;
}
.member-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.member-list div {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.member-list dt {
  color: var(--ink);
  font-weight: 700;
}

.member-list dd {
  margin: 0.1rem 0 0;
  color: var(--muted);
}

.toolbox h2 {
  margin: 0.65rem 0 0.9rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.cursor {
  display: none;
}

.tool-chip {
  margin: 0 0.35rem 0.5rem 0;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
}

.tool-output {
  min-height: 7rem;
  white-space: pre-wrap;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--bg) 72%, var(--surface));
  color: var(--muted);
  border-radius: 8px;
  padding: 0.85rem;
  font-family: var(--font-body);
  line-height: 1.65;
}
.page-shell {
  padding: clamp(2.4rem, 6vw, 4.5rem) 0;
}

.page-shell.narrow {
  width: min(820px, calc(100% - 2rem));
}

.page-title {
  margin-bottom: clamp(1.4rem, 3.5vw, 2.4rem);
}

.page-title h1,
.auth-card h1,
.dossier-header h1 {
  max-width: 14ch;
}

.thread-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 1rem;
  align-items: start;
  padding: clamp(2.4rem, 5vw, 4rem) 0;
}

.dossier,
.reply-panel {
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.breadcrumb {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
}

.dossier-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.3rem;
}
.dossier-section {
  max-width: 72ch;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
}

.dossier-section.member-section {
  background: color-mix(in oklch, var(--primary-deep) 22%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.locked-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border: 1px solid color-mix(in oklch, var(--primary) 62%, var(--border));
  background: color-mix(in oklch, var(--primary-deep) 24%, var(--surface));
  border-radius: var(--radius);
  padding: 1rem;
}

.reply {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
}

.auth-shell {
  display: grid;
  min-height: calc(100svh - 8rem);
  place-items: center;
  padding: 3rem 0;
}

.auth-card {
  width: min(520px, 100%);
}

.grid-two,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: start;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.stat-grid article {
  padding: 1rem;
}

.stat-grid strong {
  display: block;
  font-size: 1.85rem;
  color: var(--ink);
  font-weight: 800;
}

.stat-grid span {
  color: var(--muted);
}

.stat-grid small {
  color: var(--faint);
}

.admin-shell {
  width: min(1240px, calc(100% - 2rem));
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.admin-hero h1 {
  max-width: none;
  margin-bottom: 0.55rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-hero p:not(.seal) {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.42rem;
}

.admin-nav a {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

.admin-nav a:hover,
.admin-nav a.is-current {
  border-color: var(--border);
  background: var(--surface-2);
}
.admin-action-grid,
.admin-preview-grid {
  display: grid;
  gap: 1rem;
}

.admin-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 1rem;
}

.admin-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-action-card {
  display: grid;
  gap: 0.35rem;
}

.admin-action-card:hover {
  border-color: color-mix(in oklch, var(--accent) 48%, var(--border));
}
.admin-action-card span,
.admin-panel-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-action-card strong {
  font-size: 1.04rem;
}

.admin-action-card small {
  color: var(--muted);
}
.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 0.7fr)) auto auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1rem;
}

.admin-filter-bar label,
.admin-reset-form label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
  margin-bottom: 0.2rem;
}

.admin-panel-head h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}
.site-footer {
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 1.35rem 0 1.8rem;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.admin-list-row,
.admin-review-row,
.admin-table-row,
.audit-row {
  border-top: 1px solid var(--border);
  padding: 0.88rem 0;
}

.admin-list-row:first-of-type,
.admin-review-row:first-of-type,
.admin-table-row:first-of-type,
.audit-row:first-child {
  border-top: 0;
}

.admin-list-row,
.admin-review-row,
.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.admin-list-row p,
.admin-review-row p,
.admin-primary-cell p,
.audit-row p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.admin-primary-cell small,
.audit-row small,
.audit-meta small {
  color: var(--faint);
}

.status-pill {
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.18rem 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.status-pill.success {
  border-color: color-mix(in oklch, var(--success) 55%, var(--border));
  color: var(--success);
}

.status-pill.warning {
  border-color: color-mix(in oklch, var(--warning) 55%, var(--border));
  color: var(--warning);
}

.admin-table,
.audit-list {
  display: grid;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.admin-table-head {
  color: var(--faint);
  font-size: 0.82rem;
  padding: 0.55rem 0;
}

.admin-table-head.users-head,
.admin-table-row.users-row {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.82fr) minmax(220px, 0.82fr) minmax(170px, 0.55fr);
}

.admin-inline-form,
.admin-status-form,
.admin-row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-inline-form select {
  min-width: 8.2rem;
}

.admin-inline-form .button,
.admin-status-form .button,
.admin-row-actions .button {
  min-height: 2.4rem;
  padding: 0.48rem 0.72rem;
  font-size: 0.86rem;
}

.admin-status-form {
  justify-content: flex-end;
}

.admin-security-cell,
.admin-reset-form {
  display: grid;
  gap: 0.55rem;
}

.admin-reset-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.52rem 0.65rem;
  background: color-mix(in oklch, var(--bg) 62%, transparent);
}

.admin-reset-panel summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-reset-form {
  margin-top: 0.65rem;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.7rem;
  color: var(--muted);
}

.pagination div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audit-meta {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

@media (max-width: 980px) {
  .header-form,
  .header-cta {
    display: none;
  }

  .hero,
  .forum-shell,
  .forum-shell.compact,
  .thread-page,
  .grid-two,
  .admin-grid,
  .admin-stats,
  .admin-action-grid,
  .admin-preview-grid,
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-table-head {
    display: none;
  }

  .admin-table-row.users-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  h1 {
    max-width: 14ch;
    font-size: clamp(2.35rem, 9vw, 3.35rem);
  }

  .board-nav,
  .side-stack,
  .reply-panel {
    position: static;
  }

  .board-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }

  .board-nav .panel-heading {
    min-width: 7rem;
    align-content: center;
  }

  .board-link {
    min-width: 12rem;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.68;
  }

  main,
  .site-header,
  .site-footer,
  .flash {
    width: min(100% - 1rem, 1180px);
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 10.5vw, 2.85rem);
  }

  .feed-header,
  .thread-row,
  .site-footer,
  .admin-list-row,
  .admin-review-row,
  .admin-inline-form,
  .admin-status-form,
  .admin-row-actions,
  .pagination,
  .audit-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-hero {
    display: grid;
  }

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

  .admin-nav a {
    text-align: center;
    border-color: var(--border);
  }

  .admin-inline-form,
  .admin-status-form,
  .admin-row-actions,
  .pagination {
    width: 100%;
  }

  .admin-inline-form .button,
  .admin-status-form .button,
  .admin-row-actions .button,
  .admin-filter-bar .button,
  .pagination .button {
    width: 100%;
  }

  .thread-row {
    grid-template-columns: auto 1fr;
  }

  .thread-stats {
    grid-column: 2;
    justify-items: start;
  }

  .search-box {
    width: 100%;
  }

  .locked-box {
    grid-template-columns: 1fr;
  }

  .audit-meta {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* quiet.css */
:root {
  --bg: #f7f8f8;
  --bg-2: #f7f8f8;
  --surface: #fff;
  --surface-2: #f1f3f4;
  --surface-3: #e9eef0;
  --ink: #20272d;
  --muted: #56636b;
  --faint: #65727a;
  --primary: #2f4c62;
  --primary-deep: #eaf0f4;
  --accent: #34566d;
  --warning: #986b2c;
  --success: #397057;
  --border: #dce2e5;
  --radius: 8px;
  --font-display: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

body { background: var(--bg); line-height: 1.65; }
main, .site-header, .site-footer, .flash { width: min(1040px, calc(100% - 2rem)); }
.admin-shell { width: min(1180px, calc(100% - 2rem)); }
h1 { max-width: none; font-size: clamp(2rem, 3.5vw, 2.65rem); line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(1.24rem, 2vw, 1.55rem); font-weight: 700; }
h3 { font-weight: 700; }
.button.primary { color: #fff; }
.button, input, textarea, select { border-radius: 6px; }
.button.secondary { background: #fff; }
.seal { background: transparent; border: 0; padding: 0; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-footer { font-size: .86rem; }
.site-footer strong { font-size: inherit; }
.site-footer a { color: var(--muted); }

.alliance-home-entry { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 0 32px; border-top:1px solid var(--border); }
.journal-intro h1, .journal-description { overflow-wrap:anywhere; }
.home-theme .journal-intro h1 span { white-space:normal; }
.alliance-home-entry strong { font-size:14px; font-weight:600; }
.alliance-home-entry p { margin:5px 0 0; font-size:12px; color:var(--muted); max-width:65ch; }
.alliance-home-entry > a { flex:none; color:var(--accent); font-size:12px; padding:8px 0; }
.alliance-theme .site-header, .alliance-theme .site-footer, .alliance-theme .flash { width:min(1080px,calc(100% - 64px)); }
.alliance-page { width:min(1080px,calc(100% - 64px)); padding:40px 0 56px; }
.alliance-intro, .alliance-content, .alliance-cta, .alliance-admin-hint { width:min(760px,100%); margin-left:auto; margin-right:auto; }
.alliance-back { display:inline-block; font-size:13px; color:var(--muted); margin-bottom:38px; }
.alliance-intro h1 { font-size:clamp(30px,5vw,42px); line-height:1.4; margin:10px 0 18px; overflow-wrap:anywhere; }
.alliance-summary { color:var(--muted); font-size:16px; line-height:1.9; }
.alliance-content { margin-top:30px; padding-top:24px; border-top:1px solid var(--border); }
.alliance-content p { font-size:15px; line-height:1.95; white-space:pre-line; overflow-wrap:anywhere; margin:0 0 22px; }
.alliance-cta { margin-top:30px; }
.alliance-image { margin:28px 0; }
.alliance-image img { display:block; width:100%; height:360px; object-fit:cover; object-position:center; border-radius:12px; background:var(--surface-2); }
.alliance-admin-hint { color:var(--muted); font-size:13px; border-top:1px solid var(--border); padding-top:24px; }
.alliance-admin-hint a { color:var(--primary); }
@media(max-width:640px) {
  .alliance-home-entry { align-items:flex-start; flex-direction:column; gap:6px; }
  .alliance-theme .site-header, .alliance-theme .site-footer, .alliance-theme .flash, .alliance-page { width:calc(100% - 40px); }
  .alliance-page { padding-top:24px; }
  .alliance-back { margin-bottom:26px; }
  .alliance-image img { height:340px; border-radius:10px; }
}

.home-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: clamp(2.4rem, 5vw, 3.7rem) 0 2.1rem;
  border-bottom: 1px solid var(--border);
}
.home-intro h1 { margin-bottom: .7rem; }
.home-intro p:last-child { max-width: 62ch; margin-bottom: 0; color: var(--muted); }
.home-intro .button { flex: none; }
.eyebrow { margin-bottom: .65rem; color: var(--faint); font-size: .84rem; }
.board-filter { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.board-filter h2 { margin-bottom: .75rem; font-size: .94rem; }
.board-pills { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; }
.board-pills a { padding: .32rem 0; color: var(--muted); font-size: .94rem; border-bottom: 2px solid transparent; }
.board-pills a:hover, .board-pills a.is-active { color: var(--ink); border-color: var(--primary); }
.content-section { padding: 2rem 0 3rem; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3.2rem; align-items: start; }
.content-section .feed-header, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: .5rem; }
.content-section .feed-header h2, .section-heading h2 { margin-bottom: .3rem; }
.content-section .feed-header p, .section-heading span { margin: 0; color: var(--muted); font-size: .9rem; }
.search-box { display: flex; align-items: center; gap: .5rem; width: min(310px, 100%); min-width: 0; }
.search-box input { min-width: 0; flex: 1; background: #fff; }
.search-box button { flex: none; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink); padding: .53rem .78rem; cursor: pointer; }
.search-box button:hover { border-color: var(--accent); }
.text-link { color: var(--accent); font-weight: 600; }
.more-link { display: inline-block; margin-top: 1.3rem; }
.feed-tabs { display: flex; gap: 1.25rem; margin: 1.1rem 0 .25rem; border-bottom: 1px solid var(--border); }
.feed-tabs a { padding: .5rem 0 .65rem; color: var(--muted); font-size: .9rem; border-bottom: 2px solid transparent; }
.feed-tabs a:hover, .feed-tabs a.is-active { color: var(--ink); border-color: var(--primary); }

.thread-row, .thread-row:first-of-type {
  display: block;
  border-top: 0;
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}
.thread-row .thread-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: .4rem; font-size: .8rem; color: var(--faint); }
.thread-row .thread-meta a, .thread-row .thread-meta span,
.dossier .thread-meta a, .dossier .thread-meta span,
.reply .thread-meta span { border: 0; background: transparent; padding: 0; }
.thread-row .thread-meta a:hover { color: var(--accent); }
.thread-row h3 { margin: 0 0 .35rem; font-size: 1.08rem; line-height: 1.5; }
.thread-row h3 a:hover { color: var(--accent); }
.thread-row p { max-width: 75ch; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.thread-row .member-tag { color: var(--accent); }
.thread-stats { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .65rem; color: var(--faint); font-size: .78rem; }
.home-sidebar { position: sticky; top: 1rem; padding: 2rem 0 3rem; }
.side-panel { padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.side-panel:first-child { padding-top: 0; }
.side-kicker { margin: 0 0 .65rem; color: var(--faint); font-size: .78rem; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.summary-grid span { color: var(--muted); font-size: .75rem; }
.summary-grid strong { display: block; color: var(--ink); font-size: 1.18rem; font-weight: 700; line-height: 1.2; }
.side-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.side-heading h2, .member-note h2 { margin: 0; font-size: .98rem; }
.side-heading a { color: var(--muted); font-size: .78rem; }
.popular-list { display: grid; gap: .72rem; margin: 0; padding: 0; list-style: none; }
.popular-list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .35rem; align-items: start; }
.popular-list li > span { color: var(--faint); font-size: .78rem; line-height: 1.6; }
.popular-list a { font-size: .86rem; line-height: 1.55; }
.popular-list a:hover { color: var(--accent); }
.member-note p:not(.side-kicker) { margin: .55rem 0 .7rem; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.member-note .text-link { font-size: .84rem; }
.pagination { font-size: .88rem; }

.page-shell { padding: 2.6rem 0 3rem; }
.content-page { width: min(900px, calc(100% - 2rem)); }
.content-page .page-title { margin-bottom: 1.3rem; }
.content-page .page-title h1 { max-width: none; margin-bottom: .5rem; }
.content-page .page-title p { margin: 0; }
.content-page .board-pills { border-bottom: 1px solid var(--border); padding-bottom: .8rem; }
.content-page .content-section { padding-top: 1.4rem; }
.search-page-form { width: min(600px, 100%); margin: 1.6rem 0 .5rem; }
.search-page-form button { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-state { padding: 1.5rem 0; }

.thread-page { display: block; width: min(820px, calc(100% - 2rem)); }
.dossier, .reply-panel { border: 0; background: transparent; padding: 0; }
.dossier-header h1 { max-width: none; }
.reply-panel { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.locked-box { display: block; border-color: var(--border); background: var(--surface); }
.grid-two { grid-template-columns: 1fr; }
.auth-card { border-color: var(--border); padding: 1.6rem; }
.auth-card .stack-form { border: 0; background: transparent; padding: 0; }
.auth-card h1 { max-width: none; font-size: 1.8rem; }

.admin-hero h1 { font-size: 2rem; }
.admin-nav { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 .5rem; }
.admin-nav a { color: var(--muted); }
.admin-nav a.is-current { color: var(--ink); background: transparent; border-color: transparent; font-weight: 700; }
.admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 800px; }
.admin-stats article { background: var(--surface); }
.admin-stats strong { font-size: 1.55rem; font-weight: 700; }
.dashboard-queue { grid-template-columns: 1fr; max-width: 800px; }
.admin-filter-bar { background: transparent; border: 0; padding: 0; }

@media (max-width: 980px) {
  .home-intro { display: block; }
  .home-intro .button { margin-top: 1.2rem; }
  .home-layout { grid-template-columns: 1fr; gap: 0; }
  .home-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 0; }
  .home-sidebar .side-panel { border-top: 1px solid var(--border); border-bottom: 0; padding-top: 1rem; }
  .community-summary { grid-column: 1 / -1; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  main, .site-header, .site-footer, .flash, .admin-shell, .content-page, .thread-page { width: min(100% - 1.5rem, 1040px); }
  h1 { font-size: 2rem; max-width: none; }
  .content-section .feed-header { display: block; }
  .content-section .feed-header .search-box { margin-top: 1rem; width: 100%; }
  .board-pills { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .home-sidebar { grid-template-columns: 1fr; gap: 0; }
  .community-summary { grid-column: auto; }
  .admin-stats { grid-template-columns: 1fr 1fr 1fr; gap: .35rem; }
  .admin-stats article { padding: .65rem; }
  .admin-stats span { font-size: .76rem; }
  .admin-stats strong { font-size: 1.25rem; }
}

.review-note { padding:12px 14px; margin:14px 0; border-left:3px solid #d3b877; background:#fbf8f1; color:#74623e; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.thread-owner-actions { display:flex; flex-wrap:wrap; gap:14px; margin:14px 0; font-size:13px; }
.edit-page .compact-form { display:grid; gap:18px; }
.edit-page label { display:grid; gap:7px; font-size:14px; color:var(--muted); }
.edit-page input, .edit-page textarea, .edit-page select { width:100%; min-width:0; }
.edit-page .form-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.edit-page .button { justify-self:start; }

/* community.css */
.community-list{border-top:1px solid #e1e7e4}.community-list>article{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;border-bottom:1px solid #e1e7e4}.community-list h2{font-size:19px;margin:6px 0 10px}.community-list p{line-height:1.8;color:#55636b;white-space:pre-line;margin:8px 0}.community-list small{color:#69787c}.community-list .button{flex-shrink:0}.community-filter{display:flex;align-items:end;gap:16px;margin:24px 0}.community-filter label{display:grid;gap:8px;flex:1}.community-filter input,.community-filter select{min-height:42px;width:100%}.message-dot{display:inline-block;width:7px;height:7px;background:#26705d;border-radius:50%;margin-left:10px}.version-row details{flex:1;min-width:0}.version-source{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.8 monospace;max-height:400px;overflow:auto;background:#f5f7f6;padding:16px}.format-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px;background:#f5f7f6;border:1px solid #e1e7e4;border-radius:6px}.format-toolbar button{background:white;border:1px solid #d8e0dc;padding:6px 10px;border-radius:4px;cursor:pointer}.format-toolbar span{font-size:12px;color:#69787c}.editor-cover{display:grid;gap:10px}.editor-cover label{display:grid;gap:8px}.editor-cover>div{display:flex;gap:8px}.editor-cover img{width:240px;max-width:100%;max-height:150px;object-fit:cover;border-radius:6px}.article-body{line-height:1.95;overflow-wrap:anywhere}.article-body h2,.article-body h3{margin:1.6em 0 .7em;line-height:1.5}.article-body p{margin:0 0 1.2em}.article-body img{max-width:100%;height:auto;border-radius:6px;display:block;margin:24px auto}.article-body ul,.article-body ol{padding-left:1.8em}.article-body blockquote{border-left:3px solid #8ba99d;padding:4px 18px;margin:20px 0;color:#55636b}.article-body pre{overflow:auto;background:#f4f6f5;padding:18px;border-radius:6px;font:14px/1.7 monospace}.article-body table{display:block;overflow:auto;max-width:100%;border-collapse:collapse;margin:24px 0}.article-body th,.article-body td{padding:10px 16px;border:1px solid #dce4df;min-width:100px;text-align:left}.article-body th{background:#f4f6f5}.article-body a{color:#246551;text-decoration:underline}.article-cover{width:100%;max-height:420px;object-fit:cover;border-radius:8px;margin:24px 0}.community-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.community-table td,.community-table th{border-bottom:1px solid #e4e9e6;padding:14px}.table-scroll{overflow-x:auto}.bulk-select{display:flex!important;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5ebe7}.bulk-select input{width:17px!important;min-height:17px!important;flex-shrink:0}.bulk-select small{display:block;color:#6c7c80;margin-top:7px}.operation-status{display:grid;grid-template-columns:180px 1fr;gap:20px}.operation-status dd{margin:0;color:#576970}.message-badge{font-size:11px;padding:1px 5px;border-radius:10px;background:#edf4ef;color:#285d4b;margin-left:4px}.admin-panel>summary{cursor:pointer;font-weight:600;padding:6px 0}.admin-panel>summary+.stack-form{margin-top:20px}@media(max-width:640px){.community-list>article{align-items:flex-start;flex-direction:column;gap:12px}.community-filter{flex-wrap:wrap;gap:12px}.community-filter label{min-width:120px}.community-filter label:first-child{flex-basis:100%}.operation-status{grid-template-columns:1fr;gap:8px}.operation-status dd{margin-bottom:16px}.editor-toolbar>div{flex-wrap:wrap}.version-row details{width:100%}.community-table td,.community-table th{padding:12px}.article-body{font-size:16px}}

/* home.css */
/* Reading-focused homepage. Inner pages retain their existing layout. */
.home-theme {
  --bg: #fdfdfb;
  --ink: #232b29;
  --muted: #666f6c;
  --faint: #747c79;
  --border: #e8ebe6;
  --primary: #285a48;
  --accent: #285a48;
  background: var(--bg);
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}
.home-theme .site-header,
.home-theme .site-footer,
.home-theme .journal-home,
.home-theme .flash { width: min(1080px, calc(100% - 64px)); }
.journal-intro { padding: 49px 0 44px; }
.journal-eyebrow { margin: 0 0 17px; color: var(--accent); font-size: 12px; letter-spacing: .15em; font-weight: 500; }
.journal-intro h1 { margin: 0; max-width: none; font-size: clamp(30px, 3.7vw, 43px); line-height: 1.5; letter-spacing: -.035em; font-weight: 600; text-wrap: initial; }
.journal-intro h1 span { color: var(--accent); white-space: nowrap; }
.journal-description { margin: 15px 0 0; font-size: 15px; color: var(--muted); line-height: 1.8; }
.journal-categories { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 0 21px; border-bottom: 1px solid var(--border); }
.journal-categories a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 16px; font-size: 13px; color: var(--muted); border-radius: 5px; }
.journal-categories a:first-child { margin-left: -1px; }
.journal-categories a:hover { color: var(--ink); background: #f4f5f1; }
.journal-categories a[aria-current="page"] { color: var(--accent); background: #edf2eb; font-weight: 600; }
.journal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0 4px; }
.journal-sort { display: flex; align-items: center; gap: 23px; }
.journal-sort a { display: inline-flex; align-items: center; min-height: 40px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.journal-sort a[aria-current="page"] { font-weight: 600; color: var(--ink); }
.journal-sort a[aria-current="page"]::before { content: ""; width: 4px; height: 4px; margin-right: 7px; background: var(--accent); border-radius: 50%; }
.journal-search { display: flex; align-items: center; width: 216px; min-width: 0; border: 1px solid transparent; border-radius: 6px; background: #f3f4f0; }
.journal-search:focus-within { border-color: #608c78; background: #fff; }
.journal-search input { padding: 8px 0 8px 12px; border: 0; background: transparent; box-shadow: none; flex: 1; min-width: 0; width: 100%; font-size: 12px; color: var(--ink); }
.journal-search input:focus { outline: none; box-shadow: none; }
.journal-search input::placeholder { color: var(--muted); }
.journal-search button { display: grid; place-items: center; padding: 0; width: 38px; min-height: 36px; flex: none; background: transparent; border: 0; border-radius: 5px; color: var(--muted); cursor: pointer; }
.journal-search button:hover { color: var(--accent); }
.journal-entry { padding: 27px 0 26px; border-bottom: 1px solid var(--border); }
.entry-labels { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.6; margin-bottom: 9px; }
.entry-category { color: var(--accent); font-weight: 500; }
.entry-category:hover { text-decoration: underline; text-underline-offset: 4px; }
.entry-member { color: #856735; background: #f6f1e6; padding: 1px 6px; border-radius: 3px; font-size: 11px; }
.entry-pinned { color: var(--muted); font-size: 11px; }
.journal-entry h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.65; text-wrap: initial; overflow-wrap: anywhere; }
.journal-entry h3 a:hover { color: var(--accent); }
.entry-excerpt { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.entry-details { display: flex; align-items: center; gap: 13px; margin-top: 15px; font-size: 12px; color: var(--faint); }
.entry-author { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-details time { white-space: nowrap; }
.entry-engagement { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.journal-end { text-align: center; padding: 28px 0 43px; }
.journal-end a { display: inline-flex; gap: 20px; align-items: center; padding: 10px 26px; border: 1px solid #dfe4dc; border-radius: 5px; color: var(--muted); font-size: 12px; }
.journal-end a:hover { color: var(--accent); border-color: #9fb5a7; background: #f5f7f1; }
.journal-empty { padding: 56px 0; text-align: center; border-bottom: 1px solid var(--border); }
.journal-empty h3 { font-size: 19px; margin: 0 0 10px; }
.journal-empty p { font-size: 13px; color: var(--muted); }
.journal-empty a { display: inline-block; color: var(--accent); font-size: 13px; padding: 10px; }
.home-theme .site-footer { padding: 21px 0 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 11px; }
.home-theme a:focus-visible,
.home-theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 640px) {
  .home-theme .site-header,
  .home-theme .site-footer,
  .home-theme .journal-home,
  .home-theme .flash { width: calc(100% - 40px); }
  .journal-intro { padding: 28px 0 29px; }
  .journal-eyebrow { font-size: 11px; margin-bottom: 14px; }
  .journal-intro h1 { font-size: 30px; line-height: 1.55; }
  .journal-intro h1 span { display: block; }
  .journal-description { font-size: 14px; margin-top: 13px; max-width: 29em; }
  .journal-categories { gap: 4px 3px; padding-bottom: 18px; }
  .journal-categories a { padding: 7px 12px; min-height: 38px; font-size: 12px; }
  .journal-toolbar { gap: 12px; padding-top: 14px; }
  .journal-sort { gap: 14px; }
  .journal-sort a { font-size: 11px; }
  .journal-search { width: 150px; }
  .journal-search input { font-size: 11px; padding-left: 9px; }
  .journal-search button { width: 30px; min-height: 38px; }
  .journal-entry { padding: 22px 0; }
  .journal-entry h3 { font-size: 17px; line-height: 1.7; }
  .entry-excerpt { font-size: 13px; }
  .entry-details { font-size: 11px; gap: 10px; margin-top: 13px; }
  .entry-author { max-width: 85px; }
  .home-theme .site-footer { display: flex; flex-wrap: wrap; gap: 12px; font-size: 10px; }
}
@media (max-width: 360px) {
  .journal-toolbar { flex-wrap: wrap; }
  .journal-search { width: 100%; }
}

/* The cover fills the entire introduction; editable copy stays on top. */
.journal-intro.has-image { position:relative; isolation:isolate; display:flex; align-items:center; min-height:360px; margin:28px 0 14px; padding:38px 48px; border-radius:12px; overflow:hidden; background:#173a2d; }
.journal-intro.has-image::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(90deg,rgba(9,29,21,.88) 0%,rgba(9,29,21,.78) 38%,rgba(9,29,21,.64) 58%,rgba(9,29,21,.24) 80%,rgba(9,29,21,.12) 100%); }
.journal-intro.has-image .journal-intro-copy { position:relative; z-index:2; width:100%; max-width:520px; overflow-wrap:anywhere; }
.journal-intro.has-image .journal-eyebrow { color:#e4eadb; }
.journal-intro.has-image h1 { font-size:clamp(30px,3vw,38px); line-height:1.45; letter-spacing:0; color:#fff; }
.journal-intro.has-image h1 span { display:block; white-space:normal; color:#e6f0db; }
.journal-intro.has-image .journal-description { color:#f1f4ed; max-width:36em; }
.journal-intro-link { display:inline-flex; align-items:center; gap:20px; margin-top:20px; font-size:13px; font-weight:600; color:var(--accent); }
.journal-intro.has-image .journal-intro-link { min-height:38px; padding:7px 15px; color:#fff; border:1px solid #ffffff80; border-radius:6px; background:#ffffff0a; }
.journal-intro.has-image .journal-intro-link:hover { color:#173a2d; background:#fff; border-color:#fff; }
.journal-intro.has-image .journal-intro-link:focus-visible { outline-color:#fff; }
.journal-cover-carousel { position:absolute; inset:0; z-index:0; }
.journal-cover { position:absolute; inset:0; margin:0; opacity:0; visibility:hidden; transition:opacity .65s ease,visibility .65s step-end; }
.journal-cover.is-active { opacity:1; visibility:visible; transition:opacity .65s ease,visibility 0s step-start; }
.journal-cover img { display:block; width:100%; height:100%; object-fit:cover; object-position:55% 35%; }
.home-carousel-controls { position:absolute; right:18px; bottom:16px; z-index:3; display:flex; align-items:center; gap:7px; min-height:34px; padding:5px 7px; border:1px solid rgba(255,255,255,.3); border-radius:8px; background:rgba(10,30,22,.54); color:#fff; backdrop-filter:blur(8px); }
.home-carousel-controls button { display:grid; place-items:center; min-width:26px; height:26px; padding:0; border:0; border-radius:5px; background:transparent; color:inherit; cursor:pointer; }
.home-carousel-controls button:hover,.home-carousel-controls button:focus-visible { background:rgba(255,255,255,.16); }
.carousel-dots { display:flex; align-items:center; gap:5px; padding:0 2px; }
.home-carousel-controls .carousel-dots button { min-width:14px; width:14px; height:26px; }
.home-carousel-controls .carousel-dots button::before { content:""; width:5px; height:5px; border-radius:50%; background:rgba(255,255,255,.56); transition:width .18s ease,background-color .18s ease,border-radius .18s ease; }
.home-carousel-controls .carousel-dots button[aria-pressed="true"]::before { width:15px; border-radius:4px; background:#fff; }
.home-carousel-controls .carousel-toggle { width:auto; min-width:38px; padding:0 6px; border-left:1px solid rgba(255,255,255,.25); border-radius:0 5px 5px 0; font-size:10px; letter-spacing:.03em; }
.home-announcement { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:18px; min-height:48px; margin:0 0 25px; padding:0 15px 0 12px; border:1px solid #dfe7df; border-radius:10px; background:#f4f7f2; color:#31473e; overflow:hidden; }
.home-announcement-label { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:0 14px 0 3px; border-right:1px solid #d5e0d7; color:#174f3a; font-size:12px; white-space:nowrap; }
.home-announcement-label svg { flex:none; }
.home-announcement-window { min-width:0; overflow:hidden; outline:none; }
.home-announcement-window:focus-visible { box-shadow:inset 0 -2px #2c6a51; }
.home-announcement-track { --ticker-duration:30s; display:flex; width:max-content; animation:home-announcement-scroll var(--ticker-duration) linear infinite; will-change:transform; }
.home-announcement[data-announcement-speed="slow"] .home-announcement-track { --ticker-duration:42s; }
.home-announcement[data-announcement-speed="fast"] .home-announcement-track { --ticker-duration:20s; }
.home-announcement:hover .home-announcement-track,.home-announcement:focus-within .home-announcement-track { animation-play-state:paused; }
.home-announcement-group { display:flex; align-items:center; gap:36px; flex:none; min-width:clamp(760px,88vw,1060px); padding-right:36px; }
.home-announcement-group>span { display:inline-flex; align-items:center; gap:9px; font-size:12px; line-height:1.5; white-space:nowrap; }
.home-announcement-group i { width:4px; height:4px; flex:none; border-radius:50%; background:#4d7b65; }
@keyframes home-announcement-scroll { to { transform:translateX(-50%); } }
.journal-feed { max-width:100%; }
.journal-entry h3 { font-size:19px; }
.home-gallery { padding:0 0 30px; margin-bottom:28px; border-bottom:1px solid var(--border); }
.home-gallery h2 { margin:0 0 18px; font-size:17px; }
.home-gallery-grid { display:grid; grid-template-columns:1fr; gap:24px; }
.home-gallery-card { margin:0; min-width:0; }
.home-gallery-card img { display:block; width:100%; height:360px; object-fit:cover; object-position:center; border-radius:12px; background:#edf0ea; }
.home-gallery-card figcaption { display:flex; justify-content:space-between; gap:12px; margin-top:10px; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.home-gallery-card a:hover figcaption { color:var(--accent); }
@media(max-width:900px) { .journal-intro.has-image { padding:34px 36px; } .journal-intro.has-image .journal-intro-copy { max-width:480px; } }
@media(max-width:720px) {
  .home-theme .site-header,.home-theme .site-footer,.home-theme .journal-home,.home-theme .flash { width:calc(100% - 40px); }
  .journal-intro.has-image { min-height:340px; margin:20px 0 12px; padding:30px 25px; border-radius:10px; }
  .journal-intro.has-image::before { background:linear-gradient(90deg,rgba(9,29,21,.84),rgba(9,29,21,.68)); }
  .journal-intro.has-image h1 { font-size:30px; }
  .journal-cover img { object-position:60% 40%; }
  .home-carousel-controls { right:11px; bottom:10px; transform:scale(.92); transform-origin:right bottom; }
  .home-gallery-grid { gap:22px; }
  .home-gallery-card img { height:340px; border-radius:10px; }
  .home-gallery { padding-bottom:22px; margin-bottom:22px; }
  .home-announcement { grid-template-columns:auto minmax(0,1fr); gap:12px; min-height:44px; margin-bottom:20px; padding-inline:10px; border-radius:9px; }
  .home-announcement-label { padding-right:11px; font-size:11px; }
  .home-announcement-group { min-width:720px; gap:28px; padding-right:28px; }
  .home-announcement-group>span { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  .journal-cover,.journal-cover.is-active { transition:none; }
  .home-announcement-window { overflow-x:auto; scrollbar-width:thin; }
  .home-announcement-track { animation:none; }
  .home-announcement-group { min-width:0; padding:8px 16px 8px 0; }
  .home-announcement-group[aria-hidden="true"] { display:none; }
}


/* navigation.css */
/* Brand, content navigation and account controls are independent landmarks. */
.site-header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:32px; position:relative; padding:20px 0; background:var(--bg); border-bottom:1px solid var(--border); z-index:10; }
.brand { display:inline-flex; min-width:0; gap:11px; }
.brand-logo { width:36px; height:36px; flex:none; object-fit:contain; border-radius:9px; }
.brand strong { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:20px; font-weight:700; }
.site-nav { display:flex; align-items:center; justify-content:flex-start; gap:8px; min-width:0; }
.site-nav a { color:var(--muted); white-space:nowrap; font-size:14px; padding:9px 12px; border:0; background:transparent; border-radius:5px; }
.site-nav a:hover { color:var(--ink); background:var(--surface-2); }
.site-nav a.is-current { color:var(--primary); font-weight:600; background:transparent; }
.account-nav { display:flex; gap:14px; align-items:center; justify-content:flex-end; padding-left:24px; border-left:1px solid var(--border); white-space:nowrap; }
.account-nav a { font-size:13px; }
.account-login { padding:8px 0; color:var(--muted); }
.nav-signup,.account-publish { display:inline-flex; align-items:center; justify-content:center; padding:7px 17px; min-height:36px; border-radius:6px; background:var(--primary); color:#fff; border:1px solid var(--primary); font-weight:500; }
.account-publish { background:transparent; color:var(--primary); border-color:var(--border); }
.account-nav a:hover { filter:brightness(.93); }
.account-menu { position:relative; }
.account-menu summary { display:flex; align-items:center; gap:7px; list-style:none; cursor:pointer; font-size:13px; padding:9px 0; color:var(--muted); }
.account-menu summary::-webkit-details-marker { display:none; }
.account-dropdown { position:absolute; right:0; top:calc(100% + 10px); min-width:170px; background:#fff; border:1px solid var(--border); box-shadow:0 12px 35px #20272d12; border-radius:9px; padding:7px; z-index:30; }
.nav-logout { margin:0; }
.account-dropdown a,.account-dropdown .nav-logout button { display:block; width:100%; padding:9px 11px; text-align:left; font-size:13px; border-radius:5px; color:var(--ink); border:0; background:transparent; cursor:pointer; }
.account-dropdown a:hover,.account-dropdown .nav-logout button:hover { background:var(--surface-2); }
.account-name { display:block; padding:8px 11px; margin-bottom:4px; border-bottom:1px solid var(--border); color:var(--faint); max-width:210px; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.home-theme .site-header { grid-template-columns:auto minmax(0,1fr) auto; border-bottom:1px solid var(--border); padding:20px 0; gap:34px; }
.home-theme .site-nav { display:flex; justify-content:flex-start; gap:7px; }
.home-theme .site-nav a { font-size:14px; padding:8px 12px; }
.home-theme .site-nav a.is-current { color:var(--accent); }
.admin-brand strong { max-width:220px; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
@media(max-width:900px) {
  .site-header,.home-theme .site-header { gap:20px; }
  .site-nav,.home-theme .site-nav { gap:0; }
  .site-nav a,.home-theme .site-nav a { padding:8px 9px; font-size:13px; }
  .account-nav { padding-left:18px; gap:12px; }
  .brand strong { max-width:190px; }
}
@media(max-width:720px) {
  .site-header,.home-theme .site-header { grid-template-columns:minmax(0,1fr) auto; gap:12px 16px; padding:15px 0 0; }
  .brand-logo { width:31px; height:31px; border-radius:8px; }
  .brand strong,.home-theme .brand strong { font-size:18px; max-width:170px; letter-spacing:0; }
  .site-nav,.home-theme .site-nav { display:flex; grid-column:1/-1; grid-row:2; justify-content:flex-start; gap:22px; overflow-x:auto; }
  .site-nav a,.home-theme .site-nav a { padding:9px 0 12px; border-radius:0; font-size:14px; border-bottom:2px solid transparent; }
  .site-nav a.is-current { border-bottom-color:var(--primary); }
  .account-nav { grid-column:2; grid-row:1; border:0; padding:0; gap:12px; }
  .nav-signup,.account-publish { padding:5px 12px; min-height:32px; }
  .account-menu summary { font-size:12px; gap:4px; }
  .admin-brand span { display:none; }
}
@media(max-width:380px) { .brand strong,.home-theme .brand strong { max-width:125px; font-size:17px; } .account-nav { gap:9px; } .brand { gap:8px; } }

/* content-view.css */
/* Shared compact table / summary list. Hidden panels stay out of accessibility flow. */
[data-content-view] [hidden] { display:none !important; }
.content-view-controls { display:inline-flex; flex:none; padding:3px; gap:2px; border:1px solid var(--border); border-radius:6px; background:var(--bg); }
.content-view-controls button { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:32px; padding:6px 10px; margin:0; border:0; border-radius:4px; background:transparent; color:var(--muted); font:inherit; font-size:12px; line-height:1.4; cursor:pointer; }
.content-view-controls button[aria-pressed="true"] { color:var(--accent); background:var(--surface,#fff); font-weight:600; box-shadow:0 1px 3px #18251c0a; }
.content-view-controls button:hover { color:var(--ink); }
.content-view-controls button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.journal-tools,.content-heading-tools { display:flex; align-items:center; gap:14px; min-width:0; }
.content-heading-tools { flex-wrap:wrap; justify-content:flex-end; }
[data-content-view] .section-heading { align-items:center; margin-bottom:16px; }
.content-table-wrap { width:100%; margin-top:16px; }
.content-table { border-collapse:collapse; table-layout:fixed; width:100%; margin:0; border:0; background:transparent; }
.content-table .content-column-title { width:51%; }
.content-table .content-column-board { width:13%; }
.content-table .content-column-author { width:10%; }
.content-table .content-column-stats { width:14%; }
.content-table .content-column-date { width:12%; }
.content-table th,.content-table td { padding:18px 12px; border:0; border-bottom:1px solid var(--border); text-align:left; vertical-align:middle; overflow-wrap:anywhere; }
.content-table thead th { padding-top:12px; padding-bottom:12px; background:var(--surface-2,#f3f5f1); color:var(--muted); font-size:12px; font-weight:500; }
.content-table th:first-child,.content-table td:first-child { padding-left:16px; }
.content-table th:last-child,.content-table td:last-child { padding-right:16px; }
.content-table tbody th { font-weight:normal; }
.content-table tbody td { font-size:12px; color:var(--muted); }
.content-table tbody tr:hover { background:#285a4805; }
.content-table-title { display:block; font-size:15px; line-height:1.7; font-weight:600; color:var(--ink); }
.content-table-title:hover,.content-column-board a:hover { color:var(--accent); }
.content-column-board a { color:var(--accent); }
.content-column-stats,.content-column-date { font-variant-numeric:tabular-nums; }
.content-table-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.content-badge { padding:0 5px; border-radius:3px; font-size:10px; line-height:1.7; font-weight:500; color:var(--muted); background:var(--surface-2,#f3f5f1); }
.content-badge-member { color:#856735; background:#f6f1e6; }
.content-table-mobile-meta { display:none; }
.content-list-cover { float:right; display:block; width:120px; height:80px; margin:2px 0 10px 22px; border-radius:6px; overflow:hidden; }
.content-list-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.journal-entry::after,.thread-row::after { content:''; display:table; clear:both; }
[data-content-panel=list] .thread-row>p { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.content-badge-member { font-weight:400; }
.entry-labels { flex-wrap:wrap; }
@media(max-width:720px) {
  .content-list-cover { width:92px; height:68px; margin-left:14px; }
  .journal-toolbar { flex-wrap:wrap; gap:10px; }
  .journal-tools { width:100%; justify-content:space-between; gap:10px; }
  .journal-tools .journal-search { flex:1; width:auto; max-width:216px; }
  .content-view-controls button { min-height:36px; padding:6px 9px; }
  .content-heading-tools { gap:8px; }
  .content-table .content-column-title { width:77%; }
  .content-table .content-column-board { width:23%; }
  .content-table .content-column-author,.content-table .content-column-stats,.content-table .content-column-date { display:none; }
  .content-table th,.content-table td { padding:17px 8px; vertical-align:top; }
  .content-table th:first-child { padding-left:10px; }
  .content-table th:last-child,.content-table td:last-child { padding-right:10px; }
  .content-table-title { font-size:14px; }
  .content-table .content-column-board { font-size:11px; }
  .content-table-mobile-meta { display:flex; flex-wrap:wrap; gap:3px 10px; margin-top:8px; color:var(--muted); font-size:10px; line-height:1.7; font-weight:normal; }
  .content-table-mobile-meta span { overflow-wrap:anywhere; }
}
@media(max-width:380px) {
  [data-content-view] .section-heading { flex-wrap:wrap; gap:10px; }
  .content-heading-tools { width:100%; justify-content:space-between; }
}

/* ui.css */
/* 2026 UI refresh: restrained reading surface for every public page. */
body:not(.admin-theme) {
  --bg: #f7f8f6;
  --bg-2: #f7f8f6;
  --surface: #ffffff;
  --surface-2: #f1f4f0;
  --surface-3: #e8ede9;
  --ink: #1f2925;
  --muted: #5f6d66;
  --faint: #7b8781;
  --primary: #285a48;
  --primary-deep: #e7f0eb;
  --accent: #285a48;
  --border: #dfe5e1;
  --ui-shadow: 0 12px 34px rgba(32, 58, 47, .06);
  background:
    linear-gradient(180deg, #fbfcfa 0, var(--bg) 320px),
    var(--bg);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.admin-theme) main,
body:not(.admin-theme) .site-header,
body:not(.admin-theme) .site-footer,
body:not(.admin-theme) .flash {
  width: min(1120px, calc(100% - 48px));
}

body:not(.admin-theme) a,
body:not(.admin-theme) button,
body:not(.admin-theme) input,
body:not(.admin-theme) select,
body:not(.admin-theme) textarea,
body:not(.admin-theme) summary {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body:not(.admin-theme) .site-header {
  padding: 17px 0;
  border-bottom-color: var(--border);
}

body:not(.admin-theme) .brand strong {
  color: #17231e;
  font-size: 19px;
  letter-spacing: -.02em;
}

body:not(.admin-theme) .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(28, 70, 52, .12);
}

body:not(.admin-theme) .site-nav a {
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 13px;
}

body:not(.admin-theme) .site-nav {
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

body:not(.admin-theme) .site-nav::-webkit-scrollbar {
  display: none;
}

body:not(.admin-theme) .site-nav .nav-board {
  color: #4f5f57;
}

body:not(.admin-theme) .site-nav a.is-current {
  background: var(--primary-deep);
}

body:not(.admin-theme) .site-nav .nav-board.is-current {
  color: var(--primary);
  font-weight: 600;
}

body:not(.admin-theme) .account-nav {
  gap: 12px;
}

body:not(.admin-theme) .nav-signup,
body:not(.admin-theme) .account-publish {
  min-height: 38px;
  padding-inline: 16px;
  border-radius: 8px;
}

body:not(.admin-theme) .account-publish {
  border-color: #cfd9d3;
  background: #fff;
}

body:not(.admin-theme) .account-dropdown {
  border-radius: 12px;
  box-shadow: var(--ui-shadow);
}

body:not(.admin-theme) .button {
  min-height: 42px;
  border-radius: 8px;
  padding: 9px 16px;
  box-shadow: none;
}

body:not(.admin-theme) .button.primary {
  border-color: var(--primary);
  background: var(--primary);
}

body:not(.admin-theme) .button.primary:hover {
  border-color: #214b3c;
  background: #214b3c;
}

body:not(.admin-theme) .button.secondary:hover {
  border-color: #bfcac4;
  background: var(--surface-2);
}

body:not(.admin-theme) input,
body:not(.admin-theme) textarea,
body:not(.admin-theme) select {
  min-height: 42px;
  border-color: #d7dfda;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

body:not(.admin-theme) input:focus,
body:not(.admin-theme) textarea:focus,
body:not(.admin-theme) select:focus {
  border-color: #6f9584;
  box-shadow: 0 0 0 3px rgba(40, 90, 72, .10);
  outline: none;
}

body:not(.admin-theme) .flash {
  margin-top: 14px;
  border-radius: 9px;
  box-shadow: 0 5px 18px rgba(31, 41, 37, .04);
}

/* Homepage */
.home-theme .site-header,
.home-theme .site-footer,
.home-theme .journal-home,
.home-theme .flash {
  width: min(1120px, calc(100% - 48px));
}

.home-theme .journal-intro.has-image {
  min-height: 378px;
  margin: 28px 0 34px;
  padding: 44px 52px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(30, 54, 43, .11);
}

.home-theme .journal-intro.has-image::before {
  background: linear-gradient(90deg, rgba(8, 29, 20, .90) 0%, rgba(8, 29, 20, .76) 39%, rgba(8, 29, 20, .48) 66%, rgba(8, 29, 20, .08) 100%);
}

.home-theme .journal-intro.has-image .journal-intro-copy {
  max-width: 560px;
}

.home-theme .journal-intro.has-image h1 {
  font-size: clamp(32px, 3.3vw, 42px);
  line-height: 1.42;
  letter-spacing: -.025em;
}

.home-theme .journal-intro.has-image .journal-description {
  max-width: 40em;
  color: rgba(255, 255, 255, .88);
}

.home-theme .journal-intro.has-image .journal-intro-link {
  min-height: 40px;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 8px;
}

.journal-categories {
  gap: 7px;
  padding-bottom: 18px;
}

.journal-categories a {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.journal-categories a:hover {
  border-color: var(--border);
  background: #fff;
}

.journal-categories a[aria-current="page"] {
  border-color: #dbe6df;
  background: #edf3ef;
}

.journal-toolbar {
  min-height: 64px;
  padding: 14px 0 10px;
}

.journal-search {
  width: 230px;
  border-color: var(--border);
  background: #fff;
}

.journal-search:focus-within {
  box-shadow: 0 0 0 3px rgba(40, 90, 72, .08);
}

.content-view-controls {
  border-color: var(--border);
  border-radius: 8px;
  background: #f1f4f0;
}

.content-view-controls button {
  border-radius: 6px;
}

.content-view-controls button[aria-pressed="true"] {
  box-shadow: 0 2px 7px rgba(31, 52, 43, .08);
}

.content-table-wrap {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.content-table thead th {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #f1f4f1;
  color: #68756f;
}

.content-table th,
.content-table td {
  padding-top: 19px;
  padding-bottom: 19px;
}

.content-table tbody tr:last-child th,
.content-table tbody tr:last-child td {
  border-bottom: 0;
}

.content-table tbody tr:hover {
  background: #f8faf8;
}

.content-table-title {
  color: #24302b;
  font-size: 14px;
}

.journal-entries:not([hidden]) {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.journal-entries:not([hidden]) .journal-entry {
  padding: 24px;
}

.journal-entries:not([hidden]) .journal-entry:last-child {
  border-bottom: 0;
}

.journal-end {
  padding: 26px 0 40px;
}

.journal-end a {
  border-radius: 8px;
  background: #fff;
}

.home-gallery {
  padding: 30px 0 34px;
  border-top: 1px solid var(--border);
}

.home-gallery h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.home-gallery-card img,
.alliance-image img {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--ui-shadow);
}

.home-gallery-card figcaption {
  color: #33413b;
}

.alliance-home-entry {
  margin-bottom: 32px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

/* Discovery, article and account pages */
body:not(.admin-theme) .page-shell {
  padding: 48px 0 64px;
}

body:not(.admin-theme) .content-page {
  width: min(980px, calc(100% - 48px));
}

body:not(.admin-theme) .page-title {
  margin-bottom: 24px;
}

body:not(.admin-theme) .page-title h1 {
  margin-bottom: 8px;
  color: #1d2823;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -.03em;
}

body:not(.admin-theme) .page-title p {
  max-width: 68ch;
}

body:not(.admin-theme) .search-page-form {
  width: min(680px, 100%);
  margin: 22px 0 32px;
}

body:not(.admin-theme) .content-page .content-section {
  padding: 0;
}

body:not(.admin-theme) .section-heading {
  margin-bottom: 14px;
}

body:not(.admin-theme) .board-pills {
  gap: 8px;
  padding: 0 0 20px;
  border-bottom: 0;
}

body:not(.admin-theme) .board-pills a {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
}

body:not(.admin-theme) .board-pills a:hover,
body:not(.admin-theme) .board-pills a.is-active {
  border-color: #dbe4de;
  background: #edf3ef;
}

body:not(.admin-theme) .thread-page {
  width: min(980px, calc(100% - 48px));
  padding: 48px 0 64px;
}

body:not(.admin-theme) .dossier,
body:not(.admin-theme) .reply-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ui-shadow);
}

body:not(.admin-theme) .dossier {
  padding: clamp(24px, 4vw, 44px);
}

body:not(.admin-theme) .dossier-header h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.38;
  letter-spacing: -.025em;
}

body:not(.admin-theme) .dossier-section {
  max-width: 75ch;
  padding-block: 8px 22px;
}

body:not(.admin-theme) .dossier-section p {
  color: #33423b;
  line-height: 1.9;
}

body:not(.admin-theme) .reply-panel {
  padding: 24px;
}

body:not(.admin-theme) .locked-box,
body:not(.admin-theme) .stack-form {
  border-radius: 10px;
}

body:not(.admin-theme) .auth-shell {
  min-height: calc(100svh - 146px);
  padding: 56px 0 72px;
}

body:not(.admin-theme) .auth-card {
  width: min(500px, 100%);
  padding: 30px;
  border-radius: 14px;
  box-shadow: var(--ui-shadow);
}

body:not(.admin-theme) .auth-card h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

body:not(.admin-theme) .auth-card .stack-form {
  gap: 10px;
  margin-top: 22px;
}

.alliance-page {
  padding: 50px 0 72px;
}

.alliance-intro h1 {
  color: #1d2823;
  letter-spacing: -.03em;
}

.alliance-content {
  border-top-color: var(--border);
}

body:not(.admin-theme) .member-card,
body:not(.admin-theme) .thread-feed.standalone,
body:not(.admin-theme) .admin-panel {
  border-radius: 12px;
  box-shadow: var(--ui-shadow);
}

body:not(.admin-theme) .site-footer {
  padding: 24px 0 30px;
}

@media (min-width: 721px) and (max-width: 1120px) {
  body:not(.admin-theme) .site-header {
    gap: 18px;
  }

  body:not(.admin-theme) .site-nav {
    gap: 2px;
  }

  body:not(.admin-theme) .site-nav a {
    padding-inline: 9px;
  }

  body:not(.admin-theme) .account-nav {
    padding-left: 16px;
  }
}

@media (max-width: 720px) {
  body:not(.admin-theme) main,
  body:not(.admin-theme) .site-header,
  body:not(.admin-theme) .site-footer,
  body:not(.admin-theme) .flash,
  .home-theme .site-header,
  .home-theme .site-footer,
  .home-theme .journal-home,
  .home-theme .flash,
  body:not(.admin-theme) .content-page,
  body:not(.admin-theme) .thread-page {
    width: calc(100% - 32px);
  }

  body:not(.admin-theme) .site-header {
    padding-top: 14px;
  }

  body:not(.admin-theme) .site-nav {
    gap: 20px;
    scroll-snap-type: inline proximity;
  }

  body:not(.admin-theme) .site-nav a {
    scroll-snap-align: start;
  }

  .home-theme .journal-intro.has-image {
    min-height: 350px;
    margin: 18px 0 24px;
    padding: 30px 24px;
    border-radius: 13px;
  }

  .home-theme .journal-intro.has-image::before {
    background: linear-gradient(90deg, rgba(8, 29, 20, .88), rgba(8, 29, 20, .61));
  }

  .home-theme .journal-intro.has-image h1 {
    font-size: 30px;
  }

  .journal-toolbar {
    align-items: stretch;
  }

  .content-table-wrap {
    border-radius: 10px;
  }

  .content-table th,
  .content-table td {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .journal-entries:not([hidden]) .journal-entry {
    padding: 20px 16px;
  }

  .alliance-home-entry {
    margin-bottom: 24px;
    padding: 18px;
  }

  body:not(.admin-theme) .page-shell,
  body:not(.admin-theme) .thread-page,
  .alliance-page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  body:not(.admin-theme) .dossier {
    padding: 22px 18px;
  }

  body:not(.admin-theme) .reply-panel,
  body:not(.admin-theme) .auth-card {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-theme) a,
  body:not(.admin-theme) button,
  body:not(.admin-theme) input,
  body:not(.admin-theme) select,
  body:not(.admin-theme) textarea,
  body:not(.admin-theme) summary {
    transition: none;
  }
}

/* Practical reading and writing tools, without adding visual noise. */
body:not(.admin-theme) [hidden] { display:none!important; }
.content-directory-page { width:min(1160px,calc(100% - 48px))!important; }
.content-directory-intro { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; padding:12px 0 26px; }
.content-directory-intro>div { min-width:0; }
.content-directory-kicker { display:block; margin:0 0 9px; color:var(--primary); font-size:11px; font-weight:650; letter-spacing:.12em; }
.content-directory-intro h1 { max-width:none; margin:0 0 8px; color:#1d2823; font-size:clamp(30px,4vw,42px); letter-spacing:-.035em; }
.content-directory-intro p { max-width:720px; margin:0; color:var(--muted); font-size:14px; line-height:1.8; }
.content-category-state { flex:none; max-width:240px; padding:8px 11px; border:1px solid #e6d7b9; border-radius:6px; background:#fffaf0; color:#786037; font-size:11px; line-height:1.6; }
.content-category-nav { display:flex; align-items:center; gap:26px; overflow-x:auto; margin:0; padding:0 0 1px; border-bottom:1px solid var(--border); scrollbar-width:thin; }
.content-category-nav a { position:relative; flex:none; padding:13px 0 14px; color:var(--muted); font-size:13px; white-space:nowrap; }
.content-category-nav a::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; border-radius:2px 2px 0 0; background:transparent; }
.content-category-nav a:hover { color:var(--ink); }
.content-category-nav a.is-active { color:var(--primary); font-weight:650; }
.content-category-nav a.is-active::after { background:var(--primary); }
.content-filter-panel>summary { display:none; }
.content-filter-form { display:grid; grid-template-columns:minmax(240px,2fr) repeat(2,minmax(125px,1fr)) auto; align-items:end; gap:12px; margin:22px 0 34px; padding:16px 18px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.content-filter-form label { display:grid; gap:6px; min-width:0; }
.content-filter-form label>span { font-size:12px; color:var(--muted); }
.content-filter-form input,.content-filter-form select { width:100%; min-width:0; font-size:13px; }
.content-filter-actions { display:flex; align-items:center; gap:12px; }
.content-filter-actions>a { font-size:12px; color:var(--muted); white-space:nowrap; }
.thread-utility { display:flex; margin-top:16px; }
.thread-copy-link { border:0; padding:0; background:transparent; color:var(--primary); font:inherit; font-size:12px; cursor:pointer; }
.related-posts { margin:30px 0; }
.related-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.related-heading span,.related-heading>a { color:var(--muted); font-size:12px; }
.related-heading h2 { font-size:18px; margin:4px 0 0; }
.related-post-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.related-post-grid article { padding:20px; border:1px solid var(--border); border-radius:10px; background:#fff; min-width:0; }
.related-post-grid article>span { font-size:11px; color:var(--muted); }
.related-post-grid h3 { margin:8px 0; font-size:16px; line-height:1.6; }
.related-post-grid p { margin:0; color:var(--muted); font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.reply-empty { color:var(--muted); font-size:13px; margin:0 0 20px; }
.editor-form { padding:clamp(18px,3vw,30px); gap:16px; background:#fff; }
.editor-grid-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.editor-field { display:grid; gap:8px; min-width:0; }
.editor-field>span { font-size:13px; }
.editor-field textarea { width:100%; min-width:0; }
.editor-label-row { display:flex!important; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.editor-label-row output { font-size:11px; color:var(--muted); font-weight:400; }
.editor-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:10px; border-top:1px solid var(--border); }
.editor-toolbar p { margin:0; font-size:12px; color:var(--muted); }
.editor-toolbar>div { display:flex; flex-wrap:wrap; gap:8px; flex:none; }
.editor-preview { border:1px solid var(--border); padding:20px; border-radius:8px; background:var(--surface-2); }
.editor-preview[hidden] { display:none; }
.editor-preview h2 { font-size:13px; color:var(--muted); }
.editor-preview h3 { font-size:22px; margin:16px 0; }
.editor-preview h4 { font-size:14px; margin:24px 0 12px; }
.editor-preview p { white-space:pre-line; overflow-wrap:anywhere; line-height:1.9; }
.editor-submit { justify-self:start; }
.site-nav-frame { position:relative; min-width:0; }
.site-nav-frame.has-overflow { padding-right:24px; }
.nav-scroll-next { position:absolute; inset:0 0 0 auto; width:24px; border:0; color:var(--primary); background:linear-gradient(90deg,rgba(247,248,246,.85),#f7f8f6 35%); font-size:26px; line-height:1; cursor:pointer; }
.nav-scroll-next[hidden] { display:none; }
@media(max-width:720px) { .site-nav-frame { grid-column:1/-1; grid-row:2; } }
.alliance-resources { margin:30px 0; }
.alliance-resources>h2 { font-size:20px; margin:0 0 18px; }
.alliance-resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.alliance-resource-grid article { display:flex; flex-direction:column; min-width:0; padding:22px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.alliance-resource-meta { display:flex; justify-content:space-between; gap:12px; font-size:11px; color:var(--muted); }
.alliance-resource-grid h3 { font-size:18px; margin:16px 0 10px; overflow-wrap:anywhere; }
.alliance-resource-grid p { margin:0 0 20px; font-size:13px; color:var(--muted); overflow-wrap:anywhere; }
.alliance-resource-grid a { margin-top:auto; font-size:13px; color:var(--primary); }
@media(max-width:720px) { .alliance-resource-grid { grid-template-columns:1fr; } }
@media(min-width:601px) { .content-filter-panel:not([open])>.content-filter-form { display:grid; } }
@media(max-width:900px) { .content-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); } .content-filter-query { grid-column:1/-1; } .content-filter-actions { grid-column:1/-1; } }
@media(max-width:600px) { .related-post-grid,.editor-grid-two { grid-template-columns:1fr; } .content-directory-page { width:calc(100% - 28px)!important; } .content-directory-intro { display:block; padding:4px 0 20px; } .content-directory-intro h1 { font-size:30px; } .content-directory-intro p { font-size:13px; } .content-category-state { display:inline-flex; margin-top:14px; } .content-category-nav { gap:20px; margin-inline:-2px; } .content-filter-panel { margin:16px 0 26px; border:1px solid var(--border); border-radius:10px; background:#fff; overflow:hidden; } .content-filter-panel>summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; padding:13px 14px; list-style:none; color:var(--ink); cursor:pointer; } .content-filter-panel>summary::-webkit-details-marker { display:none; } .content-filter-panel>summary span { font-size:13px; font-weight:650; } .content-filter-panel>summary small { color:var(--faint); text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .content-filter-panel[open]>summary { border-bottom:1px solid var(--border); background:var(--surface-2); } .content-filter-panel[open]>summary svg { transform:rotate(180deg); } .content-filter-form { grid-template-columns:1fr; padding:14px; gap:10px; margin:0; border:0; border-radius:0; } .content-filter-query,.content-filter-actions { grid-column:auto; } .content-filter-actions { justify-content:space-between; } .editor-toolbar { align-items:flex-start; flex-direction:column; } .related-heading h2 { font-size:16px; } .related-heading>a { flex:none; } }

/* Account and membership flows: same quiet reading surface. */
.auth-error { padding:12px; border:1px solid #e7c6bd; border-radius:8px; background:#fff6f2; color:#8c382b; font-size:13px; }
.auth-form-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:13px; }
.password-toggle { border:0; padding:0; background:none; color:var(--primary); font:inherit; cursor:pointer; }
.recovery-notice { padding:14px; background:var(--surface-2); border-radius:8px; font-size:13px; }
.membership-page { max-width:1000px; }
.membership-current { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:24px; padding:16px 20px; border:1px solid var(--border); border-radius:10px; background:#fff; font-size:13px; }
.membership-current a { margin-left:auto; }
.membership-plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:18px; margin-bottom:28px; }
.membership-plans article,.membership-application,.membership-history article { padding:24px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.membership-plans h2,.membership-application h2,.membership-history h2 { margin:0 0 16px; font-size:20px; }
.membership-price { font-size:18px; color:var(--primary); }
.membership-plans p,.membership-application>p,.membership-history p { font-size:14px; overflow-wrap:anywhere; }
.membership-application .stack-form { max-width:600px; margin-top:20px; }
.membership-application .stack-form button { justify-self:start; }
.membership-history { margin-top:30px; }
.membership-history article { margin-top:14px; }
.membership-history article>div { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.reply-report { font-size:12px; color:var(--muted); margin-top:12px; }
.reply-report summary { cursor:pointer; width:max-content; }
.reply-report form { max-width:480px; margin-top:14px; font-size:13px; }
.site-footer nav { display:flex; gap:20px; flex-wrap:wrap; }
@media(max-width:600px){ .membership-plans article,.membership-application,.membership-history article{padding:20px 16px;} .membership-current a{margin-left:0;} }

/* media-display.css */
/* Shared focal positions: no inline styles, original images remain unchanged. */
img[data-focal="center"] { object-position:center!important; }
img[data-focal="top"] { object-position:center top!important; }
img[data-focal="bottom"] { object-position:center bottom!important; }
img[data-focal="left"] { object-position:left center!important; }
img[data-focal="right"] { object-position:right center!important; }
.gallery-more { margin-top:20px; }
.gallery-more>summary { width:fit-content; cursor:pointer; color:var(--primary); font-size:13px; padding:8px 0; }
.gallery-more[open]>summary { margin-bottom:16px; }
.media-preview-tools { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:10px 0; }
.media-preview-tools label { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.media-preview-tools select { min-height:36px; padding:6px 10px; width:auto; font-size:12px; }
.media-preview-switch { padding:6px 0; border:0; background:none; color:var(--primary); font:inherit; font-size:12px; cursor:pointer; }
.appearance-form .media-field:not(.media-small) .media-preview { position:relative; }
.appearance-form .media-field:not(.media-small) .media-preview img { position:absolute; inset:0; object-fit:cover; }
.appearance-form .media-field:not(.media-small) .media-preview[data-preview-mode="mobile"] { aspect-ratio:375/340; max-height:260px; max-width:287px; margin-inline:auto; }
.appearance-form [data-media-key="homeImage"] img[data-focal="auto"] { object-position:55% 35%; }
.appearance-form [data-media-key="homeImage"] [data-preview-mode="mobile"] img[data-focal="auto"] { object-position:60% 40%; }
.media-used-by { white-space:normal; line-height:1.6; overflow-wrap:anywhere; }

/* editorial-feed.css */
/* Content-first editorial feed; scope stays out of account/admin screens. */
.home-theme .journal-intro.has-image { min-height:220px; margin:22px 0 16px; padding:25px 36px; border-radius:12px; box-shadow:none; }
.home-theme .journal-intro.has-image .journal-intro-copy { max-width:760px; }
.home-theme .journal-intro.has-image .journal-eyebrow { margin-bottom:10px; font-size:11px; }
.home-theme .journal-intro.has-image h1 { font-size:30px; line-height:1.35; letter-spacing:-.02em; }
.home-theme .journal-intro.has-image h1 span { display:inline; margin-left:.35em; }
.home-theme .journal-intro.has-image .journal-description { margin-top:10px; font-size:13px; }
.home-theme .journal-intro.has-image .journal-intro-link { margin-top:14px; min-height:32px; padding:5px 12px; font-size:12px; }
.home-theme .journal-intro:not(.has-image) { padding:28px 0 20px; }
.home-theme .journal-toolbar { min-height:58px; padding:8px 0 10px; }
.home-theme .journal-entries.editorial-entries:not([hidden]) { margin-top:6px; display:block; overflow:visible; border:0; border-radius:0; background:transparent; }
.editorial-card { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:26px; min-width:0; padding:25px 0; border-bottom:1px solid var(--border); }
.editorial-card.has-cover { grid-template-columns:210px minmax(0,1fr); }
.editorial-card .content-list-cover { float:none; margin:0; width:100%; height:auto; aspect-ratio:3/2; border-radius:8px; background:#edf0ea; }
.editorial-card .content-list-cover img { width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.editorial-card:hover .content-list-cover img { transform:scale(1.025); }
.editorial-card-copy { min-width:0; }
.editorial-kicker { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:8px; color:var(--muted); font-size:11px; line-height:1.5; }
.editorial-kicker>a { color:var(--accent,var(--primary)); }
.editorial-pick { font-size:11px; font-weight:600; color:var(--accent,var(--primary)); }
.editorial-pick::before { content:''; display:inline-block; width:5px; height:5px; border-radius:50%; background:currentColor; margin-right:6px; vertical-align:middle; }
.editorial-pinned { color:var(--muted); }
.editorial-card h3 { margin:0; max-width:36em; font-size:21px; line-height:1.48; letter-spacing:-.015em; font-weight:650; overflow-wrap:anywhere; }
.editorial-card h3 a { color:var(--ink); text-decoration:none; }
.editorial-card h3 a:hover { color:var(--accent,var(--primary)); }
.editorial-excerpt { margin:10px 0 0; max-width:56em; font-size:14px; line-height:1.8; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.editorial-meta { display:flex; flex-wrap:wrap; align-items:center; gap:5px 13px; margin-top:13px; font-size:11px; line-height:1.6; color:var(--muted); }
.editorial-author { max-width:10em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.editorial-access { font-size:10px; color:#7b6d55; }
.editorial-summary-note { margin:9px 0 0; font-size:12px; color:#856735; }
.editorial-summary-note a { color:inherit; }
.editorial-read { display:inline-flex; align-items:center; gap:22px; margin-top:17px; font-size:12px; font-weight:600; color:var(--accent,var(--primary)); }
.editorial-card.is-spotlight { margin:0 0 4px; padding:24px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.editorial-card.is-spotlight.has-cover { grid-template-columns:320px minmax(0,1fr); gap:30px; }
.editorial-card.is-spotlight h3 { font-size:27px; line-height:1.4; max-width:24em; }
.editorial-card.is-spotlight .editorial-excerpt { font-size:14px; -webkit-line-clamp:3; }
.content-page [data-content-panel=list] { margin-top:4px; }
.editorial-card a:focus-visible { outline:2px solid var(--accent,var(--primary)); outline-offset:4px; border-radius:3px; }
@media(max-width:900px) {
  .editorial-card.is-spotlight.has-cover { grid-template-columns:260px minmax(0,1fr); gap:24px; }
  .editorial-card.is-spotlight h3 { font-size:24px; }
}
@media(max-width:720px) {
  .home-theme .journal-intro.has-image { min-height:190px; padding:18px 20px; margin:18px 0 12px; border-radius:10px; }
  .home-theme .journal-intro.has-image h1 { font-size:24px; line-height:1.22; }
  .home-theme .journal-intro.has-image h1 span { display:block; margin-left:0; }
  .home-theme .journal-intro.has-image .journal-description { margin-top:8px; font-size:12px; line-height:1.55; max-width:29em; }
  .home-theme .journal-intro.has-image .journal-eyebrow { display:none; }
  .home-theme .journal-intro.has-image .journal-intro-link { margin-top:10px; }
  .home-theme .journal-toolbar { padding-top:6px; gap:6px; }
  .editorial-card { padding:22px 0; gap:16px; }
  .editorial-card.has-cover { grid-template-columns:104px minmax(0,1fr); align-items:start; }
  .editorial-card .content-list-cover { margin-top:2px; aspect-ratio:3/2; border-radius:7px; }
  .editorial-card h3 { font-size:17px; line-height:1.5; }
  .editorial-kicker { margin-bottom:6px; font-size:10px; }
  .editorial-excerpt { font-size:12px; line-height:1.7; margin-top:8px; }
  .editorial-meta { gap:3px 9px; margin-top:9px; font-size:10px; }
  .editorial-access { font-size:9px; }
  .editorial-card.is-spotlight,.editorial-card.is-spotlight.has-cover { padding:16px; grid-template-columns:minmax(0,1fr); gap:16px; }
  .editorial-card.is-spotlight .content-list-cover { margin:0; aspect-ratio:2/1; }
  .editorial-card.is-spotlight h3 { font-size:23px; line-height:1.4; }
  .editorial-card.is-spotlight .editorial-excerpt { font-size:13px; -webkit-line-clamp:2; }
  .editorial-read { margin-top:12px; }
}
@media(prefers-reduced-motion:reduce) { .editorial-card .content-list-cover img { transition:none; } }

/* member-profile.css */
.user-avatar{display:inline-flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#e5eee9;color:#285a49;overflow:hidden;border:1px solid #d6e2db;vertical-align:middle;font:600 14px/1 sans-serif}
.user-avatar img{width:100%;height:100%;object-fit:cover;display:block}.user-avatar [hidden]{display:none!important}
.user-avatar--xs{width:24px;height:24px;font-size:11px}.user-avatar--md{width:48px;height:48px;font-size:20px}.user-avatar--lg{width:64px;height:64px;font-size:26px}.user-avatar--xl{width:112px;height:112px;font-size:42px}
.user-identity{display:inline-flex;align-items:center;gap:8px;max-width:100%;flex-wrap:wrap;vertical-align:middle}.user-identity-name{overflow-wrap:anywhere;color:inherit}.user-identity.is-small{gap:6px;font-size:12px}
.member-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:5px;padding:3px 6px;font:500 11px/1.3 system-ui,sans-serif;white-space:nowrap;vertical-align:middle;max-width:100%}.member-badge svg{flex:none}.member-badge b{border-left:1px solid currentColor;padding-left:5px;font-size:10px;font-weight:600}.member-badge [hidden]{display:none!important}
.member-badge--none{background:#f1f3f3;color:#64716c}.member-badge--none svg{display:none}.member-badge--inner{background:#e8f1ec;color:#285a49;border-color:#d7e5de}.member-badge--vip{background:#f8f0dd;color:#805c1d;border-color:#ebd9ad}.member-badge--svip{background:#eeebf7;color:#635088;border-color:#ded7ed}.member-badge--admin{background:#edf0f4;color:#46566a;border-color:#dae0e8}
.member-badge [data-member-label]{min-width:0;overflow:hidden;text-overflow:ellipsis}.member-badge b{flex:none}
.avatar-remove-confirm{margin-top:14px;padding:12px 14px;border:1px solid #e9d9c1;background:#fffaf1;border-radius:8px}.avatar-remove-confirm[hidden]{display:none!important}.avatar-remove-confirm p{margin:0 0 10px}.avatar-remove-confirm button{font-size:12px;padding:8px 10px;margin:0 5px 0 0}
.member-former-tier{font-size:11px;line-height:1.5}
.member-overview{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;padding:24px;background:#fff;border:1px solid var(--border);border-radius:12px}.member-overview>.member-card{border:0;box-shadow:none;background:none;padding:0!important}.member-identity{display:flex;align-items:center;gap:14px;min-width:0}.member-identity>div{display:flex;align-items:flex-start;flex-direction:column;gap:8px;min-width:0}.member-identity strong{font-size:18px;overflow-wrap:anywhere}.member-identity a{font-size:12px;color:var(--primary)}
.member-expiry{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:18px 0 8px;padding:16px 18px;border-left:3px solid #396650;border-radius:7px;background:#f1f6f3;color:#285a49}.member-expiry-label{font-size:12px;color:#65766d}.member-expiry time{font-size:22px;font-weight:650;letter-spacing:.2px;line-height:1.4;font-variant-numeric:tabular-nums}.member-expiry-note{font-size:12px;line-height:1.6}.member-expiry[data-member-state=expiring]{border-color:#a56b19;background:#fff8e9;color:#895b14}.member-expiry[data-member-state=expired],.member-expiry[data-member-state=suspended]{border-color:#b94b47;background:#fcf0ef;color:#9c3733}.member-expiry[data-member-state=none],.member-expiry[data-member-state=admin]{border-color:#bac6bf;background:#f5f7f6;color:#5a6961}.member-renew-link{font-size:12px;font-weight:600;margin-top:3px;color:inherit}.member-expiry [hidden]{display:none!important}.member-expiry.is-compact{margin:8px 0 0;padding:8px 10px;gap:3px}.member-expiry.is-compact time{font-size:13px;letter-spacing:0}.member-expiry.is-compact .member-expiry-label{display:none}.member-expiry.is-compact .member-expiry-note{font-size:11px}
.member-current-card{display:flex;align-items:center;gap:32px;justify-content:space-between;flex-wrap:wrap;padding:20px 24px;background:#fff;border:1px solid var(--border);border-radius:12px}.member-current-card .member-expiry{margin:0;flex:1;min-width:220px}.member-current-card>a{font-size:13px}.plan-level{display:inline-block;font-size:11px;color:#62766b;border:1px solid #dce5df;border-radius:4px;padding:3px 7px;margin-bottom:10px}.membership-plan[data-tier=vip] .plan-level{background:#fbf5e8;color:#805c1d}.membership-plan[data-tier=svip] .plan-level{background:#eeebf7;color:#635088}
.user-cell-identity{display:flex;align-items:center;gap:12px;min-width:0}.user-cell-identity strong{overflow-wrap:anywhere}.user-cell-identity h1{margin:0}.users-list-row .member-badge{margin-bottom:0}.account-menu>summary{display:flex;align-items:center;gap:7px}.account-dropdown>.member-badge{margin:0 14px 12px;width:max-content;max-width:calc(100% - 28px)}
.profile-page{max-width:1100px}.profile-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px}.avatar-editor,.profile-details{padding:28px;background:#fff;border:1px solid var(--border);border-radius:12px;min-width:0}.avatar-editor{display:flex;align-items:flex-start;gap:28px}.avatar-preview{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--muted);font-size:12px;padding-top:4px}.avatar-editor-controls{min-width:0;flex:1}.avatar-editor h2,.profile-details h2{font-size:17px;margin:0 0 12px}.avatar-editor p{font-size:13px;line-height:1.8;color:var(--muted)}.avatar-file-label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin:18px 0 8px}.avatar-file-label input{max-width:100%;min-height:42px;font-size:12px}.avatar-file-label input::file-selector-button{background:#f4f7f5;border:1px solid #d6e0da;border-radius:6px;padding:8px 12px;color:#285a49;margin-right:10px;cursor:pointer}.avatar-save-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.avatar-save-actions button{font-size:12px;min-height:40px}.avatar-remove{border:0;padding:4px;background:none;color:#8c4743;cursor:pointer}.avatar-save-actions button:disabled{opacity:.45;cursor:not-allowed}.avatar-status{margin:12px 0 0;min-height:20px}.avatar-status[data-tone=error]{color:#a43f3a}.avatar-status[data-tone=success]{color:#285a49}.profile-details dl{display:grid;grid-template-columns:70px minmax(0,1fr);gap:14px 12px;font-size:13px}.profile-details dt{color:var(--muted)}.profile-details dd{margin:0;overflow-wrap:anywhere}.profile-details>.text-link{font-size:12px}.content-column-author .user-identity{flex-direction:column;align-items:flex-start;gap:4px}.content-column-author .user-avatar{display:none}.content-table-mobile-meta .user-identity .member-badge{display:none}
@media(max-width:900px){.member-overview{grid-template-columns:200px minmax(0,1fr)}.profile-layout{grid-template-columns:1fr}.avatar-editor{gap:24px}.user-identity.is-small .member-badge{font-size:10px}}
@media(max-width:640px){.member-overview{grid-template-columns:1fr;gap:18px;padding:18px}.member-overview>.member-card h2{display:none}.member-overview .member-expiry{margin:12px 0 0}.member-expiry time{font-size:20px}.member-current-card{gap:18px;padding:18px}.member-current-card .member-expiry{min-width:100%}.avatar-editor{padding:20px;flex-direction:column;gap:22px}.avatar-editor-controls{width:100%}.profile-details{padding:20px}.user-avatar--lg{width:56px;height:56px}.thread-meta>.user-identity{flex-basis:100%;margin-bottom:4px}.member-badge{font-size:10px}.user-identity{gap:6px}.user-cell-identity{gap:8px}.users-list-row .member-expiry{max-width:100%}.member-expiry.is-compact time{font-size:12px}}

/* discovery-ui.css */
/* One calm navigation bar: the logo is home, four primary choices, then account actions. */
body:not(.admin-theme) .discovery-header { grid-template-columns:auto minmax(0,1fr) auto; gap:28px; min-height:64px; padding:0; background:transparent; }
body:not(.admin-theme) .discovery-header>.brand { grid-column:1; grid-row:1; justify-self:start; }
body:not(.admin-theme) .discovery-header>.account-nav { grid-column:3; grid-row:1; padding-left:18px; gap:10px; border-left:1px solid var(--border); }
body:not(.admin-theme) .discovery-header>.site-nav-frame { grid-column:2; grid-row:1; display:flex; align-items:center; min-width:0; border:0; overflow:visible; }
body:not(.admin-theme) .discovery-header .site-nav { flex:1; gap:4px; align-items:center; justify-content:flex-start; padding:0; overflow:visible; }
body:not(.admin-theme) .discovery-header .nav-discovery-link { position:relative; display:inline-flex; flex:none; align-items:center; justify-content:center; gap:6px; min-height:64px; padding:0 11px; border:0; border-radius:0; line-height:1.4; font-size:14px; color:#43544a; background:transparent; box-shadow:none; cursor:pointer; }
.nav-discovery-link>span { font-weight:500; }
body:not(.admin-theme) .discovery-header .nav-discovery-link::after { content:""; position:absolute; left:11px; right:11px; bottom:0; height:2px; border-radius:2px 2px 0 0; background:transparent; }
body:not(.admin-theme) .discovery-header .nav-discovery-link.is-current { background:transparent; color:var(--primary); box-shadow:none; }
body:not(.admin-theme) .discovery-header .nav-discovery-link.is-current>span { font-weight:700; }
body:not(.admin-theme) .discovery-header .nav-discovery-link.is-current::after { background:var(--primary); }
body:not(.admin-theme) .discovery-header .nav-discovery-link:hover { background:transparent; color:var(--primary); }
body:not(.admin-theme) .discovery-header .nav-discovery-link:hover::after { background:#bdd0c4; }
body:not(.admin-theme) .discovery-header .nav-discovery-link.is-current:hover::after { background:var(--primary); }
body:not(.admin-theme) .discovery-header .brand strong { max-width:150px; font-size:20px; letter-spacing:-.02em; }
body:not(.admin-theme) .discovery-header .brand-logo { width:36px; height:36px; border-radius:9px; box-shadow:none; }
body:not(.admin-theme) .discovery-header .account-publish,
body:not(.admin-theme) .discovery-header .nav-signup { min-height:34px; padding:6px 13px; border-radius:6px; border-color:#cbd8d1; background:#fff; color:var(--primary); }
.discovery-header .account-publish:hover,.discovery-header .nav-signup:hover { border-color:#91aa9d; background:#f1f5f2; }
.discovery-header .nav-search-link { display:grid; place-items:center; width:34px; height:34px; padding:0; border:1px solid transparent; border-radius:6px; color:#53645b; }
.discovery-header .nav-search-link:hover { border-color:#d9e1dc; background:#f2f5f2; color:var(--primary); }
.discovery-header .account-menu summary { min-height:40px; padding:6px 0; font-size:13px; color:#58655e; }
.account-dropdown .account-mobile-publish { display:none; }
.mobile-column-menu { display:none; position:relative; flex:none; }
.mobile-column-menu>summary { display:flex; align-items:center; gap:5px; min-height:40px; padding:8px 9px; list-style:none; font-size:13px; color:#58655e; cursor:pointer; border-radius:6px; }
.mobile-column-menu>summary::-webkit-details-marker { display:none; }
.mobile-column-menu[open]>summary,.mobile-column-menu>summary:hover { background:var(--surface-2); color:var(--primary); }
.mobile-column-menu[open]>summary>svg { transform:rotate(180deg); }
.mobile-column-menu nav { position:absolute; top:calc(100% + 10px); right:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:12px; width:min(320px,calc(100vw - 32px)); border:1px solid var(--border); border-radius:10px; background:#fff; box-shadow:0 12px 32px #203d2517; z-index:40; }
.mobile-column-menu nav a { padding:12px 10px; font-size:13px; border-radius:5px; color:var(--ink); overflow-wrap:anywhere; }
.mobile-column-menu nav a:hover,.mobile-column-menu nav a[aria-current=page] { background:var(--surface-2); color:var(--primary); }
.column-menu-heading { grid-column:1/-1; padding:8px 10px 5px; color:var(--faint); font-size:11px; letter-spacing:.05em; }
.column-menu-heading:not(:first-child) { border-top:1px solid var(--border); margin-top:4px; padding-top:13px; }
.journal-tools { gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.content-heading-tools { gap:10px; }
.editorial-placeholder { display:none; }
.home-theme [data-content-view][data-view=grid] .editorial-entries:not([hidden]),
[data-content-view][data-view=grid] [data-content-panel=list]:not([hidden]) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:22px; margin-top:12px; border:0; border-radius:0; background:transparent; overflow:visible; }
.home-theme [data-content-view][data-view=grid][data-columns="2"] .editorial-entries:not([hidden]),
[data-content-view][data-view=grid][data-columns="2"] [data-content-panel=list]:not([hidden]) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.home-theme [data-content-view][data-view=grid][data-columns="4"] .editorial-entries:not([hidden]),
[data-content-view][data-view=grid][data-columns="4"] [data-content-panel=list]:not([hidden]) { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
[data-content-view][data-view=grid] .editorial-card,
[data-content-view][data-view=grid] .editorial-card.is-spotlight.has-cover { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; margin:0; min-width:0; border:1px solid var(--border); border-radius:12px; background:#fff; overflow:hidden; transition:border-color .18s,box-shadow .18s; }
[data-content-view][data-view=grid] .editorial-card:hover { border-color:#b7cbbf; box-shadow:0 7px 24px #2849360a; }
[data-content-view][data-view=grid] .editorial-card .content-list-cover,
[data-content-view][data-view=grid] .editorial-placeholder { width:100%; height:auto; aspect-ratio:16/10; margin:0; border-radius:0; flex:none; }
[data-content-view][data-view=grid] .editorial-placeholder { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:16px; padding:25px; color:#285a48; background:linear-gradient(135deg,#e7eee8,#f8f7f0); }
.editorial-placeholder>span { font-size:11px; letter-spacing:.05em; }
.editorial-placeholder>strong { font-size:28px; font-weight:550; }
[data-content-view][data-view=grid] .editorial-card-copy { display:flex; flex-direction:column; flex:1; padding:20px; }
[data-content-view][data-view=grid] .editorial-kicker { margin-bottom:10px; font-size:11px; gap:8px; }
[data-content-view][data-view=grid] .editorial-card h3 { font-size:19px; line-height:1.5; letter-spacing:-.01em; max-width:none; }
[data-content-view][data-view=grid] .editorial-card h3 a { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
[data-content-view][data-view=grid] .editorial-excerpt { font-size:13px; line-height:1.8; -webkit-line-clamp:2; margin:10px 0 20px; }
[data-content-view][data-view=grid] .editorial-meta { margin-top:auto; padding-top:16px; border-top:1px solid #edf0ec; gap:6px 10px; font-size:10px; }
[data-content-view][data-view=grid] .editorial-meta .member-badge { display:none; }
[data-content-view][data-view=grid] .editorial-meta .user-identity { font-size:11px; }
[data-content-view][data-view=grid] .editorial-meta .user-avatar { width:20px; height:20px; font-size:10px; }
[data-content-view][data-view=grid] .editorial-access { flex-basis:100%; font-size:10px; }
[data-content-view][data-view=grid] .editorial-read { font-size:12px; margin-top:12px; justify-content:space-between; }
[data-content-view][data-view=grid][data-columns="2"] .editorial-card h3 { font-size:22px; }
[data-content-view][data-view=grid][data-columns="4"] .editorial-card-copy { padding:16px; }
[data-content-view][data-view=grid][data-columns="4"] .editorial-card h3 { font-size:17px; }
[data-content-view][data-view=grid] .journal-empty { grid-column:1/-1; }

body:not(.admin-theme) .page-shell.account-center { padding-top:24px; }
.account-center>.page-title { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 18px; margin:0 0 18px; }
body:not(.admin-theme) .account-center>.page-title h1 { grid-column:1; font-size:30px; margin:0; }
.account-center>.page-title>.seal { display:none; }
.account-center>.page-title>p { grid-column:1; font-size:13px; margin:0; }
.account-center>.page-title>.account-refresh { grid-column:2; grid-row:1; align-self:center; }
.account-center>.page-title>.account-refresh-status { grid-column:2; grid-row:2; margin:0; max-width:220px; }
.account-center .member-overview { padding:22px 24px; gap:26px; grid-template-columns:240px minmax(0,1fr); align-items:center; }
.account-center .account-summary .account-member-status { box-shadow:none; background:transparent; border:0; }
.account-member-status .member-expiry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 18px; margin:0; padding:15px 18px; }
.account-member-status .member-expiry-label { grid-column:1; }
.account-member-status .member-expiry time { grid-column:1; font-size:22px; }
.account-member-status .member-expiry-note { grid-column:2; grid-row:1/4; align-self:center; padding:6px 10px; border:1px solid #d8e5dc; border-radius:6px; background:#fff9; text-align:center; max-width:170px; }
.account-member-status .member-renew-link { grid-column:1; margin:2px 0 0; }
.account-member-status [data-member-former]:not([hidden]) { grid-column:1; }
.account-member-status [data-member-state=expiring] .member-expiry-note { border-color:#ead7b3; }
.account-member-status [data-member-state=expired] .member-expiry-note { border-color:#e8c5c1; }
.account-center .account-tabs { margin:20px 0 24px; }
.account-center .account-tabs a { padding:13px 15px; font-size:13px; }
.account-panel[data-account-panel=membership]>.membership-current { display:none; }
.membership-heading { margin-bottom:22px; }
.membership-heading>.seal { display:none; }
body:not(.admin-theme) .membership-heading h1,.account-panel>.membership-heading h2 { margin:0 0 8px; font-size:25px; }
.membership-heading p { margin:0; font-size:13px; line-height:1.8; color:var(--muted); }
.membership-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px; align-items:start; }
.membership-section-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.membership-section-heading h2 { margin:0; font-size:16px; }
.membership-section-heading>span { font-size:11px; color:var(--muted); }
.membership-plan-area { min-width:0; }
.membership-plan-area .membership-plans { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:14px; margin:0; }
.membership-plan-area .membership-plan { display:flex; flex-direction:column; padding:24px; min-width:0; border-radius:10px; box-shadow:none; }
.membership-plan-area .membership-plan.is-current-plan { border-color:#b5cbbb; }
.membership-plan-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.membership-plan-heading .plan-level { margin:0; }
.membership-current-label { font-size:11px; color:#285a48; }
.membership-plan-area .membership-plan h2 { font-size:21px; margin:0 0 14px; }
.membership-plan-price { display:flex; flex-direction:column; gap:6px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.membership-plan-price .membership-price { font-size:20px; line-height:1.5; }
.membership-plan-price>span { font-size:12px; color:var(--muted); }
.membership-benefits { list-style:none; display:grid; gap:12px; padding:0; margin:20px 0 24px; }
.membership-benefits li { display:flex; gap:10px; font-size:13px; line-height:1.9; color:var(--muted); }
.membership-benefits li>span:first-child { color:var(--primary); }
.membership-benefits li>span:last-child { min-width:0; overflow-wrap:anywhere; }
.membership-plan-choose { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:auto; padding-top:16px; border-top:1px solid var(--border); color:var(--primary); font-size:13px; font-weight:600; }
.membership-layout>.membership-application { padding:24px; min-width:0; border-radius:10px; box-shadow:none; }
.membership-application .membership-contact { margin:0 0 12px; font-size:12px; color:var(--muted); line-height:1.8; }
.membership-application .membership-request-form { display:grid; gap:9px; margin:18px 0 0; max-width:none; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.membership-request-form label { font-size:13px; font-weight:550; margin-top:8px; }
.membership-request-form select,.membership-request-form textarea { width:100%; min-width:0; font-size:13px; }
.membership-request-form textarea { min-height:88px; resize:vertical; }
.membership-request-form button { width:100%; justify-self:stretch!important; margin-top:10px; min-height:44px; display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.membership-request-form .membership-form-hint { margin:0; font-size:11px; line-height:1.8; color:var(--muted); }
.membership-notice { font-size:13px; color:var(--muted); line-height:1.9; margin:14px 0 20px; }
.membership-pending { padding:18px; background:#f2f6f3; border-radius:8px; }
.membership-pending h3 { font-size:17px; margin:12px 0 8px; }
.membership-pending p { margin:0 0 12px; font-size:13px; color:var(--muted); line-height:1.8; }
.membership-pending>a { font-size:12px; color:var(--primary); }
details.membership-history { margin:24px 0 0; border:1px solid var(--border); border-radius:10px; background:#fff; padding:0; }
.membership-history>summary { display:flex; justify-content:space-between; align-items:center; gap:16px; list-style:none; cursor:pointer; padding:17px 22px; font-size:14px; font-weight:550; }
.membership-history>summary::-webkit-details-marker { display:none; }
.membership-history>summary>span:last-child { font-size:12px; color:var(--muted); font-weight:400; }
.membership-history .membership-history-list { padding:0 22px; }
.membership-history .membership-history-row { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:18px 0; margin:0; border:0; border-top:1px solid var(--border); border-radius:0; }
.membership-history-copy { min-width:0; }
.membership-history-copy>div { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:13px; }
.membership-history-copy>p { margin:6px 0 0; font-size:12px; color:var(--muted); }
.membership-history-row form { flex:none; margin:0; }
.membership-history-row button { font-size:12px; padding:8px 12px; }
.status-pill[data-application-state=approved] { color:#285a48; background:#e8f1eb; }
.status-pill[data-application-state=pending] { color:#806127; background:#faf1dd; }
.status-pill[data-application-state=rejected] { color:#9c423c; background:#fcf0ed; }
.membership-current.member-current-card { gap:24px; padding:18px 22px; }
.membership-current.member-current-card .member-expiry { min-width:0; flex:none; border:0; background:none; padding:0; }
.membership-current.member-current-card .member-expiry time { font-size:17px; }
.membership-current.member-current-card>a { margin-left:auto; }

@media(max-width:1050px) {
  .journal-toolbar { flex-wrap:wrap; }
}
@media(max-width:1180px) and (min-width:901px) {
  .home-theme [data-content-view][data-view=grid][data-columns="4"] .editorial-entries:not([hidden]),
  [data-content-view][data-view=grid][data-columns="4"] [data-content-panel=list]:not([hidden]) { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
}
@media(max-width:1080px) and (min-width:861px) {
  body:not(.admin-theme) .discovery-header { gap:16px; }
  body:not(.admin-theme) .discovery-header .nav-discovery-link { padding-inline:8px; }
  body:not(.admin-theme) .discovery-header>.account-nav { padding-left:12px; }
}
@media(max-width:860px) {
  body:not(.admin-theme) .discovery-header { gap:14px; }
  body:not(.admin-theme) .discovery-header .site-nav { display:none; }
  body:not(.admin-theme) .discovery-header>.site-nav-frame { justify-content:flex-end; overflow:visible; }
  .mobile-column-menu { display:block; }
}
@media(max-width:900px) {
  .home-theme [data-content-view][data-view=grid] .editorial-entries:not([hidden]),
  .home-theme [data-content-view][data-view=grid][data-columns] .editorial-entries:not([hidden]),
  [data-content-view][data-view=grid] [data-content-panel=list]:not([hidden]),
  [data-content-view][data-view=grid][data-columns] [data-content-panel=list]:not([hidden]) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .membership-layout { gap:18px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .account-center .member-overview { grid-template-columns:200px minmax(0,1fr); gap:16px; }
}
@media(max-width:720px) {
  .home-theme [data-content-view][data-view=grid] .editorial-entries:not([hidden]),
  .home-theme [data-content-view][data-view=grid][data-columns] .editorial-entries:not([hidden]),
  [data-content-view][data-view=grid] [data-content-panel=list]:not([hidden]),
  [data-content-view][data-view=grid][data-columns] [data-content-panel=list]:not([hidden]) { grid-template-columns:minmax(0,1fr); gap:18px; }
  [data-content-view][data-view=grid] .editorial-card-copy,
  [data-content-view][data-view=grid][data-columns="4"] .editorial-card-copy { padding:18px; }
  [data-content-view][data-view=grid] .editorial-card h3,
  [data-content-view][data-view=grid][data-columns] .editorial-card h3 { font-size:20px; }
  .journal-tools { justify-content:space-between; width:100%; }
  .content-view-controls button { padding-inline:9px; }
  .journal-tools .journal-search { max-width:190px; }
  .membership-layout { grid-template-columns:1fr; gap:24px; }
  body:not(.admin-theme) .membership-heading h1,.account-panel>.membership-heading h2 { font-size:22px; }
  body:not(.admin-theme) .account-center>.page-title h1 { font-size:26px; }
  .account-center .member-overview { grid-template-columns:1fr; padding:18px; gap:18px; }
  .account-center .account-tabs a { padding:12px 13px; }
  .account-member-status .member-expiry { margin:0; padding:13px 14px; column-gap:10px; }
  .account-member-status .member-expiry time { font-size:19px; }
  .account-member-status .member-expiry-note { max-width:120px; padding:5px 7px; font-size:11px; }
  .membership-history .membership-history-row { align-items:flex-start; }
}
@media(max-width:380px) {
  .journal-tools .journal-search { max-width:none; width:100%; flex-basis:100%; }
  .account-member-status .member-expiry { grid-template-columns:minmax(0,1fr); }
  .account-member-status .member-expiry-note { grid-column:1; grid-row:auto; text-align:left; max-width:none; justify-self:start; }
}
@media(prefers-reduced-motion:reduce) { [data-content-view][data-view=grid] .editorial-card { transition:none; } }
/* Journey states and useful empty pages, using the existing design tokens. */
.membership-context { padding:18px 22px; margin:0 0 22px; border-left:3px solid var(--primary); border-radius:8px; background:#edf3ee; }
.membership-context strong { font-size:16px; }
.membership-context p,.membership-scope { font-size:13px; line-height:1.8; color:var(--muted); }
.membership-context a,.membership-help-link,.membership-return { font-size:13px; color:var(--primary); }
.membership-scope { margin:16px 0 0; }
.membership-return { display:block; margin-top:18px; }
.membership-help-link { display:inline-flex; padding:8px 0; margin-bottom:8px; font-weight:600; }
.membership-contact-note { font-size:12px; line-height:1.8; padding:12px; border-radius:6px; background:var(--surface-2); color:var(--muted); }
.membership-level-guide { margin-top:16px; font-size:12px; color:var(--muted); }
.membership-level-guide>summary { min-height:40px; cursor:pointer; display:flex; align-items:center; }
.membership-level-guide p { display:flex; justify-content:space-between; gap:16px; padding:10px 0; margin:0; border-bottom:1px solid var(--border); }
.resource-empty { padding:32px; border:1px dashed var(--border); border-radius:12px; background:var(--surface); margin:22px 0; }
.resource-empty h2 { font-size:22px; margin:0 0 10px; }
.resource-empty p { color:var(--muted); font-size:14px; line-height:1.8; }
.resource-empty .text-link { display:inline-flex; padding:12px 16px; font-size:13px; }
.resource-reading { margin:32px 0; }
.resource-reading>p { font-size:12px; }
.resource-reading-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.resource-reading-grid article { padding:22px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.resource-reading-grid small { color:var(--primary); font-size:11px; }
.resource-reading-grid h3 { font-size:17px; line-height:1.6; margin:12px 0; }
.resource-reading-grid p { font-size:13px; line-height:1.8; color:var(--muted); }
.resource-reading-grid article>a { font-size:12px; color:var(--primary); }
@media(max-width:720px) {
 body:not(.admin-theme) .discovery-header { grid-template-columns:minmax(0,1fr) auto auto; gap:10px; min-height:64px; padding:0; }
 body:not(.admin-theme) .discovery-header .brand { gap:8px; }
 body:not(.admin-theme) .discovery-header .brand-logo { width:30px; height:30px; border-radius:8px; }
 body:not(.admin-theme) .discovery-header .brand strong { max-width:125px; font-size:18px; }
 body:not(.admin-theme) .discovery-header .site-nav { display:none; }
 body:not(.admin-theme) .discovery-header>.site-nav-frame { position:static; padding:0; overflow:visible; }
 body:not(.admin-theme) .discovery-header>.account-nav { grid-column:3; border:0; padding:0; gap:10px; }
 body:not(.admin-theme) .discovery-header .account-publish,.discovery-header .account-menu-label,.discovery-header .nav-search-link { display:none; }
 body:not(.admin-theme) .discovery-header .nav-signup { min-height:32px; padding:5px 11px; font-size:12px; }
 .discovery-header .account-login { font-size:12px; }
 .discovery-header .account-menu summary { gap:4px; min-height:40px; }
 .account-dropdown .account-mobile-publish { display:block; color:var(--primary); font-weight:600; }
 .mobile-column-menu { display:block; position:static; }
 .mobile-column-menu>summary { padding-inline:6px; font-size:12px; }
 .mobile-column-menu nav { top:calc(100% + 8px); right:0; }
 .home-theme .journal-intro.has-image { min-height:148px; margin:14px 0 16px; padding:18px 20px; }
 .home-theme .journal-intro.has-image .journal-eyebrow { display:none; }
 .home-theme .journal-intro.has-image h1 { font-size:25px; line-height:1.35; }
 .home-theme .journal-intro.has-image .journal-description { font-size:12px; margin-top:8px; line-height:1.7; }
 .home-theme .journal-intro.has-image .journal-intro-link { margin-top:12px; min-height:36px; padding:6px 12px; font-size:12px; }
 .home-theme .journal-toolbar { padding-top:0; gap:8px; }
 .home-theme .journal-sort a { min-height:34px; }
 .home-theme [data-content-view][data-view=grid] .editorial-entries:not([hidden]) { margin-top:8px; }
 [data-content-view][data-view=grid] .editorial-card .content-list-cover,[data-content-view][data-view=grid] .editorial-placeholder { aspect-ratio:16/9; }
 [data-content-view][data-view=grid] .editorial-card-copy { padding:15px 17px; }
 [data-content-view][data-view=grid] .editorial-card h3 { font-size:19px; }
 .resource-reading-grid { grid-template-columns:1fr; }
 .resource-empty { padding:24px; }
 .membership-context { padding:16px; }
}

/* brand-positioning.css */
/* 奇技淫巧以内容拆解为主；铲子联盟作为普通工具与资源入口。 */

.home-theme .journal-intro.has-image { min-height:350px;padding:42px 48px; }
.home-theme .journal-intro.has-image .journal-intro-copy { max-width:700px; }
.home-theme .journal-intro.has-image h1 { max-width:15em;font-size:clamp(34px,4vw,46px);line-height:1.28;letter-spacing:-.035em; }
.home-theme .journal-intro.has-image h1 span { display:block;margin:3px 0 0; }
.home-theme .journal-intro.has-image .journal-description { max-width:48em;margin-top:15px;font-size:14px;line-height:1.8; }
.journal-intro-actions { display:flex;align-items:center;gap:12px;margin-top:24px; }
.journal-intro-actions .journal-intro-link { margin:0;min-height:42px;padding:9px 16px;border-radius:7px; }
.journal-intro-actions .is-primary { color:#173a2d;background:#fff;border:1px solid #fff; }
.journal-intro-actions .is-primary:hover { color:#fff;background:#2d6951;border-color:#84aa96; }
.journal-intro-actions .is-secondary { color:#fff;border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.06); }
.journal-intro-actions .is-secondary:hover { background:rgba(255,255,255,.16); }
.journal-intro-proof { display:flex;align-items:center;gap:18px;margin-top:20px;color:#e8efe9;font-size:11px;letter-spacing:.08em; }
.journal-intro-proof span { display:inline-flex;align-items:center;gap:8px; }
.journal-intro-proof span::before { content:"";width:4px;height:4px;border-radius:50%;background:#b8d5c3; }

.home-section-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:20px; }
.home-section-heading>div { min-width:0; }
.home-section-heading>div>span { display:block;margin-bottom:6px;color:#2b6a51;font-size:11px;font-weight:700;letter-spacing:.12em; }
.home-section-heading h2 { margin:0;font-size:24px;line-height:1.4;letter-spacing:-.025em;color:#1f2c27; }
.home-section-heading p { margin:7px 0 0;color:#68736e;font-size:13px;line-height:1.7; }
.home-section-heading>a { flex:none;padding:8px 0;color:#285f49;font-size:12px;font-weight:600; }

.home-shovel-map { padding:34px 0 38px;border-bottom:1px solid var(--border); }
.home-shovel-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px; }
.home-shovel-grid>a { position:relative;min-width:0;padding:22px 20px;border:1px solid #e1e7e1;border-radius:10px;background:#fff;color:#1f2b26;transition:border-color .18s ease,transform .18s ease,background .18s ease; }
.home-shovel-grid>a:hover { transform:translateY(-2px);border-color:#9db9aa;background:#f8faf7; }
.home-shovel-grid .shovel-index { display:block;margin-bottom:25px;color:#7b9185;font-size:11px;font-variant-numeric:tabular-nums; }
.home-shovel-grid strong { display:block;font-size:17px; }
.home-shovel-grid p { min-height:44px;margin:8px 0 20px;color:#6b756f;font-size:12px;line-height:1.75; }
.home-shovel-grid small { color:#246147;font-size:11px;font-weight:600; }

.home-resource-shelf { padding:36px 0 38px;border-bottom:1px solid var(--border); }
.home-resource-grid,.alliance-catalog-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
.home-resource-grid article,.alliance-catalog-grid article { display:flex;flex-direction:column;min-width:0;padding:21px;border:1px solid #e0e6df;border-radius:10px;background:#fff; }
.home-resource-meta,.alliance-resource-meta { display:flex;align-items:center;justify-content:space-between;gap:12px;color:#68766f;font-size:10px; }
.home-resource-grid h3,.alliance-catalog-grid h3 { margin:17px 0 9px;font-size:17px;line-height:1.5;overflow-wrap:anywhere; }
.home-resource-grid p,.alliance-catalog-grid>article>p { margin:0 0 22px;color:#68736e;font-size:12px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.home-resource-foot,.alliance-catalog-grid footer { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:15px;border-top:1px solid #eef1ed;font-size:10px;color:#7a827e; }
.home-resource-foot a,.alliance-catalog-grid footer a { color:#215d45;font-size:11px;font-weight:650; }
.home-feed-heading { margin:38px 0 6px; }

.alliance-theme { background:#fbfcfa; }
.alliance-theme .site-header,.alliance-theme .site-footer,.alliance-theme .flash,.shovel-alliance { width:min(1160px,calc(100% - 64px)); }
.shovel-alliance { padding:36px 0 72px; }
.alliance-hero { display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:54px;align-items:center;min-height:460px;padding:48px;border:1px solid #dce5de;border-radius:16px;background:#f2f6f1;overflow:hidden; }
.alliance-hero-copy { min-width:0; }
.alliance-hero .alliance-back { margin:0 0 36px;font-size:12px; }
.alliance-hero .eyebrow { margin:0 0 10px;color:#29674e;font-size:11px;font-weight:700;letter-spacing:.13em; }
.alliance-hero h1 { margin:0;font-size:clamp(38px,5vw,60px);line-height:1.1;letter-spacing:-.045em;color:#183629; }
.alliance-promise { margin:18px 0 0;font-size:24px;font-weight:650;line-height:1.45;color:#1c2d26;letter-spacing:-.02em; }
.alliance-hero .alliance-summary { max-width:42em;margin:12px 0 0;color:#5e6f66;font-size:14px;line-height:1.85; }
.alliance-hero-actions { display:flex;gap:10px;flex-wrap:wrap;margin-top:25px; }
.alliance-proof { display:flex;gap:0;margin:30px 0 0;padding-top:22px;border-top:1px solid #d7e1da; }
.alliance-proof div { min-width:100px;padding-right:24px;margin-right:24px;border-right:1px solid #d7e1da; }
.alliance-proof div:last-child { border:0;margin:0;padding:0; }
.alliance-proof dt { font-size:14px;font-weight:750;color:#204f3c; }
.alliance-proof dd { margin:3px 0 0;color:#758079;font-size:10px; }
.alliance-hero .alliance-image { height:100%;min-height:360px;margin:0;border-radius:12px;overflow:hidden;background:#dbe5dd; }
.alliance-hero .alliance-image img { width:100%;height:100%;object-fit:cover; }
.alliance-hero-board { position:relative;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:10px;min-height:360px;padding:20px;border-radius:12px;background:#1f5741;color:#eaf1ec; }
.alliance-hero-board span { display:flex;align-items:flex-end;padding:15px;border:1px solid rgba(255,255,255,.18);border-radius:8px;font-size:12px; }
.alliance-hero-board strong { position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:128px;height:128px;border-radius:50%;background:#f5f1df;color:#214a39;text-align:center;font-size:23px;line-height:1.35;box-shadow:0 14px 35px rgba(4,24,16,.2); }

.alliance-explainer,.alliance-tool-map,.alliance-catalog,.alliance-resources,.shovel-alliance .resource-reading { padding:58px 0;border-bottom:1px solid #e5e9e4; }
.alliance-explainer { display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:70px; }
.alliance-explainer .home-section-heading { align-items:flex-start;margin:0; }
.alliance-explainer .alliance-content { width:auto;margin:0;padding:0;border:0; }
.alliance-explainer .alliance-content p { margin:0 0 18px;font-size:14px;line-height:1.95;color:#4e5c55; }
.alliance-tool-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid #dfe5df;border-radius:12px;overflow:hidden;background:#dfe5df; }
.alliance-tool-grid article { min-width:0;padding:27px 23px;background:#fff; }
.alliance-tool-grid article>span { color:#71867b;font-size:10px; }
.alliance-tool-grid h3 { margin:28px 0 8px;font-size:18px; }
.alliance-tool-grid p { min-height:63px;margin:0 0 22px;color:#69746e;font-size:12px;line-height:1.75; }
.alliance-tool-grid a { color:#246148;font-size:11px;font-weight:650; }
.alliance-resource-tags { display:flex;flex-wrap:wrap;gap:6px;margin:-5px 0 18px; }
.alliance-resource-tags span { padding:3px 7px;border-radius:4px;background:#f0f4ef;color:#607068;font-size:9px; }
.alliance-empty { margin:52px 0 0;padding:48px;border:1px solid #dfe6df;border-radius:12px;background:#fff;text-align:left; }
.alliance-membership-cta { display:flex;align-items:center;justify-content:space-between;gap:40px;margin-top:58px;padding:34px 38px;border-radius:13px;background:#173f30;color:#fff; }
.alliance-membership-cta>div:first-child>span { color:#bed5c7;font-size:10px;font-weight:700;letter-spacing:.12em; }
.alliance-membership-cta h2 { margin:8px 0 5px;font-size:23px; }
.alliance-membership-cta p { max-width:50em;margin:0;color:#dce9e0;font-size:12px;line-height:1.75; }
.alliance-membership-cta>div:last-child { display:flex;gap:9px;flex:none; }
.alliance-membership-cta .button.primary { background:#fff;color:#194331;border-color:#fff; }
.alliance-membership-cta .button.secondary { border-color:#779887;color:#fff; }

@media(max-width:1000px){
  .home-shovel-grid,.alliance-tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-resource-grid,.alliance-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .alliance-hero { grid-template-columns:1fr;gap:32px; }
  .alliance-hero .alliance-image,.alliance-hero-board { min-height:300px; }
}
@media(max-width:720px){
  .home-theme .journal-intro.has-image { min-height:410px;padding:31px 24px; }
  .home-theme .journal-intro.has-image h1 { font-size:34px; }
  .journal-intro-actions { align-items:stretch;flex-direction:column;width:min(260px,100%); }
  .journal-intro-actions .journal-intro-link { justify-content:space-between; }
  .journal-intro-proof { flex-wrap:wrap;gap:8px 15px; }
  .home-section-heading { align-items:flex-start;flex-direction:column;gap:8px; }
  .home-section-heading h2 { font-size:21px; }
  .home-shovel-map,.home-resource-shelf { padding:28px 0 30px; }
  .home-shovel-grid { gap:9px; }
  .home-shovel-grid>a { padding:18px 16px; }
  .home-shovel-grid .shovel-index { margin-bottom:18px; }
  .home-shovel-grid p { min-height:0;margin-bottom:14px; }
  .home-resource-grid,.alliance-catalog-grid { grid-template-columns:1fr; }
  .home-feed-heading { margin-top:30px; }
  .alliance-theme .site-header,.alliance-theme .site-footer,.alliance-theme .flash,.shovel-alliance { width:calc(100% - 40px); }
  .shovel-alliance { padding:22px 0 48px; }
  .alliance-hero { min-height:0;padding:28px 22px;border-radius:12px; }
  .alliance-hero .alliance-back { margin-bottom:28px; }
  .alliance-hero h1 { font-size:40px; }
  .alliance-promise { font-size:21px; }
  .alliance-proof div { min-width:0;flex:1;padding-right:12px;margin-right:12px; }
  .alliance-hero .alliance-image,.alliance-hero-board { min-height:260px; }
  .alliance-explainer { grid-template-columns:1fr;gap:22px; }
  .alliance-explainer,.alliance-tool-map,.alliance-catalog,.alliance-resources,.shovel-alliance .resource-reading { padding:40px 0; }
  .alliance-tool-grid { grid-template-columns:1fr; }
  .alliance-tool-grid p { min-height:0; }
  .alliance-membership-cta { align-items:flex-start;flex-direction:column;margin-top:40px;padding:28px 22px; }
  .alliance-membership-cta>div:last-child { width:100%;flex-direction:column; }
}
@media(max-width:430px){ .home-shovel-grid { grid-template-columns:1fr; } }
