:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f6f7;
  --surface-strong: #eceef0;
  --text: #111214;
  --muted: #696d73;
  --line: #dedfe2;
  --header: rgba(255, 255, 255, 0.94);
  --red: #ea3f32;
  --blue: #1769e0;
  --green: #16845b;
  --yellow: #f1bd36;
  --violet: #7458c8;
  --ink: #17191d;
  --shadow: 0 10px 34px rgba(19, 23, 31, 0.08);
  --container: min(1440px, calc(100vw - 64px));
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101214;
  --surface: #171a1e;
  --surface-strong: #20242a;
  --text: #f5f5f4;
  --muted: #a2a7ae;
  --line: #2b3037;
  --header: rgba(16, 18, 20, 0.94);
  --ink: #08090a;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.65;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

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

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

svg { width: 18px; height: 18px; stroke-width: 1.8; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 50%;
  font-size: 12px;
}

.brand-name { font-size: 21px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
}

.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.header-actions,
.scroll-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.avatar-button,
.bookmark-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.bookmark-button:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.avatar-button {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.editorial-shell,
.idea-section {
  width: var(--container);
  margin: 0 auto;
}

.editorial-shell { padding: 46px 0 60px; }

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

.compact-heading { margin-bottom: 18px; }

.section-heading h1,
.section-heading h2,
.trending-header h2 {
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  display: block;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(460px, 1.7fr) minmax(250px, 0.86fr);
  gap: 18px;
  min-height: 580px;
}

.brief-stack,
.topic-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}

.brief-card,
.discussion-card,
.image-topic,
.feature-story {
  border-radius: 8px;
  overflow: hidden;
}

.brief-card {
  position: relative;
  min-height: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brief-card.coral { background: #ed4d3e; color: #fff; }
.brief-card.ink { background: #17191d; color: #fff; }

.brief-index {
  margin-bottom: auto;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.22;
}

.brief-card h2 {
  margin: 12px 0 8px;
  width: 100%;
  font-size: 20px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
}

.brief-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brief-card > a:last-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  flex-shrink: 0;
}

span.tag, a.tag, div.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  color: #111;
  background: white;
  font-size: 11px;
  font-weight: 700;
}

.tag-light { color: #111; background: rgba(255, 255, 255, 0.92); }
.tag-dark { color: white; background: rgba(255, 255, 255, 0.14); }

.feature-story {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1.55fr) auto;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-story > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.feature-copy {
  padding: 26px 28px 24px;
  background: var(--bg);
}

.feature-copy .tag { color: white; background: var(--red); }

.feature-copy h2 {
  margin: 10px 0 10px;
  max-width: 22ch;
  font-size: clamp(25px, 2.3vw, 38px);
  line-height: 1.18;
}

.feature-copy > p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 14px;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.feature-meta span + span::before {
  content: "·";
  margin-right: 12px;
}

.feature-meta .bookmark-button { margin-left: auto; }

.image-topic {
  position: relative;
  min-height: 0;
  color: white;
  background: #222;
}

.image-topic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.image-topic > div {
  position: absolute;
  inset: auto 20px 20px;
}

.image-topic h2 {
  margin: 10px 0 5px;
  font-size: 22px;
  line-height: 1.28;
}

.image-topic p { margin: 0; color: rgba(255,255,255,.75); font-size: 12px; }

.discussion-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #dff1e8;
  color: #102018;
}

.discussion-topline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}

.discussion-topline span:last-child { margin-left: auto; color: #4c6559; }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14a66b;
  box-shadow: 0 0 0 4px rgba(20, 166, 107, 0.14);
}

.discussion-card h2 {
  margin: 18px 0 auto;
  font-size: 24px;
  line-height: 1.3;
}

.faces { display: flex; align-items: center; margin-top: 18px; }

.faces span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid #dff1e8;
  border-radius: 50%;
  color: white;
  background: var(--face);
  font-size: 10px;
  font-weight: 700;
}

