/* ==========================================================================
   幻想岛 · Isle of Fantasy
   A hand-drawn editorial system: deep sea green, salt paper, coral & brass.
   ========================================================================== */

:root {
  --paper: #f3ede0;
  --paper-2: #ece3d2;
  --paper-3: #e3d7c2;
  --card: #faf7ef;
  --card-strong: #fffdf8;
  --ink: #142a27;
  --ink-2: #30433f;
  --muted: #6d7a72;
  --muted-2: #8a948c;
  --line: rgba(20, 42, 39, 0.14);
  --line-soft: rgba(20, 42, 39, 0.08);
  --line-light: rgba(241, 232, 213, 0.18);
  --forest: #103b35;
  --forest-deep: #0a2c27;
  --forest-soft: #1a4b43;
  --teal: #1e5c52;
  --coral: #d95d3f;
  --coral-dark: #b94a30;
  --coral-soft: #f0d5ca;
  --gold: #c9953d;
  --gold-soft: #e8d7ad;
  --cream: #f1e8d5;
  --cream-dim: rgba(241, 232, 213, 0.68);

  --font-serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 1px rgba(20, 42, 39, 0.04), 0 12px 28px -24px rgba(20, 42, 39, 0.45);
  --shadow-md: 0 2px 2px rgba(20, 42, 39, 0.04), 0 26px 60px -34px rgba(20, 42, 39, 0.45);
  --shadow-lg: 0 40px 100px -40px rgba(7, 25, 22, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(217, 93, 63, 0.035), transparent 32%),
    radial-gradient(circle at 82% 66%, rgba(16, 59, 53, 0.035), transparent 38%),
    repeating-linear-gradient(0deg, rgba(20, 42, 39, 0.012) 0 1px, transparent 1px 5px);
}

::selection {
  background: var(--coral);
  color: var(--cream);
}

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

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

h1, h2, h3, h4, h5, p, ul, ol, blockquote, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 5000;
  padding: 10px 18px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2600;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  transition: transform 0.08s linear;
}

.reading-progress span {
  display: none;
}

/* --------------------------------------------------------------------------
   Shared typography & controls
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(217, 93, 63, 0.1);
}

.eyebrow--light {
  color: var(--cream-dim);
}

.eyebrow--light .dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 149, 61, 0.14);
}

.display {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) var(--gutter);
}

.section--flush {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-head h2 em {
  color: var(--coral);
  font-style: normal;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  transition: gap 0.25s var(--ease), color 0.2s;
}

.section-link:hover {
  gap: 13px;
  color: var(--coral);
}

.section-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--cream);
  box-shadow: 0 10px 24px -14px rgba(217, 93, 63, 0.8);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.btn-ink {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.btn-ink:hover {
  background: var(--forest-soft);
  border-color: var(--forest-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(20, 42, 39, 0.035);
}

.btn-ghost-light {
  background: rgba(241, 232, 213, 0.06);
  border-color: var(--line-light);
  color: var(--cream);
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(241, 232, 213, 0.12);
  border-color: rgba(241, 232, 213, 0.38);
}

.btn-small {
  min-height: 38px;
  padding: 0 17px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--coral-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--coral);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 42, 39, 0.05);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s;
}

a.tag:hover {
  background: var(--forest);
  color: var(--cream);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background:
    linear-gradient(150deg, hsl(var(--hue, 160) 34% 48%), hsl(var(--hue, 160) 38% 30%));
  color: #fffaf0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.avatar--sm {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.avatar--lg {
  width: 74px;
  height: 74px;
  font-size: 30px;
}

.avatar--xl {
  width: 104px;
  height: 104px;
  font-size: 42px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(243, 237, 224, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 237, 224, 0.96);
  box-shadow: 0 10px 30px -30px rgba(20, 42, 39, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
  width: min(1400px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 41px;
  height: 41px;
  flex: none;
  filter: drop-shadow(0 5px 12px rgba(16, 59, 53, 0.18));
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 28px 0 26px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}

.main-nav a:hover {
  color: var(--coral-dark);
}

.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(150px, 15vw, 208px);
  height: 38px;
  padding: 0 9px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.45);
  transition: width 0.3s var(--ease), border-color 0.2s, background 0.2s;
}

.header-search:focus-within {
  width: clamp(180px, 18vw, 248px);
  border-color: rgba(20, 42, 39, 0.3);
  background: var(--card-strong);
}

.header-search svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}

.header-search input::placeholder {
  color: var(--muted-2);
}

.search-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.header-publish svg {
  width: 14px;
  height: 14px;
}

.login-trigger {
  padding: 9px 13px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.login-trigger:hover {
  color: var(--coral-dark);
}

.auth-slot {
  display: flex;
  align-items: center;
}

.user-menu {
  position: relative;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.user-chip:hover {
  border-color: rgba(20, 42, 39, 0.28);
  background: var(--card-strong);
}

.user-chip .chevron {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform 0.2s;
}

.user-chip[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 196px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-strong);
  box-shadow: var(--shadow-md);
  animation: dropdownIn 0.2s var(--ease);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--paper);
  color: var(--ink);
}

.user-dropdown svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-dropdown .dropdown-divider {
  height: 1px;
  margin: 5px 8px;
  background: var(--line-soft);
}

.user-dropdown .dropdown-label {
  padding: 8px 11px 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.mobile-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.mobile-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  padding: 8px var(--gutter) 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
  animation: panelIn 0.25s var(--ease);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  margin: 14px 0 18px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.mobile-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.mobile-nav {
  display: grid;
  gap: 1px;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav a span {
  font-family: var(--font-serif);
  font-size: 20px;
}

.mobile-nav a small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.mobile-nav a.is-active span {
  color: var(--coral-dark);
}

.mobile-auth {
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Hero / home
   -------------------------------------------------------------------------- */

.home-page {
  overflow: hidden;
}

.hero {
  position: relative;
  width: calc(100% - clamp(24px, 4vw, 64px));
  max-width: 1520px;
  margin: 18px auto 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 149, 61, 0.12), transparent 28%),
    radial-gradient(circle at 16% 89%, rgba(217, 93, 63, 0.13), transparent 32%),
    linear-gradient(145deg, #15453e 0%, #0d332d 48%, #0a2a25 100%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 42, 37, 0.36), transparent 52%);
}

.hero-contours {
  position: absolute;
  inset: -30%;
  z-index: 0;
  background:
    repeating-radial-gradient(ellipse at 76% 54%, transparent 0 34px, rgba(241, 232, 213, 0.052) 35px 35.8px, transparent 36.8px 74px);
  transform: rotate(-13deg);
  pointer-events: none;
}

.hero-contours::after {
  content: "";
  position: absolute;
  inset: 12% 6%;
  background:
    repeating-radial-gradient(ellipse at 34% 36%, transparent 0 52px, rgba(241, 232, 213, 0.035) 53px 53.7px, transparent 54.7px 108px);
  transform: rotate(18deg);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.24;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(20px, 3vw, 50px);
  align-items: center;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 82px) clamp(28px, 5vw, 76px) clamp(28px, 4vw, 52px);
}

.hero-copy {
  max-width: 650px;
  animation: heroIn 0.9s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow--hero {
  margin-bottom: 26px;
  color: rgba(241, 232, 213, 0.58);
  letter-spacing: 0.18em;
}

.eyebrow--hero .dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 149, 61, 0.12);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-title-cn {
  display: block;
  font-size: clamp(76px, 9.6vw, 142px);
  color: var(--cream);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.hero-title-sub {
  display: block;
  margin-top: 20px;
  font-size: clamp(24px, 2.75vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: rgba(241, 232, 213, 0.82);
}

.hero-title-sub em {
  position: relative;
  color: var(--gold-soft);
  font-style: normal;
  white-space: nowrap;
}

.hero-title-sub em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 215, 173, 0.65), transparent);
}

.hero-lead {
  max-width: 470px;
  margin-top: 26px;
  color: rgba(241, 232, 213, 0.64);
  font-size: 14.5px;
  line-height: 1.95;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 490px);
  height: 58px;
  margin-top: 32px;
  padding: 6px 6px 6px 20px;
  border: 1px solid rgba(241, 232, 213, 0.19);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.09);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.hero-search:focus-within {
  border-color: rgba(241, 232, 213, 0.5);
  background: rgba(255, 253, 248, 0.13);
  box-shadow: 0 0 0 5px rgba(241, 232, 213, 0.04);
}

.hero-search > svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: rgba(241, 232, 213, 0.7);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font-size: 13.5px;
}

