:root {
  --bg: #faf9f6;
  --fg: #1d1d1f;
  --accent: #0071e3;
  --accent-hover: #0060c0;
  --muted: #6e6e73;
  --card: #ffffff;
  --border: #e5e5ea;
  --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --fg: #f5f5f7;
    --accent: #2997ff;
    --accent-hover: #40a9ff;
    --muted: #98989d;
    --card: #2c2c2e;
    --border: #38383a;
    --hero-gradient: linear-gradient(135deg, #434575 0%, #4a2d6b 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-top-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  flex-shrink: 0;
}

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

.site-top-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-top-cluster--subonly {
  margin-left: auto;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: var(--accent);
  background: rgba(0, 113, 227, 0.07);
}

@media (prefers-color-scheme: dark) {
  .site-nav-link:hover {
    background: rgba(41, 151, 255, 0.12);
  }
}

.site-nav-link--current {
  color: var(--accent);
  font-weight: 600;
  background: rgba(0, 113, 227, 0.1);
}

@media (prefers-color-scheme: dark) {
  .site-nav-link--current {
    background: rgba(41, 151, 255, 0.15);
  }
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  color: var(--fg);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.site-nav-toggle:hover {
  border-color: #c7c7cc;
}

.site-nav-toggle-bars,
.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.site-nav-toggle-bars::before,
.site-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav-toggle-bars::before {
  top: -6px;
}

.site-nav-toggle-bars::after {
  top: 6px;
}

@media (max-width: 768px) {
  .site-top-inner {
    flex-wrap: wrap;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 5;
    display: none;
    justify-content: stretch;
    padding: 4px 0 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav-link {
    border-radius: 8px;
    padding: 12px 14px;
  }

  .site-top-cluster {
    margin-left: auto;
  }
}

.lang-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lang-field-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.lang-select-shell {
  position: relative;
  min-width: min(200px, 52vw);
  max-width: 240px;
}

.lang-select-shell::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  pointer-events: none;
  background: var(--muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lang-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 34px 9px 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-select:hover {
  border-color: #c7c7cc;
}

@media (prefers-color-scheme: dark) {
  .lang-select:hover {
    border-color: #545458;
  }
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.22);
}

@media (prefers-color-scheme: dark) {
  .lang-select:focus {
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.28);
  }
}

.lang-select option {
  font-weight: 450;
  color: var(--fg);
  background: var(--card);
}

@media (max-width: 520px) {
  .lang-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lang-field {
    flex: 1;
    justify-content: flex-end;
  }

  .lang-select-shell {
    min-width: 0;
    max-width: none;
    flex: 1;
  }
}

.hero {
  background: var(--hero-gradient);
  padding: 72px 24px 56px;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 16px;
  font-weight: 400;
}

.version-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cta-btn--solid {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.cta-btn--solid:hover {
  background: var(--accent-hover);
  color: #fff;
}

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 40px;
}

.formats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.format-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.new-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 16px;
  text-align: center;
}

.gallery-caption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.languages-section .lang-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lang-tag {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.cta-section {
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 90%;
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Privacy, Support — same chrome as marketing site */
body.subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-top-inner--simple {
  justify-content: flex-start;
}

.subpage-hero {
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  padding: 40px 24px 36px;
}

.subpage-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.subpage-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.subpage-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  width: 100%;
}

.subpage-back {
  margin-bottom: 28px;
}

.subpage-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.subpage-back a:hover {
  text-decoration: underline;
}

.subpage-main h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

.subpage-main h2:first-of-type {
  margin-top: 0;
}

.subpage-main p {
  color: var(--fg);
  margin-bottom: 14px;
}

.subpage-main a {
  color: var(--accent);
}

.subpage-main a:hover {
  text-decoration: underline;
}

.subpage-main .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.subpage-highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.subpage-highlight strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--fg);
}

.subpage-highlight p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.subpage-list {
  margin: 12px 0 20px;
  padding-left: 1.25rem;
  color: var(--muted);
}

.subpage-list li {
  margin-bottom: 10px;
}

.subpage-list li:last-child {
  margin-bottom: 0;
}

.subpage-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.subpage-cta a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.subpage-cta a:hover {
  text-decoration: underline;
}

/* ——— User guide (sidebar + steps, Apple-doc–inspired) ——— */
.guide-page .guide-lang-root:not([hidden]) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-page .site-top-inner--guide {
  max-width: 1200px;
}

.guide-top-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-lang-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.guide-lang-select {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  min-width: 140px;
}

.guide-hero {
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  padding: 36px 24px 32px;
}

