:root {
  color-scheme: light;
  --ink: #161a17;
  --ink-soft: #59615d;
  --paper: #f7f7f2;
  --panel: rgba(255, 255, 250, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(22, 26, 23, 0.13);
  --line-strong: rgba(22, 26, 23, 0.34);
  --accent: #0b7a64;
  --accent-hot: #c84224;
  --blue: #285d9d;
  --shadow: 0 12px 32px rgba(22, 26, 23, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(22, 26, 23, 0.035) 1px, transparent 1px) 0 0 /
      28px 28px,
    linear-gradient(rgba(22, 26, 23, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #f9faf5 0%, #eef4ef 42%, #f4f1ea 100%);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      120deg,
      rgba(11, 122, 100, 0.045) 0,
      rgba(11, 122, 100, 0.045) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 16px;
  width: min(1520px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

.content {
  min-width: 0;
}

.date-rail {
  position: sticky;
  top: 14px;
  align-self: start;
  max-height: calc(100vh - 28px);
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 250, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.rail-title {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rail-title span,
.eyebrow,
.field label,
.status-pill,
.card-kicker,
.value-block span,
.source-link,
.date-button {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.rail-title span {
  color: var(--accent-hot);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.rail-title strong {
  font-size: 15px;
}

.date-list {
  display: grid;
  gap: 7px;
}

.date-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 6px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.date-button:hover,
.date-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.date-day {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.date-full {
  grid-column: 1 / -1;
  color: currentColor;
  font-size: 11px;
  opacity: 0.68;
}

.date-note {
  align-self: start;
  color: var(--accent-hot);
  font-size: 10px;
  font-weight: 900;
}

.date-button.is-active .date-note,
.date-button:hover .date-note {
  color: #ffb096;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 176px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 38%,
      rgba(255, 255, 255, 0.34) 68%,
      rgba(255, 255, 255, 0.08) 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(22, 26, 23, 0.045) 0,
      rgba(22, 26, 23, 0.045) 1px,
      transparent 1px,
      transparent 12px
    ),
    url("bg.png") center right / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
}

.toolbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 76px;
  gap: 10px;
  align-items: end;
  margin: 10px 0 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 247, 242, 0.88);
  box-shadow: 0 10px 24px rgba(22, 26, 23, 0.08);
  backdrop-filter: blur(16px);
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: none;
  padding: 0 11px;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 100, 0.13);
}

.status-pill {
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.headline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.headline-column,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 250, 0.78);
  box-shadow: 0 8px 22px rgba(22, 26, 23, 0.06);
}

.headline-column {
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.headline-column.is-domestic {
  --section-color: var(--accent);
  --section-color-rgb: 11, 122, 100;
}

.headline-column.is-global {
  --section-color: var(--blue);
  --section-color-rgb: 40, 93, 157;
}

.headline-column.is-domestic .section-banner {
  box-shadow: inset 0 1px 0 rgba(11, 122, 100, 0.18);
}

.headline-column.is-global .section-banner {
  box-shadow: inset 0 1px 0 rgba(40, 93, 157, 0.18);
}

.section-banner {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 11px 14px 11px 17px;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--section-color-rgb, 11, 122, 100), 0.3);
  border-left: 4px solid var(--section-color, var(--accent));
  background:
    linear-gradient(
      110deg,
      rgba(var(--section-color-rgb, 11, 122, 100), 0.2),
      rgba(255, 255, 250, 0.88) 52%,
      rgba(var(--section-color-rgb, 11, 122, 100), 0.08)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(var(--section-color-rgb, 11, 122, 100), 0.1) 0,
      rgba(var(--section-color-rgb, 11, 122, 100), 0.1) 1px,
      transparent 1px,
      transparent 14px
    );
}

.section-banner::after {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(var(--section-color-rgb, 11, 122, 100), 0.22);
  border-radius: 50%;
  content: "";
}

.section-banner strong,
.row-number,
.row-title-line span,
.headline-row p b {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.section-banner h2 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.section-banner strong {
  position: relative;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(var(--section-color-rgb, 11, 122, 100), 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--section-color, var(--accent));
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.headline-list {
  display: grid;
}

.headline-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: start;
  min-height: 112px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.headline-row:last-child {
  border-bottom: 0;
}

.headline-row:hover {
  background: rgba(255, 255, 255, 0.78);
}

.row-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(11, 122, 100, 0.36);
  border-radius: 50%;
  background: rgba(11, 122, 100, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

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

.row-title-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.row-title-line h3 {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0;
}

.headline-title-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.headline-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.headline-title-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(11, 122, 100, 0.18);
  outline-offset: 3px;
}

.row-title-line span {
  flex: 0 0 auto;
  max-width: 110px;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid rgba(40, 93, 157, 0.28);
  border-radius: 999px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headline-row p {
  margin: 6px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.headline-row p b {
  margin-right: 6px;
  color: var(--accent-hot);
  font-size: 11px;
  font-weight: 900;
}

.headline-row footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
}

.headline-row footer > span {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.column-empty {
  padding: 18px 14px;
  color: var(--ink-soft);
  font-size: 14px;
}

.source-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.source-link.muted {
  opacity: 0.6;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 18px;
  text-align: center;
}

.empty-state span {
  color: var(--accent-hot);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 900;
}

.empty-state strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.site-footer {
  width: min(1520px, calc(100% - 28px));
  margin: -20px auto 28px;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0 0 calc(152px + 16px);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-footer a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

  .date-rail {
    position: static;
    max-height: none;
  }

  .date-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .toolbar {
    top: 8px;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
  }

  .footer-inner {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1520px);
    padding-top: 10px;
  }

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

  .hero,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 16px;
  }

  .hero h1 {
    font-size: clamp(36px, 13vw, 58px);
  }

  .toolbar {
    position: static;
  }

  .toolbar,
  .headline-grid {
    grid-template-columns: 1fr;
  }

  .headline-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .headline-row footer {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .site-footer {
    width: min(100% - 20px, 1520px);
    margin-top: -16px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
  }

  .site-footer nav {
    gap: 7px 10px;
  }
}