.hero-search input::placeholder {
  color: rgba(241, 232, 213, 0.4);
}

.hero-search button {
  flex: none;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.hero-search button:hover {
  background: var(--gold-soft);
  transform: translateX(1px);
}

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

.hero-actions .btn {
  min-height: 44px;
}

.hero-stats {
  display: flex;
  gap: clamp(22px, 3.5vw, 50px);
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 232, 213, 0.13);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.hero-stat span {
  display: block;
  margin-top: 7px;
  color: rgba(241, 232, 213, 0.45);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-map {
  position: relative;
  align-self: stretch;
  min-height: 500px;
  animation: mapIn 1.2s 0.1s var(--ease) both;
}

@keyframes mapIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.island-art {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(116%, 690px);
  transform: translate(-50%, -50%);
  overflow: visible;
  filter: drop-shadow(0 35px 50px rgba(0, 0, 0, 0.22));
}

.island-rings {
  transform-origin: 310px 280px;
  animation: slowSpin 80s linear infinite;
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

.island-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(241, 232, 213, 0.09);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.island-orbit--1 {
  width: 78%;
  aspect-ratio: 1;
}

.island-orbit--2 {
  width: 98%;
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.6;
}

.map-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(241, 232, 213, 0.2);
  border-radius: 999px;
  background: rgba(12, 49, 43, 0.68);
  color: rgba(241, 232, 213, 0.85);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  animation: floatLabel 6s ease-in-out infinite;
}

.map-label span {
  color: var(--gold-soft);
}

.map-label i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.map-label--1 { top: 17%; left: 1%; }
.map-label--2 { top: 47%; right: -1%; animation-delay: -2s; }
.map-label--3 { bottom: 16%; left: 6%; animation-delay: -4s; }

@keyframes floatLabel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.map-note {
  position: absolute;
  right: 13%;
  bottom: 6%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(241, 232, 213, 0.17);
  border-radius: 14px;
  background: rgba(10, 41, 36, 0.7);
  color: var(--cream);
  backdrop-filter: blur(12px);
}

.map-note .icon {
  width: 28px;
  height: 28px;
  color: var(--gold-soft);
}

.map-note strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 500;
}

.map-note small {
  display: block;
  margin-top: 2px;
  color: rgba(241, 232, 213, 0.45);
  font-size: 9.5px;
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 clamp(28px, 5vw, 76px) 26px;
  color: rgba(241, 232, 213, 0.38);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-foot .scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-foot .scroll-hint::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(241, 232, 213, 0.25);
}

/* Terrain cards */

.terrain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.terrain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 355px;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cat-bg, var(--card));
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}

.terrain-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(20, 42, 39, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(20, 42, 39, 0.022),
    0 0 0 58px rgba(20, 42, 39, 0.018),
    0 0 0 88px rgba(20, 42, 39, 0.012);
  transition: transform 0.7s var(--ease);
}

.terrain-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 42, 39, 0.26);
  box-shadow: var(--shadow-md);
}

.terrain-card:hover::before {
  transform: scale(1.06) translate(-8px, 8px);
}

.terrain-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.terrain-ordinal {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cat-color, var(--muted));
  opacity: 0.8;
}

.terrain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(20, 42, 39, 0.14);
  border-radius: 50%;
  color: var(--cat-color, var(--ink));
  background: rgba(255, 253, 248, 0.35);
}

.terrain-icon .icon {
  width: 22px;
  height: 22px;
}

.terrain-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.terrain-card .terrain-en {
  display: block;
  margin-top: 7px;
  color: var(--cat-color, var(--muted));
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.terrain-card > p {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  max-width: 300px;
  color: rgba(20, 42, 39, 0.62);
  font-size: 12.5px;
  line-height: 1.8;
}

.terrain-boards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 21px;
}

.terrain-boards a {
  padding: 3px 9px;
  border: 1px solid rgba(20, 42, 39, 0.11);
  border-radius: 999px;
  color: rgba(20, 42, 39, 0.62);
  font-size: 10.5px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.terrain-boards a:hover {
  background: var(--cat-color, var(--forest));
  border-color: transparent;
  color: var(--cream);
}

.terrain-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(20, 42, 39, 0.1);
  color: var(--cat-color, var(--muted));
  font-size: 11px;
}

.terrain-foot span {
  opacity: 0.7;
}

.terrain-foot .arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(20, 42, 39, 0.16);
  border-radius: 50%;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.terrain-foot .arrow-circle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terrain-card:hover .arrow-circle {
  background: var(--cat-color, var(--forest));
  color: var(--cream);
  border-color: transparent;
  transform: rotate(-35deg);
}

/* Generated cover art */

.entry-cover {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 253, 248, 0.5), transparent 26%),
    linear-gradient(152deg, var(--cover-pale, #e3e7de), var(--cover-pale-2, #d6dfd4));
  isolation: isolate;
}

.entry-cover::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    repeating-radial-gradient(ellipse at 75% 40%, transparent 0 26px, rgba(20, 42, 39, 0.11) 27px 27.7px, transparent 28.7px 56px);
  transform: rotate(-12deg);
  opacity: 0.85;
}

.entry-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(20, 42, 39, 0.08));
  pointer-events: none;
}

.cover-v1 {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 253, 248, 0.55), transparent 30%),
    linear-gradient(24deg, var(--cover-pale-2, #d8dfd3), var(--cover-pale, #e8e9df));
}

.cover-v1::before {
  inset: -30% -15%;
  background:
    repeating-radial-gradient(ellipse at 20% 76%, transparent 0 34px, rgba(20, 42, 39, 0.1) 35px 35.7px, transparent 36.7px 72px);
  transform: rotate(16deg);
}

.cover-v2 {
  background:
    radial-gradient(circle at 72% 72%, rgba(255, 253, 248, 0.5), transparent 30%),
    linear-gradient(118deg, var(--cover-pale, #e8e6da), var(--cover-pale-2, #d6ddd7));
}

.cover-v2::before {
  inset: -50% -25%;
  background:
    repeating-radial-gradient(ellipse at 46% 42%, transparent 0 30px, rgba(255, 253, 248, 0.24) 31px 31.8px, transparent 32.8px 64px);
  transform: rotate(34deg);
}

.cover-meta {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--cover-ink, rgba(20, 42, 39, 0.68));
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-glyph {
  position: absolute;
  right: 14%;
  top: 50%;
  z-index: 1;
  width: 42%;
  max-width: 150px;
  aspect-ratio: 1;
  color: var(--cover-color, var(--forest));
  opacity: 0.78;
  transform: translateY(-48%) rotate(-4deg);
  transition: transform 0.8s var(--ease), opacity 0.4s;
}

.cover-glyph .icon {
  width: 100%;
  height: 100%;
}

.cover-glyph .icon svg {
  stroke-width: 0.8;
}

.entry-card:hover .cover-glyph {
  transform: translateY(-51%) rotate(2deg) scale(1.04);
  opacity: 0.95;
}

.cover-caption {
  position: absolute;
  left: 19px;
  bottom: 16px;
  z-index: 2;
  max-width: 58%;
  color: var(--cover-ink, rgba(20, 42, 39, 0.58));
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.cover-stamp {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  padding: 3px 8px;
  border: 1px solid var(--cover-ink, rgba(20, 42, 39, 0.25));
  border-radius: 999px;
  color: var(--cover-ink, rgba(20, 42, 39, 0.58));
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

/* Entry cards */

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.entry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s;
}

.entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 42, 39, 0.24);
  box-shadow: var(--shadow-md);
}

.entry-card .entry-cover {
  min-height: 156px;
}

.entry-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 21px 18px;
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-kicker .board-name {
  color: var(--board-color, var(--teal));
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.card-kicker .kicker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

.entry-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.entry-card h3 a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}

.entry-card h3 a:hover {
  background-size: 100% 1px;
  color: var(--ink);
}

.entry-card > .entry-card-body > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.entry-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 17px;
  color: var(--muted-2);
  font-size: 10px;
}

.entry-card-foot .author-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.entry-card-foot .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

.entry-card-foot .card-stats {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-stats svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature + list */

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.feature-entry {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  transition: box-shadow 0.35s, border-color 0.3s;
}

.feature-entry:hover {
  border-color: rgba(20, 42, 39, 0.25);
  box-shadow: var(--shadow-md);
}

.feature-entry .entry-cover {
  min-height: 270px;
}

.feature-entry .cover-glyph {
  max-width: 210px;
}

.feature-entry .cover-caption {
  font-size: 14px;
}

.feature-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 24px;
}

.feature-body .card-kicker {
  margin-bottom: 13px;
}

.feature-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.feature-body h3 a:hover {
  color: var(--coral-dark);
}

.feature-body p {
  margin-top: 12px;
  max-width: 570px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.feature-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 11px;
}

.feature-foot .author-link {
  color: var(--ink-2);
  font-weight: 600;
}

.feature-foot .read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--coral-dark);
  font-weight: 600;
}

