/* Content pages: guides, comparisons, folder explainers. Built by Scripts/build_pages.py. */
@import url("./theme.css?v=2");

:root {
  --night: #241D47;
  --accent-soft: #FAE5C8;
  --safe: #1F6943; --safe-bg: #E6F5EC; --look: #754D00; --look-bg: #FFF0D1; --keep: #913030; --keep-bg: #FBE9E9;
  --code-bg: #EFE0CB;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; background: var(--page-light, var(--bg)); color: var(--ink); font: 400 17px/1.65 var(--body); }
@media (prefers-reduced-motion: no-preference) { body { transition: background-color .65s ease; } }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: 8px; transform: translateY(-140%); }
.skip:focus { transform: none; background: var(--surface); padding: 8px 12px; z-index: 10; }
.small { font-size: 14px; color: var(--muted); }

.bar { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.nav {
  position: sticky; top: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  width: fit-content; max-width: calc(100% - 24px); gap: clamp(18px, 3vw, 42px);
  margin: 12px auto 0; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--nav-bg); box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--nav-ink); }
.brand img { display: block; border-radius: 22.5%; }
.nav .brand { white-space: nowrap; font-size: 17px; letter-spacing: -.01em; }
.nav .brand img { width: 26px; height: 26px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.nav nav a { color: var(--nav-ink); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--soft); }
a.dl, .nav nav .btn { display: inline-flex; background: var(--honey); color: #1d1406; font: 700 14px var(--body); padding: 9px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 20px -9px rgba(214,150,20,.55), inset 0 1px 0 rgba(255,255,255,.7); }
a.dl:hover, .nav nav .btn:hover { filter: brightness(1.05); }
.nav .menu, .nav nav .nav-send { display: none; }
.nav .menu summary { display: grid; place-items: center; list-style: none; width: 40px; height: 40px; border-radius: 50%; color: var(--nav-ink); cursor: pointer; }
.nav .menu summary::-webkit-details-marker { display: none; }
.nav .menu summary::before { content: ""; width: 18px; height: 12px; background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat; }
.nav .menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.nav .menu[open] summary, .nav .menu summary:hover { background: rgba(60,36,20,.08); }
.nav .menu-panel { position: absolute; inset: calc(100% + 8px) 0 auto; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--nav-shadow); }
.nav .menu-panel a { padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.nav .menu-panel a:hover { background: rgba(60,36,20,.06); }
@media (max-width: 900px) { .nav nav { gap: clamp(10px, 2vw, 16px); } }
@media (min-width: 641px) and (max-width: 700px) {
  .nav { gap: 12px; }
  .nav nav { gap: 9px; }
}
@media (max-width: 640px) {
  .nav { width: auto; margin-inline: 12px; gap: 8px; }
  .nav .brand { font-size: 16px; gap: 8px; }
  .nav nav { gap: 10px; }
  .nav nav > a:not(.btn) { display: none; }
  .nav .menu { display: block; }
}
@media (max-width: 560px) {
  .nav { top: 10px; margin-top: 10px; }
  .nav .brand { font-size: 15.5px; }
  .nav nav { gap: 6px; }
  .nav nav .btn { display: none; }
  .nav nav .nav-send { display: inline-flex; padding: 9px 14px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  .nav { padding-left: 10px; gap: 4px; }
  .nav .brand { font-size: 14px; gap: 6px; }
  .nav .brand img { width: 22px; height: 22px; }
  .nav nav .nav-send { padding-inline: 10px; }
}

.page { max-width: 792px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 28px) 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 5vw, 43px); line-height: 1.16; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2.8vw, 20px); line-height: 1.5; color: var(--muted); margin: 0 0 10px; }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }

.prose h2 { font-size: 26px; line-height: 1.25; margin: 44px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 700; }
.prose code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose pre { background: var(--night); color: #f2eff8; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0 0 18px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; background: var(--accent-soft); }
.prose blockquote { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--honey-2); background: var(--accent-soft); border-radius: 0 12px 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 35px 0; }
.outline { margin: 0 0 32px; padding: 0 0 0 16px; border-left: 3px solid var(--honey-2); }
.outline h2 { margin: 0 0 8px; font-size: 16px; }
.outline ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.outline li:last-child, .chapter > :last-child { margin-bottom: 0; }
.chapter { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.chapter > h2 { margin-top: 0; text-wrap: balance; }
.review-figure { margin: 20px 0; }
.review-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.review-figure figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.faq { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 24px; }
.faq h2 { margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; padding: 12px 28px 12px 0; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }

/* The short answer box at the top of a page (quotable, 40-60 words). */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 26px; box-shadow: 0 1px 0 var(--line); }
.answer > :last-child { margin-bottom: 0; }
.answer .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* Verdicts used on folder pages and in tables. */
.verdict { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.verdict.safe { color: var(--safe); background: var(--safe-bg); }
.verdict.look { color: var(--look); background: var(--look-bg); }
.verdict.keep { color: var(--keep); background: var(--keep-bg); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 26px; }
.facts dt { font-weight: 700; color: var(--muted); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }

.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--honey); color: #1d1406; font-weight: 700; display: grid; place-items: center; font-size: 15px; }

