/* SG · Film study notebook. One rule set per component; responsive rules below. */
:root { --paper:#f4f5ef; --surface:#fff; --ink:#203936; --body:#3c4a48; --muted:#737f79; --line:#dfe5dc; --soft:#eef3ed; --accent:#e5bd58; --accent-soft:#fff3ce; --green:#285d57; --green-dark:#1c4540; --sage:#e8f1e8; --gold:#9f7531; --shadow:0 18px 56px rgba(23,29,36,.14); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","MiSans","PingFang SC","Microsoft YaHei",sans-serif; color:var(--body); font-size:15px; font-weight:400; line-height:1.65; }
* { box-sizing: border-box; }
html { scroll-behavior:smooth; scroll-padding-top:28px; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin: 0; background: var(--paper); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .48; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #af8826; outline-offset: 3px; }
button svg, span[data-icon] svg { display: block; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color:var(--ink); font-weight:650; overflow-wrap:break-word; }
h2 { font-size:22px; line-height:1.4; }
h3 { font-size:18px; line-height:1.5; }
small { font-size: 13px; }
.muted, .quiet-note { color: var(--muted); }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 999; background: #fff; padding: 12px 16px; }
.skip-link:focus { top: 10px; }

/* Navigation: a clapperboard edge and a quiet studio light. */
.sidebar { position:fixed; inset:0 auto 0 0; width:220px; padding:32px 20px 24px; display:flex; flex-direction:column; z-index:10; color:#e4e6e8; background:radial-gradient(ellipse at 110% 3%,rgba(217,181,88,.16),transparent 42%),linear-gradient(165deg,#234943,#102e2c 68%); border-right:1px solid #26443e; }
.sidebar::before { content:""; position:absolute; inset:0 0 auto; height:3px; opacity:.5; background:repeating-linear-gradient(125deg,#b7b89e 0 18px,#355c52 18px 36px); }
.brand { display:flex; align-items:center; gap:10px; min-width:0; color:#fff; text-decoration:none; font-size:15px; font-weight:600; line-height:1.45; }
.brand > span:last-child { min-width: 0; }
.brand-mark { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:9px; background:linear-gradient(145deg,#f3d47b,#dcb758); color:#203c35; font-size:20px; font-weight:700; letter-spacing:-.8px; }
.brand small { display:block; margin-top:4px; color:#92979e; font-size:10px; font-weight:500; letter-spacing:1.3px; }
.sidebar-label { margin:38px 10px 12px; color:#8e949c; font-size:11px; letter-spacing:.7px; }
.sidebar nav, .nav-group { min-width: 0; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-item { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px 12px; border:1px solid transparent; border-radius:8px; background:transparent; color:#d9dde2; text-align:left; font-size:14px; font-weight:600; }
.nav-index { color:#999fA7; font-size:11px; font-variant-numeric:tabular-nums; }
.nav-item:hover { background:#2d554c; }
.nav-item.active { background:#345e54; color:#fff; border-color:transparent; }
.nav-item.active .nav-index { color:#e8c65c; }
.nav-children { display:grid; gap:2px; margin:10px 0 0 19px; }
.nav-children button { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:38px; padding:8px 12px; border:0; border-left:1px solid #456459; background:transparent; color:#b2b8c0; text-align:left; font-size:13px; font-weight:400; }
.nav-children button:hover { border-color:var(--accent); color:#fff; background:#31564c; }
.nav-children button span { color:#858b93; font-size:11px; }
.sidebar-footer { margin-top:auto; padding:38px 10px 0; color:#8e959d; }
.sidebar-footer strong { display:block; font-size:13px; font-weight:400; line-height:1.9; }
.sidebar-footer small { display:block; margin-top:10px; font-size:11px; color:#797f88; }
.film-reel { display:block; margin-bottom:14px; color:#6b727a; line-height:1; }
.film-reel svg { display:block; width:35px; height:35px; }

/* Page frame. Every flex child that can contain text is allowed to shrink. */
.app-shell { margin-left:220px; min-width:0; }
.topbar { display:none; }
.breadcrumb { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.utility-button, .text-button, .inline-link { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:7px 10px; border:1px solid #e1e4e8; border-radius:7px; background:#fff; color:#737a84; text-decoration:none; font-size:12px; font-weight:500; }
.utility-button:hover, .text-button:hover, .inline-link:hover { background: var(--soft); border-color: #929292; }
main { max-width:1500px; min-width:0; margin:auto; padding:38px 40px 36px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 34px; padding:24px 26px; border-radius:12px; background:radial-gradient(ellipse at 97% -20%,rgba(231,191,89,.33),transparent 49%),radial-gradient(ellipse at -5% 100%,rgba(81,141,119,.16),transparent 54%),linear-gradient(110deg,#edf4e9,#f5f2df); }
.heading-title { display:flex; align-items:center; gap:18px; min-width:0; }
.heading-title > div { min-width: 0; }
.scene-number { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border:1px solid #c6d4c3; border-radius:10px; background:rgba(255,255,255,.35); color:#67846e; font-size:19px; font-weight:500; font-variant-numeric:tabular-nums; }
.scene-number::before { display:none; }
.page-heading h1 { font-size:30px; line-height:1.3; letter-spacing:-.4px; font-weight:700; }
.page-heading p { margin-top:7px; color:var(--muted); font-size:13px; }
.outline-pill { padding:0; border:0; background:transparent; color:#7b8289; font-size:12px; white-space:nowrap; }
.page-outline { display:none; }
.page-outline button { display:flex; align-items:center; justify-content:center; min-width:0; min-height:44px; padding:9px 12px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:#747a82; font-size:14px; font-weight:500; line-height:1.4; }
.page-outline button.active { color:#265c51; border-bottom-color:#cb9e3e; background:transparent; font-weight:600; }
.page-outline button::after { display:none; }
.page-outline button:hover { background: #f4f4f4; border-color: transparent; }
.content-section { min-width:0; margin:32px 0; scroll-margin-top:28px; }
.primary-section { margin-top:0; }
.section-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 18px; margin-bottom:20px; background:transparent; }
.provider-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.section-title > div, .section-title h2 { min-width: 0; }
.section-title h2 { display:flex; align-items:center; flex-wrap:wrap; gap:9px; font-size:21px; font-weight:650; }
.section-title p { margin-top:6px; color:var(--muted); font-size:12px; }
.section-number { display:inline-block; min-width:0; height:auto; padding:0; color:#b28a36; font-size:.8em; font-weight:500; line-height:inherit; font-variant-numeric:tabular-nums; }
.count-pill { display:inline-flex; align-items:center; padding:0 0 0 2px; color:#9a9fa6; font-size:12px; font-weight:400; white-space:nowrap; }
.view-switch { display:flex; flex:none; gap:2px; padding:3px; border:1px solid #dce5da; border-radius:8px; background:#e9eee7; }
.view-switch button { display:flex; align-items:center; justify-content:center; gap:5px; min-height:32px; padding:5px 10px; border:0; border-radius:6px; background:transparent; color:#797f87; font-size:12px; font-weight:500; white-space:nowrap; }
.view-switch button.active { background:#fff; color:#285d53; }
.view-switch svg { width: 16px; height: 16px; }

/* Search and filter controls. */
.mobile-filter-toggle { display: none; }
.filter-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:18px; }
.region-tabs { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.region-tabs button { min-height:38px; padding:7px 12px; border:1px solid transparent; border-radius:7px; background:transparent; color:#6c727a; font-size:14px; font-weight:500; white-space:nowrap; }
.region-tabs button:hover { background:#e9ebee; color:#242930; }
.region-tabs button.active { background:#285d53; color:#fff; border-color:#285d53; }
.region-tabs button span { margin-left: 4px; opacity: .78; font-size: 13px; }
.filter-right { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.search-box { display:flex; align-items:center; gap:8px; width:200px; min-width:0; min-height:38px; padding:7px 11px; border:1px solid #e0e3e7; border-radius:8px; background:#fff; }
.search-box > span { flex: none; }
.search-box svg { width: 17px; height: 17px; color: #767676; }
.search-box input { width:100%; min-width:0; border:0; outline:0; background:none; color:var(--body); font-size:13px; }
.search-box:focus-within { outline: 2px solid #b99a3c; outline-offset: 1px; }
.search-box input::placeholder { color: #858585; }
select { max-width:190px; min-width:0; min-height:38px; padding:7px 28px 7px 10px; border:1px solid #e0e3e7; border-radius:8px; background-color:#fff; color:#4e555e; font-size:13px; font-weight:400; }
.checkbox-filter { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; white-space: nowrap; }
.checkbox-filter input, input[data-select], input[data-checklist] { width: 18px; height: 18px; flex: none; margin: 0; accent-color: #2f6a5c; cursor: pointer; }
.dimension-switch { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 18px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.dimension-switch button { min-height:38px; padding:7px 14px; border:1px solid transparent; border-radius:7px; background:transparent; color:#737a82; font-size:14px; font-weight:500; }
.dimension-switch button.active, .dimension-switch button[aria-pressed="true"], .dimension-switch button[aria-selected="true"] { border-color:#cedecc; background:#edf4e9; color:#285d53; }
.comparison-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 14px; margin: 8px 0 12px; color: var(--muted); font-size: 13px; }

/* Desktop comparison tables. Horizontal scrolling stays within this region. */
.table-wrap { max-width:100%; max-height:720px; overflow:auto; border:1px solid var(--line); border-radius:12px; background:#fff; scrollbar-width:thin; scrollbar-color:#c3c7cc #f3f4f6; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
.data-table { width:100%; min-width:920px; border-collapse:separate; border-spacing:0; table-layout:fixed; color:var(--body); font-size:14px; font-weight:400; }
.data-table th { position:sticky; top:0; z-index:2; padding:14px 12px; border-bottom:1px solid var(--line); background:#eaf0e7; color:#6f7e70; text-align:left; font-size:12px; font-weight:500; white-space:nowrap; }
.data-table td { padding:19px 12px; border-bottom:1px solid #eceef1; vertical-align:middle; line-height:1.6; overflow-wrap:break-word; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fafafa; }
.data-table tbody tr.selected td { background: #f5f4e5; }
.data-table tr.eliminated td { background: #fafafa; color: #767676; }
.data-table .select-col { width: 37px; padding-left: 12px; padding-right: 0; }
.data-table .school-col { width:220px; }
.data-table .length-col { width:72px; }
.data-table .fee-col { width:116px; }
.data-table .entry-col { width:148px; }
.data-table .language-col { width:148px; }
.data-table .fit-col { width: 125px; }
.data-table .action-col { width:82px; }
.data-table .provider-col { width: 166px; }
.data-table .impression-col { width: 180px; }
.data-table .price-col { width: 155px; }
.data-table .scope-col { width: 180px; }
.data-table .course-col { width: 128px; }
.data-table .shoot-col { width: 148px; }
.data-table td > strong { color:#343a42; font-size:14px; font-weight:500; }
.name-button { padding: 0; border: 0; background: none; color: var(--body); text-align: left; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; font-weight: 650; line-height: 1.5; }
.school-name { display:block; color:#272c33; font-size:15px; font-weight:600; line-height:1.5; }
.cell-sub, .fee-meta { display:block; margin-top:5px; color:#858b93; font-size:12px; font-weight:400; line-height:1.5; }
.program-name, .en-name, .location { margin-top:5px; color:#747c85; font-size:12px; line-height:1.55; overflow-wrap:break-word; }
.fee-value { color:#252b33; font-weight:650; font-variant-numeric:tabular-nums; line-height:1.5; }
.fee-amount { display: block; }
.fee-amount + .fee-amount { margin-top: 7px; }
.fee-plan-label { display:block; margin-bottom:3px; color:var(--muted); font-size:11px; font-weight:400; }
.data-table th small { display: block; color: var(--muted); font-weight: 500; }
.fee-meta.historical, .cell-sub.historical { color: #75652c; }
.meta-marker { margin-left: 2px; color: var(--muted); font-size: 13px; vertical-align: super; }
.detail-button { display:inline-flex; align-items:center; justify-content:center; gap:3px; min-height:36px; padding:6px 10px; border:1px solid #dce0e5; border-radius:7px; background:#fff; color:#4c5561; font-size:13px; font-weight:500; white-space:nowrap; }
.detail-button:hover { border-color:#8f98a5; background:#f7f8fa; color:#202733; }
.action-stack { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.data-table .action-stack { display: grid; justify-content: start; gap: 6px; }
.star-button { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid #cdcdcd; border-radius: 5px; background: #fff; color: #767676; font-size: 21px; line-height: 1; }
.star-button:hover { background: #f4f4f4; }
.star-button.starred { border-color: #cfb65d; background: #fff2c0; color: #8b6c17; }
.data-table .star-button { width: 30px; height: 30px; font-size: 18px; }
.badge { display:inline-flex; align-items:center; max-width:100%; gap:5px; padding:3px 7px; border-radius:5px; font-size:11px; font-weight:500; line-height:1.35; background:#f3f4f6; }
.badge.green { background:#f7ecc7; color:#876522; }
.badge.gold { background:#e6f0e5; color:#4d735a; }
.badge.gray { background:#f0f0e9; color:#8a8e81; }
.badge.blue { background: transparent; color: #555; }
.badge.red { background: transparent; color: #555; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.pill-dot { width: 4px; height: 4px; flex: none; border-radius: 50%; background: currentColor; display: none; }
.list-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; padding: 10px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty-state { padding: 40px 22px; border: 1px dashed #c8c8c8; border-radius: 7px; background: #fff; text-align: center; }
.empty-state p { margin-top: 9px; color: #7d7d7d; font-size: 15px; }
.mobile-school-list, .mobile-school-cards, .provider-mobile-summary, .provider-mobile-panel { display: none; }

/* Optional desktop cards and provider profiles. */
.school-grid, .provider-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.school-card { min-width:0; padding:24px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.school-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.school-card h3 { font-size: 19px; }
.card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-metrics small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.card-metrics strong { color: var(--body); font-size: 15px; font-weight: 650; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.select-label { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: #686868; font-size: 13px; cursor: pointer; }
.fit-note, .school-card .entry-summary { font-size: 15px; }
.school-card .entry-summary { display: flex; gap: 8px; align-items: baseline; }
.school-card .entry-summary span { flex: none; color: var(--muted); font-size: 13px; }
.provider-card { position:relative; display:flex; flex-direction:column; min-width:0; padding:26px; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.provider-card.preferred { border-color:#d2bc78; background:radial-gradient(ellipse at 0 0,rgba(244,228,176,.22),transparent 45%),#fff; }
.provider-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.profile-heading { display:flex; align-items:center; gap:14px; min-width:0; }
.profile-heading > div { min-width: 0; }
.profile-heading > div:first-child:has(.profile-avatar) { flex: none; }
.profile-heading h3 { font-size:20px; font-weight:650; line-height:1.4; }
.profile-heading .profile-role { display:block; margin-top:4px; color:#858c95; font-size:12px; line-height:1.5; }
.profile-heading .badge-row { margin-top: 8px; }
.profile-avatar { position:relative; display:grid; place-items:center; width:64px; height:64px; flex:none; overflow:hidden; border:1px solid #e4e6e9; border-radius:50%; background:#eceff2; color:#78818d; font-size:23px; font-weight:600; }
.profile-avatar.brand-avatar { border-radius: 9px; background: #fff; }
.profile-avatar img { position: absolute; display: block; max-width: none; object-fit: cover; }
.profile-avatar.mini { width: 42px; height: 42px; font-size: 15px; }
.profile-avatar.detail-avatar { width: 96px; height: 96px; }
.avatar-caption { display: block; margin-top: 4px; color: var(--muted); text-align: center; font-size: 13px; }
.provider-impressions { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 0; padding: 0; list-style: none; }
.provider-impressions li { padding: 0; border: 0; border-radius: 4px; background: transparent; color: #696969; font-size: 13px; font-weight: 600; }
.provider-impressions li.concern { border-color: transparent; background: transparent; color: #666; }
.core-strength { margin:9px 0 0; padding:0; border:0; color:#78847c; font-size:14px; font-weight:400; line-height:1.65; overflow-wrap:break-word; }
.strength-evidence { display: grid; gap: 6px; margin: 0; padding-left: 19px; color: #636363; font-size: 15px; line-height: 1.65; }
.strength-evidence li { padding-left: 1px; overflow-wrap: break-word; }
.impression-summary { display:grid; grid-template-columns:58px minmax(0,1fr); align-items:baseline; gap:10px; margin:22px 0 0; font-size:16px; line-height:1.65; }
.impression-summary > span { color:#899289; font-size:12px; }
.impression-summary strong { color:#254d41; font-weight:650; overflow-wrap:break-word; }
.table-personal-impression { color:#254d41; font-weight:600; }
.mobile-provider-note { display:none; }
.data-table .core-strength { display: block; margin: 0 0 7px; padding-left: 8px; font-size: 15px; line-height: 1.5; }
.strength-evidence li::marker { color: #b7a14c; }
.price-options { display:flex; flex-wrap:wrap; gap:14px 24px; margin-top:22px; padding:18px 0; border-top:1px solid var(--line); border-bottom:0; }
.price-option { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.price-option small { color:#8a919a; font-size:11px; font-weight:400; }
.price-option strong { color:#252b34; font-size:23px; font-weight:650; line-height:1.35; font-variant-numeric:tabular-nums; white-space:nowrap; }
.price-option strong span { margin-left: 2px; font-size: 15px; }
.provider-facts { display: grid; gap: 8px; margin: 15px 0 10px; padding: 0; list-style: none; font-size: 15px; }
.provider-facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.provider-facts b { color: var(--muted); font-size: 13px; font-weight: 650; }
.provider-facts span { color: var(--body); overflow-wrap: break-word; }
.provider-dimensions { margin-top:19px; padding-top:16px; border-top:1px solid var(--line); }
.provider-dimensions dl, dl.provider-dimensions { display:grid; grid-template-columns:68px minmax(0,1fr); align-content:start; gap:10px 12px; font-size:13px; line-height:1.7; }
.provider-dimensions dl { margin: 0; }
.provider-dimensions dt { color:#8a929c; font-size:12px; font-weight:400; }
.provider-dimensions dd { min-width: 0; margin: 0; color: var(--body); overflow-wrap: break-word; }
.provider-fee-note { margin-top:0; color:#9399a2; font-size:12px; line-height:1.65; overflow-wrap:break-word; }
.provider-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:24px; }
.primary-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:40px; padding:8px 14px; border:1px solid #285d53; border-radius:8px; background:#285d53; color:#fff; font-size:13px; font-weight:500; text-decoration:none; }
.primary-button:hover { background:#1d4941; }
.secondary-button { min-height:40px; padding:8px 13px; border:1px solid #dde1e6; border-radius:8px; background:#fff; color:#57616e; font-size:13px; font-weight:500; }
.provider-cell-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.provider-cell-head > div { min-width: 0; }
.provider-cell-head strong { display: block; color: var(--body); font-size: 15px; overflow-wrap: break-word; }
.compact-bullets { display: grid; gap: 5px; margin: 0; padding-left: 15px; font-size: 15px; }
.table-price-option + .table-price-option { margin-top: 8px; }
.table-price-option strong { display: block; color: var(--body); font-size: 15px; font-weight: 650; }
.table-price-option small { color: var(--muted); font-size: 13px; }
.provider-group-title { display: flex; align-items: center; gap: 9px; margin: 25px 0 12px; font-size: 17px; }
.provider-group-title:first-child { margin-top: 0; }

/* Folded planning notes. */
.section-fold { margin:22px 0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; scroll-margin-top:28px; }
.section-fold > summary { display:flex; align-items:center; gap:12px; padding:20px 22px; list-style:none; cursor:pointer; }
.section-fold > summary::-webkit-details-marker { display: none; }
.section-fold > summary:hover { background: #f8f8f8; }
.fold-heading { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.fold-heading strong { color: var(--body); font-size: 15px; font-weight: 650; }
.fold-heading small { color: var(--muted); font-size: 13px; }
.fold-icon { flex: none; color: #8a8a8a; }
.fold-toggle { flex:none; padding:5px 0 5px 9px; border:0; background:transparent; color:#8a919a; font-size:12px; font-weight:400; white-space:nowrap; }
.fold-toggle::after { content: "＋"; margin-left: 7px; }
.section-fold[open] .fold-toggle::after { content: "−"; }
.fold-body { padding: 0 20px 20px; border-top: 1px solid #e7e7e7; }
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.checklist-item input { margin-top: 4px; }
.checklist-item > span { min-width: 0; }
.checklist-item strong { display: block; color: var(--body); font-size: 15px; font-weight: 700; }
.checklist-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.checklist-item.checked strong { color: #8b8b8b; text-decoration: line-through; }
.material-table { margin-top: 18px; }
.material-table details { margin-top: 10px; border: 1px solid #dcdcdc; border-radius: 5px; overflow: hidden; }
.material-table summary { padding: 12px 14px; background: #f8f8f8; color: #707070; font-size: 15px; font-weight: 650; cursor: pointer; }
.material-table .table-wrap { max-height: none; border: 0; border-top: 1px solid #dcdcdc; border-radius: 0; }
.material-table .data-table { min-width: 750px; }
.material-table .data-table th:first-child { width: 150px; }
.material-table .data-table td { vertical-align: top; }
.prep-notes { padding: 10px 30px 20px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.prep-notes li { margin-top: 8px; }
.budget-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 18px; }
.mini-label { color: var(--muted); font-size: 13px; }
.budget-grid h3 { margin: 7px 0; color: var(--body); font-size: 23px; line-height: 1.45; }
.budget-grid p { color: var(--muted); font-size: 15px; }
.quiet-note { margin-top: 18px; font-size: 13px; }
.quote-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.quote-card:last-child { border-bottom: 0; }
.quote-card h3 { margin-bottom: 6px; font-size: 15px; }
.quote-card p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.quote-card .inline-link { margin-top: 9px; }
.main-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 15px; margin-top: 28px; padding: 20px 0 6px; border-top: 1px solid #e2e2e2; color: var(--muted); font-size: 13px; }

/* Dialogs and floating selected-items strip. */
dialog { max-height:91vh; max-height:calc(100dvh - 40px); padding:0; border:1px solid #e1e5e9; border-radius:16px; overflow:auto; background:#fff; color:var(--body); box-shadow:var(--shadow); overscroll-behavior:contain; }
dialog::backdrop { background: #1a1a1aa3; backdrop-filter: blur(3px); }
.dialog-heading { position:sticky; top:0; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 24px; border-bottom:1px solid var(--line); background:#fff; }
.dialog-heading h2 { min-width: 0; }
.dialog-heading > div { display: flex; align-items: center; gap: 10px; flex: none; }
.eyebrow { color: #737373; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border: 1px solid #cfcfcf; border-radius: 5px; background: #fff; color: #676767; }
.detail-dialog { width: min(750px, 94vw); }
#detail-body { min-width: 0; padding: 25px 28px 28px; }
.detail-title { color:#222934; font-size:27px; font-weight:650; line-height:1.4; }
.detail-subtitle { margin-top: 4px; color: var(--muted); font-size: 13px; overflow-wrap: break-word; }
.detail-program { margin-top: 8px; font-size: 15px; font-weight: 650; overflow-wrap: break-word; }
.detail-summary { margin:24px 0; padding:18px; border:0; border-radius:10px; background:linear-gradient(120deg,#eff4e9,#f6f2df); font-size:14px; line-height:1.8; }
.detail-summary .core-strength { margin:8px 0 0; }
.detail-summary strong { color:#414a57; font-weight:600; }
.detail-summary ul { margin: 5px 0 0; padding-left: 17px; }
.provider-intro .impression-summary { margin:0; }
.provider-intro .impression-summary strong { color:#254d41; font-weight:650; }
.intro-caption { color:#78847c; font-size:12px; }
.detail-summary .feature-keywords { display:flex; flex-wrap:wrap; gap:8px 20px; margin:7px 0 0; padding:0; list-style:none; color:#2f5044; font-size:16px; font-weight:600; }
.feature-keywords li { display:flex; align-items:center; gap:8px; }
.feature-keywords li::before { content:''; width:4px; height:4px; border-radius:50%; background:#c2a45f; }
.detail-section { min-width: 0; margin-top: 24px; }
.detail-section h3 { margin-bottom:17px; padding-bottom:12px; border-bottom:1px solid var(--line); font-size:17px; font-weight:650; }
.detail-fields { display:grid; grid-template-columns:104px minmax(0,1fr); gap:14px 20px; margin:0; font-size:14px; line-height:1.8; }
.detail-fields dt { color:#89919c; font-size:12px; font-weight:400; }
.detail-fields dd { min-width: 0; margin: 0; color: var(--body); white-space: pre-line; overflow-wrap: break-word; }
.detail-section ul { padding-left: 18px; color: var(--body); font-size: 15px; line-height: 1.85; }
.detail-section li { margin-bottom: 6px; overflow-wrap: break-word; }
.detail-source-fold { margin-top: 20px; border: 1px solid #dfdfdf; border-radius: 6px; overflow: hidden; }
.detail-source-fold summary { padding: 12px 15px; background: #f6f6f6; font-size: 15px; font-weight: 700; cursor: pointer; }
.detail-source-fold > div { padding: 14px; }
.data-table.package-table { min-width: 500px; }
.package-table th:first-child { width: 130px; }
.package-table th:nth-child(2) { width: 80px; }
.source-list { display: grid; gap: 8px; min-width: 0; }
.source-item { display: block; min-width: 0; padding: 10px 12px; border: 1px solid #e2e2e2; border-radius: 5px; background: #fff; font-size: 15px; text-decoration: none; }
.source-link-label { display: flex; justify-content: space-between; gap: 10px; min-width: 0; color: var(--ink); font-size: 15px; overflow-wrap: break-word; }
.source-link-label b { flex: none; }
.source-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-fineprint { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-intro-bullets { display: grid; gap: 10px; padding: 0 !important; list-style: none; }
.detail-intro-bullets li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; margin: 0; }
.detail-intro-bullets b { color: var(--body); font-weight: 650; }
.detail-fees { margin: 0; padding: 0; border: 0; gap: 16px 27px; }
.detail-fees .price-option strong { font-size: 23px; }
.detail-school-price { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 4px 0 12px; }
.detail-school-price .fee-amount strong { color: #111; font-size: 28px; line-height: 1.3; }
.detail-price-note { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.compare-dialog { width: min(1320px, 96vw); }
#compare-body { min-width: 0; padding: 18px 23px 25px; overflow: auto; overscroll-behavior-inline: contain; }
.compare-note { margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.compare-table { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.compare-table th, .compare-table td { padding: 13px; border: 1px solid #dcdcdc; vertical-align: top; white-space: pre-line; overflow-wrap: break-word; line-height: 1.8; }
.compare-table th { background: #f1f1f1; color: #333; text-align: left; font-weight: 700; }
.compare-table th:first-child { width: 110px; }
.compare-table td { background: #fff; }
.compare-table td:first-child { background: #f7f7f7; color: #555; font-size: 13px; font-weight: 650; }
.compare-table h3 { font-size: 17px; }
.compare-table small { color: var(--muted); font-size: 13px; }
.sources-dialog { width: min(780px, 94vw); }
#sources-body { min-width: 0; padding: 22px 27px; }
.source-explainer { margin-bottom: 15px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.source-group { margin: 20px 0; }
.source-group h3 { margin-bottom: 12px; font-size: 17px; }
.source-group summary { color: #707070; font-size: 15px; font-weight: 650; cursor: pointer; }
.comparison-bar { position:fixed; bottom:20px; left:260px; right:40px; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 18px; border:1px solid #dce0e5; border-radius:12px; background:#fff; color:#2e3641; box-shadow:0 8px 30px rgba(27,38,52,.1); }
.comparison-bar > div:first-child { min-width: 0; }
.comparison-bar strong { display:block; font-size:14px; font-weight:600; }
.comparison-bar #comparison-names { display:block; max-width:100%; overflow:hidden; color:#8b939e; font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.comparison-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.comparison-bar .text-button { border-color:transparent; background:transparent; color:#9098a2; }
.comparison-bar .primary-button { border-color:#272b31; background:#272b31; color:#fff; white-space:nowrap; }
.toast { position:fixed; bottom:100px; left:50%; z-index:1000; max-width:90vw; width:max-content; padding:11px 17px; border:0; border-radius:9px; background:#303640; color:#fff; opacity:0; transform:translateX(-50%) translateY(15px); transition:opacity .18s,transform .18s; pointer-events:none; text-align:center; font-size:14px; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }


.page-actions { display:flex; align-items:center; gap:16px; flex:none; }

.fee-value strong { font-size:15px; font-weight:650; white-space:nowrap; }

.detail-button svg { width:14px; height:14px; }

.mobile-school-fee strong, .table-price-option strong { font-variant-numeric:tabular-nums; }

/* Responsive layout: independent mobile information density. */
@media (min-width:1650px) {
  main { max-width:1460px; padding:44px 48px; }
  .provider-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (min-width:1061px) and (max-width:1300px) {
  .sidebar { width:198px; padding-left:16px; padding-right:16px; }
  .app-shell { margin-left:198px; }
  main { padding:30px 28px; }
  .page-heading { padding:22px; }
  .outline-pill { display:none; }
  .comparison-bar { left:226px; right:28px; }
  .provider-card { padding:22px; }
}
@media (max-width:1060px) {
  .sidebar { position:relative; inset:auto; width:100%; min-height:76px; padding:16px 24px; flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 24px; }
  .sidebar-label, .nav-children, .sidebar-footer { display:none; }
  .sidebar nav { display:flex; gap:8px; }
  .nav-group + .nav-group { margin:0; }
  .nav-item { width:auto; padding:9px 14px; }
  .app-shell { margin-left:0; }
  main { padding:28px 24px; }
  .page-outline { display:flex; gap:12px; margin:0 0 28px; border-bottom:1px solid var(--line); }
  .comparison-bar { left:24px; right:24px; }
}
@media (max-width:720px) {
  html { scroll-padding-top:16px; }
  :root { font-size:15px; }
  .sidebar { display:block; padding:16px 18px 0; min-height:0; background:radial-gradient(ellipse at 95% -30%,rgba(231,191,89,.20),transparent 60%),linear-gradient(120deg,#173c35,#2b5146); }
  .sidebar::before { height:2px; }
  .brand { font-size:14px; gap:9px; }
  .brand-mark { width:29px; height:29px; flex-basis:29px; border-radius:7px; font-size:16px; }
  .brand small { display:none; }
  .sidebar nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; width:100%; margin-top:12px; }
  .nav-item { justify-content:center; width:100%; min-height:43px; padding:9px 6px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; font-size:14px; font-weight:500; color:#aeb4bd; }
  .nav-item.active { border-color:#e8c65c; color:#fff; background:transparent; }
  .nav-index { font-size:10px; }
  main { padding:22px 16px 28px; }
  .page-heading { position:static; display:flex; width:auto; height:auto; margin:0 0 17px; padding:0; border:0; border-radius:0; background:transparent; gap:12px; overflow:visible; white-space:normal; clip-path:none; }
  .heading-title { gap:0; }
  .scene-number, .page-heading p, .outline-pill { display:none; }
  .page-heading h1 { font-size:24px; font-weight:700; line-height:1.4; letter-spacing:0; }
  .page-actions { gap:0; }
  #sources-button { min-height:36px; padding:5px 0 5px 8px; font-size:11px; border:0; background:transparent; color:#8d949e; }
  #sources-button svg { width:14px; height:14px; }
  .page-outline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0 0 24px; padding:0; background:transparent; }
  .page-outline button { padding:9px 1px; min-height:42px; font-size:13px; white-space:nowrap; }
  .content-section { margin:28px 0; scroll-margin-top:16px; }
  .primary-section { margin-top:0; }
  .section-title { gap:12px; margin-bottom:16px; }
  .section-title h2 { font-size:18px; line-height:1.5; gap:7px; }
  .section-title p { font-size:11px; margin-top:4px; }
  .section-number { font-size:13px; }
  .count-pill { font-size:11px; }
  .school-view-switch { display:none; }
  .view-switch { padding:2px; border-radius:7px; }
  .view-switch button { min-height:32px; padding:5px 8px; font-size:11px; }
  .view-switch [data-icon] { display:none; }
  #provider-list-section > .section-title { flex-direction:column; align-items:stretch; gap:13px; }
  .provider-toolbar { width:100%; }
  .filter-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 8px; margin-bottom:16px; }
  .region-tabs { flex-wrap:nowrap; gap:2px; }
  .region-tabs button { min-height:38px; padding:7px 8px; font-size:13px; }
  .mobile-filter-toggle { display:inline-flex; justify-content:center; align-items:center; gap:4px; grid-column:2; min-height:38px; padding:6px 8px; border:1px solid #e0e4e8; border-radius:7px; background:#fff; color:#79828d; font-size:12px; font-weight:400; }
  .mobile-filter-toggle[aria-expanded="true"] { background:#f5f1e7; border-color:#d7c794; color:#796a46; }
  .filter-right { display:none; grid-column:1/-1; width:100%; min-width:0; flex-wrap:wrap; gap:8px; padding:10px; border:1px solid var(--line); border-radius:9px; background:#f0f2f5; }
  .filter-bar.filters-open .filter-right { display:flex; }
  .search-box { flex:1 1 100%; width:100%; min-height:40px; }
  .search-box input { font-size:14px; }
  .filter-right select { flex:1 1 100%; width:100%; max-width:none; min-height:40px; font-size:13px; }
  .checkbox-filter { min-height:36px; font-size:13px; }
  body[data-section="providers"] .filter-bar .region-tabs { display:none; }
  body[data-section="providers"] #provider-filters { display:none; margin-top:0; margin-bottom:16px; }
  body[data-section="providers"] #provider-filters.filters-open { display:block; }
  .dimension-switch { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin:0 0 14px; padding-bottom:0; border:0; }
  .dimension-switch button { min-height:40px; padding:7px 4px; font-size:12px; white-space:nowrap; }
  .desktop-school-table, .desktop-school-cards, .mobile-school-cards { display:none!important; }
  .mobile-school-list { display:block; min-width:0; width:100%; overflow:hidden; border:1px solid #e4e7eb; border-radius:10px; background:#fff; }
  .mobile-school-header, .mobile-school-row { display:grid; grid-template-columns:minmax(0,1fr) 42px 64px 36px; align-items:center; gap:8px; min-width:0; padding-left:10px; padding-right:8px; }
  .mobile-school-header { min-height:36px; padding-top:8px; padding-bottom:8px; border-bottom:1px solid #e7eaee; background:#eaf0e7; color:#6f7e70; font-size:12px; line-height:1.3; font-weight:400; }
  .mobile-school-header small { display:block; font-size:10px; line-height:1.4; }
  .mobile-school-row { min-height:86px; padding-top:12px; padding-bottom:12px; border-bottom:1px solid #eceef1; font-size:14px; line-height:1.5; }
  .mobile-school-row:last-child { border-bottom:0; }
  .mobile-school-row.selected { background:#fbf8ef; }
  .mobile-school-row > *, .mobile-school-info { min-width:0; }
  .mobile-school-name { display:flex; align-items:flex-start; gap:6px; min-width:0; color:#333b47; font-size:14px; font-weight:600; line-height:1.5; cursor:pointer; }
  .mobile-school-name input { width:15px; height:15px; flex:none; margin-top:3px; }
  .mobile-school-name > span:not(.profile-avatar) { min-width:0; word-break:normal; overflow-wrap:break-word; }
  .mobile-school-meta { display:block; margin-top:4px; color:#8a929d; font-size:11px; font-weight:400; line-height:1.5; word-break:normal; overflow-wrap:break-word; }
  .school-mobile-list .mobile-school-meta { margin-left:21px; font-size:12px; color:#717b87; }
  .mobile-school-info > .fee-meta { margin-top:3px; margin-left:21px; color:#858e99; font-size:11px; line-height:1.5; }
  .mobile-school-info > .fee-meta.historical { color:#9b8759; }
  .mobile-school-duration { color:#737c88; font-size:12px; line-height:1.5; white-space:normal; word-break:normal; overflow-wrap:break-word; }
  .mobile-school-fee { color:#29323e; font-size:14px; font-weight:650; line-height:1.5; font-variant-numeric:tabular-nums; }
  .mobile-school-fee strong { font-size:14px; white-space:nowrap; font-weight:650; }
  .mobile-school-fee .fee-plan-label { font-size:10px; line-height:1.4; font-weight:400; margin:0 0 2px; }
  .mobile-school-fee .fee-pending { font-size:11px; font-weight:400; color:#9ba2ab; }
  .mobile-school-actions { display:flex; align-items:center; justify-content:center; min-width:0; }
  .mobile-school-actions .detail-button { width:36px; min-width:36px; min-height:44px; padding:6px 2px; border:0; border-radius:6px; background:transparent; color:#287060; font-size:12px; font-weight:500; text-decoration:underline; text-underline-offset:4px; }
  .mobile-school-actions .detail-button:active { background:#edf0f4; }
  .mobile-school-actions .detail-button svg, .mobile-school-actions .detail-button > span { display:none; }
  .provider-overview .desktop-provider-table, .provider-teaching .desktop-provider-table, .provider-service .desktop-provider-table { display:none; }
  .provider-overview .provider-mobile-summary, .provider-mobile-panel { display:block; }
  .mobile-provider-list .mobile-school-header, .mobile-provider-list .mobile-school-row { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,1.05fr); gap:9px; padding-left:12px; padding-right:12px; }
  .mobile-provider-list .mobile-school-header { min-height:42px; }
  .mobile-provider-row { min-height:110px; padding-top:15px; padding-bottom:13px; align-items:start; }
  .provider-mobile-identity { display:flex; align-items:flex-start; gap:8px; min-width:0; }
  .provider-mobile-label { min-width:0; flex:1; }
  .mobile-provider-row .profile-avatar { width:27px; height:27px; font-size:14px; }
  .mobile-provider-detail-row .profile-avatar { width:30px; height:30px; font-size:14px; }
  .mobile-provider-row .provider-mobile-identity { align-items:center; gap:6px; min-height:28px; }
  .mobile-provider-name { min-width:0; padding:0; border:0; background:transparent; color:#303e36; text-align:left; font-size:14px; font-weight:650; line-height:1.5; white-space:nowrap; }
  .mobile-provider-specialty { display:block; margin-top:8px; color:#7a847c; font-size:12px; line-height:1.6; overflow-wrap:break-word; }
  .mobile-provider-impression { padding-top:2px; min-width:0; }
  .mobile-provider-impression strong { display:block; color:#285944; font-size:14px; font-weight:650; line-height:1.7; }
  .mobile-provider-impression small { display:block; margin-top:9px; color:#889087; font-size:11px; font-weight:400; line-height:1.6; }
  .provider-mobile-label .mobile-school-name { font-size:14px; }
  .provider-mobile-label .mobile-school-meta { margin:3px 0 0 21px; color:#8e7d4c; font-size:11px; }
  .mobile-provider-strength { margin-top:10px; color:#707b89; font-size:12px; line-height:1.6; overflow-wrap:break-word; }
  .mobile-provider-fee { min-width:0; padding-top:2px; font-variant-numeric:tabular-nums; }
  .mobile-provider-fee > strong { display:block; font-size:14px; font-weight:650; line-height:1.7; color:#303b33; white-space:nowrap; }
  .mobile-provider-fee > small { display:block; margin-top:2px; color:#889087; font-size:11px; line-height:1.5; }
  .mobile-provider-actions { display:flex; align-items:center; gap:5px; margin-top:4px; }
  .mobile-select-label { display:flex; align-items:center; gap:3px; min-height:36px; color:#818b83; font-size:10px; white-space:nowrap; cursor:pointer; }
  .mobile-select-label input { width:14px; height:14px; flex:none; margin:0; }
  .mobile-provider-detail { display:inline-flex; align-items:center; justify-content:center; gap:1px; min-height:36px; padding:0 2px; border:0; background:transparent; color:#216b50; font-size:12px; font-weight:600; white-space:nowrap; text-decoration:underline; text-underline-offset:4px; }
  .mobile-provider-detail svg { width:12px; height:12px; }
  .mobile-provider-detail:active { background:#eff4ec; border-radius:5px; }
  .mobile-provider-note { display:block; margin:11px 2px 0; color:#8a9289; font-size:11px; line-height:1.6; }
  .mobile-dimension-picker { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 0 13px; color:#8a929d; font-size:12px; }
  .mobile-dimension-picker select { flex:0 1 190px; width:190px; max-width:65%; min-height:40px; font-size:13px; }
  .mobile-provider-detail-list .mobile-school-header, .mobile-provider-detail-list .mobile-school-row { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 36px; gap:10px; }
  .mobile-provider-detail-row { min-height:110px; }
  .mobile-dimension-value { color:#606b7a; font-size:13px; line-height:1.75; overflow-wrap:break-word; }
  .school-grid, .provider-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
  .school-card, .provider-card { padding:20px; border-radius:11px; }
  .profile-avatar { width:56px; height:56px; }
  .profile-heading h3 { font-size:19px; }
  .profile-heading .profile-role { font-size:11px; }
  .provider-card .core-strength { font-size:13px; margin-top:9px; }
  .provider-card .impression-summary { font-size:15px; }
  .price-options { gap:13px 21px; margin-top:18px; padding:17px 0; }
  .price-option strong { font-size:22px; }
  .provider-dimensions { margin-top:17px; }
  .provider-dimensions dl { grid-template-columns:62px minmax(0,1fr); font-size:13px; }
  .provider-actions { padding-top:22px; }
  .select-label { min-height:44px; font-size:12px; }
  .primary-button, .secondary-button { min-height:44px; font-size:13px; }
  .section-fold { margin:20px 0; border-radius:10px; }
  .section-fold > summary { gap:8px; padding:17px 14px; }
  .fold-heading { flex-wrap:wrap; gap:5px 8px; }
  .fold-heading strong { font-size:15px; }
  .fold-heading small { width:100%; margin-left:26px; font-size:11px; }
  .fold-icon svg { width:16px; height:16px; }
  .fold-toggle { font-size:11px; }
  .fold-body { padding:0 16px 18px; }
  .checklist, .budget-grid { grid-template-columns:minmax(0,1fr); }
  .budget-grid { gap:20px; padding-top:18px; }
  .budget-grid article + article { border-top:1px solid var(--line); padding-top:18px; }
  .budget-grid h3 { font-size:21px; }
  .budget-grid p, .quote-card p { font-size:14px; }
  .list-footer { flex-direction:column; gap:5px; padding-top:14px; font-size:10px; line-height:1.65; }
  .main-footer { gap:9px; margin-top:28px; padding-bottom:10px; font-size:10px; }
  .main-footer .utility-button { min-height:36px; font-size:11px; }
  .comparison-bar { left:12px; right:12px; bottom:max(12px,env(safe-area-inset-bottom)); padding:11px 12px; gap:12px; border-radius:11px; }
  .comparison-bar strong { font-size:13px; }
  .comparison-bar #comparison-names { font-size:10px; }
  .comparison-actions { gap:4px; }
  .comparison-bar .primary-button { min-height:42px; padding:8px 12px; font-size:12px; }
  .comparison-bar .text-button { min-height:42px; min-width:38px; padding:6px; font-size:11px; }
  body:has(.comparison-bar:not([hidden])) main { padding-bottom:110px; }
  .toast { bottom:96px; padding:10px 14px; font-size:13px; }
  dialog { width:calc(100vw - 24px); max-width:calc(100vw - 24px); max-height:calc(100dvh - 32px); border-radius:14px; }
  .detail-dialog, .sources-dialog, .compare-dialog { width:calc(100vw - 24px); max-width:calc(100vw - 24px); }
  .dialog-heading { padding:10px 16px; gap:8px; }
  .dialog-heading h2 { font-size:18px; }
  .dialog-heading > div { gap:5px; }
  .dialog-heading .utility-button { min-height:40px; padding:6px 7px; font-size:11px; }
  .dialog-heading .utility-button svg { display:none; }
  .icon-button { width:40px; height:40px; }
  .eyebrow { font-size:12px; color:#8b949f; }
  #detail-body { padding:23px 18px; }
  .detail-title { font-size:23px; }
  .detail-subtitle { font-size:12px; margin-top:7px; }
  .detail-program { font-size:14px; margin-top:9px; }
  .profile-avatar.detail-avatar { width:62px; height:62px; }
  .detail-summary { padding:15px; font-size:14px; margin:23px 0; }
  .detail-summary .strength-evidence { font-size:13px; }
  .detail-summary .impression-summary { grid-template-columns:54px minmax(0,1fr); font-size:15px; }
  .detail-summary .feature-keywords { font-size:15px; }
  .detail-section { margin-top:28px; }
  .detail-section h3 { font-size:17px; }
  .detail-fields { grid-template-columns:70px minmax(0,1fr); gap:14px 13px; font-size:14px; }
  .detail-fields dt { font-size:12px; }
  .detail-section ul { font-size:14px; }
  .detail-intro-bullets li { grid-template-columns:62px minmax(0,1fr); gap:10px; }
  .detail-actions { gap:9px; }
  .detail-fineprint, .detail-price-note { font-size:11px; }
  .detail-source-fold > div { padding:12px; }
  #compare-body { padding:18px 12px 24px; }
  .compare-table { min-width:730px; font-size:14px; }
  .compare-table th, .compare-table td { padding:12px 10px; line-height:1.7; }
  .compare-table th:first-child, .compare-table td:first-child { position:sticky; left:0; z-index:1; width:76px; }
  .compare-table h3 { font-size:14px; }
  .compare-table.two-items { min-width:0; width:100%; }
  .compare-table.two-items th, .compare-table.two-items td { padding:12px 7px; font-size:13px; }
  .compare-table.two-items th:first-child, .compare-table.two-items td:first-child { position:static; width:66px; font-size:11px; }
  .compare-table.two-items h3 { font-size:13px; line-height:1.5; }
  .compare-table.two-items small { font-size:10px; }
  .compare-note { font-size:11px; }
  #sources-body { padding:20px 16px; }
  .source-link-label { font-size:13px; }
}
@media (max-width:374px) {
  main { padding-left:12px; padding-right:12px; }
  .mobile-school-header, .mobile-school-row { grid-template-columns:minmax(0,1fr) 37px 56px 32px; gap:6px; padding-left:8px; padding-right:5px; }
  .mobile-school-actions .detail-button { min-width:32px; width:32px; }
  .mobile-provider-list .mobile-school-header, .mobile-provider-list .mobile-school-row { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,1.05fr); gap:7px; padding-left:9px; padding-right:9px; }
  .mobile-provider-detail-list .mobile-school-header, .mobile-provider-detail-list .mobile-school-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px; gap:8px; }
  .provider-mobile-identity { gap:6px; }
  .mobile-provider-row .profile-avatar, .mobile-provider-detail-row .profile-avatar { width:26px; height:26px; }
  .page-outline button { font-size:12px; }
  .region-tabs button { padding-left:7px; padding-right:7px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  * { transition:none!important; }
}

/* Original agency documents, with a readable mobile page viewer. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.document-entry { display:flex; align-items:center; gap:9px; width:100%; margin-top:16px; padding:12px 14px; border:1px solid #d7e2d4; border-radius:8px; background:#f1f6ed; color:#2c6655; text-align:left; }
.document-entry strong { font-size:13px; font-weight:600; }
.document-entry > span { margin-left:auto; color:#6f8c7a; font-size:11px; font-weight:400; }
.document-entry svg { flex:none; width:16px; height:16px; }
.document-entry:hover { background:#e8f0e3; border-color:#acc4a8; }
.document-dialog[open] { display:flex; flex-direction:column; width:min(1080px,calc(100vw - 48px)); height:calc(100dvh - 48px); max-height:calc(100dvh - 48px); overflow:hidden; }
.document-dialog .dialog-heading { flex:none; padding:14px 20px; }
.document-dialog .dialog-heading h2 { font-size:18px; }
.document-toolbar { flex:none; display:flex; align-items:center; justify-content:space-between; gap:10px 18px; flex-wrap:wrap; padding:12px 20px; border-bottom:1px solid var(--line); background:#f7f9f3; }
.document-file-label { color:#6c7e70; font-size:13px; }
.document-choice { flex:1; min-width:140px; }
.document-choice select { max-width:100%; width:100%; }
.document-tools, .document-pagination { display:flex; align-items:center; gap:8px; }
.document-tools { flex-wrap:wrap; }
.document-pagination { color:#617667; font-size:12px; font-variant-numeric:tabular-nums; }
.document-pagination .utility-button { font-size:20px; width:34px; padding:2px; }
.document-pagination > span { min-width:42px; text-align:center; }
.document-caption { margin:0; flex:none; padding:9px 20px; background:#fbf4df; color:#8c7748; font-size:12px; line-height:1.6; }
.document-media { flex:1; min-height:0; min-width:0; overflow:auto; padding:20px; background:#e7ebe3; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.document-sheet { width:100%; max-width:960px; margin:0 auto; background:#fff; }
.document-sheet img { display:block; width:100%; max-width:none; height:auto; margin:0; }
.document-sheet.cropped-document { position:relative; overflow:hidden; }
.cropped-document img { position:absolute; }
.document-media.zoomed .document-sheet { width:var(--doc-zoom-width,1440px); min-width:100%; max-width:none; }
@media(max-width:720px) {
 .document-dialog[open] { width:calc(100vw - 16px); max-width:calc(100vw - 16px); height:calc(100dvh - 16px); max-height:calc(100dvh - 16px); }
 .document-dialog .dialog-heading { padding:8px 12px; }
 .document-dialog .dialog-heading h2 { font-size:16px; }
 .document-toolbar { padding:10px 12px; gap:10px; }
 .document-file-label, .document-choice { flex:1 1 100%; }
 .document-tools { width:100%; justify-content:space-between; gap:5px; }
 .document-tools .utility-button { min-height:40px; padding:6px 7px; font-size:11px; }
 .document-pagination { gap:5px; }
 .document-pagination .utility-button { width:30px; font-size:20px; padding:2px; }
 .document-pagination > span { min-width:36px; font-size:11px; }
 .document-caption { padding:8px 12px; font-size:11px; }
 .document-media { padding:10px; }
}

/* v8: compact phone lists and comparisons stay within the viewport. */
.mobile-compare { display:none; }
.quote-lines { display:grid; gap:10px; margin:9px 0 0; padding:0; list-style:none; }
.quote-lines li { display:flex; align-items:baseline; gap:10px; color:#69776c; font-size:14px; line-height:1.75; }
.quote-label { flex:0 0 auto; color:#344b3f; font-weight:700; }
.quote-emphasis { color:#344b3f; font-weight:700; }
.certification-result { margin-bottom:12px; color:#285d46; font-size:17px; font-weight:700; }
.certification-section .detail-fields:empty { display:none; }
@media (max-width:720px) {
 .school-mobile-list .mobile-school-header, .school-mobile-list .mobile-school-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding-left:12px; padding-right:12px; }
 .school-mobile-list .mobile-school-header { min-height:44px; font-size:13px; font-weight:600; }
 .school-mobile-list .mobile-school-row { align-items:start; min-height:0; padding-top:12px; padding-bottom:12px; }
 .school-mobile-list .mobile-school-name { display:block; font-size:14px; font-weight:700; white-space:pre-line; line-height:1.5; cursor:default; text-wrap:balance; }
 .school-mobile-list .mobile-school-meta { margin:5px 0 0; font-size:12px; line-height:1.5; white-space:pre-line; text-wrap:balance; }
 .school-mobile-list .mobile-school-info > .fee-meta { margin:6px 0 0; font-size:10px; text-wrap:balance; }
 .school-mobile-list .mobile-school-duration { padding-top:0; font-size:14px; font-weight:600; color:#42584a; white-space:pre-line; text-wrap:balance; }
 .school-mobile-list .mobile-duration-meta { display:block; margin-top:6px; color:#85907f; font-size:10px; font-weight:400; line-height:1.4; white-space:normal; }
 .school-mobile-list .mobile-duration-meta.historical { margin-top:3px; color:#9b8555; }
 main { padding-top:16px; }
 .page-heading { margin-bottom:12px; }
 .page-heading h1 { font-size:23px; }
 .page-outline { margin-bottom:16px; }
 .page-outline button { min-height:38px; padding-top:7px; padding-bottom:7px; }
 .content-section { margin-top:20px; margin-bottom:20px; }
 .primary-section { margin-top:0; }
 .section-title { margin-bottom:12px; }
 .filter-bar { margin-bottom:12px; gap:9px 8px; }
 .school-mobile-list .mobile-school-fee { font-size:14px; }
 .school-mobile-list .mobile-school-fee strong { font-weight:700; }
 .school-mobile-list .mobile-school-actions { justify-content:flex-start; flex-wrap:wrap; gap:3px; margin-top:5px; }
 .school-mobile-list .mobile-select-label { min-height:36px; font-size:11px; }
 .school-mobile-list .mobile-provider-detail { font-size:12px; padding-left:5px; }
 .desktop-compare { display:none; }
 .mobile-compare { display:block; min-width:0; width:100%; }
 #compare-body { padding:12px 8px 18px; overflow-x:hidden; }
 .compare-dialog { width:calc(100vw - 16px); max-width:calc(100vw - 16px); }
 .mobile-compare-table { width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; font-size:12px; }
 .mobile-compare-table .compact-label-col { width:42px; }
 .mobile-compare-table th, .mobile-compare-table td { min-width:0; padding:10px 3px; border:1px solid #e0e5dc; vertical-align:top; text-align:center; white-space:pre-line; line-height:1.65; overflow-wrap:anywhere; text-wrap:balance; }
 .mobile-compare-table thead th { background:#eaf0e7; }
 .mobile-compare-table tbody th { padding-left:2px; padding-right:2px; background:#f5f7f0; color:#778374; font-size:10px; font-weight:600; }
 .mobile-compare-table tbody td { background:#fff; color:#334b3b; font-size:12px; font-weight:500; }
 .mobile-compare-table thead th:first-child { color:#778374; font-size:10px; }
 .compact-item-name { display:block; width:100%; margin:0; padding:0; border:0; background:none; color:#284b3b; font-size:12px; font-weight:750; line-height:1.6; white-space:pre-line; text-wrap:balance; overflow-wrap:anywhere; }
 .compact-program { display:block; margin-top:7px; color:#788675; font-size:10px; font-weight:400; line-height:1.5; white-space:pre-line; text-wrap:balance; }
 .mobile-compare-table .fee-amount strong { font-size:13px; font-weight:750; white-space:nowrap; }
 .mobile-compare-table .fee-plan-label { color:#788675; font-size:10px; line-height:1.4; }
 .mobile-compare-table .fee-pending { display:block; font-size:12px; text-wrap:balance; overflow-wrap:anywhere; }
 .compact-fee-basis, .compact-historical { display:block; margin-top:5px; color:#889080; font-size:10px; line-height:1.5; }
 .compact-historical { color:#9b8555; }
 .compact-compare-note { margin-top:12px; color:#84907f; font-size:10px; line-height:1.6; }
 .compact-provider-price + .compact-provider-price { margin-top:9px; }
 .compact-provider-price small { display:block; color:#83907d; font-size:10px; line-height:1.5; }
 .compact-provider-price strong { display:block; margin-top:2px; color:#35523d; font-size:12px; font-weight:700; white-space:pre-line; line-height:1.5; }
 .quote-lines li { display:block; font-size:14px; }
 .quote-label { margin-right:8px; }
}
@media (max-width:374px) {
 .school-mobile-list .mobile-school-header, .school-mobile-list .mobile-school-row { gap:8px; padding-left:9px; padding-right:9px; }
 .mobile-compare-table .compact-label-col { width:36px; }
 .mobile-compare-table tbody td, .compact-item-name { font-size:12px; }
 .mobile-compare-table th, .mobile-compare-table td { padding-left:2px; padding-right:2px; }
}

/* Application requirements: readable phone checklist, full desktop table. */
.mobile-material-grid { display:none; }
.detail-dialog p, .detail-fields dd, .detail-section li, .detail-source-fold li, .quote-card p, .quote-lines li, .quote-lines span, .budget-grid p, .prep-notes li { text-wrap:pretty; }
.detail-title, .detail-section h3, .quote-card h3, .section-title h2, .fold-heading strong, .material-table summary { text-wrap:balance; }
@media (max-width:720px) {
 .material-table .desktop-material-table { display:none; }
 .mobile-material-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; border-top:1px solid var(--line); background:#f9faf6; }
 .mobile-material-card { min-width:0; padding:11px 10px; border:1px solid #e1e7dc; border-radius:8px; background:#fff; }
 .mobile-material-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:10px; }
 .mobile-material-heading h4 { min-width:0; color:#2d533d; font-size:14px; font-weight:700; line-height:1.5; text-wrap:balance; }
 .material-detail { flex:none; min-height:30px; padding:3px 0 3px 4px; border:0; background:transparent; color:#637e66; font-size:11px; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
 .mobile-material-card dl { display:grid; gap:11px; margin:0; }
 .mobile-material-card dt { margin-bottom:3px; color:#8a9584; font-size:10px; font-weight:500; line-height:1.4; }
 .mobile-material-card dd { margin:0; color:#42583f; font-size:13px; font-weight:550; line-height:1.65; overflow-wrap:anywhere; text-wrap:pretty; }
 .material-table summary { font-size:14px; }
}
@media (max-width:374px) {
 .mobile-material-grid { gap:8px; padding:9px; }
 .mobile-material-card { padding:10px 8px; }
 .mobile-material-heading h4 { font-size:13px; }
}

@media print {
  .desktop-compare { display:block!important; }
  .mobile-compare { display:none!important; }
  body { background: white; }
  body > *:not(#compare-dialog) { display: none !important; }
  #compare-dialog { display: block; position: static; width: 100%; max-width: none; max-height: none; margin: 0; border: 0; overflow: visible; background: white; box-shadow: none; }
  .compare-dialog::backdrop, .dialog-heading button { display: none !important; }
  .dialog-heading { position: static; }
  #compare-body { overflow: visible; padding: 0; }
  .compare-table { min-width: 0; font-size: 10px; }
  .compare-table th, .compare-table td { padding: 8px; font-size: 10px; }
  .compare-table th h3 { font-size: 12px; }
  .compare-table th:first-child { width: 80px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.keep-together { white-space:nowrap; }
.data-table td, .mobile-dimension-value, .provider-fee-note, .detail-price-note { text-wrap:pretty; }

/* Quiet but unmistakable buttons, and a clear two-mode switch. */
.detail-button, .mobile-provider-detail, .material-detail, .inline-link[data-detail] {
 display:inline-flex; align-items:center; justify-content:center; gap:4px;
 min-height:38px; padding:7px 12px; border:1px solid #c6d8cd;
 border-radius:8px; background:#edf5ef; color:#285d53;
 font-weight:600; text-decoration:none; white-space:nowrap;
}
.detail-button:hover, .mobile-provider-detail:hover, .material-detail:hover, .inline-link[data-detail]:hover {
 background:#deece1; border-color:#9bbba7; color:#214e44;
}
.sidebar .nav-item { border:1px solid #638475; border-radius:10px; background:#ffffff0a; }
.sidebar .nav-item.active { background:#f3e8c8; border-color:#f3e8c8; color:#25483f; }
.sidebar .nav-item.active .nav-index { color:#7d744c; }
.sidebar .nav-item:not(.active):hover { background:#ffffff15; }
.section-fold { margin-top:18px; }
.section-fold:not([open]) .fold-toggle { color:#285d53; background:#edf5ef; border:1px solid #d5e2d6; border-radius:7px; padding:6px 10px; }
.page-heading { margin-bottom:24px; }
.data-table td { padding-top:22px; padding-bottom:22px; }
@media(max-width:1060px) {
 .sidebar nav { padding:4px; border:1px solid #638475; border-radius:12px; background:#112f2a40; gap:4px; }
 .sidebar nav .nav-item { border-color:transparent; background:transparent; }
 .sidebar nav .nav-item.active { background:#f3e8c8; border-color:#f3e8c8; }
}
@media(max-width:720px) {
 .sidebar { padding-bottom:14px; }
 .sidebar nav { margin-top:14px; }
 .sidebar .nav-item { min-height:46px; border-radius:9px; font-size:14px; }
 main { padding-top:22px; }
 .page-heading { margin-bottom:18px; }
 .page-outline { margin-bottom:24px; }
 #school-list-section > .section-title { display:none; }
 .school-mobile-list .mobile-school-row { padding-top:18px; padding-bottom:18px; }
 .school-mobile-list .mobile-school-name { font-weight:600; }
 .school-mobile-list .mobile-school-meta { color:#849184; font-size:11px; }
 .mobile-provider-detail, .school-mobile-list .mobile-provider-detail, .material-detail {
  min-height:38px; min-width:48px; padding:6px 9px; font-size:12px;
  border:1px solid #c6d8cd; border-radius:8px; background:#edf5ef;
  color:#285d53; text-decoration:none;
 }
 .mobile-school-actions .detail-button {
  width:48px; min-width:48px; min-height:40px; padding:7px 4px;
  border:1px solid #c6d8cd; border-radius:8px; background:#edf5ef; color:#285d53;
  text-decoration:none;
 }
 .mobile-provider-detail-list .mobile-school-header,
 .mobile-provider-detail-list .mobile-school-row {
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 48px;
 }
 .mobile-provider-actions, .school-mobile-list .mobile-school-actions { gap:7px; flex-wrap:wrap; margin-top:9px; }
 .mobile-provider-detail:active, .mobile-school-actions .detail-button:active { background:#deece1; }
 .fold-heading small { display:none; }
 .section-fold > summary { padding-top:18px; padding-bottom:18px; }
}

.show-more-schools { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; margin-top:12px; padding:12px; border:1px solid #dce5da; border-radius:9px; background:#fff; color:#4c6a5b; font-size:13px; font-weight:500; }
#school-results .data-table th:nth-child(5), #school-results .data-table td:nth-child(5), #school-results .data-table th:nth-child(6), #school-results .data-table td:nth-child(6) { display:none; }
#school-results .data-table { min-width:560px; }