.feature-foot .read-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.feature-entry:hover .read-link svg {
  transform: translateX(4px);
}

.side-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}

.side-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-list-head span:last-child {
  color: var(--muted-2);
}

.side-list-item {
  display: flex;
  gap: 15px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}

.side-list-item:last-child {
  border-bottom: 0;
}

.side-list-item:hover {
  background: rgba(20, 42, 39, 0.025);
}

.side-list-index {
  flex: none;
  padding-top: 3px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.side-list-content {
  min-width: 0;
}

.side-list-content .chip {
  color: var(--board-color, var(--teal));
  font-size: 9.5px;
  font-weight: 600;
}

.side-list-content h4 {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.side-list-content h4 a:hover {
  color: var(--coral-dark);
}

.side-list-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.side-list-meta .dot-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--line);
}

/* Vote band */

.vote-band {
  position: relative;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 62px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 8%, rgba(201, 149, 61, 0.16), transparent 27%),
    linear-gradient(135deg, #12433c, #0b2f29 72%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.vote-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    repeating-radial-gradient(ellipse at 82% 20%, transparent 0 44px, rgba(241, 232, 213, 0.045) 45px 45.7px, transparent 46.7px 88px);
  transform: rotate(-10deg);
}

.vote-band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.vote-band-head .eyebrow {
  color: var(--cream-dim);
  margin-bottom: 12px;
}

.vote-band-head .eyebrow .dot {
  background: var(--coral);
}

.vote-band-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.vote-band-head p {
  max-width: 310px;
  color: rgba(241, 232, 213, 0.5);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.vote-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vote-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(241, 232, 213, 0.13);
  border-radius: var(--radius-md);
  background: rgba(241, 232, 213, 0.055);
  backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.3s var(--ease), border-color 0.25s;
}

.vote-card:hover {
  transform: translateY(-3px);
  border-color: rgba(241, 232, 213, 0.26);
  background: rgba(241, 232, 213, 0.08);
}

.vote-card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(241, 232, 213, 0.42);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vote-card-kicker .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-soft);
}

.vote-card-kicker .live::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(217, 93, 63, 0.13);
}

.vote-card h3 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.vote-card h3 a:hover {
  color: var(--gold-soft);
}

.vote-card .vote-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  color: rgba(241, 232, 213, 0.46);
  font-size: 11px;
  line-height: 1.7;
}

.vote-widget {
  margin-top: auto;
  padding-top: 18px;
}

.vote-card .vote-widget {
  padding-top: 20px;
}

.vote-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted-2);
  font-size: 9px;
}

.vote-card .vote-widget-head {
  color: rgba(241, 232, 213, 0.42);
}

.vote-total {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.vote-meter {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(20, 42, 39, 0.09);
  overflow: hidden;
}

.vote-card .vote-meter {
  background: rgba(241, 232, 213, 0.1);
}

.vote-meter-fill {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #e58b62);
  transition: width 0.65s var(--ease);
}

.vote-card .vote-meter-fill {
  background: linear-gradient(90deg, var(--gold), #dfb96f);
}

.vote-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
}

.vote-percent {
  color: var(--muted);
  font-size: 9.5px;
}

.vote-card .vote-percent {
  color: rgba(241, 232, 213, 0.45);
}

.vote-buttons {
  display: flex;
  gap: 6px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.vote-card .vote-btn {
  border-color: rgba(241, 232, 213, 0.18);
  color: rgba(241, 232, 213, 0.62);
}

.vote-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.vote-btn.is-active[data-vote-value="1"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.vote-btn.is-active[data-vote-value="-1"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.vote-card .vote-btn:hover {
  border-color: rgba(241, 232, 213, 0.5);
  color: var(--cream);
}

.vote-card .vote-btn.is-active[data-vote-value="1"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-deep);
}

.vote-card .vote-btn.is-active[data-vote-value="-1"] {
  background: rgba(241, 232, 213, 0.9);
  border-color: rgba(241, 232, 213, 0.9);
  color: var(--forest-deep);
}

.vote-btn svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vote-card > .vote-link {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(241, 232, 213, 0.1);
  color: rgba(241, 232, 213, 0.44);
  font-size: 9.5px;
}

.vote-card > .vote-link:hover {
  color: var(--cream);
}

/* CTA */

.cta-band {
  position: relative;
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin: 0 auto var(--gutter);
  padding: clamp(46px, 6vw, 76px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 22%, rgba(241, 232, 213, 0.18), transparent 25%),
    linear-gradient(120deg, #cf5638, #bf4b30);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(241, 232, 213, 0.19);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(241, 232, 213, 0.045),
    0 0 0 86px rgba(241, 232, 213, 0.035),
    0 0 0 130px rgba(241, 232, 213, 0.025);
}

.cta-band .eyebrow {
  color: rgba(241, 232, 213, 0.6);
}

.cta-band .eyebrow .dot {
  background: var(--gold-soft);
}

.cta-band h2 {
  max-width: 800px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.cta-band p {
  max-width: 480px;
  margin-top: 16px;
  color: rgba(241, 232, 213, 0.7);
  font-size: 13px;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.cta-band .btn-primary {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--coral-dark);
}

.cta-band .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   Page heads / breadcrumbs
   -------------------------------------------------------------------------- */

.page-shell {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 28px 0 20px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a:hover {
  color: var(--coral-dark);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--ink-2);
}

.board-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  background:
    radial-gradient(circle at 91% 6%, color-mix(in srgb, var(--board-color, var(--teal)) 11%, transparent), transparent 26%),
    var(--card);
  overflow: hidden;
}

.board-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(20, 42, 39, 0.018),
    0 0 0 68px rgba(20, 42, 39, 0.013);
  pointer-events: none;
}

.board-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.board-hero h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.board-hero h1 .en {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.board-hero .board-blurb {
  margin-top: 12px;
  color: var(--board-color, var(--teal));
  font-family: var(--font-serif);
  font-size: 18px;
}

.board-hero .board-desc {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.board-hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  min-width: 190px;
}

.board-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.45);
  color: var(--board-color, var(--teal));
}

.board-hero-icon .icon {
  width: 34px;
  height: 34px;
}

.board-hero-stats {
  text-align: right;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.board-hero-stats strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toolbar-title .count-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(20, 42, 39, 0.06);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0;
}

.sort-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.35);
}

.sort-tabs button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  transition: background 0.2s, color 0.2s;
}

.sort-tabs button.is-active {
  background: var(--forest);
  color: var(--cream);
}

.board-note {
  display: flex;
  gap: 13px;
  margin-bottom: 24px;
  padding: 16px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.45);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.board-note .icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  color: var(--coral);
}

.board-note strong {
  color: var(--ink);
}

.vote-list {
  display: grid;
  gap: 14px;
}

.vote-list .vote-card {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 24px;
}

.vote-list .vote-card:hover {
  border-color: rgba(20, 42, 39, 0.26);
  background: var(--card-strong);
}

.vote-list .vote-card-kicker {
  color: var(--muted-2);
}

.vote-list .vote-card-kicker .live {
  color: var(--coral-dark);
}

.vote-list .vote-card h3 {
  max-width: 800px;
  font-size: 24px;
  color: var(--ink);
}

.vote-list .vote-card h3 a:hover {
  color: var(--coral-dark);
}

.vote-list .vote-card-summary {
  color: var(--muted);
  font-size: 12.5px;
  -webkit-line-clamp: 2;
}

.vote-list .vote-widget {
  max-width: 500px;
  padding-top: 16px;
}

.vote-list .vote-widget-head {
  color: var(--muted-2);
}

.vote-list .vote-meter {
  background: rgba(20, 42, 39, 0.08);
}

