/* sped-deadlines.css: the deadline calculator (js/sped-deadlines.js) on special-education.html.
   Help Center look (navy #14324F / gold #F2B33D), light and dark through html[data-theme]. Class prefix: sdl-. */

.sdl { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm);
  --sdl-gold-bg: #FFF6E5; --sdl-gold-line: #F3D9A4; --sdl-gold-ink: #7A4F00; --sdl-num-bg: #14324F; --sdl-num-fg: #fff; }
[data-theme="dark"] .sdl { --sdl-gold-bg: rgba(242,179,61,.10); --sdl-gold-line: rgba(242,179,61,.38); --sdl-gold-ink: #F5C76B; --sdl-num-bg: #F2B33D; --sdl-num-fg: #14324F; }
.sdl-lead { margin: 0 0 16px; color: var(--hc-text-2, var(--text)); line-height: 1.5; }
.sdl-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.sdl-field { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--hc-text-2, var(--text)); min-width: 0; }
.sdl-field input, .sdl-field select { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 1px solid var(--hc-field, var(--border)); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .9375rem; font-weight: 400; box-sizing: border-box; }
[data-theme="dark"] .sdl-field input { color-scheme: dark; }
.sdl-help { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.sdl-go { grid-column: 1 / -1; }
.sdl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer; text-align: center; }
.sdl-btn svg, .sdl-private svg, .sdl-confirm svg, .sdl-passed h4 svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sdl-btn-navy { background: var(--hc-btn-bg, var(--navy)); color: var(--hc-btn-fg, #fff); }
.sdl-btn-navy:hover { filter: brightness(1.12); }
.sdl-btn-line { background: var(--surface); color: var(--ink); border-color: var(--border); }
.sdl-btn-line:hover { border-color: var(--accent); background: var(--hover); }
.sdl-private { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--good); font-weight: 600; font-size: .875rem; }
.sdl-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-weight: 600; }

.sdl-out:empty { display: none; }
.sdl-out { margin-top: 20px; border-top: 1px solid var(--hc-line, var(--border)); padding-top: 16px; }
.sdl-h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.sdl-basis { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--hc-text-2, var(--text)); overflow-wrap: anywhere; }
.sdl-basis-est { padding: 10px 12px; border-radius: 12px; background: var(--sdl-gold-bg); border: 1px solid var(--sdl-gold-line); color: var(--sdl-gold-ink); }
.sdl-muted { color: var(--muted); }
.sdl-basis a, .sdl-cite a, .sdl-note a { font-weight: 600; }

.sdl-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.sdl-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
.sdl-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border); }
.sdl-num { width: 40px; height: 40px; border-radius: 50%; background: var(--sdl-num-bg); color: var(--sdl-num-fg); display: grid; place-items: center; font-weight: 800; }
.sdl-step-open .sdl-num { background: var(--surface-2); color: var(--muted); border: 2px dashed var(--border); }
.sdl-step-body { min-width: 0; }
.sdl-kicker { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sdl-est { color: var(--sdl-gold-ink); }
.sdl-step-h { margin: 2px 0 4px; font-size: 1.0625rem; color: var(--ink); }
.sdl-date { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.sdl-date-unknown { font-size: 1rem; color: var(--sdl-gold-ink); }
.sdl-rule { margin: 0 0 6px; line-height: 1.5; }
.sdl-note { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--sdl-gold-bg); color: var(--text); font-size: .875rem; line-height: 1.5; border-radius: 0 8px 8px 0; }
.sdl-cite { margin: 6px 0 8px; font-size: .8125rem; overflow-wrap: anywhere; }
.sdl-cite a { display: inline-flex; align-items: center; min-height: 24px; }

.sdl-confirm { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--sdl-gold-bg);
  border: 1px solid var(--sdl-gold-line); color: var(--sdl-gold-ink); font-weight: 700; line-height: 1.45; }
.sdl-small { margin: 8px 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.sdl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.sdl-saved { font-size: .875rem; font-weight: 600; color: var(--good); }

.sdl-passed { margin-top: 16px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.sdl-passed h4 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 1rem; }
.sdl-passed p { margin: 0 0 6px; font-size: .9rem; line-height: 1.5; }
.sdl-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sdl-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.sdl-how { margin-top: 16px; font-size: .875rem; line-height: 1.55; }
.sdl-how summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.sdl-how .sdl-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

@media (max-width: 860px) {
  .sdl-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sdl-form .sdl-field:nth-child(2) { grid-column: 2; }
}
@media (max-width: 600px) {
  .sdl { padding: 16px; border-radius: 16px; }
  .sdl-form { grid-template-columns: 1fr; }
  .sdl-form .sdl-field:nth-child(2) { grid-column: auto; }
  .sdl-step { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .sdl-num { width: 32px; height: 32px; }
  .sdl-step:not(:last-child)::before { left: 15px; top: 32px; }
  .sdl-date { font-size: 1.0625rem; }
  .sdl-actions .sdl-btn { flex: 1 1 100%; }
  .sdl-go .sdl-btn { width: 100%; }
}
@media print {
  .sdl-form, .sdl-private, .sdl-actions, .sdl-ics, .sdl-how { display: none !important; }
  .sdl { border: 0; box-shadow: none; padding: 0; }
  .sdl-step { break-inside: avoid; }
}
