:root {
  --paper: #faf8f2;
  --ivory: #fffdf7;
  --ink: #222e26;
  --muted: #535e53;
  --gold: #8b6232;
  --rule: #d9d4c8;
  --serif: Georgia,"Times New Roman",serif;
  --sans: "Segoe UI",Roboto,Arial,sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,summary {
  font: inherit;
}

button,a,summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,[tabindex="0"]:focus-visible {
  outline: 3px solid #1f82ad;
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

p,h1,h2,h3,figure {
  margin: 0;
}

h1,h2,h3 {
  font-weight: 400;
}

button {
  color: inherit;
}

html[lang=fr] .t-en,html[lang=en] .t-fr {
  display: none!important;
}

.wrap {
  width: min(1280px,89%);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--ivory);
  padding: 12px;
  z-index: 20;
}

.skip:focus {
  top: 8px;
}

.mast {
  position: relative;
  z-index: 5;
  background: var(--ivory);
  border-bottom: 1px solid #ded9ca;
}

.mast-inner,.header-tools,.brand,#main-nav,.languages {
  display: flex;
  align-items: center;
}

.mast-inner {
  height: 74px;
  gap: 38px;
  justify-content: space-between;
}

.brand {
  gap: 10px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: -.055em;
  line-height: 1;
}

.brand img {
  border-radius: 50%;
}

#main-nav {
  gap: 34px;
  margin-left: auto;
}

#main-nav a {
  display: block;
  font-size: .94rem;
  font-weight: 550;
  padding: 12px 0;
}

#main-nav a:hover,.zoom-link:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-tools {
  gap: 12px;
}

.languages {
  gap: 2px;
  border-left: 1px solid var(--rule);
  padding-left: 26px;
}

.languages button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  min-width: 39px;
  min-height: 36px;
  font-weight: 650;
  font-size: .83rem;
}

.languages button[aria-pressed=true] {
  background: #e9e3d4;
  color: #3c3424;
}

#menu-btn {
  display: none;
}

.hero {
  position: relative;
  background: #273e38 url("paysage.webp") center 53%/cover no-repeat;
  color: var(--ivory);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(15,31,27,.81) 0%,rgba(20,32,27,.67) 33%,rgba(23,32,26,.22) 66%,rgba(10,20,18,.04)),linear-gradient(0deg,rgba(12,25,23,.3),transparent 34%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.8rem,3.7vw,4.5rem);
  align-items: center;
  min-height: clamp(455px,35vw,560px);
  padding-block: clamp(46px,4.7vw,76px);
}

.hero-meta,.eyebrow {
  font-size: .78rem;
  font-weight: 680;
  letter-spacing: .115em;
  text-transform: uppercase;
  line-height: 1.5;
}

.hero-meta {
  color: #eee2c8;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mini-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.mini-wave i {
  display: block;
  width: 2px;
  border-radius: 5px;
  background: #ebc677;
  height: 5px;
}

.mini-wave i:nth-child(2),.mini-wave i:nth-child(4) {
  height: 10px;
}

