/* Homepage radar concept — built from the selected visual direction. */

.home-page {
  --radar-bg: #061316;
  --radar-panel: #09191c;
  --radar-line: rgba(115, 176, 170, 0.25);
  --radar-line-soft: rgba(115, 176, 170, 0.13);
  --radar-teal: #60d5c6;
  --radar-teal-strong: #36c4b3;
  --radar-gold: #f4bd47;
  --radar-text: #f4f6f3;
  --radar-muted: #98a7a6;
  background: var(--radar-bg) !important;
  color: var(--radar-text);
  color-scheme: dark;
}

.home-page::before {
  background:
    radial-gradient(circle at 32% 33%, rgba(39, 150, 139, 0.1), transparent 31%),
    linear-gradient(rgba(5, 17, 20, 0.96), rgba(5, 17, 20, 0.98)) !important;
}

.home-page .background-texture {
  opacity: 0.22;
}

.home-page .topnav {
  position: relative;
  z-index: 100;
  min-height: 86px;
  padding: 0 64px;
  border-bottom: 1px solid var(--radar-line);
  background: rgba(5, 16, 19, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: none;
}

.home-page .brand {
  position: relative;
  padding-inline-start: 22px;
  color: var(--radar-text) !important;
  font-size: 21px;
  font-weight: 750;
  white-space: nowrap;
}

.home-page .brand::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--radar-teal);
  box-shadow: 0 0 0 4px rgba(96, 213, 198, 0.14), 0 0 18px rgba(96, 213, 198, 0.52);
  transform: translateY(-50%);
}

.home-page .nav-links {
  align-items: stretch;
  gap: 9px;
  min-width: 0;
}

.home-page .nav-links a,
.home-page #themeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: auto 0;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b6c0be !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  box-shadow: none !important;
}

.home-page .nav-links a:hover,
.home-page #themeToggle:hover {
  color: var(--radar-text) !important;
  border-color: var(--radar-line);
}

.home-page .nav-links a.active {
  position: relative;
  border-color: var(--radar-line);
  color: var(--radar-text) !important;
}

.home-page .nav-links a.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -2px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--radar-gold);
}

.home-page main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.home-radar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 61% 39%;
  grid-template-areas: "visual copy";
  min-height: 635px;
  direction: ltr;
  overflow: hidden;
  border-bottom: 1px solid var(--radar-line);
  background:
    radial-gradient(circle at 33% 52%, rgba(23, 139, 129, 0.09), transparent 36%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.18), rgba(5, 15, 18, 0.78));
}

.home-radar-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 50px clamp(54px, 5vw, 74px) 42px 24px;
  text-align: right;
  direction: rtl;
}

