/* Daycare regulations public pages. Matches blue_tico / site_utils palette:
   navy #1e3a5f, body text #333, Raleway headings, Open Sans body. */
.dr {
  --dr-navy: #1e3a5f;
  --dr-blue: #1d5fa8;
  --dr-text: #2b2f36;
  --dr-muted: #5a6270;
  --dr-line: #dde3ea;
  --dr-soft: #f4f7fb;
  --dr-ok: #1d6b3a;
  color: var(--dr-text);
  font-size: 16px;
  line-height: 1.65;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.dr h2 { font-size: 1.5rem; color: var(--dr-navy); margin: 0 0 .6em; line-height: 1.3; }
.dr h3 { font-size: 1.1rem; color: var(--dr-navy); margin: 0 0 .3em; line-height: 1.35; }
.dr a { color: var(--dr-blue); text-decoration: underline; text-underline-offset: 2px; }
.dr a:hover, .dr a:focus { color: var(--dr-navy); }
.dr a:focus-visible, .dr button:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.dr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.dr-lede { font-size: 1.12rem; }
.dr-muted, .dr-meta { color: var(--dr-muted); }
.dr-block, .dr-section { margin: 36px 0; }
.dr-section { scroll-margin-top: 90px; }

/* Reviewed line under the H1 */
.dr-reviewed { color: var(--dr-muted); font-size: .95rem; margin: 0 0 18px; }
.dr-reviewed .dr-sep { margin: 0 .35em; }
.dr-preview-note { background: #fff4d6; border: 1px solid #e3c463; padding: 8px 12px; border-radius: 6px; font-size: .9rem; }

/* Facts + license types */
.dr-facts { background: var(--dr-soft); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.dr-facts p { margin: 4px 0; }
.dr-license-types { padding-left: 1.2em; }
.dr-license-types li { margin: 6px 0; }

/* Table of contents */
.dr-toc { border: 1px solid var(--dr-line); border-radius: 10px; padding: 16px 20px; margin: 28px 0; }
.dr-toc h2 { font-size: 1.1rem; margin-bottom: .4em; }
.dr-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.dr-toc li { break-inside: avoid; margin: 2px 0; }

/* Rules */
.dr-rule { border-top: 1px solid var(--dr-line); padding: 16px 0 6px; }
.dr-rule__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; color: var(--dr-muted); margin: 0 0 6px; }
.dr-cite { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; color: var(--dr-navy); font-weight: 600; }
.dr-tip { border-left: 3px solid #9cc0e6; background: var(--dr-soft); padding: 8px 12px; font-size: .93rem; color: #3a4452; border-radius: 0 6px 6px 0; }
.dr-tip__label { font-weight: 600; color: var(--dr-navy); }

/* Tables */
.dr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dr-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dr-table th, .dr-table td { border-bottom: 1px solid var(--dr-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.dr-table thead th { background: var(--dr-navy); color: #fff; font-weight: 600; white-space: nowrap; }
.dr-table tbody th { font-weight: 600; }
.dr-table .dr-num { white-space: nowrap; }
.dr-sort { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.dr-sort::after { content: " \2195"; opacity: .6; }
th[aria-sort="ascending"] .dr-sort::after { content: " \2191"; opacity: 1; }
th[aria-sort="descending"] .dr-sort::after { content: " \2193"; opacity: 1; }

/* Index cards */
.dr-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .dr-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .dr-cards { grid-template-columns: repeat(3, 1fr); } }
.dr-card { background: #fff; border: 1px solid var(--dr-line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.dr-card p { margin: 0; }
.dr-card--published { border-top: 4px solid var(--dr-navy); box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.dr-card--draft { background: #fbfcfd; }
.dr-card__title { font-size: 1.1rem; }
.dr-card__title a { text-decoration: none; }
.dr-card__reg { font-size: .88rem; color: var(--dr-muted); }
.dr-card__depth { font-size: .92rem; }
.dr-card__more { margin-top: 6px; font-weight: 600; }
.dr-badge { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: #e9edf2; color: #45505e; }
.dr-badge--ok { background: #e3f3e8; color: var(--dr-ok); }

/* CTA (one per page) */
.dr-cta { background: var(--dr-navy); color: #fff; border-radius: 14px; padding: 22px 24px; margin: 40px 0; }
.dr-cta h2 { color: #fff; font-size: 1.3rem; }
.dr-cta p { margin: 0 0 10px; }
.dr-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dr .dr-btn { display: inline-block; background: #fff; color: var(--dr-navy); font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 8px; border: 2px solid #fff; cursor: pointer; font-size: 1rem; }
.dr .dr-btn:hover, .dr .dr-btn:focus { background: #e8eef6; color: var(--dr-navy); }
.dr .dr-btn--ghost { background: transparent; color: #fff; }
.dr .dr-btn--ghost:hover, .dr .dr-btn--ghost:focus { background: rgba(255,255,255,.12); color: #fff; }
.dr-checklist .dr-print { background: var(--dr-navy); color: #fff; border-color: var(--dr-navy); }
.dr-cta a:focus-visible { outline-color: #f2b705; }

.dr-faq__q { margin-top: 18px; }
.dr-sources li { margin: 4px 0; word-break: break-word; }
.dr-back { margin: 28px 0 0; }
.dr-disclaimer { border-top: 1px solid var(--dr-line); margin-top: 32px; padding-top: 14px; font-size: .88rem; color: var(--dr-muted); }

/* Checklist */
.dr-fill { display: grid; grid-template-columns: 1fr; gap: 8px 24px; margin: 18px 0; }
@media (min-width: 576px) { .dr-fill { grid-template-columns: 2fr 2fr 1fr; } }
.dr-fill div { display: flex; gap: 8px; align-items: flex-end; }
.dr-fill dt { font-weight: 600; white-space: nowrap; }
.dr-fill dd { flex: 1; border-bottom: 1px solid #888; margin: 0; min-height: 1.4em; }
.dr-check-section { margin: 26px 0; break-inside: auto; }
.dr-check-section h2 { font-size: 1.2rem; border-bottom: 2px solid var(--dr-navy); padding-bottom: 4px; }
.dr-checks { list-style: none; margin: 0; padding: 0; }
.dr-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--dr-line); break-inside: avoid; }
.dr-checks input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.dr-checks label { display: flex; flex-direction: column; font-weight: 400; margin: 0; cursor: pointer; }
.dr-check__title { font-weight: 600; }
.dr-check__sum { font-size: .9rem; color: var(--dr-muted); }

@media (max-width: 575px) {
  .dr { padding-top: 16px; font-size: 15.5px; }
  .dr h2 { font-size: 1.3rem; }
  .dr-toc ol { columns: 1; }
  .dr-cta { padding: 18px; }
  .dr-table th, .dr-table td { padding: 8px; }
}

@media print {
  .daycare-regulations-page #header,
  .daycare-regulations-page footer,
  .daycare-regulations-page .footer,
  .daycare-regulations-page #footer,
  .daycare-regulations-page .breadcrumbs2-trail,
  .daycare-regulations-page .gva-offcanvas-mobile,
  .daycare-regulations-page .return-top,
  .dr-cta, .dr-noprint, .dr-toc, .dr-back { display: none !important; }
  .daycare-regulations-page .breadcrumbs2-header { background: none !important; min-height: 0 !important; padding: 0 !important; }
  .daycare-regulations-page .breadcrumbs2-title { color: #000 !important; font-size: 20pt; }
  .dr { max-width: none; padding: 0; font-size: 11pt; }
  .dr a { color: #000; text-decoration: none; }
  .dr-checks input { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dr-section a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
}

/* Draft cards: compact (title + badge on one line). */
.dr-card--draft { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.dr-card--draft .dr-card__title { margin: 0; }
.dr-card--draft .dr-card__reg { flex-basis: 100%; }
@media (max-width: 575px) {
  .dr-cards { gap: 10px; }
  .dr-card { padding: 12px 14px; }
}

/* applies_to tags + no-JS filter (radios precede .dr-sections). */
.dr-tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #e8f0fa; color: #1e3a5f; }
.dr-eff { font-weight: 600; color: #7a4b00; }
.dr-filter__label { display: inline-block; margin: 0 8px 0 0; font-weight: 600; color: var(--dr-navy); }
.dr-filter__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dr-filter__pill { display: inline-block; margin: 0 6px 8px 0; padding: 5px 14px; border: 2px solid var(--dr-navy); border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--dr-navy); cursor: pointer; background: #fff; }
.dr-filter__input:checked + .dr-filter__pill { background: var(--dr-navy); color: #fff; }
.dr-filter__input:focus-visible + .dr-filter__pill { outline: 3px solid #f2b705; outline-offset: 2px; }
.dr-filter-scope { margin-top: 28px; }
#dr-f-center:checked ~ .dr-sections .dr-rule[data-applies]:not([data-applies~="center"]) { display: none; }
#dr-f-center:checked ~ .dr-sections .dr-section:not(:has(.dr-rule:not([data-applies]), .dr-rule[data-applies~="center"])) { display: none; }
#dr-f-family:checked ~ .dr-sections .dr-rule[data-applies]:not([data-applies~="family"]) { display: none; }
#dr-f-family:checked ~ .dr-sections .dr-section:not(:has(.dr-rule:not([data-applies]), .dr-rule[data-applies~="family"])) { display: none; }
#dr-f-group-family:checked ~ .dr-sections .dr-rule[data-applies]:not([data-applies~="group-family"]) { display: none; }
#dr-f-group-family:checked ~ .dr-sections .dr-section:not(:has(.dr-rule:not([data-applies]), .dr-rule[data-applies~="group-family"])) { display: none; }
#dr-f-school-age:checked ~ .dr-sections .dr-rule[data-applies]:not([data-applies~="school-age"]) { display: none; }
#dr-f-school-age:checked ~ .dr-sections .dr-section:not(:has(.dr-rule:not([data-applies]), .dr-rule[data-applies~="school-age"])) { display: none; }

.dr-section--changes { background: #fff8e6; border: 1px solid #f0d28a; border-radius: 12px; padding: 18px 20px 8px; }
.dr-section--changes .dr-rule { border-top-color: #f0d28a; }
.dr-cc-source { background: var(--dr-soft); border-left: 4px solid var(--dr-navy); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; }
.dr-cc-source p { margin: 4px 0; }
.dr-share { min-width: 140px; }
.dr-bar { display: block; height: 10px; background: #e6ebf1; border-radius: 5px; overflow: hidden; margin: 6px 0 4px; }
.dr-bar > span { display: block; height: 100%; background: var(--dr-navy); }
.dr-share__label { font-weight: 700; color: var(--dr-navy); }
.dr-check__applies { font-size: .8rem; color: var(--dr-muted); }
@media print { .dr-filter__label, .dr-filter__pill { display: none !important; } .dr-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* "Email me when <State>'s rules change" sign-up */
.dr-subscribe { background: var(--dr-soft); border: 1px solid var(--dr-line); border-radius: 14px; padding: 20px 24px; margin: 28px 0 40px; scroll-margin-top: 90px; }
.dr-subscribe h2 { font-size: 1.2rem; }
.dr-subscribe__form { display: grid; grid-template-columns: 1fr; gap: 4px 16px; align-items: start; }
@media (min-width: 768px) { .dr-subscribe__form { grid-template-columns: 2fr 1.2fr 2fr; } }
.dr-subscribe__form .form-item { margin: 0 0 8px; }
.dr-subscribe__form label { display: block; font-weight: 600; font-size: .9rem; color: var(--dr-navy); margin-bottom: 3px; }
.dr-subscribe__form input[type="email"],
.dr-subscribe__form input[type="text"],
.dr-subscribe__form select { width: 100%; max-width: none; box-sizing: border-box; height: 42px; padding: 6px 10px; border: 1px solid #b9c3cf; border-radius: 8px; background: #fff; font-size: 1rem; color: var(--dr-text); }
.dr-subscribe__form .form-item--error-message, .dr-subscribe__form .form-item .error { grid-column: 1 / -1; }
.dr-subscribe__consent, .dr-subscribe__form .form-actions { grid-column: 1 / -1; }
.dr-subscribe__consent { margin: 2px 0 6px; font-size: .9rem; color: var(--dr-muted); }
.dr-subscribe__form .form-actions { margin: 0; }
.dr .dr-subscribe .dr-btn, .dr-unsubscribe .dr-btn { background: var(--dr-navy); color: #fff; border-color: var(--dr-navy); }
.dr .dr-subscribe .dr-btn:hover, .dr .dr-subscribe .dr-btn:focus { background: #16304f; color: #fff; }
.dr-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.dr-unsubscribe { max-width: 640px; }
@media print { .dr-subscribe { display: none !important; } }
.dr-subscribe .dr-subscribe__msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; border: 1px solid #b9dcc4; border-left: 4px solid var(--dr-ok); background: #eaf6ee; color: #174d2b; }
.dr-subscribe .dr-subscribe__msg.alert-error, .dr-subscribe .dr-subscribe__msg.alert-danger, .dr-subscribe .dr-subscribe__msg[role="alert"] { border-color: #ebc3c3; border-left-color: #b42318; background: #fdf0ef; color: #7a1a12; }
.dr-subscribe__form input, .dr-subscribe__form select { margin: 0; vertical-align: top; }
