/* ============================================================
   Księgowość Firm - design system
   Paleta: głęboka zieleń atramentu + mosiądz + papier
   Typografia: Spectral (display) + Figtree (tekst)
   ============================================================ */

:root {
  --header-h: 68px;
  --sidebar-w: 300px;

  --paper: #f6f7f1;
  --surface: #ffffff;
  --surface-2: #edf0e4;
  --ink: #14201b;
  --ink-2: #33443c;
  --muted: #4f6158;
  --line: #d7ddd0;
  --line-strong: #b9c4b5;

  --green-950: #0b241d;
  --green-900: #103028;
  --green-800: #17453a;
  --green-700: #1f5a4a;
  --green-50: #e7efe4;

  --gold-700: #8a5f1e;
  --gold-500: #c08f3a;
  --gold-200: #e8d6ad;

  --link: #1f5a4a;
  --red-soft: #f8e8e4;
  --red-line: #e6c6bd;
  --red-strong: #a34432;
  --tip-soft: #e8f0e3;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1512;
    --surface: #101d18;
    --surface-2: #16261f;
    --ink: #e9efe8;
    --ink-2: #ccd7ce;
    --muted: #a4b3a9;
    --line: #24362d;
    --line-strong: #3a4e42;

    --green-950: #081a15;
    --green-900: #0f2a22;
    --green-800: #17453a;
    --green-700: #276b58;
    --green-50: #14251e;

    --gold-700: #dfb878;
    --gold-500: #d3a04a;
    --gold-200: #3a2f1c;

    --link: #d9b271;
    --red-soft: #2a1512;
    --red-line: #4a2620;
    --red-strong: #d98a76;
    --tip-soft: #15271d;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-200); color: var(--ink); }

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

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--green-900);
  color: #f6f1e2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--green-950);
  border-bottom: 1px solid rgba(192, 143, 58, 0.55);
  z-index: 100;
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: #f5f1e4;
  text-decoration: none;
}
.brand-mark svg {
  width: 27px;
  height: 27px;
  color: var(--gold-500);
  display: block;
}
.brand-text {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.17rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text em {
  font-style: italic;
  color: #dcba80;
}

.search-box {
  position: relative;
  margin-left: auto;
  width: min(360px, 38vw);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #93a99e;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  color: #f2f4ee;
  font: 400 0.88rem "Figtree", sans-serif;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.search-box input::placeholder { color: #9db0a5; }
.search-box input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.11);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 62vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(11, 36, 29, 0.2);
  z-index: 120;
}
.search-results a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover,
.search-results a:focus { background: var(--surface-2); }
.search-results .sr-sec {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--muted);
}
.search-results .sr-empty {
  padding: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f2f1e6;
  transition: transform 0.2s var(--ease-out), opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  padding-top: var(--header-h);
}

.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 24px 18px 48px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); }

.sidebar-search { display: none; position: relative; margin: 0 0 18px; }
.sidebar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.sidebar-search input {
  width: 100%;
  height: 38px;
  padding: 0 10px 0 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font: 400 0.88rem "Figtree", sans-serif;
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.nav-home:hover { background: var(--surface-2); }
.nav-home svg { width: 15px; height: 15px; color: var(--gold-700); }

.nav-section { margin-bottom: 22px; }
.nav-section + .nav-section { border-top: 1px solid var(--line); padding-top: 16px; }
.nav-section-title {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sidebar-link {
  display: block;
  padding: 6.5px 10px;
  border-radius: 2px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.sidebar-link:hover { background: var(--surface-2); color: var(--ink); }
.sidebar-link.active {
  background: var(--green-900);
  color: #f7f3e6;
  font-weight: 500;
}

.sidebar-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(8, 26, 21, 0.5);
  z-index: 85;
}

.main {
  min-width: 0;
  padding: 44px 48px 88px;
}
.main > #content { max-width: 980px; }

/* ---------- Motion ---------- */

.view {
  animation: pageIn 0.28s var(--ease-out) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 10px 0 52px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding-left: 26px;
  border-left: 1px solid var(--gold-500);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 33px,
    rgba(16, 48, 40, 0.05) 33px 34px
  );
}
@media (prefers-color-scheme: dark) {
  .hero-copy {
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0 33px,
      rgba(211, 160, 74, 0.07) 33px 34px
    );
  }
}