.home-radar-eyebrow {
  margin: 0 0 20px;
  color: var(--radar-teal);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-radar-copy h1 {
  margin: 0;
  color: var(--radar-text) !important;
  font-size: clamp(47px, 3.8vw, 58px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.055em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
}

.home-radar-tagline {
  margin: 15px 0 0;
  color: #b9c3c1;
  font-size: clamp(27px, 2.4vw, 37px);
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: -0.05em;
}

.home-radar-lede {
  max-width: 550px;
  margin: 20px 0 0;
  color: var(--radar-muted);
  font-size: 18px;
  font-weight: 430;
  line-height: 2;
}

.home-radar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 222px;
  min-height: 66px;
  margin-top: 38px;
  padding: 0 25px;
  border: 1px solid rgba(129, 244, 227, 0.54);
  border-radius: 13px;
  color: #062522 !important;
  background: linear-gradient(135deg, #6addcc 0%, #56cdbd 100%);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(42, 186, 168, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.home-radar-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 54px rgba(42, 186, 168, 0.26);
}

.home-radar-cta img,
.home-radar-all-updates img,
.home-radar-summary-title img,
.home-metric-icon {
  filter: brightness(0) saturate(100%) invert(77%) sepia(26%) saturate(833%) hue-rotate(119deg) brightness(96%) contrast(92%);
}

.home-radar-cta img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(11%) sepia(16%) saturate(1465%) hue-rotate(124deg) brightness(90%) contrast(102%);
}

.home-radar-visual {
  grid-area: visual;
  position: relative;
  min-width: 0;
  min-height: 635px;
  direction: rtl;
}

body.home-page .dream-map-stage {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(34deg, transparent 48.8%, rgba(67, 227, 208, 0.1) 49.1%, rgba(67, 227, 208, 0.21) 49.45%, transparent 49.9%),
    repeating-radial-gradient(circle at 49% 51%, transparent 0 63px, rgba(82, 187, 176, 0.13) 64px 65px),
    linear-gradient(rgba(83, 173, 165, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 173, 165, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 49% 51%, rgba(47, 176, 162, 0.13), rgba(5, 19, 22, 0.16) 49%, transparent 70%);
  background-size: auto, auto, 82px 82px, 82px 82px, auto;
  box-shadow: none;
}

.home-page .dream-map-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 49%;
  top: 51%;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: conic-gradient(from 229deg, transparent 0 77%, rgba(93, 232, 216, 0.08) 80%, rgba(83, 230, 212, 0.5) 89%, transparent 90% 100%);
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: home-radar-sweep 9s linear infinite;
  mask-image: radial-gradient(circle, #000 0 72%, transparent 73%);
}

@keyframes home-radar-sweep {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.home-page .geo-map-aura {
  opacity: 0.32;
  filter: blur(22px);
}

.home-page .iran-map.domain-map {
  position: absolute;
  z-index: 2;
  inset: auto !important;
  top: -30% !important;
  bottom: auto !important;
  left: 18% !important;
  width: 60% !important;
  height: 130% !important;
  max-width: none;
  opacity: 0.94;
  filter: drop-shadow(0 0 22px rgba(68, 192, 179, 0.2));
}

.home-page .iran-map-shadow {
  fill: rgba(16, 42, 42, 0.66);
  filter: none;
}

.home-page .iran-map-shape {
  fill: rgba(12, 42, 42, 0.76);
  stroke: rgba(211, 193, 116, 0.63);
  stroke-width: 2;
}

.home-page .domain-surface.water {
  fill: rgba(30, 99, 91, 0.13);
}

.home-page .domain-label-layer,
.home-page .home-map-hud,
.home-page .home-map-signal-rail {
  display: none !important;
}

.home-page .geo-connection-layer {
  z-index: 3;
  opacity: 0.62;
}

.home-page .domain-connection {
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  opacity: 0.78;
}

.home-page .map-issue-layer {
  z-index: 16;
}

.home-page .map-issue-button {
  width: 30px;
  height: 30px;
  z-index: 1;
}

.home-page .map-issue-button:hover,
.home-page .map-issue-button:focus-visible,
.home-page .map-issue-button.active {
  z-index: 20;
}

.home-page .map-issue-dot {
  width: 8px;
  height: 8px;
  border: 2px solid #9df1e6;
  background: #3bc7b7;
  box-shadow: 0 0 0 4px rgba(58, 199, 183, 0.13), 0 0 18px rgba(58, 199, 183, 0.8);
}

.home-page .map-issue-button.active .map-issue-dot {
  width: 12px;
  height: 12px;
  background: #baf7ed;
  box-shadow: 0 0 0 6px rgba(58, 199, 183, 0.16), 0 0 24px rgba(58, 199, 183, 0.95);
}

.home-page .map-issue-title {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 10px);
  display: block;
  width: max-content;
  max-width: min(260px, 34vw);
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--issue-accent) 56%, rgba(255, 255, 255, 0.18));
  border-radius: 10px;
  color: #f4f6f3;
  background: rgba(5, 18, 21, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  text-align: right;
  transform: translate(50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.home-page .map-issue-button--left-title .map-issue-title {
  right: auto;
  left: 50%;
  transform: translate(-50%, 6px);
}

.home-page .map-issue-button:hover .map-issue-title,
.home-page .map-issue-button:focus-visible .map-issue-title,
.home-page .map-issue-button.active .map-issue-title {
  opacity: 1;
  transform: translate(50%, 0);
}

.home-page .map-issue-button--left-title:hover .map-issue-title,
.home-page .map-issue-button--left-title:focus-visible .map-issue-title,
.home-page .map-issue-button--left-title.active .map-issue-title {
  transform: translate(-50%, 0);
}

.home-priority-stack {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}

.home-priority-card {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  width: 230px;
  min-height: 112px;
  padding: 17px 17px 14px;
  border: 1px solid rgba(244, 189, 71, 0.46);
  border-radius: 12px;
  color: var(--radar-text) !important;
  background: rgba(6, 19, 22, 0.91);
  box-shadow: 0 17px 40px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-priority-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 189, 71, 0.82);
  background: rgba(9, 29, 31, 0.96);
}

.home-priority-card strong {
  min-width: 0;
  font-size: 16px;
  font-weight: 790;
  line-height: 1.55;
}

.home-priority-rank {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #27210e;
  background: var(--radar-gold);
  font-size: 15px;
  font-weight: 900;
}

.home-priority-meta,
.home-priority-card b {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 560;
}

.home-priority-meta {
  color: #9ba9a7;
}

.home-priority-card b {
  color: var(--radar-gold);
}

.home-priority-card--1 { top: 19%; left: 5%; }
.home-priority-card--2 { top: 40%; right: 3%; }
.home-priority-card--3 { bottom: 15%; left: 13%; }

.home-radar-summary {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(390px, 42%) 1fr;
  grid-template-areas: "updates metrics";
  min-height: 307px;
  direction: ltr;
  border-bottom: 1px solid var(--radar-line);
  background: rgba(4, 16, 19, 0.97);
}

.home-radar-updates {
  grid-area: updates;
  direction: rtl;
  padding: 39px 54px 25px;
  border-right: 1px solid var(--radar-line);
}

.home-radar-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.home-radar-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-radar-summary-title img {
  width: 22px;
  height: 22px;
}

.home-radar-summary-title h2 {
  margin: 0;
  color: var(--radar-teal);
  font-size: 18px;
  font-weight: 790;
}

.home-radar-update-count {
  display: none;
}

.home-radar-updates .home-live-feed {
  display: block;
}

.home-radar-updates .home-live-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 11px;
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--radar-line-soft);
  border-radius: 0;
  color: #b3bfbd !important;
  background: transparent;
  text-decoration: none;
}

