:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-soft: #fbfbfd;
  --panel-deep: #f2f2f7;
  --green: #248a3d;
  --green-bg: rgba(52, 199, 89, 0.12);
  --amber: #b26a00;
  --amber-bg: rgba(255, 149, 0, 0.14);
  --red: #d70015;
  --red-bg: rgba(255, 59, 48, 0.12);
  --gray: #8e8e93;
  --gray-bg: rgba(142, 142, 147, 0.14);
  --blue: #0066cc;
  --blue-bg: rgba(0, 122, 255, 0.12);
  --cyan: #0071a4;
  --purple: #8e3ec4;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  --soft-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    linear-gradient(rgba(29, 29, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 24px 24px, 24px 24px;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

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

.top-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(24px) saturate(1.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.site-nav,
main,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.brand strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand-copy {
  min-width: 0;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links > a {
  min-width: 96px;
}

.nav-links a,
.button,
.language-toggle button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.nav-links > a {
  min-height: 34px;
  gap: 6px;
  padding: 0 10px;
  color: #4d5965;
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
}

.nav-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
}

.nav-links > a[data-nav-kind="hbm"] {
  border-color: rgba(62, 88, 124, 0.18);
  background: rgba(62, 88, 124, 0.075);
  color: #415a79;
}

.nav-links > a[data-nav-kind="daily"] {
  border-color: rgba(73, 105, 70, 0.18);
  background: rgba(73, 105, 70, 0.075);
  color: #496946;
}

.nav-links > a[data-nav-kind="telegram"] {
  border-color: rgba(56, 111, 142, 0.18);
  background: rgba(56, 111, 142, 0.075);
  color: #386f8e;
}

.nav-links > a[data-nav-kind="substack"] {
  border-color: rgba(128, 86, 50, 0.18);
  background: rgba(128, 86, 50, 0.075);
  color: #805632;
}

.nav-links > a:hover {
  background: rgba(255, 255, 255, 0.86);
}

.language-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 232, 237, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.language-toggle button {
  min-width: 30px;
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
  box-shadow: none;
}

.language-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.language-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 13px;
  line-height: 1;
}

.brand-clock {
  display: inline-flex;
  min-height: 0;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  border: 0;
  margin-top: 2px;
  padding: 0;
  background: transparent;
  color: #2d2d30;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  white-space: nowrap;
}

.session-pill {
  align-items: center;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  border-left: 6px solid var(--gray);
}

.session-pill.open,
.light-green {
  border-color: var(--green);
}

.session-pill.post,
.light-yellow {
  border-color: var(--amber);
}

.session-pill.closed,
.light-red {
  border-color: var(--red);
}

.session-pill.gray,
.light-gray {
  border-color: var(--gray);
}

.next-event,
.freshness {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

main {
  margin-top: 20px;
  padding: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.executive-summary {
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 247, 0.94)),
    var(--panel);
}

.summary-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.session-status-icon {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--gray-bg);
  margin-top: 1px;
}

.session-status-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: var(--gray);
  box-shadow: 0 0 0 5px var(--gray-bg);
}

.session-status-icon.open {
  background: var(--green-bg);
}

.session-status-icon.open::before {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-bg);
}

.session-status-icon.post {
  background: var(--amber-bg);
}

.session-status-icon.post::before {
  background: var(--amber);
  box-shadow: 0 0 0 5px var(--amber-bg);
}

.session-status-icon.closed {
  background: var(--red-bg);
}

.session-status-icon.closed::before {
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red-bg);
}

.executive-summary p {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: 0;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 20px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.market-stat {
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
}

.market-stat:last-child {
  border-right: 0;
}

.market-stat span,
.market-table-toolbar p {
  margin: 0;
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.market-stat strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 14px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.signal-map,
.company-card,
.driver-card,
.info-grid article,
.instrument-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.hero-copy {
  padding: 32px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  background: var(--panel-deep);
}

.signal-map {
  padding: 18px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  min-height: 260px;
}

.map-cell {
  border-radius: 6px;
  background: var(--gray-bg);
  border: 1px solid rgba(23, 32, 29, 0.08);
}

.map-cell.green {
  background: var(--green-bg);
}

.map-cell.yellow {
  background: var(--amber-bg);
}

.map-cell.red {
  background: var(--red-bg);
}

.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.ticker-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 20px;
}

.company-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-left: 0;
  border-top: 4px solid var(--gray);
}

