/* Shared warm palette across routes. Keep semantic statuses and platform icons. */
.home-theme-warm select option,.home-theme-warm select optgroup{background:#fffdf9!important;color:#302d29!important}
html.home-theme-warm{color-scheme:light;--page:#f7f3eb;--surface:#fffdf9;--surface-muted:#f1eadf;--ink:#302d29;--warm-white:#302d29;--silver:#655e55;--muted:#655e55;--line:#d8cab4;--navy:#302d29;--navy-soft:#eee4d3;--blue-soft:#f1e9dc;--shadow:0 4px 18px #4b361810}
.home-theme-warm :is(.auth-panel,.auth-card,.member-card,.member-summary,.submission-card,.submission-info-card,.admin-section,.admin-setting-toggle,.curated-manager-dialog,.feedback-card,.report-card,.detail-card,.detail-main,.content-card,.search-panel,.filter-panel,.empty-state){background:#fffdf9!important;color:#302d29!important;border-color:#d8cab4!important;box-shadow:var(--shadow)!important}
.home-theme-warm :is(.admin-page,.member-page,.submission-page,.auth-page,.page-heading,.report-page){background:transparent!important;color:#302d29!important}
.home-theme-warm :is(.admin-section,.auth-panel,.auth-card,.member-card,.submission-card,.submission-info-card,.curated-manager-dialog) :is(h1,h2,h3,h4,label,legend,dt,dd){color:#302d29!important;text-shadow:none}
.home-theme-warm :is(.admin-section,.auth-panel,.auth-card,.member-card,.submission-card,.submission-info-card,.curated-manager-dialog) :is(p,small){color:#655e55!important}
.home-theme-warm :is(input,textarea,select){background:#fffdf9!important;color:#302d29!important;border-color:#bba784!important;box-shadow:none!important;accent-color:#8b343d}
.home-theme-warm :is(input,textarea)::placeholder{color:#776f63!important}
.home-theme-warm :is(input,textarea,select):disabled{background:#eee9e0!important;color:#756c5e!important}
.home-theme-warm :is(input,textarea,select):focus-visible{outline:2px solid #996b2e!important;outline-offset:2px}
.home-theme-warm :is(.primary-button,.danger-button,.nav-link-report){background:#842d38!important;color:#fff!important;border-color:#842d38!important;box-shadow:none!important}
.home-theme-warm :is(.secondary-button,.text-button){background:#f1e8d8!important;color:#4a3823!important;border-color:#bda984!important;box-shadow:none!important}
.home-theme-warm :is(.primary-button,.danger-button):hover{background:#62202a!important}
.home-theme-warm .secondary-button:hover{background:#e9d8ba!important}
.home-theme-warm :is(.admin-table,.admin-table thead,.admin-table tbody,.admin-table tr,.admin-table td){background:#fffdf9!important;color:#302d29!important;border-color:#e3d8c7!important}
.home-theme-warm .admin-table th{background:#eee4d3!important;color:#302d29!important}
.home-theme-warm :is(.admin-notice-form,.admin-content-rules-form,.admin-setting-toggle,.submission-section,.submission-notice,.member-summary>div){background:#f7f1e7!important;border-color:#d8cab4!important;color:#302d29!important}
.home-theme-warm .curated-link-list a{background:transparent!important;color:#245c91!important;border-color:#d8cab4!important}
.home-theme-warm .curated-link-list a:hover{background:#f1e5ce!important}
.home-theme-warm .curated-icon-choice{background:#f5eee2;color:#302d29;border-color:#c8b796}
.home-theme-warm .curated-icon-grid input:checked+.curated-icon-choice{background:#ead8b6;border-color:#85612c;box-shadow:inset 0 0 0 1px #85612c}
.home-theme-warm .curated-icon-grid input:focus-visible+.curated-icon-choice{outline-color:#684d24}
.home-theme-warm .curated-manager-dialog::backdrop{background:#28201680}
.home-theme-warm .source-edit-button{background:#eee0c6!important;color:#4c3520!important;border-color:#a1804b!important}
.home-theme-warm .warning-banner,.home-theme-warm .auth-lock-banner{background:#fff0d5!important;color:#713c13!important;border-color:#cda15b!important}
.home-theme-warm [role=alert]{color:#982633!important}
.home-theme-warm .admin-setting-status{color:#302d29}
.home-theme-warm a:focus-visible,.home-theme-warm button:focus-visible{outline:2px solid #8c632d;outline-offset:3px}
.home-theme-warm .report-form{background:#fffdf9!important;color:#302d29!important;border-color:#d8cab4!important;box-shadow:var(--shadow)!important}
.home-theme-warm .sources-editor button,.home-theme-warm .source-save-button{background:#842d38!important;color:#fff!important;border-color:#842d38!important}
.home-theme-warm .source-cancel-button{background:#f1e8d8!important;color:#4a3823!important}
.home-theme-warm button:disabled{opacity:.6}
.home-theme-warm .auth-form-actions .text-button{background:transparent!important;border:1px solid #bba784!important;border-radius:7px;padding:10px 16px;min-height:44px;text-decoration:none;color:#59442a!important}
.home-theme-warm .auth-form-actions .text-button:hover{background:#eee2cf!important}
.home-theme-warm :is(.admin-account-group,.admin-visitor-stat){background:#f4ecdf!important;color:#302d29!important;border-color:#d6c5a9!important;box-shadow:none!important}
.home-theme-warm :is(.admin-account-group-heading,.admin-visitor-stat) :is(span,strong,small,h3){color:#4d4234!important}
.home-theme-warm .admin-account-group td,.home-theme-warm .admin-account-group td>strong{color:#302d29!important}
.home-theme-warm .submission-page .primary-button{background:#85612c!important;border-color:#8a642b!important;color:#fff!important}
.home-theme-warm .submission-page .primary-button:hover{background:#7b5928!important}
.home-theme-warm .submission-page .sources-editor button{background:#eee0c6!important;color:#594124!important;border-color:#bca071!important;border-radius:5px;padding:6px 10px;min-height:32px}
.home-theme-warm .submission-page .source-draft-row [data-source-remove]{width:auto;justify-self:start}
.home-theme-warm .submission-page .sources-editor button:hover{background:#e1ca9f!important}
.curated-page .curated-link-list{gap:0}
.curated-page .curated-link-list li{display:flex;align-items:center;gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}
.curated-page .curated-link-list li:last-child{border-bottom:0}
.curated-page .curated-link-list li>a{flex:1;min-width:0;border:0;padding:5px 0;gap:8px}
.curated-page .curated-link-list strong{font-size:14px;line-height:1.5;font-weight:500}
.curated-page .curated-site-badge{min-width:24px;width:24px;height:24px;padding:0;flex-shrink:0;white-space:nowrap;font-size:11px}
.curated-page .curated-item-actions{flex-shrink:0;padding:0}
@media(max-width:480px){.curated-page .curated-link-list li{flex-wrap:wrap;gap:4px}.curated-page .curated-link-list li>a{flex-basis:100%}.curated-page .curated-item-actions{margin-left:30px}}

/* Warm controls: override legacy red gradients, including interaction states. */
html.home-theme-warm :is(button,:where(input[type=submit],input[type=button]),.secondary-button,.outline-button,.clear-button,.pagination-button,.detail-back-link,.quick-link,.source-cancel-button){background:#f1e8d8!important;color:#4a3823!important;border-color:#bda984!important;box-shadow:none!important}
html.home-theme-warm :is(button,:where(input[type=submit],input[type=button]),.secondary-button,.outline-button,.clear-button,.pagination-button,.detail-back-link,.quick-link,.source-cancel-button):is(:hover,:focus-visible,:active){background:#e4d2af!important;color:#392b1b!important;border-color:#947443!important}
html.home-theme-warm :is(.primary-button,.primary-action,.search-button,.submit-button,.auth-submit-button,.report-submit-button,.footer-report-button,.hero-submit-button,.home-submit-button,.report-link,.detail-report-button,.nav-link-report,.source-save-button){background:#85612c!important;color:#fff!important;border-color:#85612c!important;box-shadow:none!important}
html.home-theme-warm :is(.primary-button,.primary-action,.search-button,.submit-button,.auth-submit-button,.report-submit-button,.footer-report-button,.hero-submit-button,.home-submit-button,.report-link,.detail-report-button,.nav-link-report,.source-save-button):is(:hover,:focus-visible,:active){background:#694a20!important;color:#fff!important;border-color:#694a20!important}
html.home-theme-warm :is(.danger-button,.delete-button,.admin-delete-button,.home-admin-delete-button,.delete-confirm-button){background:#65503e!important;color:#fff!important;border-color:#65503e!important;box-shadow:none!important}
html.home-theme-warm :is(.danger-button,.delete-button,.admin-delete-button,.home-admin-delete-button,.delete-confirm-button):is(:hover,:focus-visible,:active){background:#483626!important;color:#fff!important;border-color:#483626!important}
html.home-theme-warm .sources-editor button{background:#eee0c6!important;color:#594124!important;border-color:#bca071!important}
html.home-theme-warm .home-list-section .home-source-display>.source-edit-button,
html.home-theme-warm .home-list-section .source-edit-button *{background:#eee0c6!important;color:#4c3520!important;border-color:#a1804b!important;box-shadow:none!important}
html.home-theme-warm .home-list-section .home-source-display>.source-edit-button:is(:hover,:focus-visible,:active){background:#d9bd87!important;color:#38270f!important;border-color:#7b5928!important;box-shadow:0 0 0 2px #bca071!important}
html.home-theme-warm :is(button,input[type=submit],input[type=button]):disabled{background:#e9e2d7!important;color:#756c5e!important;border-color:#cfc3b1!important;box-shadow:none!important;cursor:default}
html.home-theme-warm :is(input,textarea,select){accent-color:#85612c}
html.home-theme-warm .skip-link{background:#85612c!important;color:#fff!important}html.home-theme-warm .skip-link:focus{background:#694a20!important}
html.home-theme-warm .menu-lines,html.home-theme-warm .menu-lines::before,html.home-theme-warm .menu-lines::after{background:#594124!important}html.home-theme-warm .auth-tab.is-active{background:#ddc69c!important;color:#392b1b!important;border-color:#947443!important}
html.home-theme-warm .member-page>.container,html.home-theme-warm .admin-backup-message{background:#fffdf9!important;color:#302d29!important;border-color:#d8cab4!important;box-shadow:none!important}
html.home-theme-warm .admin-backup-message:empty{display:none}
html.home-theme-warm .narrow-content{background:#fffdf9!important;color:#302d29!important;border-color:#d8cab4!important;box-shadow:none!important}

/* Pet illustrations retain their soft colors in both palettes. */
.warm-section-icon{display:inline-block;width:32px;height:34px;flex:0 0 32px;vertical-align:middle;margin-right:8px;overflow:visible;filter:none}
:is(#notice-title,#visitor-summary-title,#news-title,#links-title,#recent-media-title){display:flex;align-items:center}
:is(#notice-title,#visitor-summary-title,#recent-media-title)>.heading-icon{display:none}

/* Keep the warm mobile navigation light and readable.  The shared warm text
   rule otherwise leaves inactive links with dark text on the classic dark
   mobile-button background. */
html.home-theme-warm:not([data-view-mode="desktop"]) .site-header .primary-nav.is-open{
  --mobile-nav-bg:#fffaf1;
  --mobile-nav-button-bg:#f4ecdd;
  --mobile-nav-fg:#3f3426;
  --mobile-nav-border:#c8b28a;
  --mobile-nav-hover-bg:#ead9b9;
  --mobile-nav-active-bg:#e5c77f;
  --mobile-nav-active-fg:#302719;
  background:var(--mobile-nav-bg)!important;
  border-color:var(--mobile-nav-border)!important;
}
html.home-theme-warm:not([data-view-mode="desktop"]) .site-header .primary-nav.is-open .nav-link{
  color:var(--mobile-nav-fg)!important;
  background:var(--mobile-nav-button-bg)!important;
  border-color:var(--mobile-nav-border)!important;
}
@media (hover:hover) and (pointer:fine){
  html.home-theme-warm:not([data-view-mode="desktop"]) .site-header .primary-nav.is-open .nav-link:hover{
    color:var(--mobile-nav-fg)!important;
    background:var(--mobile-nav-hover-bg)!important;
  }
}
html.home-theme-warm:not([data-view-mode="desktop"]) .site-header .primary-nav.is-open .nav-link:is(.is-active,:active){
  color:var(--mobile-nav-active-fg)!important;
  background:var(--mobile-nav-active-bg)!important;
}
html.home-theme-warm:not([data-view-mode="desktop"]) .site-header .primary-nav.is-open .nav-link.is-active::after{
  content:none!important;
  display:none!important;
}
html.home-theme-warm:not([data-view-mode="desktop"]) .site-header .primary-nav.is-open .nav-link-report{
  color:#fff!important;
  background:#85612c!important;
  border-color:#85612c!important;
}
html.home-theme-warm:not([data-view-mode="desktop"]) .site-header .primary-nav.is-open .nav-link-report:is(:hover,:focus-visible,:active){
  color:#fff!important;
  background:#694a20!important;
  border-color:#694a20!important;
}

/* Detail routes use detail-main/detail-side, not the generic detail-card. */
html.home-theme-warm .detail-side {
  background: transparent !important;
  color: var(--ink);
  box-shadow: none !important;
}
html.home-theme-warm .detail-main :is(.media-tile,.detail-attachment-list li,.comment-item) {
  background: #f7f1e7 !important;
  color: #302d29;
  border-color: #d8cab4;
}
html.home-theme-warm .detail-main .comment-item:hover { background: #f1e8d8 !important; }
html.home-theme-warm .detail-main :is(.media-tile figcaption,.media-tile > span:not(.play-mark),.detail-attachment-list li span) {
  color: #655e55;
}

/* Row hover and keyboard focus use the warm palette; platform badges keep their own colors. */
html.home-theme-warm .home-list-section {
  --homepage-list-hover-bg: #f1e5ce;
  --homepage-list-hover-fg: #39332b;
  --homepage-list-focus-ring: #947443;
}
html.home-theme-warm .home-list-section .list-card .list-name-lines,
html.home-theme-warm .home-list-section .list-card .list-name-lines * {
  color: var(--homepage-list-hover-fg) !important;
}
