/* Responsive layouts: content determines height; images retain a useful frame. */
@media(max-width:800px){
 main>section.site-top-banner,main>section.uniform-top-banner.uniform-top-banner,main>section.hero.directory-hero.uniform-top-banner{height:auto!important;min-height:0!important;max-height:none!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto 220px!important;overflow:hidden!important}
 main>section.site-top-banner>.site-banner-copy,main>section.uniform-top-banner.uniform-top-banner>.uniform-banner-copy,main>section.hero.directory-hero>.hero-copy{grid-column:1!important;grid-row:1!important;padding:26px 7%!important;align-self:center!important;min-width:0!important;transform:none!important}
 main>section.site-top-banner>:is(.uniform-banner-media,.grade-five-preview,.tuition-banner-image-space,.about-banner-photo,.fees-banner-photo),main>section.hero.directory-hero>.uniform-banner-media{grid-column:1!important;grid-row:2!important;width:100%!important;height:220px!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;align-self:stretch!important;position:relative!important}
 main>section.site-top-banner:after{display:none!important}
 .site-top-banner .site-banner-copy h1,.directory-hero .hero-welcome-group h1{font-size:clamp(28px,6vw,36px)!important;line-height:1.18!important;white-space:normal!important;letter-spacing:-.6px!important;margin:12px 0!important}
 .site-top-banner .site-banner-subtitle,.directory-hero .hero-progression{font-size:19px!important;line-height:1.4!important;margin:0!important}
 .site-top-banner .eyebrow,.directory-hero .eyebrow{font-size:10px!important;line-height:1.6!important;letter-spacing:1px!important;white-space:normal!important}
 .site-top-banner .chutney-banner-photo{background:#c2c2c2!important}
 .site-top-banner .chutney-banner-photo img{object-view-box:none!important;object-fit:cover!important;object-position:right 28%!important}
 main>section.site-top-banner.first-steps-hero{grid-template-columns:minmax(0,38fr) minmax(0,62fr)!important;grid-template-rows:auto 190px!important}
 main>section.site-top-banner.first-steps-hero>.site-banner-copy{grid-column:1/-1!important;grid-row:1!important}
 main>section.site-top-banner.first-steps-hero>.audio-banner-chutney{grid-column:1!important;grid-row:2!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:8px!important;box-sizing:border-box!important;transform:none!important}
 main>section.site-top-banner.first-steps-hero>.first-steps-covers{grid-column:2!important;grid-row:2!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:right center!important;margin:0!important;padding:8px 0!important;box-sizing:border-box!important}
 #instruments-taught .schools-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 16px!important;overflow:visible!important}
 .related-pages-banner a{white-space:normal;overflow-wrap:break-word}
 .btn,.audio-set-download,.printable-download{box-sizing:border-box;max-width:100%;white-space:normal!important;line-height:1.4!important;text-align:center}
 .standard-page-body :is(h2,h3){overflow-wrap:break-word}
 .contact,.contact>*,.contact form,.form-grid,.form-grid>*{min-width:0;max-width:100%}
 input,select,textarea{box-sizing:border-box;max-width:100%;font-size:16px!important}
 #contact .contact-title h2 span,#contact .contact-phone-line{white-space:normal!important}
 .answers-page .audio-set{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;justify-items:center!important}
 .answers-page .audio-set>*{grid-column:1!important;justify-self:center!important;max-width:100%!important}
 .answers-page .audio-set>.answers-actions{display:contents!important}
 .answers-page .answers-actions>a{grid-column:1!important;justify-self:center!important;margin:0!important}
}
@media(min-width:801px) and (max-width:1100px){
 .answers-page .audio-set{grid-template-columns:150px minmax(0,1fr)!important;gap:20px 28px!important}
 .answers-page .audio-set>.audio-set-cover{grid-column:1!important;grid-row:1/4!important}
 .answers-page .audio-set>.answers-set-copy{grid-column:2!important}
 .answers-page .answers-actions>a{grid-column:2!important;justify-self:start!important}
}
@media(max-width:480px){
 #instruments-taught .schools-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 main>section.site-top-banner>.site-banner-copy,main>section.uniform-top-banner.uniform-top-banner>.uniform-banner-copy,main>section.hero.directory-hero>.hero-copy{padding:24px 7%!important}
 .about-team-card.chutney-team-card{justify-items:start}
 .schools-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
/* Printable selections remain three readable columns on mid-sized tablets. */
@media(min-width:651px) and (max-width:1100px){
 .book-contents,.book-contents tbody{display:block!important;width:100%!important;max-width:100%!important;border-spacing:0!important}
 .book-contents tr{display:grid!important;grid-template-columns:minmax(90px,.6fr) minmax(0,1fr) minmax(0,1fr);gap:18px;margin-bottom:34px}
 .book-contents th,.book-contents td,.book-contents td:last-child{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;padding:0!important;white-space:normal!important}
 .book-contents img,.printable-first-page{max-width:100%!important;height:auto!important}
 .book-contents .printable-download{white-space:normal!important;box-sizing:border-box;max-width:100%}
}
@media(max-width:800px){
 /* Preserve the whole first grand stave and its wording without stretching it. */
 main>section.grade-five-banner:not(.uniform-top-banner){grid-template-rows:auto auto!important}
 .grade-five-banner:not(.uniform-top-banner) .grade-five-preview{height:auto!important;aspect-ratio:847/285!important}
 .grade-five-banner:not(.uniform-top-banner) .grade-five-preview>div{height:100%!important}
 .grade-five-banner:not(.uniform-top-banner) .grade-five-preview>div>img{height:auto!important;object-fit:contain!important}
 .nav :is(.menu,.site-search-toggle){min-height:44px;min-width:44px}
 .navlinks>details>summary,.navlinks>a{min-height:44px;box-sizing:border-box;display:flex;align-items:center}
}
@media(min-width:1101px) and (max-width:1300px){
 .answers-page .audio-set{grid-template-columns:140px minmax(180px,1fr) minmax(190px,1fr) minmax(170px,1fr)!important;column-gap:24px!important}
 .answers-page .audio-set .audio-set-download{white-space:normal!important;max-width:100%;box-sizing:border-box}
}
@media(max-width:800px){
 /* The portrait has its own crop: never enlarge a face to the tablet's full width. */
 .site-top-banner .chutney-banner-photo img{inset:auto 0 auto auto!important;top:-90px!important;width:min(100%,320px)!important;max-width:320px!important;height:auto!important;object-view-box:none!important;object-fit:contain!important;object-position:right top!important}
}
/* Use the compact navigation before tablet links wrap into several rows. */
@media(max-width:1100px){
 header .nav{position:relative;flex-wrap:nowrap!important;gap:12px!important;padding:12px 5%!important}
 header .menu{display:block!important;flex:none;min-height:44px;min-width:64px}
 header .navlinks{display:none;position:absolute;top:100%;left:0;right:0;max-width:100%;max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;background:#fff;padding:20px 5%;flex-direction:column;align-items:stretch;gap:6px!important;z-index:1002}
 header .navlinks.open{display:flex!important}
 header .navlinks>details{display:block;flex:none}
 header .navlinks>details>summary,header .navlinks>a{white-space:normal;min-height:44px;box-sizing:border-box;display:flex;align-items:center}
 header .navlinks .teach-menu ul{position:static!important;min-width:0!important;width:100%;max-width:100%;max-height:none!important;overflow:visible!important;box-sizing:border-box;box-shadow:none;margin:0;padding:4px 12px;border:0}
 header .teach-menu li a{padding:11px 0;white-space:normal}
 header .homepage-gramophone{padding-top:6px!important;padding-bottom:6px!important}
 header .homepage-gramophone img{height:67px!important;width:134px!important}
 header .site-search-toggle{min-width:44px;min-height:44px}
}
@media(max-width:800px){
 .site-top-banner .chutney-banner-photo{background:#ecf0f3!important;-webkit-mask-image:none!important;mask-image:none!important}
 .site-top-banner .chutney-banner-photo img{-webkit-mask-image:linear-gradient(to right,transparent,#000 18%)!important;mask-image:linear-gradient(to right,transparent,#000 18%)!important}
}

@media(max-width:800px){
 main>section.site-top-banner,main>section.uniform-top-banner.uniform-top-banner,main>section.hero.directory-hero.uniform-top-banner{grid-template-rows:auto clamp(220px,60vw,420px)!important}
 main>section.site-top-banner>:is(.uniform-banner-media,.grade-five-preview,.tuition-banner-image-space,.about-banner-photo,.fees-banner-photo),main>section.hero.directory-hero>.uniform-banner-media{height:clamp(220px,60vw,420px)!important}
 main>section.about-banner.uniform-top-banner{grid-template-rows:auto 220px!important}
 main>section.about-banner .chutney-banner-photo{height:220px!important}
 main>section.grade-five-banner:not(.uniform-top-banner){grid-template-rows:auto auto!important}
 .grade-five-banner:not(.uniform-top-banner) .grade-five-preview{height:auto!important}
 main>section.site-top-banner.first-steps-hero{grid-template-rows:auto 190px!important}
 main>section.site-top-banner:has(>.uniform-banner-media:empty){grid-template-rows:auto!important}
 main>section.site-top-banner>.uniform-banner-media:empty{display:none!important}
}
@media(max-width:800px){
 .site-top-banner .grade-five-preview img[src*="piano-syllabus"],.site-top-banner .grade-five-preview img[src*="gcse-music-book-stack"],.site-top-banner .grade-five-preview img[src*="discovering-music-theory"]{object-fit:contain!important;object-position:right center!important}
}

/* Enlarge the gramophone illustration while keeping the footer columns in place. */
@media(min-width:1101px){
 header .homepage-gramophone img{width:180px;height:101px}
 footer .footer-music-scene{transform:translate(16px,4px)}
}
footer img.footer-chutney[src$="cq-gramophone-seo.webp"]{scale:1.12;transform-origin:center bottom}