.mini-wave i:nth-child(3) {
  height: 16px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem,4.65vw,4.78rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.hero-italic {
  font-style: italic;
  color: #f2d39a;
  font-weight: 400;
}

.hero-desc {
  max-width: 460px;
  font-size: clamp(1rem,1.25vw,1.15rem);
  line-height: 1.63;
  color: #f5f4e9;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 29px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 14px 22px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 650;
  min-height: 48px;
}

.listen-btn {
  color: #2f3022;
  background: #f6e8bd;
  box-shadow: 0 2px 10px #13201727;
}

.listen-btn:hover {
  background: #ffefc6;
}

.hero-explore {
  font-size: .96rem;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: #bdbaaa;
  text-underline-offset: 6px;
  padding: 10px 0;
}

.play-ico {
  display: inline-block;
  width: 13px;
  height: 15px;
  position: relative;
}

.play-ico::before {
  content: "";
  display: block;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.is-playing .play-ico::before {
  margin: 0;
  width: 4px;
  height: 14px;
  background: currentColor;
  border: 0;
  box-shadow: 7px 0 currentColor;
}

.when-playing,.is-playing .when-idle {
  display: none;
}

.is-playing .when-playing {
  display: inline;
}

.instrument {
  min-width: 0;
  align-self: center;
  margin-top: 5px;
}

.screen-btn {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
}

.device {
  display: block;
  border-radius: 13px;
  background: linear-gradient(135deg,#d4c7ad,#9a907e 48%,#e4d8bc);
  padding: 4px;
  box-shadow: 0 24px 45px -12px #061714a3,0 3px 10px #15190d4d;
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  background: #f7f4ea;
  border: 6px solid #222c25;
  border-top-width: 9px;
  border-radius: 10px;
}

.device-cam {
  display: none;
}

.instrument figcaption {
  text-shadow: 0 1px 4px #000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: .78rem;
  color: #fff8e8;
  margin-top: 14px;
}

.line {
  width: 26px;
  height: 1px;
  background: #e7cf96;
}

.fig-version {
  opacity: .9;
  font-variant-numeric: tabular-nums;
}

.audio-section {
  background: #efebdf;
  border-bottom: 1px solid #d9d2bf;
}

.audio-inner {
  display: grid;
  grid-template-columns: minmax(240px,1fr) minmax(230px,2.4fr) auto;
  align-items: center;
  gap: clamp(18px,3.2vw,60px);
  min-height: 116px;
  padding-block: 20px;
}

.track-id,.transport,.stereo {
  display: flex;
  align-items: center;
}

.track-id {
  gap: 16px;
}

.track-id img {
  width: 70px;
  height: 70px;
  border-radius: 7px;
  object-fit: cover;
}

.eyebrow {
  color: var(--gold);
}

.track-id .eyebrow {
  font-size: .72rem;
}

.track-id h2 {
  font: normal 1.7rem/1.2 var(--serif);
  letter-spacing: -.045em;
  margin-top: 1px;
}

.transport {
  gap: 12px;
}

.audio-btn {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: #243a30;
  color: #fff5dd;
}

.audio-btn:hover {
  background: #395443;
}

.clock {
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: #465145;
  white-space: nowrap;
}

.wave {
  flex: 1;
  position: relative;
  min-width: 24px;
  height: 44px;
  display: flex;
  align-items: center;
  --wave-ink: #ab9775;
  --wave-played: #3b513c;
}

.wave canvas {
  display: block;
  width: 100%;
  height: 32px;
}

.wave input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.wave:focus-within {
  outline: 2px solid #705022;
  outline-offset: 2px;
}

.stereo {
  gap: 7px;
  color: #5f604c;
  font-size: .82rem;
}

.stereo i {
  font-style: normal;
  font-size: 1.2rem;
}

.audio-error {
  margin: 0 auto;
  width: min(1280px,89%);
  color: #773217;
}

.audio-error:not(:empty) {
  padding-bottom: 10px;
}

.workshop {
  padding-block: clamp(48px,5.7vw,84px);
}

.section-intro,.uses,.offer {
  display: grid;
  gap: 35px;
}

.section-intro {
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  margin-bottom: 29px;
}

.section-intro h2,.uses h2,.offer h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem,3.4vw,3.6rem);
  letter-spacing: -.059em;
  line-height: 1.1;
  margin-top: 7px;
}

.studio-options,.listening-example p,.uses p:not(.eyebrow),.offer p:not(.eyebrow),.faqs p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.studio-options {
  max-width: 55ch;
  margin-top: 12px;
}

.listening-example {
  border-inline-start: 2px solid #b49a66;
  padding-inline-start: 18px;
}

.listening-example h3 {
  font: normal 1.35rem/1.25 var(--serif);
  margin-bottom: 7px;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(240px,.78fr) minmax(0,1.66fr);
  gap: clamp(24px,3.4vw,62px);
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid var(--rule);
}

.step {
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 17px 13px 16px 20px;
  text-align: left;
}

.step[aria-selected=true] {
  background: #eae6da;
}

.step[aria-selected=true]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #98733f;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.36rem;
  letter-spacing: -.03em;
  display: block;
}

.step-copy {
  color: var(--muted);
  margin-top: 5px;
  display: block;
  line-height: 1.5;
  font-size: .94rem;
}

.step:hover {
  background: #eeebe1;
}

.stage {
  background: #e8dfcc;
  padding: clamp(12px,1.8vw,26px);
  border-radius: 10px;
  border: 1px solid #d7c9ae;
}

.stage>button {
  cursor: zoom-in;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 0;
  overflow: hidden;
  background: #f4f1e8;
  border-radius: 4px;
  padding: 0;
}

.stage img {
  height: auto;
  width: 100%;
  object-fit: contain;
  max-height: clamp(270px,26vw,385px);
}

.stage-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #524b3c;
  font-size: .83rem;
}

.zoom-link {
  border: 0;
  padding: 5px 0;
  background: transparent;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 600;
}

.zoom-link span[aria-hidden] {
  margin-left: 4px;
}

