/* Shop8 site styles. System fonts only; no third-party requests. */

:root {
  --ink: #0f2a44;
  --text: #22364d;
  --muted: #4f5f71;
  --line: #d7dee7;
  --line-soft: #e7ecf2;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-tint: #eef3f9;
  --accent: #1d5bb8;
  --accent-strong: #154690;
  --accent-soft: #e8f0fb;
  --warn-bg: #fff6e0;
  --warn-line: #d9a43a;
  --warn-ink: #6b4800;
  --radius: 10px;
  --max: 72rem;
  --read: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.35rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.read {
  max-width: var(--read);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand svg {
  width: 30px;
  height: 30px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .container {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0;
}

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

.site-footer p {
  margin: 0.35rem 0 0;
  max-width: 52rem;
}

/* Internal preview markers (preview builds only) */

.preview-banner {
  background: var(--warn-bg);
  border-bottom: 2px solid var(--warn-line);
  color: var(--warn-ink);
  font-size: 0.95rem;
}

.preview-banner .container {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.preview-banner strong {
  color: var(--warn-ink);
}

.internal-panel {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.92rem;
}

.internal-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.internal-panel[open] summary {
  margin-bottom: 0.75rem;
}

.internal-panel dl {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
}

.internal-panel dt {
  font-weight: 600;
}

.internal-panel dd {
  margin: 0;
}

.internal-panel ul {
  margin: 0.25rem 0 0.75rem;
}

.pending {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: 2px dashed var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-bg);
}

.pending-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--warn-ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.placeholder {
  padding: 0 0.3rem;
  border-radius: 4px;
  background: var(--warn-bg);
  outline: 1px dashed var(--warn-line);
  color: var(--warn-ink);
}

/* Breadcrumbs, tags and small parts */

.breadcrumbs {
  margin: 1.5rem 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Flex items: spacing comes from CSS only, whatever whitespace the HTML has inside <li>. */
.breadcrumbs li {
  display: flex;
  align-items: baseline;
}

.breadcrumbs li + li {
  margin-top: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 0.66rem 0 0.15rem;
  color: var(--muted);
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.tags li + li {
  margin-top: 0;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
}

.tag-topic {
  border-color: #c8d8ef;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.button-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Home page */

.hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.hero .container {
  padding-top: 3.25rem;
  padding-bottom: 2.75rem;
}

.hero h1 {
  max-width: 44rem;
}

.hero .lead {
  max-width: 44rem;
  font-size: 1.2rem;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section {
  padding: 2.5rem 0 0.5rem;
}

.section > .container > h2:first-child,
.section h2.section-title {
  margin-top: 0;
}

.section-intro {
  max-width: 46rem;
  color: var(--text);
}

.focus {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--bg);
  box-shadow: 0 1px 2px rgb(15 42 68 / 6%);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.focus h2 {
  margin-top: 0;
}

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0 0.5rem;
  padding: 0;
}

.entries li + li {
  margin-top: 0;
}

.entry {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.entry:hover {
  border-color: #a9bfdc;
}

.entry .situation {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.entry h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.entry h3 a {
  text-decoration: none;
}

.entry h3 a:hover {
  text-decoration: underline;
}

.entry .answer {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.entry .entry-foot {
  margin-top: auto;
}

.entry .tags {
  margin-bottom: 0.4rem;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.25rem 0 1rem;
  padding: 0;
}

.steps li + li {
  margin-top: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 1.15rem 1rem 3.4rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.75rem;
  text-align: center;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0 0 0.5rem;
  font-size: 0.97rem;
}

.steps .links {
  margin: 0;
  font-size: 0.92rem;
}

.note-line {
  color: var(--muted);
  font-size: 0.97rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.topic-grid li + li {
  margin-top: 0;
}

.topic-card {
  height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-card h3 {
  margin: 0 0 0.4rem;
}

.topic-card p {
  margin: 0 0 0.6rem;
  font-size: 0.97rem;
}

.topic-card ul {
  margin: 0;
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
}

.labels {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.labels li {
  margin: 0 0 0.6rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.65em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.publisher-list {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Guide pages */

.guide-header {
  margin-bottom: 1.25rem;
}

.guide-header h1 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.15rem);
}

.dateline {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dateline span + span::before {
  content: "·";
  margin: 0 0.5rem;
}

.short-answer {
  margin: 1.5rem 0 1.25rem;
  padding: 1.1rem 1.25rem 0.4rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-tint);
}

.short-answer h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.about-guide {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.93rem;
}

.about-guide p {
  margin: 0;
}

.toc {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.toc summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.toc ol {
  margin: 0.5rem 0 0;
}

.prose h2 {
  scroll-margin-top: 1rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line-soft);
}

.prose h2:first-child {
  border-top: 0;
}

.prose li > p {
  margin: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.table-wrap table {
  min-width: 34rem;
}

blockquote {
  margin: 0 0 1.25rem;
}

blockquote.note {
  padding: 0.9rem 1.1rem 0.2rem;
  border: 1px solid var(--line);
  border-left: 4px solid #6b7f99;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
}

blockquote.quote {
  padding: 0.9rem 1.1rem 0.2rem;
  border: 1px dashed #9fb3cc;
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font);
}

sup.cite {
  margin-left: 0.1rem;
  font-size: 0.72em;
  line-height: 0;
  white-space: nowrap;
}

sup.cite a {
  text-decoration: none;
}

.cite-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.related ul {
  list-style: none;
  padding: 0;
}

.related li {
  margin: 0 0 0.6rem;
}

.related .rel-label {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.sources ol {
  padding-left: 0;
  list-style: none;
  font-size: 0.93rem;
}

.sources li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  margin: 0 0 0.9rem;
}

.sources li:target {
  background: #fff8d6;
  border-radius: 6px;
}

.source-n {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.source-links {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.source-links li {
  display: block;
  margin: 0.15rem 0 0;
}

.source-links a {
  overflow-wrap: anywhere;
}

.source-type {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.source-type.official {
  color: #1e5e3a;
  font-weight: 600;
}

/* Guide index */

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-list > li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.guide-list h3 {
  margin: 0 0 0.35rem;
}

.guide-list p {
  margin: 0 0 0.5rem;
}

/* Text pages */

.page-header {
  margin-bottom: 1.5rem;
}

.page-header .lead {
  font-size: 1.15rem;
}

.page-header-spaced {
  margin-top: 2.5rem;
}

/* Small screens */

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .hero .container {
    padding-top: 2.25rem;
    padding-bottom: 2rem;
  }

  .hero .lead {
    font-size: 1.08rem;
  }

  .focus {
    padding: 1.25rem 1rem 1rem;
  }

  .entries {
    grid-template-columns: 1fr;
  }

  .internal-panel dl {
    grid-template-columns: 1fr;
  }

  .sources li {
    grid-template-columns: 2rem 1fr;
  }
}

/* Print: buyers may print checklists */

@media print {
  .site-nav,
  .site-footer,
  .skip-link,
  .actions,
  .toc,
  .preview-banner {
    display: none;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  a {
    color: #000;
  }

  .source-links a::after {
    content: "";
  }

  .short-answer,
  blockquote.note,
  .table-wrap {
    break-inside: avoid;
  }
}