.vote-list .vote-meter-fill {
  background: linear-gradient(90deg, var(--coral), #e58b62);
}

.vote-list .vote-percent {
  color: var(--muted);
}

.vote-list .vote-btn {
  border-color: var(--line);
  color: var(--muted);
}

.vote-list .vote-btn:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.vote-list .vote-btn.is-active[data-vote-value="1"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.vote-list .vote-btn.is-active[data-vote-value="-1"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.vote-list .vote-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 10px;
}

.vote-list .vote-card-footer a {
  color: var(--coral-dark);
  font-weight: 600;
}

/* Explore */

.explore-head {
  position: relative;
  padding: clamp(38px, 6vw, 72px) 0 clamp(30px, 4vw, 50px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.explore-head::after {
  content: "TERRAIN";
  position: absolute;
  right: 0;
  bottom: -24px;
  color: rgba(20, 42, 39, 0.035);
  font-family: var(--font-serif);
  font-size: clamp(80px, 14vw, 190px);
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
}

.explore-head h1 {
  position: relative;
  z-index: 1;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6.2vw, 78px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.explore-head h1 em {
  color: var(--coral);
  font-style: normal;
}

.explore-head p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.explore-search {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 540px);
  height: 52px;
  margin-top: 27px;
  padding: 0 7px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.explore-search:focus-within {
  border-color: rgba(20, 42, 39, 0.38);
  box-shadow: 0 0 0 4px rgba(20, 42, 39, 0.04);
}

.explore-search svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.explore-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.explore-search button {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 600;
}

.category-block {
  padding: clamp(44px, 6vw, 74px) 0;
  border-bottom: 1px solid var(--line);
}

.category-block:last-child {
  border-bottom: 0;
}

.category-block-head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 380px);
  gap: 24px;
  align-items: start;
  margin-bottom: 27px;
}

.category-numeral {
  color: var(--cat-color, var(--coral));
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.category-block-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.category-block-head h2 small {
  display: block;
  margin-top: 8px;
  color: var(--cat-color, var(--muted));
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.category-block-head p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.board-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}

.board-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -38px;
  width: 114px;
  height: 114px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(20, 42, 39, 0.016), 0 0 0 32px rgba(20, 42, 39, 0.012);
  transition: transform 0.5s var(--ease);
}

.board-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--board-color, var(--teal)) 40%, var(--line));
  box-shadow: var(--shadow-sm);
}

.board-card:hover::after {
  transform: scale(1.08);
}

.board-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--paper-2);
  background: color-mix(in srgb, var(--board-color, var(--teal)) 11%, transparent);
  color: var(--board-color, var(--teal));
}

.board-card-icon .icon {
  width: 18px;
  height: 18px;
}

.board-card-count {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.board-card h3 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.board-card .board-en {
  margin-top: 3px;
  color: var(--board-color, var(--muted-2));
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
}

.board-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
}

.board-card .board-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--board-color, var(--muted));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}

.board-card .board-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.board-card:hover .board-arrow {
  opacity: 1;
  transform: translateX(0);
}

.explore-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(44px, 6vw, 72px);
  padding: 24px;
  border: 1px dashed rgba(20, 42, 39, 0.22);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 12px;
}

.explore-note strong {
  color: var(--ink);
}

/* Category page */

.category-hero {
  position: relative;
  margin-top: 12px;
  padding: clamp(34px, 5vw, 62px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 14%, rgba(201, 149, 61, 0.13), transparent 30%),
    linear-gradient(135deg, #15453e, #0b302a);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    repeating-radial-gradient(ellipse at 78% 50%, transparent 0 42px, rgba(241, 232, 213, 0.05) 43px 43.8px, transparent 44.8px 86px);
  transform: rotate(-11deg);
}

.category-hero .category-ordinal {
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.category-hero h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(50px, 7vw, 90px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.category-hero h1 small {
  color: rgba(241, 232, 213, 0.44);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.category-hero .category-tagline {
  margin-top: 18px;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 19px;
}

.category-hero .category-desc {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(241, 232, 213, 0.59);
  font-size: 13px;
  line-height: 1.9;
}

.category-hero .btn {
  margin-top: 26px;
}

.category-section {
  padding-top: 44px;
}

.category-section h2 {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-page {
  padding-top: 46px;
}

.search-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.search-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.search-head p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.search-form-large {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  margin-top: 26px;
  padding: 0 7px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form-large:focus-within {
  border-color: rgba(20, 42, 39, 0.36);
  box-shadow: 0 0 0 5px rgba(20, 42, 39, 0.035);
}

.search-form-large svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.search-form-large input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.search-form-large button {
  flex: none;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s;
}

.search-form-large button:hover {
  background: var(--coral-dark);
}

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}

.hot-searches span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  margin-right: 3px;
}

.hot-searches button {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  transition: all 0.2s;
}

.hot-searches button:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(26px, 4vw, 52px);
  padding-top: 38px;
}

.search-column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-column-head h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.search-column-head span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-result {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s;
}

.search-result:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 42, 39, 0.27);
  box-shadow: var(--shadow-sm);
}

.search-result-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-result-kicker .board-name {
  color: var(--board-color, var(--teal));
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.search-result h3 {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.search-result p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.search-result-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.search-result-foot .dot-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--line);
}

mark {
  padding: 0 2px;
  border-radius: 2px;
  background: rgba(201, 149, 61, 0.28);
  color: var(--ink);
}

.paper-list {
  display: grid;
  gap: 9px;
}

.paper-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}

.paper-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 42, 39, 0.26);
  background: var(--card-strong);
}

.paper-card h3 {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.paper-card:hover h3 {
  color: var(--coral-dark);
}

.paper-authors {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.paper-meta .paper-venue {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0;
}

.paper-meta .oa-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(30, 92, 82, 0.09);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.paper-meta .arrow-out {
  margin-left: auto;
  color: var(--coral-dark);
  font-size: 12px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.35);
  transition: background 0.2s, border-color 0.2s;
}

.quick-link:hover {
  border-color: var(--forest);
  background: var(--card);
}

.quick-link strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
}

.quick-link span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 8.5px;
}

.quick-link svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.source-note {
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.7;
}

.search-empty {
  padding: 34px 24px;
  border: 1px dashed rgba(20, 42, 39, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--muted);
}

.search-empty .icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--muted-2);
}

.search-empty strong {
  display: block;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 5px;
}

.search-empty p {
  font-size: 11.5px;
  line-height: 1.8;
}

.search-empty .btn {
  margin-top: 15px;
}

.search-intro {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.search-intro h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.search-intro p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Skeleton */

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(20, 42, 39, 0.055);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, 0.4), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.skeleton-card {
  height: 330px;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 9px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 58%;
}

.search-skeleton {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.article-head {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 40px var(--gutter) 30px;
  text-align: center;
}

.article-head .breadcrumbs {
  justify-content: center;
  padding-top: 0;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--board-color, var(--teal));
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.article-kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.article-head h1 {
  margin-top: 21px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.article-summary {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.article-byline .author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 600;
}

.article-byline .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

.article-byline .byline-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 7px;
}

.article-byline .mini-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  transition: all 0.2s;
}

.article-byline .mini-action:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.article-byline .mini-action svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-cover-wrap {
  width: min(1120px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.article-cover {
  min-height: clamp(220px, 27vw, 320px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.article-cover .cover-glyph {
  width: 33%;
  max-width: 250px;
}

.article-cover .cover-caption {
  font-size: 15px;
  max-width: 56%;
}

.article-cover .cover-stamp {
  font-size: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(34px, 5vw, 68px);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 46px var(--gutter) 92px;
  align-items: start;
}

.article-main {
  min-width: 0;
  max-width: 760px;
}

.prose {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 2;
  letter-spacing: 0.005em;
  word-break: break-word;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.55em;
}

.prose h2 {
  margin: 2.1em 0 0.75em;
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.7vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--ink);
  scroll-margin-top: 110px;
}

.prose h2::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: 14px;
  background: var(--coral);
}

.prose h3 {
  margin: 1.9em 0 0.6em;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: 110px;
}

.prose a {
  color: var(--coral-dark);
  text-decoration: underline;
  text-decoration-color: rgba(217, 93, 63, 0.34);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.prose a:hover {
  color: var(--coral);
  text-decoration-color: var(--coral);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose em {
  color: var(--ink);
}

.prose blockquote {
  position: relative;
  margin: 1.9em 0;
  padding: 20px 24px 20px 28px;
  border-left: 2px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.9;
}

.prose blockquote p {
  margin: 0 0 0.6em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.4em 0;
  padding-left: 0.25em;
}

.prose li::marker {
  color: var(--coral);
}

.prose code {
  padding: 0.12em 0.38em;
  border-radius: 4px;
  background: rgba(20, 42, 39, 0.07);
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--ink);
}

.prose pre {
  margin: 1.8em 0;
  padding: 19px 21px;
  border-radius: var(--radius-md);
  background: var(--forest-deep);
  color: #e8e4d7;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose .wiki-link {
  padding: 0 2px;
  border-bottom: 1px dashed rgba(217, 93, 63, 0.45);
  text-decoration: none;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-refs {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.4);
}

.article-refs h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.article-refs h2 .icon {
  width: 17px;
  height: 17px;
  color: var(--coral);
}

.ref-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.ref-list a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.65;
  transition: color 0.2s;
}

.ref-list a:hover {
  color: var(--coral-dark);
}

.ref-list .ref-index {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  padding-top: 2px;
}

.ref-list svg {
  width: 11px;
  height: 11px;
  flex: none;
  margin-top: 4px;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.article-author-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.article-author-card .author-info {
  min-width: 0;
}

.article-author-card .author-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-author-card .author-info strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
}

.article-author-card .author-info p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.article-author-card .author-link-small {
  margin-left: auto;
  flex: none;
  color: var(--coral-dark);
  font-size: 10.5px;
  font-weight: 600;
}

.article-aside {
  position: sticky;
  top: 105px;
  min-width: 0;
}

.aside-poll {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.aside-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.aside-label .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--coral-dark);
}

.aside-label .live-dot::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 93, 63, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(217, 93, 63, 0); }
}

