/* ==========================================================================
   InfiniteMac (https://infinitemac.com) — Senroam.com × OG InfiniteMac Edition
   Minimalist editorial architecture inspired by senroam.com (--paper, --ink,
   --muted, --rule, --panel, quiet Georgia serif headlines, 1px hairline rules,
   transparent cards, zero rainbow clutter) paired with the original InfiniteMac
   logo & logotext and a single quiet steel-blue accent (--accent).
   ========================================================================== */

:root {
  color-scheme: dark;
  --paper: #111214;
  --page-bg: #111214;
  --panel: #18191c;
  --panel-alt: #1c1d20;
  --panel-hover: #1f2125;
  --crumb-bg: #151619;
  --code-bg: #151619;
  --ink: #f0eeea;
  --ink-secondary: #cfccc6;
  --muted: #9e9b95;
  --rule: #2b2c2f;
  --accent: #7da6d4;

  --im-blue: var(--accent);
  --im-blue-bright: var(--accent);
  --im-blue-deep: var(--rule);
  --im-cyan: var(--ink);
  --im-amber: var(--muted);
  --im-green: var(--muted);

  /* Theme-harmonized palette for preserved original vBulletin user signatures */
  --sig-blue: #6aa2dc;
  --sig-cyan: #57b8d8;
  --sig-green: #7ec699;
  --sig-red: #e06c75;
  --sig-orange: #e5a55d;
  --sig-yellow: #e5c07b;
  --sig-purple: #c678dd;

  --f-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --f-nav: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --fs-body: 0.965rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #faf9f6;
  --page-bg: #faf9f6;
  --panel: #f0eeea;
  --panel-alt: #eae7e1;
  --panel-hover: #e5e1da;
  --crumb-bg: #f3f1ed;
  --code-bg: #f3f1ed;
  --ink: #252525;
  --ink-secondary: #454440;
  --muted: #686763;
  --rule: #dedbd6;
  --accent: #396496;

  --im-blue: var(--accent);
  --im-blue-bright: var(--accent);
  --im-blue-deep: var(--rule);
  --im-cyan: var(--ink);

  --sig-blue: #2b5c8f;
  --sig-cyan: #18728f;
  --sig-green: #267347;
  --sig-red: #b03030;
  --sig-orange: #b05c0f;
  --sig-yellow: #8a6400;
  --sig-purple: #753894;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.65 var(--f-body);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code, pre {
  font-family: var(--f-mono);
  font-size: 0.875em;
}
:not(pre) > code {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  color: var(--ink-secondary);
}

.wrap {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ==========================================================================
   Masthead — Senroam.com Minimalist Header + OG InfiniteMac Logo & Logotext
   ========================================================================== */
.im-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.im-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 62px;
  padding: 0.45rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

:root:not([data-theme="light"]) .brand-logo-light { display: none; }
:root[data-theme="light"] .brand-logo-dark { display: none; }

.brand-tagline {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
  padding-left: 0.8rem;
}
.brand-tagline .bt-top {
  font: 500 0.76rem/1.25 var(--f-ui);
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
}
.brand-tagline .bt-sub {
  font: 400 0.74rem/1.25 var(--f-ui);
  color: var(--muted);
}

/* Search & Action Controls in Header */
.im-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 1 390px;
  margin-left: auto;
}

.search-box {
  position: relative;
  flex: 1;
}
.search-box input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.35rem 0.75rem 0.35rem 2rem;
  font: 400 0.85rem/1.2 var(--f-ui);
  transition: border-color 100ms ease;
}
.search-box input::placeholder {
  color: var(--muted);
}
.search-box input:focus {
  border-color: var(--accent);
  outline: none;
}
.search-box .search-ico {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}

.search-results:not([hidden]) {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 340px;
  max-height: 58vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.35rem;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.search-results a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 5px;
  color: var(--ink);
  text-decoration: none;
}
.search-results a:hover {
  background: var(--panel);
  color: var(--accent);
}
.search-results .sr-title {
  display: block;
  font: 600 0.88rem/1.3 var(--f-ui);
}
.search-results .sr-meta {
  display: block;
  font: 400 0.74rem/1.3 var(--f-mono);
  color: var(--muted);
  margin-top: 2px;
}

.tool-btn {
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font: 500 0.76rem/1 var(--f-mono);
}
.tool-btn:hover {
  border-color: var(--muted);
  color: var(--ink);
  background: var(--panel);
}

/* Minimalist Ruled Navigation Bar */
.im-globalnav-wrap {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.im-globalnav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 38px;
}
.im-globalnav::-webkit-scrollbar { display: none; }

