:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --nav: #12263f;
  --nav-2: #1c3557;
  --accent: #1f6f8b;
  --accent-dark: #17566b;
  --seal: #b08b2e;
  --text: #1b2330;
  --muted: #5c6675;
  --border: #d5dae1;
  --max: 940px;
}

* { box-sizing: border-box; }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Arial, Helvetica, sans-serif; line-height: 1.65;
}

a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { text-decoration-thickness: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--nav); color: #fff;
  padding: .6rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.site-shell {
  width: min(100% - 24px, var(--max)); margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border);
}

.topbar { background: var(--nav); color: #fff; border-bottom: 3px solid var(--seal); }

.topbar nav {
  display: flex; justify-content: flex-end; gap: .85rem;
  flex-wrap: wrap; padding: 1rem 1.25rem; font-size: .88rem;
}

.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover, .topbar a:focus { text-decoration: underline; }

.breadcrumb { padding: .75rem 1.5rem 0; font-size: .8rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li::after { content: "\203A"; margin-left: .4rem; color: var(--muted); }
.breadcrumb li:last-child::after { content: ""; }

main { padding: 1.25rem 1.5rem 2rem; }
article { max-width: 72ch; }

h1, h2 { font-family: Verdana, Arial, Helvetica, sans-serif; color: var(--nav); line-height: 1.25; }
h1 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.3rem); }
h2 { margin-top: 2.5rem; font-size: 1.3rem; }
h3 { margin-top: 1.7rem; font-size: 1.02rem; }

p { margin: .9rem 0; }
.lede { font-size: 1.06rem; }

.toc { background: #eef2f6; border: 1px solid #d8e0e8; padding: 1rem 1.2rem; margin: 1.5rem 0 2rem; }
.toc h2 { margin: 0 0 .5rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3rem; font-size: .93rem; }
.toc li { margin: .3rem 0; }

.content-list { padding-left: 1.3rem; }
.content-list li { margin: .5rem 0; }

.steps { counter-reset: step; list-style: none; margin: 1.5rem 0; padding: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 1.1rem 0 1.1rem 2.9rem; border-bottom: 1px solid var(--border);
}
.steps > li:last-child { border-bottom: none; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 1.15rem;
  width: 1.9rem; height: 1.9rem; line-height: 1.9rem; text-align: center;
  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: .8rem; font-weight: bold;
  color: #fff; background: var(--accent); border-radius: 50%;
}
.steps .st-title { display: block; font-weight: bold; font-size: 1.02rem; margin-bottom: .2rem; color: var(--nav); }

.callout { background: #fdf7e8; border: 1px solid #e6d5a8; padding: 1rem 1.15rem; margin: 1.5rem 0; font-size: .96rem; }
.callout strong { display: block; margin-bottom: .3rem; color: #7a5c12; }

.note { background: #eef2f6; border-left: 4px solid var(--accent); padding: 1rem 1.15rem; margin: 1.5rem 0; font-size: .96rem; }
.note strong { display: block; margin-bottom: .25rem; }

.warn { background: #fdf1f1; border: 1px solid #e3bcbc; padding: 1rem 1.15rem; margin: 1.5rem 0; font-size: .96rem; }
.warn strong { display: block; margin-bottom: .3rem; color: #8f2f2f; }

.cta-box { margin-top: 2.5rem; padding: 1.1rem 1.2rem; background: #eef2f6; border: 1px solid #d8e0e8; max-width: 72ch; }
.cta-box h2 { margin-top: 0; font-size: 1.1rem; }
.cta-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; }

.page-meta { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); max-width: 72ch; }

footer { padding: 1.5rem; text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: .75rem; color: var(--muted); line-height: 1.8; }

@media (max-width: 700px) {
  main { padding: 1.25rem; }
  .topbar nav { justify-content: flex-start; }
  .breadcrumb { padding: .75rem 1.25rem 0; }
}

.resource-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.resource-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.resource-list li:last-child { border-bottom: none; }
.resource-title { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 1.04rem; font-weight: bold; margin: 0 0 .3rem; }
.resource-title a { color: var(--nav); text-decoration: none; }
.resource-title a:hover, .resource-title a:focus { text-decoration: underline; }
.resource-summary { margin: 0 0 .45rem; max-width: 68ch; }
.resource-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--muted); }
.type-badge { display: inline-block; padding: .12rem .45rem; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: .66rem; font-weight: bold; letter-spacing: .02em; text-transform: uppercase; color: var(--accent-dark); border: 1px solid currentColor; }
.featured-flag { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: .66rem; font-weight: bold; letter-spacing: .02em; text-transform: uppercase; color: #7a5c12; }
.jump { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.25rem 0 0; padding: .85rem 1rem; background: #eef2f6; border: 1px solid #d8e0e8; font-size: .9rem; }
.jump span { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: .72rem; font-weight: bold; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); align-self: center; }
.empty-state { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--border); margin: 1rem 0; }
.pending-note { margin-top: 2rem; padding: .9rem 1.1rem; background: #eef2f6; border-left: 4px solid var(--accent); font-size: .9rem; }
