/* ============================================================
   Eastern Aquarium: Settings panel + the effects it turns on
   ============================================================ */

/* ── Effects ───────────────────────────────────────────────── */
html.ea-font-easy body, html.ea-font-easy body *:not(i):not(.fa):not(.fas):not(.fab):not(.far):not([class*="fa-"]) { font-family: 'Atkinson Hyperlegible', 'Inter', sans-serif !important; }
html.ea-font-lexend body, html.ea-font-lexend body *:not(i):not(.fa):not(.fas):not(.fab):not(.far):not([class*="fa-"]) { font-family: 'Lexend', 'Inter', sans-serif !important; }
html.ea-lines-relaxed p, html.ea-lines-relaxed li, html.ea-lines-relaxed dd, html.ea-lines-relaxed blockquote, html.ea-lines-relaxed td, html.ea-lines-relaxed summary { line-height: 1.95 !important; }
html.ea-lines-extra p, html.ea-lines-extra li, html.ea-lines-extra dd, html.ea-lines-extra blockquote, html.ea-lines-extra td, html.ea-lines-extra summary { line-height: 2.3 !important; }
html.ea-spacing-wide body { letter-spacing: .035em !important; word-spacing: .14em !important; }
html.ea-spacing-wide p, html.ea-spacing-wide li { letter-spacing: .035em !important; word-spacing: .14em !important; }
html.ea-links p a, html.ea-links main li a:not([class]), html.ea-links section li a:not([class]), html.ea-links dd a, html.ea-links .footer-grid a { text-decoration: underline !important; text-underline-offset: 3px; }