.im-globalnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  font: 400 0.84rem/1.2 var(--f-nav);
  color: var(--muted);
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.im-globalnav a:hover {
  color: var(--ink);
}
.im-globalnav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.im-globalnav .nav-stat {
  margin-left: auto;
  font: 400 0.74rem/1 var(--f-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================================
   Quiet Breadcrumb Bar (senroam.com style)
   ========================================================================== */
.im-breadcrumb {
  margin: 1.1rem 0 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font: 400 0.82rem/1.35 var(--f-ui);
  color: var(--muted);
}
.im-breadcrumb .bc-trail {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.im-breadcrumb .bc-trail a {
  color: var(--muted);
  text-decoration: none;
}
.im-breadcrumb .bc-trail a:hover {
  color: var(--ink);
}
.im-breadcrumb .bc-sep {
  color: var(--muted);
  opacity: 0.6;
}
.im-breadcrumb .bc-current {
  color: var(--ink);
  font-weight: 500;
}
.im-breadcrumb .bc-meta {
  font: 400 0.75rem/1 var(--f-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Main Shell & Minimalist Ruled Sidebar
   ========================================================================== */
.shell {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  padding-block: 1.5rem 4rem;
}

.rail {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-right: 1.25rem;
  border-right: 1px solid var(--rule);
}
.rail-section-title {
  font: 600 0.72rem/1.2 var(--f-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 0.45rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.35rem;
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.rail-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.42rem 0.15rem;
  font: 400 0.86rem/1.3 var(--f-ui);
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
}
.rail-list li:last-child a {
  border-bottom: none;
}
.rail-list a:hover {
  color: var(--ink);
}
.rail-list a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: transparent;
  flex-shrink: 0;
  transition: border-color 90ms ease, background-color 90ms ease;
}
.rail-list a:hover .rail-dot {
  border-color: var(--ink);
}
.rail-list a[aria-current="page"] .rail-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.rail-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-count {
  font: 400 0.74rem/1 var(--f-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Homepage Hero — Senroam.com Quiet Editorial Hero + Original Splash Loop
   ========================================================================== */
.hero-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(0.5rem, 1.5vw, 1.15rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.hero-pro .hero-kicker {
  display: block;
  font: 400 0.78rem/1.3 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.hero-pro h1 {
  font: 600 clamp(1.85rem, 3.4vw, 2.55rem)/1.12 var(--f-ui);
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--ink);
  margin: 0 0 0.65rem;
}
.hero-pro .hero-lede {
  font: 400 1rem/1.58 var(--f-body);
  color: var(--muted);
  margin: 0 0 1.15rem;
  max-width: 58ch;
  text-wrap: balance;
}
.hero-Subforums {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}
.hero-Subforums span.sf-label {
  font: 600 0.75rem/1.4 var(--f-ui);
  color: var(--ink);
  margin-right: 0.15rem;
}
.sf-pill {
  font: 400 0.8rem/1.4 var(--f-ui);
  color: var(--muted);
  text-decoration: none;
}
.sf-pill + .sf-pill::before {
  content: "·";
  margin-right: 0.75rem;
  color: var(--muted);
  opacity: 0.55;
}
.sf-pill:hover {
  color: var(--accent);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1.15rem 1.1rem;
  background: radial-gradient(ellipse 68% 54% at 50% 38%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 75%);
}
.hero-visual img.hero-infinity {
  width: min(210px, 84%);
  height: auto;
  display: block;
  margin-bottom: 0.7rem;
  opacity: 0.96;
  filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--accent) 18%, transparent));
}
.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
  text-decoration: none;
}
.hero-telemetry div b {
  display: block;
  font: 600 0.98rem/1.25 var(--f-mono);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-telemetry:hover div b {
  color: var(--accent);
}
.hero-telemetry div span {
  font: 400 0.7rem/1.2 var(--f-ui);
  color: var(--muted);
}

/* ==========================================================================
   Senroam.com Minimalist Section Headers & Transparent Card Grid
   ========================================================================== */
.im-box {
  background: transparent;
  border: none;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}

.im-tcat {
  border-top: 1px solid var(--rule);
  padding: 1.1rem 0 0.85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.im-tcat h2 {
  font: 600 clamp(1.15rem, 1.8vw, 1.38rem)/1.22 var(--f-ui);
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}
.im-tcat .tcat-sub {
  font: 400 0.86rem/1.35 var(--f-ui);
  color: var(--muted);
  margin: 0;
}
.im-tcat .tcat-sub a {
  color: var(--muted);
  text-decoration: none;
}
.im-tcat .tcat-sub a:hover {
  color: var(--accent);
}

/* 9-Collection Board Grid (Senroam .region-grid / .door-card style) */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18.5rem, 100%), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.collection-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: border-color 100ms ease, background-color 100ms ease;
}
.collection-card:hover {
  border-color: var(--accent);
  background: var(--panel);
  color: var(--ink);
}
.cc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.cc-era {
  font: 400 0.73rem/1 var(--f-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cc-title {
  font: 600 1.05rem/1.28 var(--f-ui);
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.cc-title .rail-dot {
  display: none;
}
.collection-card:hover .cc-title {
  color: var(--accent);
}
.cc-desc {
  font: 400 0.85rem/1.5 var(--f-body);
  color: var(--muted);
  margin: 0;
}
.cc-stats {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--rule) 65%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 400 0.75rem/1 var(--f-mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cc-stats b {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Senroam.com Minimalist Ruled Tables & Inventory Lists
   ========================================================================== */
.im-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border-top: 1px solid var(--rule);
}
.im-table thead th {
  background: transparent;
  color: var(--muted);
  font: 500 0.72rem/1.2 var(--f-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.im-table thead th:first-child,
.im-table td:first-child {
  padding-left: 0;
}
.im-table thead th:last-child,
.im-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-right: 0;
}
.im-table tbody tr {
  border-bottom: 1px solid var(--rule);
  background: transparent;
  content-visibility: auto;
  contain-intrinsic-size: auto 76px;
}
.im-table tbody tr:hover {
  background: color-mix(in srgb, var(--panel) 65%, transparent);
}
.im-table td {
  padding: 0.8rem 0.65rem;
  vertical-align: top;
}

.row-link {
  font: 600 1rem/1.35 var(--f-ui);
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  overflow-wrap: break-word;
}
.row-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.row-sub {
  font: 400 0.86rem/1.48 var(--f-body);
  color: var(--muted);
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.row-voices {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

/* ==========================================================================
   Minimalist Hairline @Username Pills & Neutral Chips (Zero Rainbow Colors)
   ========================================================================== */
.voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  font: 400 0.75rem/1.25 var(--f-ui);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  width: max-content;
  flex-shrink: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.voice-pill:hover {
  border-color: var(--muted);
  color: var(--ink);
  background: var(--panel);
}
.voice-pill b {
  color: var(--muted);
  font-weight: 500;
}
.voice-pill.is-lead {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  color: var(--ink-secondary);
}
.voice-pill.is-lead b {
  color: var(--accent);
}

/* Quiet Monochromatic Chips (Replaces all colorful badges) */
.im-badge,
.im-badge.badge-guide,
.im-badge.badge-ref,
.im-badge.badge-dossier,
.im-badge.badge-report,
.im-badge.badge-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font: 400 0.72rem/1.25 var(--f-ui);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap !important;
  width: max-content;
  flex-shrink: 0;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
a.im-badge:hover {
  border-color: var(--muted);
  color: var(--ink);
  background: var(--panel);
}
.im-badge.badge-guide,
.im-badge.badge-dossier {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  color: var(--ink-secondary);
}

/* ==========================================================================
   Article & Member Dossier Page Layout — Unboxed Senroam Editorial Monograph
   ========================================================================== */
.dossier-card {
  background: transparent;
  border: none;
  margin-bottom: 2rem;
}

.dossier-header {
  background: transparent;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 1.25rem;
}
.dossier-header .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.dossier-header h1 {
  font: 600 clamp(1.55rem, 2.8vw, 2.15rem)/1.16 var(--f-ui);
  letter-spacing: -0.026em;
  text-wrap: balance;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.dossier-header .lede {
  font: 400 0.98rem/1.6 var(--f-body);
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}

/* Member Profile & Archive Telemetry Grid (Ruled Hairline Cells) */
.member-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.25rem;
}
.ms-cell {
  background: var(--paper);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.ms-cell b {
  font: 600 1.15rem/1.2 var(--f-mono);
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
}
.ms-cell span {
  font: 500 0.68rem/1.2 var(--f-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.ms-cell small {
  font: 400 0.73rem/1.25 var(--f-mono);
  color: var(--muted);
}

/* Preserved OSx86 Rig / Original Styled vBulletin Signature Box */
.sig-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.95rem 1.15rem;
  font: 400 0.88rem/1.6 var(--f-ui);
  color: var(--ink-secondary);
  overflow-wrap: break-word;
}
.sig-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.sig-card .im-u {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.sig-card .sig-apple {
  color: var(--sig-blue);
  font-size: 0.95em;
  margin-right: 0.1rem;
}
.sig-card .sig-sz-1 { font-size: 0.81rem; line-height: 1.55; }
.sig-card .sig-sz-2 { font-size: 0.88rem; line-height: 1.6; }
.sig-card .sig-sz-3 { font-size: 0.96rem; line-height: 1.55; }
.sig-card .sig-sz-4 { font-size: 1.04rem; line-height: 1.5; }
.sig-card .sig-sz-5 { font-size: 1.12rem; line-height: 1.45; }
.sig-card .sig-align-center { text-align: center; }
.sig-card .sig-align-left { text-align: left; }
.sig-card .sig-align-right { text-align: right; }

.rig-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font: 400 0.84rem/1.55 var(--f-mono);
  color: var(--ink-secondary);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* Telemetry & Collection Bars (Single Restrained Tone) */
.era-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0;
}
.era-bar-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 95px;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
}
.era-bar-track {
  height: 5px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.era-bar-fill {
  height: 100%;
  background: var(--accent) !important;
  border-radius: 999px;
}

/* Specification Ledger */
.spec-ledger {
  margin: 0;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  background: transparent;
  border-bottom: 1px solid var(--rule);
  font-size: 0.87rem;
}
.spec-ledger > dt,
.spec-ledger > dd {
  padding: 0.55rem 0.25rem;
  border-top: 1px solid var(--rule);
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.spec-ledger > dt:first-of-type,
.spec-ledger > dd:first-of-type {
  border-top: none;
}
.spec-ledger > dt {
  font: 500 0.74rem/1.2 var(--f-ui);
  color: var(--muted);
}

.dossier-body {
  padding: 1.5rem 0 0.5rem;
}

.prose {
  max-width: 70ch;
  color: var(--ink);
  overflow-wrap: break-word;
}
.prose p {
  margin: 0 0 1.05rem;
}
.prose h2, .prose h3 {
  font-family: var(--f-ui);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 1.65rem 0 0.55rem;
}
.prose pre {
  background: var(--code-bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  margin: 1.1rem 0;
  line-height: 1.5;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
}
.prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}
.prose blockquote cite.q-cite {
  display: block;
  font: 600 0.75rem/1.2 var(--f-ui);
  font-style: normal;
  color: var(--ink-secondary);
  margin-bottom: 0.25rem;
}
.prose ul, .prose ol {
  padding-left: 1.35rem;
  margin: 0.6rem 0 1rem;
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose .im-u {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}
.prose del {
  color: var(--muted);
}
.prose .im-indent {
  margin: 0.65rem 0 0.95rem 1.15rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--rule);
  color: var(--ink-secondary);
}
.prose hr.im-hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.25rem 0;
}
.prose pre code mark.code-hl {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule));
  border-radius: 3px;
  padding: 0 0.2rem;
  font-weight: 600;
}

/* Synthesized Community Field Notes (Ruled Minimalist Rows) */
.field-notes-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.field-note-item {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1.15rem 0.15rem;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  content-visibility: auto;
  contain-intrinsic-size: auto 110px;
}
.fn-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding-right: 0.75rem;
}
.fn-idx {
  font: 500 0.7rem/1 var(--f-mono);
  color: var(--muted);
}
.fn-date {
  font: 400 0.74rem/1.2 var(--f-mono);
  color: var(--muted);
}
.fn-reply {
  font: 400 0.73rem/1.2 var(--f-ui);
  color: var(--muted);
  margin-top: 0.1rem;
  text-decoration: none;
}
a.fn-reply:hover {
  color: var(--accent);
}

.corroborated-bar {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.im-drawer {
  background: transparent;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.im-drawer summary {
  padding: 0.75rem 0.15rem;
  cursor: pointer;
  font: 500 0.88rem/1.3 var(--f-ui);
  color: var(--muted);
}
.im-drawer summary:hover {
  color: var(--ink);
}

/* Related Articles Grid */
.related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
  gap: 0.65rem;
}
.related-grid li {
  background: transparent;
}
.related-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  height: 100%;
}
.related-grid a:hover {
  border-color: var(--accent);
  background: var(--panel);
}
.related-grid .rg-title {
  font: 600 0.9rem/1.32 var(--f-ui);
  color: var(--ink);
}
.related-grid a:hover .rg-title {
  color: var(--accent);
}
.related-grid .rg-meta {
  font: 400 0.73rem/1.2 var(--f-mono);
  color: var(--muted);
}

/* Footer */
.im-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font: 400 0.82rem/1.5 var(--f-ui);
}
.im-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.im-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.im-footer-brand img {
  height: 26px;
  width: auto;
  opacity: 0.88;
}

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 0.85rem; }
  .rail-list { flex-direction: row; flex-wrap: wrap; gap: 0.35rem 0.85rem; }
  .rail-list a { border-bottom: none; padding: 0.25rem 0; }
  .hero-pro { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
  .field-note-item, .spec-ledger, .era-bar-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .fn-meta { border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: 0.45rem; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