.guide-feature {
  background: #f4f0e5;
  border-top: 1px solid var(--rule);
}
.guide-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(36px, 4.8vw, 72px);
}
.guide-feature h2 {
  font: normal clamp(1.9rem, 2.8vw, 3.05rem)/1.12 var(--serif);
  letter-spacing: -.045em;
}
.guide-feature p {
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.65;
}
.guide-intro p {
  color: var(--muted);
  max-width: 49ch;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.guide-primary {
  color: var(--ivory);
  background: #283f32;
}
.guide-secondary {
  color: var(--ink);
  background: transparent;
  border-color: #9a988b;
}
.guide-primary:hover {background: #385241}
.guide-secondary:hover {background: #e7e2d5}
.beat-card {
  background: #263c33;
  color: var(--ivory);
  border-radius: 12px;
  padding: clamp(23px, 3vw, 44px);
}
.beat-card p {color: #e4eadd}
.beat-tones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 19px 0;
  padding-block: 12px;
  border-block: 1px solid #64736a;
}
.beat-tones dt {font-size: .85rem}
.beat-tones dd {
  font: normal clamp(1.35rem, 2vw, 1.8rem)/1.15 var(--serif);
  color: #f6d998;
  margin: 4px 0 0;
}
.beat-toggle {background: #f5e6bc; color: #28382c}
.beat-toggle:hover {background: #fff0c7}
.beat-card [data-beat-status]:empty {display: none}
html:has(#guide-dialog[open]) {overflow: hidden}
#guide-dialog {
  width: min(960px, 94vw);
  height: min(860px, 90dvh);
  max-height: 94dvh;
  padding: 0;
  overscroll-behavior: contain;
}
.guide-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(12px, 2vw, 26px);
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.guide-bar h2 {
  margin-right: auto;
  font: normal clamp(1.1rem, 2vw, 1.5rem)/1.25 var(--serif);
}
.guide-bar button,.guide-bar select {
  min-height: 40px;
  background: #ece7da;
  border: 1px solid #ccc5b5;
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--ink);
  font: inherit;
}
@media (max-width: 760px) {
  .guide-feature-grid {grid-template-columns: 1fr}
  .guide-bar {gap: 6px}
  .guide-bar button,.guide-bar select {font-size: .875rem; padding-inline: 6px}
  .guide-actions .btn {min-height: 44px}
}
.use-section {
  background: #eeeade;
  border-block: 1px solid var(--rule);
}

.uses {
  grid-template-columns: 1fr 1fr 1fr;
  padding-block: 43px;
  align-items: start;
}

.uses h2 {
  font-size: clamp(1.8rem,2.55vw,2.7rem);
}

.uses h3 {
  font: normal 1.35rem/1.2 var(--serif);
  margin-block: 0 8px;
}

.uses p:not(.eyebrow) {
  font-size: .97rem;
}

.offer-section {
  padding-block: clamp(45px,5.6vw,80px);
}

.offer {
  grid-template-columns: 1.35fr .65fr;
  background: #253b32;
  color: var(--paper);
  padding: clamp(25px,4vw,60px);
  border-radius: 12px;
  align-items: center;
}

.offer h2 {
  font-size: clamp(2.1rem,3vw,3.3rem);
}

.offer h2 em {
  color: #e5cca0;
}

.offer .eyebrow {
  color: #e7cda4;
}

.offer p:not(.eyebrow) {
  color: #e0e7db;
  margin-top: 14px;
  max-width: 470px;
}

.price-block {
  border-left: 1px solid #637367;
  padding-left: clamp(13px,3vw,43px);
  display: grid;
  gap: 6px;
}

.price-block strong {
  font: normal clamp(2.1rem,3.3vw,3.6rem)/1.1 var(--serif);
  color: #f5dfaf;
  letter-spacing: -.06em;
}

.price-block span {
  font-size: .94rem;
  line-height: 1.4;
}

.price-block small {
  color: #c6d1c4;
  font-size: .8rem;
}

.faqs {
  margin-top: 25px;
  border-top: 1px solid var(--rule);
}

.faqs details {
  border-bottom: 1px solid var(--rule);
}

.faqs summary {
  list-style: none;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
}

.faqs summary::-webkit-details-marker {
  display: none;
}

.faqs summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--gold);
  margin-left: 10px;
}

.faqs details[open] summary::after {
  content: "−";
}

.faqs p {
  max-width: 730px;
  padding: 0 0 18px;
}

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 23px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.foot .brand {
  font-size: 1.3rem;
}

.foot p {
  font: italic .91rem/1.5 var(--serif);
  color: var(--muted);
  text-align: right;
}

dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  max-width: 94vw;
  max-height: 94vh;
  overflow: auto;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 80px #0005;
}

dialog::backdrop {
  background: #0e1d19db;
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.viewer-bar strong {
  font-weight: 600;
}

.viewer-bar button {
  background: #e8e5d9;
  border: 0;
  border-radius: 5px;
  padding: 8px 12px;
}

.viewer-bar button span {
  margin-left: 4px;
}

#viewer-image {
  margin: auto;
  max-width: min(87vw,1400px);
  max-height: 77vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media(max-width:1020px) {

  .wrap {
    width: 91.5%;
  }

  .hero-inner {
    grid-template-columns: 1.05fr .95fr;
  }

  .mast-inner {
    gap: 22px;
  }

  .audio-inner {
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

  .stereo {
    display: none;
  }

  .section-intro {
    grid-template-columns: 1.12fr .88fr;
  }
}

@media(max-width:760px) {

  .wrap {
    width: 90%;
  }

  .mast-inner {
    height: 63px;
  }

  .brand {
    font-size: 1.48rem;
  }

  .brand img {
    width: 33px;
    height: 33px;
  }

  .languages {
    padding-left: 0;
    border: 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
    padding-block: 40px 30px;
    min-height: 0;
  }

  .hero {
    background-position: 64% 45%;
  }

  .hero::before {
    background: linear-gradient(90deg,#142a24de,#14261dbd 52%,#1b302552),linear-gradient(0deg,#102921a6,transparent 55%);
  }

  .hero-meta {
    margin-bottom: 15px;
  }

  .hero-desc {
    margin-top: 15px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .instrument {
    width: min(100%,520px);
    margin: 0 auto;
  }

  .instrument figcaption {
    margin-top: 8px;
  }

  .device {
    padding: 3px;
    border-radius: 9px;
  }

  .device img {
    border-radius: 7px;
    border-width: 4px;
    border-top-width: 7px;
  }

  h1 {
    font-size: clamp(2.55rem,7.7vw,3.9rem);
  }

  .audio-inner {
    padding-block: 17px;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .track-id img {
    width: 48px;
    height: 48px;
  }

  .track-id h2 {
    font-size: 1.4rem;
  }

  .transport {
    gap: 10px;
  }

  .audio-btn {
    flex-basis: 42px;
    height: 42px;
  }

  .section-intro,.work-grid,.uses,.offer {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 20px;
  }

  .workshop {
    padding-block: 40px;
  }

  .work-grid {
    gap: 15px;
  }

  .steps {
    display: flex;
    flex-direction: row;
    border-top: 0;
    border-bottom: 1px solid var(--rule);
  }

  .step {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 12px 6px;
    text-align: center;
  }

  .step-title {
    font: 600 .9rem/1.3 var(--sans);
    letter-spacing: -.023em;
  }

  .step-copy {
    display: none;
  }

  .step[aria-selected=true]::before {
    top: auto;
    right: 0;
    bottom: -1px;
    height: 3px;
    width: auto;
  }

  .stage {
    padding: 12px;
  }

  .stage img {
    max-height: 370px;
  }

  .uses {
    gap: 21px;
    padding-block: 30px;
  }

  .offer {
    gap: 22px;
  }

  .price-block {
    border: 0;
    border-top: 1px solid #637367;
    padding: 18px 0 0;
  }

  .foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .foot p {
    text-align: left;
  }
}

@media(max-width:600px) {

  .mast-inner {
    gap: 8px;
  }

  .header-tools {
    margin-left: auto;
    gap: 8px;
  }

  .languages button {
    min-width: 34px;
    min-height: 35px;
  }

  #menu-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--rule);
    border-radius: 7px;
  }

  #menu-btn i {
    width: 17px;
    height: 1.5px;
    background: var(--ink);
    display: block;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 10px 5%;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 10px 18px #15190d1a;
  }

  #main-nav.open {
    display: flex;
    justify-content: space-around;
    gap: 10px;
  }

  .hero-actions {
    gap: 17px;
  }

  .btn {
    padding: 12px 15px;
  }

  .hero-explore {
    font-size: .9rem;
  }

  .stage-caption {
    align-items: flex-start;
  }

  .hero-meta,.eyebrow {
    font-size: .73rem;
  }

  .stage-caption .zoom-link {
    padding-top: 0;
  }

  .viewer-bar strong {
    font-size: .87rem;
  }
}

@media(max-width:360px) {

  .wrap {
    width: 92%;
  }

  .brand {
    gap: 6px;
    font-size: 1.32rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .listen-btn {
    gap: 9px;
  }

  .stage-caption {
    gap: 6px;
  }
}

@media(prefers-reduced-motion:reduce) {

  :root {
    scroll-behavior: auto;
  }

  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
  }
}

#guide-reader {
  color: var(--ink, #222e26);
  padding: 8px clamp(12px, 2.7vw, 32px) 20px;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
  font-family: var(--sans, "Segoe UI", Arial, sans-serif);
}

#guide-reader [hidden] {
  display: none !important;
}

#guide-reader .gr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .25rem 0 1rem;
  border-bottom: 1px solid var(--rule, #d9d4c8);
}

#guide-reader .gr-nav button,
#guide-reader input,
#guide-reader select,
#guide-reader form button {
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  font: inherit;
  color: var(--ink, #222e26);
  border: 1px solid #bdb8a9;
  background: var(--ivory, #fffdf7);
  border-radius: 6px;
  padding: .55rem .8rem;
}

#guide-reader .gr-nav button[aria-current],
#guide-reader form button {
  background: #293d32;
  border-color: #293d32;
  color: #fffdf4;
}

#guide-reader .gr-content {
  padding-block: 1rem;
}

#guide-reader .gr-content h2 {
  font: normal clamp(1.7rem, 4vw, 2.55rem)/1.12 var(--serif, Georgia, serif);
  letter-spacing: -.035em;
  margin-bottom: .8rem;
}

