/* South Directory v0.2: Crayon Box, matching southpto.com.
   One crayon per grade: K pink, 1 orange, 2 sun, 3 grass, 4 sky, 5 grape.
   Everything is scoped under .sd so Divi's styles don't leak in or out. */
.sd {
	--navy: #16213E;
	--body: #3D4560;
	--muted: #5A6178;
	--line: #E3E6EF;
	--soft: #F7F8FB;
	--orange: #FF6B1A; --orange-ink: #B8420A; --orange-t: #FFF1E6;
	--sun: #FFC21A; --sun-ink: #7A5600; --sun-t: #FFF6D6;
	--grass: #13854F; --grass-t: #E6F6EE;
	--sky: #1F74E0; --sky-ink: #1A62BF; --sky-t: #EAF3FF;
	--grape: #7C4DFF; --grape-ink: #5A33D6; --grape-t: #F0EBFF;
	--pink: #E0306C; --pink-ink: #B81D55; --pink-t: #FFE6EF;
	--peach: #FFF4E0;
	--danger: #B42318;
	--f: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	font-family: var(--f);
	font-size: 17px;
	line-height: 1.5;
	color: var(--navy);
	max-width: 1180px;
	margin: 0 auto;
	text-align: left;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}
.sd *, .sd *::before, .sd *::after { box-sizing: border-box; }
.sd :where(h2, h3, p, ul, li) { margin: 0; padding: 0; color: inherit; font-family: inherit; }
.sd :where(ul) { list-style: none; }
.sd :where(button, input, textarea, select) { font: inherit; text-transform: none; letter-spacing: normal; }
.sd :where(a) { color: var(--sky-ink); }
.sd :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sd .sd-loading { padding: 24px 0; color: var(--muted); }
.sd .sd-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sd [hidden] { display: none !important; }