.company-card::before {
  display: none;
}

.company-card > * {
  position: relative;
}

.company-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.company-logo {
  width: 126px;
  height: 40px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.company-name {
  margin-bottom: 4px;
  font-size: 23px;
  font-weight: 800;
}

.company-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.light-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 42px;
  border-radius: 8px;
  padding: 8px 13px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  border: 1px solid var(--line);
}

.badge-green {
  color: var(--green);
  background: var(--green-bg);
  border-color: rgba(52, 199, 89, 0.26);
}

.badge-yellow {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: rgba(255, 149, 0, 0.28);
}

.badge-red {
  color: var(--red);
  background: var(--red-bg);
  border-color: rgba(255, 59, 48, 0.24);
}

.badge-gray {
  color: var(--gray);
  background: var(--gray-bg);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.metric {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 13px;
  background: transparent;
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.metric strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  white-space: nowrap;
}

.metric-ytd {
  background: var(--blue-bg);
}

.metric strong.ytd-up {
  color: var(--blue);
}

.metric strong.ytd-down {
  color: var(--red);
}

.valuation-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.valuation-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.valuation-head strong {
  color: var(--blue);
  line-height: 1.35;
  max-width: 68%;
  text-align: right;
  text-transform: none;
}

.valuation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.valuation-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.valuation-grid > div:last-child {
  border-right: 0;
}

.valuation-grid span,
.valuation-grid small,
.peer-compare span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.valuation-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}

.valuation-grid small {
  margin-top: 2px;
}

.peer-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
}

.peer-compare strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}

.ratio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

.ratio-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.reason-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.reason-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 20px 14px;
}

.section-head h2 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
}

.market-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 20px 12px;
}

.market-table-toolbar h2 {
  margin-bottom: 4px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.market-tabs button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.market-tabs button.active {
  border-color: rgba(0, 102, 204, 0.24);
  background: var(--blue-bg);
  color: var(--blue);
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 20px;
}

.driver-card {
  padding: 16px;
  min-height: 226px;
  border-top: 4px solid var(--gray);
}

.driver-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.driver-top h3 {
  font-size: 16px;
  line-height: 1.25;
}

.score-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.score-line > span {
  min-width: 48px;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.score-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(142, 142, 147, 0.2);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  width: 50%;
  background: var(--gray);
}

.sparkline {
  width: 100%;
  height: 46px;
  display: block;
  margin-top: 12px;
}

.driver-list {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.driver-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.driver-list strong {
  color: var(--ink);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.instrument-table-wrap {
  overflow: auto;
  margin: 0 20px;
}

.instrument-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
  background: var(--panel);
}

.instrument-table th,
.instrument-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.instrument-table td:nth-child(4) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}

.rank-cell {
  width: 46px;
  color: var(--muted);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.asset-avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--gray-bg);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
}

.asset-avatar.section-korea {
  color: var(--green);
  background: var(--green-bg);
}

.asset-avatar.section-us {
  color: var(--red);
  background: var(--red-bg);
}

.asset-avatar.section-etf {
  color: var(--blue);
  background: var(--blue-bg);
}

.asset-avatar.section-memory {
  color: var(--cyan);
  background: rgba(0, 113, 164, 0.1);
}

.asset-avatar.section-asia {
  color: var(--amber);
  background: var(--amber-bg);
}

.asset-avatar.section-risk {
  color: var(--purple);
  background: rgba(142, 62, 196, 0.1);
}

.instrument-last-value {
  color: var(--ink);
  font-weight: 900;
}

.sparkline-cell {
  width: 92px;
}

.mini-trend {
  display: block;
  width: 76px;
  height: 28px;
}

.mini-trend-up {
  color: var(--green);
}

.mini-trend-down {
  color: var(--red);
}