.cta { display: flex; gap: 24px; align-items: center; background: radial-gradient(ellipse at top left, #352B52, var(--night) 65%); color: #f2eff8; border-radius: 20px; padding: clamp(16px, 4vw, 28px); margin: 36px 0; }
.cta-copy { flex: 1; min-width: 0; }
.cta h2 { margin: 0 0 10px; font-size: clamp(20px, 3.5vw, 25px); line-height: 1.25; text-wrap: balance; }
.cta p { margin: 0 0 16px; font-size: 15px; color: #e1d9f0; }
.cta .small { color: #c1b6d3; margin: 8px 0 0; font-size: 13px; }
.cta-demo { width: 48%; position: relative; }
.cta-demo video { display: block; width: 100%; height: auto; border-radius: 12px; background: #151328; }
.cta-demo .demo-toggle { position: absolute; bottom: 8px; right: 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: #151E32; color: #FFF6E4; padding: 6px 12px; font: 600 13px var(--body); cursor: pointer; }
@media (max-width: 640px) { .cta { flex-direction: column; align-items: stretch; gap: 16px; } .cta-demo { width: 100%; } }

.related, .sources { padding-top: 20px; border-top: 1px solid var(--line); }
.related h2, .sources h2 { font-size: 20px; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.related a { display: block; height: 100%; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.related a:hover { border-color: var(--accent); }
@media (max-width: 520px) { .related ul { grid-template-columns: 1fr; } }
.sources ol { font-size: 14px; color: var(--muted); padding-left: 20px; }
.sources a { color: var(--muted); overflow-wrap: anywhere; }

.hub .cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.hub .cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.hub .cards a:hover, .hub .cards a:focus-visible { border-color: var(--accent); }
.hub .cards span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.hub.page { max-width: 1040px; }
.hub-compare.page { max-width: 1280px; }
.hub-compare h1 { font-size: clamp(28px, 4.5vw, 54px); }
.hub-compare .lead { max-width: 65ch; }
.hub-compare .cards { display: flex; flex-wrap: wrap; gap: 16px; }
.hub-compare .cards > li { flex: 1 1 100%; min-width: 0; }
.hub-compare .cards a { gap: 8px; padding: clamp(16px, 2.2vw, 24px); }
.hub-compare .cards strong { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35; }
.hub-compare .cards span { font-size: 16px; }
.hub-compare .cta { flex-direction: column; align-items: stretch; }
.hub-compare .cta-demo { width: 100%; }
@media (min-width: 620px) {
  .hub-compare .cards > li { flex-basis: calc((100% - 16px) / 2); }
}
@media (min-width: 800px) {
  .hub-compare .cta { flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 48px); }
  .hub-compare .cta-demo { width: 60%; }
}
@media (min-width: 960px) {
  .hub-compare .cards > li { flex-basis: calc((100% - 32px) / 3); }
}

.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; }
.foot .brand { color: var(--ink); }
.foot .brand { justify-self: start; }
.foot .small { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) { .hub .cards a { transition: transform .15s ease, border-color .15s ease; } }

/* ---- Article pages: publication layout (guides, compare, files) ---- */
.page.article { max-width: 700px; padding-top: clamp(32px, 6vw, 64px); }
.article .crumbs { font-size: 13px; letter-spacing: .02em; margin-bottom: 28px; }
.article h1 { font-family: var(--body); font-weight: 700; font-size: clamp(30px, 4.6vw, 42px); line-height: 1.14; letter-spacing: -0.022em; margin: 0 0 14px; }
.article .lead { font-family: var(--body); font-size: clamp(18px, 2.4vw, 21px); line-height: 1.45; color: var(--muted); margin: 0 0 28px; }
.article .byline { display: flex; align-items: center; gap: 12px; margin: 0 0 36px; padding: 0 0 26px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article .byline img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.article .byline b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.article .byline a { color: inherit; }
.article .meta { display: none; }
.article .prose { font-family: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 20px; line-height: 1.72; color: var(--ink); }
.article .prose p, .article .prose li { margin: 0 0 22px; }
.article .prose li { margin-bottom: 10px; }
.article .prose h2 { font-family: var(--body); font-size: 25px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 52px 0 14px; }
.article .prose h3 { font-family: var(--body); font-size: 20px; font-weight: 700; margin: 36px 0 10px; }
.article .prose a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article .prose code { font-size: .78em; background: rgba(36, 29, 71, .06); padding: 2px 5px; border-radius: 4px; }
.article .prose pre { font-size: 14px; border-radius: 8px; margin: 0 0 26px; }
.article .prose table { font-family: var(--body); font-size: 15px; margin: 4px 0 30px; }
.article .prose th { background: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 8px 12px 8px 0; }
.article .prose td { padding: 11px 12px 11px 0; }
.article .prose blockquote { background: none; border-left: 3px solid var(--ink); border-radius: 0; padding: 2px 0 2px 20px; font-style: italic; margin: 0 0 26px; }
.article .answer { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); margin: 0 0 34px; }
.article .answer .label { display: none; }
.article .answer p { font-size: 20px; }
.article .facts { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; gap: 0; margin: 0 0 34px; font-family: var(--body); font-size: 15px; border-top: 1px solid var(--line); }
.article .facts dt, .article .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.article .facts dt { padding-right: 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.article .faq { font-family: var(--body); }
.article .faq p { font-family: Charter, "Iowan Old Style", Georgia, serif; font-size: 18px; line-height: 1.65; }
.article .related ul { grid-template-columns: 1fr; gap: 0; }
.article .related a { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; font-weight: 600; }
.article .related a:hover { color: var(--accent); }
@media (max-width: 600px) { .article .prose, .article .answer p { font-size: 18px; } .article .facts { grid-template-columns: 1fr; } .article .facts dt { padding-bottom: 0; border-bottom: 0; } }

/* ---- Article figures ---- */
.page.article figure{margin:36px 0;}
.page.article figure img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid rgba(0,0,0,.08);}
.page.article figcaption{margin-top:10px;font-size:15px;line-height:1.5;color:var(--muted,#6b6257);text-align:center;}
@media (min-width:820px){.page.article figure{margin-left:-40px;margin-right:-40px;}}
.page.article figure img[src*="storage-settings"]{max-width:440px;margin:0 auto;}
