html[data-theme="dark"] {
  --cream: #16324d;
  --white: #10283d;
  --ink: #e7eef6;
  --muted: #b7c4d4;
  --line: #2c4662;
  color-scheme: dark;
}
html[data-theme="dark"] body { background: #071422; color: var(--ink); }
html[data-theme="dark"] .field,
html[data-theme="dark"] input.field,
html[data-theme="dark"] textarea.field,
html[data-theme="dark"] select.field { background: #0d2236; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .side-list li:hover,
html[data-theme="dark"] .forum-row:hover { background: #1a3854; }
html[data-theme="dark"] .forum-row:nth-child(odd),
html[data-theme="dark"] .thread-table th,
html[data-theme="dark"] .post-user { background: #16324d; }
html[data-theme="dark"] .article-discuss { background: #16324d; }
html[data-theme="dark"] .callout { background: #2a2416; color: #f3e6c4; border-color: #6d5a32; }
html[data-theme="dark"] .editor-row,
html[data-theme="dark"] .filters a { background: var(--white); }
html[data-theme="dark"] .btn.ghost { color: var(--ink); }
.hero-home { --hero: none; }

/* Full-bleed masthead. Height follows each file's aspect and stops near its native height. */
.masthead { position: relative; }
.masthead a { display: block; }
.masthead img.masthead-art {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}
.masthead img.masthead-blog {
  height: clamp(120px, 12.37vw, 236px);
  aspect-ratio: 1536 / 190;
}
.masthead img.masthead-forum {
  height: clamp(120px, 11.59vw, 222px);
  aspect-ratio: 1536 / 178;
}
.hero {
  min-height: clamp(260px, 30vw, 360px);
  background: var(--navy);
}
.hero-photo {
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: min(100%, 545px);
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero:before {
  background: linear-gradient(90deg, #061426f2 0%, #061426c7 46%, #06142622 100%);
}

/* Photos stay inside the pixels of the file. The frame reserves space so the page does not jump. */
.card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 20 / 9;
  background: #10283d;
  overflow: hidden;
}
.article-card .card-media img,
.blog-grid .card-media img {
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: scale-down;
  justify-self: center;
  align-self: center;
}
.article-hero {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: scale-down;
  background: #10283d;
}
.forum-page .welcome {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  background-color: #071728;
  background-image: none;
}
.welcome-photo {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 281px;
  height: 102px;
  max-width: 46%;
  object-fit: cover;
  object-position: left center;
}
.welcome-copy { position: relative; z-index: 2; }
.forum-page .welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 23, 40, .15), rgba(7, 23, 40, .9) 58%);
}
.avatar-photo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 10px;
}
.post-body .article-text p { white-space: normal; }

/* Seasonal clusters sit on the category rail, outside the heading text. */
html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  position: relative;
  z-index: 0;
  overflow: visible;
}
html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head h2 {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
}
html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head > a {
  grid-column: 3;
  grid-row: 1;
  order: 0;
  position: relative;
  z-index: 2;
}
html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head::after {
  grid-column: 2;
  grid-row: 1;
  order: 0;
  align-self: center;
  width: 100%;
  height: 2px;
  position: relative;
  z-index: 0;
}
html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .forum-group h2 {
  position: relative;
  z-index: 0;
  padding-right: 132px;
}
html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .filters {
  position: relative;
  align-items: center;
}
.season-layer { display: contents; }
.season-cluster {
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}
.season-cluster > .season-piece,
.season-cluster > .light-stack,
.season-cluster > .sheen-wrap {
  position: absolute;
  display: none;
  margin: 0;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(7, 23, 40, .28));
}
html[data-season="thanksgiving"] .season-cluster > .season-piece,
html[data-season="christmas"] .season-cluster > .season-piece,
html[data-season="newyear"] .season-cluster > .season-piece,
html[data-season="independence"] .season-cluster > .season-piece,
html[data-season="christmas"] .season-cluster > .light-stack,
html[data-season="independence"] .season-cluster > .sheen-wrap { display: block; }
html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head .season-cluster {
  /* Both lines must be set. An auto end line uses the heading's padding edge and covers the link. */
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  top: 50%;
}
.section-head .on-rule-start { left: 2px; right: auto; }
.section-head .on-rule-end { right: 10px; left: auto; }
.forum-group h2 .bar-corner { top: 4px; right: 12px; bottom: auto; left: auto; }
.forum-group h2 .bar-edge { bottom: 3px; right: 14px; top: auto; left: auto; }
.forum-group h2 .variant-garland,
.forum-group h2 .variant-lights,
.forum-group h2 .variant-sheaf,
.forum-group h2 .variant-harvest,
.forum-group h2 .variant-grain,
.forum-group h2 .variant-eve,
.forum-group h2 .variant-pair,
.forum-group h2 .variant-banner,
.forum-group h2 .variant-field {
  transform: scale(0.82);
  transform-origin: right center;
}
.forum-group h2 .bar-edge {
  transform-origin: right bottom;
}
.filters .chip-end {
  position: relative;
  top: auto;
  right: auto;
  margin: 0 0 0 10px;
  align-self: center;
}
.variant-garland { width: 148px; height: 44px; }
.section-head .variant-garland { margin-top: -14px; }
.variant-garland > .role-garland { left: 0; top: 8px; width: 142px; height: 34px; }
.variant-garland > .role-ornament { left: 60px; top: 12px; width: 22px; height: 32px; }
.variant-garland > .flake-1 { left: 8px; top: 0; width: 16px; height: 16px; }
.variant-lights { width: 118px; height: 44px; }
.section-head .variant-lights { margin-top: -16px; }
.variant-lights > .light-stack { left: 0; top: 2px; width: 96px; height: 40px; }
.variant-lights > .role-pine { left: 52px; top: 14px; width: 62px; height: 28px; }
.variant-lights > .flake-1 { left: 4px; top: 0; width: 18px; height: 18px; }
.variant-sprig { width: 88px; height: 36px; }
.section-head .variant-sprig { margin-top: -18px; }
.variant-sprig > .role-pine { left: 0; top: 8px; width: 64px; height: 26px; }
.variant-sprig > .role-ornament { left: 50px; top: 2px; width: 20px; height: 32px; }
.variant-sprig > .flake-1 { left: 2px; top: 0; width: 13px; height: 13px; }
.variant-sheaf { width: 104px; height: 56px; }
.section-head .variant-sheaf { margin-top: -46px; }
.variant-sheaf > .role-wheat { left: 0; top: 0; width: 72px; height: 56px; }
.variant-sheaf > .role-leaf { left: 56px; top: 8px; width: 46px; height: 46px; }
.variant-harvest { width: 118px; height: 56px; }
.section-head .variant-harvest { margin-top: -46px; }
.variant-harvest > .role-leaf { left: 72px; top: 2px; width: 42px; height: 50px; }
.variant-harvest > .role-pumpkin { left: 0; top: 12px; width: 54px; height: 44px; }
.variant-harvest > .role-gourd { left: 44px; top: 18px; width: 28px; height: 36px; }
.variant-grain { width: 76px; height: 52px; }
.section-head .variant-grain { margin-top: -42px; }
.variant-grain > .role-corn { left: 0; top: 0; width: 36px; height: 52px; }
.variant-grain > .role-leaf { left: 28px; top: 8px; width: 42px; height: 42px; }
.variant-eve { width: 56px; height: 40px; }
.section-head .variant-eve { margin-top: -20px; }
.variant-eve > .star-1 { left: 2px; top: 2px; width: 36px; height: 36px; }
.variant-eve > .role-spark { left: 36px; top: 0; width: 16px; height: 16px; }
.variant-pair { width: 78px; height: 42px; }
.section-head .variant-pair { margin-top: -20px; }
.variant-pair > .star-1 { left: 0; top: 2px; width: 34px; height: 34px; }
.variant-pair > .star-2 { left: 28px; top: 14px; width: 26px; height: 26px; }
.variant-pair > .role-spark { left: 56px; top: 0; width: 14px; height: 14px; }
.variant-toast { width: 48px; height: 36px; }
.variant-toast > .star-1 { left: 0; top: 0; width: 32px; height: 32px; }
.variant-toast > .role-spark { left: 28px; top: 2px; width: 14px; height: 14px; }
.variant-banner { width: 120px; height: 40px; }
.section-head .variant-banner { margin-top: -18px; }
.variant-banner > .role-star { left: 0; top: 2px; width: 34px; height: 34px; }
.variant-banner > .sheen-wrap { left: 24px; top: 8px; width: 92px; height: 26px; }
.variant-field { width: 118px; height: 40px; }
.section-head .variant-field { margin-top: -16px; }
.variant-field > .sheen-wrap { left: 0; top: 10px; width: 84px; height: 24px; }
.variant-field > .role-star { left: 70px; top: 2px; width: 32px; height: 32px; }
.variant-field > .role-spark { left: 100px; top: 0; width: 14px; height: 14px; }
.variant-medal { width: 50px; height: 36px; }
.variant-medal > .role-star { left: 0; top: 0; width: 32px; height: 32px; }
.variant-medal > .role-spark { left: 26px; top: 16px; width: 14px; height: 14px; }
.light-stack > .season-piece,
.sheen-wrap > .season-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none;
}
.sheen-wrap { overflow: hidden; }
.sheen-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, .62), transparent);
  transform: translateX(-170%);
  animation: season-sheen 5.6s ease-in-out infinite;
  pointer-events: none;
}
.season-piece.lean { transform-origin: 50% 100%; animation: season-lean 8.6s ease-in-out infinite; }
.season-piece.waft { transform-origin: 50% 88%; animation: season-waft 9.8s ease-in-out infinite; }
.season-piece.settle { transform-origin: 50% 100%; animation: season-settle 11.4s ease-in-out infinite; }
.season-piece.drift { animation: season-drift 6.2s ease-in-out infinite; }
.season-piece.drift.flake-2 { animation-name: season-drift-b; animation-duration: 7s; animation-delay: .8s; }
.season-piece.hang { transform-origin: 50% 0; animation: season-hang 4.6s ease-in-out infinite; }
.season-piece.twinkle { animation: season-twinkle 3.6s ease-in-out infinite; }
.season-piece.twinkle.star-2 { animation-delay: 1.15s; }
.season-piece.spark { animation: season-spark 3.5s ease-in-out infinite; }
.season-piece.glint { animation: season-glint 4.2s ease-in-out infinite; }
.season-piece.pop { animation: season-pop 3.8s ease-in-out infinite; }
.light-stack .on-red { animation: bulb-red 3.8s ease-in-out infinite; }
.light-stack .on-green { animation: bulb-green 3.8s ease-in-out infinite; }
.light-stack .on-gold { animation: bulb-gold 3.8s ease-in-out infinite; }
@keyframes season-lean {
  0%, 100% { transform: rotate(-3.2deg); }
  50% { transform: rotate(3.2deg); }
}
@keyframes season-waft {
  0%, 100% { transform: translate(-1px, -4px) rotate(-6deg); }
  16% { transform: translate(4px, 1px) rotate(5deg); }
  34%, 82% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes season-settle {
  0%, 70%, 100% { transform: translateY(0); }
  78% { transform: translateY(1.25px); }
  88% { transform: translateY(0); }
}
@keyframes season-drift {
  0%, 100% { transform: translate(0, 0) rotate(-7deg); }
  50% { transform: translate(2px, 3px) rotate(6deg); }
}
@keyframes season-drift-b {
  0%, 100% { transform: translate(0, 1px) rotate(8deg); }
  50% { transform: translate(-2px, 2px) rotate(-5deg); }
}
@keyframes season-hang {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@keyframes season-twinkle {
  0%, 100% { opacity: .8; transform: scale(.98); }
  46% { opacity: 1; transform: scale(1); }
  72% { opacity: .88; transform: scale(1.03); }
}
@keyframes season-spark {
  0%, 100% { opacity: .4; transform: scale(.86); }
  42% { opacity: 1; transform: scale(1); }
  58% { opacity: .55; transform: scale(.92); }
}
@keyframes season-glint {
  0%, 70%, 100% { filter: drop-shadow(0 1px 1px rgba(7, 23, 40, .28)) brightness(1); }
  82% { filter: drop-shadow(0 0 4px rgba(231, 201, 138, .9)) brightness(1.3); }
}
@keyframes season-pop {
  0%, 68%, 100% { opacity: .35; transform: scale(.75); }
  80% { opacity: 1; transform: scale(1); }
  90% { opacity: .45; transform: scale(.84); }
}
@keyframes bulb-red {
  0%, 20% { opacity: 1; }
  36%, 86% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes bulb-green {
  0%, 20% { opacity: 0; }
  36%, 54% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes bulb-gold {
  0%, 54% { opacity: 0; }
  70%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes season-sheen {
  0%, 48% { transform: translateX(-170%); }
  100% { transform: translateX(300%); }
}
@media (prefers-reduced-motion: reduce) {
  .season-piece.lean,
  .season-piece.waft,
  .season-piece.settle,
  .season-piece.drift,
  .season-piece.hang,
  .season-piece.twinkle,
  .season-piece.spark,
  .season-piece.glint,
  .season-piece.pop,
  .light-stack .on-red,
  .light-stack .on-green,
  .light-stack .on-gold,
  .sheen-wrap::after { animation: none; }
  .season-piece.spark,
  .season-piece.pop { opacity: 1; transform: none; }
  .light-stack .on-green,
  .light-stack .on-gold { opacity: 0; }
  .light-stack .on-red { opacity: 1; }
  .sheen-wrap::after { opacity: 0; }
}
@media (max-width: 640px) {
  html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 30px;
  }
  html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head h2 { grid-column: 1; grid-row: 1; }
  html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head > a { grid-column: 2; grid-row: 1; }
  html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head::after {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 8px;
  }
  html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .section-head .season-cluster {
    grid-column: 1 / -1;
    grid-row: 2;
    top: 4px;
    left: auto;
    right: 2px;
    margin-top: 0;
    transform: scale(0.82);
    transform-origin: right top;
  }
  html:is([data-season="thanksgiving"], [data-season="christmas"], [data-season="newyear"], [data-season="independence"]) .forum-group h2 { padding-right: 96px; }
  html[data-season="thanksgiving"] .forum-group h2 { padding-right: 124px; }
  html[data-season="thanksgiving"] .section-head { margin-bottom: 58px; }
}
html[data-season="thanksgiving"] .forum-group h2 .season-cluster { transform: scale(0.76); }
html[data-season="thanksgiving"] .forum-group h2 .bar-corner { top: 2px; }
html[data-season="thanksgiving"] .forum-group h2 .bar-edge { bottom: 1px; }
@media (max-width: 520px) {
  .masthead img.masthead-art {
    height: 128px;
    aspect-ratio: auto;
    opacity: .45;
    object-fit: cover;
  }
  .hero:before { background: linear-gradient(90deg, #061426ee, #06142666); }
  .welcome-photo, .forum-page .welcome::before { display: none; }
  .forum-page .welcome { padding: 15px; min-height: 0; }
  .mobile-brand { z-index: 2; }
  .avatar-photo { width: 34px; height: 34px; margin: 0; }
}

.devbar { background: #e7d5ab; color: #43371d; padding: 6px 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 12px; font-weight: 800; }
.devbar form { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.devbar button { background: transparent; border: 1px solid #8c7340; color: inherit; border-radius: 4px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.primary form.nav-logout { margin: 0; display: inline-flex; flex: 0 0 auto; min-width: 0; max-width: none; }
.primary button.nav-button, #theme-toggle { background: transparent; color: white; border: 0; border-radius: 0; font-size: 14px; font-weight: 700; line-height: 1.2; padding: 15px 12px; }
.post-body .plain { white-space: pre-wrap; }
.editor-row { grid-template-columns: minmax(0, 1fr); }
.editor-row textarea.field { min-height: 90px; }
.editor-row label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
@media (max-width: 820px) {
  .devbar { font-size: 11px; }
  .primary form.nav-logout { flex-basis: auto; margin: 0; max-width: none; }
  .primary button.nav-button, #theme-toggle { font-size: 12px; padding: 9px 8px; }
}
.format-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.format-bar button {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 4px;
  min-height: 32px;
  padding: 4px 10px;
  font-weight: 800;
}
.article-text blockquote, .snippet blockquote {
  margin: 0 0 1rem;
  padding: 8px 14px;
  border-left: 3px solid var(--gold);
  background: #f4efe4;
  color: var(--ink);
}
html[data-theme="dark"] .article-text blockquote,
html[data-theme="dark"] .snippet blockquote { background: #2a2416; color: #f3e6c4; }
.article-text ul, .article-text ol, .snippet ul, .snippet ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.article-text li, .snippet li { margin: .2rem 0; }
.snippet { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 550; line-height: 1.35; }
.snippet p { margin: 0; }
.snippet strong, .snippet b { color: var(--ink); }
.last .snippet { max-width: 28ch; }
html[data-theme="dark"] .stack-scroll { scrollbar-color: #d3a348 #16324d; }
html[data-theme="dark"] .stack-scroll::-webkit-scrollbar-track { background: #16324d; }
html[data-theme="dark"] .stack-scroll::-webkit-scrollbar-thumb {
  background: #d3a348;
  border-color: #16324d;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0; }
a.hero-edit { color: var(--gold); font-weight: 750; }
a.hero-edit:hover { color: #f7f3ea; }
a.article-card-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-style: dashed;
  border-color: var(--gold);
  background: var(--cream);
}
a.article-card-new:hover { text-decoration: none; border-color: var(--red); }
a.article-card-new h3 { color: var(--navy); }
.card-media-new {
  color: var(--navy);
  font: 700 3rem Georgia, 'Times New Roman', serif;
  background: color-mix(in srgb, var(--gold) 22%, var(--cream));
}
.card-edit { margin: 8px 0 0; }
.card-edit a { color: var(--red); font-weight: 750; text-decoration: underline; text-underline-offset: 0.15em; }
.editor-queue { margin: 0 0 10px; color: var(--muted); }
.article-workspace { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.article-workspace[data-pane="preview"] [data-editor-panel="edit"],
.article-workspace[data-pane="edit"] [data-editor-panel="preview"] { display: none; }
.editor-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-switch button {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 4px;
  min-height: 36px;
  padding: 6px 12px;
  font-weight: 750;
}
.editor-switch button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.editor-panel { min-width: 0; }
.editor-panel h2 { font-size: 1.4rem; }
.editor-field { display: grid; gap: 6px; min-width: 0; margin: 0 0 12px; font-size: 13px; font-weight: 750; }
.editor-field .field,
.editor-field textarea,
.editor-field select,
.editor-field input { max-width: 100%; }
.editor-hint, .editor-snippet { color: var(--muted); font-size: 13px; font-weight: 550; }
.editor-snippet { display: block; }
.editor-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.editor-steps li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.editor-steps li.is-done { border-color: var(--gold); color: var(--ink); }
.editor-steps li.is-current { border-color: var(--navy); background: var(--navy); color: #fff; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.editor-actions .btn { width: auto; text-decoration: none; }
.editor-next {
  display: grid;
  gap: 10px;
  max-width: 28rem;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--navy);
  border-radius: 6px;
}
.editor-next .btn { justify-self: start; width: auto; }
.editor-kicker { margin: 0; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.editor-open { margin: 0; }
.format-menu {
  position: fixed;
  z-index: 40;
  max-width: min(22rem, calc(100vw - 16px));
  padding: 6px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.format-menu[hidden] { display: none; }
.format-menu button[data-format="bold"] { font-weight: 800; }
.format-menu button[data-format="italic"] { font-style: italic; }
#format-mirror { z-index: -1; }
html[data-theme="dark"] a.article-card-new { background: var(--white); color: var(--ink); }
html[data-theme="dark"] a.article-card-new h3,
html[data-theme="dark"] .card-media-new { color: var(--gold); }
html[data-theme="dark"] .card-media-new { background: #2a2416; }
html[data-theme="dark"] .editor-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
html[data-theme="dark"] .editor-next { border-color: var(--gold); }
@media (min-width: 900px) {
  .article-workspace[data-pane="both"] {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: start;
  }
  .article-workspace[data-pane="both"] .editor-switch,
  .article-workspace[data-pane="both"] .editor-open { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .editor-actions .btn,
  .editor-next .btn,
  .editor-switch button { width: 100%; }
}
html[data-theme="dark"] .board-head,
html[data-theme="dark"] .thread-list,
html[data-theme="dark"] .paper.profile-head,
html[data-theme="dark"] .paper.profile-block { background: var(--white); color: var(--ink); }
html[data-theme="dark"] .forum-group > .thread-list { background: transparent; }
html[data-theme="dark"] .forum-group > .active-strip,
html[data-theme="dark"] .thread-cols,
html[data-theme="dark"] .thread-list .thread-row:nth-child(even) { background: #0e2438; }
html[data-theme="dark"] .thread-list .thread-row:hover { background: #1a3854; }
html[data-theme="dark"] .filters a.active { box-shadow: inset 0 0 0 1px var(--gold); }
html[data-theme="dark"] .active-label { color: var(--gold); }
html[data-theme="dark"] .role-mark { color: var(--gold); }
html[data-theme="dark"] .board-head .active-strip { background: transparent; }

.article-card.is-waiting {
  background: #e4e2db;
  border-color: #c5c3bc;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
}
.article-card.is-waiting .card-body { min-width: 0; }
.wait-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.wait-open:hover { text-decoration: none; }
.wait-open:hover .wait-title { text-decoration: underline; }
.wait-open:focus-visible { outline: 3px solid #bd8a2d; outline-offset: -3px; }
.wait-open .card-body { display: block; }
.article-card.is-waiting .wait-title {
  display: block;
  margin: 0 0 .65rem;
  color: #243246;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.article-card.is-waiting .meta { display: block; margin: 0; font-size: 13px; }
.article-card.is-waiting .card-edit { margin: 0; padding: 0 13px 12px; }
.article-card.is-waiting h3,
.article-card.is-waiting h3 a { color: #243246; overflow-wrap: anywhere; }
.article-card.is-waiting .tag,
.article-card.is-waiting .meta { color: #5c6772; }
.article-card.is-waiting .card-media {
  overflow: hidden;
  height: 120px;
  aspect-ratio: auto;
  background: #9aa1ab;
}
.article-card.is-waiting .card-media img {
  width: 100%;
  height: 120px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: blur(8px) grayscale(1);
  transform: scale(1.12);
}
.paper.is-waiting { background: #e4e2db; max-width: 100%; }
.wait-hero {
  overflow: hidden;
  border-radius: 4px;
  background: #9aa1ab;
  margin: 0 0 1rem;
  max-width: 100%;
}
.article-hero.is-waiting {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  filter: blur(12px) grayscale(1);
  transform: scale(1.08);
}
.notify-form,
.daily-subscribe {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.daily-subscribe { margin: 0; max-width: none; }
.sidebar .daily-subscribe .btn { justify-self: stretch; }
.daily-mail .notify-future { margin-bottom: 2px; }
.notify-lead { margin: 0; font-size: 13px; font-weight: 700; color: #243246; }
.notify-email { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 650; }
.notify-future {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  line-height: 1.35;
}
.notify-future input { accent-color: #0b2037; margin-top: 2px; }
.notify-form input.field,
.daily-subscribe input.field,
#publish-at { width: 100%; min-width: 0; max-width: 100%; }
.notify-form .btn,
.daily-subscribe .btn { justify-self: start; max-width: 100%; }
.unsubscribe-note { max-width: 40rem; }
html[data-theme="dark"] .article-card.is-waiting,
html[data-theme="dark"] .paper.is-waiting {
  background: #1a2836;
  border-color: #314556;
  color: #d5dee8;
}
html[data-theme="dark"] .article-card.is-waiting h3,
html[data-theme="dark"] .article-card.is-waiting h3 a,
html[data-theme="dark"] .article-card.is-waiting .wait-title,
html[data-theme="dark"] .article-card.is-waiting .notify-lead,
html[data-theme="dark"] .paper.is-waiting,
html[data-theme="dark"] .paper.is-waiting .notify-lead,
html[data-theme="dark"] .release-panel .notify-lead,
html[data-theme="dark"] .daily-mail .notify-lead { color: #d5dee8; }
html[data-theme="dark"] .article-card.is-waiting .tag,
html[data-theme="dark"] .article-card.is-waiting .meta { color: #b7c4d4; }
html[data-theme="dark"] .notify-future input { accent-color: #d3a348; }
.release-count {
  margin: 0 0 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
html[data-theme="dark"] .release-count { color: var(--gold); }
body.release-open { overflow: hidden; }
.release-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}
.release-dialog[hidden] { display: none; }
.release-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 32, 55, 0.72);
}
.release-panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 14px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.release-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 8px;
  padding-bottom: 8px;
  background: var(--white);
}
.release-panel h2 { font-size: 1.45rem; margin-bottom: .35rem; }
.release-panel .meta { margin-top: 0; }
.release-cover-wrap {
  overflow: hidden;
  height: 120px;
  margin: 0 0 12px;
  border-radius: 4px;
  background: #9aa1ab;
}
.release-cover-wrap[hidden] { display: none; }
.release-cover {
  display: block;
  width: 100%;
  height: 148px;
  max-width: none;
  object-fit: cover;
  filter: blur(12px) grayscale(1);
  transform: scale(1.15);
}
.release-panel .notify-form .btn { justify-self: stretch; width: 100%; }
@media (max-width: 520px) {
  .release-dialog { padding: 10px; }
  .release-panel {
    max-height: calc(100dvh - 20px);
    padding: 12px;
  }
  .article-card.is-waiting .wait-title { font-size: 1rem; }
  .article-card.is-waiting .card-edit { padding: 0 9px 10px; }
}
html[data-theme="dark"] .forum-fold-panel > .forum-row:nth-child(odd) { background: transparent; }
html[data-theme="dark"] .forum-fold-panel > .forum-row:nth-child(even) { background: #16324d; }
html[data-theme="dark"] .forum-fold-panel > .forum-row:hover { background: #1a3854; }
html[data-theme="dark"] .read-dot { border-color: var(--gold); background: transparent; }
html[data-theme="dark"] .read-dot.is-unread { background: var(--red); border-color: var(--red); }
html[data-theme="dark"] .forum-page > .active-strip,
html[data-theme="dark"] .board-head .active-strip { background: var(--white); color: var(--ink); }
html[data-theme="dark"] .profile-preview a { color: var(--gold); }
html[data-theme="dark"] .thread-row.is-unread { box-shadow: inset 4px 0 0 var(--red); }
.article-card.is-review {
  position: relative;
  background: var(--white);
  border-color: #e2c15a;
  min-width: 0;
  max-width: 100%;
}
.article-card.is-review .review-wash {
  position: absolute;
  inset: 0;
  background: rgba(232, 196, 64, 0.46);
  pointer-events: none;
  z-index: 2;
}
.article-card.is-review .card-body,
.article-card.is-review .card-media { position: relative; z-index: 1; min-width: 0; }
.article-card.is-review h3,
.article-card.is-review h3 a,
.article-card.is-review .tag,
.article-card.is-review .meta {
  position: relative;
  z-index: 3;
  color: #0b2037;
  overflow-wrap: anywhere;
}
.article-card.is-review .tag { color: #fff; background: var(--red); }
.review-actions { display: grid; gap: 12px; margin-top: 16px; min-width: 0; max-width: 100%; }
.review-actions .paper,
.assist-box { min-width: 0; max-width: 100%; }
.assist-box { margin-bottom: 16px; }
@media (max-width: 520px) {
  .article-card.is-review h3 { font-size: 1rem; }
  .review-actions .btn { max-width: 100%; }
}

.settings-form { min-width: 0; }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: start;
}
.settings-grid .editor-field { margin: 0; }
.settings-span { grid-column: 1 / -1; }
.settings-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #a9afba;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.settings-check input {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin: 0.15rem 0 0;
  accent-color: #9f181d;
}
.settings-key { margin: 12px 0 0; }
.settings-key.is-set { color: var(--navy); font-weight: 750; }
html[data-theme="dark"] .settings-check {
  background: #0d2236;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .settings-check input { accent-color: var(--gold); }
html[data-theme="dark"] .settings-key.is-set { color: var(--gold); }
@media (max-width: 420px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-span { grid-column: auto; }
}

:root {
  --action-motion: 200ms;
  --action-ease: ease;
}
html,
body,
.paper,
.panel,
.article-card,
.field,
input.field,
textarea.field,
select.field {
  transition: background-color var(--action-motion) var(--action-ease), color var(--action-motion) var(--action-ease), border-color var(--action-motion) var(--action-ease);
}
.btn,
.nav-button,
#theme-toggle,
.editor-switch button,
.user-cell,
.user-drawer-close,
.format-menu button,
.primary .nav-inner > a,
.read-dot,
.wait-open {
  transition: opacity var(--action-motion) var(--action-ease), transform var(--action-motion) var(--action-ease), background-color var(--action-motion) var(--action-ease), color var(--action-motion) var(--action-ease), border-color var(--action-motion) var(--action-ease), box-shadow var(--action-motion) var(--action-ease);
}
.btn:active,
.nav-button:active,
#theme-toggle:active,
.editor-switch button:active,
.user-drawer-close:active {
  transform: translateY(1px);
}
.fold-mark { transition: transform var(--action-motion) var(--action-ease); }
.forum-children {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--action-motion) var(--action-ease), opacity var(--action-motion) var(--action-ease), visibility 0s linear 0s;
}
.forum-group.is-collapsed > .forum-children {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: grid-template-rows var(--action-motion) var(--action-ease), opacity var(--action-motion) var(--action-ease), visibility 0s linear var(--action-motion);
}
.forum-fold-panel { min-height: 0; overflow: hidden; }
.format-menu,
.profile-preview {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--action-motion) var(--action-ease), transform var(--action-motion) var(--action-ease), display var(--action-motion) var(--action-ease) allow-discrete;
}
.format-menu[hidden],
.profile-preview[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(6px);
}
.release-dialog {
  opacity: 1;
  transition: opacity var(--action-motion) var(--action-ease), display var(--action-motion) var(--action-ease) allow-discrete;
}
.release-dialog[hidden] { opacity: 0; }
.release-panel {
  transform: translateY(0);
  transition: transform var(--action-motion) var(--action-ease);
}
.release-dialog[hidden] .release-panel { transform: translateY(8px); }
.user-drawer,
.user-drawer-backdrop {
  opacity: 1;
  transition: opacity var(--action-motion) var(--action-ease), transform var(--action-motion) var(--action-ease), display var(--action-motion) var(--action-ease) allow-discrete;
}
.user-drawer { transform: translateX(0); }
.user-drawer[hidden],
.user-drawer-backdrop[hidden] {
  opacity: 0;
}
.user-drawer[hidden] { transform: translateX(16px); }
[data-editor-panel] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--action-motion) var(--action-ease), transform var(--action-motion) var(--action-ease), display var(--action-motion) var(--action-ease) allow-discrete;
}
.article-workspace[data-pane="preview"] [data-editor-panel="edit"],
.article-workspace[data-pane="edit"] [data-editor-panel="preview"] {
  opacity: 0;
  transform: translateY(6px);
}
.article-card.is-review .review-wash {
  opacity: 1;
  transition: opacity var(--action-motion) var(--action-ease);
}
#notice:not(:empty),
.thread-toast {
  animation: ugn-action-in var(--action-motion) var(--action-ease);
}
.thread-toast.is-closing {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--action-motion) var(--action-ease), transform var(--action-motion) var(--action-ease);
}
@keyframes ugn-action-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@starting-style {
  .format-menu,
  .profile-preview,
  .release-dialog,
  .user-drawer,
  .user-drawer-backdrop { opacity: 0; }
  .format-menu,
  .profile-preview { transform: translateY(6px); }
  .release-dialog .release-panel { transform: translateY(8px); }
  .user-drawer { transform: translateX(16px); }
  .article-card.is-review .review-wash { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html,
  body,
  .paper,
  .panel,
  .article-card,
  .field,
  input.field,
  textarea.field,
  select.field,
  .btn,
  .nav-button,
  #theme-toggle,
  .editor-switch button,
  .forum-fold,
  .fold-mark,
  .read-dot,
  .user-cell,
  .user-drawer,
  .user-drawer-backdrop,
  .user-drawer-close,
  .format-menu,
  .profile-preview,
  .release-dialog,
  .release-panel,
  .thread-toast,
  #notice,
  .article-card.is-review .review-wash,
  .forum-children,
  [data-editor-panel],
  .primary .nav-inner > a,
  .settings-check,
  .wait-open {
    animation: none;
    transition: none;
  }
  .forum-group.is-collapsed > .forum-children { display: none; }
  .btn:active,
  .nav-button:active,
  #theme-toggle:active,
  .editor-switch button:active,
  .user-drawer-close:active {
    opacity: 1;
    transform: none;
  }
}
