/* The legacy rem resizers are superseded by one measured text multiplier. */
html[data-iveacer-a11y] { font-size: 16px !important; }
html[data-grayscale="true"] { filter: grayscale(1) !important; }
html[data-iveacer-a11y] .iveacer-font-scaled {
  font-size: calc(var(--iveacer-font-base) * var(--iveacer-text-scale)) !important;
  line-height: calc(var(--iveacer-line-base, 24px) * var(--iveacer-text-scale)) !important;
}
html.iveacer-measuring .iveacer-font-scaled {
  font-size: var(--iveacer-font-base) !important;
  line-height: var(--iveacer-line-base, 1.5) !important;
}
html[data-reduced-motion="true"] *, html[data-reduced-motion="true"] *::before, html[data-reduced-motion="true"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; scroll-behavior: auto !important;
}
html[data-contrast="high"] { --iveacer-text-muted: #303a34; --iveacer-border: #4b5c50; --text-muted: #303a34; --text-secondary: #303a34; --border-color: #4b5c50; }
html[data-theme="dark"][data-contrast="high"] { --iveacer-text-muted: #e7f2e9; --iveacer-border: #b7cfbe; --text-muted: #e7f2e9; --text-secondary: #e7f2e9; --border-color: #b7cfbe; }
html[data-contrast="high"] :where(a,button,input,select,textarea) { outline-offset: 3px; }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid #bd8b16 !important; outline-offset: 3px; }
.iveacer-a11y, .iveacer-a11y * { box-sizing: border-box; }
.iveacer-a11y { font-family: 'Prompt','Sarabun',sans-serif; font-size: calc(16px * var(--iveacer-text-scale, 1)); line-height: 1.7; }
.iveacer-a11y-open { position: fixed; right: 16px; bottom: 76px; z-index: 1500; border: 1px solid #d4af37; border-radius: 999px; padding: 9px 14px; min-height: 44px; background: #1e4d2b; color: #fff; box-shadow: 0 4px 16px #102a1b33; font: 600 calc(13px * var(--iveacer-text-scale, 1))/1.5 'Prompt',sans-serif; cursor: pointer; }
.iveacer-a11y-open span { margin-left: 5px; color: #f5d574; }
#iveacer-a11y-panel { position: fixed; inset: 0; width: min(480px,calc(100% - 24px)); max-height: min(90dvh,800px); overflow-y: auto; margin: auto; padding: 22px; border: 1px solid #bbcfbf; border-radius: 16px; background: #fff; color: #173b24; box-shadow: 0 20px 80px #001c2440; font: calc(14px * var(--iveacer-text-scale, 1))/1.7 'Prompt','Sarabun',sans-serif; }
#iveacer-a11y-panel::backdrop { background: #09251980; }
.iveacer-a11y-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#iveacer-a11y-title { font-size: calc(19px * var(--iveacer-text-scale, 1)); font-weight: 700; margin: 0; color: inherit; }
#iveacer-a11y-panel .iveacer-a11y-close { border: 0; padding: 3px 12px; font-size: calc(26px * var(--iveacer-text-scale, 1)); background: transparent; color: inherit; cursor: pointer; }
#iveacer-a11y-panel p { font-size: calc(12px * var(--iveacer-text-scale, 1)); color: #53665b; margin: 7px 0 14px; }
#iveacer-a11y-panel fieldset { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; margin: 0 0 15px; border: 1px solid #d9e3dc; border-radius: 10px; padding: 10px 12px 12px; }
#iveacer-a11y-panel legend { float: none; width: auto; padding: 0 5px; margin: 0; font-size: calc(13px * var(--iveacer-text-scale, 1)); font-weight: 600; color: inherit; }
#iveacer-a11y-panel fieldset button { min-height: 42px; padding: 7px 14px; border: 1px solid #b9cfc0; border-radius: 7px; background: #f4f7f4; color: #173b24; font: inherit; cursor: pointer; }
#iveacer-a11y-panel fieldset button[aria-pressed="true"] { background: #1e4d2b; color: #fff; border-color: #1e4d2b; box-shadow: inset 0 0 0 1px #e3c65f; }
#iveacer-a11y-panel [data-a11y-language-note] { flex-basis: 100%; margin: 3px 0 0; }
#iveacer-a11y-panel .iveacer-a11y-storage { background: #eef4ef; border-radius: 8px; padding: 10px; margin-bottom: 0; }
html[data-theme="dark"] #iveacer-a11y-panel { background: #152b20; color: #edf5ef; border-color: #5c7766; }
html[data-theme="dark"] #iveacer-a11y-panel p { color: #c5d7ca; }
html[data-theme="dark"] #iveacer-a11y-panel fieldset { border-color: #45614e; }
html[data-theme="dark"] #iveacer-a11y-panel fieldset button { background: #203e2d; color: #edf5ef; border-color: #63836d; }
html[data-theme="dark"] #iveacer-a11y-panel fieldset button[aria-pressed="true"] { background: #3f714f; }
html[data-theme="dark"] #iveacer-a11y-panel .iveacer-a11y-storage { background: #203e2d; }
@media(max-width:600px) { .iveacer-a11y-open { right: 12px; bottom: 70px; padding: 8px 12px; font-size: calc(12px * var(--iveacer-text-scale, 1)); } #iveacer-a11y-panel { padding: 17px; } }
@media print { [data-a11y-toolbar] { display: none !important; } html[data-grayscale="true"] { filter: none !important; } }

/* Keep keyboard targets clear of fixed controls and preserve Windows high contrast. */
html[data-iveacer-a11y] { scroll-padding-block: 110px 150px; }
html[data-iveacer-a11y] :where(a,button,input,select,textarea,[tabindex]) { scroll-margin-block: 110px 150px; }
.news-header { flex-wrap: wrap; gap: 12px; }
.news-nav-buttons { flex-wrap: wrap; align-items: center; }
.news-pause-btn { width: auto; min-width: 44px; min-height: 44px; height: auto; padding: 8px 12px; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.news-pause-btn:disabled { opacity: 1; cursor: default; }
@media (forced-colors: active) {
  :where(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 3px solid Highlight !important; }
  #iveacer-a11y-panel, #iveacer-a11y-panel fieldset, #iveacer-a11y-panel fieldset button, .iveacer-a11y-open { border-color: ButtonText; }
  #iveacer-a11y-panel fieldset button[aria-pressed="true"] { border: 3px double Highlight; }
}