.aside-poll h3 {
  margin-top: 13px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.aside-poll .aside-poll-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.aside-poll .vote-widget {
  margin-top: 0;
  padding-top: 18px;
}

.aside-poll .vote-widget-head {
  font-size: 9.5px;
}

.aside-poll .vote-meter {
  height: 9px;
}

.aside-poll .vote-widget-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.aside-poll .vote-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.aside-poll .vote-btn {
  justify-content: center;
  height: 38px;
  font-size: 11px;
  border-radius: 9px;
}

.aside-poll .vote-btn svg {
  width: 13px;
  height: 13px;
}

.aside-poll .poll-hint {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

.aside-toc {
  margin-top: 14px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.35);
}

.aside-toc h4 {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.aside-toc nav {
  display: grid;
  gap: 2px;
  margin-top: 11px;
}

.aside-toc button {
  display: block;
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: left;
  transition: color 0.2s, padding-left 0.2s;
}

.aside-toc button:hover {
  padding-left: 4px;
  color: var(--ink);
}

.aside-toc button.is-sub {
  padding-left: 12px;
  color: var(--muted-2);
}

.aside-toc button.is-sub:hover {
  padding-left: 16px;
}

.aside-explore-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px dashed rgba(20, 42, 39, 0.22);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 10px;
  transition: border-color 0.2s, color 0.2s;
}

.aside-explore-link:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.aside-explore-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.related-section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.related-head h2 {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 42, 39, 0.25);
}

.related-card .related-board {
  color: var(--board-color, var(--teal));
  font-size: 9.5px;
  font-weight: 600;
}

.related-card h3 {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.related-card .related-meta {
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 8.5px;
}

/* --------------------------------------------------------------------------
   Publish
   -------------------------------------------------------------------------- */

.compose-page {
  padding-top: 26px;
}

.compose-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 26px;
  border-bottom: 1px solid var(--line);
}

.compose-head h1 {
  margin-top: 5px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.compose-head p {
  max-width: 390px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
  text-align: right;
}

.compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(24px, 3.5vw, 44px);
  padding-top: 28px;
  align-items: start;
}

.compose-form {
  min-width: 0;
}

.form-section {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.form-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.form-section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-section-head .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.form-section-head .section-hint {
  color: var(--muted-2);
  font-size: 9.5px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.field-label em {
  color: var(--muted-2);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.55);
  padding: 11px 13px;
  outline: 0;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(20, 42, 39, 0.34);
  background: var(--card-strong);
  box-shadow: 0 0 0 3px rgba(20, 42, 39, 0.035);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.6;
}

.field-counter {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select {
  appearance: none;
  padding-right: 32px;
  cursor: pointer;
}

.editor-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.55);
  overflow: hidden;
}

.editor-shell:focus-within {
  border-color: rgba(20, 42, 39, 0.34);
  background: var(--card-strong);
  box-shadow: 0 0 0 3px rgba(20, 42, 39, 0.035);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(20, 42, 39, 0.025);
}

.editor-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.editor-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 11.5px;
  transition: background 0.15s, color 0.15s;
}

.editor-tools button:hover {
  background: rgba(20, 42, 39, 0.07);
  color: var(--ink);
}

.editor-tools .tool-divider {
  width: 1px;
  height: 14px;
  margin: 0 4px;
  background: var(--line);
}

.editor-tabs {
  display: flex;
  gap: 2px;
}

.editor-tabs button {
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-2);
  font-size: 9.5px;
  transition: background 0.15s, color 0.15s;
}

.editor-tabs button.is-active {
  background: var(--card-strong);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 42, 39, 0.08);
}

.editor-body {
  display: block;
  width: 100%;
  min-height: 410px;
  padding: 17px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  resize: vertical;
  font-size: 14px;
  line-height: 1.9;
}

.editor-preview {
  min-height: 410px;
  padding: 18px 20px;
  background: var(--card-strong);
}

.editor-preview .prose {
  font-size: 14px;
  line-height: 1.9;
}

.editor-preview .prose h2 {
  font-size: 23px;
}

.editor-preview .prose h2::before {
  display: none;
}

.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 9px;
}

.editor-foot .autosave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.editor-foot .autosave::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
}

.editor-foot .autosave.is-saved::before {
  background: var(--teal);
}

.compose-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.compose-actions .submit-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.compose-actions .btn-primary {
  min-height: 48px;
  padding: 0 27px;
}

.compose-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.compose-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.compose-note .aside-label {
  margin-bottom: 13px;
}

.compose-note h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.compose-note p,
.compose-note li {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.compose-note p {
  margin-top: 8px;
}

.compose-note ul {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  list-style: none;
}

.compose-note li {
  display: flex;
  gap: 7px;
}

.compose-note li::before {
  content: "—";
  color: var(--coral);
}

.compose-note code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(20, 42, 39, 0.06);
  font-family: var(--font-mono);
  font-size: 9px;
}

.compose-preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
}

.compose-preview-card .mini-cover {
  min-height: 110px;
}

.compose-preview-card .mini-cover .cover-caption {
  font-size: 10px;
}

.compose-preview-card .mini-cover .cover-glyph {
  max-width: 80px;
}

.compose-preview-card .compose-preview-body {
  padding: 16px;
}

.compose-preview-card .compose-preview-body .card-kicker {
  font-size: 7.5px;
  margin-bottom: 7px;
}

.compose-preview-card .compose-preview-body h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.compose-preview-card .compose-preview-body p {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
}

.compose-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  overflow: hidden;
}

.compose-gate-copy {
  padding: clamp(32px, 5vw, 58px);
}

.compose-gate-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.compose-gate-copy p {
  max-width: 470px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.compose-gate-copy .btn {
  margin-top: 24px;
}

.compose-gate-art {
  position: relative;
  min-height: 340px;
  background:
    radial-gradient(circle at 25% 15%, rgba(201, 149, 61, 0.2), transparent 30%),
    linear-gradient(150deg, #15453e, #0a2c27);
  color: var(--cream);
  overflow: hidden;
}

.compose-gate-art::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 30px, rgba(241, 232, 213, 0.07) 31px 31.7px, transparent 32.7px 62px);
  transform: rotate(-14deg);
}

.compose-gate-art .gate-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  color: var(--cream);
  opacity: 0.65;
}

.compose-gate-art .gate-icon .icon {
  width: 100%;
  height: 100%;
}

.compose-gate-art .gate-icon .icon svg {
  stroke-width: 0.6;
}

.compose-gate-art .gate-caption {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  color: rgba(241, 232, 213, 0.52);
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Profile
   -------------------------------------------------------------------------- */

.profile-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-top: 18px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 8%, rgba(201, 149, 61, 0.13), transparent 28%),
    linear-gradient(135deg, #15453e, #0b302a);
  color: var(--cream);
  overflow: hidden;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    repeating-radial-gradient(ellipse at 70% 30%, transparent 0 38px, rgba(241, 232, 213, 0.045) 39px 39.7px, transparent 40.7px 78px);
  transform: rotate(-9deg);
}

.profile-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.profile-main .avatar {
  box-shadow: 0 0 0 5px rgba(241, 232, 213, 0.09), 0 18px 38px -18px rgba(0, 0, 0, 0.5);
}

.profile-info {
  min-width: 0;
}

.profile-info .eyebrow {
  margin-bottom: 8px;
  color: rgba(241, 232, 213, 0.45);
}

