/* Native site type, simple corners and explicit reflow for real text enlargement. */
#symfio-reader {
  --sr-paper: #fff; --sr-ink: #111112; --sr-muted: #41494b;
  --sr-accent: #052e26; --sr-border: #7a8380; --sr-selected: #edf3f0;
  --sr-radius: 0px; --sr-control-radius: 2px; --sr-base-size: 16px;
  --sr-heading-font: inherit; --sr-heading-weight: 500;
  font-family: inherit;
}
#symfio-reader[data-symfio-reader-site="kastell"] { --sr-accent: #333; --sr-selected: #f0efeb; --sr-heading-font: Georgia, Times, "Times New Roman", serif; --sr-heading-weight: 400; }
#symfio-reader[data-symfio-reader-site="reimann"] { --sr-accent: #004287; --sr-selected: #edf2f8; --sr-control-radius: 4px; }
[data-symfio-reader-open] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; margin: 0; padding: 8px 6px;
  border: 0; border-radius: 0; background: transparent; color: inherit;
  box-shadow: none; font: inherit; line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere; cursor: pointer; text-decoration: none;
}
[data-symfio-reader-open][hidden], #symfio-reader [hidden] { display: none !important; }
[data-symfio-reader-open] svg { width: 24px; height: 24px; flex: 0 0 24px; color: inherit; }
[data-symfio-reader-open]:hover { text-decoration: underline; text-underline-offset: .2em; }
[data-symfio-reader-open]:focus-visible { outline: 3px solid currentColor !important; outline-offset: 3px !important; }
#symfio-reader, #symfio-reader * { box-sizing: border-box; }
#symfio-reader .symfio-reader-dialog {
  position: fixed; inset: 0; margin: auto;
  width: min(560px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); min-height: 0;
  padding: 0; overflow: hidden; overscroll-behavior: contain;
  border: 1px solid var(--sr-border); border-radius: var(--sr-radius);
  background: var(--sr-paper); color: var(--sr-ink);
  box-shadow: 0 16px 56px #0004;
  font-family: var(--sr-font, inherit); font-size: calc(var(--sr-base-size) * var(--symfio-reader-factor, 1));
  font-weight: 400; font-style: normal; line-height: 1.5;
  letter-spacing: normal; text-align: start; text-transform: none;
  word-break: normal; overflow-wrap: break-word; hyphens: auto;
}
#symfio-reader .symfio-reader-dialog::backdrop { background: #0008; }
#symfio-reader .symfio-reader-dialog:not([open]) { display: none !important; }
#symfio-reader .symfio-reader-dialog[open] { display: flex; flex-direction: column; visibility: visible; opacity: 1; transform: none; }
#symfio-reader .symfio-reader-header {
  position: relative; flex: 0 0 auto; display: grid;
  grid-template-columns: minmax(0, 1fr) 44px; align-items: start; gap: 12px;
  margin: 0; padding: 24px 24px 18px; border-bottom: 1px solid #dce0dd;
  background: var(--sr-paper);
}
#symfio-reader .symfio-reader-header h2 {
  min-width: 0; margin: 0; padding: 0; color: var(--sr-ink);
  font-family: var(--sr-heading-font); font-size: 1.375em; font-weight: var(--sr-heading-weight); font-style: normal; line-height: 1.25;
  letter-spacing: normal; text-transform: none; text-wrap: balance; hyphens: auto;
}
#symfio-reader .symfio-reader-content { flex: 1 1 auto; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 24px 24px; scroll-padding-block: 14px; }
#symfio-reader .symfio-reader-dialog p { margin: 0 0 1em; padding: 0; color: var(--sr-muted); font: inherit; }
#symfio-reader .symfio-reader-dialog :is(button, input, a) { max-width: 100%; }
#symfio-reader .symfio-reader-dialog button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; margin: 0; padding: .5em .8em;
  border: 1px solid var(--sr-border); border-radius: var(--sr-control-radius);
  background: var(--sr-paper); color: var(--sr-ink);
  font: inherit; line-height: 1.5; letter-spacing: normal; text-transform: none;
  white-space: normal; word-break: normal; overflow-wrap: break-word; hyphens: auto; cursor: pointer; box-shadow: none;
}
#symfio-reader .symfio-reader-dialog .symfio-reader-close {
  width: 44px; min-width: 44px; height: 44px; padding: 0; border-color: transparent;
}
#symfio-reader .symfio-reader-close svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; }
#symfio-reader .symfio-reader-dialog fieldset {
  display: grid; min-width: 0; min-inline-size: 0; margin: 1.25em 0; padding: 0; gap: 10px;
  border: 0; background: transparent;
}
#symfio-reader .symfio-reader-dialog legend {
  display: block; float: none; width: 100%; margin: 0 0 .5em; padding: 0;
  border: 0; background: transparent; color: var(--sr-ink); font: inherit; font-weight: 600;
}
#symfio-reader .symfio-reader-dialog .symfio-reader-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#symfio-reader .symfio-reader-dialog .symfio-reader-option {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; min-width: 0; min-height: 48px;
  gap: 12px; margin: 0; padding: .625em .75em; border: 1px solid var(--sr-border); border-radius: var(--sr-control-radius);
  background: var(--sr-paper); color: var(--sr-ink); font: inherit; line-height: 1.5; cursor: pointer;
}
#symfio-reader .symfio-reader-option > span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
#symfio-reader .symfio-reader-option .symfio-reader-percent { display: inline-block; white-space: nowrap; }
#symfio-reader .symfio-reader-option::before, #symfio-reader .symfio-reader-option::after { content: none; display: none; }
#symfio-reader .symfio-reader-option:has(input:checked) { background: var(--sr-selected); border-color: var(--sr-accent); }
#symfio-reader .symfio-reader-option:has(input:focus-visible) { outline: 3px solid var(--sr-accent); outline-offset: 3px; }
#symfio-reader .symfio-reader-option :is(input[type="radio"], input[type="checkbox"]) {
  appearance: auto; display: inline-block; position: static; align-self: start;
  width: 22px; min-width: 22px; height: 22px; min-height: 22px;
  margin: max(0px, calc((1.5em - 22px) / 2)) 0 0; padding: 0; font: inherit;
  opacity: 1; visibility: visible; clip: auto; clip-path: none; transform: none; accent-color: var(--sr-accent);
}
#symfio-reader .symfio-reader-dialog :is(.symfio-reader-storage, .symfio-reader-status) { font-size: .875em; line-height: 1.6; }
#symfio-reader .symfio-reader-status:empty { display: none; }
#symfio-reader .symfio-reader-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 0; }
#symfio-reader .symfio-reader-actions > :is(button,a) { flex: 1 1 11em; min-width: 0; }
#symfio-reader .symfio-reader-dialog .symfio-reader-done { border-color: var(--sr-accent); background: var(--sr-accent); color: #fff; }
#symfio-reader .symfio-reader-dialog button:hover { border-color: var(--sr-accent); text-decoration: underline; text-underline-offset: .2em; }
#symfio-reader .symfio-reader-information { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--sr-border); }
#symfio-reader .symfio-reader-information a { display: inline-flex; min-height: 24px; color: var(--sr-accent); font-size: .875em; line-height: 1.6; text-decoration: underline; text-underline-offset: .2em; }
#symfio-reader :is(button, input, a, [tabindex]):focus-visible { outline: 3px solid var(--sr-accent) !important; outline-offset: 3px !important; box-shadow: 0 0 0 3px var(--sr-paper) !important; }
html:is([data-symfio-reader-size="150"],[data-symfio-reader-size="200"]) #symfio-reader .symfio-reader-dialog { width: min(760px, calc(100vw - 32px)); }
html:is([data-symfio-reader-size="150"],[data-symfio-reader-size="200"]) #symfio-reader .symfio-reader-dialog .symfio-reader-sizes { grid-template-columns: minmax(0, 1fr); }