#guide-reader .gr-content h3 {
  margin: 1.1rem 0 .65rem;
  font: normal 1.55rem/1.2 var(--serif, Georgia, serif);
}

#guide-reader .gr-content h4 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

#guide-reader .gr-content p,
#guide-reader ol,
#guide-reader ul {
  line-height: 1.55;
}

#guide-reader .gr-intro {
  margin-bottom: 1rem;
  max-width: 76ch;
}

#guide-reader .gr-content details {
  border-bottom: 1px solid var(--rule, #d9d4c8);
}

#guide-reader .gr-content summary {
  padding: .8rem .3rem;
  line-height: 1.4;
  cursor: pointer;
}

#guide-reader .gr-content summary::marker {
  color: #846532;
}

#guide-reader .gr-content summary:hover {
  color: #765928;
}

#guide-reader .gr-content details[open] > summary {
  font-weight: 650;
}

#guide-reader .gr-body,
#guide-reader .gr-lookup,
#guide-reader .gr-content ol,
#guide-reader .gr-content ul {
  margin: 0 0 1rem;
  padding-inline: 1.4rem .35rem;
}

#guide-reader .gr-content ol,
#guide-reader .gr-content ul {
  padding-inline-start: 2.35rem;
}

#guide-reader .gr-body p + p,
#guide-reader .gr-content li + li {
  margin-top: .42rem;
}