.home-radar-updates .home-live-item:nth-child(n + 4) {
  display: none;
}

.home-radar-updates .home-live-item:hover {
  color: var(--radar-text) !important;
  background: rgba(87, 209, 193, 0.035);
}

.home-radar-updates .home-live-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--radar-teal);
  box-shadow: 0 0 0 3px rgba(96, 213, 198, 0.09);
}

.home-radar-updates .home-live-item:nth-child(2) .home-live-dot {
  background: var(--radar-gold);
  box-shadow: 0 0 0 3px rgba(244, 189, 71, 0.1);
}

.home-radar-updates .home-live-item > div {
  min-width: 0;
}

.home-radar-updates .home-live-item-top {
  display: flex;
  float: left;
  margin-inline-start: 14px;
}

.home-radar-updates .home-live-item-top b {
  display: none;
}

.home-radar-updates .home-live-item-top time {
  color: #73817f;
  font-size: 11px;
  white-space: nowrap;
}

.home-radar-updates .home-live-item > div > strong {
  display: block;
  overflow: hidden;
  color: #aebbb9;
  font-size: 12px;
  font-weight: 570;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-radar-updates .home-live-item p {
  display: none;
}

.home-radar-all-updates {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--radar-teal) !important;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.home-radar-all-updates img {
  width: 14px;
  height: 14px;
}

.home-radar-metrics {
  grid-area: metrics;
  direction: rtl;
  display: flex;
  align-items: center;
  padding: 34px 45px 21px;
}

.home-radar-metrics .home-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  gap: 0;
}

