:root{--comfort-radius:10px}.comfort-breadcrumb{display:flex;position:static;flex-flow:row wrap;gap:8px;padding:0;margin:0 0 24px;background:none;border:0;box-shadow:none;font-size:13px;color:#60705e}.comfort-breadcrumb a{padding:0;font-size:inherit;text-decoration:underline;text-underline-offset:3px}.comfort-breadcrumb span{max-width:100%;overflow-wrap:anywhere}.comfort-summary{margin:20px 0;border:1px solid #c8d4bc;border-radius:8px;background:#f4f6ee;padding:12px 16px}.comfort-summary>summary{font-weight:600;cursor:pointer}.comfort-summary .reading-nav{position:static;margin:12px 0 0;box-shadow:none;flex-wrap:wrap}.exploration-intro,.reading-page-intro{margin-bottom:28px}.exploration-intro h1,.reading-page-intro h1{max-width:100%;overflow-wrap:break-word}.exploration-intro>p,.reading-page-intro>p,.lesson-reading p,.practice-card>p{max-width:72ch;line-height:1.75}.exploration-panel,.practice-card,.mission-challenges{border-radius:var(--comfort-radius)}.button-outline{font-weight:500;box-shadow:none}.button:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ad8844;outline-offset:3px}details[open]>:not(summary){animation:comfort-appear .18s ease-out}.challenge-feedback,.exploration-status{line-height:1.6}math{max-width:100%}.math-block,.calculation-summary{max-width:100%;overflow-x:auto}textarea,select,input{max-width:100%}@keyframes comfort-appear{from{opacity:.4;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}@media(max-width:760px){.exploration-main,.reading-page-main{padding-top:24px}.exploration-intro h1,.reading-page-intro h1{font-size:clamp(30px,8vw,42px);line-height:1.16;letter-spacing:-1px}.document-rules{padding:18px}.document-rules details{margin-block:12px}.comfort-breadcrumb{margin-bottom:18px;font-size:12px}.practice-card,.mission-challenges{padding:20px 16px}.comfort-summary .reading-nav{display:flex;flex-direction:column;align-items:stretch;overflow:visible}.comfort-summary .reading-nav a{white-space:normal}.site-header .header-puzzle,.site-header .header-sudoku{min-height:44px}}

.comfort-breadcrumb.wrap{margin:20px auto 24px}@media(max-width:760px){.comfort-breadcrumb.wrap{margin:16px auto 18px}}
/* Home page actions follow the introduction in reading order. */
.comfort-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}
.comfort-path {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2.25vw, 26px);
  border: 1px solid #788d6f;
  border-top: 4px solid #527447;
  border-radius: 12px;
  background: #fffdf6;
  box-shadow: 0 4px 12px #234b3e12;
}
.comfort-path h2 {
  margin: 0;
  color: #234b3e;
  font-size: calc(clamp(23px, 2.5vw, 30px) + var(--site-font-increase));
  font-weight: 700;
  line-height: 1.15;
}
.comfort-path p {
  margin: 0 0 6px;
  color: #344c40;
  font-size: calc(16px + var(--site-font-increase));
  line-height: 1.5;
}
.button.comfort-path-action {
  justify-content: space-between;
  gap: 8px;
  min-height: calc(16px + 2.4em);
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: normal;
}
.button.comfort-path-action,
[data-today-action] > span:not([aria-hidden="true"]) {
  font-size: calc(15px + var(--site-font-increase));
  font-weight: 700;
  line-height: 1.2;
}
.comfort-path-action > span { flex: none; }
.comfort-path-action:focus-visible {
  outline: 3px solid #a67b25;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .comfort-paths { grid-template-columns: 1fr; }
}
.hero {
  min-height: 0;
  padding-block: clamp(28px, 4vw, 52px) 26px;
}
.hero .hero-description { max-width: 44ch; margin: 0; }
.hero .student-today { margin: 16px 0 0; }
.hero .hero-signature { margin-top: 14px; padding-top: 12px; }
.training-page main>.comfort-breadcrumb{margin:20px auto 24px}.contact-page main>.comfort-breadcrumb{max-width:1160px;width:calc(100% - 112px);margin:20px auto 24px}@media(max-width:1100px){.contact-page main>.comfort-breadcrumb{width:calc(100% - 72px)}}@media(max-width:820px){.contact-page main>.comfort-breadcrumb{width:calc(100% - 44px)}}@media(max-width:600px){.training-page main>.comfort-breadcrumb,.contact-page main>.comfort-breadcrumb{margin-block:16px 18px}.contact-page main>.comfort-breadcrumb{width:calc(100% - 40px)}}
.training-mode-tabs>button{border:2px solid #a58437;background:#ecdaa0;color:#234b3e;box-shadow:0 4px 12px #234b3e18;min-height:76px;position:relative;padding-right:64px}.training-mode-tabs>button::after{content:'→';position:absolute;right:20px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--student-sage);color:var(--student-action);font-size:24px;font-weight:500;}.training-mode-tabs>button[aria-selected=true]{border-color:#234b3e;background:var(--student-sage);color:var(--student-action);box-shadow:0 5px 15px #234b3e28,inset 0 0 0 2px var(--student-sage-border);}.training-mode-tabs>button[aria-selected=true]::after{content:'✓';background:#efda96;color:#234b3e;font-size:20px}.training-mode-tabs>button:hover{border-color:#234b3e;box-shadow:0 7px 18px #234b3e30}.training-mode-tabs>button:focus-visible{outline:3px solid #a47a22;outline-offset:4px}.training-mode-tabs strong{font-weight:650;font-size:clamp(19px,2vw,27px)}@media(max-width:700px){.training-mode-tabs>button{padding-right:60px;min-height:76px}}

/* The formula stays below the figure, leaving every square visible. */
.hero .hero-art{align-self:center;margin-block:0;min-width:0;max-height:none;padding-block:6px 0}
.hero-figure{margin:0}
.hero .pythagoras-art{display:block;width:100%;height:auto;min-height:0;max-height:clamp(420px,36vw,475px);margin:auto}
.hero-equation{display:grid;justify-items:center;gap:4px;color:#234b3e;text-align:center;padding:4px 0 9px;font:italic 16px var(--serif)}
.hero-equation strong{font-size:27px}
.hero-equation span{color:#52654e}
.hero-proof{max-width:440px;margin-inline:auto}
.hero-proof>summary{width:fit-content;min-height:44px;margin-inline:auto;padding:10px 14px;color:#234b3e;font-weight:700;cursor:pointer}
.hero-proof>summary:focus-visible{outline:2px solid #a67b25;outline-offset:2px;border-radius:4px}
.hero-proof-close,.hero-proof[open] .hero-proof-open{display:none}
.hero-proof[open] .hero-proof-close{display:inline}
.hero-proof-content{display:grid;grid-template-columns:minmax(100px,1fr) 1.3fr;gap:16px;align-items:center;background:#f4f5eb;border:1px solid #c8d4bc;border-radius:10px;padding:14px}
.hero-proof-content p{margin:0;font-size:14px;line-height:1.55}
.hero-proof-replay{min-height:44px;margin-top:10px;padding:8px 12px;border:1px solid #799170;border-radius:6px;background:#fffdf5;color:#234b3e;font-weight:650;cursor:pointer}
.hero-proof-replay:focus-visible{outline:2px solid #a67b25;outline-offset:2px}
.hero-proof-diagram{--proof-progress:1;display:block;width:100%;height:auto;overflow:hidden}
.hero-proof-diagram text{font:italic bold 25px var(--serif)}
.hero-triangle-down{transform:translateY(calc(120px * var(--proof-progress)))}
.hero-triangle-left{transform:translateX(calc(-90px * var(--proof-progress)))}
.hero-triangle-right{transform:translate(calc(120px * var(--proof-progress)),calc(-90px * var(--proof-progress)))}
.hero-proof-before{opacity:clamp(0,calc(1 - var(--proof-progress) * 5),1)}
.hero-proof-areas,.hero-proof-after{opacity:clamp(0,calc((var(--proof-progress) - .8) * 5),1)}
@media(max-width:600px){
 .hero .pythagoras-art{max-height:none}
 .hero-proof-content{grid-template-columns:1fr}
 .hero-proof-diagram{max-width:205px;margin-inline:auto}
}

/* Give the introduction a wider measure and align both opening labels. */
@media(min-width:821px){
 .hero{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);align-items:start}
 .hero .hero-copy,.hero .hero-art{align-self:start;padding-top:6px}
 .hero .hero-copy .eyebrow,.hero .art-topline{line-height:20px}
 .hero .hero-signature{max-width:510px}
}
@media(min-width:1101px){
 .hero{column-gap:28px}
 .hero .hero-copy h1{font-size:calc(clamp(86px,7.9vw,114px) + var(--site-font-increase))}
 .hero .hero-signature{max-width:605px}
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-block: 22px 24px;
  }
  .hero .hero-copy { padding: 0; }
  .hero .hero-copy .eyebrow {
    max-width: none;
    margin-bottom: 12px;
    font-size: calc(10px + var(--site-font-increase));
    line-height: 1.4;
  }
  .hero .hero-copy h1 {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    font-size: calc(clamp(40px, 9.5vw, 62px) + var(--site-font-increase));
    line-height: 1.08;
    letter-spacing: -.04em;
  }
  .hero .hero-description {
    font-size: calc(16px + var(--site-font-increase));
    line-height: 1.5;
  }
  .hero .student-today { margin-top: 14px; padding: 12px 14px; }
  .hero .student-today-actions .button {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }
  .hero .hero-signature { margin-top: 12px; padding-top: 9px; }
  .hero .hero-art { width: 100%; max-width: 420px; margin-inline: auto; }
  .hero .art-topline span { display: inline; }
  .hero .pythagoras-art { max-height: 330px; }
}
