:root {
  color-scheme: light;
  --guide-ink: #173f45;
  --guide-muted: #557076;
  --guide-line: #d9e6e4;
  --guide-soft: #eef7f5;
  --guide-accent: #f3b544;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #f6faf9; color: var(--guide-ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem;
  padding: .5rem .8rem; border: 1px solid #b9cfcc; border-radius: .65rem;
  background: #fff; color: var(--guide-ink); font: inherit; font-weight: 700; text-decoration: none;
}
.guide-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--guide-line);
  backdrop-filter: blur(12px);
}
.guide-brand { display: grid; color: inherit; text-decoration: none; line-height: 1.05; }
.guide-brand strong { font-size: 1.15rem; }
.guide-brand span { margin-top: .22rem; color: var(--guide-muted); font-size: .72rem; }
.guide-shell { width: min(70rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) 0 4rem; }
.guide-intro { max-width: 52rem; margin-bottom: 1.5rem; }
.guide-kicker { margin: 0 0 .4rem; color: #31746e; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.guide-intro h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.8rem); line-height: 1.02; }
.guide-intro > p:not(.guide-kicker) { max-width: 44rem; color: var(--guide-muted); }
.guide-account-status { min-height: 1.4em; font-weight: 700; }
.guide-role-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.guide-role-tabs button {
  min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid #b9cfcc; border-radius: 999px;
  background: #fff; color: var(--guide-ink); font: inherit; font-weight: 700; cursor: pointer;
}
.guide-role-tabs button[aria-selected="true"] { border-color: var(--guide-ink); background: var(--guide-ink); color: #fff; }
.guide-role-tabs button:focus-visible, .guide-contents a:focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 2px; }
.guide-card { margin: 1rem 0; padding: clamp(1.1rem, 3vw, 2rem); background: #fff; border: 1px solid var(--guide-line); border-radius: 1.1rem; box-shadow: 0 .4rem 1.5rem rgba(23,63,69,.05); }
.guide-card[hidden] { display: none; }
.guide-card h2 { margin: 0 0 .75rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.guide-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.guide-card p { line-height: 1.55; }
.guide-summary { max-width: 48rem; color: var(--guide-muted); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.guide-grid article { padding: 1rem; background: var(--guide-soft); border-radius: .8rem; }
.guide-grid article p { margin: 0; }
.guide-contents { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.guide-contents h2 { flex: 1 0 100%; }
.guide-contents a { padding: .55rem .75rem; border-radius: .65rem; background: var(--guide-soft); color: var(--guide-ink); font-weight: 700; text-decoration: none; }
.guide-task { scroll-margin-top: 5rem; }
.guide-task ol { margin: .75rem 0 0; padding-left: 1.3rem; }
.guide-task li { margin: .6rem 0; padding-left: .2rem; line-height: 1.55; }
.guide-note { padding: .8rem 1rem; border-left: .25rem solid var(--guide-accent); background: #fff8e9; }

@media (max-width: 720px) {
  .guide-shell { width: min(100% - 1rem, 70rem); padding-top: 1rem; }
  .guide-header { padding: .6rem .75rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-role-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-role-tabs button { width: 100%; padding-inline: .55rem; }
  .guide-card { border-radius: .85rem; }
}

@media print {
  .guide-header, .guide-role-tabs, .guide-contents { display: none !important; }
  body { background: #fff; }
  .guide-shell { width: 100%; padding: 0; }
  .guide-card { break-inside: avoid; box-shadow: none; }
  .guide-role-card[hidden] { display: none !important; }
}