.home-radar-metrics .home-metric-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 166px;
  padding: 0 15px;
  border: 0;
  border-inline-start: 1px solid var(--radar-line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.home-radar-metrics .home-metric-cell:first-child {
  border-inline-start: 0;
}

.home-metric-icon {
  width: 33px;
  height: 33px;
  margin-bottom: 13px;
  opacity: 0.78;
}

.home-radar-metrics .home-metric-value {
  color: var(--radar-text);
  font-size: 38px;
  font-weight: 880;
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-radar-metrics .home-metric-label {
  margin-top: 13px;
  color: #e4e8e5;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
  white-space: nowrap;
}

.home-radar-metrics .home-metric-desc {
  margin-top: 8px;
  color: #7f8d8b;
  font-size: 11px;
  line-height: 1.5;
}

.home-radar-refresh {
  grid-area: refresh;
  direction: rtl;
  align-self: end;
  margin: 0;
  padding: 12px 54px 14px;
  border-top: 1px solid var(--radar-line);
  color: #778582;
  font-size: 11px;
  text-align: center;
}

.home-radar-refresh span {
  display: inline-block;
  width: 1px;
  height: 13px;
  margin: 0 14px -3px;
  background: var(--radar-line);
}

.home-page .home-featured,
.home-page .home-shortcuts {
  max-width: 1240px;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .dream-map-stage::before {
    animation: none;
  }
}

/* Keep the simplified map responsive after the legacy mobile rules above. */
@media (max-width: 640px) {
  .home-radar-visual {
    min-height: 650px;
  }

  .home-page .iran-map.domain-map {
    top: 9% !important;
    left: 5% !important;
    width: 90% !important;
    height: 47% !important;
  }
}

/* Calm Iran map: one clear map, small markers, one detail panel. */
body.home-page .dream-map-stage {
  isolation: isolate;
  background:
    linear-gradient(rgba(83, 173, 165, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 173, 165, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 51% 34%, rgba(47, 176, 162, 0.16), transparent 47%),
    linear-gradient(145deg, #07191c 0%, #051215 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.home-page .dream-map-stage::before {
  left: 51%;
  top: 34%;
  width: min(56vw, 520px);
  height: min(56vw, 520px);
  border: 1px solid rgba(96, 213, 198, 0.08);
  background: radial-gradient(circle, rgba(96, 213, 198, 0.1), transparent 68%);
  animation: none;
  mask-image: none;
}

.home-page .geo-map-aura,
.home-page .geo-connection-layer,
.home-page .home-priority-stack,
.home-page .home-map-signal-rail {
  display: none !important;
}

.home-map-title {
  position: absolute;
  z-index: 22;
  inset-block-start: 24px;
  right: 26px;
  display: grid;
  gap: 5px;
  direction: rtl;
  text-align: right;
  pointer-events: none;
}

.home-map-title strong {
  color: #eef4f1;
  font-size: 17px;
  font-weight: 820;
}

.home-map-title span {
  color: #8fa09d;
  font-size: 11px;
  font-weight: 560;
}

.home-page .iran-map.domain-map {
  top: 6% !important;
  left: 14% !important;
  width: 72% !important;
  height: 54% !important;
  opacity: 1;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.28));
}

.home-page .iran-map-shadow {
  fill: rgba(6, 24, 26, 0.7);
}

.home-page .iran-map-shape {
  fill: rgba(28, 94, 86, 0.2);
  stroke: rgba(116, 226, 210, 0.72);
  stroke-width: 2.4;
}

.home-page .domain-surface.water {
  fill: rgba(34, 124, 112, 0.14);
}

.home-page .map-issue-layer {
  z-index: 18;
}

.home-page .map-issue-button {
  width: 28px;
  height: 28px;
}

.home-page .map-issue-pulse {
  display: none;
}

.home-page .map-issue-button.active {
  z-index: 19;
}

.home-page .map-issue-title,
.home-page .map-issue-button.active .map-issue-title {
  opacity: 0;
}

.home-page .map-issue-button:hover .map-issue-title,
.home-page .map-issue-button:focus-visible .map-issue-title {
  opacity: 1;
}

.home-page .home-map-hud {
  display: grid !important;
  grid-template-columns: minmax(128px, 0.8fr) minmax(190px, 1.45fr) minmax(190px, 1fr) 94px;
  align-items: center;
  gap: 14px;
  top: auto;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: auto;
  padding: 14px;
  border: 1px solid rgba(115, 176, 170, 0.27);
  border-radius: 16px;
  background: rgba(7, 24, 27, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.home-page .home-map-hud-head {
  display: grid;
  justify-content: stretch;
  gap: 6px;
  margin: 0;
}

.home-page .home-map-hud-head span,
.home-page .home-map-hud-head b {
  max-width: 100%;
  justify-content: center;
}

.home-page .home-map-hud > strong {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.75;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-page .home-map-hud-grid {
  gap: 6px;
}

.home-page .home-map-hud-grid span {
  padding: 8px 4px;
  border-radius: 10px;
}

.home-page .home-map-hud-grid b {
  font-size: 15px;
}

.home-page .home-map-hud a {
  min-height: 42px;
  margin: 0;
  padding-inline: 10px;
  border-radius: 10px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .home-page .home-map-hud {
    grid-template-columns: minmax(120px, 0.7fr) minmax(190px, 1.4fr) 94px;
  }

  .home-page .home-map-hud-grid {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-radar-visual {
    min-height: 650px;
  }

  .home-map-title {
    inset-block-start: 18px;
    inset-inline: 18px;
    text-align: center;
  }

  .home-map-title strong {
    font-size: 16px;
  }

  .home-page .iran-map.domain-map {
    top: 9% !important;
    left: 5% !important;
    width: 90% !important;
    height: 47% !important;
  }

  .home-page .map-issue-button {
    width: 38px;
    height: 38px;
  }

  .home-page .map-issue-title,
  .home-page .map-issue-button:hover .map-issue-title,
  .home-page .map-issue-button:focus-visible .map-issue-title {
    display: none;
  }

  .home-page .home-map-hud {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 14px;
  }

  .home-page .home-map-hud-head {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-page .home-map-hud > strong {
    grid-column: 1;
    grid-row: 2;
    -webkit-line-clamp: 3;
  }

  .home-page .home-map-hud a {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
  }
}

@media (max-width: 1180px) {
  .home-page .topnav {
    padding-inline: 28px;
  }

  .home-page .nav-links {
    gap: 2px;
  }

  .home-page .nav-links a,
  .home-page #themeToggle {
    padding-inline: 9px;
    font-size: 12px;
  }

  .home-radar-copy {
    padding-inline: 40px 24px;
  }

  .home-priority-card {
    width: 205px;
  }

  .home-radar-metrics {
    padding-inline: 20px;
  }

  .home-radar-metrics .home-metric-cell {
    padding-inline: 8px;
  }
}

@media (max-width: 900px) {
  .home-page .topnav {
    min-height: 72px;
  }

  .home-page .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .home-page .nav-links::-webkit-scrollbar {
    display: none;
  }

  .home-radar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual";
  }

  .home-radar-copy {
    align-items: center;
    min-height: 450px;
    padding: 70px 28px 48px;
    text-align: center;
  }

  .home-radar-lede {
    max-width: 610px;
  }

  .home-radar-visual {
    min-height: 620px;
  }

  .home-radar-summary {
    grid-template-columns: 1fr;
    grid-template-areas:
      "metrics"
      "updates"
      "refresh";
  }

  .home-radar-updates {
    border-top: 1px solid var(--radar-line);
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .home-page .topnav {
    padding-inline: 16px;
  }

  .home-page .brand {
    font-size: 16px;
  }

  .home-radar-copy {
    min-height: 410px;
  }

  .home-radar-copy h1 {
    font-size: 41px;
  }

  .home-radar-eyebrow {
    font-size: 18px;
  }

  .home-radar-tagline {
    font-size: 25px;
  }

  .home-radar-lede {
    font-size: 15px;
  }

  .home-radar-visual {
    min-height: 570px;
  }

  .home-page .iran-map.domain-map {
    left: 9%;
    width: 82%;
  }

  .home-priority-card {
    width: 180px;
    min-height: 98px;
    padding: 12px;
  }

  .home-priority-card strong {
    font-size: 14px;
  }

  .home-priority-card--1 { left: 2%; }
  .home-priority-card--2 { right: 2%; }
  .home-priority-card--3 { left: 6%; }

  .home-radar-metrics {
    overflow-x: auto;
    padding: 28px 0;
  }

  .home-radar-metrics .home-metric-grid {
    grid-template-columns: repeat(5, 132px);
    width: max-content;
  }

  .home-radar-updates {
    padding-inline: 22px;
  }

  .home-radar-refresh {
    padding-inline: 20px;
  }
}

/* Home issue streams and compact high-signal cards. */
.home-radar-summary {
  grid-template-columns: 1fr;
  grid-template-areas:
    "metrics"
    "streams"
    "refresh";
  min-height: 0;
  direction: rtl;
}

.home-radar-metrics {
  min-height: 228px;
  border-bottom: 1px solid var(--radar-line);
}

.home-issue-streams {
  grid-area: streams;
  padding: 44px clamp(24px, 4.8vw, 72px) 50px;
  background:
    radial-gradient(circle at 78% 0%, rgba(73, 196, 180, 0.08), transparent 30%),
    rgba(5, 17, 20, 0.97);
}

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

.home-streams-head p {
  margin: 0 0 5px;
  color: var(--radar-teal);
  font-size: 12px;
  font-weight: 780;
}

.home-streams-head h2 {
  margin: 0;
  color: var(--radar-text);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 860;
  letter-spacing: -0.04em;
}

.home-streams-head > span {
  color: #768582;
  font-size: 12px;
  font-weight: 650;
}

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

.home-issue-stream {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--radar-line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 35, 38, 0.88), rgba(6, 20, 23, 0.96));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

.home-issue-stream::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stream-accent, var(--radar-teal)), transparent);
  opacity: 0.72;
}

.home-issue-stream--created { --stream-accent: #5fd5c5; }
.home-issue-stream--updated { --stream-accent: #f1bd5a; }
.home-issue-stream--trending { --stream-accent: #8a9df6; }

.home-issue-stream > header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 15px 17px 13px;
  border-bottom: 1px solid var(--radar-line-soft);
}

.home-issue-stream > header > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--stream-accent) 34%, var(--radar-line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--stream-accent) 10%, transparent);
}

.home-issue-stream > header img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(78%) sepia(22%) saturate(850%) hue-rotate(118deg) brightness(95%) contrast(91%);
}

