/* Approved homepage. These styles remain scoped below the completed hero. */
.tss-home-main {
  --tss-home-ink: #203b49;
  --tss-home-muted: #5c686c;
  --tss-home-copper: #95583e;
  --tss-home-paper: #fffefa;
  --tss-home-line: #dcded6;
  color: var(--tss-home-ink);
  background: #f8f7f2;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.tss-home-sections { width: min(calc(100% - 40px), var(--tss-content-width, 1360px)); margin-inline: auto; padding-top: 0; }
.tss-home-section { margin: 0 0 clamp(48px, 5.6vw, 76px); scroll-margin-top: 28px; }
.tss-home-section:last-child { margin-bottom: 0; }
.tss-home-section__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.tss-home-section h2 { margin: 0; color: var(--tss-home-ink); font-size: clamp(27px, 2.7vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
.tss-home-section__header p { margin: 10px 0 0; color: var(--tss-home-muted); font-size: 16px; line-height: 1.65; }
.tss-home-eyebrow, .tss-section-kicker { display: block; margin: 0 0 12px; color: var(--tss-home-copper); font-size: 11px; line-height: 1.4; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.tss-home-main .tss-home-text-link { display: inline-flex; gap: 10px; align-items: center; padding-block: 8px; color: var(--tss-home-copper); font-size: 14px; font-weight: 600; text-decoration: none; }
.tss-home-main .tss-home-text-link:hover { color: var(--tss-home-copper); text-decoration: underline; }
.tss-home-main [hidden] { display: none !important; }
.tss-home-icon { display: block; width: 80px; height: 80px; color: currentColor; }
.tss-home-icon__accent { stroke: var(--tss-home-copper); }
.tss-home-text-link .tss-home-icon, .tss-home-button .tss-home-icon, .tss-school-shortcut .tss-home-icon, .tss-guide-card__link .tss-home-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.tss-school-shortcut { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 12px; min-height: 66px; margin: 0 0 clamp(36px, 4vw, 56px); padding: 18px 0; border-bottom: 1px solid #e4e3dc; color: var(--tss-home-muted); font-size: 14px; line-height: 1.5; }
.tss-school-shortcut a { display: inline-flex; align-items: center; gap: 8px; color: var(--tss-home-copper); font-weight: 600; text-decoration: none; }
.tss-school-shortcut a:hover { text-decoration: underline; }
.tss-home-sections > .tss-home-section:first-child { padding-top: 48px; }
.tss-curriculum-bar { margin: 0 0 28px; padding: 0; }
.tss-curriculum-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tss-curriculum-choices .tss-curriculum-card { position: relative; display: flex; align-items: flex-start; gap: 18px; min-width: 0; min-height: 164px; padding: 24px 22px; border: 1px solid #e4e1db; border-radius: 10px; color: var(--tss-home-ink); background: #fffefd; box-shadow: 0 3px 9px rgba(32, 59, 73, .065); text-align: left; font-family: inherit; cursor: pointer; transform: translateY(0); transition: transform 320ms cubic-bezier(.22, .61, .36, 1), box-shadow 320ms ease, border-color 320ms ease; }
.tss-curriculum-choices .tss-curriculum-card--ib { background: #eff9ff; border-color: #e3edf2; }
.tss-curriculum-choices .tss-curriculum-card--cambridge { background: #a2ffae; border-color: #9af2a5; }
.tss-curriculum-choices .tss-curriculum-card--ap { background: #ffb0c8; border-color: #f2a7be; }
.tss-curriculum-card__icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; color: #e1b284; background: radial-gradient(circle at 23% 18%, #547080, #173c50 53%, #082033); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 1px 2px rgba(13, 36, 50, .12); }
.tss-curriculum-card--cambridge .tss-curriculum-card__icon { color: #fff1dd; background: radial-gradient(circle at 23% 18%, #e99b5e, #c15b2e 55%, #923e24); }
.tss-curriculum-card__icon .tss-home-icon { width: 43px; height: 43px; stroke-width: 2.5; }
.tss-curriculum-card__icon .tss-home-icon__accent { stroke: #dd9562; }
.tss-curriculum-card--cambridge .tss-home-icon__accent { stroke: #fff1dd; }
.tss-curriculum-card__copy { display: flex; flex-direction: column; align-self: stretch; flex: 1; min-width: 0; }
.tss-curriculum-card__title { display: block; padding-right: 5px; font-size: 18px; line-height: 1.35; font-weight: 650; overflow-wrap: break-word; }
.tss-curriculum-card__availability { display: inline-flex; align-self: flex-start; max-width: 100%; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; line-height: 1.4; font-weight: 650; }
.tss-curriculum-card__availability--available { color: #24553b; background: #e4f0e8; }
.tss-curriculum-card__availability--upcoming { color: #704c32; background: #f5eadf; }
.tss-curriculum-card__description { display: block; margin-top: 8px; padding-right: 12px; color: #52616a; font-size: 13px; line-height: 1.6; }
.tss-curriculum-card--ap .tss-curriculum-card__description { color: #46525a; }
.tss-curriculum-card__footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: auto; padding-top: 9px; }
.tss-curriculum-card__count { margin-right: auto; padding: 5px 8px; border-radius: 5px; color: #46525a; background: #f3ece4; font-size: 11px; line-height: 1.4; }
.tss-curriculum-card__chevron { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: #596b74; }
.tss-curriculum-choices .tss-curriculum-card[aria-pressed="true"] { transform: translateY(-4px); border-color: #a86c4d; box-shadow: 0 10px 24px rgba(32, 59, 73, .13), inset 0 0 0 1px rgba(168, 108, 77, .15); }
.tss-curriculum-card[aria-pressed="true"] .tss-curriculum-card__count { background: #eee0d1; color: #66412d; }
.tss-curriculum-card[aria-pressed="true"] .tss-curriculum-card__chevron { color: #95583e; transform: rotate(90deg); }
@media (any-hover: hover) {
  .tss-curriculum-choices .tss-curriculum-card:hover { transform: translateY(-4px); border-color: #c4b3a5; box-shadow: 0 12px 28px rgba(32, 59, 73, .16); }
  .tss-curriculum-choices .tss-curriculum-card[aria-pressed="true"]:hover { transform: translateY(-7px); border-color: #a86c4d; box-shadow: 0 15px 32px rgba(32, 59, 73, .18), inset 0 0 0 1px rgba(168, 108, 77, .2); }
}
.tss-curriculum-choices .tss-curriculum-card:not(:disabled):focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(32, 59, 73, .16); }
.tss-curriculum-choices .tss-curriculum-card[aria-pressed="true"]:not(:disabled):focus-visible { transform: translateY(-7px); box-shadow: 0 15px 32px rgba(32, 59, 73, .18), inset 0 0 0 1px rgba(168, 108, 77, .2); }
.tss-curriculum-choices .tss-curriculum-card:not(:disabled):active, .tss-curriculum-choices .tss-curriculum-card[aria-pressed="true"]:not(:disabled):active { transform: translateY(-1px); }
.tss-browser-subjects-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.tss-browser-subjects-header h3 { margin: 0; color: var(--tss-home-ink); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.tss-browser-prompt { margin: 0; color: var(--tss-home-muted); font-size: 14px; line-height: 1.6; }
.tss-resource-browser:focus-visible { outline: 2px solid var(--tss-home-copper); outline-offset: 12px; }
.tss-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.tss-home-main .tss-subject-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; align-items: center; gap: 8px; min-width: 0; min-height: 104px; padding: 16px 18px; border: 1px solid var(--tss-home-line); border-radius: 7px; background: var(--tss-home-paper); color: var(--tss-home-ink); text-decoration: none; box-shadow: 0 3px 9px rgba(32, 59, 73, .065); transform: translateY(0); transition: transform 320ms cubic-bezier(.22, .61, .36, 1), box-shadow 320ms ease, border-color 320ms ease; }
/* Left-side artwork fades into the editable card colour, behind the copy layer. */
.tss-subject-card__art { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; border-radius: inherit; pointer-events: none; opacity: var(--tss-subject-art-opacity, .34); background-repeat: no-repeat; background-size: auto 180%; background-position: left center; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 22%, rgba(0, 0, 0, .16) 48%, transparent 68%); mask-image: linear-gradient(to right, #000 0%, #000 22%, rgba(0, 0, 0, .16) 48%, transparent 68%); }
.tss-subject-card--biology .tss-subject-card__art { background-image: url("images/optimized/subject-bg-biology-left.webp"); }
.tss-subject-card--chemistry .tss-subject-card__art { background-image: url("images/optimized/subject-bg-chemistry-left.webp"); }
.tss-subject-card--physics .tss-subject-card__art { background-image: url("images/optimized/subject-bg-physics-left.webp"); }
.tss-subject-card--environment .tss-subject-card__art { background-image: url("images/optimized/subject-bg-environment-left.webp"); }
.tss-subject-card--sport .tss-subject-card__art { background-image: url("images/optimized/subject-bg-sport-left.webp"); }
.tss-subject-card--tok .tss-subject-card__art { background-image: url("images/optimized/subject-bg-tok-left.webp"); }
/* Align the title with the right inset; the arrow gets its own row so long titles can wrap. */
.tss-subject-card__copy { position: relative; z-index: 1; min-width: 0; padding-left: clamp(60px, 25%, 100px); text-align: right; }
.tss-subject-card h4 { margin: 0; color: var(--tss-home-ink); font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; overflow-wrap: break-word; }
.tss-subject-card__chevron { position: relative; z-index: 1; justify-self: end; width: 17px; height: 17px; color: #526975; }
.tss-subject-card__availability { display: block; margin-top: 4px; color: #68716b; font-size: 11px; line-height: 1.4; }
@media (any-hover: hover) {
  .tss-home-main .tss-subject-grid .tss-subject-card:hover { color: var(--tss-home-ink); transform: translateY(-4px); border-color: #c4b3a5; box-shadow: 0 12px 28px rgba(32, 59, 73, .16); }
}
.tss-home-main .tss-subject-grid a.tss-subject-card:focus-visible { transform: translateY(-4px); border-color: #c4b3a5; box-shadow: 0 12px 28px rgba(32, 59, 73, .16); }
.tss-home-main .tss-subject-grid a.tss-subject-card:active { transform: translateY(-1px); }
.tss-subject-card.is-unavailable { background: #f5f5ef; }
.tss-free-feature { display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(30px, 4.5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px); background: #edf0e9; border: 1px solid #dce2d8; border-radius: 10px; }
.tss-free-feature__visual { position: relative; min-width: 0; margin: 0; padding: 18px 16px 10px; background: #e3e8df; border-radius: 6px; }
.tss-free-feature__visual img { display: block; width: 100%; max-height: 330px; object-fit: contain; height: auto; margin-inline: auto; filter: drop-shadow(0 7px 9px rgba(32, 59, 73, .1)); }
.tss-free-feature--placeholder .tss-free-feature__visual { background: transparent; }
.tss-free-feature__enlarge { display: block; border-radius: 3px; }
.tss-free-feature__badge { position: absolute; z-index: 1; top: -10px; left: 14px; padding: 6px 10px; background: #fffefa; color: #567063; border: 1px solid #d2dbd0; border-radius: 4px; font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .07em; }
.tss-free-feature__visual figcaption { margin-top: 12px; color: #53665c; text-align: center; font-size: 11px; line-height: 1.5; }
.tss-free-feature__zoom-hint { display: block; margin-top: 4px; color: #49675b; text-decoration: underline; }
.tss-free-feature__copy { min-width: 0; }
.tss-free-feature h2 { max-width: 16ch; font-size: clamp(28px, 3vw, 38px); }
.tss-free-feature__intro { margin: 16px 0 20px; font-size: 16px; color: var(--tss-home-muted); line-height: 1.65; }
.tss-free-feature__resource { padding-top: 18px; margin-bottom: 24px; border-top: 1px solid #cfd8cb; }
.tss-free-feature__subject { display: block; margin-bottom: 6px; color: #506a5d; font-size: 12px; font-weight: 600; }
.tss-free-feature h3 { margin: 0; color: var(--tss-home-ink); font-size: 20px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.tss-free-feature__resource p, .tss-free-feature__placeholder-note { margin: 10px 0 0; color: var(--tss-home-muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.tss-free-feature__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.tss-free-feature__actions:empty { display: none; }
.tss-home-main .tss-home-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; max-width: 100%; padding: 13px 21px; color: #fffefa; background: #294b55; border: 1px solid #294b55; border-radius: 5px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background-color 160ms ease; }
.tss-home-main .tss-home-button:hover { background: #203b49; color: #fffefa; }
.tss-home-main .tss-home-button:disabled { color: #fff; background: #697f86; border-color: #697f86; cursor: default; }
.tss-school-finder { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; gap: 36px; min-height: 246px; padding: 32px 36px; background: linear-gradient(105deg, #eaf4f8, #e6f1f7 64%, #eaf4f8); border: 1px solid #e0edf2; border-radius: 9px; }
.tss-school-finder__copy { min-width: 0; align-self: center; }
.tss-school-finder h2 { max-width: none; color: #12334c; font-size: clamp(24px, 2.25vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
.tss-school-finder__copy > p.tss-home-intro { margin: 9px 0 20px; color: #516977; font-size: 16px; line-height: 1.6; }
.tss-school-search { display: flex; align-items: stretch; gap: 11px; margin-top: 0; }
.tss-school-search__field { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid #d6e2e9; border-radius: 5px; background: #fff; color: #34556a; box-shadow: 0 2px 6px rgba(35, 68, 87, .045); font-family: inherit; font-size: 14px; line-height: 1.5; }
.tss-school-search__field > svg { width: 21px; height: 25px; flex: 0 0 21px; color: #5a7c91; }
.tss-school-search__field > input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.5; }
.tss-school-search__field > input:disabled { color: #718792; opacity: 1; }
.tss-school-search__field > input::placeholder { color: #718792; opacity: 1; }
.tss-school-finder .tss-school-search .tss-home-button { flex: 0 0 auto; min-width: 154px; padding-inline: 20px; white-space: nowrap; background: #234f66; border-color: #3f6b81; }
.tss-school-finder .tss-school-search .tss-home-button:hover { background: #1b4156; }
.tss-school-finder .tss-school-search .tss-home-button:disabled { background: #486b7e; border-color: #597e92; color: #fff; cursor: default; }
.tss-preparation-note { margin: 9px 0 0; color: #607582; font-size: 12px; line-height: 1.6; }
.tss-school-finder__links { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 0; margin-top: 17px; }
.tss-school-finder__links > a, .tss-school-finder__link-pending { display: inline-flex; align-items: center; gap: 10px; color: #a2623e; font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.tss-school-finder__links > * + * { margin-left: 19px; padding-left: 19px; border-left: 1px solid #94acba; }
.tss-school-finder__links > a:hover { text-decoration: underline; }
.tss-school-finder__links span[aria-hidden="true"] { font-size: 21px; line-height: 1; font-weight: 400; }
.tss-school-finder__link-pending { color: #8d694f; cursor: default; }
.tss-school-finder__visual { position: relative; display: flex; align-items: flex-end; min-width: 0; min-height: 182px; padding: 0 0 18px 35px; isolation: isolate; }
.tss-school-finder__visual::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 0; width: 1px; background: #c6dbe7; }
.tss-school-finder__visual > .tss-school-finder__map { position: absolute; z-index: -1; top: -24px; right: -24px; width: calc(100% + 12px); height: calc(100% + 50px); max-width: none; object-fit: contain; object-position: right center; opacity: .76; pointer-events: none; }
.tss-school-finder__visual .tss-school-finder__description { max-width: 36ch; margin: 0; color: #496576; font-size: 14px; line-height: 1.75; overflow-wrap: break-word; }
.tss-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tss-guide-card { overflow: hidden; min-width: 0; background: #fffefa; border: 1px solid #e2e1d9; border-radius: 8px; }
.tss-guide-card__image { display: block; width: 100%; aspect-ratio: 1.85; background-color: #e7ebe4; background-size: 300% auto; background-repeat: no-repeat; }
.tss-guide-card__image img { display: block; width: 100%; height: 100%; aspect-ratio: 1.85; object-fit: cover; }
.tss-guide-card__copy { padding: 23px; }
.tss-guide-card__label { display: block; margin-bottom: 10px; color: #79634f; font-size: 10px; font-weight: 600; line-height: 1.45; letter-spacing: .065em; text-transform: uppercase; }
.tss-guide-card h3 { margin: 0 0 12px; color: var(--tss-home-ink); font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; overflow-wrap: break-word; }
.tss-guide-card h3 a { color: inherit; text-decoration: none; }
.tss-guide-card h3 a:hover { text-decoration: underline; }
.tss-guide-card__copy p { margin: 0 0 14px; color: var(--tss-home-muted); font-size: 14px; line-height: 1.65; }
.tss-guide-card__link { display: inline-flex; align-items: center; gap: 9px; padding-block: 5px; color: var(--tss-home-copper); font-size: 14px; font-weight: 600; text-decoration: none; }
.tss-guide-card__link:hover { text-decoration: underline; }
.tss-home-about { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; padding-top: 32px; border-top: 1px solid var(--tss-home-line); }
.tss-home-about h2 { font-size: clamp(24px, 2.2vw, 30px); }
.tss-home-about__copy p { margin: 0 0 10px; color: var(--tss-home-muted); font-size: 14px; line-height: 1.75; }
.tss-home-main :is(a, button, input):focus-visible { outline: 3px solid #95583e; outline-offset: 5px; }
@media (max-width: 1060px) {
  .tss-curriculum-choices { gap: 14px; }
  .tss-curriculum-choices .tss-curriculum-card { gap: 12px; padding: 20px 16px; }
  .tss-curriculum-card__icon { width: 48px; height: 48px; flex-basis: 48px; }
  .tss-curriculum-card__icon .tss-home-icon { width: 36px; height: 36px; }
  .tss-curriculum-card__title { font-size: 16px; }
  .tss-school-finder { gap: 26px; padding: 28px; }
  .tss-school-finder__visual { padding-left: 24px; }
  .tss-school-finder .tss-school-search .tss-home-button { min-width: 124px; padding-inline: 13px; }
  .tss-guide-card__copy { padding: 20px; }
  .tss-guide-card h3 { font-size: 18px; }
}
@media (max-width: 900px) {
  .tss-home-main .tss-subject-card { padding: 14px; gap: 8px; }
  .tss-subject-grid { gap: 12px; }
  .tss-subject-card h4 { font-size: 15px; }
  .tss-free-feature { gap: 28px; padding: 28px; }
  .tss-home-about { gap: 36px; }
  .tss-guide-grid { gap: 16px; }
}
@media (max-width: 767px) {
  .tss-home-sections { width: min(calc(100% - 28px), var(--tss-content-width, 1360px)); }
}
@media (max-width: 760px) {
  .tss-curriculum-choices { grid-template-columns: 1fr; gap: 12px; }
  .tss-curriculum-choices .tss-curriculum-card { align-items: center; gap: 18px; min-height: 116px; padding: 20px 22px; }
  .tss-curriculum-card__icon { width: 54px; height: 54px; flex-basis: 54px; }
  .tss-curriculum-card__title { font-size: 18px; }
  .tss-curriculum-card__description { margin-top: 5px; padding-right: 22px; }
  .tss-curriculum-card__footer { padding-top: 0; }
  .tss-curriculum-card__chevron { position: absolute; right: 20px; top: calc(50% - 9px); }
  .tss-curriculum-card__count { margin-top: 8px; }
  .tss-browser-subjects-header, .tss-home-section__header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .tss-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tss-free-feature { grid-template-columns: 1fr; gap: 30px; }
  .tss-free-feature__visual { max-width: 430px; width: 100%; margin-inline: auto; }
  .tss-free-feature__visual img { max-height: 280px; }
  .tss-free-feature h2 { max-width: none; }
  .tss-school-finder { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .tss-school-finder__visual { min-height: 185px; padding: 35px 0 15px; align-items: center; }
  .tss-school-finder__visual::before { top: 0; bottom: auto; width: 100%; height: 1px; }
  .tss-school-finder__visual > .tss-school-finder__map { top: 12px; right: -10px; width: 74%; height: calc(100% - 8px); }
  .tss-school-finder__visual .tss-school-finder__description { max-width: 30ch; }
  .tss-guide-grid { grid-template-columns: 1fr; gap: 22px; }
  .tss-guide-card { display: block; }
  .tss-guide-card__image { aspect-ratio: 1.85; }
  .tss-home-about { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .tss-school-shortcut { font-size: 13px; }
  .tss-home-section__header p { font-size: 15px; }
  .tss-curriculum-choices .tss-curriculum-card { gap: 14px; padding-inline: 18px; }
  .tss-curriculum-card__title { padding-right: 14px; font-size: 16px; }
  .tss-subject-grid { grid-template-columns: minmax(0, 1fr); }
  .tss-home-main .tss-subject-card { min-height: 92px; padding: 15px 18px; }
  .tss-free-feature, .tss-school-finder { padding: 26px 20px; }
  .tss-free-feature .tss-home-button { width: 100%; }
  .tss-school-search { flex-wrap: wrap; }
  .tss-school-search__field { flex-basis: 100%; }
  .tss-school-finder .tss-school-search .tss-home-button { width: 100%; }
  .tss-school-finder__links { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tss-school-finder__links > * + * { margin-left: 0; padding-left: 0; border-left: 0; }
  .tss-school-finder__visual > .tss-school-finder__map { width: calc(100% + 10px); right: -6px; opacity: .56; }
  .tss-school-finder__visual .tss-school-finder__description { max-width: 28ch; }
  .tss-guide-card { display: block; }
  .tss-guide-card__image { aspect-ratio: 1.85; min-height: 0; }
  .tss-guide-card__copy { padding: 23px; }
}
/* Keep space for left artwork and longer subject titles. */
@media (max-width: 980px) {
  .tss-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .tss-subject-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .tss-subject-card__art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tss-home-main .tss-subject-card, .tss-curriculum-choices .tss-curriculum-card, .tss-home-main .tss-home-button { transition: none; }
  .tss-home-main .tss-subject-grid .tss-subject-card:is(:hover, :focus-visible, :active), .tss-home-main .tss-subject-grid a.tss-subject-card:is(:hover, :focus-visible, :active) { transform: none; }
  .tss-curriculum-choices .tss-curriculum-card:is(:hover, :focus-visible, :active), .tss-curriculum-choices .tss-curriculum-card:not(:disabled):is(:hover, :focus-visible, :active), .tss-curriculum-choices .tss-curriculum-card[aria-pressed="true"], .tss-curriculum-choices .tss-curriculum-card[aria-pressed="true"]:not(:disabled):is(:hover, :focus-visible, :active) { transform: none; }
}

/* Free resources: real catalogue cards, rather than a sample-preview promotion. */
.tss-free-library { padding:clamp(16px,2vw,24px); background:#edf0e9; border:0; border-radius:12px; }
.tss-free-library__header { max-width:760px; margin-bottom:28px; }
.tss-free-library__header h2 { margin:8px 0 12px; font-size:clamp(28px,3vw,38px); }
.tss-free-library__header p,.tss-free-library__empty { color:var(--tss-home-muted); line-height:1.65; }
.tss-free-library__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.tss-free-card { min-width:0; background:#fff; border:0; border-radius:10px; overflow:hidden; box-shadow:0 6px 18px rgba(32,59,73,.08); transition:transform .18s ease,box-shadow .18s ease; display:flex; flex-direction:column; }
.tss-free-card:hover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(32,59,73,.14); }
.tss-free-card__cover { position:relative; display:flex; align-items:center; justify-content:center; height:150px; padding:0; border:0; background:transparent; color:#294b55; text-decoration:none; }
.tss-free-card__cover img { display:block; width:100%; height:100%; min-height:0; max-height:150px; border:0; box-shadow:none; object-fit:contain; }
.tss-free-card__badge { position:absolute; top:12px; left:12px; background:#fff; color:#365b49; padding:5px 10px; border-radius:4px; font-size:12px; font-weight:700; letter-spacing:.07em; }
.tss-free-card__body { display:flex; flex-direction:column; flex:1; align-items:flex-start; padding:12px; }
.tss-free-card__body h3 { margin:0 0 8px; font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.tss-free-card__body h3 a { color:var(--tss-home-ink); text-decoration:none; }
.tss-free-card__body p { margin:0 0 10px; color:var(--tss-home-muted); font-size:13px; line-height:1.45; }
.tss-free-card__body .tss-free-card__subject { margin-bottom:8px; color:#506a5d; font-size:12px; font-weight:600; }
.tss-free-card__link { margin-top:auto; }
.tss-free-library__more { margin-top:26px; }
.tss-free-library__more summary { width:fit-content; cursor:pointer; font-weight:600; padding:12px 0; color:var(--tss-home-ink); }
.tss-free-library__more[open] summary { margin-bottom:18px; }
.tss-free-library a:focus-visible,.tss-free-library summary:focus-visible { outline:3px solid #95583e; outline-offset:4px; }
@media(max-width:1100px) { .tss-free-library__grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:800px) { .tss-free-library__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:380px) { .tss-free-library__grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .tss-free-card { transition:none; } .tss-free-card:hover { transform:none; } }

.tss-free-card__editor { font-size: 0.85rem; color: #526579; }
.tss-free-card__editor a { text-decoration: underline; }

/* Compact cards keep readable type and keyboard focus without a dark cover frame. */
.tss-home-main .tss-free-card__link { min-height:44px; padding:8px 12px; gap:8px; font-size:13px; }
.tss-free-card__body > p:not(.tss-free-card__editor):not(.tss-free-card__subject) { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.tss-free-card__cover:not(:focus-visible) { outline:0; box-shadow:none; }

/* Free resources: compact horizontal shelf matching the resource strip. */
.tss-free-library { background:transparent; padding:12px 36px; border:0; }
.tss-free-library__header { position:relative; max-width:none; padding-right:210px; margin-bottom:14px; }
.tss-free-library__header h2 { font-size:25px; margin:0 0 4px; }
.tss-free-library__header p { font-size:14px; margin:0; }
.tss-free-view-all { position:absolute; right:0; top:10px; border:0; background:none; color:#aa4e27; font:inherit; font-size:14px; cursor:pointer; }
.tss-free-rail { position:relative; }
.tss-free-library__grid { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 64px)/5); grid-template-columns:none; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 2px 10px; scrollbar-width:thin; }
.tss-free-card { scroll-snap-align:start; border:1px solid #e5e0da; border-radius:10px; box-shadow:0 2px 6px #203b4910; }
.tss-free-card__cover { height:100px; background:#f0efeb; border-radius:9px 9px 0 0; }
.tss-free-card__cover img { max-height:100px; object-fit:contain; }
.tss-free-card__badge { top:7px; left:8px; padding:3px 6px; background:#b24c20; color:#fff; border-radius:3px; font-size:10px; letter-spacing:0; }
.tss-free-card__body { padding:9px 10px; }
.tss-free-card__body h3 { order:0; font-size:14px; line-height:1.3; margin-bottom:6px; }
.tss-free-card__body .tss-free-card__subject { order:1; font-size:11px; font-weight:400; margin-bottom:5px; }
.tss-free-card__body .tss-free-card__editor { order:3; font-size:11px; margin:6px 0 0; }
.tss-home-main .tss-free-card__link { order:2; background:none; border:0; color:#263e50; padding:4px 0; min-height:30px; font-size:12px; font-weight:600; justify-content:flex-start; }
.tss-home-main .tss-free-card__link:hover { color:#aa4e27; background:none; text-decoration:underline; }
.tss-free-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; border:0; width:30px; height:30px; padding:0; border-radius:50%; background:#06263b; color:white; font-size:27px; line-height:1; cursor:pointer; }
.tss-free-prev { left:-34px; }.tss-free-next { right:-34px; }
.tss-free-arrow:disabled { opacity:.35; cursor:default; }
.tss-free-dots { display:flex; justify-content:center; flex-wrap:wrap; gap:2px; }
.tss-free-dot { width:20px; height:24px; padding:0; border:0; background:transparent; cursor:pointer; }
.tss-free-dot::after { content:''; display:block; margin:auto; width:7px; height:7px; border-radius:50%; background:#d0cbc5; }
.tss-free-dot[aria-current="true"]::after { background:#b24c20; }
.tss-free-library [hidden] { display:none; }
.tss-free-library.is-expanded .tss-free-library__grid { grid-auto-flow:row; grid-template-columns:repeat(5,minmax(0,1fr)); overflow:visible; }
.tss-free-library.is-expanded .tss-free-arrow,.tss-free-library.is-expanded .tss-free-dots { display:none; }
@media(max-width:1100px) { .tss-free-library__grid { grid-auto-columns:calc((100% - 48px)/4); }.tss-free-library.is-expanded .tss-free-library__grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:850px) { .tss-free-library__grid { grid-auto-columns:calc((100% - 32px)/3); }.tss-free-library.is-expanded .tss-free-library__grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:620px) { .tss-free-library__grid { grid-auto-columns:calc((100% - 16px)/2); }.tss-free-library.is-expanded .tss-free-library__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.tss-free-library__header { padding-right:0; }.tss-free-view-all { position:static; padding:8px 0 0; } }
@media(max-width:380px) { .tss-free-library__grid { grid-auto-columns:85%; }.tss-free-library.is-expanded .tss-free-library__grid { grid-template-columns:1fr; } }

/* Equal image areas keep mixed portrait and landscape covers aligned. */
.tss-free-library .tss-free-card { display:flex; align-items:stretch; justify-content:flex-start; background:transparent; border:0; border-radius:0; box-shadow:none; overflow:visible; }
.tss-free-library .tss-free-card:hover { box-shadow:none; transform:translateY(-3px); }
.tss-free-library .tss-free-card__cover { display:flex; flex:0 0 240px; align-items:center; justify-content:center; width:100%; max-width:100%; height:240px; margin:0; padding:12px; border:0; border-radius:8px; background:rgba(255,255,255,.32); box-shadow:none; }
.tss-free-library .tss-free-card__cover img { display:block; width:auto; max-width:100%; height:auto; max-height:100%; object-fit:contain; border:0; border-radius:0; }
.tss-free-library .tss-free-card__badge { top:8px; left:8px; background:#bc382e; color:#fff; font-size:11px; font-weight:700; padding:5px 8px; border-radius:3px; }
.tss-free-library .tss-free-card__cover > span:not(.tss-free-card__badge) { display:block; padding:48px 12px 20px; font-size:14px; }
.tss-free-library .tss-free-card__caption { margin:14px 0 0; padding:0 2px; font-size:14px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
.tss-free-library .tss-free-card__caption a { color:#203b49; text-decoration:none; }
.tss-free-library .tss-free-card__caption a:hover { color:#aa4e27; text-decoration:underline; }
.tss-free-library .tss-free-card a:focus-visible { outline:3px solid #0876b9; outline-offset:4px; }
.tss-free-library .tss-free-library__grid { align-items:start; }

/* Reuse the former map section blue, with more distinct cover shadows. */
.tss-home-section.tss-free-library { padding:28px 40px; background:linear-gradient(105deg, #eaf4f8, #e6f1f7 64%, #eaf4f8); border:1px solid #e0edf2; border-radius:22px; box-shadow:0 5px 16px rgba(32,59,73,.10); }
.tss-free-library .tss-free-card__cover img { box-shadow:0 7px 14px rgba(16,40,57,.26),0 2px 4px rgba(16,40,57,.14); transition:box-shadow .18s ease; }
.tss-free-library .tss-free-card__cover:hover img { box-shadow:0 10px 19px rgba(16,40,57,.32),0 3px 5px rgba(16,40,57,.16); }
.tss-free-library .tss-free-library__grid { padding-top:6px; padding-bottom:24px; }
@media(prefers-reduced-motion:reduce) { .tss-free-library .tss-free-card__cover img { transition:none; } }

/* Match the featured heading to the theme's other section headings. */
body.home .tssfc.tssfc--reference .tssfc__header h2 { font-family:"Segoe UI", Aptos, Arial, sans-serif; font-weight:600; }

/* The carousel sample remains readable without leaving the home page. */
.tssfc .tss-featured-sample-link { display:block; color:#294b55; text-align:center; text-decoration:none; cursor:zoom-in; }
.tssfc .tss-featured-sample-link span { display:block; padding:10px 8px 2px; font:600 14px/1.4 "Segoe UI", Aptos, Arial, sans-serif; text-decoration:underline; text-underline-offset:3px; }
.tssfc .tss-featured-sample-link:focus-visible { outline:3px solid #0876b9; outline-offset:4px; }
.tss-featured-zoom { width:min(960px,calc(100vw - 32px)); max-width:calc(100vw - 32px); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:18px; border:0; border-radius:12px; background:#fff; color:#203b49; box-shadow:0 20px 70px #0006; font:15px/1.5 "Segoe UI", Aptos, Arial, sans-serif; overflow:auto; }
.tss-featured-zoom::backdrop { background:rgba(6,29,43,.78); }
.tss-featured-zoom__header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.tss-featured-zoom__title { margin:0; font-weight:600; }
.tss-featured-zoom__close { flex:none; min-width:44px; min-height:44px; padding:8px 14px; border:1px solid #d6e2e9; border-radius:6px; background:#f4f7f8; color:#203b49; cursor:pointer; font:inherit; }
.tss-featured-zoom__image { display:block; width:auto; height:auto; max-width:100%; max-height:calc(100vh - 190px); max-height:calc(100dvh - 190px); margin:0 auto; object-fit:contain; }
.tss-featured-zoom__original { display:block; width:fit-content; margin:14px auto 0; color:#294b55; text-decoration:underline; }
.tss-featured-zoom a:focus-visible,.tss-featured-zoom button:focus-visible { outline:3px solid #0876b9; outline-offset:3px; }
@media(max-width:620px) { .tss-featured-zoom { width:calc(100vw - 20px); max-width:calc(100vw - 20px); padding:12px; }.tss-free-library .tss-free-card__cover { height:200px; flex-basis:200px; padding:10px; } }