.faces span:first-child { margin-left: 0; }

.text-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  color: #102018;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.content-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-layout {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 280px;
  gap: 42px;
}

.category-rail {
  align-self: start;
  position: sticky;
  top: 94px;
  padding: 42px 0;
  display: grid;
  gap: 6px;
}

.category-button {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.category-button:hover { color: var(--text); background: var(--surface); }
.category-button.active { color: var(--text); background: var(--surface-strong); font-weight: 700; }

.feed-column {
  min-width: 0;
  padding: 42px 0 64px;
}

.feed-heading { margin-bottom: 6px; }

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented-control button {
  min-width: 50px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.segmented-control button.active {
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.feed-item {
  min-height: 194px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feed-item[hidden] { display: none; }

.feed-copy { min-width: 0; display: flex; flex-direction: column; }

.feed-meta,
.feed-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.feed-meta span:first-child { color: var(--red); font-weight: 700; }

.feed-meta span + span::before { content: "·"; margin-right: 12px; color: var(--muted); }

.feed-item h3 {
  margin: 9px 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.feed-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.feed-footer { margin-top: auto; padding-top: 14px; }
.feed-footer span { display: inline-flex; align-items: center; gap: 4px; }
.feed-footer svg { width: 14px; height: 14px; }

.feed-item > img,
.document-thumb {
  align-self: center;
  width: 210px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface);
}

.document-thumb {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: #f4f1ea;
}

.document-thumb span { height: 7px; border-radius: 2px; background: #b7aea0; }
.document-thumb span:nth-child(1) { width: 45%; height: 13px; background: var(--red); }
.document-thumb span:nth-child(3) { width: 78%; }
.document-thumb span:nth-child(5) { width: 62%; }

.trending-rail {
  padding: 42px 0 64px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.trending-header { margin-bottom: 20px; }

.trend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trend-list li {
  position: relative;
  min-height: 92px;
  padding: 18px 0 18px 42px;
  border-top: 1px solid var(--line);
}

.trend-list li > span {
  position: absolute;
  top: 17px;
  left: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.trend-list a { display: block; font-weight: 650; line-height: 1.45; }
.trend-list small { display: block; margin-top: 6px; color: var(--muted); }

.newsletter-block {
  margin-top: 30px;
  padding: 22px;
  border-radius: 8px;
  color: #111;
  background: #f0c94a;
}

.newsletter-block h3 { margin: 12px 0 2px; font-size: 19px; }
.newsletter-block p { margin: 0 0 16px; color: rgba(17,17,17,.66); font-size: 12px; }

.newsletter-block form {
  height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  background: white;
  border-radius: 5px;
  overflow: hidden;
}

.newsletter-block input { min-width: 0; padding: 0 10px; border: 0; color: #111; outline: none; font-size: 12px; }
.newsletter-block button { display: grid; place-items: center; border: 0; color: white; background: #111; cursor: pointer; }

.template-band { padding: 58px 0 64px; background: var(--surface); }
.band-inner { width: var(--container); margin: 0 auto; }

.template-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.template-scroller::-webkit-scrollbar { display: none; }

.template-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  scroll-snap-align: start;
  border-radius: 8px;
  color: white;
}

.template-card.blue { background: var(--blue); }
.template-card.red { background: #d84234; }
.template-card.green { background: var(--green); }
.template-card.yellow { color: #181818; background: var(--yellow); }
.template-card.violet { background: var(--violet); }

.template-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 62px;
  border-radius: 8px;
  color: currentColor;
  background: rgba(255,255,255,.15);
}

.template-icon svg { width: 34px; height: 34px; }
.template-card > span { font-size: 11px; font-weight: 700; opacity: .75; }
.template-card h3 { margin: 7px 0 5px; font-size: 22px; line-height: 1.3; }
.template-card p { margin: 0; max-width: 29ch; color: currentColor; opacity: .74; font-size: 12px; }

.template-card .bookmark-button {
  position: absolute;
  top: 18px;
  right: 18px;
  color: currentColor;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}

.template-card.yellow .bookmark-button { border-color: rgba(17,17,17,.25); }
.bookmark-button.saved svg { fill: currentColor; }

.idea-section { padding: 64px 0 80px; }

.section-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }

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

.idea-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.idea-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.idea-card > img,
.color-visual {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.color-visual { display: grid; place-items: center; }
.color-visual svg { width: 56px; height: 56px; }
.red-visual { color: white; background: #e44838; }
.blue-visual { color: white; background: #2866d6; }

.idea-card > div:last-child { padding: 18px; }
.idea-card span { color: var(--red); font-size: 11px; font-weight: 750; }
.idea-card h3 { margin: 5px 0; font-size: 18px; line-height: 1.4; }
.idea-card p { margin: 0; color: var(--muted); font-size: 12px; }

.site-footer {
  width: var(--container);
  min-height: 150px;
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.footer-brand + p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; color: var(--muted); font-size: 12px; }
.photo-credit { justify-self: end; margin: 0; color: var(--muted); font-size: 11px; }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 24px 24px;
  background: rgba(10, 12, 15, 0.68);
  backdrop-filter: blur(12px);
}

.search-overlay.open { display: flex; }

.search-panel {
  width: min(720px, 100%);
  max-height: 76vh;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: var(--bg);
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.search-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search-panel-header h2 { margin: 2px 0 0; font-size: 24px; }

.search-input-wrap {
  height: 52px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.search-input-wrap input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-input-wrap kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--bg); font-size: 10px; }
.search-count { margin: 16px 0 8px; color: var(--muted); font-size: 12px; }

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.search-result .result-type { flex: 0 0 58px; color: var(--red); font-size: 11px; font-weight: 700; }
.search-result strong { font-size: 14px; }
.search-result svg { margin-left: auto; color: var(--muted); }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 6px;
  color: white;
  background: #111;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reusable Utility & Layout Classes */
.page-title { margin: 2px 0 0; font-size: 26px; line-height: 1.25; }
.page-desc { margin: 0; color: var(--muted); font-size: 13px; }
.btn-block { width: 100%; justify-content: center; margin-top: 24px; border: 1px solid var(--line); }
.btn-primary { padding: 8px 16px; border: none; border-radius: 6px; background: var(--ink); color: white; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; }
.btn-secondary { padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; }
.btn-large { padding: 12px 24px; font-size: 14px; border-radius: 6px; }

/* Filter Bar & Controls */
.filter-bar { display: flex; gap: 12px; margin-bottom: 32px; overflow-x: auto; padding-bottom: 8px; }
.filter-button { padding: 6px 16px; border: 1px solid var(--line); border-radius: 32px; background: transparent; font-size: 13px; cursor: pointer; color: var(--text); }
.filter-button.active { background: var(--ink); color: white; }
.filter-select-group { display: flex; gap: 24px; width: 100%; padding: 16px; background: var(--surface); border-radius: 8px; margin-top: 8px; }
.filter-col { display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.filter-select { padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg); color: var(--text); outline: none; }
.search-input-group { display: flex; gap: 8px; width: 100%; }
.search-input-group .search-field { flex: 1; min-width: 0; }

/* Grids */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.feature-item { padding: 24px; background: var(--surface); border-radius: 8px; }
.feature-title { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.feature-desc { font-size: 14px; margin: 0; color: var(--muted); }

/* Detail Pages Layout */
.article-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; }
.template-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 64px; }
.idea-detail-layout { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) 300px; 
  gap: 64px; 
  max-width: var(--container, 1200px); 
  margin: 0 auto; 
  padding: 40px 24px; 
}
.idea-detail-layout > .back-link-wrapper,
.idea-detail-layout > .detail-header-wrapper {
  grid-column: 1 / -1;
}
.idea-detail-layout > .featured-image-wrapper,
.idea-detail-layout > .article-detail-body,
.idea-detail-layout > .comments-wrapper,
.idea-detail-layout > .idea-post-nav {
  grid-column: 1;
}
.idea-detail-layout > .detail-sidebar {
  grid-column: 2;
  grid-row: 2 / span 4;
}
/* Comment Form Styling */
.comments-area label {
  display: block;
  margin-bottom: 8px;
}
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg-primary);
  color: var(--text);
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
}
.comments-area textarea {
  min-height: 120px;
  resize: vertical;
}

.comments-section-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.comments-section-container .comments-area {
  max-width: 720px;
}

.article-detail-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-detail-body h2 { font-size: 24px; margin: 40px 0 20px; }
.article-detail-body h3 { font-size: 18px; margin: 32px 0 16px; }
.article-detail-body p { margin-bottom: 24px; }
.article-detail-body ul, .article-detail-body ol { padding-left: 24px; margin-bottom: 24px; }
.article-detail-body li { margin-bottom: 8px; }
.detail-header { margin-bottom: 48px; }
.detail-title { font-size: 36px; line-height: 1.3; margin: 0 0 16px; letter-spacing: -0.5px; }
.detail-meta-row { display: flex; align-items: center; gap: 12px; }
.detail-sidebar { align-self: start; position: sticky; top: 100px; }
.sidebar-box { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin-bottom: 32px; }

/* Scorecard & Checklists */
.scorecard-item { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.scorecard-label { color: var(--muted); }
.scorecard-value { font-weight: 700; }
.checklist-item { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }

/* Community & Feed Layout Fixes */
.composer-box { margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.composer-input { width: 100%; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.event-block { background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 22px; border-radius: 8px; margin-top: 30px; }
.event-block h3 { font-size: 16px; margin: 12px 0 2px; }
.event-block p { color: var(--muted); font-size: 12px; margin: 0 0 16px; }

/* Hero Section */
.hero-section { width: var(--container); max-width: 720px; margin: 0 auto; padding: 80px 0 120px; }
.hero-title { font-size: 42px; margin: 0 0 32px; line-height: 1.2; letter-spacing: -0.5px; }

/* Feed item layout fixes for items without images */
.feed-item.no-image { grid-template-columns: 1fr; }

/* Detail Top Link */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.back-link-wrapper, .detail-header-wrapper { grid-column: 1 / -1; }

@media (max-width: 1180px) {
  :root { --container: min(1120px, calc(100vw - 40px)); }
  .editorial-grid { grid-template-columns: 220px minmax(420px, 1fr); }
  .topic-stack { display: none; }
  .content-layout { grid-template-columns: 132px minmax(0, 1fr) 250px; gap: 28px; }
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --container: calc(100vw - 32px); }
  .header-inner { gap: 20px; }
  .main-nav { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .editorial-grid { grid-template-columns: 1fr; min-height: auto; }
  .brief-stack { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .brief-card { min-height: 280px; }
  .feature-story { min-height: 580px; }
  .content-layout, .article-detail-layout, .template-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .idea-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .idea-detail-layout > * { grid-column: 1 !important; grid-row: auto !important; }
  .category-rail {
    position: sticky;
    top: 64px;
    z-index: 20;
    grid-template-columns: repeat(6, max-content);
    gap: 4px;
    padding: 10px 0;
    overflow-x: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .category-rail::-webkit-scrollbar { display: none; }
  .category-button { width: auto; padding: 0 13px; }
  .feed-column { padding-top: 24px; }
  .trending-rail { display: none; }
  .site-footer { grid-template-columns: 1fr auto; }
  .photo-credit { display: none; }
}

@media (max-width: 640px) {
  :root { --container: calc(100vw - 24px); }
  .site-header { height: 58px; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .brand-name { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 13px; }
  .header-actions .avatar-button { display: none; }
  .icon-button { width: 34px; height: 34px; }
  #themeToggle { display: none; }
  .editorial-shell { padding: 30px 0 42px; }
  .compact-heading p { display: none; }
  .section-heading h1,
  .section-heading h2 { font-size: 22px; }
  .brief-stack { grid-template-columns: 1fr; }
  .brief-card { min-height: 240px; padding: 20px; }
  .brief-card:nth-child(2) { display: none; }
  .feature-story { min-height: 520px; grid-template-rows: 260px auto; }
  .feature-copy { padding: 22px 20px; }
  .feature-copy h2 { font-size: 26px; }
  .content-layout { width: 100%; }
  .category-rail { padding-left: 12px; padding-right: 12px; }
  .feed-column { width: var(--container); margin: 0 auto; }
  .segmented-control { display: none; }
  .feed-item { min-height: 0; grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .feed-item > img,
  .document-thumb { order: -1; width: 100%; aspect-ratio: 16 / 9; }
  .feed-item h3 { font-size: 19px; }
  .template-band { padding: 44px 0 50px; }
  .template-scroller { grid-auto-columns: 78vw; }
  .template-card { min-height: 280px; }
  .scroll-actions { display: none; }
  .idea-section { padding: 50px 0 60px; }
  .idea-grid { grid-template-columns: 1fr; }
  .idea-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); min-height: 130px; }
  .idea-card > img,
  .idea-card > .color-visual { width: 130px; height: 130px; object-fit: cover; aspect-ratio: auto; }
  .idea-card > div:last-child { align-self: center; padding: 16px; }
  .idea-card h3 { font-size: 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; }
  .site-footer nav { flex-wrap: wrap; }
  .search-overlay { padding: 0; align-items: stretch; }
  .search-panel { width: 100%; max-height: none; min-height: 100%; border: 0; border-radius: 0; padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* WordPress Standard Classes & Nav Additions */
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: inherit; align-items: center; }
.main-nav .nav-list { gap: 26px; }
.main-nav .menu-item a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.main-nav .menu-item a:hover { color: var(--text); }
.main-nav .menu-item.current-menu-item > a, .main-nav .menu-item.current_page_item > a { color: var(--text); }
.site-footer .nav-list { gap: 24px; font-size: 13px; font-weight: 500; }
.site-footer .nav-list a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.site-footer .nav-list a:hover { color: var(--text); }

/* Block Alignments & Basic WP Classes */
.alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (min-width: 1440px) { .alignwide { margin-left: calc(50% - 720px); margin-right: calc(50% - 720px); max-width: 1440px; width: 1440px; } }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }
.wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.wp-caption-text { text-align: center; font-size: 13px; color: var(--muted); margin-top: 0.5em; }
.gallery-caption { text-align: center; font-size: 13px; color: var(--muted); }
.bypostauthor { display: block; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Archive and Comments specific styling */
.page-links { clear: both; margin: 1.5em 0; }
.pagination-container { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.pagination { display: flex; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 6px; text-decoration: none; transition: all 0.2s ease; }
.pagination .page-numbers:hover { background-color: var(--surface); color: var(--text); }
.pagination .page-numbers.current { background-color: var(--text); color: var(--bg); }
.comment-list .comment { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.comment-list .comment:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 14px; color: var(--text); }
.comment-metadata { font-size: 12px; color: var(--muted); }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { font-size: 14px; line-height: 1.6; color: var(--text); }
.comment-reply-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; }

/* Structural additions for generic listings and single pages */
.generic-listing-shell { max-width: var(--container); margin: 0 auto; padding: 64px 24px 80px; }
.generic-content-layout { display: flex; justify-content: center; }
.generic-listing-shell .feed-column { width: 100%; max-width: 720px; }
.generic-listing-shell .page-header { margin-bottom: 40px; text-align: center; }
.generic-listing-shell .page-title { font-size: 28px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
.generic-listing-shell .archive-description { font-size: 16px; color: var(--muted); }
.generic-page-shell { max-width: 800px; margin: 0 auto; padding: 64px 24px 80px; }
.page-article-layout { background: var(--surface); padding: 40px; border-radius: 12px; box-sizing: border-box; }

/* Single Post Layout Updates */
.article-detail-layout { display: flex; gap: 48px; max-width: 1024px; margin: 0 auto; padding: 64px 24px 80px; align-items: flex-start; }
@media (max-width: 1024px) { .article-detail-layout { flex-direction: column; } }
.detail-main-content { flex: 1; min-width: 0; max-width: 720px; width: 100%; }
.detail-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 120px; }
@media (max-width: 1024px) { .detail-sidebar { width: 100%; position: static; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; } }
.back-link-wrapper { position: fixed; top: 120px; left: calc(50% - 600px); }
@media (max-width: 1440px) { .back-link-wrapper { display: none; } }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: var(--text); }
.icon-small { width: 14px; height: 14px; }
.detail-meta-top { margin-bottom: 16px; }
.detail-meta-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.author-avatar { width: 40px; height: 40px; font-size: 14px; background: var(--ink); border-color: var(--ink); }
.author-name { font-size: 14px; font-weight: 700; }
.updated-date { font-size: 12px; color: var(--muted); }
.featured-image { margin: 32px 0; border-radius: 8px; overflow: hidden; }
.featured-img-fluid { width: 100%; height: auto; display: block; }
.post-tags-container { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.cat-links { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.post-tags-list { display: flex; gap: 8px; flex-wrap: wrap; }
.sidebar-heading { font-size: 14px; margin: 0 0 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.toc-nav { display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--muted); }
.toc-item { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.toc-item:hover,
.toc-item:focus-visible { color: var(--text); }
.toc-level-3 { padding-left: 12px; }
.related-content-container { margin-top: 40px; }

/* Related Posts */
.related-posts-list { display: flex; flex-direction: column; gap: 12px; }
.related-post-link { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text); display: block; }
.related-empty { font-size: 13px; color: var(--muted); }

/* Comments */
.comments-area { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments-title { font-size: 20px; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.no-comments { margin-top: 24px; color: var(--muted); }

/* 404 & Empty State Links */
.not-found-links { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Search Form */
.search-form-container { margin-bottom: 32px; width: 100%; }
.search-form-container form { width: 100%; position: relative; }
.search-form-container input[type="search"] { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; outline: none; background: transparent; color: var(--text); }
.search-form-container input[type="search"]:focus { border-color: var(--text); }

/* Header/Footer Navigation */
.site-footer nav { display: block; }

/* Editor Content Responsiveness */
.editor-content .alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.editor-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (min-width: 1024px) {
    .editor-content .alignwide { margin-left: -100px; margin-right: -100px; max-width: calc(100% + 200px); width: calc(100% + 200px); }
    .editor-content .alignfull { margin-left: -200px; margin-right: -200px; max-width: calc(100% + 400px); width: calc(100% + 400px); }
}
@media (max-width: 390px) {
    .editor-content .alignwide, .editor-content .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; width: 100%; }
}

/* Question Library Styles */
.question-detail .icon-sm { width: 14px; height: 14px; }
.mb-16 { margin-bottom: 16px; }
.avatar-lg { width: 40px; height: 40px; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.avatar-red { background: var(--red); border-color: var(--red); color: #fff; }
.author-name { font-size: 14px; font-weight: 700; color: var(--text); }
.author-date { font-size: 12px; color: var(--muted); }
.detail-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 16px; }
.related-questions-box { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.related-title { font-size: 14px; margin: 0 0 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.related-link { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; text-decoration: none; color: var(--text); transition: color 0.2s; }
.related-link:hover { color: var(--blue); }
.sidebar-box { margin: 24px 0; padding: 16px 20px; background: var(--bg-alt); border-radius: 8px; border-left: 4px solid var(--blue); }

/* Template Specific Additions */
.template-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 16px; height: 16px; }
.icon-green { color: var(--green); }
.template-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.template-icon-large {
  margin: 0;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.template-icon-blue { background: var(--blue-bg, #e8f0fe); color: var(--blue, #1769e0); }
.template-icon-red { background: var(--red-bg, #fce8e6); color: var(--red, #ea3f32); }
.template-icon-green { background: var(--green-bg, #e6f4ea); color: var(--green, #16845b); }
.template-icon-yellow { background: var(--yellow-bg, #fef7e0); color: var(--yellow, #f1bd36); }
.template-icon-violet { background: var(--violet-bg, #f3e8ff); color: var(--violet, #7458c8); }
.template-format-tag {
  border: 1px solid var(--line);
  margin-bottom: 8px;
  display: inline-block;
}
.template-detail-title {
  margin: 0;
  font-size: 32px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.break-words {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.action-box-title {
  margin: 0 0 16px;
  font-size: 18px;
}
.action-box-empty {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.action-btn {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.template-features-section { margin-top: 32px; }
.template-features-heading {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.template-features-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.template-features-list .checklist-item {
  display: flex;
  gap: 8px;
  line-height: 1.4;
}
.template-features-list .checklist-item i {
  flex-shrink: 0;
  margin-top: 3px;
}
.related-templates-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related-templates-heading {
  font-size: 14px;
  margin: 0 0 16px;
  color: var(--muted);
}
.related-template-link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-decoration: none;
}

/* Idea Validation & Detail Typography Extensions */
.validation-steps {
  padding-left: 20px;
  margin-bottom: 24px;
}
.validation-steps li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text);
}
.article-detail-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure image radius fits SSPAI style */
.featured-image-wrapper img {
  border-radius: 8px;
  border: 1px solid var(--line);
  max-width: 100%;
  height: auto;
}

/* Extracted Idea Classes */
.idea-section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
.filter-submit-col { justify-content: flex-end; }
.filter-submit-btn { margin-top: 24px; }
.idea-grid-body { margin-top: 32px; }
.empty-state-full { grid-column: 1 / -1; padding: 64px 0; text-align: center; color: var(--muted); }
.empty-icon { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; }
.back-link-icon { width: 14px; height: 14px; }
.model-tag { border: 1px solid var(--line); margin-bottom: 16px; }
.excerpt-desc { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0; }
.idea-meta-row { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 16px; }
.meta-icon { width: 12px; height: 12px; margin-right: 4px; }
.validation-h2 { margin-top: 40px; }
.scorecard-box { background: var(--bg-secondary); padding: 24px; border-radius: 8px; }
.comments-wrapper { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.idea-post-nav { margin-top: 48px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.related-ideas-wrapper { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.related-ideas-wrapper h3 { font-size: 14px; margin: 0 0 16px; color: var(--muted); }
.related-idea-link { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; text-decoration: none; color: var(--text); }

.empty-state-full-grid {
	grid-column: 1 / -1;
	padding: 64px 0;
	text-align: center;
	color: var(--muted);
}

/* Discussion & Community Styles */
.archive-discussion-band { border-bottom: none; }
.login-btn { text-decoration: none; }
.compose-btn { text-decoration: none; }
.icon-small { width: 14px; height: 14px; }
.composer-box { margin-bottom: 24px; padding: 16px; background: var(--bg-alt); border-radius: 8px; border: 1px solid var(--line); }
.composer-input { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 14px; background: var(--bg); box-sizing: border-box; }
.composer-title { margin-bottom: 12px; font-weight: 600; }
.composer-textarea { resize: vertical; margin-bottom: 16px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.composer-options { display: flex; gap: 8px; flex-wrap: wrap; }
.composer-select { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line); font-size: 12px; height: 28px; background: var(--bg); }
.archive-notice { padding: 12px; margin-bottom: 16px; border-radius: 4px; font-size: 14px; }
.notice-success { background: #d1e7dd; color: #0f5132; }
.notice-warning { background: #fff3cd; color: #664d03; }
.notice-error { background: #f8d7da; color: #842029; }
.filter-bar-archive { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { font-size: 12px; padding: 4px 8px; text-decoration: none; }
.filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.topic-nav-heading { margin-top: 16px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; }

/* Card Discussion */
.card-discussion { padding: 24px 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; }
.card-discussion-header { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.card-discussion-meta-wrap { display: flex; flex-direction: column; }
.card-discussion-author { font-size: 13px; font-weight: 700; }
.card-discussion-time { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 12px; }
.card-discussion-topic-meta { font-size: 12px; color: var(--muted); }
.card-discussion-title { margin: 0 0 8px; font-size: 18px; }
.card-discussion-title a { color: inherit; text-decoration: none; }
.card-discussion-title a:hover { text-decoration: underline; }
.card-discussion-excerpt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.card-discussion-stats { display: flex; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.stat-item { display: flex; align-items: center; gap: 4px; }

/* Avatars */
.avatar-button { width: 32px; height: 32px; font-size: 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; text-transform: uppercase; border: 1px solid transparent; }
.avatar-red { background: var(--red); color: white; border-color: var(--red); }
.avatar-blue { background: var(--blue); color: white; border-color: var(--blue); }
.avatar-green { background: var(--green); color: white; border-color: var(--green); }
.avatar-yellow { background: var(--yellow); color: #111; border-color: var(--yellow); }
.avatar-purple { background: var(--purple); color: white; border-color: var(--purple); }
.avatar-ink { background: var(--ink); color: white; border-color: var(--ink); }

/* Sidebar & Trending */
.active-members-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.empty-members { font-size: 12px; color: var(--muted); }
.event-block-title { margin: 0 0 8px; font-size: 16px; }
.event-block-excerpt { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.event-block-btn { width: 100%; text-decoration: none; text-align: center; display: block; box-sizing: border-box; }

/* Related Discussions */
.related-box { padding: 16px; background: var(--bg-alt); border-radius: 8px; border: 1px solid var(--line); margin-bottom: 24px; }
.related-title { margin: 0 0 16px; font-size: 16px; }
.related-item { display: block; text-decoration: none; color: inherit; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.related-item-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.related-item-meta { font-size: 12px; color: var(--muted); }

/* Single Discussion */
.single-discussion-layout { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; margin-bottom: 24px; }
.back-link:hover { color: var(--text); }
.single-discussion-tag { display: inline-block; padding: 4px 8px; background: var(--bg-alt); border-radius: 4px; font-size: 12px; margin-bottom: 12px; }
.single-discussion-title { font-size: 28px; margin: 0 0 16px; }
.single-discussion-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; }
.single-discussion-author-meta { display: flex; align-items: center; gap: 8px; }
.single-discussion-author-meta .avatar-button { width: 24px; height: 24px; font-size: 10px; }
.single-discussion-thumbnail { margin-bottom: 32px; border-radius: 8px; overflow: hidden; }
.single-discussion-thumbnail img.featured-image { width: 100%; height: auto; display: block; }
.single-discussion-body { font-size: 16px; line-height: 1.6; margin-bottom: 48px; }
.single-discussion-comments { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 48px; }
.single-discussion-nav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.meta-nav { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; }
.meta-nav-icon { margin-right: 4px; }
.meta-nav-icon-right { margin-left: 4px; }
.single-discussion-nav .post-title { font-weight: 600; display: block; margin-top: 4px; }
.single-discussion-nav .nav-next { text-align: right; }

/* Taxonomy Page & Active Term States */
.category-rail .category-button.active,
.filter-bar .filter-button.active,
.sort-nav a.active {
	font-weight: 600;
	background-color: var(--surface-hover);
}

.topic-nav-heading {
	font-size: 13px;
	color: var(--muted);
	margin: 16px 0 8px 12px;
	font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.composer-actions { flex-direction: column; align-items: stretch; }
	.composer-options { flex-direction: column; }
	html, body { overflow-x: hidden; }
}
.tag-link-nodecor { text-decoration: none; }
