/* ============================================================
   Digiman Marketing — Google Business Profile Guide
   Global Stylesheet v1.0
   Design: Google Search Central-inspired | Theme: White + Green
   ============================================================ */

/* ── 1. CSS Custom Properties ──────────────────────────────── */
:root {
  /* Colors */
  --c-bg:           #ffffff;
  --c-surface:      #f8f9fa;
  --c-surface-2:    #f1f3f4;
  --c-border:       #dadce0;
  --c-border-light: #e8eaed;
  --c-text:         #202124;
  --c-text-secondary: #5f6368;
  --c-text-muted:   #80868b;
  --c-accent:       #1a7f5a;
  --c-accent-dark:  #155c42;
  --c-accent-light: #e6f4ef;
  --c-accent-mid:   #c2e0d5;
  --c-link:         #1a7f5a;
  --c-link-hover:   #155c42;
  --c-warning:      #f29900;
  --c-warning-bg:   #fef9e7;
  --c-info:         #1a73e8;
  --c-info-bg:      #e8f0fe;
  --c-success:      #1a7f5a;
  --c-success-bg:   #e6f4ef;
  --c-danger:       #d93025;
  --c-danger-bg:    #fce8e6;
  --c-code-bg:      #f8f9fa;
  --c-code-border:  #e8eaed;
  --c-shadow-color: rgba(60,64,67,0.15);

  /* Typography */
  --font-sans:  'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont,
                'Segoe UI', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-mono:  'Roboto Mono', 'Courier New', Courier, monospace;

  /* Sizing */
  --header-h:     108px;
  --nav-w:        260px;
  --toc-w:        224px;
  --content-max:  820px;
  --page-max:     1440px;
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Transitions */
  --t-fast:   0.12s ease;
  --t-normal: 0.2s ease;
  --t-slow:   0.35s ease;

  /* Shadows */
  --shadow-xs: 0 1px 2px var(--c-shadow-color);
  --shadow-sm: 0 1px 4px var(--c-shadow-color);
  --shadow-md: 0 2px 8px var(--c-shadow-color), 0 1px 3px rgba(60,64,67,0.1);
  --shadow-lg: 0 4px 16px var(--c-shadow-color), 0 2px 6px rgba(60,64,67,0.1);
}

/* ── 2. Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── 3. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.125rem;  margin-bottom: var(--sp-4); }
h2 { font-size: 1.625rem;  margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
h3 { font-size: 1.25rem;   margin-top: var(--sp-8);  margin-bottom: var(--sp-3); }
h4 { font-size: 1.0625rem; margin-top: var(--sp-6);  margin-bottom: var(--sp-2); }
h5 { font-size: 0.9375rem; margin-top: var(--sp-5);  margin-bottom: var(--sp-2); font-weight: 700; }
h6 { font-size: 0.875rem;  margin-top: var(--sp-4);  margin-bottom: var(--sp-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-secondary); }

p {
  margin-bottom: var(--sp-4);
  color: var(--c-text);
  max-width: 72ch;
}

p + p { margin-top: 0; }

a {
  color: var(--c-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}

a:hover {
  color: var(--c-link-hover);
  border-bottom-color: var(--c-link-hover);
}

a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

small { font-size: 0.8125rem; color: var(--c-text-secondary); }

blockquote {
  border-left: 4px solid var(--c-accent);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: var(--c-accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.0625rem;
  color: var(--c-text);
}

blockquote cite {
  display: block;
  margin-top: var(--sp-2);
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  font-style: normal;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-code-bg);
  border: 1px solid var(--c-code-border);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  color: var(--c-accent-dark);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
  overflow-x: auto;
  margin: var(--sp-4) 0;
  line-height: 1.5;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-text);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

mark {
  background: #fff176;
  color: var(--c-text);
  padding: 0 2px;
  border-radius: 2px;
}

/* ── 4. Lists ───────────────────────────────────────────────── */
ul, ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}

li {
  margin-bottom: var(--sp-2);
  line-height: 1.65;
}

li:last-child { margin-bottom: 0; }

ul ul, ol ol, ul ol, ol ul {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-2);
}

dl dt {
  font-weight: 600;
  margin-top: var(--sp-4);
}

dl dd {
  margin-left: var(--sp-6);
  margin-bottom: var(--sp-2);
  color: var(--c-text-secondary);
}

