/* PerlaMusic — internal pages, set like a concert programme.
   Shared layout, typography, actions and motion are defined in brand.css. */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb > span[aria-hidden] { color: var(--silver); }
.breadcrumb > span:last-child { min-width: 0; overflow-wrap: anywhere; }

.page-hero {
  padding: 24px 0 60px;
  border-bottom: 4px double var(--silver);
  background: var(--paper);
}
.page-hero h1 { max-width: 19ch; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero .lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}
.page-hero .actions { margin-top: 28px; }

.course-detail { padding: 24px 0 64px; }
.course-media-copy > p { margin: 22px 0; color: var(--muted); }
.course-media .recordings { margin-top: 0; }
.course-media .school-photo img { height: auto; aspect-ratio: 16 / 9; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}
.detail-copy { min-width: 0; }
.detail-copy .eyebrow { margin-bottom: 18px; }
.detail-copy h1 { max-width: 14ch; margin-bottom: 26px; }
.detail-copy > p { max-width: 52ch; color: var(--muted); font-size: 18px; line-height: 1.7; }
.detail-image {
  display: block;
  width: 100%;
  height: clamp(420px, 43vw, 570px);
  object-fit: cover;
  border: 8px solid white;
  border-radius: 2px;
  outline: 1px solid var(--silver);
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--silver);
  border-radius: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.info-item { min-width: 0; padding-top: 22px; border-top: 4px double var(--silver); }
