/* Matches Desktop HUB DefaultPH theme (see PornhubApiWrapper.DesktopClient/Themes/DefaultPH.xaml) */
:root {
  --bg: #101114;
  --panel: #1a1c21;
  --panel-alt: #252833;
  --text: #f2f2f2;
  --muted: #c4c6ce;
  --accent: #f6a623;
  --accent-2: #ffbe55;
  --border: #2f3440;
  --btn-primary-fg: #221300;
  --btn-primary-border: #b37718;
}

/* YouPorn-style: charcoal + yellow */
html[data-site-theme="youporn"] {
  --bg: #111111;
  --panel: #1a1a1a;
  --panel-alt: #242424;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --accent: #ffcc00;
  --accent-2: #ffe066;
  --border: #333333;
  --btn-primary-fg: #1a1400;
  --btn-primary-border: #a88600;
}

/* XVideos-style: black + red */
html[data-site-theme="xvideos"] {
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-alt: #1e1e1e;
  --text: #eeeeee;
  --muted: #b0b0b0;
  --accent: #de2600;
  --accent-2: #ff4d2e;
  --border: #2a2a2a;
  --btn-primary-fg: #1a0800;
  --btn-primary-border: #9a1a00;
}

/* Hypnotube-style: violet-black + magenta */
html[data-site-theme="hypnotube"] {
  --bg: #150a1c;
  --panel: #1f1028;
  --panel-alt: #2a1635;
  --text: #f2eaf5;
  --muted: #c9b8d4;
  --accent: #e040b0;
  --accent-2: #f070c8;
  --border: #3a2448;
  --btn-primary-fg: #1a0614;
  --btn-primary-border: #902070;
}

