:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fbfd;
  --ink: #0f172a;
  --text: #263244;
  --muted: #687386;
  --line: #dfe6ef;
  --line-strong: #cbd5e1;
  --blue: #1d5fd6;
  --blue-soft: #eaf2ff;
  --teal: #0f8b83;
  --teal-soft: #e7f7f5;
  --amber: #f5a524;
  --danger: #b42318;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 95, 214, 0.08), transparent 32rem),
    linear-gradient(180deg, #ffffff 0, var(--bg) 22rem);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  width: 220px;
  height: auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  max-width: 148px;
  line-height: 1.25;
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.rail-item:hover,
.rail-item.active {
  background: #eef4ff;
  color: var(--blue);
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.nav-icon.ai,
.sector-badge.ai,
.sector-pill.ai span,
.sector-dot.ai,
.stat-card.ai {
  --accent: var(--teal);
  --accent-soft: var(--teal-soft);
}

.nav-icon.mc,
.sector-badge.mc,
.sector-pill.mc span,
.sector-dot.mc,
.stat-card.mc {
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
}

.nav-icon.ai,
.nav-icon.mc {
  background: var(--accent-soft);
  color: var(--accent);
}

.rail-card {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.side-widget {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.widget-head span {
  color: var(--ink);
}

.weather-current {
  display: grid;
  grid-template-columns: 42px minmax(0, auto) 1fr;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.weather-current span {
  font-size: 34px;
}

.weather-current strong {
  font-size: 27px;
  line-height: 1;
}

.weather-current small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-weather-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mini-weather-line div {
  min-width: 0;
  text-align: center;
}

.mini-weather-line b,
.mini-weather-line span {
  display: block;
}

.mini-weather-line b {
  color: var(--blue);
  font-size: 13px;
}

.mini-weather-line span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.rail-card-label,
.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.rail-card strong,
.rail-card small {
  display: block;
}

.rail-card strong {
  margin: 6px 0;
  font-size: 14px;
}

.rail-card small {
  color: var(--muted);
  line-height: 1.45;
}

.main-column {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 72px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-search {
  width: min(38vw, 420px);
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
}

.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.top-search input::placeholder {
  color: #94a3b8;
}

.topbar-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.topbar strong {
  font-size: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 750;
}

.top-actions a:hover,
.top-actions .primary-link {
  background: var(--ink);
  color: #ffffff;
}

.content-frame {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 70px;
}

.dashboard-hero,
.sector-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(15, 139, 131, 0.12), rgba(29, 95, 214, 0.12));
  box-shadow: var(--shadow);
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 18px;
  margin: 22px 0 28px;
}

.weather-dashboard-card,
.market-dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.brief-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.brief-card-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.brief-card-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weather-dashboard-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.weather-dashboard-main > span {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff7e6;
  font-size: 38px;
}

.weather-dashboard-main strong,
.weather-dashboard-main small {
  display: block;
}

.weather-dashboard-main strong {
  font-size: 36px;
  line-height: 1;
}

.weather-dashboard-main small {
  margin-top: 6px;
  color: var(--muted);
}

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

.weather-timeline-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: center;
}

.weather-timeline-item span,
.weather-timeline-item strong,
.weather-timeline-item small,
.weather-timeline-item em {
  display: block;
}

.weather-timeline-item span {
  font-size: 22px;
}

.weather-timeline-item strong {
  margin-top: 4px;
  color: var(--ink);
}

.weather-timeline-item small,
.weather-timeline-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  margin-top: 3px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.market-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.market-item span,
.market-item strong,
.market-item small {
  display: block;
}

.market-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.market-item strong {
  margin: 8px 0 4px;
  font-size: 18px;
  line-height: 1.1;
}

.market-item small {
  color: var(--danger);
  font-size: 12px;
  font-weight: 850;
}

.market-item.up small {
  color: #0b8f61;
}

.hero-copy h1,
.sector-hero h1,
.subscribe-copy h1,
.post-header h1 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-copy p,
.sector-hero p,
.subscribe-copy p,
.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
  margin: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.stat-card strong {
  font-size: 44px;
  line-height: 1;
}

.stat-card small {
  color: var(--muted);
}

.sector-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 34px;
}

.sector-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sector-pill span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.sector-pill strong {
  font-size: 15px;
}

.section-head,
.column-head,
.post-header,
.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head {
  margin: 0 0 16px;
}

.section-head.compact {
  margin-top: 34px;
}

.section-head h2,
.panel-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.text-link {
  color: var(--blue);
  font-weight: 850;
}

.sector-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.news-column {
  min-width: 0;
}

.column-head {
  margin-bottom: 12px;
}

.column-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.stacked-list,
.post-list {
  display: grid;
  gap: 14px;
}

.post-list.wide {
  max-width: 920px;
}

.post-card {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 7px;
  background: #e2e8f0;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  flex-wrap: wrap;
}

.sector-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.post-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.post-card p {
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.card-footer a {
  color: var(--blue);
}

.archive-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.archive-row {
  display: grid;
  grid-template-columns: 120px 120px minmax(0, 1fr) 70px;
  gap: 14px;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
}

.archive-row:first-child {
  border-top: 0;
}

.archive-row-head {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.archive-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}

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

.button,
.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

.button {
  background: var(--blue);
  color: #ffffff;
}

.danger-button {
  background: var(--ink);
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.button.full {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
}

.latest-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.latest-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.latest-preview span,
.latest-preview strong {
  display: block;
  padding: 0 16px;
}

.latest-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
}

.latest-preview strong {
  padding-bottom: 16px;
  margin-top: 6px;
  line-height: 1.35;
}

.count-chip {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.post-detail {
  max-width: 980px;
}

.post-header {
  align-items: flex-start;
  margin-bottom: 22px;
}

.post-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-panel {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
}

.content-panel p {
  color: var(--text);
  line-height: 1.65;
}

.muted {
  color: var(--muted) !important;
}

.weather-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-soft);
}

.weather-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.weather-title span {
  font-size: 26px;
}

.weather-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.weather-point {
  min-width: 0;
  text-align: center;
  padding-top: 18px;
  position: relative;
}

.weather-point::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--blue);
}

