/* Janus Media — site shell */

:root {
  --bg: #0a0908;
  --panel: #14110f;
  --panel-elevated: #1c1816;
  --line: rgba(249, 115, 22, 0.28);
  --orange: #f97316;
  --orange-hot: #fb923c;
  --text: #fef3c7;
  --muted: #a8a29e;
  --blue-tab: #60a5fa;
  --red-tab: #f87171;
  --witness: #fbbf24;
  --max: 72rem;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", var(--font);
}

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

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(
    ellipse 120% 80% at 50% -20%,
    #1a1208 0%,
    var(--bg) 55%
  );
  min-height: 100vh;
}

a {
  color: var(--orange-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--orange);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: #000;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.site-brand:hover {
  color: var(--text);
}
.site-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-tab) 50%, var(--red-tab) 50%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}
.site-brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.site-nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav-links a:hover {
  color: var(--text);
}

/* —— Sections —— */
.site-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.site-section + .site-section {
  padding-top: 0;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

/* —— Hero —— */
.hero {
  padding: 5rem 1.25rem 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange-hot);
}
.hero-deck {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}
.btn-primary {
  background: var(--orange);
  color: #0a0908;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hot);
  color: #0a0908;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-hot);
}

/* —— Mission —— */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.mission-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.25rem;
}
.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.mission-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.mission-pullquote {
  margin: 2rem 0 0;
  padding: 1.5rem 1.25rem;
  border-left: 3px solid var(--orange);
  background: var(--panel);
  border-radius: 0 10px 10px 0;
  font-size: 1.05rem;
  color: var(--text);
}

/* —— Compare shell —— */
.compare-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1rem 1rem;
  margin-top: 1.5rem;
}
.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}
.compare-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.compare-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.search-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.search-wrap {
  position: relative;
  flex: 1 1 20rem;
  max-width: 28rem;
}
.search-input {
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.search-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}
.clear-search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}
.clear-search-btn:hover {
  color: var(--text);
}
.filter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.filter-select {
  padding: 0.45rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
}
.filter-select:focus {
  outline: none;
  border-color: var(--orange);
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox-label input {
  accent-color: var(--orange);
}

/* —— Matched grid —— */
.matched-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.matched-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 8px;
}
.matched-row.confidence-high {
  border-left: 3px solid var(--blue-tab);
}
.matched-row.confidence-medium {
  border-left: 3px solid var(--witness);
}
.matched-row.confidence-low {
  border-left: 3px solid var(--red-tab);
}
.matched-row.confidence-very-low {
  border-left: 3px solid #6b7280;
}

.matched-headline {
  min-width: 0;
}
.matched-headline.left {
  border-left: 3px solid var(--blue-tab);
  padding-left: 0.75rem;
}
.matched-headline.right {
  border-left: 3px solid var(--red-tab);
  padding-left: 0.75rem;
}
.matched-headline a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}
.matched-headline a:hover {
  color: var(--orange-hot);
  text-decoration: underline;
}
.headline-summary {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.headline-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.headline-meta .source {
  font-weight: 600;
  color: var(--muted);
}
.match-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 4.5rem;
  align-self: stretch;
  padding: 0.25rem;
}
.confidence-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.confidence-badge.high {
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue-tab);
}
.confidence-badge.medium {
  background: rgba(251, 191, 36, 0.15);
  color: var(--witness);
}
.confidence-badge.low {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red-tab);
}
.confidence-badge.very-low {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}
.similarity-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-hot);
}
.match-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: flex-start;
  margin-top: 0.25rem;
}
.match-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.2rem 0;
  transition:
    color 0.15s,
    transform 0.1s;
}
.match-actions button:hover {
  color: var(--text);
  transform: scale(1.1);
}
.match-actions .bookmark-button.bookmarked {
  color: var(--orange);
}

/* —— Loading / empty / checking states —— */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.error-state p {
  margin: 0 0 0.75rem;
}

.checking-feeds-banner {
  padding: 0.75rem 1rem;
  background: var(--panel-elevated);
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.checking-feeds-banner p {
  margin: 0;
}

/* —— Archive —— */
.archive-toggle {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.archive-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.archive-section {
  margin-top: 1rem;
}
.archive-section .matched-row {
  opacity: 0.85;
}

.partners-section {
  padding: 3rem 1.25rem;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 1.5rem auto 0;
}
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.partner-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.partner-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.partner-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.partner-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}
.partner-card-cta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
}

/* ===== Shared layout bits ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.section-lede {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  background: var(--panel);
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

/* ===== New page shared styles ===== */
.page-hero {
  padding: 3rem 1.25rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.page-hero-lede {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46rem;
}

/* ===== Tactics page ===== */
.mech-family {
  margin-bottom: 1.75rem;
}
.mech-family-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--orange-hot);
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.taxes-sub {
  font-weight: 600;
  color: var(--text);
}
.axis-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.72rem;
}
.axis-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.axis-tag-legal {
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--blue-tab);
}
.axis-tag-origin {
  border-color: rgba(248, 113, 113, 0.35);
}
.axis-tag-related {
  cursor: pointer;
  border-style: dashed;
}
.axis-tag-related:hover {
  color: var(--text);
  border-color: var(--orange);
}
.axis-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.axis-filter-chip {
  padding: 0.3rem 0.75rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}