.hero-brand {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-brand em {
  font-style: italic;
  color: var(--gold-700);
}
.hero-headline {
  margin: 16px 0 0;
  max-width: 26ch;
  font-family: "Spectral", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.22rem, 2.2vw, 1.58rem);
  line-height: 1.35;
  color: var(--ink-2);
}
.hero-lead {
  margin: 14px 0 26px;
  max-width: 44ch;
  font-size: 1.01rem;
  line-height: 1.65;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: var(--green-800);
  border: 1px solid var(--green-800);
  border-radius: 2px;
  color: #f7f4e9;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.18s var(--ease-out); }
.btn:hover { background: var(--green-700); border-color: var(--green-700); }
@media (prefers-color-scheme: dark) {
  .btn { background: var(--gold-500); border-color: var(--gold-500); color: #12241d; }
  .btn:hover { background: var(--gold-700); border-color: var(--gold-700); }
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.hero-figure { margin: 0; }
.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--gold-500);
  animation: revealImage 0.9s var(--ease-out) both;
}
@keyframes revealImage {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero-figure figcaption {
  margin-top: 10px;
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Home: featured + sections ---------- */

.start-here { padding: 40px 0 4px; }
.start-here h2,
.home-section h2 {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.start-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.start-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.start-num {
  font-family: "Spectral", Georgia, serif;
  font-size: 0.98rem;
  color: var(--gold-700);
  padding-top: 2px;
}
.start-list a {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.start-list a:hover {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
}
.start-list p {
  margin: 4px 0 0;
  font-size: 0.89rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-section {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.home-sections .home-section:first-child { border-top: 0; }
.section-aside p {
  margin: 8px 0 0;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--muted);
}
.section-count {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list li:first-child { border-top: 1px solid var(--line); }
.article-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12.5px 2px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.18s var(--ease-out);
}
.article-list .t {
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.45;
}
.article-list .arrow {
  flex-shrink: 0;
  color: var(--gold-700);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s var(--ease-out);
}
.article-list a:hover { color: var(--green-700); padding-left: 5px; }
.article-list a:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------- Article ---------- */

.article-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.79rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { color: var(--line-strong); }

.article-head h1 {
  margin: 0 0 14px;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 2.95rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.article-toc {
  margin: 26px 0 10px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-500);
}
.article-toc h2 {
  margin: 0 0 10px;
  font: 600 0.78rem/1.4 "Figtree", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 34px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.article-toc li { margin: 0 0 6px; break-inside: avoid; }
.article-toc a { color: var(--ink-2); text-decoration: none; }
.article-toc a:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }

.article-body {
  max-width: 72ch;
  padding-top: 10px;
}
.article-body p { margin: 0 0 1.05em; }
.article-body > p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.article-body h2 {
  margin: 2.1em 0 0.55em;
  font-family: "Spectral", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.article-body h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.article-body ul,
.article-body ol { margin: 0 0 1.1em; padding-left: 1.3rem; }
.article-body li { margin: 0.35em 0; }
.article-body strong { font-weight: 600; }
.article-body a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--green-700); }
.article-body img { max-width: 100%; height: auto; }

/* Tables */

.table-wrap {
  margin: 1.6em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}
.table-wrap .data-table,
.table-wrap .compare-table { margin: 0; border: 0; }

.data-table,
.compare-table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--surface);
}
.data-table th,
.compare-table th {
  padding: 10px 12px;
  background: var(--green-900);
  color: #f4f1e6;
  font-weight: 600;
  text-align: left;
  border: 1px solid var(--green-900);
  vertical-align: bottom;
}
.data-table td,
.compare-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) td,
.compare-table tbody tr:nth-child(even) td { background: var(--surface-2); }

/* Boxes */

.info-box,
.tip-box,
.warning-box {
  margin: 1.6em 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-500);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.65;
}
.info-box > :last-child,
.tip-box > :last-child,
.warning-box > :last-child { margin-bottom: 0; }
.info-box strong:first-child { color: var(--ink); }
.tip-box {
  background: var(--tip-soft);
  border-top-color: var(--green-700);
}
.warning-box {
  background: var(--red-soft);
  border-color: var(--red-line);
  border-top-color: var(--red-strong);
  color: var(--ink);
}

/* FAQ + glossary */

.faq-item {
  margin-top: 8px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}
.faq-item h3 {
  margin: 0 0 6px;
  font-family: "Figtree", sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
}
.faq-item p {
  margin: 0 0 12px;
  font-size: 0.96rem;
  color: var(--ink-2);
}

.glossary { margin: 1.4em 0; }
.glossary dt {
  margin-top: 16px;
  font-weight: 600;
  color: var(--ink);
}
.glossary dd {
  margin: 4px 0 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* Prev / next */

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.article-nav a:hover { border-color: var(--gold-500); background: var(--surface); }
.article-nav .lbl {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-nav .ttl { font-size: 0.94rem; font-weight: 500; line-height: 1.4; }
.article-nav .next { text-align: right; }
.article-nav .placeholder { border: 1px solid transparent; }

/* 404 */

.notfound { padding: 30px 0; }
.notfound h1 {
  margin: 0 0 14px;
  font-family: "Spectral", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.notfound p { max-width: 52ch; color: var(--ink-2); }
.notfound ul { margin: 22px 0 0; padding-left: 1.2rem; }
.notfound li { margin: 8px 0; }

/* ---------- Footer ---------- */

.app-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 48px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
}
.footer-inner p { margin: 0 0 10px; }
.footer-inner strong { color: var(--ink); }
.footer-note { max-width: 68ch; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.footer-links a:hover { border-bottom-color: var(--gold-500); color: var(--ink); }
.footer-copy { margin-top: 18px; font-size: 0.78rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  :root { --sidebar-w: 268px; }
  .main { padding: 40px 36px 76px; }
  .home-section { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .search-box { display: none; }
  .sidebar-search { display: block; }

  .layout { display: block; }

  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    width: min(320px, 86vw);
    padding: 18px 16px calc(150px + env(safe-area-inset-bottom)) 20px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.28s var(--ease-drawer), visibility 0.28s;
    z-index: 90;
  }
  .sidebar.open { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }

  .main { padding: 32px 24px 68px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 40px;
  }
  .hero-copy {
    padding-left: 0;
    border-left: 0;
    background-image: none;
    order: 1;
  }
  .hero-figure { order: 2; }
  .hero-headline { max-width: 34ch; }

  .home-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 30px 0;
  }
  .section-aside p { max-width: 62ch; }

  .article-toc ol { columns: 1; }
  .footer-inner { padding: 32px 24px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .header-inner { padding: 0 16px; }
  .brand-text { font-size: 1.04rem; }
  .brand-mark svg { width: 24px; height: 24px; }

  .main { padding: 26px 18px 60px; }

  .hero-brand { font-size: clamp(2.25rem, 11vw, 2.9rem); }
  .hero-headline { font-size: 1.18rem; }
  .hero-lead { font-size: 1rem; }

  .start-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .article-list .t { font-size: 0.95rem; }

  .article-body { font-size: 17px; }
  .article-body > p:first-of-type { font-size: 1.02rem; }
  .article-body h2 { font-size: 1.38rem; }
  .article-head h1 { font-size: clamp(1.85rem, 8.4vw, 2.3rem); }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.86rem;
  }
  .data-table th,
  .data-table td { white-space: normal; min-width: 108px; }

  .article-nav { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .article-nav .next { text-align: left; }

  .footer-inner { padding: 28px 18px; font-size: 0.83rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .view { animation: none; }
  .hero-figure img { animation: none; clip-path: none; }
}