.mini-trend-empty {
  color: var(--muted);
  font-weight: 800;
}

.instrument-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(242, 242, 247, 0.84);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.instrument-section-row td {
  padding: 11px 14px 9px;
  border-left: 4px solid var(--gray);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.instrument-row {
  background: rgba(255, 255, 255, 0.58);
}

.instrument-row:hover {
  background: rgba(0, 122, 255, 0.055);
}

.instrument-row td:first-child {
  border-left: 4px solid var(--gray);
}

.instrument-section-row.section-korea td,
.instrument-row.section-korea td:first-child {
  border-left-color: var(--green);
}

.instrument-section-row.section-us td,
.instrument-row.section-us td:first-child {
  border-left-color: var(--red);
}

.instrument-section-row.section-etf td,
.instrument-row.section-etf td:first-child {
  border-left-color: var(--blue);
}

.instrument-section-row.section-memory td,
.instrument-row.section-memory td:first-child {
  border-left-color: var(--cyan);
}

.instrument-section-row.section-asia td,
.instrument-row.section-asia td:first-child {
  border-left-color: var(--amber);
}

.instrument-section-row.section-risk td,
.instrument-row.section-risk td:first-child {
  border-left-color: var(--purple);
}

.instrument-section-row.section-korea td {
  background: var(--green-bg);
}

.instrument-section-row.section-us td {
  background: var(--red-bg);
}

.instrument-section-row.section-etf td {
  background: var(--blue-bg);
}

.instrument-section-row.section-memory td {
  background: rgba(0, 113, 164, 0.1);
}

.instrument-section-row.section-asia td {
  background: var(--amber-bg);
}

.instrument-section-row.section-risk td {
  background: rgba(142, 62, 196, 0.1);
}

.group-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.group-chip.section-korea {
  color: var(--green);
  background: var(--green-bg);
}

.group-chip.section-us {
  color: var(--red);
  background: var(--red-bg);
}

.group-chip.section-etf {
  color: var(--blue);
  background: var(--blue-bg);
}

.group-chip.section-memory {
  color: var(--cyan);
  background: rgba(0, 113, 164, 0.1);
}

.group-chip.section-asia {
  color: var(--amber);
  background: var(--amber-bg);
}

.group-chip.section-risk {
  color: var(--purple);
  background: rgba(142, 62, 196, 0.1);
}

.move-up {
  color: var(--green);
  font-weight: 800;
}

.move-down {
  color: var(--red);
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 20px 0;
}

.info-grid article {
  padding: 20px;
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footnote {
  flex: 1 1 420px;
  color: var(--muted);
}

.footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 920px) {
  .site-nav,
  .section-head,
  .market-table-toolbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .ticker-panels,
  .driver-grid,
  .market-strip,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .market-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-stat:last-child {
    border-bottom: 0;
  }

  .market-tabs {
    justify-content: flex-start;
  }

  .hero-grid {
    gap: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .executive-summary p {
    font-size: 20px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .valuation-grid,
  .peer-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .valuation-grid > div:nth-child(2) {
    border-right: 0;
  }

  .valuation-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .site-nav,
  main,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .brand-cluster {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .brand-clock {
    font-size: 14px;
    padding: 0;
  }

  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px;
  }

  .nav-links > a {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .nav-links a,
  .button,
  .language-toggle button {
    padding: 0 12px;
  }

  .hero-copy,
  .company-card,
  .driver-card,
  .info-grid article {
    padding: 16px;
  }

  .executive-summary {
    padding: 18px 16px;
  }

  .ticker-panels,
  .driver-grid,
  .instrument-table-wrap,
  .market-strip,
  .info-grid {
    margin-left: 12px;
    margin-right: 12px;
  }

  .section-head,
  .market-table-toolbar {
    margin-left: 12px;
    margin-right: 12px;
  }

  .company-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-logo {
    width: 116px;
    height: 38px;
  }

  .valuation-grid,
  .peer-compare {
    grid-template-columns: 1fr;
  }

  .valuation-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .valuation-grid > div:last-child {
    border-bottom: 0;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .executive-summary p {
    font-size: 18px;
  }

}