/* Marks identify text only, never hold measured font sizes. Hidden states and
   all native sizing remain untouched at100%. Photos/logos are never filtered. */
html[data-symfio-reader-size] [data-symfio-reader-text] { overflow-wrap: anywhere; }
html[data-symfio-reader-size] [data-symfio-reader-text]:is(button,input,select,textarea) { height: auto !important; min-height: max(44px, 1.5em); }
html[data-symfio-reader-size] [data-symfio-reader-text]:is(button,a) { white-space: normal !important; }
html[data-symfio-reader-contrast="true"] [data-symfio-reader-text] { color: #111112 !important; background-color: #fff !important; text-shadow: none !important; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-symfio-reader-contrast="true"] a[data-symfio-reader-text], html[data-symfio-reader-contrast="true"] a [data-symfio-reader-text] { color: #003b7a !important; text-decoration: underline !important; }
html[data-symfio-reader-links="true"] a { text-decoration: underline !important; text-underline-offset: .2em; text-decoration-thickness: max(1px,.08em); }
html[data-symfio-reader-motion="true"],html[data-symfio-reader-motion="true"] *,html[data-symfio-reader-motion="true"] *::before,html[data-symfio-reader-motion="true"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
@media(max-width:640px) {
  #symfio-reader .symfio-reader-header { padding: 16px 16px 14px; }
  #symfio-reader .symfio-reader-content { padding: 18px 16px; }
  #symfio-reader .symfio-reader-header h2 { font-size: 1.25em; }
  #symfio-reader .symfio-reader-dialog .symfio-reader-sizes { grid-template-columns: minmax(0,1fr); }
  #symfio-reader .symfio-reader-option { padding-inline: .5em; }
}
@media(max-height:480px) { #symfio-reader .symfio-reader-header { padding-block: 12px; } #symfio-reader .symfio-reader-content { padding-block: 14px; } }
@media(forced-colors:active) { #symfio-reader :is(button,input,a,[tabindex]):focus-visible { outline-color: Highlight !important; box-shadow: none !important; } #symfio-reader .symfio-reader-option:has(input:checked) { outline: 2px solid Highlight; } }
@media print { #symfio-reader,[data-symfio-reader-open] { display: none !important; } }
