/* Album Download — Clean Light UI Stylesheet (matching extension UI + #209cef icon blue) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sidebar-width: 270px;
  --content-max-width: 1180px;
  --bg: #ffffff;
  --sidebar-bg: #f5f6f8;
  --surface: #ffffff;
  --surface-alt: #f5f6f8;
  --surface-code: #f0f2f5;
  --text: #1f2328;
  --text-secondary: #3c424a;
  --text-muted: #656d76;
  --border: #e1e4e8;
  --border-strong: #cdd3da;
  --primary: #209cef;
  --primary-hover: #1182d0;
  --link: #1479c9;
  --link-hover: #0e5a98;
  --primary-soft: #eaf6fe;
  --primary-border: #b6dffb;
  --success: #2c9f57;
  --success-bg: #eefbf3;
  --success-border: #bfead0;
  --warning: #b7791f;
  --warning-bg: #fffbeb;
  --warning-border: #fce588;
  --danger: #e02d53;
  --danger-bg: #fff0f3;
  --danger-border: #ffc2cf;
  --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(31, 35, 40, 0.08);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.1875rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-code);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.14em 0.4em;
}

pre {
  font-family: var(--font-mono);
  font-size: 1rem;
  background: var(--surface-code);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background: transparent;
  color: inherit;
  border: none;
  padding: 0;
}

.container,
.container-narrow {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* App Shell & Left Sidebar */
.sidebar-toggle-input {
  display: none;
}

.mobile-topbar {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.site-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.9rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.sidebar-brand {
  padding: 0.35rem 0.6rem 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.sidebar-brand:hover,
.brand:hover {
  color: var(--link);
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.sidebar-link:hover {
  background: rgba(31, 35, 40, 0.05);
  color: var(--text);
  text-decoration: none;
}

.sidebar-link-active {
  background: var(--primary-soft);
  color: var(--link);
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar-link-active:hover {
  background: var(--primary-soft);
  color: var(--link);
}

.site-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.site-main {
  flex: 1;
}

/* Simple Overview Page (/) */
.overview-content {
  padding-top: 0.25rem;
}

.overview-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.overview-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.overview-heading .page-title {
  margin-bottom: 0;
}

.overview-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.overview-content > h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.overview-content .cta-banner {
  margin: 1.5rem 0;
}

.overview-content ul {
  margin: 0.5rem 0 1.25rem 1.4rem;
  color: var(--text-secondary);
}

.overview-content li {
  margin-bottom: 0.4rem;
}

.overview-video {
  margin-top: 2rem;
  max-width: 860px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.62rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  line-height: 1.3;
}

.btn:hover {
  text-decoration: none;
}

.btn-brand-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-sm {
  font-size: 1rem;
  padding: 0.46rem 0.92rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 0.78rem 1.4rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--text-muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Inner Page Header & Sections */
.page-hero {
  padding: 2.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--link);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section {
  padding: 2.25rem 0;
}

.section-alt {
  padding: 2.25rem 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 1000px;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Responsive Video Wrapper */
.video-frame-card {
  max-width: 880px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.card-highlight {
  border-color: var(--primary-border);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.card-text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
}

.comparison-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1.0625rem;
}

.comparison-table th,
.comparison-table td,
.data-table th,
.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table thead th,
.data-table thead th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.comparison-table tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table td.col-highlight,
.comparison-table th.col-highlight {
  background: var(--primary-soft);
  font-weight: 600;
}

.badge-yes,
.badge-no,
.badge-warn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}

.badge-yes {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}

.badge-no {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
}

.badge-warn {
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

/* Callouts */
.callout {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.callout-info {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.callout-success {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.callout-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.callout-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.callout-body {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* Prose Content */
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.prose-card h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose-card h2:not(:first-child) {
  margin-top: 1.5rem;
}

.prose-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.prose-card p {
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
}

.prose-card ul,
.prose-card ol {
  margin: 0.65rem 0 1.1rem 1.4rem;
  color: var(--text-secondary);
}

.prose-card li {
  margin-bottom: 0.4rem;
}

/* Screenshots */
.screenshot-figure {
  margin: 1.25rem 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
}

.screenshot-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.screenshot-caption {
  margin-top: 0.55rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
}

.faq-question {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.faq-answer p {
  margin-bottom: 0.65rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Changelog Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--link);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
}

.timeline-version {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

/* Subtle Light Install Banner (inner pages) */
.cta-banner-section {
  padding: 0.5rem 0 2.5rem;
}

.cta-banner {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.cta-banner-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.cta-banner-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.cta-banner-text {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.25rem 0;
  margin-top: auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.footer-inline-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-inline-links a {
  color: var(--text-muted);
}

.footer-inline-links a:hover {
  color: var(--link);
}

/* Mobile & Tablet Responsive Sidebar Drawer */
@media (max-width: 860px) {
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 110;
    height: 54px;
    padding: 0 1rem;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
  }

  .sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    user-select: none;
  }

  .sidebar-toggle-btn:hover {
    background: rgba(31, 35, 40, 0.07);
  }

  .site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 130;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-md);
  }

  .sidebar-toggle-input:checked ~ .app-shell .site-sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle-input:checked ~ .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(31, 35, 40, 0.35);
  }

  .container,
  .container-narrow {
    padding: 0 1.25rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .prose-card {
    padding: 1.25rem;
  }
}