.guide-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.guide-hero p {
  font-size: 1rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.guide-shell {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  width: 100%;
  display: grid;
  grid-template-columns: min(260px, 32vw) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 56px;
  padding-top: 24px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.guide-nav-title {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.guide-nav li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

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

.guide-nav a {
  display: block;
  padding: 10px 4px 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.35;
}

.guide-nav a:hover {
  color: var(--accent);
}

.guide-main {
  padding-top: 24px;
  padding-bottom: 24px;
  min-width: 0;
}

.guide-back {
  margin-bottom: 28px;
}

.guide-back a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.guide-back a:hover {
  text-decoration: underline;
}

.guide-topic {
  scroll-margin-top: 72px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.guide-topic:last-of-type {
  border-bottom: none;
}

.guide-topic h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 28px 0 14px;
  color: var(--fg);
}

.guide-main > .guide-topic:first-of-type h2 {
  margin-top: 0;
}

.guide-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.guide-objectives {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}

.guide-objectives-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 10px;
}

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

.guide-checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.45;
}

.guide-checklist li:last-child {
  margin-bottom: 0;
}

.guide-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.guide-topic h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 22px 0 10px;
  color: var(--fg);
}

.guide-topic h3:first-of-type {
  margin-top: 12px;
}

.guide-prose {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.guide-detail-list {
  margin: 8px 0 12px;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.guide-detail-list li {
  margin-bottom: 6px;
}

.guide-detail-list li:last-child {
  margin-bottom: 0;
}

.guide-callout.guide-callout--why {
  border-left-color: #34c759;
}

.guide-callout.guide-callout--why strong {
  color: #248a3d;
}

@media (prefers-color-scheme: dark) {
  .guide-callout.guide-callout--why strong {
    color: #30d158;
  }
}

.guide-callout.guide-callout--caution {
  border-left-color: #ff9500;
}

.guide-callout.guide-callout--caution strong {
  color: #c93400;
}

@media (prefers-color-scheme: dark) {
  .guide-callout.guide-callout--caution strong {
    color: #ff9f0a;
  }
}

.guide-steps {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-steps > li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.guide-steps > li:last-child {
  margin-bottom: 0;
}

.guide-steps > li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.guide-steps strong {
  color: var(--fg);
  font-weight: 650;
}

.guide-steps kbd,
.guide-main kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.guide-callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0 8px;
  box-shadow: var(--shadow);
}

.guide-callout strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 8px;
}

.guide-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.guide-main a {
  color: var(--accent);
}

.guide-mount {
  min-height: 40vh;
}

.guide-error {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 24px;
  color: var(--muted);
}

.guide-table-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.guide-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.75rem 0 1.25rem;
}

.guide-md-table th,
.guide-md-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: start;
  vertical-align: top;
}

.guide-md-table th {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.guide-md-code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
}

.guide-footer {
  max-width: 1200px;
}

@media (max-width: 900px) {
  .guide-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 32px;
  }

  .guide-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-top: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    padding-bottom: 16px;
  }

  .guide-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .guide-nav li {
    border: none;
  }

  .guide-nav a {
    padding: 6px 0;
    font-size: 0.88rem;
  }
}

/* Changelog */
.changelog-main {
  max-width: 720px;
}

.changelog-mount {
  margin-top: 8px;
}

.changelog-release {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.changelog-release:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.changelog-release-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.changelog-release-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.changelog-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.changelog-intro {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 16px;
}

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

.changelog-item {
  position: relative;
  padding: 10px 0 10px 0;
  border-top: 1px solid var(--border);
  line-height: 1.5;
  color: var(--fg);
}

.changelog-item:first-of-type {
  border-top: none;
}

.changelog-kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.changelog-kind--feature {
  background: rgba(52, 120, 246, 0.15);
  color: #1a5fd4;
}

.changelog-kind--fix {
  background: rgba(220, 80, 60, 0.12);
  color: #b03020;
}

.changelog-kind--improvement {
  background: rgba(120, 100, 200, 0.14);
  color: #5a4aa8;
}

.changelog-kind--note {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
}

.changelog-error,
.changelog-empty {
  color: var(--muted);
}

/* Plan de page (sidebar) — accueil, sous-pages, changelog ; le guide garde son TOC existant */
.page-main {
  min-width: 0;
  padding-top: 24px;
  padding-bottom: 8px;
}

.subpage-with-toc .subpage-main,
.changelog-with-toc .changelog-main {
  margin-left: 0;
  margin-right: 0;
}

.page-main h1[id],
.page-main h2[id],
.subpage-main h2[id],
#changelog-main article.changelog-release[id] {
  scroll-margin-top: 76px;
}