.axis-filter-chip.active {
  border-color: var(--orange);
  color: var(--text);
  background: color-mix(in srgb, var(--orange) 12%, var(--panel-elevated));
}
.scale-legend {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.scale-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.scale-def {
  flex: 1 1 18rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}
.scale-ind {
  flex: 1 1 18rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}
.legal-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  border: 1px dashed rgba(168, 162, 158, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.tactics-scale {
  padding: 2rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}

.tactics-axes {
  padding: 2rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.axis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.axis-tab {
  padding: 0.4rem 0.9rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.axis-tab:hover {
  border-color: var(--orange);
  color: var(--text);
}
.axis-tab.active {
  border-color: var(--orange);
  color: var(--text);
  background: color-mix(in srgb, var(--orange) 12%, var(--panel-elevated));
}
.axis-panel {
  display: grid;
  gap: 0.75rem;
}
.axis-entry {
  padding: 1rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.axis-entry-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.axis-entry-id {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  font-family: monospace;
}
.axis-entry-name {
  font-weight: 700;
  font-size: 1rem;
}
.severity-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.severity-s0 {
  background: #166534;
  color: #fff;
}
.severity-s1 {
  background: #854d0e;
  color: #fff;
}
.severity-s2 {
  background: #b45309;
  color: #fff;
}
.severity-s3 {
  background: #c2410c;
  color: #fff;
}
.severity-s4 {
  background: #dc2626;
  color: #fff;
}
.axis-entry-def {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.axis-entry-cites {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

.tactics-protocol {
  padding: 2rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.protocol-list {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.protocol-list li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.tactics-biblio {
  padding: 2rem 1.25rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}
.biblio-item {
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: var(--panel);
}
.biblio-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.biblio-item p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Checklist page ===== */
.checklist-section {
  padding: 2rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.checklist-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.check-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--orange);
  cursor: pointer;
}
.check-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}
.check-label strong {
  color: var(--text);
  font-size: 0.95rem;
}
.check-label span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.check-result {
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.check-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0.5rem 0;
}
.check-advice {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.checklist-context {
  padding: 0 1.25rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}

/* ===== Analyze page ===== */
.analyze-section {
  padding: 2rem 1.25rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}
.analyze-input-wrap {
  margin-bottom: 2rem;
}
.analyze-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.analyze-input {
  width: 100%;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: monospace;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}
.analyze-input:focus {
  outline: none;
  border-color: var(--orange);
}
.analyze-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.analyze-result {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.analyze-output {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}
.analyze-disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.analyze-pending {
  padding: 2rem;
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.analyze-pending-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Weather page ===== */
.weather-section {
  padding: 2rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.weather-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.weather-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.weather-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}
.weather-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weather-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.weather-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.weather-table th {
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.weather-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.weather-row-empty td {
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}
.risk-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-right: 0.4rem;
}
.risk-low {
  background: #22c55e;
}
.risk-medium {
  background: #f59e0b;
}
.risk-high {
  background: #ef4444;
}

.weather-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
.weather-legend-item {
  display: flex;
  align-items: center;
}

.weather-ends {
  padding: 0 1.25rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
}
.ends-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.end-card {
  padding: 1.25rem;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.end-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
}
.end-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Responsive additions ===== */
@media (max-width: 680px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .weather-summary {
    grid-template-columns: 1fr;
  }
  .ends-grid {
    grid-template-columns: 1fr;
  }
  .checklist-grid {
    grid-template-columns: 1fr;
  }
  .axis-tabs {
    flex-direction: column;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .axis-filter {
    flex-direction: column;
  }
}

/* ===== Blog / Dispatch ===== */
.blog-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.method-step {
  background: var(--panel);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 8px;
  padding: 1.25rem;
}
.method-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.method-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.method-step p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.blog-posts {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}
.blog-post {
  background: var(--panel);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.post-header {
  margin-bottom: 1.5rem;
}
.post-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.byline-link {
  color: var(--witness);
  text-decoration: none;
  font-weight: 600;
}
.byline-link:hover {
  text-decoration: underline;
}
.post-body {
  display: grid;
  gap: 1.5rem;
}
.post-claims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}
.post-claims .post-evidence {
  grid-column: 1;
}
.post-claims .post-counterevidence {
  grid-column: 2;
}
.post-claims .post-conclusion {
  grid-column: 1 / -1;
}
.post-section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin: 0 0 0.75rem;
  display: inline-block;
}
.post-claim {
  border-left: 3px solid var(--blue-tab);
}
.post-claim .post-section-label {
  color: var(--blue-tab);
}
.post-claim-side {
  font-size: 0.72rem;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 0.5rem;
}
.post-evidence {
  border-left: 3px solid var(--orange);
}
.post-evidence .post-section-label {
  color: var(--orange);
}
.post-counterevidence {
  border-left: 3px solid var(--red-tab);
}
.post-counterevidence .post-section-label {
  color: var(--red-tab);
}
.post-conclusion {
  border-left: 3px solid var(--witness);
}
.post-conclusion .post-section-label {
  color: var(--witness);
}
.post-claim,
.post-evidence,
.post-counterevidence,
.post-conclusion {
  padding: 0.5rem 1rem;
  background: var(--panel-elevated);
  border-radius: 0 6px 6px 0;
}
.post-section p {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}
.post-section p:last-child {
  margin-bottom: 0;
}
.post-lede {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  border-left: 3px solid var(--border);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0 0 2rem;
}
.post-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  border: 1px dashed rgba(168, 162, 158, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin: 0.5rem 0 0;
}
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(249, 115, 22, 0.12);
}
.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.post-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-hot);
}
.post-discuss {
  color: var(--blue-tab);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.post-discuss:hover {
  text-decoration: underline;
}
.blog-placeholder {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px dashed rgba(168, 162, 158, 0.25);
  border-radius: 8px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.blog-about {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--panel);
  border-radius: 8px;
}
@media (max-width: 680px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
  .post-claims {
    grid-template-columns: 1fr;
  }
  .blog-post {
    padding: 1.25rem;
  }
  .post-title {
    font-size: 1.25rem;
  }
}
