:root {
  --ink: #15191b;
  --muted: #697176;
  --page: #f4f6f5;
  --surface: #ffffff;
  --line: #d8dddd;
  --cyan: #008e9a;
  --coral: #d65b4b;
  --amber: #b57612;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
main,
.site-footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.brand [data-brand] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border-radius: 4px;
}

.brand-mark svg,
.icon-link svg,
.text-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.site-nav {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher {
  height: 36px;
  display: grid;
  grid-template-columns: 44px 36px;
  align-items: stretch;
  padding: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.language-option {
  min-width: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.language-option:hover {
  color: var(--ink);
}

.language-option[aria-pressed="true"] {
  color: var(--surface);
  background: var(--ink);
}

.language-option:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.icon-link {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

.intro-section {
  min-height: 178px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 740px;
}

.intro-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.update-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #287447;
  font-size: 12px;
  font-weight: 800;
}

.update-status > .update-dot {
  width: 7px;
  height: 7px;
  background: #33a35c;
  border-radius: 50%;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: 40px;
  line-height: 1.1;
}

.intro-text {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.directory-summary {
  flex: 0 0 128px;
  padding: 0 0 3px 22px;
  border-left: 1px solid var(--ink);
}

.directory-summary strong {
  display: block;
  font-size: 36px;
  line-height: 1;
}

.directory-summary span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.feed-section {
  padding: 28px 0 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.15;
}

.section-note {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}

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

.feed-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.feed-item + .feed-item {
  margin-top: 0;
}

.feed-meta {
  padding: 0 2px 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.feed-meta time,
.feed-meta span {
  display: inline;
}

.feed-meta span + span {
  margin-left: 5px;
}

.feed-card {
  flex: 1;
  min-height: 288px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  text-decoration: none;
}

.entry-resource-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.entry-resource-link span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.entry-resource-link svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.entry-resource-link:hover,
.entry-resource-link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.feed-card:hover,
.feed-card:focus-visible {
  border-color: var(--cyan);
  border-left-color: var(--cyan);
  outline: none;
}

.feed-card:hover h3,
.feed-card:focus-visible h3 {
  color: var(--cyan);
}

.feed-item[data-tone="notice"] .feed-card {
  border-left-color: var(--coral);
}

.feed-item[data-tone="limited"] .feed-card {
  border-left-color: var(--amber);
}

.feed-item[data-tone="caution"] .feed-card {
  border-left-color: var(--coral);
}

.entry-kind {
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.feed-item[data-tone="notice"] .entry-kind {
  color: var(--coral);
}

.feed-item[data-tone="limited"] .entry-kind {
  color: var(--amber);
}

.feed-item[data-tone="caution"] .entry-kind {
  color: var(--coral);
}

h3 {
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.2;
}

.entry-description {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.entry-details {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.entry-quota {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.quota-cell {
  padding: 6px 8px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.quota-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.quota-value {
  display: block;
  margin-top: 1px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.entry-info {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.entry-info-row {
  display: block;
  align-items: start;
  gap: 14px;
}

.entry-info-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.entry-info-label svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.registration-text {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.benefit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-tags li {
  padding: 2px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.entry-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  justify-self: end;
  color: var(--surface);
  background: var(--ink);
  border-radius: 4px;
}

.entry-arrow svg {
  width: 18px;
  height: 18px;
}

.feed-card:hover .entry-arrow,
.feed-card:focus-visible .entry-arrow {
  background: var(--cyan);
}

.site-disclaimer {
  margin: 0;
  padding: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.backup-drawer {
  margin: 4px 0 22px;
  color: var(--muted);
  background: #edf7f7;
  border: 1px solid #b9d9d9;
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
}

.backup-drawer summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 0 11px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.backup-drawer summary::-webkit-details-marker {
  display: none;
}

.backup-drawer summary:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.backup-drawer[open] summary {
  border-bottom: 1px solid var(--line);
}

.backup-drawer-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.backup-drawer-label svg {
  width: 17px;
  height: 17px;
  color: var(--cyan);
  stroke-width: 2;
}

.backup-drawer-action {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.backup-drawer-action::after {
  content: "＋";
  display: inline-block;
  margin-left: 7px;
}

.backup-drawer[open] .backup-drawer-action::after {
  content: "－";
}

.backup-drawer-content {
  max-width: 820px;
  padding: 14px 12px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.backup-drawer-content p {
  margin-bottom: 4px;
}

.backup-drawer-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

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

.backup-lane {
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.backup-lane-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.backup-lane h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.backup-lane h3 svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
  stroke-width: 1.8;
}

.backup-lane-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.backup-lane-status {
  flex: 0 0 auto;
  padding-top: 2px;
  color: #8a9195;
  font-size: 11px;
  font-weight: 700;
}

.backup-empty {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.backup-entry {
  display: block;
  margin-top: 12px;
  padding: 12px;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  text-decoration: none;
}

.backup-entry:hover,
.backup-entry:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.backup-entry-heading,
.backup-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.backup-entry-heading strong {
  color: var(--ink);
  font-size: 16px;
}

.backup-entry-heading span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.backup-entry-summary {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.backup-entry-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0 0;
}

.backup-entry-metrics div {
  min-width: 0;
  padding: 6px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.backup-entry-metrics dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.backup-entry-metrics dd {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.backup-entry-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.backup-entry-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #8a9195;
  font-size: 10px;
  font-weight: 700;
}

.backup-entry-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.backup-entry-footer svg {
  width: 13px;
  height: 13px;
}

.backup-drawer-status {
  margin-top: 14px;
  color: #8a9195;
  font-size: 12px;
}

.site-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.footer-meta {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backup-lanes {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    min-height: 62px;
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .intro-section {
    min-height: 0;
    display: block;
    padding: 28px 0 24px;
  }

  h1 {
    font-size: 32px;
  }

  .intro-text {
    font-size: 16px;
  }

  .directory-summary {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 18px;
    padding: 0 0 0 13px;
  }

  .directory-summary strong {
    font-size: 30px;
  }

  .directory-summary span {
    margin: 0;
  }

  .feed-section {
    padding: 24px 0 34px;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  h2 {
    font-size: 24px;
  }

  .feed-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .backup-lanes {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feed-item {
    display: block;
  }

  .feed-item + .feed-item {
    margin-top: 0;
  }

  .feed-meta {
    padding: 0 2px 6px;
    text-align: left;
  }

  .feed-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 36px;
    grid-template-rows: auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  h3 {
    font-size: 19px;
  }

  .entry-arrow {
    width: 36px;
    height: 36px;
  }

  .site-footer {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}
