/* Site appearance: light retains the published palette. */
.site-header{flex-wrap:wrap;gap:20px}.theme-picker{display:flex;gap:2px;border:1px solid var(--line);border-radius:30px;padding:3px;margin-left:0}.theme-picker button{font:inherit;font-size:12px;padding:6px 12px;border:0;border-radius:22px;background:transparent;color:var(--muted)}.theme-picker button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.theme-picker button:hover{color:var(--orange)}.theme-picker button[aria-pressed=true]:hover{color:var(--paper)}
:root[data-theme=dark]{--paper:#192e27;--ink:#f4eddf;--muted:#b8c5b8;--line:#42574b;--orange:#d9b779;--light:#243f36;--green:#304b3c;--surface:#243f36;--edge:#8e805b;color-scheme:dark}
[data-theme=dark] .hero-copy,[data-theme=dark] .event-meta,[data-theme=dark] .event-description,[data-theme=dark] .event-bottom>span,[data-theme=dark] .source-badge,[data-theme=dark] .category-list button:not(.selected),[data-theme=dark] .view-switch button:not(.selected),[data-theme=dark] .subscribe-launch-note{color:var(--muted)}
[data-theme=dark] .text-button,[data-theme=dark] #toggle-intro,[data-theme=dark] .guide-links a{color:var(--orange)}
[data-theme=dark] .button{background:#d9b779;border-color:#d9b779;color:#192e27;font-weight:600}
[data-theme=dark] .button:hover{background:#edce98;color:#13251e}
[data-theme=dark] .button.outline{background:transparent;color:var(--ink);border-color:#71816a}
[data-theme=dark] .button.outline:hover{background:#304b3c;border-color:#d9b779}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .searchbox{background:#20382f;color:var(--ink);border-color:#64735e}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#b2bdac;opacity:1}
[data-theme=dark] .searchbox input{background:transparent;border:0}
[data-theme=dark] .category-list button.selected{background:#354e3e;color:#f4eddf}
[data-theme=dark] .category-list button:hover{background:#304b3c}
[data-theme=dark] .view-switch{background:#233d32;border-color:#71816a;box-shadow:0 2px 0 #10251d}
[data-theme=dark] .view-switch .selected{background:#d9b779;color:#192e27}
[data-theme=dark] .quick-filter{border-color:#7a866c;color:var(--ink)}
[data-theme=dark] .quick-filter:hover{background:#304b3c}
[data-theme=dark] .quick-filter[aria-pressed=true]{background:#d9b779;color:#192e27;border-color:#d9b779}
[data-theme=dark] .iron-note,[data-theme=dark] .newsletter-callout.iron-box,[data-theme=dark] .subscribe-newsletter{background:#243f36;border-color:#9d8b62}
[data-theme=dark] .iron-note:before,[data-theme=dark] .newsletter-callout.iron-box:before,[data-theme=dark] .subscribe-newsletter:before{background-image:url('/images/iron-corner-gold.svg')}
[data-theme=dark] .iron-divider:before,[data-theme=dark] .iron-divider:after{border-color:#70694d}
[data-theme=dark] .iron-divider span{background-image:url('/images/fleur-gold.svg');opacity:.95}
[data-theme=dark] .newsletter-city-photo{border-color:#9d8b62;background:#192e27}
/* Real paper stays paper: the book isn't an inverted UI panel. */
[data-theme=dark] .book-words-page{color:#29392e}
[data-theme=dark] .story-book{filter:drop-shadow(0 13px 16px #061b1666)}
[data-theme=dark] .book-fleur{background-image:url('/images/fleur.svg')}
[data-theme=dark] .event-card.featured{background:#243f36;border-color:#70694d;border-left-color:#d9b779}
[data-theme=dark] .source-avatar{background:#304b3c;border-color:#748365;color:#e2d4aa}
[data-theme=dark] .source-third{background:#3e4030;color:#f2dfaa;border-color:#85744e}
[data-theme=dark] .source-litwire{background:#513e32;color:#f0c3a2;border-color:#92735c}
[data-theme=dark] .source-jpl{background:#304950;color:#c4dce3;border-color:#6b8991}
[data-theme=dark] [data-kind="Writing Workshops"]{--tag-bg:#364d31;--tag-ink:#d6e4b8}
[data-theme=dark] [data-kind="Writing Groups"]{--tag-bg:#2b4b41;--tag-ink:#bce4d1}
[data-theme=dark] [data-kind="Critique Groups"]{--tag-bg:#4a3e52;--tag-ink:#e6cbee}
[data-theme=dark] [data-kind="Writing Sprints"]{--tag-bg:#51482c;--tag-ink:#f3d69a}
[data-theme=dark] [data-kind="Author Talks & Book Launches"]{--tag-bg:#2d4752;--tag-ink:#c5dfea}
[data-theme=dark] [data-kind="Poetry & Open Mics"],[data-theme=dark] [data-kind="Readings & Spoken Word"]{--tag-bg:#563d36;--tag-ink:#f2c7b9}
[data-theme=dark] [data-kind="Literary Festivals"],[data-theme=dark] [data-kind="Book Sales & Pop-Ups"]{--tag-bg:#50482d;--tag-ink:#ecdaa6}
[data-theme=dark] [data-kind="Publishing & Industry"]{--tag-bg:#42424e;--tag-ink:#dcd6ef}
[data-theme=dark] [data-kind="Writing Contests & Deadlines"]{--tag-bg:#53422c;--tag-ink:#f0d1a8}
[data-theme=dark] .viewed-label,[data-theme=dark] .event-tags .tag{background:#334639;color:#c6cfbc}
[data-theme=dark] .heart-button{border-color:#819074;color:var(--ink)}
[data-theme=dark] .heart-button:hover,[data-theme=dark] .heart-button.is-hearted{background:#573b32;color:#f2b19b;border-color:#d19175}
[data-theme=dark] .ongoing-badge,[data-theme=dark] .format-badge{background:#344e3e;color:#dbe6c6;border-color:#71866b}
[data-theme=dark] .month-day{background:transparent;border-color:var(--line)}
[data-theme=dark] .month-day.past-date-hidden{background:repeating-linear-gradient(135deg,#20362c,#20362c 5px,#243a30 5px,#243a30 6px);color:#91a18c;border-color:var(--line)}
[data-theme=dark] .month-day.today{background:#304538;box-shadow:inset 0 0 0 1px #d9b779}
[data-theme=dark] .month-day.empty{background:#172a23}
[data-theme=dark] .month-day>a{background:var(--tag-bg,#304b3c);color:var(--tag-ink,#e0dec7)}
[data-theme=dark] dialog{background:#192e27;color:var(--ink);border-color:#6f795e;box-shadow:0 25px 100px #0009}
[data-theme=dark] dialog::backdrop{background:#071b15b3}
[data-theme=dark] .dialog-head button{color:var(--ink)}
[data-theme=dark] .filter-chip{background:#304b3c;color:var(--ink);border-color:#71816a}
[data-theme=dark] .litwire-welcome{--welcome-green:#f0e6ca;--welcome-copper:#d9b779;background:#243f36;border-color:#8e805b;color:#f0e6ca}
[data-theme=dark] .litwire-welcome__frame{background:transparent;border-color:#8e805b}
[data-theme=dark] .litwire-welcome:before{border-color:#736b4f}
[data-theme=dark] :focus-visible{outline-color:#edce98}
@media(max-width:1050px){.theme-picker{margin-left:auto}.site-header nav{margin-left:auto}}
@media(max-width:560px){.site-header{gap:16px}.theme-picker{order:3;margin:0 0 0 auto}.theme-picker button{padding:7px 14px}.preview-ribbon{font-size:11px}}
[data-theme=dark] .topic-tag,[data-theme=dark] .viewed-label{background:#334639;color:#d1d9c8}
[data-theme=dark] .ongoing-label{background:#344e3e;color:#dbe6c6;border-color:#71866b}
/* Forms, event pages and private desks share the same surfaces. */
.newsletter-appearance{max-width:1184px;margin:24px auto 0;display:flex;justify-content:flex-end;padding:0 24px}
[data-theme=dark] .detail-layout p,[data-theme=dark] .event-artwork figcaption,[data-theme=dark] .newsletter-fine-print,[data-theme=dark] .newsletter-coming-soon,[data-theme=dark] .newsletter-preferences summary span,[data-theme=dark] .newsletter-confirmation .confirmation-footer,[data-theme=dark] .review-received,[data-theme=dark] .litwire-story cite{color:var(--muted)}
[data-theme=dark] .detail-box,[data-theme=dark] .newsletter-card,[data-theme=dark] .confirmation-note,[data-theme=dark] .embed-promo,[data-theme=dark] .closing-banner,[data-theme=dark] .litwire-next,[data-theme=dark] .litwire-story blockquote,[data-theme=dark] .analytics-choice{background:var(--light);border-color:var(--line)}
[data-theme=dark] .newsletter-card,[data-theme=dark] .editor-portrait img,[data-theme=dark] .guide-photo img{box-shadow:5px 7px 0 #10271f}
[data-theme=dark] .newsletter-form>input,[data-theme=dark] #embed-dialog textarea,[data-theme=dark] .admin-page form input:not([type=hidden]),[data-theme=dark] .admin-page form select,[data-theme=dark] .admin-page form textarea{background:#20382f;color:var(--ink);border-color:#64735e}
[data-theme=dark] .notice{background:#4a422b;color:#f4e5be}
[data-theme=dark] .badge,[data-theme=dark] .past-event-label{background:#344939;color:#d3deca;border-color:#71816a}
[data-theme=dark] .format-badge{background:#2d4752;color:#c5dfea}
[data-theme=dark] .format-hybrid{background:#4a3e52;color:#e6cbee}
[data-theme=dark] .review-stage[data-stage=hold]{background:#51482c;color:#f3d69a}
[data-theme=dark] .review-stage[data-stage=ready]{background:#2b4b41;color:#bce4d1}
[data-theme=dark] .review-updated{background:#563d36;color:#f2c7b9}
[data-theme=dark] .review-due{background:#4a3e52;color:#e6cbee}
[data-theme=dark] .status-label,[data-theme=dark] #review-reason,[data-theme=dark] .tag-feedback{color:#f2b19b}
[data-theme=dark] button.stat:hover{background:#304b3c}
[data-theme=dark] .source-retired{background:#23382f;border-color:#65725f;color:#a6b39f}
[data-theme=dark] .source-retired h3,[data-theme=dark] .source-retired p,[data-theme=dark] .source-retired .badge{color:#a6b39f}
[data-theme=dark] .source-retired .badge{background:#2c4134}
[data-theme=dark] .selected-tag,[data-theme=dark] .tag-suggestions button{background:#304b3c;color:#d6e4c8;border-color:#71816a}
[data-theme=dark] .admin-page details,[data-theme=dark] .newsletter-preferences{border-color:var(--line)}
[data-theme=dark] .admin-page .newsletter-danger{background:#3e3029;border-color:#a8795d}
[data-theme=dark] .admin-page .newsletter-danger summary{color:#f2b19b}
[data-theme=dark] .admin-page .spotlight-fields:disabled,[data-theme=dark] .admin-page .spotlight-fields :disabled{background:#293e32;color:#b2bfaa;border-color:#64735e}
[data-theme=dark] .admin-page .spotlight-fields:disabled label{color:#b2bfaa}
[data-theme=dark] .flyer-card,[data-theme=dark] .support-how{background:var(--light);border-color:var(--line)}
[data-theme=dark] .flyer-frame{background:#304539}
/* Light paper and original flyer artwork remain unchanged. */
[data-theme=dark] .leaflet-popup-content-wrapper,[data-theme=dark] .leaflet-popup-tip{background:#243f36;color:#f4eddf}
[data-theme=dark] .map-popup article>a{color:#ead6aa}
[data-theme=dark] .map-popup-category{color:#d9b779}
[data-theme=dark] .leaflet-control a{color:#29392e}
/* Paper exports stay light regardless of the screen preference. */
@media print{html[data-theme=dark]{--paper:#fff;--ink:#29392e;--muted:#62695b;--line:#dedfd3;--orange:#a7432d;--light:#f1eee3;--green:#e9eddf;color-scheme:light!important}.theme-picker,.newsletter-appearance{display:none!important}html[data-theme=dark] body{background:#fff;color:#29392e}html[data-theme=dark] .event-card,html[data-theme=dark] .detail-box{background:#fff;color:#29392e}html[data-theme=dark] .event-description,html[data-theme=dark] .event-meta{color:#495344}}
/* The flyer editor's interface follows the site; its exported artwork keeps its own controls. */
#nw-kit{color-scheme:inherit}
/* Contrast review: hover/focus states and inherited light-mode colors. */
[data-theme=dark] .litwire-welcome--strip[href]:hover,
[data-theme=dark] .litwire-welcome--strip[href]:focus-visible{background:#304b3c;color:#f4eddf;border-color:#d9b779}
[data-theme=dark] .litwire-welcome--strip[href]:hover .litwire-welcome__frame,
[data-theme=dark] .litwire-welcome--strip[href]:focus-visible .litwire-welcome__frame{background:transparent;border-color:#bda775}
[data-theme=dark] .litwire-welcome--strip[href]:focus-visible{outline-color:#edce98}
[data-theme=dark] .event-tags>.ongoing-label{background:#344e3e;color:#dbe6c6;border-color:#71866b}
[data-theme=dark] .event-arrow{color:#b8c5b8}
[data-theme=dark] .event-arrow:hover,[data-theme=dark] .event-arrow:focus-visible{color:#edce98}
[data-theme=dark] .support-intro>p:not(.eyebrow):not(.lead):not(.support-print-note),
[data-theme=dark] .support-print-note,[data-theme=dark] .flyer-heading>p:last-child,
[data-theme=dark] .flyer-card-copy .eyebrow,[data-theme=dark] .flyer-card-copy>p:not(.eyebrow),
[data-theme=dark] .support-how li p,[data-theme=dark] .support-closing p{color:#b8c5b8}
[data-theme=dark] .skip:focus{background:#243f36;color:#f4eddf;border:1px solid #d9b779}
[data-theme=dark] .active-filter-chip{background:#304b3c;color:#f4eddf;border-color:#819174}
[data-theme=dark] .active-filter-chip:hover,[data-theme=dark] .active-filter-chip:focus-visible{background:#3c5946;color:#f4eddf;border-color:#d9b779}
[data-theme=dark] .active-filter-chip:focus-visible{outline-color:#edce98}
[data-theme=dark] .selected-tag:hover,[data-theme=dark] .tag-suggestions button:hover{background:#3c5946;color:#f4eddf;border-color:#d9b779}
[data-theme=dark] .detail-actions .promotion-cta:hover{background:#3c5946;color:#f4eddf;border-color:#d9b779}
[data-theme=dark] .newsletter-danger summary:focus-visible,[data-theme=dark] .newsletter-tools summary:focus-visible{outline-color:#edce98}
/* Keep control boundaries visible against green surfaces. */
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .searchbox,
[data-theme=dark] .admin-page form input:not([type=hidden]),[data-theme=dark] .admin-page form select,[data-theme=dark] .admin-page form textarea,
[data-theme=dark] #nw-kit input,[data-theme=dark] #nw-kit select,[data-theme=dark] #nw-kit textarea,[data-theme=dark] #nw-kit .choice,[data-theme=dark] #nw-kit .secondary{border-color:#819174}
[data-theme=dark] .detail-actions .is-hearted{background:#563d36;color:#f2c7b9;border-color:#d19175}
/* Phone ergonomics in either appearance; retain the collapsed filter drawer. */
@media(max-width:560px){
 .theme-picker button{min-height:44px;min-width:60px;font-size:14px;padding:8px 14px}
 .site-header nav a{min-height:44px;display:inline-flex;align-items:center;font-size:12px}
 .searchbox input,.filters select,.filters>input,#calendar-filter-options>input,
 .detail-page input,.detail-page select,.detail-page textarea,dialog input,dialog select,dialog textarea{font-size:16px;min-height:44px}
 .filters .filter-title{font-size:13px;letter-spacing:0}
 .category-list button{font-size:13px;min-height:44px;padding:9px 12px}
 .quick-filter{font-size:14px;min-height:44px;padding:10px 12px}
 .filters-toggle,.filters-toggle .filter-toggle-label{font-size:14px;min-height:44px}
 .filters-toggle .filter-toggle-label{min-height:0}
 .filters .favorite-filter,.filters .past-events-form label{min-height:44px;display:flex;align-items:center;font-size:14px}
 .filters #reset-filters{font-size:14px;min-height:44px}
 .filters .browser-note,.filters .past-events-note{font-size:12px}
 .event-tags{font-size:12px;gap:8px}
 .event-tags a{display:inline-flex;align-items:center;min-height:36px;padding:6px 9px;line-height:1.35}
 .detail-tags a{min-height:44px;font-size:13px}
 .detail-page .back-link{min-height:44px;display:flex;align-items:center;font-size:14px;margin-bottom:20px}
 .detail-page .source-badge{min-height:44px;font-size:13px}
 .detail-page .button{min-height:48px;font-size:14px;overflow-wrap:anywhere}
 .detail-page .detail-box{padding:22px;min-width:0}
 .detail-page .detail-actions{gap:12px}
 .detail-page a{overflow-wrap:anywhere}
 .detail-page #daily-schedule a{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
 .event-bottom{flex-wrap:wrap;gap:12px}
 .event-bottom .heart-button{width:44px;height:44px;flex:0 0 44px}
 .event-bottom .event-arrow{width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 .view-switch button{min-width:0;flex:1}
 .calendar-actions .view-switch{width:100%}
}
@media(max-width:560px){
 .calendar-actions .view-switch button{white-space:nowrap;font-size:14px;padding:10px 8px;min-height:48px}
 .event-meta,.event-description{font-size:14px;line-height:1.6}
 .event-bottom,.event-bottom .price{font-size:13px}
 .source-badge{font-size:12px;min-height:44px}
 .date-tile span,.date-tile small{font-size:11px}
}