.profile-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-info p {
  max-width: 520px;
  margin-top: 8px;
  color: rgba(241, 232, 213, 0.58);
  font-size: 12px;
  line-height: 1.8;
}

.profile-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 30px;
  flex: none;
  padding-bottom: 4px;
}

.profile-stat {
  text-align: right;
}

.profile-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.profile-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(241, 232, 213, 0.42);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-section {
  padding-top: 36px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.profile-section-head h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-section-head span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Auth modal
   -------------------------------------------------------------------------- */

body.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 26, 0.62);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.25s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  border-radius: 24px;
  background: var(--card-strong);
  box-shadow: 0 50px 130px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalIn 0.4s var(--ease) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: var(--card-strong);
  color: var(--ink);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 37px 32px 28px;
  background:
    radial-gradient(circle at 18% 10%, rgba(201, 149, 61, 0.18), transparent 32%),
    linear-gradient(160deg, #164940, #0a2c27);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.auth-aside-contours {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    repeating-radial-gradient(ellipse at 50% 55%, transparent 0 28px, rgba(241, 232, 213, 0.07) 29px 29.7px, transparent 30.7px 58px);
  transform: rotate(-16deg);
}

.auth-aside-top {
  position: relative;
  z-index: 1;
}

.auth-aside h2 {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 41px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.24;
}

.auth-aside p {
  margin-top: 17px;
  color: rgba(241, 232, 213, 0.55);
  font-size: 11.5px;
  line-height: 1.9;
}

.auth-perks {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: 30px;
  list-style: none;
  border-top: 1px solid rgba(241, 232, 213, 0.12);
}

.auth-perks li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(241, 232, 213, 0.08);
  color: rgba(241, 232, 213, 0.7);
  font-size: 10.5px;
  line-height: 1.6;
}

.auth-perks li span {
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  padding-top: 2px;
}

.auth-aside-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
  color: rgba(241, 232, 213, 0.34);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-stamp {
  padding: 3px 7px;
  border: 1px solid rgba(241, 232, 213, 0.15);
  border-radius: 3px;
  transform: rotate(-2deg);
}

.auth-main {
  overflow-y: auto;
  padding: 38px clamp(28px, 4.5vw, 52px) 34px;
}

.auth-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  position: relative;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.auth-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.auth-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.auth-heading {
  margin-top: 25px;
}

.auth-heading .eyebrow {
  margin-bottom: 9px;
  font-size: 8.5px;
}