/* ---------- icons ---------- */
.sd .sd-ic { display: inline-flex; flex-shrink: 0; width: 1.15em; height: 1.15em; }
.sd .sd-ic svg { width: 100%; height: 100%; display: block; }
.sd .sd-ic.is-muted { color: var(--muted); }
.sd .is-sky-ink { color: var(--sky-ink); }
.sd .is-orange-ink { color: var(--orange-ink); }
.sd .sd-tiger { display: inline-flex; width: 40px; height: 40px; flex-shrink: 0; }
.sd .sd-tiger svg { width: 100%; height: 100%; }
.sd .sd-badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 16px; flex-shrink: 0; font-size: 22px; }
.sd .sd-badge.is-sun { background: var(--sun); color: var(--navy); }
.sd .sd-badge.is-sky { background: var(--sky-t); color: var(--sky-ink); }
.sd .sd-badge.is-orange { background: var(--orange-t); color: var(--orange-ink); }
.sd .sd-badge.is-white { background: #fff; width: 42px; height: 42px; border-radius: 14px; font-size: 20px; }

/* ---------- hero header ---------- */
.sd .sd-hero {
	background: var(--navy);
	color: #fff;
	padding: 22px 20px 18px;
	border-radius: 0 0 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sd .sd-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sd .sd-brand { display: flex; align-items: center; gap: 10px; }
.sd .sd-brandtext { display: flex; flex-direction: column; line-height: 1.2; }
.sd .sd-org { font-weight: 700; font-size: 15px; color: var(--sun); }
.sd .sd-schoolname { font-size: 14px; color: #C9CEDD; }
.sd .sd-title { font-size: 36px; line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.sd .sd-heroslot:empty { display: none; }
.sd .sd-stripe { display: flex; gap: 4px; }
.sd .sd-stripe span { flex: 1 1 0; height: 6px; border-radius: 99px; }
.sd .sd-stripe .is-pink { background: var(--pink); }
.sd .sd-stripe .is-orange { background: var(--orange); }
.sd .sd-stripe .is-sun { background: var(--sun); }
.sd .sd-stripe .is-grass { background: var(--grass); }
.sd .sd-stripe .is-sky { background: var(--sky); }
.sd .sd-stripe .is-grape { background: var(--grape); }

/* search pill inside the hero */
.sd .sd-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 99px; padding: 0 8px 0 18px; min-height: 56px; color: var(--navy); font-size: 22px; }
.sd .sd-searchinput { font-size: 19px; font-weight: 600; color: var(--navy); border: 0; outline: none; background: transparent; flex: 1 1 auto; min-width: 0; padding: 0; margin: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.sd .sd-searchinput::-webkit-search-cancel-button { display: none; }
.sd .sd-searchinput::placeholder { color: var(--muted); font-weight: 400; }
.sd .sd-clear { width: 40px; height: 40px; border-radius: 99px; border: 0; background: var(--line); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; flex-shrink: 0; padding: 0; }

/* ---------- body ---------- */
.sd .sd-body { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.sd .sd-narrow > * { max-width: 560px; }
.sd .sd-gutter { margin: 14px 20px 0; }
.sd .sd-stage { position: relative; }
.sd .sd-mark { position: absolute; inset: 0; pointer-events: none; z-index: 3; background-repeat: repeat; }
.sd .sd-stack { display: flex; flex-direction: column; gap: 14px; }
.sd .sd-h { font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.sd .sd-h.is-big { font-size: 28px; }
.sd .sd-headrow { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.sd .sd-headrow .sd-h { font-size: 21px; color: var(--navy); }
.sd .sd-lead { font-size: 17px; color: var(--body); }
.sd .sd-lead strong { color: var(--navy); }
.sd .sd-small { font-size: 15px; color: var(--muted); }
.sd .sd-count { font-size: 15px; color: var(--muted); font-weight: 600; }
.sd .sd-note { background: var(--sun-t); border-radius: 16px; padding: 10px 14px; font-size: 15.5px; color: var(--navy); }
.sd .sd-error { color: var(--danger); font-weight: 700; }
.sd .sd-error:empty, .sd .sd-small:empty { display: none; }
.sd .sd-row { display: flex; gap: 12px; align-items: flex-start; }
.sd .sd-row > .sd-ic { font-size: 20px; margin-top: 2px; }
.sd .sd-empty { display: flex; align-items: center; gap: 14px; background: var(--soft); border-radius: 20px; padding: 16px; color: var(--body); font-size: 16px; }

/* panels */
.sd .sd-panel { border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--body); font-size: 15.5px; }
.sd .sd-panel.sd-row { flex-direction: row; }
.sd .sd-panel.is-peach { background: var(--peach); }
.sd .sd-panel.is-grass { background: var(--grass-t); }
.sd .sd-panel.is-sky { background: var(--sky-t); }

/* ---------- forms and buttons ---------- */
.sd .sd-form { display: flex; flex-direction: column; gap: 10px; }
.sd .sd-form label, .sd .sd-label { font-weight: 700; color: var(--navy); }
.sd .sd-input {
	color: var(--navy);
	width: 100%;
	min-height: 56px;
	padding: 12px 18px;
	border: 2px solid var(--line);
	border-radius: 18px;
	background: #fff;
	box-shadow: none;
	margin: 0;
}
.sd textarea.sd-input { min-height: 110px; border-radius: 16px; resize: vertical; }
.sd .sd-input:focus { outline: none; border-color: var(--navy); }
.sd .sd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	padding: 0 26px;
	border-radius: 99px;
	border: 0;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.1;
	cursor: pointer;
	align-self: flex-start;
	transition: transform .15s ease, filter .15s ease;
}
.sd .sd-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.sd .sd-btn:disabled { opacity: .6; cursor: default; transform: none; }
.sd .sd-btn.is-orange { background: var(--orange); color: var(--navy); }
.sd .sd-btn.is-navy { background: var(--navy); color: #fff; min-height: 52px; font-size: 16px; font-weight: 700; }
.sd .sd-linkbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	padding: 8px 0;
	min-height: 44px;
	color: var(--sky-ink);
	font-weight: 700;
	cursor: pointer;
	align-self: flex-start;
}
.sd .sd-linkbtn:disabled { color: var(--muted); cursor: default; }
.sd .sd-linkbtn.is-danger { color: var(--danger); }
.sd .sd-linkbtn.is-navy { color: var(--navy); }
.sd .sd-linkrow { display: flex; flex-wrap: wrap; column-gap: 22px; }

/* six code boxes */
.sd .sd-digits { display: flex; gap: 8px; }
.sd .sd-digit {
	width: 48px;
	height: 60px;
	padding: 0;
	margin: 0;
	text-align: center;
	font-size: 28px;
	font-weight: 800;
	color: var(--navy);
	border: 2px solid var(--line);
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
}
.sd .sd-digit.is-filled { border-color: var(--orange); background: var(--orange-t); }
.sd .sd-digit:focus { outline: none; border-color: var(--navy); }

/* switches */
.sd .sd-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.sd .sd-toggletext { display: flex; flex-direction: column; line-height: 1.3; font-weight: 700; color: var(--navy); min-width: 0; }
.sd .sd-toggletext small { font-weight: 400; font-size: 14.5px; color: var(--muted); word-break: break-word; }
.sd .sd-switch {
	-webkit-appearance: none;
	appearance: none;
	flex-shrink: 0;
	position: relative;
	width: 52px;
	height: 32px;
	margin: 0;
	border-radius: 99px;
	background: #C9CEDD;
	cursor: pointer;
	transition: background .15s ease;
}
.sd .sd-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.sd .sd-switch:checked { background: var(--grass); }
.sd .sd-switch:checked::before { transform: translateX(20px); }
.sd .sd-switch:disabled { opacity: .5; cursor: default; }

/* ---------- grade chips ---------- */
.sd .sd-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
.sd .sd-chips::-webkit-scrollbar { display: none; }
.sd .sd-chip {
	flex-shrink: 0;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 99px;
	border: 2px solid transparent;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
}
.sd .sd-chip.is-all { background: #fff; color: var(--navy); border-color: var(--line); }
.sd .sd-chip.is-all.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sd .sd-chip.is-on { border-color: var(--navy); box-shadow: inset 0 0 0 2px #fff; }
.sd .is-pink.sd-chip, .sd .sd-gchip.is-pink, .sd .sd-grade.is-pink { background: var(--pink-t); color: var(--pink-ink); }
.sd .is-orange.sd-chip, .sd .sd-gchip.is-orange, .sd .sd-grade.is-orange { background: var(--orange-t); color: var(--orange-ink); }
.sd .is-sun.sd-chip, .sd .sd-gchip.is-sun, .sd .sd-grade.is-sun { background: var(--sun-t); color: var(--sun-ink); }
.sd .is-grass.sd-chip, .sd .sd-gchip.is-grass, .sd .sd-grade.is-grass { background: var(--grass-t); color: var(--grass); }
.sd .is-sky.sd-chip, .sd .sd-gchip.is-sky, .sd .sd-grade.is-sky { background: var(--sky-t); color: var(--sky-ink); }
.sd .is-grape.sd-chip, .sd .sd-gchip.is-grape, .sd .sd-grade.is-grape { background: var(--grape-t); color: var(--grape-ink); }
.sd .is-navy.sd-chip, .sd .sd-gchip.is-navy, .sd .sd-grade.is-navy { background: var(--soft); color: var(--navy); }

.sd .sd-gchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; line-height: 1.3; }
.sd .sd-dot { width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.sd .sd-gchip.is-sun .sd-dot { background: var(--sun); }

/* ---------- family card ---------- */
.sd .sd-cards { display: grid; gap: 14px; align-items: start; }
.sd .sd-card { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.sd .sd-card.is-yours { border-color: var(--sun); }
.sd .sd-kids { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; background: #FBFBFD; }
.sd .sd-yours { align-self: flex-start; background: var(--sun); color: var(--navy); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.sd .sd-kid { display: flex; flex-direction: column; gap: 4px; }
.sd .sd-kname { font-size: 23px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.sd .sd-kmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.sd .sd-adults { border-top: 2px dashed var(--line); display: flex; flex-direction: column; }
.sd .sd-adult { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.sd .sd-adult + .sd-adult { border-top: 1px solid var(--line); }
.sd .sd-ahead { display: flex; align-items: center; gap: 10px; }
.sd .sd-avatar { width: 38px; height: 38px; border-radius: 99px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sd .sd-avatar.is-orange { background: var(--orange-t); color: var(--orange-ink); }
.sd .sd-avatar.is-sky { background: var(--sky-t); color: var(--sky-ink); }
.sd .sd-avatar.is-grape { background: var(--grape-t); color: var(--grape-ink); }
.sd .sd-avatar.is-grass { background: var(--grass-t); color: var(--grass); }
.sd .sd-anames { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sd .sd-aname { font-weight: 700; }
.sd .sd-aline { font-size: 14.5px; color: var(--muted); word-break: break-word; }
.sd .sd-aline.is-quiet { font-style: italic; }

/* phone: Call / Text / Email */
.sd .sd-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 48px; }
.sd .sd-act { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px 0 13px; border-radius: 99px; font-weight: 700; font-size: 15.5px; text-decoration: none; color: #fff; }
.sd .sd-act .sd-ic { width: 18px; height: 18px; }
.sd .sd-act.is-call { background: var(--grass); }
.sd .sd-act.is-sms { background: var(--sky); }
.sd .sd-act.is-email { background: var(--grape); }
.sd .sd-act:hover, .sd .sd-act:focus { color: #fff; filter: brightness(1.08); }

/* laptop: Copy */
.sd .sd-copygroup { display: flex; flex-direction: column; gap: 2px; }
.sd .sd-copyrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--soft); border-radius: 12px; padding: 6px 6px 6px 12px; }
.sd .sd-copyval { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; min-width: 0; word-break: break-all; }
.sd .sd-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 2px solid var(--line); background: #fff; color: var(--navy); font-size: 14.5px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.sd .sd-copy:hover { border-color: var(--navy); }
.sd .sd-copy.is-done { background: var(--grass-t); border-color: var(--grass-t); color: var(--grass); }
.sd .sd-openmail { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; padding: 4px 0 0 12px; color: var(--sky-ink); }
.sd .sd-save { margin: 0 18px 10px; font-size: 15px; }

/* ---------- classes ---------- */
.sd .sd-grades { display: grid; gap: 12px; align-items: start; }
.sd .sd-grade { border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sd .sd-gradehead { display: flex; align-items: center; gap: 10px; }
.sd .sd-gradehead .sd-h { color: inherit; }
.sd .sd-numeral { width: 40px; height: 40px; border-radius: 14px; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--navy); }
.sd .sd-grade.is-pink .sd-numeral { background: var(--pink); }
.sd .sd-grade.is-orange .sd-numeral { background: var(--orange); color: var(--navy); }
.sd .sd-grade.is-sun .sd-numeral { background: var(--sun); color: var(--navy); }
.sd .sd-grade.is-grass .sd-numeral { background: var(--grass); }
.sd .sd-grade.is-sky .sd-numeral { background: var(--sky); }
.sd .sd-grade.is-grape .sd-numeral { background: var(--grape); }
.sd .sd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sd .sd-tile { width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px 10px 14px; border: 0; border-radius: 16px; background: #fff; color: var(--navy); text-align: left; cursor: pointer; }
.sd .sd-tile:hover { box-shadow: inset 0 0 0 2px currentColor; }
.sd .sd-tiletext { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sd .sd-tilename { font-weight: 700; }
.sd .sd-tilecount { font-size: 13.5px; color: var(--muted); }
.sd .sd-tile .is-tone { color: inherit; opacity: .8; }
.sd .sd-grade .sd-tile .sd-ic.is-tone { color: var(--muted); }
.sd .sd-classhead { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- info ---------- */
.sd .sd-linktiles { display: grid; gap: 10px; }
.sd .sd-linktile { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 14px 16px; text-decoration: none; color: var(--navy); font-size: 20px; }
.sd .sd-linktile.is-grape { background: var(--grape-t); color: var(--grape-ink); }
.sd .sd-linktile.is-orange { background: var(--orange-t); color: var(--orange-ink); }
.sd .sd-linktile.is-sky { background: var(--sky-t); color: var(--sky-ink); }
.sd .sd-linktile.is-grass { background: var(--grass-t); color: var(--grass); }
.sd .sd-linklabel { flex: 1 1 auto; font-size: 17px; font-weight: 800; color: var(--navy); }
.sd .sd-howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd .sd-howcard { border: 2px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sd .sd-howcard p { font-size: 14.5px; color: var(--body); }
.sd .sd-howcard .sd-ic { vertical-align: -3px; }
.sd .sd-signedin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; color: var(--muted); word-break: break-word; }

/* ---------- navigation ---------- */
.sd .sd-tnav { display: none; gap: 8px; }
.sd .sd-tnavbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.sd .sd-tnavbtn.is-on { background: #fff; color: var(--navy); }
.sd .sd-bnav {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	gap: 6px;
	padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--line);
	background: rgba(255, 255, 255, .97);
}
.sd .sd-bnavbtn { flex: 1 1 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 18px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 2px; }
.sd .sd-bnavbtn .sd-ic { width: 22px; height: 22px; }
.sd .sd-bnavbtn.is-on { background: var(--navy); color: #fff; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
	.sd .sd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sd .sd-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sd .sd-linktiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
	.sd .sd-hero { padding: 26px 40px 22px; border-radius: 0 0 36px 36px; gap: 18px; }
	.sd .sd-title { font-size: 52px; }
	.sd .sd-tnav { display: flex; }
	.sd .sd-bnav { display: none; }
	.sd .sd-body { padding: 22px 40px 40px; }
	.sd .sd-gutter { margin: 14px 40px 0; }
	.sd .sd-search { max-width: 640px; }
	.sd .sd-chips { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; }
	.sd .sd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	.sd .sd-grades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sd .sd-body > .sd-panel, .sd .sd-body > form, .sd .sd-body > .sd-howto { max-width: 720px; }
	.sd .sd-body > .sd-card { max-width: 560px; }
}

/* ---------- messaging (v0.3) ---------- */
.sd .sd-cardfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 4px 18px 12px; }
.sd .sd-msgbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 99px; border: 0; background: var(--orange); color: var(--navy); font-weight: 800; font-size: 15.5px; cursor: pointer; }
.sd .sd-msgbtn .sd-ic { width: 18px; height: 18px; }
.sd .sd-msgbtn:hover { filter: brightness(1.05); }
.sd .sd-invite { display: flex; flex-direction: column; gap: 10px; background: var(--sun-t); border: 2px solid var(--sun); border-radius: 22px; padding: 16px; }
.sd .sd-invite .sd-badge { color: var(--orange-ink); font-size: 22px; }
.sd .sd-invitetext { font-size: 15.5px; color: var(--body); }
.sd .sd-invite .sd-headrow .sd-h { font-size: 19px; }
.sd .sd-invitetext .sd-h { color: var(--navy); font-size: 19px; }
.sd .sd-panel.is-sun { background: var(--sun-t); }
.sd .is-sun-ink { color: var(--sun-ink); }
.sd .sd-badge.is-grass { background: var(--grass-t); color: var(--grass); }
.sd .sd-counter { align-self: flex-end; font-size: 13px; color: var(--muted); margin-top: -4px; }
.sd .sd-done { display: flex; align-items: center; gap: 12px; }

.sd .sd-sheet {
	border: 0;
	padding: 0;
	margin: auto auto 0;
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	border-radius: 28px 28px 0 0;
	background: #fff;
	color: var(--navy);
	font-family: var(--f);
	box-shadow: 0 -8px 40px rgba(22, 33, 62, .18);
	overflow: auto;
}
.sd .sd-sheet[open] { display: flex; flex-direction: column; }
.sd .sd-sheet::backdrop { background: rgba(22, 33, 62, .55); }
.sd .sd-sheethead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 8px; position: sticky; top: 0; background: #fff; }
.sd .sd-sheetbody { padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 760px) {
	.sd .sd-sheet { margin: auto; border-radius: 28px; }
}

/* ---------- simpler screens (v0.4) ---------- */
.sd .sd-section { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sd .sd-results { display: flex; flex-direction: column; gap: 12px; }
.sd .sd-classbtn, .sd .sd-classhit {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 0;
	border-radius: 22px;
	color: var(--navy);
	text-align: left;
	cursor: pointer;
}
.sd .sd-classbtn { min-height: 84px; }
.sd .sd-classbtn .sd-numeral { width: 48px; height: 48px; border-radius: 16px; font-size: 22px; flex-shrink: 0; }
.sd .sd-classbtn.is-pink { background: var(--pink-t); } .sd .sd-classbtn.is-pink .sd-numeral { background: var(--pink); color: #fff; } .sd .sd-classbtn.is-pink .sd-classbtnsub { color: var(--pink-ink); }
.sd .sd-classbtn.is-orange { background: var(--orange-t); } .sd .sd-classbtn.is-orange .sd-numeral { background: var(--orange); color: var(--navy); } .sd .sd-classbtn.is-orange .sd-classbtnsub { color: var(--orange-ink); }
.sd .sd-classbtn.is-sun { background: var(--sun-t); } .sd .sd-classbtn.is-sun .sd-numeral { background: var(--sun); color: var(--navy); } .sd .sd-classbtn.is-sun .sd-classbtnsub { color: var(--sun-ink); }
.sd .sd-classbtn.is-grass { background: var(--grass-t); } .sd .sd-classbtn.is-grass .sd-numeral { background: var(--grass); color: #fff; } .sd .sd-classbtn.is-grass .sd-classbtnsub { color: var(--grass); }
.sd .sd-classbtn.is-sky { background: var(--sky-t); } .sd .sd-classbtn.is-sky .sd-numeral { background: var(--sky); color: #fff; } .sd .sd-classbtn.is-sky .sd-classbtnsub { color: var(--sky-ink); }
.sd .sd-classbtn.is-grape { background: var(--grape-t); } .sd .sd-classbtn.is-grape .sd-numeral { background: var(--grape); color: #fff; } .sd .sd-classbtn.is-grape .sd-classbtnsub { color: var(--grape-ink); }
.sd .sd-classbtn.is-navy { background: var(--soft); } .sd .sd-classbtn.is-navy .sd-numeral { background: var(--navy); color: #fff; }
.sd .sd-classbtn:hover, .sd .sd-classhit:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.sd .sd-classbtntext { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
.sd .sd-classbtnname { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.sd .sd-classbtnsub { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.sd .sd-classbtn > .sd-ic, .sd .sd-classhit > .sd-ic { font-size: 22px; color: var(--muted); }
.sd .sd-classhit { min-height: 72px; background: var(--sun-t); border: 2px solid var(--sun); }
.sd .sd-classhit .sd-badge { color: var(--sun-ink); }
.sd .sd-classhit .sd-classbtnname { font-size: 18px; }
.sd .sd-hl { background: var(--sun); color: var(--navy); border-radius: 4px; padding: 0 2px; }
.sd .sd-nomatch { display: flex; flex-direction: column; gap: 10px; background: var(--orange-t); border-radius: 22px; padding: 18px; color: var(--body); }
.sd .sd-nomatch .sd-badge { color: var(--orange-ink); }
.sd .sd-nomatch .sd-h { color: var(--navy); }
.sd .sd-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.sd .sd-starter { min-height: 44px; padding: 0 14px; border-radius: 99px; border: 2px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; }
.sd .sd-starter.is-orange { background: var(--orange-t); color: var(--orange-ink); }
.sd .sd-starter.is-pink { background: var(--pink-t); color: var(--pink-ink); }
.sd .sd-starter.is-sky { background: var(--sky-t); color: var(--sky-ink); }
.sd .sd-starter.is-grass { background: var(--grass-t); color: var(--grass); }
.sd .sd-starter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.sd .sd-btn.is-wide { align-self: stretch; }
.sd .sd-bnavbtn { font-size: 13.5px; }
.sd .sd-bnavbtn .sd-ic { width: 24px; height: 24px; }
@media (min-width: 980px) {
	.sd .sd-results > .sd-classbtn, .sd .sd-results > .sd-classhit, .sd .sd-results > .sd-empty, .sd .sd-results > .sd-nomatch { max-width: 640px; }
}

.sd .sd-note.is-offline { background: var(--pink-t); color: var(--pink-ink); font-weight: 700; }
/* ---------- page layouts (v0.4.2) ---------- */
.sd-page-full { background: #fff; }
.sd-page-full .sd-page-inner { max-width: 1180px; margin: 0 auto; padding: 28px 20px 56px; }
.sd-page-full .sd-page-inner > p { max-width: 720px; }
body.sd-app-page { margin: 0; background: #fff; }
.sd-app-main { min-height: 100vh; min-height: 100dvh; }
.sd-app-main .sd { max-width: none; }
.sd-app-main .sd .sd-hero { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
@media (min-width: 980px) {
	.sd-app-main .sd .sd-hero, .sd-app-main .sd .sd-body { padding-left: max(40px, calc((100vw - 1180px) / 2)); padding-right: max(40px, calc((100vw - 1180px) / 2)); }
}
/* ---------- v0.4.3: by-teacher list, theme focus fix ---------- */
.sd .sd-segment { display: inline-flex; align-self: flex-start; gap: 4px; background: var(--soft); border: 2px solid var(--line); border-radius: 99px; padding: 4px; }
.sd .sd-segbtn { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.sd .sd-segbtn.is-on { background: var(--navy); color: #fff; }
.sd .sd-teacherlist { display: grid; gap: 8px; }
.sd .sd-teacherlist > li .sd-tile { min-height: 68px; border: 2px solid var(--line); }
.sd .sd-teacherlist > li.is-pink .sd-tile { border-left: 8px solid var(--pink); }
.sd .sd-teacherlist > li.is-orange .sd-tile { border-left: 8px solid var(--orange); }
.sd .sd-teacherlist > li.is-sun .sd-tile { border-left: 8px solid var(--sun); }
.sd .sd-teacherlist > li.is-grass .sd-tile { border-left: 8px solid var(--grass); }
.sd .sd-teacherlist > li.is-sky .sd-tile { border-left: 8px solid var(--sky); }
.sd .sd-teacherlist > li.is-grape .sd-tile { border-left: 8px solid var(--grape); }
.sd .sd-tilemeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
@media (min-width: 760px) { .sd .sd-teacherlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .sd .sd-teacherlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Themes (Divi included) add their own focus outline to inputs; use one clean ring on the rounded box instead. */
.sd .sd-searchinput:focus, .sd .sd-searchinput:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }
.sd .sd-search:focus-within { box-shadow: 0 0 0 3px var(--sun); }
.sd .sd-input:focus, .sd .sd-input:focus-visible, .sd .sd-digit:focus, .sd .sd-digit:focus-visible { outline: none !important; box-shadow: 0 0 0 3px var(--sun-t) !important; border-color: var(--navy) !important; }
/* ---------- v0.5.3: By teacher as one column per grade ---------- */
.sd .sd-teachers { display: flex; flex-direction: column; gap: 8px; }
.sd .sd-gradecols {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, 78%);
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	margin: 0 -20px;
	padding: 2px 20px 12px;
	-webkit-overflow-scrolling: touch;
}
.sd .sd-gradecol { scroll-snap-align: start; border-radius: 22px; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.sd .sd-gradecol.is-pink { background: var(--pink-t); color: var(--pink-ink); }
.sd .sd-gradecol.is-orange { background: var(--orange-t); color: var(--orange-ink); }
.sd .sd-gradecol.is-sun { background: var(--sun-t); color: var(--sun-ink); }
.sd .sd-gradecol.is-grass { background: var(--grass-t); color: var(--grass); }
.sd .sd-gradecol.is-sky { background: var(--sky-t); color: var(--sky-ink); }
.sd .sd-gradecol.is-grape { background: var(--grape-t); color: var(--grape-ink); }
.sd .sd-gradecol.is-navy { background: var(--soft); color: var(--navy); }
.sd .sd-gradecol .sd-gradehead .sd-h { color: inherit; font-size: 19px; }
.sd .sd-gradecol.is-pink .sd-numeral { background: var(--pink); }
.sd .sd-gradecol.is-orange .sd-numeral { background: var(--orange); color: var(--navy); }
.sd .sd-gradecol.is-sun .sd-numeral { background: var(--sun); color: var(--navy); }
.sd .sd-gradecol.is-grass .sd-numeral { background: var(--grass); }
.sd .sd-gradecol.is-sky .sd-numeral { background: var(--sky); }
.sd .sd-gradecol.is-grape .sd-numeral { background: var(--grape); }
.sd .sd-colteachers { display: flex; flex-direction: column; gap: 8px; }
.sd .sd-colteachers .sd-tile { min-height: 60px; }
@media (min-width: 980px) {
	.sd .sd-gradecols { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 2px 0 12px; }
	.sd .sd-swipehint { display: none; }
}
/* ---------- v0.6: install the app ---------- */
.sd .sd-installhost:empty { display: none; }
.sd .sd-install { position: relative; display: flex; align-items: center; gap: 14px; background: var(--sky-t); border: 2px solid #C8DDF8; border-radius: 22px; padding: 14px 48px 14px 14px; }
.sd .sd-installicon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.sd .sd-installbody { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; flex: 1 1 auto; }
.sd .sd-installtext { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--body); flex: 1 1 200px; }
.sd .sd-installtext strong { color: var(--navy); font-size: 16.5px; }
.sd .sd-installtext .sd-ic { vertical-align: -3px; }
.sd .sd-install .sd-btn { min-height: 48px; padding: 0 22px; }
.sd .sd-installx { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; background: transparent; }
.sd-app-page .sd .sd-hero { border-radius: 0 0 28px 28px; }
.sd .sd-rpbadge { display: inline-block; vertical-align: 2px; background: var(--grape-t); color: var(--grape-ink); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; letter-spacing: .01em; }
.sd .sd-roomline { font-size: 15px; color: var(--body); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sd .sd-invite.is-room { background: var(--grape-t); border-color: #D6C8FF; }
.sd .sd-invite.is-room .sd-badge { color: var(--grape-ink); }
.sd .sd-missing { display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border-radius: 16px; padding: 12px 14px; }
.sd .sd-missinghead { display: flex; align-items: center; gap: 8px; color: var(--grape-ink); font-size: 15px; }
.sd .sd-missing ul { display: flex; flex-direction: column; gap: 8px; }
.sd .sd-missing li { display: flex; flex-direction: column; font-size: 14.5px; color: var(--body); border-top: 1px solid var(--line); padding-top: 8px; }
.sd .sd-missing li strong { color: var(--navy); }
.sd .sd-upgrade { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; background: var(--sky-t); border: 2px solid #C8DDF8; border-radius: 22px; padding: 14px 16px; }
.sd .sd-upgrade .sd-badge { color: var(--sky-ink); }
.sd .sd-upgradetext { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--body); }
.sd .sd-upgradetext strong { color: var(--navy); font-size: 16.5px; }
.sd .sd-upgrade .sd-btn { min-height: 48px; }
.sd .sd-segbtn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.sd .sd-picklist { display: flex; flex-direction: column; gap: 8px; }
.sd .sd-picklist ul { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.sd .sd-picklist li label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; }
.sd .sd-picklist li input { width: 22px; height: 22px; margin: 0; accent-color: var(--orange); flex-shrink: 0; }
.sd .sd-picklist li.is-off label { cursor: default; background: var(--soft); color: var(--muted); }
.sd .sd-pickoff { flex-basis: 100%; padding-left: 34px; font-size: 13.5px; font-weight: 400; }
/* ---------- v0.9.5: compact family rows ---------- */
.sd .sd-rows { background: #fff; border: 2px solid var(--line); border-radius: 20px; overflow: hidden; }
.sd .sd-frow + .sd-frow { border-top: 1px solid var(--line); }
.sd .sd-frowbtn { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; background: #fff; color: var(--navy); text-align: left; cursor: pointer; font: inherit; }
.sd .sd-frow.is-open, .sd .sd-frow.is-open .sd-frowbtn { background: #FBFBFD; }
.sd .sd-frowbtn:hover { background: var(--soft); }
.sd .sd-frowbtn .sd-avatar { width: 40px; height: 40px; }
.sd .sd-frowtext { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sd .sd-frowname { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.sd .sd-frowsub { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.sd .sd-frowchev { color: var(--muted); width: 18px; height: 18px; transition: transform .15s ease; }
.sd .sd-frow.is-open .sd-frowchev { transform: rotate(90deg); }
.sd .sd-yourschip { background: var(--sun); color: var(--navy); font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.sd .sd-frowdetail { padding: 0 14px 12px 66px; display: flex; flex-direction: column; gap: 6px; }
.sd .sd-frowkids { display: flex; flex-direction: column; gap: 4px; }
.sd .sd-frowkid { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14.5px; color: var(--muted); }
.sd .sd-frowkid strong { color: var(--navy); }
.sd .sd-frowdetail .sd-adults { border-top: 0; }
.sd .sd-frowdetail .sd-adult { padding: 10px 0; }
.sd .sd-frowdetail .sd-adult + .sd-adult { border-top: 1px solid var(--line); border-left: 0; }
.sd .sd-frowdetail .sd-ahead .sd-avatar { display: none; }
.sd .sd-frowdetail .sd-acts { padding-left: 0; }
.sd .sd-frowdetail .sd-cardfoot { padding: 6px 0 0; }
.sd .sd-frowdetail .sd-copyrow { max-width: 460px; }
@media (min-width: 760px) {
	.sd .sd-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; background: none; border: 0; border-radius: 0; overflow: visible; }
	.sd .sd-frow, .sd .sd-frow + .sd-frow { border: 2px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
	.sd .sd-frowdetail .sd-adults { grid-template-columns: 1fr; }
}
.sd .sd-toggle.is-readonly { cursor: default; }
.sd .sd-state { flex-shrink: 0; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.sd .sd-state.is-on { background: var(--grass-t); color: var(--grass); }
.sd .sd-disclaimer { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: var(--sky-t); color: var(--body); font-size: 14.5px; line-height: 1.45; }
.sd .sd-disclaimer .sd-ic { flex-shrink: 0; color: var(--sky-ink); margin-top: 1px; }
.sd .sd-disclaimerwrap { padding-top: 4px; padding-bottom: 18px; }
.sd .sd-avatar.is-family { background: var(--grass-t); color: var(--grass); display: inline-flex; align-items: center; justify-content: center; }
.sd .sd-avatar.is-family .sd-ic { width: 20px; height: 20px; }
.sd .sd-adult.is-family .sd-aname { color: var(--grass); }
.sd .sd-frowkid { flex-wrap: nowrap; }
.sd .sd-frowteacher { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sd .sd-fbtypes { flex-wrap: wrap; }
.sd .sd-fbtypes .sd-segbtn { white-space: nowrap; }
.sd .sd-disclaimertext { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sd .sd-fblink { min-height: 36px; padding: 0; font-size: 14.5px; }
.sd .sd-fbcard { align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.sd .sd-fbcardtext { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.sd .sd-qr { margin: 8px 0 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sd .sd-qrimg { background: #fff; padding: 8px; border-radius: 16px; border: 2px solid var(--line); line-height: 0; }
.sd .sd-qrimg svg { width: min(240px, 70vw); height: auto; }
.sd .sd-qr figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 14.5px; color: var(--muted); }
.sd .sd-qr figcaption strong { color: var(--navy); font-size: 16px; }
.sd .sd-mehead { justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.sd .sd-qrbtn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.sd .sd-qrstrip { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 2px; }
.sd .sd-qrthumb { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--navy); cursor: zoom-in; text-align: left; font: inherit; }
.sd .sd-qrthumb:hover { border-color: var(--sky); }
.sd .sd-qrthumbimg { line-height: 0; }
.sd .sd-qrthumbtext { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--muted); }
.sd .sd-qrthumbtext strong { color: var(--navy); font-size: 15px; }
.sd .sd-qrthumbbig { color: var(--sky-ink); font-weight: 700; }
.sd .sd-myqr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: var(--soft); }
.sd .sd-myqrtext { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.sd .sd-myqrcodes { display: flex; flex-wrap: wrap; gap: 10px; }
.sd .sd-myqr .sd-qrthumbbig::before { content: ''; }
/* ---------- v0.9.32: help & sponsors ---------- */
.sd .sd-footlinks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sd .sd-helptopic { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 0 16px; }
.sd .sd-helptopic summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 17px; color: var(--navy); }
.sd .sd-helptopic summary::-webkit-details-marker { display: none; }
.sd .sd-helptopic summary .sd-ic { color: var(--muted); transition: transform .15s ease; }
.sd .sd-helptopic[open] summary .sd-ic { transform: rotate(90deg); }
.sd .sd-helptopic p { margin: 0 0 10px; color: var(--body); line-height: 1.5; }
.sd .sd-helptopic > a { margin-bottom: 12px; }
.sd .sd-sponsors { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sd .sd-sponsorshead { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sd .sd-sponsorgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd .sd-sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 12px; border: 2px solid var(--line); border-radius: 18px; background: #fff; text-align: center; text-decoration: none; color: var(--navy); }
.sd a.sd-sponsor:hover { border-color: var(--sky); }
.sd .sd-sponsorlogo { max-width: 100%; max-height: 52px; object-fit: contain; }
.sd .sd-sponsorname { font-weight: 800; font-size: 16px; }
.sd .sd-sponsorline { font-size: 13px; color: var(--muted); line-height: 1.35; }
.sd .sd-sponsor.is-placeholder { border-style: dashed; border-color: var(--orange); background: var(--orange-t); }
.sd .sd-sponsorcta { font-weight: 800; font-size: 14px; color: var(--orange-ink); }
@media (min-width: 760px) { .sd .sd-sponsorgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* ---------- v0.9.33: contact lines stay on one line ---------- */
.sd .sd-aline { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.sd .sd-anames, .sd .sd-ahead, .sd .sd-adult { min-width: 0; }
.sd .sd-anames { overflow: hidden; }
@media (max-width: 520px) {
	.sd .sd-frowdetail { padding-left: 16px; }
	.sd .sd-aline { font-size: 14px; }
}
/* ---------- v0.9.34: laptop copy boxes keep the address on one line ---------- */
.sd .sd-copyval { flex: 1 1 auto; min-width: 0; word-break: normal; }
.sd .sd-copytext { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sd .sd-copy.is-icon { width: 40px; padding: 0; justify-content: center; }
.sd .sd-copy.is-icon .sd-copylabel { display: none; }
.sd .sd-frowdetail .sd-copyrow { max-width: none; }
/* ---------- v0.9.35: opened family spans the full width on laptops ---------- */
@media (min-width: 760px) {
	.sd .sd-frow.is-open { grid-column: 1 / -1; }
	.sd .sd-frow.is-open .sd-frowdetail .sd-adults { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }
	.sd .sd-frow.is-open .sd-frowdetail .sd-adult + .sd-adult { border-top: 0; }
}
/* ---------- v0.9.37: full addresses at normal size; wrap (after the @) instead of cutting off ---------- */
.sd .sd-aline, .sd .sd-copytext { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; word-break: normal; }
.sd .sd-copyval { align-items: flex-start; }
.sd .sd-copyval .sd-ic { margin-top: 3px; flex-shrink: 0; }
@media (max-width: 520px) { .sd .sd-aline { font-size: 14.5px; } }
@media print {
	.sd { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.sd *, .sd *::before { transition: none !important; }
}