.info-item .number { font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; color: var(--blue); }
.info-item h3 { margin: 16px 0 12px; font-size: 32px; }
.info-item p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.teacher-band { padding: 32px 0; background: var(--soft); border-block: 1px solid var(--silver); }
.teacher-band .wrap { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.teacher-band .teacher-mark { width: 92px; height: 92px; object-fit: cover; border: 5px solid white; border-radius: 2px; outline: 1px solid var(--silver); }
.teacher-band .eyebrow { margin-bottom: 9px; }
.teacher-band h2 { font-size: 36px; line-height: 1.1; }
.teacher-band p { max-width: 67ch; margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.teacher-band .text-link { justify-self: end; min-height: 44px; }

.about-lead { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); }
.about-lead > * { min-width: 0; }
.about-lead h2 { max-width: 14ch; }
.about-lead p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.quote-block {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px double var(--blue);
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue);
}
.about-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 32px; padding-top: 24px; border-top: 4px double var(--silver); }
.about-values h3 { margin-bottom: 10px; font-size: 30px; }
.about-values p { margin: 0; font-size: 16px; line-height: 1.65; }
.studio-section { background: var(--blue); color: var(--paper); }
.studio-section h2, .studio-section h2 em { color: var(--paper); }
.studio-section .eyebrow { color: var(--silver); }
.studio-section .eyebrow::before { background: var(--silver); }
.studio-section .stage-grid > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 7px solid white; border-radius: 2px; }
.studio-section p { max-width: 52ch; margin: 22px 0; color: #e3e9ed; font-size: 18px; line-height: 1.7; }
.studio-section .tag { color: var(--paper); border-color: #8ba6b9; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.story-card { display: flex; flex-direction: column; min-width: 0; border-top: 4px solid var(--blue); border-bottom: 1px solid var(--silver); border-radius: 2px; background: white; }
.story-art {
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  min-height: 220px;
  padding: 28px;
  overflow: hidden;
  background: var(--blue);
  color: white;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.05;
}
.story-art::before { content: ''; position: absolute; z-index: -1; width: 175px; height: 175px; top: -64px; right: -56px; border: 9px solid #ffffff24; border-left-color: transparent; border-radius: 50%; transform: rotate(-20deg); }
.story-art > span { position: relative; min-width: 0; }
.story-card:nth-child(2) .story-art { background: var(--silver); color: var(--blue); }
.story-card:nth-child(2) .story-art::before { border-color: #063b6620; border-left-color: transparent; }
.story-card:nth-child(3) .story-art { background: var(--ink); }
.story-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 26px; }
.story-copy .eyebrow { margin-bottom: 14px; line-height: 1.5; }
.story-copy h3 { font-size: 31px; line-height: 1.12; }
.story-copy p { margin: 14px 0 22px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.story-copy .text-link { align-self: flex-start; min-height: 44px; margin-top: auto; }
.press-note { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 36px; margin-top: 42px; padding-top: 26px; border-top: 4px double var(--silver); }
.press-note > * { min-width: 0; }
.press-note .eyebrow { margin-bottom: 12px; line-height: 1.5; }
.press-note h3 { font-size: 34px; }
.press-note p { margin: 0 0 16px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.press-note .text-link { min-height: 44px; }
.archive-note { margin: 24px 0 0; max-width: 80ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.channel-strip { margin-top: 42px; border-top: 4px double var(--blue); border-bottom: 1px solid var(--silver); border-radius: 2px; background: white; }
.channel-strip > img { display: block; width: 100%; height: auto; max-height: 190px; object-fit: cover; }
.channel-strip-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; }
.channel-strip-body > div { flex: 1 1 330px; min-width: 0; }
.channel-strip-body h3 { font-size: 32px; }
.channel-strip-body p { margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.channel-strip-body .text-link { min-height: 44px; max-width: 100%; }

.contact-hero { padding-bottom: 44px; }
.contact-main { padding-top: 60px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: clamp(32px, 6vw, 84px); }
.contact-details, .message-box { min-width: 0; }
.contact-details > h2 { margin-bottom: 26px; }
.contact-line { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--silver); }
.contact-line > .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--blue); }
.contact-line small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.contact-line strong, .contact-line a { display: block; color: var(--blue); font-size: 24px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.contact-line a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-line p { margin: 7px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; padding-top: 18px; border-top: 4px double var(--silver); }
.contact-socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); font-size: 15px; font-weight: 600; }
.contact-socials a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-socials .icon { width: 16px; height: 16px; }
.message-box { padding: clamp(26px, 3.5vw, 42px); border: 1px solid var(--silver); border-top: 4px double var(--blue); border-radius: 2px; background: white; }
.message-box .eyebrow { margin-bottom: 16px; }
.message-box h2 { margin-bottom: 18px; font-size: 46px; }
.message-box > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.message-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; scroll-margin-top: 100px; }
.message-form label { display: block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.message-form label:not(:first-child) { margin-top: 10px; }
.message-form label .muted { color: var(--muted); font-size: 14px; font-weight: 400; }
.message-form input, .message-form select, .message-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #8b9ba5;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.message-form select { padding-right: 30px; }
.message-form textarea { min-height: 148px; resize: vertical; }
.message-form textarea::placeholder { color: var(--muted); opacity: 1; }
.message-form input:focus, .message-form select:focus, .message-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.message-form .btn { justify-content: center; width: 100%; max-width: 100%; min-height: 50px; margin-top: 10px; white-space: normal; text-align: center; }
.message-form .form-hint { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.form-hint a { color: var(--blue); text-underline-offset: 3px; }

.location-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 64px; border: 1px solid var(--silver); border-radius: 2px; }
.location-art { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 320px; padding: 32px; overflow: hidden; background: var(--soft); }
.location-art::before { content: ''; position: absolute; z-index: -1; width: 236px; height: 236px; border: 2px solid var(--silver); border-top-color: transparent; border-radius: 50%; transform: rotate(-28deg); }
.location-art::after { content: ''; position: absolute; z-index: -1; width: 292px; height: 292px; border: 1px solid var(--silver); border-left-color: transparent; border-radius: 50%; transform: rotate(18deg); }
.location-marker { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 100%; text-align: center; color: var(--blue); }
.map-pin { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid var(--blue); border-radius: 50%; background: var(--paper); }
.map-pin .icon { width: 30px; height: 30px; }
.location-marker > span:last-child { padding: 6px 10px; background: var(--soft); font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.2; }
.location-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 40px; background: white; }
.location-copy .eyebrow { margin-bottom: 15px; }
.location-copy p { margin: 20px 0 24px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.prose { max-width: 860px; }
.prose h2 { margin: 40px 0 18px; padding-top: 24px; border-top: 4px double var(--silver); font-size: 38px; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.prose .legal-note, .message-box .formnotice, .message-box .form-notice { font-size: 14px; line-height: 1.6; }
.prose table { width: 100%; margin: 24px 0; border-collapse: collapse; table-layout: fixed; color: var(--muted); font-size: 16px; line-height: 1.6; }
.prose caption { padding-bottom: 12px; color: var(--ink); font-weight: 600; text-align: left; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--silver); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prose th { background: var(--soft); color: var(--blue); font-weight: 600; }
.prose .table-scroll { max-width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--silver); border-radius: 2px; background: white; }
.prose .table-scroll table { min-width: 520px; margin: 0; }
.prose .table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.privacy-facts { margin:24px 0; border:1px solid var(--silver); background:white; }
.privacy-facts > div { padding:18px 20px; }
.privacy-facts > div + div { border-top:1px solid var(--silver); }
.privacy-facts dt { font-weight:600; color:var(--blue); }
.privacy-facts dd { margin:6px 0 0; }
.not-found { padding: 80px 24px 96px; text-align: center; }
.not-found .code { color: var(--blue); font-family: var(--display); font-size: clamp(120px, 18vw, 220px); font-weight: 700; line-height: 1; }
.not-found h1 { max-width: 15ch; margin: 22px auto; font-size: clamp(42px, 5vw, 66px); }
.not-found p { max-width: 42ch; margin: 0 auto 24px; color: var(--muted); font-size: 18px; }

@media (max-width: 1000px) {
  .detail-grid { gap: 32px; }
  .detail-copy h1 { font-size: clamp(52px, 7.2vw, 72px); }
  .detail-image { height: 460px; }
  .info-grid { gap: 24px; }
  .teacher-band .wrap { grid-template-columns: 84px minmax(0, 1fr); gap: 20px 24px; }
  .teacher-band .teacher-mark { width: 84px; height: 84px; }
  .teacher-band .text-link { grid-column: 2; justify-self: start; }
  .about-lead { gap: 36px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .story-card { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1fr); }
  .story-art { min-height: 210px; }
  .contact-layout { gap: 30px; }
  .contact-line strong, .contact-line a { font-size: 22px; }
  .message-box { padding: 26px; }
  .location-copy { padding: 30px; }
}

@media (max-width: 700px) {
  .breadcrumb { gap: 0 8px; margin-bottom: 20px; font-size: 13px; }
  .page-hero { padding: 14px 0 36px; }
  .page-hero h1, .detail-copy h1 { font-size: clamp(42px, 12vw, 64px); line-height: 1.04; }
  .page-hero .eyebrow { margin-bottom: 12px; }
  .page-hero .lead { margin-top: 18px; font-size: 17px; line-height: 1.65; }
  .page-hero .actions { margin-top: 22px; gap: 12px 18px; }
  .page-hero .actions .btn { max-width: 100%; white-space: normal; }
  .course-detail { padding: 14px 0 40px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .detail-copy h1 { margin-bottom: 20px; }
  .detail-copy > p { font-size: 17px; line-height: 1.65; }
  .detail-copy .actions .btn { max-width: 100%; white-space: normal; }
  .detail-meta { gap: 7px; margin: 20px 0 24px; }
  .tag { padding: 6px 8px; font-size: 12px; }
  .detail-image { height: auto; aspect-ratio: 4 / 3; border-width: 6px; }
  .info-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .info-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px 16px; padding-top: 20px; }
  .info-item .number { grid-row: 1 / 3; font-size: 36px; }
  .info-item h3 { grid-column: 2; margin: 0; font-size: 28px; }
  .info-item p { grid-column: 2; font-size: 16px; }
  .teacher-band { padding: 26px 0; }
  .teacher-band .wrap { grid-template-columns: 66px minmax(0, 1fr); align-items: start; gap: 16px; }
  .teacher-band .teacher-mark { width: 66px; height: 76px; border-width: 4px; }
  .teacher-band .eyebrow { margin-bottom: 8px; font-size: 11px; line-height: 1.4; }
  .teacher-band h2 { font-size: 30px; }
  .teacher-band p { font-size: 15px; }
  .teacher-band .text-link { grid-column: 1 / -1; }
  .about-lead { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .about-lead h2 { max-width: none; }
  .about-lead p { font-size: 17px; line-height: 1.7; }
  .quote-block { margin: 26px 0; padding-left: 18px; font-size: 30px; }
  .about-values { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 26px; padding-top: 22px; }
  .about-values h3 { margin-bottom: 8px; font-size: 28px; }
  .about-values p { font-size: 16px; }
  .studio-section .stage-grid > img { border-width: 5px; }
  .studio-section p { margin: 18px 0; font-size: 17px; }
  .studio-section .btn { max-width: 100%; white-space: normal; }
  .story-card { display: flex; }
  .story-art { min-height: 195px; padding: 25px; font-size: 41px; }
  .story-copy { padding: 24px 22px; }
  .story-copy h3 { font-size: 30px; }
  .story-copy p { font-size: 16px; }
  .press-note { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; padding-top: 22px; }
  .press-note h3 { font-size: 32px; }
  .press-note p { font-size: 16px; }
  .channel-strip { margin-top: 32px; }
  .channel-strip-body { display: block; padding: 22px; }
  .channel-strip-body h3 { font-size: 30px; }
  .channel-strip-body .text-link { margin-top: 16px; }
  .archive-note { font-size: 14px; }
  .contact-main { padding-top: 36px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .contact-details > h2 { margin-bottom: 22px; }
  .contact-line { gap: 12px; padding: 18px 0; }
  .contact-line strong, .contact-line a { font-size: 22px; }
  .contact-line p { font-size: 16px; }
  .contact-socials { gap: 4px 20px; margin-top: 8px; }
  .message-box { padding: 24px 20px; }
  .message-box h2 { font-size: 38px; }
  .message-box > p { font-size: 16px; }
  .message-form { margin-top: 22px; }
  .message-form input, .message-form select, .message-form textarea { padding: 12px; font-size: 16px; }
  .message-form select { padding-right: 28px; }
  .message-form .btn { padding-inline: 12px; font-size: 16px; }
  body:has(.message-form input:focus) .mobile-cta,
  body:has(.message-form textarea:focus) .mobile-cta,
  body:has(.message-form select:focus) .mobile-cta { visibility: hidden; pointer-events: none; }
  .location-box { grid-template-columns: minmax(0, 1fr); margin-top: 38px; }
  .location-art { min-height: 240px; padding: 24px; }
  .location-art::before { width: 184px; height: 184px; }
  .location-art::after { width: 228px; height: 228px; }
  .map-pin { width: 62px; height: 62px; }
  .location-marker { gap: 17px; }
  .location-marker > span:last-child { font-size: 25px; }
  .location-copy { padding: 28px 22px; }
  .location-copy p { margin: 18px 0 22px; font-size: 17px; }
  .prose h2 { margin: 32px 0 16px; padding-top: 22px; font-size: 32px; }
  .prose p, .prose li { font-size: 16px; line-height: 1.75; }
  .not-found { padding: 60px 20px 72px; }
  .not-found h1 { font-size: 42px; }
  .not-found p { font-size: 17px; }
}