.home-issue-stream--updated > header img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(57%) saturate(667%) hue-rotate(352deg) brightness(98%) contrast(93%);
}

.home-issue-stream--trending > header img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(24%) saturate(1380%) hue-rotate(194deg) brightness(97%) contrast(98%);
}

.home-issue-stream h3 {
  margin: 0;
  color: #e9eeeb;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.home-issue-stream ol {
  list-style: none;
  margin: 0;
  padding: 5px 15px 3px;
}

.home-issue-stream li + li {
  border-top: 1px solid var(--radar-line-soft);
}

.home-issue-stream li a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  color: inherit !important;
  text-decoration: none;
}

.home-issue-stream li a:hover strong {
  color: var(--stream-accent);
}

.home-stream-index {
  color: color-mix(in srgb, var(--stream-accent) 82%, #fff);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.home-stream-copy {
  min-width: 0;
}

.home-stream-copy strong,
.home-stream-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stream-copy strong {
  color: #dce4e1;
  font-size: 13px;
  font-weight: 710;
  line-height: 1.6;
  transition: color 160ms ease;
}

.home-stream-copy small {
  margin-top: 2px;
  color: #71807d;
  font-size: 10.5px;
  font-weight: 540;
}

.home-issue-stream li a > img,
.home-stream-more img {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  filter: brightness(0) saturate(100%) invert(77%) sepia(26%) saturate(833%) hue-rotate(119deg) brightness(96%) contrast(92%);
}

.home-stream-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 49px;
  padding: 0 18px;
  border-top: 1px solid var(--radar-line-soft);
  color: color-mix(in srgb, var(--stream-accent) 86%, #fff) !important;
  background: rgba(255, 255, 255, 0.018);
  font-size: 11.5px;
  font-weight: 760;
  text-decoration: none;
}

.home-stream-more:hover {
  background: color-mix(in srgb, var(--stream-accent) 5%, transparent);
}

.home-page .home-featured {
  width: min(1240px, calc(100% - 48px));
  margin: 58px auto 76px;
  padding: 0;
}

.home-page .home-featured .issues-header {
  margin-bottom: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--radar-line);
}

