/* Shared select appearance used by the public school website. */
.school-select { position: relative; width: 100%; min-width: 0; }
#wrap .school-select select[hidden] { display: none !important; }
#wrap .school-select-trigger { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; border: 1px solid var(--select-border, #e0e6eb); border-radius: 9px; background: var(--select-background, #fff); color: var(--select-ink, #485b68); box-shadow: none; font: 300 14px/1.5 'Hind', sans-serif; text-align: left; letter-spacing: 0; text-transform: none; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
#wrap .school-select-trigger:hover { border-color: var(--select-accent, #cbd4dc); }
#wrap .school-select-trigger:is(:focus-visible, [aria-expanded="true"]) { border-color: var(--select-accent, var(--school-red)); outline: 0; box-shadow: 0 0 0 3px var(--select-focus-ring, rgb(237 85 100 / 9%)); }
.school-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.school-select-trigger svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--select-ink, #82909a); transition: transform .18s ease; }
.school-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.school-select-menu { box-sizing: border-box; position: fixed; z-index: 10020; display:flex; flex-direction:column; margin: 0; padding: 6px; border: 1px solid #e5e9ed; border-radius: 11px; background: #fff; box-shadow: 0 10px 28px rgb(35 52 65 / 12%), 0 2px 5px rgb(35 52 65 / 4%); overflow:hidden; color: #485b68; font: 300 14px/1.5 'Hind', sans-serif; animation: school-select-appear .15s ease-out; }
.school-select-menu[hidden] { display: none; }
.school-select-options { position:relative; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#d8dfe5 transparent; }
.school-select-search { display:flex; align-items:center; flex:none; gap:9px; margin:0 0 6px; padding:10px 12px; border:1px solid var(--select-border,#e0e6eb); border-radius:8px; background:#fff; }
.school-select-search:focus-within { border-color:var(--select-accent,#cbd4dc); box-shadow:0 0 0 2px var(--select-focus-ring,rgb(237 85 100 / 9%)); }
.school-select-search > svg { flex:none; width:17px; height:17px; color:var(--select-ink,#82909a); }
.school-select-menu .school-select-search input[type="search"] { box-sizing:border-box; width:100%; min-width:0; min-height:24px; margin:0; padding:0; border:0; outline:0; border-radius:0; background:transparent; color:#34444f; font:400 15px/1.5 var(--f-body,'Hind',sans-serif); box-shadow:none; }
.school-select-search input::placeholder { color:#7a8893; opacity:1; }
.school-select-empty { padding:18px 12px; color:#6a7d86; font-size:14px; line-height:1.6; }
.school-select-search[hidden],.school-select-empty[hidden] { display:none; }
@media(max-width:600px) { .school-select-menu .school-select-search input[type="search"] { font-size:16px; } }
.school-select-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; box-sizing: border-box; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.school-select-option svg { flex: 0 0 16px; width: 16px; height: 16px; opacity: 0; }
.school-select-option[aria-selected="true"] { color: var(--select-ink, #c53b4b); background: var(--select-background, #fff1f3); font-weight: 400; }
.school-select-option[aria-selected="true"] svg { opacity: 1; }
.school-select-option.is-active, .school-select-option:hover { background: #f5f7f9; }
.school-select-option[aria-selected="true"]:is(.is-active, :hover) { background: var(--select-selected-hover, #ffebee); }
@keyframes school-select-appear { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .school-select-menu { animation: none; } #wrap .school-select-trigger, .school-select-trigger svg { transition: none; } }

.school-select[data-school-select-theme="mint"], .school-select-menu[data-school-select-theme="mint"] {
  --select-accent: var(--poskole);
  --select-ink: var(--school-turquoise-text);
  --select-border: color-mix(in srgb, var(--poskole) 40%, white);
  --select-background: color-mix(in srgb, var(--poskole) 8%, white);
  --select-selected-hover: color-mix(in srgb, var(--poskole) 20%, white);
  --select-focus-ring: color-mix(in srgb, var(--poskole) 15%, transparent);
}
.school-select[data-school-select-theme="green"], .school-select-menu[data-school-select-theme="green"] {
  --select-accent: var(--school-green);
  --select-ink: color-mix(in srgb, var(--school-green) 35%, #25313b);
  --select-border: color-mix(in srgb, var(--school-green) 45%, white);
  --select-background: color-mix(in srgb, var(--school-green) 20%, white);
  --select-selected-hover: color-mix(in srgb, var(--school-green) 30%, white);
  --select-focus-ring: color-mix(in srgb, var(--school-green) 20%, transparent);
}
