/* Shared by the Django website and the React app, including embedded readers. */
:root {
  --family-focus: #69469e;
  --family-focus-edge: #fffaf3;
  --family-tap: 44px;
}
:where(button, input, select, textarea, dialog) { font-family: inherit; }
:where(a[href], button, summary, select, textarea, input, [tabindex]):focus-visible {
  outline: 3px solid var(--family-focus);
  outline-offset: 3px;
}
:where(.room-round, .room-save, .access-icon, .icon-button, .nav-sheet-close) {
  min-inline-size: var(--family-tap);
  min-block-size: var(--family-tap);
}
dialog[open] { max-inline-size: calc(100vw - 1rem); }
dialog::backdrop { overscroll-behavior: contain; }
.app-network-notice {
  position: fixed; z-index: 9999; inset-block-start: max(.5rem, env(safe-area-inset-top));
  inset-inline: 1rem; width: fit-content; max-width: min(calc(100vw - 2rem), 410px);
  margin-inline: auto; padding: .5rem 1rem; border-radius: 12px;
  background: #433153; color: white; text-align: center; pointer-events: none;
  font: 600 .9rem/1.65 Vazirmatn, Tahoma, sans-serif;
}
.app-network-notice:empty { display: none; }
.app-recovery {box-sizing:border-box; width:min(100%,448px); min-height:100dvh; margin-inline:auto; padding:24px;
  display:grid; place-content:center; justify-items:center; gap:12px; text-align:center; background:#fff9f0; color:#30273d;}
.app-recovery img {border-radius:20px;}
.app-recovery :is(h1,p) {margin:0;}
.app-recovery button {min-height:48px; border:0; border-radius:14px; padding:.6rem 1.5rem; background:#654198; color:white;}
.app-recovery a {padding:.6rem 1rem; text-decoration:underline; color:#563580;}
.family-contact { padding-block: 1.5rem 5rem; }
.support-heading, .support-form, .support-resources { border-radius: 22px; background: #fffaf3; color: #30273d; }
.support-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: 1rem clamp(1rem, 4vw, 3rem); margin-block: 1rem 1.5rem; }
.support-heading img { width: clamp(72px, 17vw, 144px); height:auto; }
.support-layout { display:grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items:start; gap:1.25rem; }
.support-form, .support-resources { border:1px solid #e6deea; background:white; padding:clamp(1rem, 3vw, 2rem); }
.support-form h2, .support-resources h2 { font-size:1.25rem; margin-block-end: 1rem; }
.support-fields {display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:1rem;}
.support-field { display:grid; align-content:start; gap:.3rem; grid-column:1/-1; min-inline-size:0; }
.support-field.half {grid-column:span 1;}
.support-field[hidden] {display:none;}
.support-field label {font-weight:700;}
.support-field :is(input, select, textarea) {width:100%; min-height:46px; border:1px solid #93869b; border-radius:12px; padding:.65rem .85rem; background:white; color:#30273d; box-sizing:border-box;}
.support-field textarea {resize:vertical;}
.support-field small, .support-note {color:#62586b; line-height:1.7;}
.support-note {margin-block:1rem;}
.support-error, .support-field .errorlist {color:#8e253f;}
.support-resources a {display:block; padding-block:.65rem; color:#59377f; text-decoration:underline;}
@media(max-width:680px) {.support-layout {grid-template-columns:1fr;} .support-field.half {grid-column:1/-1;}}
@media (max-width: 600px) {
  :where(form, dialog) :is(input[type="email"],input[type="tel"],input[type="text"],input[type="password"],input[type="url"],select,textarea) {
    font-size: max(1rem, 16px);
  }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
}
