.ih-legacy-header[hidden],footer[hidden]{display:none!important}body>.ih-global-header{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:none;margin:0;padding:18px max(20px,calc((100vw - 1160px)/2));background:#faf7ef;border-bottom:1px solid #d7ded2;color:#193e36;font:500 15px/1.6 system-ui,sans-serif;box-shadow:none}.ih-global-header .ih-brand{font-weight:800;font-size:20px;color:#193e36;text-decoration:none;white-space:nowrap}.ih-global-header nav{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.ih-global-header nav a{padding:8px 13px;border-radius:8px;color:#35544b;text-decoration:none;white-space:nowrap}.ih-global-header nav a[aria-current=page]{background:#dce9dd;color:#173f33;font-weight:750}.ih-global-header button{font:inherit;min-height:42px;padding:7px 12px;border:1px solid #bdcfc3;border-radius:9px;background:white;color:#193e36;cursor:pointer}.ih-global-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;max-width:1160px;margin:48px auto 0;padding:28px 24px;border-top:1px solid #d7ded2;font:14px/1.8 system-ui,sans-serif;color:#52685d}.ih-global-footer nav{display:flex;gap:20px;flex-wrap:wrap}.ih-global-footer a{color:#345d4e}.ih-global-header a:focus-visible,.ih-global-header button:focus-visible{outline:3px solid #b67d2d;outline-offset:2px}.ih-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px}.ih-feature-grid a{display:block;padding:24px;border:1px solid #d5ded0;border-radius:16px;background:#fffdf7;text-decoration:none}.ih-feature-grid h2{color:#214b3e}.ih-feature-grid p{color:#52685d}.ih-recording{padding:20px;background:#edf3e9;border-radius:12px;margin:20px 0}.ih-recording audio{width:100%}@media(max-width:760px){body>.ih-global-header{flex-wrap:wrap;padding:14px 16px;gap:12px}.ih-global-header nav{order:3;width:100%;gap:2px}.ih-global-header nav a{flex:1;text-align:center;padding:8px;font-size:14px}.ih-global-footer{padding:24px 16px}}

.tuner-readings{display:flex;justify-content:space-around;flex-wrap:wrap;gap:16px;font:600 1.8rem ui-monospace,monospace;margin:36px 0}#tunerMeter{width:100%;height:28px}

.ih-global-help{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 12px;border:1px solid #bdcfc3;border-radius:9px;background:#fffdf7;color:#28594c;text-decoration:none;font-weight:700;white-space:nowrap}.ih-global-help:hover{background:#edf4ec}.ih-global-help:focus-visible{outline:3px solid #b67d2d;outline-offset:3px}

.ih-welcome{max-width:1164px;margin:20px auto;padding:0 18px;color:#173e46}.ih-welcome details{border:1px solid #bdd5ce;border-radius:18px;background:#f1f8f5;padding:18px}.ih-welcome summary{cursor:pointer;font-size:1.15rem;font-weight:700}.ih-route-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.ih-route-grid a{display:flex;flex-direction:column;gap:8px;padding:18px;background:white;border:1px solid #d4e2dc;border-radius:14px;color:inherit;text-decoration:none}.ih-route-grid a:hover,.ih-route-grid a:focus-visible{outline:2px solid #277568;outline-offset:2px}.ih-route-grid span{font-size:.92rem;line-height:1.8}
/* Glazed tile bands and recessed arches frame the shared workshop shell. */
body:has(.ih-global-header){background-color:#faf6ed}
body>.ih-global-header{background:#10394c;color:#fff6df;border:0;border-top:12px solid transparent;border-image:url('/palace-tile.svg') 30 repeat;padding-block:12px}
.ih-global-header .ih-brand,.ih-global-header nav a{color:#fff5dd}
.ih-global-header nav a:hover,.ih-global-header nav a[aria-current=page]{background:#276262;color:white}
.ih-global-footer{border-top:12px solid transparent;border-image:url('/palace-tile.svg') 30 repeat}
.ih-welcome details{border:0;border-inline-start:3px solid #b98d50;border-radius:0;background:transparent;padding:8px 14px}
.palace-stage{display:grid;grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(24px,5vw,74px);padding:clamp(24px,5vw,68px);background:#123d50;color:#fff8e6;border-radius:3px;position:relative;isolation:isolate;overflow:hidden}
.palace-stage:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#123d50 75%),url('/palace-tile.svg') center/auto, #123d50;opacity:.32;z-index:-1}
.palace-stage figure{margin:0;text-align:center}.palace-stage img{width:min(100%,340px);height:clamp(220px,32vw,390px);object-fit:contain;background:#eee7db;border:6px double #c4a56b;border-radius:50% 50% 4px 4px}
.palace-stage figcaption,.palace-stage .palace-label{font-size:.85rem;color:#f0d296}.palace-stage h1{font-size:clamp(2.25rem,5vw,4.7rem);line-height:1.18;color:inherit;margin:.25em 0}.palace-stage p{color:inherit;max-width:38ch}.palace-stage a{color:#fff4cc;margin-inline:12px}.palace-stage button,.river button{background:#15585a;color:white;border:0;border-radius:28px;padding:12px 20px;cursor:pointer}.palace-stage button{background:#ffe1a2;color:#163943}
.river{margin:24px 0;padding:clamp(18px,4vw,46px);background:#e3efea;border-inline-start:4px solid #347e79}.river p{max-width:68ch}.river input{width:auto}.river button:disabled{opacity:.55}.stone-bed{display:flex;align-items:center;justify-content:center;gap:clamp(4px,2vw,24px);padding:30px 0;margin:12px 0;background:repeating-radial-gradient(ellipse at 0 100%,transparent 0 18px,#19777319 19px 20px,transparent 21px 28px)}.stone-bed button{border-radius:50% 44% 47% 38%;box-shadow:0 5px #79abab;min-width:62px}.stone-bed button:first-child{translate:0 9px}.stone-bed button:last-child{translate:0 -9px}.river button:active{transform:translateY(2px)}
@media(max-width:650px){.palace-stage{grid-template-columns:1fr;padding:22px;gap:12px}.palace-stage figure{grid-row:2}.palace-stage img{height:165px}.stone-bed button{padding:12px 8px}.palace-stage h1{font-size:2.25rem}}

/* The recess pattern stays at the edge so scores and controls remain legible. */
body:has(.ih-global-header) main>.hero{position:relative;isolation:isolate;overflow:hidden;border-inline-end:6px solid #c69a60;background:linear-gradient(110deg,#fbf3e1 52%,#e3efeb);border-radius:28px 3px 28px 3px}
body:has(.ih-global-header) main>.hero:after{content:"";pointer-events:none;position:absolute;inset-block:0;inset-inline-end:0;width:12%;background:url('/palace-tile.svg') center/96px;opacity:.16;z-index:-1}
body:has(.ih-global-header) main>h1{border-inline-start:8px solid #207579;padding-inline-start:16px}
.ih-feature-grid a{border:0;border-block-start:4px solid #198180;border-radius:0 0 20px 4px;background:#f5ede0}
.ih-feature-grid a:nth-child(3n+2){border-color:#aa6844}.ih-feature-grid a:nth-child(3n){border-color:#244c74}
.rhythm-presets .rhythm-preset-grid article{background:#faf5e9;border:0;border-inline-start:4px solid #2c7978;border-radius:0 12px 12px 0}
.hero img.workshop-instrument{width:clamp(78px,13vw,150px);height:clamp(96px,14vw,175px);object-fit:cover;border:4px double #b79862;border-radius:50% 50% 3px 3px;justify-self:center}
.stone-bed button.sounding{background:#ffdb88;color:#143c48;outline:3px solid #176a70;box-shadow:0 5px #629a9a}
.river label{display:inline-flex;align-items:center;gap:8px}.river #trail{min-height:1.5em;font-weight:bold}.palace-stage h1:lang(en),.river h2:lang(en){font-family:Georgia,serif;font-weight:500}
/* Small recessed bays form a continuous arcade in the shared navigation. */
body>.ih-global-header{border:0;border-block:4px double #8e6744;background-color:#d8b78d;background-image:linear-gradient(to bottom,#f2ddba88,transparent 60%),repeating-linear-gradient(0deg,transparent 0 8px,#8d67332b 8px 9px);padding-block:7px;gap:12px;align-items:center}
.ih-global-header .ih-brand{color:#352c24}
/* Orosi fanlights and paired lattice casements sit above each navigation label. */
.ih-global-header nav{display:flex;align-items:stretch;gap:3px}
.ih-global-header nav a,.ih-global-header nav a[aria-current=page]{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;min-width:64px;padding:2px 7px 4px;border:0;border-bottom:3px solid transparent;border-radius:3px;background:transparent;color:#38291f;font-weight:650;line-height:1.25}
.ih-global-header nav a:before{content:"";width:48px;height:48px;background:url('/caravanserai-nav.svg?v=2') center/contain no-repeat}
.ih-global-header nav a:hover,.ih-global-header nav a[aria-current=page]{background:#f3e4cb;color:#173e42;border-bottom-color:#28666d}
.ih-global-header nav a:focus-visible{outline:3px solid #124f64;outline-offset:1px}
.ih-global-header .ih-language,.ih-global-header .ih-global-help{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto;min-height:44px;padding:0 3px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#352c24;font-family:inherit;font-size:clamp(.9rem,1.4vw,1.05rem);font-weight:800;line-height:1.35;white-space:nowrap;text-decoration:none}
.ih-global-header .ih-language:hover,.ih-global-header .ih-global-help:hover{text-decoration:underline;text-underline-offset:4px}
@media(max-width:900px){.ih-global-header .ih-brand{margin-inline-end:auto}}
.ih-global-footer{position:relative;border:0;padding-top:35px}
.ih-global-footer:before{content:"";position:absolute;inset:0 0 auto;height:13px;background:#174b66 url('/palace-tile.svg') center/48px;border-block:2px solid #be9b69}
body:not(.courtyard-home) main > :is(.hero, #rhythmLesson, #harmonyCoach, .workshop-nav){border-block-start:3px double #b39470}
body:has(.ih-global-header) main>h1{border-inline-start:0}
body:has(.ih-global-header) main>h1:before{display:inline-block;content:"";width:.72em;height:.72em;margin-inline-end:.45em;background:#185366 url('/palace-tile.svg') center/175%;transform:rotate(45deg);border:1px solid #bf9861}
@media(max-width:900px){body>.ih-global-header{flex-direction:row;flex-wrap:wrap}.ih-global-header nav{order:4;display:grid;width:100%;grid-template-columns:repeat(6,minmax(0,1fr))}.ih-global-header nav a,.ih-global-header nav a[aria-current=page]{min-width:0;padding:2px 0 3px;font-size:clamp(11px,2.9vw,14px)}.ih-global-header nav a:before{width:min(36px,100%);height:36px}}

/* Workshop introductions below the page title. */
.entrance-heading,
main .hero:has(>.entrance-art)>div:first-child {
  text-align:center;
  min-width:0;
}
.entrance-heading {
  padding:6px 0 14px;
  margin:0 0 14px;
  border-bottom:3px double #bc9a65;
}
.entrance-heading h1,
main .hero:has(>.entrance-art) h1 {
  margin:0 auto;
  max-width:none;
  text-align:center;
  text-wrap:balance;
  overflow-wrap:break-word;
}
.ih-page-title {
  width:min(92%, 52rem);
  margin:clamp(18px,3vw,36px) auto 16px;
  text-align:center;
  color:#234a45;
}
.ih-page-title h1 {
  margin:0 auto;
  color:inherit;
  font-size:clamp(1.55rem,3vw,2.5rem);
  line-height:1.5;
  text-align:center;
  text-wrap:balance;
}
body img.entrance-art { display:none }
main .hero:has(>.entrance-art) {display:block}
main .hero:has(>.entrance-art) p {margin-inline:auto}
main .hero:has(>.entrance-art) .first-listen {max-width:36rem;margin:1rem auto 0}
main .hero:has(.entrance-heading)>div:first-child {width:100%}
@media(max-width:900px){
 body:not(.courtyard-home)>.ih-global-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px clamp(4px,1.5vw,12px);padding-inline:clamp(8px,2vw,16px)}
 .ih-global-header .ih-brand{grid-column:1;grid-row:1}
 .ih-global-header .ih-language{grid-column:2;grid-row:1}
 .ih-global-header .ih-global-help{grid-column:3;grid-row:1}
 .ih-global-header nav{grid-column:1/-1;grid-row:2}
}

/* Shared Harmony workshop palette: listening surfaces in jade, making surfaces in ochre. */
:root {
  --ih-listen-accent:#23786b;
  --ih-listen-surface:#f2faf7;
  --ih-make-accent:#966435;
  --ih-make-surface:#fff5e6;
  --ih-workshop-edge:#cad8d1;
}
body:not(.courtyard-home) main :is(.workshop-setup,.learning-card,#soloPractice,.pitch-panel,.ih-context-guide,.ih-feature-grid>a,.panel.instrument,section[aria-labelledby="captureTitle"],section.card[lang]) {
  background:var(--ih-listen-surface);
  border:1px solid var(--ih-workshop-edge);
  border-block-start:4px solid var(--ih-listen-accent);
  border-radius:12px;
}
body:not(.courtyard-home) main :is(.creative-card,.panel.notebook,.piano-play-card,#neyContinue) {
  background:var(--ih-make-surface);
  border:1px solid #ddcfbd;
  border-block-start:4px solid var(--ih-make-accent);
  border-radius:12px;
}
body main:has(#tunerStatus)>.panel,body main>#rhythmLesson>.panel{border-block-start:4px solid var(--ih-listen-accent);background:var(--ih-listen-surface)}

@font-face{font-family:IranNastaliq;src:url("/IranNastaliq.ttf") format("truetype");font-display:swap}
html[lang=fa] .ih-page-title h1{font-family:IranNastaliq,serif;font-weight:400;font-size:clamp(2.2rem,5vw,3.5rem);line-height:1.8}
body main>.hero:is(.studio-intro,.heading),body main:has(>.ih-feature-grid)>.hero{display:block;padding:clamp(18px,4vw,38px);text-align:center;color:#234a45}
body main>.studio-intro p,body main>.heading.hero p{max-width:68ch;margin-inline:auto}
body .ih-feature-grid>a:nth-child(2){background:var(--ih-make-surface);border-block-start-color:var(--ih-make-accent)}
.lab-shortcuts{display:flex;flex-wrap:wrap;gap:8px 14px;margin-block:14px}
.lab-shortcuts a{display:inline-flex;align-items:center;min-height:44px;padding-inline:12px;color:#205950;background:#f2faf7;border:1px solid #cad8d1;border-radius:9px;text-decoration:none}
.lab-shortcuts a:focus-visible,.lab-shortcuts a:hover{text-decoration:underline}

/* Shared workshop reading and touch rhythm. */
body:not(.courtyard-home) main {line-height:1.8}
body:not(.courtyard-home) main > .hero {padding:clamp(20px,4vw,38px);text-align:center}
body:not(.courtyard-home) main > .hero p {max-width:64ch;margin-inline:auto}
body:not(.courtyard-home) main :is(section,details) {scroll-margin-top:20px}
body:not(.courtyard-home) main :is(button,a.btn,summary) {touch-action:manipulation}
body:not(.courtyard-home) main :is(button,a,input,select,summary):focus-visible {outline:3px solid #23786b;outline-offset:3px}
.shur-stones[hidden] {display:none!important}
.shur-stones {border:1px solid #bdcfc5;border-radius:14px;overflow:hidden;margin:20px 0}
.shur-stones .palace-stage {padding:clamp(20px,3vw,36px)}
.shur-stones .palace-stage figure {display:none}
.shur-stones .palace-stage {grid-template-columns:1fr}
.shur-stones .palace-stage p {max-width:64ch}
.landing-game {padding-block:12px;border-block:1px solid #9bb9b1;margin-block:16px}
.landing-game button {min-height:44px;margin:5px}
.landing-game [role=status] {min-height:1.8em}
@media(max-width:600px){
 body:not(.courtyard-home) main {font-size:16px}
 body:not(.courtyard-home) main button {min-height:44px}
}

.interval-intro>button,.interval-intro>a {display:inline-flex;margin:6px;min-height:44px;align-items:center}
.interval-steps {display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-block:18px}
.interval-steps>div {display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #cad8d1;border-radius:8px;background:#fffdf7}
.interval-distance {display:block;height:8px;background:#23786b;border-radius:8px}