/* ── 5. Tables ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: var(--sp-6) 0;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--c-bg);
}

thead tr {
  background: var(--c-accent-light);
  border-bottom: 2px solid var(--c-accent-mid);
}

thead th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--c-accent-dark);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--c-border-light);
  transition: background var(--t-fast);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: var(--c-surface); }

td {
  padding: var(--sp-3) var(--sp-4);
  vertical-align: top;
  color: var(--c-text);
}

/* ── 6. Images & Figures ────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: var(--sp-8) 0;
  text-align: center;
}

figure img,
figure svg {
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}

figcaption {
  margin-top: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
  font-style: italic;
  text-align: center;
}

figcaption a {
  color: var(--c-text-secondary);
}

/* ── 7. Site Header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-5);
  gap: var(--sp-4);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  border-bottom: none;
  flex-shrink: 0;
}

.header-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.header-logo-text span {
  color: var(--c-accent);
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--c-border);
  flex-shrink: 0;
}

.header-section-label {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.header-spacer { flex: 1; }

.header-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: var(--sp-2) var(--sp-4);
  min-width: 220px;
  max-width: 340px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.header-search:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px var(--c-accent-light);
}

.header-search svg {
  flex-shrink: 0;
  color: var(--c-text-secondary);
}

.header-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--c-text);
  width: 100%;
  font-family: var(--font-sans);
}

.header-search input::placeholder {
  color: var(--c-text-muted);
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav-links a {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  border-bottom: none;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}

.header-nav-links a:hover {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

.header-nav-links a.active {
  color: var(--c-accent);
  font-weight: 600;
}

.btn-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  transition: background var(--t-fast);
}

.btn-menu-toggle:hover {
  background: var(--c-surface);
}

/* ── 8. Page Layout ─────────────────────────────────────────── */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ── 9. Left Sidebar Navigation ─────────────────────────────── */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--nav-w);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--c-bg);
  border-right: 1px solid var(--c-border);
  padding: var(--sp-4) 0 var(--sp-10);
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
  z-index: 50;
}

.site-nav::-webkit-scrollbar { width: 4px; }
.site-nav::-webkit-scrollbar-track { background: transparent; }
.site-nav::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.nav-section {
  margin-bottom: var(--sp-2);
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: var(--sp-4);
}

.nav-section-title svg {
  flex-shrink: 0;
}

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

.nav-links a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  border-bottom: none;
  border-left: 2px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  line-height: 1.4;
}

.nav-links a:hover {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

.nav-links a.active {
  color: var(--c-accent);
  font-weight: 600;
  border-left-color: var(--c-accent);
  background: var(--c-accent-light);
}

.nav-links a svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-links a.active svg,
.nav-links a:hover svg {
  opacity: 1;
}

.nav-links .nav-sub {
  padding-left: var(--sp-8);
  font-size: 0.8125rem;
}

/* ── 10. Main Content Area ──────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--nav-w);
  margin-right: var(--toc-w);
  padding: var(--sp-8) var(--sp-10);
  min-width: 0;
  max-width: calc(var(--nav-w) + var(--content-max) + var(--toc-w));
}

.content-body {
  max-width: var(--content-max);
}

/* ── 11. Right Sidebar — Table of Contents ──────────────────── */
.toc-sidebar {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: var(--toc-w);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-10) var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}

.toc-sidebar::-webkit-scrollbar { width: 4px; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.toc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

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

.toc-list li { margin-bottom: 2px; }

.toc-list a {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
  padding: 3px var(--sp-2);
  border-radius: var(--radius-sm);
  border-bottom: none;
  border-left: 2px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  line-height: 1.45;
}

.toc-list a:hover {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

.toc-list a.active {
  color: var(--c-accent);
  font-weight: 600;
  border-left-color: var(--c-accent);
  background: var(--c-accent-light);
}

.toc-list .toc-h3 {
  padding-left: var(--sp-4);
  font-size: 0.75rem;
}

.toc-list .toc-h4 {
  padding-left: var(--sp-8);
  font-size: 0.75rem;
}

.toc-divider {
  border: none;
  border-top: 1px solid var(--c-border-light);
  margin: var(--sp-4) 0;
}

/* ── 12. Breadcrumbs ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-1);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: 0;
}

.breadcrumb li::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.breadcrumb li:last-child::after { display: none; }

.breadcrumb a {
  color: var(--c-text-secondary);
  border-bottom: none;
}

.breadcrumb a:hover { color: var(--c-accent); }

.breadcrumb li:last-child span {
  color: var(--c-text);
  font-weight: 500;
}

/* ── 13. Page Hero ──────────────────────────────────────────── */
.page-hero {
  margin-bottom: var(--sp-10);
}

.page-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-tag-green {
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
  border: 1px solid var(--c-accent-mid);
}

.page-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}

.page-hero-lead {
  font-size: 1.125rem;
  color: var(--c-text-secondary);
  line-height: 1.65;
  max-width: 65ch;
  margin-bottom: var(--sp-6);
}

.page-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-border-light);
  border-bottom: 1px solid var(--c-border-light);
}