.auth-heading h2 {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.auth-heading p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.auth-form {
  margin-top: 22px;
}

.auth-form .field {
  margin-bottom: 13px;
}

.auth-form .field input {
  height: 44px;
  font-size: 12.5px;
}

.auth-submit {
  min-height: 46px;
  margin-top: 5px;
}

.auth-submit svg {
  transition: transform 0.25s var(--ease);
}

.auth-submit:hover svg {
  transform: translateX(3px);
}

.auth-note {
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.65;
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.form-feedback {
  display: none;
  margin-top: 15px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 10.5px;
  line-height: 1.6;
}

.form-feedback.is-error {
  display: block;
  background: rgba(217, 93, 63, 0.08);
  color: var(--coral-dark);
}

.form-feedback.is-success {
  display: block;
  background: rgba(30, 92, 82, 0.08);
  color: var(--teal);
}

.form-feedback.is-info {
  display: block;
  background: rgba(201, 149, 61, 0.1);
  color: #866722;
}

/* --------------------------------------------------------------------------
   Toast, errors, loading
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 230px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 15px;
  border: 1px solid rgba(241, 232, 213, 0.15);
  border-radius: 11px;
  background: rgba(16, 59, 53, 0.96);
  color: var(--cream);
  font-size: 11.5px;
  line-height: 1.65;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  animation: toastIn 0.35s var(--ease) both;
  pointer-events: auto;
}

.toast.is-error {
  background: rgba(130, 47, 29, 0.97);
}

.toast.is-out {
  animation: toastOut 0.25s ease forwards;
}

.toast .toast-mark {
  width: 5px;
  height: 5px;
  flex: none;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.toast.is-error .toast-mark {
  background: #ffc4b1;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

.error-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(70px, 12vw, 140px) var(--gutter);
  text-align: center;
}

.error-code {
  color: rgba(20, 42, 39, 0.12);
  font-family: var(--font-serif);
  font-size: clamp(100px, 18vw, 190px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.error-page h1 {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.error-page p {
  margin: 12px auto 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.error-page .btn {
  margin-top: 26px;
}

.boot-screen {
  display: grid;
  place-items: center;
  min-height: 68vh;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boot-mark {
  width: 46px;
  height: 46px;
  animation: bootFloat 2.8s ease-in-out infinite;
}

@keyframes bootFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.page-loading {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 52px var(--gutter) 100px;
}

.loading-hero {
  height: 330px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 5000;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--coral-dark);
  color: var(--cream);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background:
    radial-gradient(circle at 6% 0%, rgba(201, 149, 61, 0.08), transparent 22%),
    var(--forest-deep);
  color: var(--cream);
  padding: 0 var(--gutter);
  margin-top: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: clamp(36px, 7vw, 100px);
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) 0 clamp(38px, 5vw, 56px);
}

.brand--footer .brand-text strong {
  color: var(--cream);
}

.brand--footer .brand-text small {
  color: rgba(241, 232, 213, 0.4);
}

.footer-quote {
  margin-top: 26px;
  color: rgba(241, 232, 213, 0.72);
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.footer-small {
  margin-top: 18px;
  color: rgba(241, 232, 213, 0.33);
  font-size: 10px;
  line-height: 1.9;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-links h4 {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 16px;
  color: rgba(241, 232, 213, 0.78);
  font-size: 11.5px;
  font-weight: 600;
}

.footer-links h4 span {
  color: rgba(241, 232, 213, 0.25);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin: 0 0 7px;
  color: rgba(241, 232, 213, 0.48);
  font-size: 11px;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: var(--cream);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 17px 0 20px;
  border-top: 1px solid rgba(241, 232, 213, 0.09);
  color: rgba(241, 232, 213, 0.27);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.footer-bottom a {
  color: rgba(241, 232, 213, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-coord {
  color: rgba(241, 232, 213, 0.18);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .header-search {
    display: none;
  }

  .header-inner {
    gap: 22px;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }

  .terrain-card {
    padding: 24px 22px 22px;
  }

  .terrain-card h3 {
    font-size: 30px;
  }

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

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

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

  .category-block-head {
    grid-template-columns: 84px minmax(0, 1fr) minmax(0, 320px);
    gap: 18px;
  }

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

  .board-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 32px;
  }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .header-publish span {
    display: none;
  }

  .header-publish {
    min-width: 38px;
    padding: 0 10px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 50px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-map {
    min-height: 430px;
    margin-top: 8px;
  }

  .island-art {
    width: min(92%, 570px);
  }

  .map-label--1 { left: 3%; }
  .map-label--2 { right: 3%; }
  .map-label--3 { left: 8%; bottom: 8%; }

  .hero-foot {
    display: none;
  }

  .terrain-grid {
    grid-template-columns: 1fr;
  }

  .terrain-card {
    min-height: 0;
  }

  .terrain-card > p {
    max-width: 520px;
  }

  .terrain-foot {
    margin-top: 22px;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .vote-cards {
    grid-template-columns: 1fr;
  }

  .vote-card h3 {
    font-size: 19px;
  }

  .vote-band-head p {
    display: none;
  }

  .category-block-head {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .category-block-head p {
    grid-column: 2;
    margin-top: -12px;
  }

  .search-layout {
    grid-template-columns: 1fr;
  }

  .article-head {
    padding-top: 28px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .article-aside .aside-toc {
    margin-top: 0;
  }

  .article-aside .aside-explore-link {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .compose-layout {
    grid-template-columns: 1fr;
  }

  .compose-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    order: -1;
  }

  .compose-preview-card {
    display: none;
  }

  .compose-gate {
    grid-template-columns: 1fr;
  }

  .compose-gate-art {
    min-height: 240px;
    order: -1;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .profile-stats {
    padding-top: 18px;
    border-top: 1px solid rgba(241, 232, 213, 0.12);
    width: 100%;
  }

  .profile-stat {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    font-size: 6.5px;
  }

  .header-actions {
    margin-left: auto;
    gap: 7px;
  }

  .header-publish {
    display: none;
  }

  .login-trigger {
    padding: 8px 10px;
  }

  .auth-slot .user-chip > span.user-nickname {
    display: none;
  }

  .hero {
    width: calc(100% - 24px);
    border-radius: 22px;
    margin-top: 10px;
  }

  .hero-inner {
    padding: 38px 22px 24px;
  }

  .hero-title-cn {
    font-size: clamp(64px, 20vw, 96px);
  }

  .hero-title-sub {
    margin-top: 14px;
    font-size: 23px;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 13px;
  }

  .hero-search {
    height: 52px;
    margin-top: 24px;
    padding-left: 15px;
  }

  .hero-search button {
    height: 40px;
    padding: 0 16px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
  }

  .hero-stat strong {
    font-size: 23px;
  }

  .hero-map {
    min-height: 340px;
  }

  .map-note {
    right: 4%;
    bottom: 0;
    padding: 9px 11px;
  }

  .map-label {
    padding: 5px 9px;
    font-size: 7.5px;
  }

  .map-label--1 { top: 11%; left: 0; }
  .map-label--2 { top: 48%; right: 0; }
  .map-label--3 { bottom: 13%; left: 2%; }

  .island-art {
    width: min(117%, 500px);
  }

  .section {
    padding: 58px var(--gutter);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .entry-grid,
  .entry-grid--two,
  .entry-grid--three {
    grid-template-columns: 1fr;
  }

  .feature-body {
    padding: 21px 21px 20px;
  }

  .feature-entry .entry-cover {
    min-height: 210px;
  }

  .side-list-item {
    padding: 16px 18px;
  }

  .vote-band {
    width: calc(100% - 24px);
    padding: 30px 22px;
    border-radius: 22px;
  }

  .vote-band-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .vote-list .vote-card {
    padding: 20px;
  }

  .vote-list .vote-card h3 {
    font-size: 20px;
  }

  .cta-band {
    width: calc(100% - 24px);
    padding: 36px 24px;
    border-radius: 22px;
  }

  .cta-band h2 {
    font-size: 32px;
  }

  .page-shell {
    padding-bottom: 66px;
  }

  .breadcrumbs {
    padding: 20px 0 14px;
  }

  .board-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
    border-radius: 20px;
  }

  .board-hero h1 {
    font-size: 42px;
  }

  .board-hero-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .board-hero-icon {
    width: 58px;
    height: 58px;
    order: 2;
  }

  .board-hero-stats {
    text-align: left;
    order: 1;
  }

  .board-hero-stats strong {
    display: inline;
    margin: 0 4px 0 0;
    font-size: 19px;
  }

  .board-hero-stats span {
    display: inline;
  }

  .board-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .explore-head {
    padding-top: 34px;
  }

  .explore-head h1 {
    font-size: 42px;
  }

  .category-hero {
    border-radius: 22px;
    padding: 30px 22px;
  }

  .category-hero h1 {
    font-size: 52px;
  }

  .category-block-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .category-numeral {
    font-size: 38px;
  }

  .category-block-head p {
    grid-column: 1;
    margin-top: 0;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-card {
    min-height: 150px;
  }

  .article-head {
    padding: 22px var(--gutter) 24px;
  }

  .article-head h1 {
    margin-top: 15px;
    font-size: 34px;
  }

  .article-summary {
    font-size: 15px;
  }

  .article-byline {
    gap: 7px;
  }

  .article-cover-wrap {
    width: calc(100% - 24px);
  }

  .article-cover {
    min-height: 170px;
    border-radius: 18px;
  }

  .article-cover .cover-caption {
    max-width: 66%;
    font-size: 11px;
  }

  .article-cover .cover-glyph {
    width: 42%;
  }

  .article-layout {
    padding: 28px var(--gutter) 64px;
    gap: 28px;
  }

  .prose {
    font-size: 15.5px;
    line-height: 1.95;
  }

  .prose h2 {
    font-size: 25px;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .article-aside .aside-explore-link {
    grid-column: auto;
  }

  .related-section {
    padding-bottom: 64px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .compose-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .compose-head p {
    text-align: left;
  }

  .form-section {
    padding: 18px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .editor-body {
    min-height: 340px;
    padding: 14px;
  }

  .editor-preview {
    min-height: 340px;
    padding: 14px;
  }

  .editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .editor-tabs {
    align-self: flex-end;
  }

  .compose-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .compose-actions .submit-group {
    justify-content: flex-end;
  }

  .compose-aside {
    grid-template-columns: 1fr;
  }

  .search-page {
    padding-top: 30px;
  }

  .search-head h1 {
    font-size: 38px;
  }

  .search-form-large {
    height: 54px;
    padding-left: 15px;
  }

  .search-form-large button {
    height: 42px;
    padding: 0 17px;
  }

  .search-layout {
    padding-top: 26px;
  }

  .search-results {
    gap: 8px;
  }

  .quick-links {
    grid-template-columns: 1fr 1fr;
  }

  .profile-hero {
    margin-top: 10px;
    padding: 26px 22px;
    border-radius: 22px;
  }

  .profile-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .profile-stats {
    gap: 24px;
  }

  .profile-stat strong {
    font-size: 24px;
  }

  .compose-gate {
    border-radius: 22px;
  }

  .compose-gate-copy {
    padding: 28px 22px;
  }

  .auth-modal {
    align-items: flex-end;
    padding: 0;
  }

  .auth-card {
    grid-template-columns: 1fr;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
  }

  .auth-aside {
    display: none;
  }

  .modal-close {
    top: 13px;
    right: 13px;
  }

  .auth-main {
    padding: 28px 22px 26px;
  }

  .auth-heading h2 {
    font-size: 24px;
  }

  .auth-tabs {
    margin-right: 34px;
  }

  .footer-inner {
    padding-top: 42px;
  }

  .footer-links {
    gap: 18px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .footer-coord {
    display: none;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .toast {
    max-width: none;
  }

  .loading-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .brand-text small {
    display: none;
  }

  .auth-slot .user-chip {
    padding-right: 4px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   Final integration details
   -------------------------------------------------------------------------- */

.card-cover-link {
  display: block;
  color: inherit;
}

.terrain-card h3 a,
.vote-card h3 a,
.summary a {
  transition: color 0.2s;
}

.terrain-card h3 a:hover {
  color: var(--cat-color, var(--coral));
}

.vote-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(241, 232, 213, 0.1);
  color: rgba(241, 232, 213, 0.38);
  font-size: 9.5px;
}

.vote-card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(241, 232, 213, 0.62);
  transition: color 0.2s;
}

.vote-card-footer a:hover {
  color: var(--cream);
}

.vote-card-footer .icon {
  width: 12px;
  height: 12px;
}

.vote-list .vote-card-footer {
  border-top-color: var(--line-soft);
  color: var(--muted-2);
}

.vote-list .vote-card-footer a {
  color: var(--coral-dark);
}

.vote-list .vote-card-footer a:hover {
  color: var(--coral);
}

.search-head h1 em,
.explore-head h1 em,
.section-head h2 em,
.cta-band h2 em {
  color: var(--coral);
  font-style: normal;
}

.cta-band h2 em {
  color: var(--gold-soft);
}

.compose-preview-card .mini-cover {
  min-height: 112px;
}

.compose-preview-card .mini-cover .cover-meta {
  top: 12px;
  left: 13px;
  right: 13px;
  font-size: 6.5px;
}

.compose-preview-card .mini-cover .cover-caption {
  left: 13px;
  bottom: 11px;
  font-size: 10px;
}

.compose-preview-card .mini-cover .cover-stamp {
  right: 12px;
  bottom: 11px;
  font-size: 6.5px;
}

.mobile-user {
  display: grid;
  gap: 12px;
}

.mobile-user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
}

.mobile-user-actions {
  display: flex;
  gap: 8px;
}

.mobile-user-actions .btn {
  flex: 1;
}

