.schools-directory, .sc-card { --sc-ink: #281738; --sc-muted: #625769; --sc-border: #e7dac9; --sc-paper: #fffdf8; color: var(--sc-ink); }
.schools-directory [id] { scroll-margin-top: 5rem; }
.sc-hero { background: linear-gradient(90deg,#22132f12 18%,#22132f74 48%,#22132ff5 80%),url('../img/schools-swing-budapest.webp') center 12% / cover #271634; color: #fff9ef; padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem); }
.sc-hero .shell { display: grid; grid-template-columns: minmax(0,1fr) minmax(0, .9fr); }
.sc-hero .shell > * { grid-column: 2; }
@media (max-width: 760px) {
    .sc-hero { background-position: 24% center; background-image: linear-gradient(180deg,#22132f08 0%,#22132f38 33%,#22132fee 66%,#22132f 100%),url('../img/schools-swing-budapest.webp'); padding-top: 13rem; }
    .sc-hero .shell { display: block; }
}
.sc-hero h1, .sc-profile h1 { font: 700 clamp(3rem,6.5vw,6rem)/.99 var(--display-font, "BagossCondensedFont", sans-serif); letter-spacing: -.055em; margin: 0 0 .9rem; max-width: 13ch; color: inherit; }
.sc-hero p { font-size: clamp(1.05rem,2vw,1.27rem); line-height: 1.6; max-width: 37rem; margin: 0; }
.sc-directory-results { position: relative; margin-top: -2rem; padding-bottom: clamp(3rem,7vw,6rem); }
.sc-search { display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; align-items: end; gap: .85rem; padding: 1.25rem; border: 1px solid var(--sc-border); border-radius: 1rem; background: var(--sc-paper); box-shadow: 0 12px 30px #24172f18; }
.sc-search label,.sc-review label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 700; color: var(--sc-muted); }
.sc-search :is(input,select),.sc-review :is(input,select,textarea) { box-sizing: border-box; width: 100%; min-height: 2.9rem; border: 1px solid #cdbed1; border-radius: .55rem; padding: .5rem .7rem; background: #fff; color: var(--sc-ink); font: inherit; }
.sc-directory-results h2,.sc-section h2,.sc-contact h2 { color: var(--sc-ink); font: 700 clamp(1.65rem,4vw,3rem)/1.06 var(--display-font, "BagossCondensedFont", sans-serif); letter-spacing: -.043em; margin: 1.7rem 0 1rem; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; }
.sc-card { background: var(--sc-paper); border: 1px solid var(--sc-border); border-radius: 1rem; padding: 1.15rem; display: grid; align-content: start; gap: .8rem; min-width: 0; }
.sc-card-identity,.sc-profile-id { display: flex; align-items: center; gap: .85rem; }
.sc-logo { display: block; object-fit: contain; padding: .45rem; background: #2e1c38; border-radius: .8rem; flex: none; }
.sc-card-identity p { margin: 0 0 .2rem; color: var(--sc-muted); font-size: .85rem; }
.sc-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.sc-card h3 a { color: inherit; }
.sc-rating { display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: center; font-size: .9rem; }
.sc-stars { display: inline-block; position: relative; font-size: 1.18rem; letter-spacing: .025em; color: #946716; white-space: nowrap; }
.sc-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #946716; }
.sc-rating a,.sc-link { color: #642f73; text-decoration: underline; text-underline-offset: .2em; font-weight: 650; }
.sc-styles { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.sc-styles li { background: #f0e5f1; padding: .28rem .6rem; border-radius: 99rem; color: #622c6b; font-size: .87rem; font-weight: 650; }
.sc-styles a { color: inherit; text-decoration: underline; text-underline-offset:.2em; }
.sc-profile { padding: 1.7rem 0 2.6rem; background: #f2e8f3; }
.sc-breadcrumb,.sc-profile-actions,.sc-jump .shell { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.sc-breadcrumb { margin-bottom: 1.6rem; font-size: .88rem; }
.sc-breadcrumb a,.sc-profile-id p a,.sc-jump a { color: #622c6b; }
.sc-profile h1 { max-width: none; margin: 0; font-size: clamp(2.35rem,6vw,4.25rem); }
.sc-profile-id p { margin: .45rem 0 0; }
.sc-profile .sc-rating,.sc-profile-actions { margin-top: 1rem; }
.sc-jump { border-block: 1px solid var(--sc-border); padding: .8rem 0; font-weight: 700; }
.sc-profile-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(13rem,19rem); gap: 2rem; padding-top: 1.5rem; padding-bottom: 4rem; }
.sc-section { padding-bottom: 2rem; border-bottom: 1px solid var(--sc-border); }
.sc-section p,.sc-contact p { line-height: 1.6; color: var(--sc-muted); }
.sc-contact { align-self: start; display: grid; gap: .6rem; border: 1px solid var(--sc-border); border-radius: 1rem; padding: 1.15rem; background: var(--sc-paper); margin-top: 1.6rem; }
.sc-contact h2 { font-size: 1.65rem; margin: 0; }
.sc-contact p { margin: 0; }
.sc-event,.sc-review { display: grid; gap: .45rem; padding: .9rem; background: var(--sc-paper); border-radius: .75rem; border: 1px solid var(--sc-border); margin-bottom: .6rem; }
.sc-event a { font-weight: 700; color: var(--sc-ink); }
.sc-event p,.sc-review h3 { margin: 0; }
.sc-opinion-stars { color: #946716; }
.sc-review { gap: .75rem; margin-top: 1rem; }
.sc-review button { justify-self: start; }
@media (max-width: 760px) {
    .sc-search,.sc-profile-grid { grid-template-columns: minmax(0,1fr); }
    .sc-profile-id .sc-logo { width: 68px; height: 68px; }
}

.sc-photo-credit { margin-top: 1.4rem; color: var(--sc-muted); font-size: .82rem; }
.sc-photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }

.sc-gallery { display: grid; grid-template: repeat(2, minmax(0, 1fr)) / 2fr 1fr; gap: .65rem; height: clamp(18rem, 38vw, 34rem); margin-top: 1.65rem; }
.sc-gallery a { display: block; min-width: 0; min-height: 0; border-radius: .85rem; overflow: hidden; background: #e9ddeb; }
.sc-gallery a:first-child { grid-row: span 2; }
.sc-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-gallery a:only-child { grid-column: 1 / -1; }
.sc-profile .sc-photo-credit { margin: .65rem 0 0; }
.sc-contact { overflow: hidden; padding: 0; gap: 0; box-shadow: 0 12px 30px #2b174310; }
.sc-contact-body { display: grid; gap: .8rem; padding: 1.35rem; }
.sc-contact-body .button { justify-self: start; }
.sc-map { display: block; border: 0; width: 100%; height: 15rem; background: #eae7dd; }
.sc-section .dd-event-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.sc-related { background: #eee4f0; padding: 1.4rem 0 3.5rem; }
.sc-review { background: #f2e8f3; padding: clamp(1rem, 3vw, 1.7rem); gap: 1rem; border-color: #ddcce2; }
.sc-review h3 { font: 700 1.5rem var(--display-font, "BagossCondensedFont", sans-serif); }
.sc-review p, .sc-review .sc-profile-actions { margin: 0; }
.sc-review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin: 0 0 1rem; }
.sc-review-summary strong { background: #efe2f0; border-radius: .75rem; padding: .5rem .8rem; font-size: 1.65rem; }
.sc-review-summary small { font-size: .9rem; }
.sc-review-status { padding: .75rem 1rem; background: #fff1c8; border-radius: .65rem; }
.sc-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .65rem; }
.sc-criteria fieldset { margin: 0; min-width: 0; padding: .3rem .65rem .65rem; border: 1px solid #ddcce2; border-radius: .65rem; background: var(--sc-paper); }
.sc-criteria legend { padding: 0 .3rem; font-weight: 700; }
.sc-star-picker { display: flex; width: max-content; max-width: 100%; }
.sc-star-picker label { position: relative; display: block; padding: .15rem .22rem; cursor: pointer; color: #796584; font-size: 1.4rem; }
.sc-star-picker input { position: absolute; opacity: 0; inset: 0; min-height: 0; height: 100%; margin: 0; cursor: pointer; }
.sc-star-picker label:has(input:checked), .sc-star-picker label:has(~ label input:checked) { color: #946716; }
.sc-star-picker label:has(input:focus-visible) { outline: 2px solid #642f73; outline-offset: 1px; border-radius: .25rem; }
@media (max-width: 760px) {
    .sc-gallery { grid-template: 2fr 1fr / 1fr 1fr; height: 20rem; }
    .sc-gallery a:first-child { grid-row: auto; grid-column: span 2; }
    .sc-contact { grid-row: 1; margin-top: 0; }
}


.sc-profile-hero { display: grid; gap: clamp(1.2rem, 4vw, 3.5rem); align-items: center; }
.sc-profile-photos { min-width: 0; }
.sc-profile-photos .sc-gallery { margin-top: 0; }
.sc-profile-photos .sc-gallery img { object-position: center 32%; }
@media (min-width: 901px) {
    .sc-profile-hero--gallery { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
    .sc-profile-photos .sc-gallery { height: clamp(19rem, 28vw, 31rem); }
}
@media (min-width: 761px) and (max-width: 900px) {
    .sc-profile-photos .sc-gallery { height: 22rem; }
}

.sc-suggest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 1.2rem; overflow: hidden; background: #2e1c38; color: #fff9ef; border-radius: 1.15rem; padding: clamp(1.5rem, 3.2vw, 3.25rem); margin-top: 2rem; }
.sc-suggest-copy { max-width: 36rem; }
.sc-directory-results .sc-suggest h2 { color: inherit; margin: 0; }
.sc-suggest p { color: #e7d7ed; max-width: 38ch; margin: .65rem 0 1.15rem; }
.sc-suggest-art { display: block; justify-self: center; width: 100%; height: clamp(10rem, 16vw, 16.5rem); object-fit: contain; }
@media (max-width: 600px) {
    .sc-suggest { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
    .sc-suggest-art { height: 9.5rem; justify-self: end; object-position: right center; }
}

.sc-follow-school { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: center; margin-top: 1rem; }
.sc-follow-school form, .sc-follow-school p { margin: 0; }
.sc-follow-school p { color: var(--sc-muted); font-size: .88rem; }
.sc-follow-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.85rem; padding: .55rem 1rem; border: 1px solid #673779; border-radius: 2rem; color: #fff; background: #673779; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.sc-follow-button:hover { background: #4d245d; color: #fff; }
.sc-follow-button:focus-visible { outline: 2px solid #673779; outline-offset: 3px; }
.sc-follow-button--active { background: #fffaf4; color: #563465; }

/* Official dark brand marks need a light ground for legibility. */
.sc-logo.sc-logo--light { background: #fffaf0; }