#guide-reader .gr-list,
#guide-reader .gr-result,
#guide-reader .gr-field {
  min-width: 0;
}

#guide-reader .gr-preset-title > b {
  white-space: nowrap;
  margin-inline-end: .6rem;
}

#guide-reader .gr-preset-title small,
#guide-reader .guide-sources small,
#guide-reader .guide-reference small,
#guide-reader .gr-context small {
  display: block;
  color: #515d51;
  font-weight: 400;
}

#guide-reader .gr-preset-title small {
  margin: .2rem 0 0 1rem;
}

#guide-reader .gr-custom {
  background: #eeeade;
  padding-inline: .8rem;
  border-radius: 7px;
}

#guide-reader .gr-custom .gr-lookup {
  padding: 0 .15rem 1rem;
  margin: 0;
}

#guide-reader .gr-field {
  display: grid;
  gap: .25rem;
  align-content: start;
  margin: .3rem 0;
}

#guide-reader .gr-field label {
  font-size: .9rem;
  font-weight: 600;
}

#guide-reader input[type=search] {
  width: min(100%, 34rem);
}

#guide-reader .gr-lookup form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .55rem;
  margin: .6rem 0 1rem;
}

#guide-reader .gr-lookup form .gr-field {
  flex: 1 1 8rem;
  margin: 0;
}

#guide-reader .gr-count {
  font-size: .9rem;
  color: #515d51;
  margin: .45rem 0;
}

#guide-reader .gr-result:not(:empty) {
  padding: .85rem;
  border-radius: 5px;
  background: var(--ivory, #fffdf7);
}

#guide-reader .gr-context {
  margin-top: .6rem;
}

@media (max-width: 600px) {
  #guide-reader .gr-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #guide-reader .gr-nav button {
    font-size: .9rem;
    line-height: 1.35;
  }
  #guide-reader .gr-lookup form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  #guide-reader .gr-preset-title b {
    white-space: normal;
  }
}