/* Pride (LGBT): rainbow brand bar + tinted backdrop */
html[data-site-theme="lgbt"] {
  --bg: #120a18;
  --panel: #1a1020;
  --panel-alt: #251a2e;
  --text: #f8f4fc;
  --muted: #d0c4dc;
  --accent: #ff2185;
  --accent-2: #ff6eb0;
  --border: #352a42;
  --btn-primary-fg: #1a0610;
  --btn-primary-border: #c01860;
}
html[data-site-theme="lgbt"] body {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 33, 133, 0.14) 0%, transparent 44%),
    radial-gradient(circle at 12% 92%, rgba(115, 41, 130, 0.12) 0%, transparent 48%),
    radial-gradient(circle at top right, var(--panel-alt) 0%, var(--bg) 55%);
}
html[data-site-theme="lgbt"] .brand-hub {
  background: linear-gradient(90deg, #e40303 0%, #ff8c00 16.66%, #ffed00 33.33%, #008026 50%, #004cff 66.66%, #732982 100%);
  color: #0c0610;
}

/* Trans pride: flag bar + cool backdrop */
html[data-site-theme="trans"] {
  --bg: #0d1522;
  --panel: #121f2e;
  --panel-alt: #1a2a3d;
  --text: #f0f7ff;
  --muted: #a8c4de;
  --accent: #5bcefa;
  --accent-2: #8fdcff;
  --border: #243a52;
  --btn-primary-fg: #0a1624;
  --btn-primary-border: #2a8ec4;
}
html[data-site-theme="trans"] body {
  background:
    radial-gradient(ellipse 130% 90% at 50% -25%, rgba(91, 206, 250, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 90% 70% at 100% 100%, rgba(245, 169, 184, 0.14) 0%, transparent 52%),
    radial-gradient(circle at top right, var(--panel-alt) 0%, var(--bg) 55%);
}
html[data-site-theme="trans"] .brand-hub {
  background: linear-gradient(90deg, #5bcefa 0%, #5bcefa 20%, #f5a9b8 20%, #f5a9b8 40%, #ffffff 40%, #ffffff 60%, #f5a9b8 60%, #f5a9b8 80%, #5bcefa 80%, #5bcefa 100%);
  color: #0a1624;
}

/* USA / patriotic: flag bar + navy backdrop */
html[data-site-theme="usa"] {
  --bg: #0a1628;
  --panel: #0f1e35;
  --panel-alt: #152847;
  --text: #f4f7fb;
  --muted: #a8b8d0;
  --accent: #bf0a30;
  --accent-2: #e83a5a;
  --border: #1c3355;
  --btn-primary-fg: #f4f7fb;
  --btn-primary-border: #8a0822;
}
html[data-site-theme="usa"] body {
  background:
    radial-gradient(circle at 88% 8%, rgba(191, 10, 48, 0.14) 0%, transparent 44%),
    radial-gradient(circle at 12% 92%, rgba(60, 59, 110, 0.12) 0%, transparent 48%),
    radial-gradient(circle at top right, var(--panel-alt) 0%, var(--bg) 55%);
}
html[data-site-theme="usa"] .brand-hub {
  background: linear-gradient(90deg, #b22234 0%, #b22234 33.33%, #ffffff 33.33%, #ffffff 66.66%, #3c3b6e 66.66%, #3c3b6e 100%);
  color: #0a1624;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top right, var(--panel-alt) 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.4;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1180px, 92vw); margin: 0 auto; }
.row { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.65rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, rgba(0, 0, 0, 0.2));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
/* Wider than page body so brand + nav links stay on one row */
.topbar .container {
  width: min(1680px, 98vw);
  padding: 0.7rem 0.75rem;
}
.topbar .container.row {
  flex-wrap: nowrap;
  gap: 1rem;
}
.topbar nav.row {
  flex-wrap: nowrap;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.topbar nav a {
  white-space: nowrap;
  font-size: 0.9rem;
}
.topbar .brand {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .topbar .container.row,
  .topbar nav.row {
    flex-wrap: wrap;
  }
  .topbar nav.row {
    justify-content: flex-start;
  }
}

.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.brand-desktop { font-size: 1.2rem; }
.brand-hub {
  background: var(--accent);
  color: #1a1000;
  border-radius: 0.4rem;
  padding: 0.25rem 0.55rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.hero { padding: 3rem 0 2.2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}
.kicker {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
h1 { margin: 0.2rem 0 0.8rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { margin: 0 0 0.8rem; font-size: clamp(1.2rem, 2.8vw, 1.8rem); }
h3 { margin: 0 0 0.6rem; }

.lead { max-width: 60ch; color: var(--muted); }
.meta { margin-top: 1rem; }
.chip {
  border: 1px solid var(--border);
  background: var(--panel-alt);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
}
.visitor-chip {
  color: #d9e4f8;
}
.visitor-chip-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.visitor-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
  animation: visitor-live-pulse 2s ease-out infinite;
}
.visitor-chip-stale .visitor-live-dot {
  background: var(--muted);
  animation: none;
  box-shadow: none;
}
@keyframes visitor-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 0.35rem rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.visitor-footer-stats {
  font-size: 0.82rem;
}

.section { padding: 2.1rem 0; }
.section.alt { background: rgba(0, 0, 0, 0.22); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), var(--panel-alt));
  border-radius: 0.8rem;
  padding: 1rem;
}

.spotlight { min-height: 220px; }
.clean-list { list-style: none; margin: 0; padding: 0; }
.clean-list li {
  padding: 0.5rem 0;
  border-top: 1px dashed #2a3342;
}
.clean-list li:first-child { border-top: 0; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}
.cap-item {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.9rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
}
.shot-card {
  overflow: hidden;
  padding: 0;
}
.shot-image-wrap {
  border-bottom: 1px solid var(--border);
  background: #0c1118;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  position: relative;
}
.shot-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 160ms ease;
}
.shot-image-wrap img.is-blurred {
  filter: blur(13px) saturate(0.85);
}
.shot-fallback {
  color: var(--muted);
  font-size: 0.88rem;
}
.shot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10,12,18,0.12), rgba(10,12,18,0.55));
  color: #f8fbff;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
}
.shot-overlay .pill {
  background: rgba(15, 18, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  font-size: 0.85rem;
}
.shot-body {
  padding: 0.8rem 0.9rem 0.9rem;
}
.shot-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.shot-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.download-card h3 { margin-bottom: 0.35rem; }
.download-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.8rem; }
.download-count {
  display: inline-block;
  font-size: 0.78rem;
  color: #ffdca2;
  background: rgba(247, 166, 35, 0.16);
  border: 1px solid rgba(247, 166, 35, 0.35);
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
}
.download-count-row {
  margin: 0.25rem 0 0.55rem;
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.58rem 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-border);
}
.btn-secondary {
  background: var(--panel-alt);
  color: var(--text);
  border-color: var(--border);
}
.btn-small { padding: 0.4rem 0.62rem; font-size: 0.85rem; }

.viewer-toolbar { margin-bottom: 0.7rem; }
button,
input,
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
textarea,
select {
  padding: 0.45rem 0.55rem;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: auto;
  background: transparent;
}
input[type="color"] {
  padding: 0.1rem;
  background: var(--panel);
  border: 1px solid var(--border);
}
option,
optgroup {
  background: var(--panel);
  color: var(--text);
}
::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
select {
  padding: 0.45rem 0.55rem;
}
.code-block {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: #0e131d;
  color: #d8e0f1;
  font-size: 0.86rem;
  overflow: auto;
  max-height: 460px;
}
.docs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.doc-card {
  background: linear-gradient(180deg, #181f2d, #111726);
}
.doc-title {
  margin: 0 0 0.3rem;
}
.doc-text {
  margin: 0 0 0.6rem;
  color: var(--muted);
}
.doc-notes {
  margin-top: 0.55rem;
  padding-left: 1.1rem;
  color: #cfd7e8;
  font-size: 0.9rem;
}
.doc-notes li { margin: 0.3rem 0; }

/* C#/.NET code-theme overrides for docs section */
.docs-grid .code-block {
  margin-top: 0.7rem;
  background: linear-gradient(180deg, #0d1220, #0a0f1a);
  border: 1px solid #2a3550;
  color: #dbe4ff;
  font-family: Consolas, "Cascadia Code", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  max-height: none;
  white-space: pre;
}

.shot-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.shot-modal.open {
  display: block;
}
.shot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.shot-modal-content {
  position: relative;
  margin: 4vh auto 0;
  width: min(1060px, 94vw);
  max-height: 92vh;
  overflow: auto;
}
.shot-modal-content img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  display: block;
}
.shot-modal-close {
  margin-bottom: 0.7rem;
}

/* Age verification gate (Pornhub-style) */
html.age-gate-active,
body.age-gate-active {
  overflow: hidden;
}
.age-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.age-gate-modal.open {
  display: flex;
}
.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
}
.age-gate-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 94vw);
  padding: 2rem 1.75rem 1.4rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  background: linear-gradient(180deg, var(--panel-alt), var(--panel));
}
.age-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.age-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--accent);
  color: var(--accent-2);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
}
.age-gate-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  letter-spacing: 0.01em;
}
.age-gate-desc,
.age-gate-legal {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.age-gate-actions {
  margin: 1.25rem 0 0.85rem;
}
.age-gate-enter {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 0.6rem;
}
.age-gate-exit-wrap {
  margin: 0;
}
.age-gate-exit {
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.age-gate-exit:hover {
  color: var(--text);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.89rem; }
th, td { border-bottom: 1px solid #293245; padding: 0.62rem; text-align: left; vertical-align: top; }
th { color: #e7ecf8; }
.hash { font-family: Consolas, ui-monospace, monospace; font-size: 0.78rem; word-break: break-all; color: #d7deef; }

.muted { color: var(--muted); }
.footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.3rem;
  margin-top: 1rem;
}

/* Feature catalog (Settings -> Features parity) */
.features-intro {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.features-intro h2 {
  margin: 0 0 0.35rem;
}
.features-intro-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--btn-primary-fg);
  display: grid;
  place-items: center;
  font-family: "Segoe MDL2 Assets", sans-serif;
  font-size: 1.35rem;
}
.features-subhead {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.features-subhead-pro {
  color: #e8c96a;
}
.features-subtext {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}
.features-divider {
  height: 1px;
  background: var(--border);
  margin: 1.2rem 0 1.4rem;
}
.features-pro-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}
.features-pro-header > div:nth-child(2) {
  flex: 1 1 220px;
}
.features-pro-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #e8c96a, #d4af37);
  color: #1a1000;
  display: grid;
  place-items: center;
  font-family: "Segoe MDL2 Assets", sans-serif;
  font-size: 1.1rem;
}
.features-pro-cta {
  margin-left: auto;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.feature-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel-alt) 88%, var(--panel)));
  border-radius: 0.65rem;
  padding: 0.85rem 0.9rem;
  min-height: 100%;
}
.feature-card-pro {
  border-color: color-mix(in srgb, #d4af37 55%, var(--border));
  border-width: 1.5px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08);
}
.feature-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 0.55rem;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: "Segoe MDL2 Assets", sans-serif;
  font-size: 1.15rem;
  color: var(--accent-2);
}
.feature-card-pro .feature-card-icon {
  background: color-mix(in srgb, #d4af37 22%, var(--panel-alt));
  border-color: color-mix(in srgb, #d4af37 40%, var(--border));
  color: #e8c96a;
}
.feature-card-proplus {
  border-color: color-mix(in srgb, #b388ff 55%, var(--border));
  border-width: 1.5px;
  box-shadow: 0 0 0 1px rgba(179, 136, 255, 0.1);
}
.feature-card-proplus .feature-card-icon {
  background: color-mix(in srgb, #b388ff 22%, var(--panel-alt));
  border-color: color-mix(in srgb, #b388ff 40%, var(--border));
  color: #d4b8ff;
}
.features-proplus-badge {
  background: color-mix(in srgb, #b388ff 35%, var(--panel-alt));
  color: #e8d4ff;
}
.feature-card-body {
  min-width: 0;
}
.feature-card-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  line-height: 1.25;
}
.feature-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Changelog (Settings -> About parity) */
.changelog-panel {
  max-height: min(520px, 70vh);
  overflow-y: auto;
  padding: 1rem 1.1rem;
  margin-top: 0.6rem;
}
.changelog-release {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.changelog-release:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.changelog-version {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.changelog-items {
  margin: 0;
  padding: 0 0 0 0.15rem;
  list-style: none;
}
.changelog-items li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.changelog-items li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .features-pro-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* Pornhub Windows app guide (pornhub-windows-app.html) */
.guide-hero {
  padding: 2.5rem 0 1.5rem;
  max-width: 68ch;
}
.guide-hero h1 { margin-bottom: 0.65rem; }
.guide-hero .lead { max-width: none; font-size: 1.05rem; line-height: 1.65; }
.guide-cta-row { margin-top: 1.25rem; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}
.guide-toc {
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  font-size: 0.88rem;
}
.guide-toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-2);
  font-weight: 700;
}
.guide-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-toc > ul > li { margin-bottom: 0.55rem; }
.guide-toc a {
  display: block;
  padding: 0.2rem 0;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.guide-toc a:hover,
.guide-toc a.is-active {
  color: var(--text);
  text-decoration: none;
}
.guide-toc a.is-active { font-weight: 600; }
.guide-toc-sub {
  margin: 0.25rem 0 0 0.75rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--border);
}
.guide-toc-sub a {
  font-size: 0.82rem;
  padding: 0.15rem 0;
}

.guide-content { min-width: 0; }
.guide-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}
.guide-section > h2 {
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}
.guide-section-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
  font-size: 0.98rem;
}

.guide-feature {
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel-alt) 90%, var(--panel)));
  scroll-margin-top: 5rem;
}
.guide-feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.3;
}
.guide-feature p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 68ch;
}
.guide-feature p:last-child { margin-bottom: 0; }
.guide-feature-how {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--panel-alt) 70%, transparent);
  border: 1px dashed color-mix(in srgb, var(--border) 80%, var(--accent));
}
.guide-feature-how-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
}
.guide-feature-how ol,
.guide-feature-how ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #d4dae8;
  font-size: 0.9rem;
  line-height: 1.55;
}
.guide-feature-how li { margin: 0.3rem 0; }

.guide-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.guide-badge-pro {
  background: color-mix(in srgb, #d4af37 25%, var(--panel-alt));
  color: #e8c96a;
  border: 1px solid color-mix(in srgb, #d4af37 45%, var(--border));
}
.guide-badge-proplus {
  background: color-mix(in srgb, #b388ff 22%, var(--panel-alt));
  color: #d4b8ff;
  border: 1px solid color-mix(in srgb, #b388ff 40%, var(--border));
}
.guide-badge-free {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel-alt));
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}

.guide-tip {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel-alt));
  border-radius: 0 0.45rem 0.45rem 0;
  font-size: 0.88rem;
  color: #d8dee8;
  line-height: 1.5;
}
.guide-tip strong { color: var(--text); }

.site-alert {
  margin-top: 1.15rem;
  padding: 0.95rem 1.05rem;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}
.site-alert strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
}

.guide-faq details {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--panel);
  overflow: hidden;
}
.guide-faq summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq details[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}
.guide-faq details p {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.guide-mobile-toc {
  display: none;
  margin-bottom: 1.5rem;
}
.guide-mobile-toc select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { display: none; }
  .guide-mobile-toc { display: block; }
}