.profile-section-head span a {
  color: var(--coral-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-head .current {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-page .article-head .breadcrumbs {
  justify-content: center;
}

.entry-page .article-head .breadcrumbs .current {
  display: none;
}

.entry-page .article-head .breadcrumbs .sep:last-of-type {
  display: none;
}

.user-dropdown .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .profile-info h1 {
    overflow-wrap: anywhere;
  }

  .category-block-head h2 small {
    margin-top: 5px;
  }

  .auth-main {
    padding-bottom: 38px;
  }

  .compose-aside .compose-preview-card {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Comments (评论)                                                            */
/* -------------------------------------------------------------------------- */

.comments-section {
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.comments-head {
  margin-bottom: 24px;
}

.comments-head .eyebrow {
  margin-bottom: 8px;
}

.comments-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}

.comments-head h2 em {
  font-style: normal;
  color: var(--coral);
}

.comment-form {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.comment-input-wrap {
  flex: 1;
  min-width: 0;
}

.comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 92, 82, 0.12);
}

.comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.comment-hint {
  color: var(--muted-2);
  font-size: 12px;
}

.comment-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.comment-login p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.comment-author:hover {
  color: var(--coral-dark);
}

.comment-meta > span {
  color: var(--muted-2);
  font-size: 12px;
}

.comment-delete {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.comment-delete:hover {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.comment-delete .icon {
  width: 14px;
  height: 14px;
}

.comment-text {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.comment-empty {
  color: var(--muted-2);
  font-size: 14px;
  text-align: center;
  padding: 32px 0;
}

/* -------------------------------------------------------------------------- */
/* Friends & discussion groups (好友与讨论组)                                 */
/* -------------------------------------------------------------------------- */

.groups-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 30%),
    var(--card);
  overflow: hidden;
}

.groups-hero .eyebrow {
  margin-bottom: 8px;
}

.groups-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0;
}

.groups-hero p:last-child {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.groups-hero .btn {
  flex-shrink: 0;
}

.groups-section,
.friends-section {
  margin-bottom: 48px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.group-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.group-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
  box-shadow: var(--shadow-md);
}

.group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
}

.group-icon .icon {
  width: 22px;
  height: 22px;
}

.group-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.group-card h3 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.group-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-card-meta {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink-2);
  font-size: 12px;
}

.group-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.group-card-meta .icon {
  width: 14px;
  height: 14px;
  color: var(--muted-2);
}

.group-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 12px;
}

.group-create {
  margin-bottom: 48px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.group-create-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}

.group-create-form .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.group-create-form input[type="text"],
.group-create-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}

.group-create-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 92, 82, 0.12);
}

.field-label {
  font-weight: 600;
  font-size: 13px;
}

.field-label em,
.field-hint {
  color: var(--muted-2);
  font-style: normal;
  font-size: 12px;
}

.friend-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-strong);
  cursor: pointer;
  font-size: 13px;
}

.friend-option:hover {
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
}

.friend-option input {
  accent-color: var(--teal);
}

.friend-request-form {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.friend-request-form .field {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.friend-request-form input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}

.friend-request-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 92, 82, 0.12);
}

.friend-requests {
  margin-bottom: 24px;
}

.friend-requests h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.friend-request {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  margin-bottom: 10px;
}

.friend-request-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.friend-request-info a {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.friend-request-info span {
  color: var(--muted-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-request-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.friend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.friend-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.friend-info a {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.friend-info a:hover {
  color: var(--coral-dark);
}

.friend-info span {
  color: var(--muted-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-card .btn .icon {
  width: 13px;
  height: 13px;
}

.friend-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
}

/* --- 讨论组详情 --- */

.group-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 30px;
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 32%),
    var(--card);
}

.group-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
}

.group-hero-icon .icon {
  width: 34px;
  height: 34px;
}

.group-hero-main {
  flex: 1;
  min-width: 0;
}

.group-hero-main .eyebrow {
  margin-bottom: 6px;
}

.group-hero-main h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.group-hero-main > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.group-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 12px;
}

.group-hero-actions {
  flex-shrink: 0;
}

.group-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.group-chat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  min-height: 520px;
}

.group-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.group-chat-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.group-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  overflow-y: auto;
  max-height: 60vh;
  background: var(--paper);
}

.group-chat-empty {
  margin: auto;
  color: var(--muted-2);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

.msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 78%;
}

.msg.is-me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  background: var(--card-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.msg.is-me .msg-bubble {
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}

.msg-author {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 2px;
}

.msg-text {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.msg.is-me .msg-text {
  color: var(--cream);
}

.msg-time {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted-2);
  text-align: right;
}

.msg.is-me .msg-time {
  color: rgba(241, 232, 213, 0.55);
}

.group-message-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--card);
}

.group-message-form textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
}

.group-message-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 92, 82, 0.12);
}

.group-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group-side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.group-side-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.member-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-info a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.member-info a:hover {
  color: var(--coral-dark);
}

.member-owner {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 6px;
  padding: 2px 6px;
}

.member-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.member-remove:hover {
  color: var(--coral-dark);
  background: var(--coral-soft);
}

.member-remove .icon {
  width: 14px;
  height: 14px;
}

.add-members-row {
  display: flex;
  gap: 8px;
}

.add-members-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
}

.add-members-row input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 92, 82, 0.12);
}

.add-members-form .field-hint {
  display: block;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .group-layout {
    grid-template-columns: 1fr;
  }

  .group-side {
    order: -1;
  }

  .group-messages {
    max-height: 48vh;
  }
}

@media (max-width: 620px) {
  .group-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .groups-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .msg {
    max-width: 92%;
  }
}

/* -------------------------------------------------------------------------- */
/* 手机访问卡片                                                               */
/* -------------------------------------------------------------------------- */

.mobile-access {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 48px;
  padding: clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 30%),
    var(--card);
}

.mobile-access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  color: var(--coral-dark);
}

.mobile-access-icon .icon {
  width: 30px;
  height: 30px;
}

.mobile-access-copy {
  flex: 1;
  min-width: 0;
}

.mobile-access-copy .eyebrow {
  margin-bottom: 8px;
}

.mobile-access-copy h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mobile-access-copy > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.mobile-access-urls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.mobile-access-url {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-strong);
  max-width: 540px;
}

.url-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 3px 7px;
}

.url-text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--teal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-access-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.mobile-access-url .btn {
  flex-shrink: 0;
}

.mobile-access-url .btn .icon {
  width: 14px;
  height: 14px;
}

@media (max-width: 620px) {
  .mobile-access {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-access-url {
    max-width: none;
  }
}

/* -------------------------------------------------------------------------- */
/* 搜索页 · 相关实验与科普视频                                                 */
/* -------------------------------------------------------------------------- */

.videos-section {
  margin-top: 52px;
}

.video-group {
  margin-bottom: 28px;
}

.video-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.video-group-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.video-group-head span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.video-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--ease), box-shadow var(--ease);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb.no-img img {
  display: none;
}

.video-thumb.no-img::after {
  content: "VIDEO";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
}

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(10, 20, 18, 0.78);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
}

.video-card-body {
  padding: 12px 14px;
}

.video-card-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.video-empty {
  color: var(--muted-2);
  font-size: 13px;
}

/* 词条详情侧栏 */

.aside-videos {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(250, 247, 239, 0.6);
}

.aside-videos h4 {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: 15px;
}

.aside-video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-video-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.aside-video-list .av-title {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.aside-video-list a:hover .av-title {
  color: var(--coral-dark);
}

.aside-video-list .av-meta {
  color: var(--muted-2);
  font-size: 11px;
}

/* -------------------------------------------------------------------------- */
/* 搜索页 · 相关国家标准与行业标准                                            */
/* -------------------------------------------------------------------------- */

.standards-section {
  margin-top: 52px;
}

.std-group {
  margin-bottom: 26px;
}

.std-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.std-group-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.std-group-head a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.std-group-head a:hover {
  color: var(--coral-dark);
}

.std-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.std-card {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color var(--ease), transform var(--ease);
}

.std-card:hover {
  border-color: color-mix(in srgb, var(--teal) 42%, var(--line));
  transform: translateX(2px);
}

.std-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.std-name {
  font-size: 14px;
  line-height: 1.6;
}

.std-name a {
  color: var(--ink);
  text-decoration: none;
}

.std-card:hover .std-name a {
  color: var(--coral-dark);
  text-decoration: underline;
}

.std-ft-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 11px;
  white-space: nowrap;
}

.std-ft-badge.is-none {
  background: var(--paper-2);
  color: var(--muted-2);
}

.std-detail-link {
  color: var(--muted-2);
  text-decoration: none;
}

.std-detail-link:hover {
  color: var(--coral-dark);
  text-decoration: underline;
}

.std-meta {
  font-size: 11px;
  color: var(--muted-2);
  text-align: right;
  white-space: nowrap;
}

.std-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12px;
  color: var(--muted-2);
}

.std-links .std-detail-link {
  font-weight: 600;
  color: var(--teal);
}

.std-links .std-detail-link:hover {
  color: var(--coral-dark);
}

@media (max-width: 720px) {
  .std-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .std-meta {
    text-align: left;
    white-space: normal;
  }
}

/* 检索页 · 结果锚点导航 */

.search-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.search-anchors button {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-strong);
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

.search-anchors button:hover {
  border-color: color-mix(in srgb, var(--coral) 45%, var(--line));
  color: var(--coral-dark);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