html.ea-contrast {
  --es-muted: #1f2937; --es-text: #0b0f14; --es-border: rgba(0,0,0,.4); --es-gray: #eef1f3;
}
html.ea-contrast body { color: #0b0f14; }
html.ea-contrast .btn-accent, html.ea-contrast .btn-primary { background: #0b5a61 !important; color: #fff !important; border-color: #0b5a61 !important; }
html.ea-contrast p a:not([class]) { color: #0b5a61; }
html.ea-contrast section[class*="dark"] p a, html.ea-contrast .ea-hero p a { color: #7fe3ea; }
html.ea-contrast input, html.ea-contrast select, html.ea-contrast textarea { border-color: #334155 !important; }
html.ea-contrast .card, html.ea-contrast [class*="card"] { border-color: rgba(0,0,0,.35) !important; }

html.ea-colors-soft { filter: saturate(.55); }
html.ea-colors-gray { filter: grayscale(1); }

html.ea-cursor-big, html.ea-cursor-big * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 10-7 1.5L9 21z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}

:focus-visible { outline: 3px solid #1fa9b4; outline-offset: 2px; }
html.ea-focus-strong *:focus-visible { outline: 4px solid #ffbf47 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #0b0f14 !important; }

html.ea-reduce-motion *, html.ea-reduce-motion *::before, html.ea-reduce-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}

html.ea-quiet #ea-banner, html.ea-quiet .ea-popup, html.ea-quiet [data-popup] { display: none !important; }

.ea-guide { position: fixed; left: 0; right: 0; height: 44px; top: -100px; z-index: 99990; pointer-events: none;
  background: rgba(255, 214, 102, .22); border-top: 2px solid rgba(214, 158, 0, .55); border-bottom: 2px solid rgba(214, 158, 0, .55); }

.ea-skip { position: fixed; left: 12px; top: -60px; z-index: 100000; background: #0b0f14; color: #fff; padding: 10px 16px; border-radius: 8px;
  font: 700 .95rem 'Inter', sans-serif; text-decoration: none; transition: top .15s; }
.ea-skip:focus { top: 12px; }

/* ── Launch buttons ────────────────────────────────────────── */
.ea-s-launch.floating { position: fixed; left: 16px; bottom: 16px; z-index: 9000; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 600 .9rem 'Inter', sans-serif; background: #fff; color: #0f172a; border: 1px solid #e5eaf0; border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(8,20,30,.18); }
.ea-s-launch.floating i { color: #0f7d88; }
.ea-s-footlink { background: none; border: 0; color: inherit; opacity: .85; font: 600 .85rem 'Inter', sans-serif; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; padding: 4px 0; }
.ea-s-footlink:hover { opacity: 1; text-decoration: underline; }

/* ── Settings UI ──────────────────────────────────────────────
   Clean and calm: white surfaces, soft borders, one teal accent.
   Works as a pop-up or inside the account page.               */
html.ea-s-open { overflow: hidden; }
.ea-s-overlay { position: fixed; inset: 0; z-index: 99995; background: rgba(8, 20, 30, .45); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.ea-s-overlay[hidden] { display: none; }

.ea-s-panel {
  --s-ink: #0f172a; --s-text: #334155; --s-muted: #64748b; --s-line: #e5eaf0; --s-soft: #f4f7f9; --s-teal: #0f7d88; --s-teal-soft: #e6f5f6;
  width: 100%; max-width: 880px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--s-text); border-radius: 20px; box-shadow: 0 24px 80px rgba(8,20,30,.28);
  font-family: 'Inter', sans-serif; letter-spacing: 0; word-spacing: 0; text-align: left; line-height: 1.45;
}
.ea-s-panel.inline { max-width: none; max-height: none; box-shadow: none; border: 1px solid var(--s-line); border-radius: 16px; }
.ea-s-panel * { box-sizing: border-box; }
.ea-s-panel button { font-family: inherit; }
.ea-s-panel :focus-visible { outline: 3px solid rgba(15,125,136,.45); outline-offset: 2px; }

.ea-s-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 28px 8px; }
.ea-s-head h2 { margin: 0; font: 800 1.6rem 'Montserrat', sans-serif; color: var(--s-ink); letter-spacing: -.02em; }
.ea-s-sub { margin: 4px 0 0; font-size: .95rem; color: var(--s-muted); }
.ea-s-close { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--s-line); background: #fff; color: var(--s-ink); font-size: 1.05rem; cursor: pointer; }
.ea-s-close:hover { background: var(--s-soft); }

.ea-s-section-label { padding: 18px 28px 10px; font: 600 .78rem 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); }
.ea-s-panel.inline .ea-s-head { display: none; }

.ea-s-presets { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; padding: 0 28px; }
.ea-s-preset { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px; text-align: left; cursor: pointer;
  background: #fff; color: var(--s-ink); border: 1px solid var(--s-line); border-radius: 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.ea-s-preset:hover { border-color: #c9d5de; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.ea-s-preset-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: .95rem; margin-bottom: 8px; }
.p-standard .ea-s-preset-icon { background: #e6f5f6; color: #0f7d88; }
.p-calm .ea-s-preset-icon { background: #eaf6ec; color: #2f7d3e; }
.p-easyread .ea-s-preset-icon { background: #fff1e6; color: #c05a12; }
.p-lowvision .ea-s-preset-icon { background: #efebff; color: #6a4fd8; }
.p-focus .ea-s-preset-icon { background: #fdecef; color: #c2334d; }
.ea-s-preset b { font: 700 .95rem 'Inter', sans-serif; }
.ea-s-preset small { font-size: .8rem; line-height: 1.35; color: var(--s-muted); }
.ea-s-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem;
  border: 1.5px solid var(--s-line); color: transparent; background: #fff; }
.ea-s-preset.on { border-color: var(--s-teal); background: var(--s-teal-soft); box-shadow: inset 0 0 0 1px var(--s-teal); }
.ea-s-preset.on .ea-s-check { background: var(--s-teal); border-color: var(--s-teal); color: #fff; }

.ea-s-body { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 0 28px; }
.ea-s-tabs { display: flex; gap: 4px; padding: 4px; background: var(--s-soft); border-radius: 12px; }
.ea-s-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 0; border-radius: 9px; background: none;
  color: var(--s-muted); font: 600 .92rem 'Inter', sans-serif; cursor: pointer; transition: background .15s, color .15s; }
.ea-s-tab i { font-size: .9rem; }
.ea-s-tab:hover { color: var(--s-ink); }
.ea-s-tab.on { background: #fff; color: var(--s-ink); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.ea-s-tab.on i { color: var(--s-teal); }
.ea-s-pane { overflow-y: auto; padding: 6px 2px 4px; }
.ea-s-sample { margin: 14px 0 4px; padding: 16px 18px; border-radius: 12px; background: var(--s-soft); }
.ea-s-sample b { display: block; font: 600 .72rem 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 4px; }
.ea-s-sample p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--s-ink); }
.ea-s-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--s-line); }
.ea-s-row:last-child { border-bottom: 0; }
.ea-s-row-label { font: 600 1rem 'Inter', sans-serif; color: var(--s-ink); }
.ea-s-row-help { font-size: .88rem; color: var(--s-muted); margin-top: 2px; max-width: 360px; }

.ea-s-seg-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ea-s-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--s-soft); border: 1px solid var(--s-line); border-radius: 11px; }
.ea-s-opt { min-width: 44px; min-height: 38px; padding: 7px 14px; border: 0; border-radius: 8px; background: none; color: var(--s-text); font: 600 .9rem 'Inter', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.ea-s-opt:hover { color: var(--s-ink); background: rgba(255,255,255,.7); }
.ea-s-opt.on { background: #fff; color: var(--s-teal); box-shadow: 0 1px 3px rgba(15,23,42,.14); }
.ea-s-seg.size .ea-s-opt { min-width: 40px; padding: 4px 8px; }
.ea-s-a { font-weight: 700; line-height: 1; }
.ea-s-now { font-size: .82rem; font-weight: 600; color: var(--s-muted); }

.ea-s-switch { position: relative; flex-shrink: 0; width: 52px; height: 30px; border-radius: 10px; border: 0; padding: 0; cursor: pointer; background: #cfd8e0; transition: background .18s; }
.ea-s-switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.25); transition: left .18s; }
.ea-s-switch.on { background: var(--s-teal); }
.ea-s-switch.on .ea-s-switch-knob { left: 25px; }

.ea-s-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--s-line); margin-top: 10px; }
.ea-s-panel.inline .ea-s-foot { justify-content: flex-start; }
.ea-s-reset { border: 0; background: none; color: var(--s-muted); font: 600 .92rem 'Inter', sans-serif; cursor: pointer; padding: 10px 4px; display: inline-flex; align-items: center; gap: 8px; }
.ea-s-reset:hover { color: var(--s-ink); }
.ea-s-done { border: 0; border-radius: 11px; padding: 12px 26px; background: var(--s-teal); color: #fff; font: 700 .95rem 'Inter', sans-serif; cursor: pointer; }
.ea-s-done:hover { background: #0b6770; }

.ea-s-panel, .ea-s-body, .ea-s-presets, .ea-s-tabs, .ea-s-pane, .ea-s-row-text { min-width: 0; }

@media (max-width: 820px) {
  .ea-s-overlay { padding: 0; align-items: flex-end; }
  .ea-s-overlay .ea-s-panel { max-height: 94vh; border-radius: 20px 20px 0 0; overflow-y: auto; }
  .ea-s-overlay .ea-s-body { flex: none; }
  .ea-s-overlay .ea-s-pane { overflow: visible; }
  .ea-s-head { padding: 20px 18px 4px; }
  .ea-s-section-label { padding: 16px 18px 8px; }
  .ea-s-presets { grid-template-columns: 1fr 1fr; padding: 0 18px; }
  .ea-s-body { padding: 0 18px; }
  .ea-s-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .ea-s-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .ea-s-row:has(.ea-s-switch) { flex-direction: row; align-items: center; }
  .ea-s-seg-wrap { align-items: stretch; }
  .ea-s-seg { display: flex; }
  .ea-s-opt { flex: 1; padding: 7px 6px; }
  .ea-s-overlay .ea-s-foot { position: sticky; bottom: 0; background: #fff; padding: 12px 18px 16px; }
  .ea-s-panel.inline .ea-s-presets, .ea-s-panel.inline .ea-s-body { padding-left: 16px; padding-right: 16px; }
}

/* Icons added to buttons across the site */
.filter-btn i, .btn-ps i, .cta-btn i, .remove-btn i, .btn-notify i, .btn-cancel i { margin-right: 6px; }
.auth-foot .ea-s-footlink.auth { color: #fff !important; opacity: 1; font: 600 .8rem 'Inter', sans-serif; padding: 0 !important; margin: 0 !important; display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; white-space: nowrap; width: auto !important; height: auto !important; min-height: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; position: static !important; }
@media (max-width: 760px) { .ea-s-footlink:not(.auth) { min-height: 40px; padding-top: 8px; padding-bottom: 8px; } }
