/* assets/theme.css */
/* Optional appearance layer; QR images and payment/brand colors remain untouched. */
/* Keep reserved ad areas out of the review experience until real, approved ads are placed. */
.ad-slot{display:none}
.theme-toggle{flex:0 0 38px;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:var(--surface,#fff);color:var(--ink);display:grid;place-items:center;font-size:20px;line-height:1;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.theme-toggle:hover{border-color:var(--accent);transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.mobile-menu-toggle{display:none}
.site-header nav a[aria-current="page"]{color:var(--accent);font-weight:750}
.site-header nav a{white-space:nowrap}
@media(max-width:800px){
  .site-header .nav-wrap{justify-content:space-between;position:relative}
  .mobile-menu-toggle{display:grid;place-items:center;margin-left:auto;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:var(--surface,#fff);color:var(--ink);font-size:18px;line-height:1;cursor:pointer}
  .mobile-menu-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
  .theme-toggle{margin-left:8px}
  .site-header .nav-wrap nav.is-open{display:flex;position:absolute;top:calc(100% + 1px);left:0;right:0;z-index:35;flex-direction:column;gap:0;padding:8px;border:1px solid var(--line);border-radius:0 0 14px 14px;background:var(--surface,#fff);box-shadow:0 20px 38px rgba(28,20,51,.16)}
  .site-header .nav-wrap nav.is-open a{display:block;padding:12px;border-radius:8px;color:var(--ink)}
  .site-header .nav-wrap nav.is-open a:hover,.site-header .nav-wrap nav.is-open a:focus-visible{background:var(--soft);color:var(--accent)}
  .site-header .nav-wrap nav.is-open{max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}
  .site-header .nav-wrap nav.is-open a[aria-current="page"]{background:var(--soft);color:var(--accent)}
}

html[data-theme="dark"]{color-scheme:dark;--ink:#f4f1ff;--muted:#b5afc3;--line:#3a3449;--soft:#211d2d;--surface:#211d2d;--accent:#aa94ff;--accent2:#beaaff;--good:#79dfac;--warn:#ffd18a;--shadow:0 22px 65px rgba(0,0,0,.24)}
html[data-theme="dark"] body{background:#14111e;color:var(--ink)}
html[data-theme="dark"] .site-header{background:rgba(25,21,35,.95);border-bottom-color:var(--line)}
html[data-theme="dark"] .site-header nav,html[data-theme="dark"] .trust-row,html[data-theme="dark"] .tool-tabs a,html[data-theme="dark"] .download-meta,html[data-theme="dark"] .preview-hint{color:var(--muted)}
html[data-theme="dark"] .header-cta{background:#e6ddff;color:#171326}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .mcp-badge{background:#2b2443;border-color:#554476;color:#d5c8ff}
html[data-theme="dark"] .tool-tabs,html[data-theme="dark"] .generator-grid,html[data-theme="dark"] .editor-card,html[data-theme="dark"] .tool-card-grid>a,html[data-theme="dark"] .article-grid>a,html[data-theme="dark"] .bulk-card,html[data-theme="dark"] .help-grid a,html[data-theme="dark"] .article-index a,html[data-theme="dark"] .scanner-card,html[data-theme="dark"] .mcp-card,html[data-theme="dark"] .contact-card{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .preview-card{background:linear-gradient(145deg,#251f35,#1e192b);border-color:var(--line)}
html[data-theme="dark"] .tool-tabs a.active{background:#39304f;color:#dccfff;box-shadow:none}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#191523;border-color:#514961;color:var(--ink)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8f879f}
html[data-theme="dark"] label,html[data-theme="dark"] .settings-group summary small,html[data-theme="dark"] .privacy-note{color:var(--muted)}
html[data-theme="dark"] .color-control,html[data-theme="dark"] .upload-zone,html[data-theme="dark"] .scanner-drop{border-color:#625773}
html[data-theme="dark"] .upload-zone:hover{background:#2b2440}
html[data-theme="dark"] .ready-badge,html[data-theme="dark"] .secondary-btn,html[data-theme="dark"] .payment-link-wrap input{background:#2c2639;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .qr-stage{background:#fff;color:#171326;border-color:#e7e2f1}
html[data-theme="dark"] .status.good,html[data-theme="dark"] .live-pill{background:#173d31;color:#9aebc2}
html[data-theme="dark"] .status.warn{background:#4c3518;color:#ffe1a7}
html[data-theme="dark"] .step,html[data-theme="dark"] .settings-group summary b,html[data-theme="dark"] .feature-icon,html[data-theme="dark"] .tips-grid article>b,html[data-theme="dark"] .field-help{background:#3b3156;color:#d2c4ff}
html[data-theme="dark"] .article-body .callout,html[data-theme="dark"] .mcp-callout,html[data-theme="dark"] .bulk-status{background:#2b2440;color:var(--muted)}
html[data-theme="dark"] .mcp-card code{background:#342b4c;color:#d9caff}
html[data-theme="dark"] .mcp-card pre code{background:none;color:inherit}
html[data-theme="dark"] .faq details,html[data-theme="dark"] .features,html[data-theme="dark"] .footer-bottom{border-color:var(--line)}
html[data-theme="dark"] .cta-band,html[data-theme="dark"] footer{background:#0c0a12}
html[data-theme="dark"] .cta-band a{background:#e6ddff;color:#171326}

/* assets/site-review.css */
/* Shared footer and supporting guidance, 2026-10-17. */
.site-footer{margin-top:40px}.site-footer .footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px}.site-footer .footer-grid>div{min-width:0}.site-footer a{overflow-wrap:anywhere}.site-footer .footer-grid b{display:block;margin-bottom:14px;color:#fff}.site-footer .footer-grid p{max-width:260px;line-height:1.7}.site-footer .footer-grid a:not(.brand){display:block;min-height:32px;padding:5px 0;line-height:1.5}.site-footer .footer-bottom{gap:16px;flex-wrap:wrap}.guide-byline{font-size:13px!important;margin:12px 0 28px!important;line-height:1.7}.tool-reference{padding:16px 0 56px}.tool-reference>h2{font-size:clamp(25px,4vw,34px);letter-spacing:-.025em}.tool-reference p,.tool-reference li{font-size:15px;line-height:1.8;color:var(--muted)}.tool-reference li+li{margin-top:10px}.reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.reference-grid article{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff)}.reference-grid h3{font-size:18px;line-height:1.4;margin:0 0 12px}.reference-grid p{margin:0}.tool-reference a,.guide-byline a,.article-body a{color:var(--accent);text-underline-offset:3px}.table-scroll{max-width:100%;overflow-x:auto;margin:24px 0}.guide-table{width:100%;border-collapse:collapse;min-width:520px;font-size:14px;line-height:1.6}.guide-table th,.guide-table td{text-align:left;vertical-align:top;padding:14px;border:1px solid var(--line)}.guide-table th{background:var(--soft)}.editorial-note{margin-top:32px;padding:22px;border:1px solid var(--line);border-radius:14px}.article-body code,.tool-reference code{overflow-wrap:anywhere}.article-body ol,.article-body ul,.tool-reference ol{padding-left:24px}html[data-theme="dark"] .reference-grid article{background:#211b2e}@media(max-width:800px){.site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:26px}.reference-grid{grid-template-columns:1fr}}@media(max-width:520px){.site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:24px 18px}.site-footer .footer-grid>div:first-child{grid-column:1/-1}.site-footer .footer-grid a:not(.brand){min-height:40px}.site-footer .footer-bottom{display:grid;gap:10px}.reference-grid article{padding:18px}.guide-table th,.guide-table td{padding:10px}.tool-reference{padding-bottom:32px}}

.site-footer .brand{display:flex;align-items:center;gap:8px}.worked-example{padding:36px 0 48px}.worked-example h2{font-size:clamp(25px,4vw,34px)}.example-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}.example-layout figure{margin:0;text-align:center}.example-layout img{width:200px;max-width:100%;height:auto;display:block;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:12px}.example-layout figcaption{font-size:12px;line-height:1.6;color:var(--muted);margin-top:10px}.example-layout p,.example-layout li,.example-layout dd{line-height:1.75;color:var(--muted);font-size:15px}.example-layout dt{font-size:13px;font-weight:750;margin-top:10px}.example-layout dd{margin:2px 0 8px;overflow-wrap:anywhere}.example-layout dl{margin:0 0 18px}.example-layout code{overflow-wrap:anywhere}.example-layout .secondary-btn{display:inline-block;min-height:44px;cursor:pointer}.example-layout ol{padding-left:24px}.example-layout li+li{margin-top:8px}.example-data-note{padding:14px;border-left:3px solid var(--accent);background:var(--soft)}@media(max-width:600px){.example-layout{grid-template-columns:1fr}.example-layout figure{max-width:240px;margin:auto}.worked-example{padding-top:20px}}

/* Text contrast fixes; retain brand and QR image colours. */
.tool-tabs a{color:#5c5668}
.tool-tabs a.active{color:#5733d6}
.tool-tabs a:focus-visible{outline:3px solid #5733d6;outline-offset:-3px}
.footer-bottom{color:#b8b2c4}
html[data-theme="dark"] .tool-tabs a{color:#c4bed2}
html[data-theme="dark"] .tool-tabs a.active{color:#e3d9ff}
html[data-theme="dark"] .tool-tabs a:focus-visible{outline-color:#d3c5ff}
html[data-theme="dark"] .footer-bottom{color:#b8b2c4}
