.editorial-hero.simple-hero {
  align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 70px);
}
.simple-hero .hero-copy { position: static; padding-top: 0; }
.home-quick-panel {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #ccd7c3;
  border-radius: 8px;
  background: #fffdf7;
}
.home-quick-panel h2 {
  margin: 0 0 18px;
  font: 35px/1.2 Georgia, serif;
}
.home-quick-panel form { display: grid; gap: 9px; }
.home-quick-panel label { font-weight: 700; font-size: 14px; }
.home-quick-panel .button { width: 100%; min-height: 44px; margin-top: 6px; }
.home-quick-status { font-size: 13px; margin: 12px 0 0; }
.home-quick-status:empty { margin: 0; }
.home-quick-panel h3 { font: 23px/1.25 Georgia, serif; margin: 17px 0 8px; }
.home-quick-panel ul { list-style: none; margin: 0; padding: 0; }
.home-quick-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e0e7d8;
}
.home-quick-panel li span { overflow-wrap: anywhere; font: 19px/1.35 Georgia, serif; }
.home-quick-panel li button, .result-copy {
  border: 1px solid #bfccb7;
  border-radius: 4px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  background: #fff;
  color: #254f3c;
  cursor: pointer;
}
.home-quick-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.home-quick-actions a, .home-quick-directory { font-size: 13px; }
.home-quick-directory { display: inline-block; margin-top: 15px; }
.home-optional, .naming-steps, .generator-options, .result-options {
  padding-block: 14px;
}
.home-optional > summary, .naming-steps > summary, .generator-options > summary,
.result-options > summary, .result-details > summary, details.case-card > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.home-optional > .home-live-demo { margin-block: 14px; }
.generator-options[open] > summary, details.case-card[open] > summary {
  margin-bottom: 15px;
}
.simple-generate { margin: 0; }
.result-details { margin-top: 12px; }
.result-details[open] > summary { margin-bottom: 12px; }
.result-copy { align-self: start; margin-top: 6px; }
.simple-result-actions { margin-top: 16px; }
.simple-result-actions .trial-transfer-bar { margin: 0; padding: 0; border: 0; background: transparent; }
.result-options .result-sort { margin: 10px 0; }
@media (max-width: 800px) {
  .editorial-hero.simple-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .simple-hero h1 { font-size: clamp(35px, 8vw, 46px); }
  .simple-hero .hero-copy > p { margin-bottom: 0; }
  .home-quick-panel h2 { font-size: 27px; margin-bottom: 12px; }
}

