/* Shared appearance settings. Photos and flag labels keep their original colours. */
:root {
  --reading-weight: 400;
  --reading-label-weight: 500;
  --reading-strong-weight: 650;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4ee;
  --sidebar: #e9eee4;
  --panel: #fffdf7;
  --panel-hover: #eaf0e4;
  --border: #c5cebd;
  --text: #1c2b20;
  --muted: #4c5e4b;
  --faint: #5e6c58;
  --orange: #a54712;
  --orange-bright: #853608;
  --reading-weight: 450;
}
body { font-weight: var(--reading-weight); }
.appearance-controls {
  display: grid;
  gap: 12px;
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border, #303831);
  color: var(--muted, #a4aaa2);
}
.appearance-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--body, Arial, sans-serif);
  font-size: 11px;
  line-height: 1.5;
}
.appearance-controls label>span { min-width: 0; }
.appearance-controls select {
  flex: 0 1 113px;
  width: 113px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 23px 7px 8px;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  background: var(--panel, #1b211e);
  color: var(--text, #ebe8df);
  border: 1px solid var(--border, #303831);
  border-radius: 5px;
  cursor: pointer;
  color-scheme: inherit;
}
.appearance-controls select:hover { border-color: var(--orange, #ed9456); }
.appearance-controls select:focus-visible { outline: 2px solid var(--orange, #ed9456); outline-offset: 3px; }
/* A vertical scrollbar narrows the sidebar; labels and selects must share that space. */
.sidebar .sidebar-bottom, .sidebar .appearance-controls { min-width: 0; }
.sidebar :is(.appearance-controls label, .app-language-control) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  gap: 6px;
}
.sidebar :is(.appearance-controls select, .app-language-control select) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.legal-appearance {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 14px;
}
.legal-appearance .appearance-controls {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 15px 28px;
  border: 0;
  margin: 0;
}
.legal-appearance .appearance-controls label { font-size: 12px; }
.legal-appearance .appearance-controls select { width: 145px; flex-basis: 145px; font-size: 12px; }
@media (max-width: 900px) { .legal-appearance { margin-inline: 28px; } }
@media (max-width: 640px) {
  .appearance-controls select { min-height: 40px; }
  .legal-appearance { margin-inline: 20px; }
  .legal-appearance .appearance-controls { justify-content: flex-start; gap: 12px 24px; }
  .legal-appearance .appearance-controls label { flex: 1 1 240px; max-width: 360px; }
}
html[data-weight="comfortable"] {
  --reading-weight: 550;
  --reading-label-weight: 650;
  --reading-strong-weight: 750;
}
html[data-weight="comfortable"] :is(input, textarea, select) { font-weight: 550; }
html[data-weight="comfortable"] :is(label, .form-field>span:first-child, .pr-field>span,
  .nav-links button, .filter-chip, .thread-main strong, .auth-progress strong,
  .rm-filter, .member-status, .au-hint, .form-hint, .photo-meta, .detail-meta,
  .comment-time, .photo-type, .photo-type>span, .pr-photo-date,
  .event-organizer, .event-coordinates, .meetup-organizer, .ri-refs, .updated) {
  font-weight: var(--reading-label-weight);
}
html[data-weight="comfortable"] :is(strong, b, .comment-author, .admin-directory-identity>strong) {
  font-weight: var(--reading-strong-weight);
}
/* Preserve the supplied condensed heading face, which has a real 600 weight. */
html[data-weight="comfortable"] :is(h1, h2, h3, .photo-title, .pr-card-name,
  .event-card-copy>strong, .ri-training summary strong, .guest-hero-aside>strong) {
  font-weight: 600;
}

/* Shell, navigation and everyday controls. */
html[data-theme="light"] :is(.community-disclosure, .site-header) {
  background: #e0e8da;
  border-color: var(--border);
  color: #3c503b;
}
html[data-theme="light"] :is(.page-footer, .site-footer) { background: var(--bg); }
html[data-theme="light"] :is(.community-footer-note, .sidebar-fineprint, .facebook-link,
  .nav-links button, .filter-select-label, .filter-select, .section-heading .page-kicker) {
  color: var(--muted);
}
html[data-theme="light"] .nav-links button:hover { background: #dce5d5; color: var(--text); }
html[data-theme="light"] :is(.nav-links button.is-active, .nav-links button[aria-current=page],
  .legal-nav a[aria-current=page]) {
  background: #f7e7d5; border-color: #d3a77b; color: #91400f;
}
html[data-theme="light"] :is(.brand-range-emblem, .legal-brand-emblem) {
  background: #17221b; border-radius: 10px; padding: 7px;
}
html[data-theme="light"] :is(.search-field input::placeholder, .pr-search-bar input::placeholder,
  .form-input::placeholder, .form-textarea::placeholder) { color: #66735f; opacity: 1; }
html[data-theme="light"] .search-field kbd { border-color: #b7c3ad; }
html[data-theme="light"] .button-primary { color: #fffaf0; }
html[data-theme="light"] .button-secondary {
  background: #fffdf3; color: var(--text); border-color: #839276;
}
html[data-theme="light"] .button-secondary:hover { background: #e7eddf; border-color: #596f4f; }
html[data-theme="light"] :is(.button-ghost:hover, .icon-button:hover, .filter-chip:hover) {
  background: #e1e8da; color: var(--text);
}
html[data-theme="light"] :is(.filter-chip.is-active, .admin-tabs button.is-active,
  .admin-tabs button[aria-selected=true]) {
  background: #dce7d3; border-color: #9bad8d; color: #273e25;
}
html[data-theme="light"] :is(.form-input, .form-select, .form-textarea, .au-sensitive) {
  background: #fffef9; color: var(--text); border-color: #9caa90;
}
html[data-theme="light"] :is(.form-input:hover, .form-select:hover, .form-textarea:hover) { border-color: #627957; }
html[data-theme="light"] :is(.form-field>label, .form-field>span:first-child,
  .toggle-field, .download-consent) { color: #334830; }
html[data-theme="light"] :is([data-i18n-switcher] select, .event-editor-date input,
  .meetup-date-row input) { color-scheme: light; }
html[data-theme="light"] :is(select option, [data-i18n-switcher] option) {
  color: var(--text); background: var(--panel);
}
html[data-theme="light"] :is(.upload-file-input, .event-file-input)::file-selector-button {
  background: #dde7d3; color: #294125; border-color: #a3b491;
}
html[data-theme="light"] .upload-dropzone { background: #edf2e5; border-color: #8a9d7b; }
html[data-theme="light"] .upload-dropzone:hover { background: #e2ebd7; border-color: var(--orange); }
html[data-theme="light"] .modal { border-color: #9dab90; box-shadow: 0 30px 100px #17271540; }
html[data-theme="light"] .modal::backdrop { background: #15251bcc; }
html[data-theme="light"] .toast { background: #243b28; color: #f6f6e9; border-color: #486144; }
html[data-theme="light"] :is(.form-error, .auth-status.error, .au-feedback.is-error,
  .au-global-feedback.is-error, .au-content .au-feedback.is-error,
  .events-feedback.is-error, .pr-message.is-error, #delete-member-form .form-error:not([hidden])) {
  background: #fff0ed; color: #a02326; border-color: #c75050;
}
html[data-theme="light"] :is(.au-content [aria-invalid="true"], .events-page [aria-invalid="true"]) {
  background: #fff4ef; border-color: #bd3339; box-shadow: 0 0 0 1px #bd3339;
}
html[data-theme="light"] :is(.auth-status, .au-success, .au-content p.au-success,
  .pr-message, .events-feedback) { background: #e6f0df; color: #305c2b; border-color: #a0b98e; }
html[data-theme="light"] :is(.au-feedback:not(.is-error), .au-global-feedback:not(.is-error)) { color: #315c2b; }
html[data-theme="light"] :is(.notice, .status-note, .upload-status, .au-service-note,
  .au-content p.au-service-note) {
  background: #f3ead8; color: #65502c; border-color: #c8a56c;
}
html[data-theme="light"] :is(.empty-state, .pr-empty, .pr-album-empty, .events-empty) {
  background: #edf1e6; border-color: #a3b195;
}

/* Photos, archive, machine pages and conversations. */
html[data-theme="light"] :is(.photo-type, .photo-type>span, .photo-meta,
  .detail-description, .detail-source, .detail-source a, .comment-item p,
  .moderation-conversation summary, .comment-edit, .photo-year-intro>p:last-child) { color: var(--muted); }
html[data-theme="light"] :is(.photo-bottom, .thread-icon, .photo-year-timeline) { border-color: var(--border); }
html[data-theme="light"] .thread-icon { color: #557346; }
html[data-theme="light"] .photo-metadata { background: #eef2e7; }
html[data-theme="light"] .photo-metadata dd { color: #354b30; }
html[data-theme="light"] .community-banner {
  background: linear-gradient(110deg, #e4ecd9, #f4f5e9); border-color: #b3c0a0;
}
html[data-theme="light"] .guest-hero {
  background: radial-gradient(ellipse at 85% 20%, #b4c89b33, transparent 60%), linear-gradient(130deg, #e3edd9, #f8f7ed);
  border-color: #b5c4a5;
}
html[data-theme="light"] .guest-hero-copy>p:not(.eyebrow) { color: var(--muted); }
html[data-theme="light"] .guest-hero-aside { border-color: var(--border); }
html[data-theme="light"] :is(.community-banner .page-kicker, .community-banner p:not(.page-kicker)) { color: #526747; }
html[data-theme="light"] .machine-placeholder { background: linear-gradient(135deg, #e1e9d6, #f0f3e7); color: #607652; }
html[data-theme="light"] .photo-year-stop { background: #f6f8ef; color: var(--text); border-color: #aab89d; }
html[data-theme="light"] .photo-year-stop span { color: var(--muted); }
html[data-theme="light"] .photo-year-stop.is-active { background: #fae6d1; border-color: #aa581f; }
html[data-theme="light"] .photo-year-stop.is-active strong { color: #954112; }
html[data-theme="light"] :is(.comment-delete, .moderation-delete, .photo-management .button) { color: #934624; }
html[data-theme="light"] .reaction-button.is-active { background: #f6e4ce; border-color: #b07d4b; }

/* Membership, registration and administration. */
html[data-theme="light"] .auth-gate:not(.registration-gate) {
  background: linear-gradient(130deg, #e2ecda, #f6f6ed 65%, #dbe7cf);
}
html[data-theme="light"] :is(.auth-card, .auth-panel) {
  background: #fffdf6f5; border-color: #aab99b; box-shadow: 0 18px 55px #1e351215;
}
html[data-theme="light"] .auth-copy>p:last-child { color: var(--muted); }
html[data-theme="light"] :is(.auth-step-number, .au-progress li>span) { border-color: #a2b393; }
html[data-theme="light"] :is(.auth-progress .is-current .auth-step-number) {
  background: #fae7cf; border-color: #bb8346; color: #914511;
}
html[data-theme="light"] :is(.auth-progress .is-done, .au-progress li.is-done) { color: #436936; }
html[data-theme="light"] :is(.auth-progress .is-done .auth-step-number, .au-progress li.is-done>span) {
  background: #e1edd5; border-color: #91aa7b;
}
html[data-theme="light"] .moderation-access { background: #e3eddf; border-color: #afc3a4; }
html[data-theme="light"] :is(.admin-directory-row, .admin-storage-stats>div) { background: #f7f8ef; }
html[data-theme="light"] :is(button.admin-directory-row:hover, button.admin-directory-row:focus-visible) { background: #e8efde; }
html[data-theme="light"] :is(.author-avatar, .admin-directory-avatar) { background: #d9e4cd; color: #395031; border-color: #a5b88f; }
html[data-theme="light"] .admin-notifications { background: #f8e9cf; border-color: #c7a16a; }
html[data-theme="light"] .admin-notifications p { color: #72501d; }
html[data-theme="light"] .admin-page-count { background: #dce8d2; color: #36572d; }
html[data-theme="light"] .role-badge { background: #e0edd8; color: #36582d; border-color: #a0b68e; }
html[data-theme="light"] .role-admin { background: #f5e2cc; color: #8c4418; border-color: #c7a174; }
html[data-theme="light"] .role-moderator { background: #dbedeb; color: #286365; border-color: #94bfc0; }
html[data-theme="light"] .admin-member .member-status { border-color: #a3b590; }
html[data-theme="light"] .admin-request-accept { background: #dcefdc; color: #20532d; border-color: #79a17a; }
html[data-theme="light"] .admin-request-accept:hover { background: #c9e6c9; border-color: #477f4d; }
html[data-theme="light"] .admin-request-reject { background: #f9e1db; color: #912f2d; border-color: #c89084; }
html[data-theme="light"] .admin-request-reject:hover { background: #f5ccc3; border-color: #a9574d; }
html[data-theme="light"] .admin-storage-progress,
html[data-theme="light"] .admin-storage-progress::-webkit-progress-bar { background: #dce6d3; }
html[data-theme="light"] .admin-storage-free>strong { color: #3c6730; }
html[data-theme="light"] :is(.admin-danger-zone p, .admin-delete-warning) { color: #8f3037; }
html[data-theme="light"] .admin-delete-warning { background: #fff0ed; border-color: #c88383; }

/* Profiles and the photo-of-the-month vote. Image canvases remain dark. */
html[data-theme="light"] .profiles-page { --pr-muted: var(--muted); --pr-border: var(--border); --pr-panel: var(--panel); }
html[data-theme="light"] :is(.pr-search-bar, .pr-community-note, .pr-award-empty,
  .pr-photo-card, .pr-editor, .motm-empty, .motm-removed) { background: #edf2e5; border-color: #bdcbb0; }
html[data-theme="light"] .pr-card:hover { background: #edf2e4; border-color: #b09267; }
html[data-theme="light"] .pr-profile-hero { background: linear-gradient(115deg, #e5eddb, #f6f6ed); border-color: #b5c4a6; }
html[data-theme="light"] :is(.pr-search-bar>label, .pr-result-count, .pr-card-bio,
  .pr-card-bottom, .pr-community-note, .pr-profile-bio, .pr-profile-stats,
  .pr-section-heading .page-kicker, .pr-section-heading>span, .pr-award-empty p,
  .pr-photo-type, .pr-photo-date, .pr-album-empty, .pr-album-note,
  .pr-editor-image>p, .pr-field>span>small, .pr-editor-hint, .pr-back) { color: var(--muted); }
html[data-theme="light"] :is(.pr-community-note strong, .pr-profile-stats strong,
  .pr-photo-copy>button, .pr-field>span) { color: var(--text); }
html[data-theme="light"] :is(.pr-card-bottom, .pr-editor-actions, .pr-album-section) { border-color: var(--border); }
html[data-theme="light"] :is(.pr-own-badge, .pr-card-award) { background: #f6e8ca; border-color: #d5bc7d; color: #7a571b; }
html[data-theme="light"] .pr-award { background: linear-gradient(110deg, #f6ead0, #f4f4e5); border-color: #c5af70; }
html[data-theme="light"] :is(.pr-award p, .pr-award-star, .pr-award>div>span,
  .pr-text-button, .pr-editor>header .page-kicker, .motm-status-label,
  .motm-card-foot .motm-honour, .motm-award-label) { color: #8a601e; }
html[data-theme="light"] :is(.motm-status, .month-invite) {
  background: linear-gradient(110deg, #f1ebd8, #edf2e3); border-color: #c2ba93;
}
html[data-theme="light"] .motm-seal { color: #936122; border-color: #b29b64; }

/* Meetups and events. Image-backed event cards keep white text over their shade. */
html[data-theme="light"] .meetup-attendance span { background: #e0edd7; border-color: #a8bd96; color: #35532c; }
html[data-theme="light"] :is(.meetup-safety, .events-safety) { background: #f2ebd8; color: #61552f; }
html[data-theme="light"] :is(.event-detail, .event-editor form) { background: var(--panel); border-color: #bdcbb0; }
html[data-theme="light"] .event-attendance { background: #e9f0df; border-color: #a9be96; }
html[data-theme="light"] .event-attendee-list li { background: #dceace; border-color: #acc398; color: #35562c; }
html[data-theme="light"] .event-management { border-color: var(--border); }
html[data-theme="light"] .event-cover-preview { background: linear-gradient(145deg, #e2ebd7, #f6f6ea); border-color: #a3b88d; }
html[data-theme="light"] .event-cover-preview>span { color: #6d8559; }
html[data-theme="light"] .event-map-stage { background: #e1e9d6; border-color: #aabd96; }
html[data-theme="light"] .event-map-consent { background: linear-gradient(125deg, #e5eddbf2, #f5f6eaf5); }
html[data-theme="light"] .event-map-consent>p { color: #4b6342; }
html[data-theme="light"] .event-delete-panel { background: #fff2ed; border-color: #ca9693; }
html[data-theme="light"] .event-delete-panel>p:not(.page-kicker) { color: #7f3b3b; }

/* Range guide: map imagery is never inverted or tinted by theme filters. */
html[data-theme="light"] .range-guide { --rm-red: #bd3737; --rm-teal: #187965; --rm-amber: #9c650d; --rm-orange: #a54712; }
html[data-theme="light"] .rm-prohibition { background: #fff0e9; color: #7d3930; border-color: #ca8b7e; border-left-color: #bd3737; }
html[data-theme="light"] .rm-prohibition strong { color: #a92c25; }
html[data-theme="light"] :is(.rm-panel, .rm-side) { background: #f6f7ed; }
html[data-theme="light"] .rm-basemaps { background: #e3ebda; border-color: #a8b99b; }
html[data-theme="light"] .rm-basemaps button { color: #526749; }
html[data-theme="light"] .rm-basemaps button[aria-pressed=true] { background: #fffcf0; color: #293e23; }
html[data-theme="light"] .rm-basemaps button:hover { color: var(--orange); }
html[data-theme="light"] :is(.rm-region-tag, .rm-approx-badge, .rm-filter,
  .rm-side-heading .page-kicker, .rm-side-heading>p:last-child, .rm-point-button small,
  .rm-detail>p:not(.rm-detail-kicker), .rm-detail-meta>p, .rm-detail>small,
  .rm-map-caption, .rm-responsibility .page-kicker, .rm-responsibility>p,
  .rm-route-list, .rm-route-list button) { color: var(--muted); }
html[data-theme="light"] :is(.rm-approx-badge, .rm-point-button, .rm-detail, .rm-detail>small) { border-color: var(--border); }
html[data-theme="light"] .rm-filter input { background: #fffdf4; border-color: #879b77; }
html[data-theme="light"] .rm-filter input:checked { background: var(--color); border-color: var(--color); }
html[data-theme="light"] .rm-filter input:checked:after { color: #fff; }
html[data-theme="light"] .rm-filter input:not(:checked)~span { opacity: .75; }
html[data-theme="light"] .rm-stage { background: #d4deca; }
html[data-theme="light"] .rm-canvas { background: #dce5d1; }
html[data-theme="light"] .rm-canvas .leaflet-tile-pane { filter: none; }
/* Existing attribution has an important background; match it deliberately. */
html[data-theme="light"] .rm-canvas .leaflet-control-attribution {
  background: #fffdf0ed !important; color: #384d31;
}
html[data-theme="light"] .rm-canvas .leaflet-control-attribution a { color: #8b4315; }
html[data-theme="light"] .rm-activation {
  background: radial-gradient(ellipse at 13% 20%, #a3ba8522, transparent 55%), linear-gradient(135deg, #e1ebd7, #f7f7eb 70%);
}
html[data-theme="light"] .rm-activation:before {
  background-image: linear-gradient(#71846512 1px, transparent 1px), linear-gradient(90deg, #71846512 1px, transparent 1px);
}
html[data-theme="light"] :is(.rm-map-symbol, .rm-activation-inner>p:not(.page-kicker),
  .rm-activation small) { color: #526c45; }
html[data-theme="light"] .rm-activation small a { color: #914512; }
html[data-theme="light"] :is(.rm-map-controls, .rm-map-hint, .rm-tile-status) {
  background: #fffcf0ed; color: #2f4728; border-color: #9fb48c;
}
html[data-theme="light"] .rm-map-controls button { color: #304a28; }
html[data-theme="light"] .rm-map-controls button:hover { background: #e2ebd7; }
html[data-theme="light"] .rm-map-controls>span { background: #b6c5a8; }
html[data-theme="light"] .rm-tile-status.is-error { background: #fff3dc; color: #805016; border-color: #c8a46a; }
html[data-theme="light"] .rm-point-button { background: #edf2e4; color: var(--text); }
html[data-theme="light"] :is(.rm-point-button:hover, .rm-point-button.is-selected) { background: #f8e8d2; border-color: #b78351; }
html[data-theme="light"] .rm-point-number { background: #f3dfbf; color: #7c481b; border-color: #bb9561; }
html[data-theme="light"] .rm-point-number.is-parking { background: #d5ebe1; color: #2d6b55; border-color: #8db6a1; }
html[data-theme="light"] .rm-point-arrow { color: #63774f; }
html[data-theme="light"] :is(.rm-detail-kicker, .rm-detail-meta>span, .rm-route-list summary) { color: #8a531b; }
html[data-theme="light"] .rm-detail .rm-detail-summary { color: var(--text) !important; }
html[data-theme="light"] .rm-access-note { background: #f3eedb; color: #655b36; border-color: #c5b888; }
html[data-theme="light"] :is(.rm-access-note strong, .rm-responsibility>p strong) { color: #4b5030; }
html[data-theme="light"] .rm-note-icon { color: #87621c; border-color: #b0975c; }

/* Public range history and nature information. */
html[data-theme="light"] .ri-page { --ri-green: #4b713b; }
html[data-theme="light"] :is(.ri-refs a, .ri-aircraft dd, .ri-species strong, .ri-sources li a) { color: #455e38; }
html[data-theme="light"] .ri-refs a { text-decoration-color: #9daf8d; }
html[data-theme="light"] .ri-access { background: #fff0dd; border-color: #d5b18a; }
html[data-theme="light"] .ri-access strong { color: #8a461d; }
html[data-theme="light"] .ri-access p { color: #69503b; }
html[data-theme="light"] .ri-nature-intro { background: linear-gradient(140deg, #e0ebd4, #f2f5e6); border-color: #b1c49c; }
html[data-theme="light"] .ri-nature-intro>p:not(.ri-eyebrow):not(.ri-refs) { color: #4e6641; }
html[data-theme="light"] .ri-nature-intro .ri-eyebrow { color: #4b6b37; }
html[data-theme="light"] :is(.ri-nature-note, .ri-community-note) { background: #e8f0df; border-color: #bacbb0; color: #4e6443; }
html[data-theme="light"] .ri-nature-note strong { color: #3f6530; }
html[data-theme="light"] .ri-nature-note p { color: #4c6243; }

/* Standalone legal documents use the same appearance preferences. */
html[data-theme="light"] :is(.lead, .section p, .section li, .toc a) { color: #455440; }
html[data-theme="light"] .toc { background: #eaf0e2; }
html[data-theme="light"] .document a:hover { color: #783307; }

/* Context colours are local: image-backed panels stay dark and keep high contrast. */
html[data-theme="light"] :is(.hero, .machine-hero, .ri-hero, .event-card,
  .event-detail-hero, .registration-gate .auth-copy) {
  --text: #f1eee5; --muted: #c7d2c0; --faint: #b6c3ae;
  --orange: #ffb078; --orange-bright: #ffd0a9; color: #f1eee5;
}
html[data-theme="light"] :is(.hero, .machine-hero, .ri-hero, .event-card,
  .event-detail-hero, .registration-gate .auth-copy) .button-secondary {
  background: #17251cd9; color: #f1eee5; border-color: #a6b79b;
}
html[data-theme="light"] :is(.hero, .machine-hero, .ri-hero, .event-card,
  .event-detail-hero, .registration-gate .auth-copy) .button-primary { color: #172016; }
html[data-theme="light"] .registration-gate .auth-copy>p:not(.eyebrow) { color: #d2dacf; }
html[data-theme="light"] .registration-gate .auth-card {
  background: #fffdf6ed; border-color: #b3c19b; box-shadow: 0 18px 65px #0004;
}
html[data-theme="light"] :is(.detail-image-wrap, .public-detail-image, .upload-preview,
  .pr-avatar, .pr-avatar img, .author-profile img, .member-profile-button img) { background: #111b15; }
html[data-theme="light"] .pv-dialog { color-scheme: dark; }

/* Comfortable weight is inherited by long copy while retaining heading hierarchy. */
html[data-weight="comfortable"] :is(.pv-status, .pv-help, .pv-heading>span,
  .pv-top-actions>button, .pv-top-actions>a, .pv-zoom>button,
  .pr-card-bio, .pr-profile-bio, .event-description, .meetup-note,
  .section p, .section li, .lead) { font-weight: 550; }

@media print {
  html[data-theme="light"] { --bg: #fff; --text: #151515; --muted: #444; --orange: #824315; --border: #ccc; }
  html :is(.appearance-controls, [data-appearance-control]) { display: none; }
}
