/* Paper theme for the forum: the site's light palette on the forum's tokens.
   Chosen per device via the header toggle, stored as localStorage "fc-theme",
   applied to <html data-theme="paper"> before first paint. Shared with the site. */
.read-toggle{border:1px solid var(--hair-strong);border-radius:999px;background:rgba(126,156,214,.06);color:var(--ink-dim);font:600 10px var(--sans);letter-spacing:.09em;text-transform:uppercase;padding:6px 11px;cursor:pointer;margin-left:6px;white-space:nowrap}
.read-toggle:hover{color:var(--ink);border-color:var(--brand-dim)}
.read-toggle .rt-paper{display:none}
html[data-theme=paper] .read-toggle .rt-dark{display:none}
html[data-theme=paper] .read-toggle .rt-paper{display:inline}
.read-toggle-compact{padding:6px 9px;margin-left:0}

html[data-theme=paper]{
  --field:#f3eee5;--panel:#fbf8f2;--panel2:#f1ece2;--ink:#1e1b17;--ink-dim:#4a453d;--ink-muted:#6d665a;--ink-read:#221f1a;
  --brand:#8a651f;--brand-bright:#6b4d14;--brand-dim:rgba(138,101,31,.55);
  --hair:rgba(60,50,30,.14);--hair-strong:rgba(60,50,30,.26);--hair-bright:rgba(60,50,30,.4);
  --surface-1:rgba(255,252,246,.72);--surface-2:rgba(255,252,246,.95);--surface-3:rgba(138,101,31,.10);
  --accent-glow:rgba(138,101,31,.12);--blue-glow:rgba(120,140,190,.16);
  --lift:0 8px 24px rgba(60,50,30,.10);--lift-high:0 16px 40px rgba(60,50,30,.16);
  --ok:#2f7a4f;--err:#a33a3a;--blue:#3d5a8a;
  color-scheme:light;background:#ece6da}
html[data-theme=paper] body{color:var(--ink);background:
  radial-gradient(1100px 520px at 50% -160px,var(--blue-glow),transparent 70%),
  radial-gradient(900px 600px at 100% 100%,rgba(138,101,31,.08),transparent 65%),
  linear-gradient(180deg,#f3eee5,#ece6da 60%)}
html[data-theme=paper] a{color:#7a5a1c}html[data-theme=paper] a:hover{color:#4d3a12}
html[data-theme=paper] .sitebar{background:rgba(251,248,242,.88);border-bottom-color:var(--hair)}
html[data-theme=paper] .brand span{color:#6b4d14}
html[data-theme=paper] .sitebar nav a,html[data-theme=paper] .auth a,html[data-theme=paper] .linkbtn{color:var(--ink-dim)}
html[data-theme=paper] .nav-strong{color:#6b4d14!important}
html[data-theme=paper] .nav-site a{color:var(--ink-muted)}
html[data-theme=paper] .mobile-menu-panel{background:rgba(251,248,242,.98)}
html[data-theme=paper] .mobile-menu>summary{background:rgba(255,252,246,.8)}
html[data-theme=paper] .mobile-priority{color:var(--ink-dim)}
html[data-theme=paper] .hero h1,html[data-theme=paper] .panel h1{color:var(--ink)}
html[data-theme=paper] .panel h2{color:#6b4d14}
html[data-theme=paper] .btn{background:rgba(138,101,31,.08);color:#6b4d14}
html[data-theme=paper] .btn:hover{background:rgba(138,101,31,.16);color:#3f2d0c}
html[data-theme=paper] .btn.secondary{background:rgba(255,252,246,.8);color:var(--ink-dim)}
html[data-theme=paper] .btn.secondary:hover{color:var(--ink)}
html[data-theme=paper] .btn.danger{color:#8a2b2b;border-color:rgba(163,58,58,.45);background:rgba(163,58,58,.06)}
html[data-theme=paper] .input,html[data-theme=paper] .textarea,html[data-theme=paper] .select{background:#fffdf9;color:var(--ink);border-color:var(--hair-strong)}
html[data-theme=paper] .input::placeholder,html[data-theme=paper] .textarea::placeholder{color:#8a8377}
html[data-theme=paper] .forum-title,html[data-theme=paper] .thread-title,html[data-theme=paper] .post-name,html[data-theme=paper] .dm-item-name,html[data-theme=paper] .dm-head-who strong,html[data-theme=paper] .join-strip strong{color:var(--ink)}
html[data-theme=paper] .thread-row.pinned .thread-title,html[data-theme=paper] .unread-row .thread-title{color:#000}
html[data-theme=paper] .private-row{background:linear-gradient(90deg,rgba(138,101,31,.10),transparent 70%)}
html[data-theme=paper] .post-strip,html[data-theme=paper] .post-actions,html[data-theme=paper] .dm-head,html[data-theme=paper] .dm-compose{background:rgba(138,101,31,.04)}
html[data-theme=paper] .post-body{background:rgba(255,253,249,.7);color:var(--ink-read)}
html[data-theme=paper] .post-body strong,html[data-theme=paper] .rules-copy strong{color:#000}
html[data-theme=paper] .post-body a,html[data-theme=paper] .rules-copy a{color:#7a5a1c;text-decoration-color:rgba(122,90,28,.5)}
html[data-theme=paper] .post-body blockquote{color:#4a453d;border-left-color:#c9a45a}
html[data-theme=paper] .post-body code{background:#e8e2d6;color:#2a2622;padding:1px 4px;border-radius:3px}
html[data-theme=paper] .post-body pre{background:#ebe6dc;border-color:#d9d2c4}
html[data-theme=paper] .post-body pre code{background:transparent}
html[data-theme=paper] .spoiler{background:#ece6da;border-color:#d9d2c4}
html[data-theme=paper] .spoiler summary{color:#7a5a1c}
html[data-theme=paper] ::selection{background:#e2c98a}
html[data-theme=paper] .badge{border-color:#c9c1b2;color:#5f584c}
html[data-theme=paper] .badge.author,html[data-theme=paper] .badge.custom{color:#7a5a1c;border-color:#c9a45a}
html[data-theme=paper] .badge.staff{color:#3d5a8a;border-color:#9fb1d0}
html[data-theme=paper] .badge.member{color:#2f7a4f;border-color:#8fc4a4}
html[data-theme=paper] .badge.danger{color:#a33a3a;border-color:#d9a0a0}
html[data-theme=paper] .avatar{color:#fbf8f2}
html[data-theme=paper] .whim-message.mine{background:rgba(138,101,31,.10);border-color:rgba(138,101,31,.3)}
html[data-theme=paper] .whim-message.theirs{background:rgba(255,253,249,.9)}
html[data-theme=paper] .dm-item.active{background:var(--surface-3)}
html[data-theme=paper] .dm-item.unread .dm-item-name{color:#000}
html[data-theme=paper] .flash{background:rgba(120,140,190,.10);color:var(--ink)}
html[data-theme=paper] .flash.error{color:#8a2b2b}
html[data-theme=paper] .flash.success{color:#2f7a4f}
html[data-theme=paper] .flash.info{color:var(--ink-dim)}
html[data-theme=paper] .site-footer{background:linear-gradient(180deg,rgba(243,238,229,.6),#e6dfd2);color:var(--ink-muted)}
html[data-theme=paper] .footer-col h2,html[data-theme=paper] .footer-brand-lockup{color:var(--ink)}
html[data-theme=paper] .footer-col a{color:var(--ink-muted)}html[data-theme=paper] .footer-col a:hover{color:#6b4d14}
html[data-theme=paper] .footer-brand-lockup span,html[data-theme=paper] .footer-brand-lockup strong{color:#6b4d14}
html[data-theme=paper] .mod-tools-panel{background:rgba(251,248,242,.98)}
html[data-theme=paper] .pagination .current{color:#6b4d14}
html[data-theme=paper] .crumbs,html[data-theme=paper] .crumbs a,html[data-theme=paper] .hint,html[data-theme=paper] .muted,html[data-theme=paper] .count,html[data-theme=paper] .post-meta,html[data-theme=paper] .whim-meta,html[data-theme=paper] .dm-item-time,html[data-theme=paper] .post-meta a{color:var(--ink-muted)}
html[data-theme=paper] .stat strong{color:#6b4d14}
html[data-theme=paper] table.admin th{color:var(--ink-muted)}
html[data-theme=paper] .join-strip{color:var(--ink-dim)}
html[data-theme=paper] .dm-unread-count{background:#8a651f;color:#fff}
html[data-theme=paper] .read-toggle{background:rgba(138,101,31,.08)}