/* Photographic entry points for the three collections. */
.category-card .collection-poster {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: end;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  color: #fffdf6;
  background: #273f33;
}
.collection-poster img, .collection-poster::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.collection-poster img {
  object-fit: cover;
  object-position: center;
}
.cat-story .collection-poster img { object-position: 50% 70%; }
.collection-poster::after {
  content: "";
  background: linear-gradient(180deg, transparent 28%, rgba(17, 24, 20, .58) 68%, rgba(17, 24, 20, .94));
}
.collection-poster-copy { position: relative; z-index: 1; padding: 16px 21px 19px; }
.collection-poster-copy > span { font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.category-card .collection-poster h3 {
  margin: 5px 0 0;
  color: inherit;
  font: 400 clamp(25px, 2.6vw, 37px)/1.12 Georgia, serif;
}
.collection-poster:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.collection-poster:focus-visible { outline: 3px solid #f7e4a3; outline-offset: -6px; }
.home-photo-credits { margin-top: 8px; font-size: 12px; }
.home-photo-credits summary { cursor: pointer; }
.home-photo-credits p { margin: 6px 0 0; }
#tool-results-heading { scroll-margin-top: 85px; }

/* Home sections share a smaller rhythm on both desktop and narrow screens. */
.home-main {
  --home-section-space: clamp(18px, 3vw, 32px);
  --home-card-space: clamp(14px, 2vw, 20px);
}
.home-main .editorial-hero.simple-hero {
  padding-block: clamp(18px, 3vw, 34px) var(--home-section-space);
  gap: clamp(16px, 4vw, 44px);
  align-items: start;
}
.home-main .simple-hero h1 { margin-block: 12px 14px; }
.home-main .simple-hero .hero-copy > p { margin: 0; }
.home-main .home-quick-panel { padding: var(--home-card-space); }
.home-main .home-quick-panel h2 { margin-bottom: 11px; }
.home-main #home-quick-results ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  column-gap: 12px;
}
.home-main > :is(.discover, .featured-section, .briefs-section, .journal-section, .collection-index,
                 .mood-section, .notebook-section, .world-workshop, .naming-edits, .further-reading, .catalog-faq) {
  padding-block: var(--home-section-space);
}
.home-main > .home-optional { padding-block: 8px; }
.home-main .directory-search { margin: 0 0 var(--home-card-space); }
.home-main .section-head { margin-bottom: var(--home-card-space); }
.home-main .category-copy { padding: var(--home-card-space); }
.home-main .category-copy > p { margin-bottom: 12px; min-height: 0; }
.home-main .category-copy .subject-links { margin-bottom: 12px; }
.home-main .category-copy .name-sampler { margin-top: 0; padding-top: 8px; }
.home-main .name-board dl { margin-block: 12px; }
.home-main .name-board dl > div { padding-block: 9px; }
.home-main .family-grid > a { padding: var(--home-card-space); min-height: 0; }
.home-main .family-grid > a > small { margin-top: 10px; }
.home-main .family-grid p { margin-bottom: 12px; }
.home-main .choose-band > .shell { padding-block: var(--home-section-space); }
@media (max-width: 600px) {
  .home-main .collection-poster { aspect-ratio: 16 / 9; }
  .home-main .simple-hero h1 { font-size: clamp(34px, 8.2vw, 45px); }
}

.home-tool-search { position: relative; }
.home-tool-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding-inline: 11px;
  border: 1px solid #aebda6;
  border-radius: 5px;
  background: white;
}
.home-tool-search-field:focus-within { outline: 2px solid #4b795b; outline-offset: 2px; }
.home-tool-search-field .action-icon { width: 18px; height: 18px; }
.home-tool-search-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #254f3c;
  font: inherit;
  font-size: 16px;
}
.home-tool-hint { margin: 0; font-size: 12px; color: #4b604f; }
.home-tool-suggestions {
  position: absolute;
  inset: calc(100% + 5px) 0 auto;
  z-index: 5;
  max-height: 270px;
  overflow-y: auto;
  border: 1px solid #c9d5bf;
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: 0 8px 18px #254f3c26;
}
.home-tool-suggestions button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border: 0;
  border-bottom: 1px solid #e0e7d8;
  background: transparent;
  color: #254f3c;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.home-tool-suggestions button:last-child { border-bottom: 0; }
.home-tool-suggestions button:hover,
.home-tool-suggestions button:focus-visible { background: #edf1e7; outline-offset: -3px; }
.home-tool-suggestions small { font-size: 11px; }
.home-tool-suggestions p { margin: 0; padding: 10px 11px; font-size: 13px; }

.home-reading-case {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 13px;
  border-top: 1px solid #dbe0d0;
  padding: clamp(15px, 2vw, 22px) 0;
}
.home-reading-case h3 { margin: 0 0 10px; }
.home-reading-case p + p { margin-top: 10px; }
.home-reading-case a {
  display: inline-block;
  margin-top: 13px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-subject-help {
  box-sizing: border-box;
  border: 1px solid #cbd7bf;
  border-radius: 5px;
  padding: var(--home-card-space);
  background: #edf1e6;
}
.home-subject-help ul { margin: 0; padding: 0; list-style: none; }
.home-subject-help li + li { border-top: 1px solid #d3decb; }
.home-subject-help li a {
  display: block;
  padding-block: 8px;
  color: #254f3c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.home-subject-help li a:hover { text-decoration: underline; }
@media (min-width: 1001px) {
  .home-subject-help {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
  }
  .home-subject-help-intro { position: relative; padding-left: 58px; }
  .home-subject-help-intro .icon-badge { position: absolute; top: 4px; left: 0; }
}
@media (max-width: 460px) {
  .home-reading-case { grid-template-columns: 1fr; gap: 8px; }
}

/* Give the workshop brief its own row so the four exercises can use both columns. */
.home-main .world-workshop-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-card-space);
}
.world-workshop-overview {
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  align-items: flex-start;
  padding: var(--home-card-space);
  border: 1px solid #dbe0d0;
  border-radius: 6px;
  background: #f0f1e6;
}
.world-workshop-overview .world-brief { min-width: 0; }
.world-workshop-overview h3 { margin: 5px 0 9px; }
.world-workshop-overview p { margin: 0 0 7px; }
.world-workshop .world-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-card-space);
}
.world-workshop .world-steps > article {
  min-width: 0;
  padding: var(--home-card-space);
  border: 1px solid #dce1d0;
  border-radius: 6px;
  background: #fffdf8;
}
.world-workshop .world-steps > article > span { align-self: flex-start; }
.world-workshop .world-steps > article > div { min-width: 0; }
.world-workshop .world-steps a { display: inline-block; padding-block: 4px; }
@media (max-width: 720px) {
  .world-workshop .world-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .world-workshop-overview { flex-direction: column; gap: 8px; }
}

.home-naming-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  padding-block: var(--home-section-space);
  border-bottom: 1px solid #dbe0d0;
}
.home-example-story h2 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); }
.home-example-story p, .home-example-test p { margin: 0; line-height: 1.65; }
.home-example-test { padding: var(--home-card-space); border: 1px solid #d5ddce; border-radius: 6px; background: #fffdf7; }
.home-example-test dl { margin: 0 0 10px; }
.home-example-test dl > div { display: grid; grid-template-columns: minmax(7.5rem, .75fr) minmax(0, 1.25fr); gap: 8px; padding: 6px 0; }
.home-example-test dl > div + div { border-top: 1px solid #e2e7da; }
.home-example-test dt { font-weight: 700; }
.home-example-test dd { margin: 0; }
.home-example-test a { display: inline-block; margin-top: 9px; text-decoration: underline; text-underline-offset: 3px; }
.home-site-info { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-block: 8px; font-size: 13px; }
.home-site-info a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .home-naming-example { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .home-example-test dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