.page-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
}

.page-meta-item svg {
  flex-shrink: 0;
  color: var(--c-accent);
}

/* ── 14. Cards ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
  margin: var(--sp-8) 0;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: box-shadow var(--t-normal), border-color var(--t-normal), transform var(--t-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent-mid);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--c-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.card-icon svg {
  color: var(--c-accent);
}

.card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-2);
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.card-body {
  font-size: 0.9rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-4);
}

.card-body p { max-width: none; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-accent);
  border-bottom: none;
  margin-top: auto;
  transition: gap var(--t-fast), color var(--t-fast);
}

.card-link:hover {
  color: var(--c-accent-dark);
  gap: var(--sp-2);
  border-bottom: none;
}

.card-link svg { flex-shrink: 0; }

/* Pillar cards */
.pillar-card {
  border-top: 3px solid var(--c-accent);
}

.pillar-card-number {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
}

.stat-card {
  background: var(--c-accent-light);
  border: 1px solid var(--c-accent-mid);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-accent-dark);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  line-height: 1.4;
}

.stat-source {
  font-size: 0.6875rem;
  color: var(--c-text-muted);
  margin-top: var(--sp-2);
}

/* ── 15. Callout / Alert Boxes ──────────────────────────────── */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  margin: var(--sp-6) 0;
  border-left: 4px solid transparent;
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-body { flex: 1; }

.callout-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: var(--sp-1);
}

.callout-body p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  max-width: none;
}

.callout-tip {
  background: var(--c-success-bg);
  border-left-color: var(--c-success);
}
.callout-tip .callout-title,
.callout-tip .callout-icon { color: var(--c-success); }

.callout-info {
  background: var(--c-info-bg);
  border-left-color: var(--c-info);
}
.callout-info .callout-title,
.callout-info .callout-icon { color: var(--c-info); }

.callout-warning {
  background: var(--c-warning-bg);
  border-left-color: var(--c-warning);
}
.callout-warning .callout-title,
.callout-warning .callout-icon { color: var(--c-warning); }

.callout-danger {
  background: var(--c-danger-bg);
  border-left-color: var(--c-danger);
}
.callout-danger .callout-title,
.callout-danger .callout-icon { color: var(--c-danger); }

/* ── 16. Steps / Process List ───────────────────────────────── */
.steps-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0;
  counter-reset: step;
}

.steps-list > li {
  display: flex;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  counter-increment: step;
}

.steps-list > li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.step-content { flex: 1; }

.step-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}

.step-body {
  font-size: 0.9375rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.step-body p { max-width: none; margin-bottom: var(--sp-2); }

/* ── 17. Checklist ──────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border-light);
  font-size: 0.9375rem;
  color: var(--c-text);
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--c-accent-light);
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* ── 18. FAQ Section ────────────────────────────────────────── */
.faq-section { margin: var(--sp-10) 0; }

.faq-item {
  border-bottom: 1px solid var(--c-border-light);
  padding: var(--sp-6) 0;
}

.faq-item:first-child { border-top: 1px solid var(--c-border-light); }

.faq-question {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-3);
  line-height: 1.4;
}

.faq-answer {
  color: var(--c-text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-answer p { max-width: none; margin-bottom: var(--sp-3); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── 19. Download Box ───────────────────────────────────────── */
.download-box {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
}

.download-icon {
  width: 48px;
  height: 48px;
  background: var(--c-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-accent);
}

.download-info { flex: 1; }

.download-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-text);
  margin-bottom: 2px;
}

.download-meta {
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-bottom: none;
  transition: background var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}

.btn-download:hover {
  background: var(--c-accent-dark);
  color: #fff;
  border-bottom: none;
  transform: translateY(-1px);
}

.btn-download svg { flex-shrink: 0; }

/* ── 20. Related Links Section ──────────────────────────────── */
.related-links {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin: var(--sp-8) 0;
}

.related-links-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-2);
}

.related-link-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}

.related-link-item:hover { background: var(--c-accent-light); }

.related-link-item svg {
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: 2px;
}

.related-link-item a {
  font-size: 0.875rem;
  color: var(--c-text);
  border-bottom: none;
  line-height: 1.4;
}

.related-link-item a:hover {
  color: var(--c-accent);
  border-bottom: none;
}

