/* Shared homepage and Toolbox masthead. Existing artwork and destination behavior are preserved. */
body.heading-index .site-header {display:block;background:#292825;color:#fffaf0;border-bottom:1px solid #413d35;min-height:84px;padding:0 max(66px,calc((100vw - 1200px)/2 + 66px));overflow:visible;font-family:'Source Sans 3',Arial,sans-serif;}
body.heading-index .site-header::before {display:none;}
body.heading-index .homepage-header-inner {display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:84px;position:relative;}
body.heading-index .site-header .brand {display:flex;align-items:center;gap:11px;min-width:0;}
body.heading-index .site-header .brand-mark {width:48px;height:58px;flex:none;background:transparent;clip-path:none;}
body.heading-index .site-header .brand-mark::before {display:none;}
body.heading-index .site-header .brand-mark img {position:static;display:block;width:48px;height:58px;max-width:100%;object-fit:contain;}
body.heading-index .site-header .brand-copy strong {color:#fffaf0;font-size:26px;font-weight:700;line-height:1.1;letter-spacing:.012em;white-space:nowrap;}
body.heading-index .homepage-banner-nav {display:flex;align-items:center;gap:32px;}
body.heading-index .site-header nav a {display:flex;align-items:center;min-height:44px;text-decoration:none;font-size:17px;font-weight:600;color:#ded9ce;position:relative;}
body.heading-index .site-header nav a[aria-current=page] {color:#fffaf0;}
body.heading-index .homepage-banner-nav a[aria-current=page]::after {content:'';position:absolute;bottom:2px;left:0;right:0;height:2px;background:#dba44c;}
body.heading-index .site-header nav a:hover {color:#ffac70;}
body.heading-index .site-header :is(a,summary):focus-visible {outline:2px solid #f4a162;outline-offset:5px;}
body.heading-index .homepage-mobile-nav {display:none;}
@media(max-width:900px) {
 body.heading-index .site-header {padding-left:46px;padding-right:46px;}
}
@media(max-width:700px) {
 body.heading-index .site-header {min-height:72px;}
 body.heading-index .homepage-header-inner {min-height:72px;gap:12px;}
 body.heading-index .site-header .brand {gap:9px;}
 body.heading-index .site-header .brand-mark,body.heading-index .site-header .brand-mark img {width:36px;height:46px;}
 body.heading-index .site-header .brand-copy strong {font-size:19px;letter-spacing:.005em;}
 body.heading-index .homepage-banner-nav {display:none;}
 body.heading-index .homepage-mobile-nav {display:block;flex:none;}
 body.heading-index .homepage-mobile-nav summary {display:flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;font-size:16px;font-weight:600;cursor:pointer;list-style:none;color:#fffaf0;}
 body.heading-index .homepage-mobile-nav summary::-webkit-details-marker {display:none;}
 body.heading-index .homepage-mobile-nav[open] summary {color:#ffac70;}
 body.heading-index .homepage-mobile-nav nav {position:absolute;z-index:20;right:0;top:calc(100% - 3px);min-width:180px;padding:12px 20px;background:#292825;border:1px solid #514a3e;border-radius:0 0 8px 8px;box-shadow:0 8px 18px #29282524;}
 body.heading-index .homepage-mobile-nav nav a {padding:5px 0;min-height:48px;}
 body.heading-index .homepage-mobile-nav nav a[aria-current=page] {color:#e7b75f;}
}
@media(max-width:650px) {
 body.heading-index .site-header {padding-left:40px;padding-right:40px;}
}
@media(prefers-reduced-motion:no-preference) {
 body.heading-index .site-header nav a {transition:color .15s ease;}
}
/* Homepage surfaces share one type scale, border and spacing system. */
.home-prototype {
  --home-ink: #302d29;
  --home-muted: #574f44;
  --home-paper: #fffdf8;
  --home-cream: #f8efdf;
  --home-line: #e2d4bf;
  --home-gold: #b28b3b;
  --home-orange: #f77b32;
  --home-accent: #9a4319;
  --home-radius: 16px;
  --home-gap: clamp(10px, 2vw, 18px);
  color: var(--home-ink);
  font-family: 'Source Sans 3', Arial, sans-serif;
  margin-bottom: 16px;
}

.home-prototype .prototype-hero {
  background: var(--home-cream);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  padding: clamp(12px, 2vw, 20px) clamp(16px, 4vw, 40px);
}
.home-prototype .prototype-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(68px, 32%);
  align-items: center;
  gap: var(--home-gap);
}
.home-prototype .prototype-copy h1 {
  margin: 0 0 8px;
  color: var(--home-ink);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.home-prototype .prototype-copy p {
  margin: 0;
  max-width: 36ch;
  color: var(--home-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.4;
}
.home-prototype .prototype-copy .prototype-eyebrow {
  margin-bottom: 8px;
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.home-prototype .prototype-art {
  width: min(100%, clamp(64px, 17vw, 128px));
  justify-self: center;
}
.home-prototype .prototype-art img {
  display: block;
  width: 100%;
  height: auto;
}

.home-prototype .prototype-tooltime-feature {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: var(--home-gap);
  padding: 12px 16px 14px;
  border: 1px solid #d8ae69;
  border-radius: var(--home-radius);
  background: #fff7e8;
  text-align: center;
}
.home-prototype .prototype-tooltime-feature h2 { margin: 0; width: 100%; }
.home-prototype .homepage-tooltime-logo {
  display: block;
  width: min(100%, 206px);
  height: auto;
  margin-inline: auto;
  /* The original 2078px image has 34px of extra transparency on the right. */
  transform: translateX(.8181%);
}
.home-prototype .prototype-tooltime-feature p {
  margin: 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.35;
}
.home-prototype .tooltime-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: min(100%, 164px);
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--home-orange);
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.home-prototype .tooltime-start:hover { background: #f49457; }

.home-prototype .prototype-quick { margin-top: var(--home-gap); }
.home-prototype .prototype-quick h2 {
  margin: 0 0 8px;
  color: var(--home-ink);
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.2;
}
.home-prototype .prototype-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--home-gap);
}
.home-prototype .prototype-quick-links button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-paper);
  color: var(--home-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.home-prototype .prototype-quick-links button:hover {
  background: var(--home-cream);
  border-color: var(--home-gold);
}
.home-prototype .quick-tile-copy :is(strong, small) { display: block; }
.home-prototype .quick-tile-copy strong { font-size: 16px; line-height: 1.2; }
.home-prototype .quick-tile-copy small {
  margin-top: 2px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.3;
}
.home-prototype .prototype-quick-links svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-prototype .prototype-quick-links button > svg:first-child {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 8px;
  background: #f7e8d0;
  color: var(--home-accent);
}
.home-prototype :is(button, a):focus-visible {
  outline: 3px solid var(--home-accent);
  outline-offset: 3px;
}

body.resource-home .tabs.calm-nav { margin: 8px 0 16px; }
body.resource-home .program-footer { margin-top: 20px; padding: 16px 0 20px; }
body.resource-home :is(.site-header .brand-mark, .program-footer) img {
  height: auto;
  object-fit: contain;
}
@media (min-width: 651px) and (max-width: 900px) {
  .home-prototype .prototype-quick-links button { grid-template-columns: 32px minmax(0, 1fr); }
  .home-prototype .prototype-quick-links button > svg:last-child { display: none; }
}
@media (max-width: 650px) {
  .home-prototype .prototype-quick-links { grid-template-columns: minmax(0, 1fr); }
  .home-prototype .prototype-hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(54px, 17vw, 92px);
    grid-template-areas: "eyebrow mascot" "headline mascot" "description description";
    row-gap: 4px;
  }
  .home-prototype .prototype-copy { display: contents; }
  .home-prototype .prototype-copy .prototype-eyebrow { grid-area: eyebrow; margin: 0; }
  .home-prototype .prototype-copy h1 { grid-area: headline; margin: 0; }
  .home-prototype .prototype-copy p:not(.prototype-eyebrow) {
    grid-area: description;
    max-width: none;
  }
  .home-prototype .prototype-art { grid-area: mascot; width: 100%; }
  .home-prototype .homepage-tooltime-logo { width: min(100%, 178px); }
  .home-prototype .prototype-quick-links button { min-height: 62px; }
}
@media (max-width: 400px) {
  body.resource-home.heading-index .site-header { padding-inline: 16px; }
  .home-prototype .prototype-copy h1 { font-size: 26px; }
}