.weather-point b,
.weather-point small {
  display: block;
}

.weather-point b {
  font-size: 13px;
}

.weather-point small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

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

.summary-item {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.summary-item small,
.review small {
  color: var(--teal);
  font-weight: 900;
}

.summary-item h3,
.review h3 {
  margin: 6px 0;
  line-height: 1.35;
}

.review-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.review {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.keyword-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-soft), var(--teal-soft));
}

.keyword-box strong {
  font-size: 24px;
}

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-chips a {
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.source-list {
  margin: 16px 0 0;
  padding-left: 22px;
}

.source-list li {
  margin: 9px 0;
  color: var(--text);
  line-height: 1.5;
}

.source-list a {
  color: var(--blue);
}

.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.subscribe-copy {
  padding-top: 26px;
}

.sync-note {
  margin-top: 24px;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sync-note strong {
  font-size: 14px;
}

.sync-note span {
  color: var(--muted);
  font-size: 13px;
}

.sync-note b {
  color: var(--ink);
}

.subscribe-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field-label {
  display: block;
  margin: 0 0 9px;
  font-size: 14px;
  font-weight: 850;
  color: var(--ink);
}

input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  outline: 0;
}

input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 95, 214, 0.12);
}

.field-group {
  margin: 22px 0;
}

.subscription-options {
  display: grid;
  gap: 12px;
}

.subscription-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.subscription-card:has(input:checked) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 139, 131, 0.12);
}

.subscription-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-ui {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.subscription-card input:checked + .check-ui {
  background: var(--blue);
  border-color: var(--blue);
  position: relative;
}

.subscription-card input:checked + .check-ui::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  top: 6px;
  left: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.subscription-thumb {
  width: 116px;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
}

.subscription-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subscription-thumb b {
  color: var(--blue);
  font-size: 32px;
}

.subscription-text {
  min-width: 0;
}

.subscription-text strong,
.subscription-text small,
.subscription-text em {
  display: block;
}

.subscription-text strong {
  font-size: 17px;
  line-height: 1.3;
}

.subscription-text small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.subscription-text em {
  width: max-content;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.form-message {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 850;
}

.form-helper {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.form-helper a {
  color: var(--blue);
  font-weight: 850;
}

.success {
  background: var(--teal-soft);
  color: var(--teal);
}

.error {
  background: #fff1f0;
  color: var(--danger);
}

.empty {
  color: var(--muted);
  line-height: 1.6;
}

.mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    display: none;
  }

  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .top-actions {
    display: none;
  }

  .top-search {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .top-search input {
    display: none;
  }

  .content-frame {
    width: min(760px, calc(100% - 28px));
    padding: 22px 0 92px;
  }

  .dashboard-hero,
  .sector-hero,
  .subscribe-layout,
  .intro-panel,
  .brief-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .sector-hero {
    padding: 24px;
  }

  .hero-stats,
  .sector-strip,
  .sector-news-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

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

  .weather-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscribe-layout {
    gap: 22px;
  }

  .subscribe-copy {
    padding-top: 0;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 66px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-nav span {
    font-size: 18px;
  }

  .mobile-nav a.active {
    color: var(--blue);
  }
}

@media (max-width: 840px) {
  .content-frame {
    width: min(360px, calc(100% - 28px));
    margin: 0 14px;
  }

  .mobile-nav {
    width: min(100%, 390px);
    right: auto;
  }

  .hero-copy h1,
  .sector-hero h1,
  .subscribe-copy h1,
  .post-header h1 {
    font-size: 27px;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .hero-copy h1,
  .sector-hero h1,
  .subscribe-copy h1,
  .post-header h1 {
    font-size: 28px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .archive-row {
    grid-template-columns: 92px 94px minmax(0, 1fr);
  }

  .archive-row span:last-child,
  .archive-row-head span:last-child {
    display: none;
  }

  .post-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .subscription-card {
    grid-template-columns: 24px 90px minmax(0, 1fr);
    min-height: 116px;
  }

  .subscription-thumb {
    width: 90px;
  }

  .weather-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weather-timeline,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