.home-page .home-featured .eyebrow {
  color: var(--radar-teal);
}

.home-page .home-featured h2 {
  color: var(--radar-text);
  font-size: clamp(30px, 3.2vw, 42px);
}

.home-page .home-featured .summary {
  color: var(--radar-muted);
}

.home-page .home-featured-more {
  min-height: 44px;
  padding-inline: 18px;
  border-color: var(--radar-line);
  color: var(--radar-text) !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

.home-page .home-featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-page .home-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 126px 58px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 15px;
  min-height: 142px;
  padding: 0 18px 0 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--home-feature-accent) 24%, var(--radar-line));
  border-radius: 16px;
  color: var(--radar-text) !important;
  background: linear-gradient(145deg, rgba(13, 30, 32, 0.9), rgba(7, 20, 22, 0.98));
  box-shadow: none;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-page .home-feature-card::before {
  display: none;
}

.home-page .home-feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--home-feature-accent) 52%, var(--radar-line));
  background: linear-gradient(145deg, rgba(15, 37, 39, 0.96), rgba(8, 23, 25, 1));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.home-feature-media {
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  background: #0d2022;
}

.home-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.04) brightness(0.72);
  transition: transform 240ms ease, filter 240ms ease;
}

.home-feature-card:hover .home-feature-media img {
  transform: scale(1.035);
  filter: saturate(0.82) contrast(1.06) brightness(0.8);
}