/* ── 21. CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--c-accent-dark) 0%, var(--c-accent) 100%);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-10);
  margin: var(--sp-10) 0;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  color: #fff;
}

.cta-text { flex: 1; }

.cta-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.cta-body {
  font-size: 0.9375rem;
  opacity: 0.9;
  max-width: 55ch;
  color: #fff;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: #fff;
  color: var(--c-accent-dark);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  flex-shrink: 0;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  border-bottom: none;
  color: var(--c-accent-dark);
}

/* ── 22. Reading Progress Bar ───────────────────────────────── */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-border-light);
  z-index: 101;
}

.reading-progress-bar {
  height: 100%;
  background: var(--c-accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── 23. Section Divider ────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--c-border-light);
  margin: var(--sp-10) 0;
}

/* ── 24. Inline Source Attribution ──────────────────────────── */
.source-ref {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--c-text-muted);
  vertical-align: middle;
}

.source-ref a {
  color: var(--c-text-muted);
  font-size: 0.75rem;
  border-bottom: 1px dotted var(--c-text-muted);
}

.source-ref a:hover { color: var(--c-accent); }

/* ── 25. Comparison Table ───────────────────────────────────── */
.compare-table td:first-child {
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface);
}

.compare-yes { color: var(--c-accent); font-weight: 600; }
.compare-no  { color: var(--c-danger); }
.compare-partial { color: var(--c-warning); }

/* ── 26. Site Footer ────────────────────────────────────────── */
.site-footer {
  margin-left: var(--nav-w);
  margin-right: var(--toc-w);
  padding: var(--sp-8) var(--sp-10);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.footer-inner {
  max-width: var(--content-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-brand {
  font-size: 0.9rem;
  color: var(--c-text-secondary);
}

.footer-brand strong { color: var(--c-text); }

.footer-links {
  display: flex;
  gap: var(--sp-5);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
  border-bottom: none;
}

.footer-links a:hover { color: var(--c-accent); }

.footer-legal {
  width: 100%;
  font-size: 0.75rem;
  color: var(--c-text-muted);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-light);
  line-height: 1.5;
}

/* ── 27. Utility Classes ────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--c-text-secondary); }
.text-accent  { color: var(--c-accent); }
.text-small   { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.font-bold    { font-weight: 600; }
.font-normal  { font-weight: 400; }

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mt-8  { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.external-link-icon {
  display: inline-block;
  margin-left: 3px;
  vertical-align: middle;
  opacity: 0.6;
}

/* ── 28. Skip Link ──────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -60px;
  left: var(--sp-4);
  background: var(--c-accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  z-index: 200;
  transition: top var(--t-fast);
}

.skip-link:focus { top: 0; color: #fff; border-bottom: none; }

/* ── 29. Responsive — Tablet ────────────────────────────────── */
@media (max-width: 1280px) {
  :root {
    --nav-w: 240px;
    --toc-w: 200px;
  }
  .main-content {
    padding: var(--sp-6) var(--sp-8);
  }
}

@media (max-width: 1100px) {
  .toc-sidebar { display: none; }
  .main-content { margin-right: 0; }
  .site-footer { margin-right: 0; }
}

@media (max-width: 840px) {
  :root {
    --nav-w: 0px;
  }

  .site-nav {
    transform: translateX(-100%);
    transition: transform var(--t-normal);
    width: 280px;
    box-shadow: var(--shadow-lg);
    z-index: 90;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: var(--sp-5) var(--sp-5);
  }

  .site-footer {
    margin-left: 0;
    padding: var(--sp-6) var(--sp-5);
  }

  .btn-menu-toggle { display: flex; }

  .header-search { min-width: 140px; max-width: 200px; }
  .header-nav-links { display: none; }

  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-8) var(--sp-6);
  }

  .cta-body { max-width: none; }

  .download-box { flex-direction: column; text-align: center; }
  .btn-download { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  h1, .page-hero-title { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page-meta-bar { gap: var(--sp-3); }
  .header-logo-text { display: none; }
  .header-search { min-width: 120px; }
}

/* ── 30. Nav Overlay (mobile) ───────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 80;
  backdrop-filter: blur(2px);
}

.nav-overlay.active { display: block; }

/* ── 31. Print Styles ───────────────────────────────────────── */
@media print {
  .site-header,
  .site-nav,
  .toc-sidebar,
  .reading-progress,
  .nav-overlay,
  .cta-banner,
  .btn-download,
  .btn-menu-toggle { display: none !important; }

  .page-wrapper { padding-top: 0; }
  .main-content { margin: 0; padding: 0; }
  .site-footer { margin: 0; }

  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }

  h2, h3 { page-break-after: avoid; }
  figure, .card, .callout { page-break-inside: avoid; }
}
