/* Public service / change pages (docs/screens.md §0a). Tokens, header, footer, and buttons
   match the landing page (index.html). */
:root {
  --color-text: #1f2328;
  --color-text-muted: #59636e;
  --color-bg: #ffffff;
  --color-bg-subtle: #f6f8fa;
  --color-border: #d1d9e0;
  --color-accent: #0a5fc4;
  --color-accent-hover: #0850a6;
  --color-accent-subtle: #e6f0fb;
  --color-danger: #b42318;
  --color-danger-subtle: #fdecea;
  --color-warning: #8a5a00;
  --color-warning-subtle: #fff6d6;
  --radius: 8px;
  --max-width: 64rem;

  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  line-height: 1.35;
}

a {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 3px solid rgba(10, 95, 196, 0.4);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header (same as the landing page) */
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .header-login {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-accent-hover);
}

.btn-small {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

/* Page body: a readable column */
.page {
  max-width: 48rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  overflow-wrap: anywhere;
}

.lead {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

section {
  margin-top: 2.5rem;
}

h2 {
  font-size: 1.25rem;
}

.empty {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

.badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.badge-future {
  background: var(--color-warning-subtle);
  color: var(--color-warning);
}

.badge-now {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}

/* Change list */
.change-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.change-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.change-list .badge {
  margin-top: 0;
}

.change-title {
  display: block;
  margin-top: 0.375rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.change-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.source-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  overflow-wrap: anywhere;
}

/* Change detail */
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 1.25rem 0 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--color-bg-subtle);
  font-size: 0.9375rem;
}

.facts dt {
  color: var(--color-text-muted);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.text {
  margin-top: 0.5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reference {
  margin-top: 0.5rem;
}

.reference,
.official {
  overflow-wrap: anywhere;
}

.official {
  margin-top: 2rem;
  font-size: 0.9375rem;
}

/* Call to action */
.cta {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-accent-subtle);
  text-align: center;
}

.cta p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

.cta .btn {
  margin-top: 1.25rem;
}

.cta .cta-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Footer (same as the landing page) */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer p {
  margin-top: 1rem;
}