.home-feature-rank {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding-inline: 10px;
  border-inline-end: 1px solid var(--radar-line-soft);
}

.home-feature-rank b {
  color: color-mix(in srgb, var(--home-feature-accent) 74%, #fff);
  font-size: 27px;
  font-weight: 860;
  line-height: 1;
}

.home-feature-rank small {
  color: #71807d;
  font-size: 9px;
  font-weight: 650;
}

.home-feature-copy {
  display: block;
  min-width: 0;
}

.home-page .home-feature-meta {
  display: block;
  margin: 0 0 7px;
  color: color-mix(in srgb, var(--home-feature-accent) 62%, #9ba9a7);
  font-size: 10.5px;
  font-weight: 700;
}

.home-feature-copy > strong {
  display: block;
  color: #eef2ef;
  font-size: 18px;
  font-weight: 810;
  line-height: 1.6;
  white-space: normal;
}

.home-feature-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.home-feature-stats b {
  padding: 3px 7px;
  border: 1px solid var(--radar-line-soft);
  border-radius: 999px;
  color: #788784;
  background: rgba(255, 255, 255, 0.018);
  font-size: 9.5px;
  font-weight: 590;
}

.home-feature-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.45;
  filter: brightness(0) saturate(100%) invert(77%) sepia(26%) saturate(833%) hue-rotate(119deg) brightness(96%) contrast(92%);
}

@media (max-width: 900px) {
  .home-issue-stream-grid,
  .home-page .home-featured-grid {
    grid-template-columns: 1fr;
  }

  .home-radar-metrics {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .home-issue-streams {
    padding-inline: 16px;
  }

  .home-streams-head {
    align-items: start;
  }

  .home-streams-head > span {
    display: none;
  }

  .home-page .home-featured {
    width: calc(100% - 32px);
    margin-block: 42px 58px;
  }

  .home-page .home-featured .issues-header {
    display: grid;
    gap: 16px;
  }

  .home-page .home-featured-more {
    justify-self: start;
  }

  .home-page .home-feature-card {
    grid-template-columns: 88px 42px minmax(0, 1fr) 14px;
    gap: 10px;
    min-height: 124px;
    padding-inline-start: 12px;
  }

  .home-feature-rank b {
    font-size: 22px;
  }

  .home-feature-copy > strong {
    font-size: 15px;
  }

  .home-feature-stats b:nth-child(3) {
    display: none;
  }
}

/* Mobile readability and motion safeguards. */
.home-page {
  --radar-muted: #b4c0be;
}

.home-page .home-feature-rank small,
.home-page .home-feature-stats b,
.home-page .home-metric-cell small,
.home-page .home-radar-summary-item p {
  color: #a8b6b3;
}

@media (max-width: 640px) {
  .home-radar-copy {
    padding-inline: 24px;
  }

  .home-radar-lede {
    font-size: 15px;
    line-height: 1.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .dream-map-stage::before,
  .home-page .home-radar-metrics::before {
    animation: none !important;
  }

  .home-page .home-radar-cta,
  .home-page .home-feature-card,
  .home-page .home-feature-media img {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .home-radar-visual {
    min-height: 650px;
  }

  .home-page .iran-map.domain-map {
    top: 9% !important;
    left: 5% !important;
    width: 90% !important;
    height: 47% !important;
  }
}
