/* Home layout refinement. Loaded after home_redesign.css and home_search.css.
   Existing map, search, photo and native details controls retain their contracts. */

/* Illustrated guides: native horizontal scrolling scales with the guide list. */
body.page-home .home-parent-guide {
  order:4;
  scroll-margin-top:100px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:18px;
  margin:24px 0 0;
  padding:clamp(18px,2.4vw,30px);
  border:1px solid var(--home-line);
  border-radius:var(--radius-xl, 24px);
  background:var(--brand-mint,#edf6e9);
  color:var(--home-ink);
}
body.page-home .home-discover { margin-bottom:0; }
body.page-home .home-parent-guide ~ .home-steps-lite { margin-top:24px; padding-top:8px; }
body.page-home .home-parent-guide h2 {
  margin:10px 0 12px;
  max-width:20em;
  font-size:clamp(26px,2.4vw,34px);
  line-height:1.15;
  text-wrap:balance;
  letter-spacing:-.025em;
}
body.page-home .home-parent-guide h2 a { color:inherit; text-decoration:none; }
body.page-home .home-parent-guide__copy > p { margin:0; max-width:43em; color:var(--home-muted); font-size:15px; line-height:1.65; }
body.page-home .home-parent-guide__destinations {
  grid-column:1/-1; display:grid; grid-auto-flow:column; grid-auto-columns:31%;
  gap:18px; min-width:0; overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scroll-padding-inline:3px; scrollbar-width:none;
  padding:7px 3px 9px; margin:-7px -3px -9px;
}
body.page-home .home-parent-guide__controls { display:flex; align-items:center; gap:6px; align-self:center; grid-column:3; grid-row:1; }
body.page-home .home-parent-guide__controls[hidden], body.page-home .home-parent-guide__controls button[hidden] { display:none; }
body.page-home .home-parent-guide__destinations::-webkit-scrollbar { display:none; }
body.page-home .home-parent-guide__controls button { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--home-line); border-radius:50%; background:var(--home-paper,#fff); color:var(--home-green); font-size:22px; cursor:pointer; }
body.page-home .home-parent-guide__controls button:disabled { opacity:.35; cursor:default; }
body.page-home .home-parent-guide__controls button:not(:disabled):hover { background:var(--home-green); color:#fff; }
body.page-home .home-parent-guide__destination { scroll-snap-align:start; }
body.page-home .home-parent-guide__destinations:focus-visible,
body.page-home .home-parent-guide button:focus-visible { outline:3px solid var(--home-green); outline-offset:4px; }
body.page-home .home-parent-guide__destinations a:focus-visible { outline-offset:-3px; }
body.page-home .home-parent-guide__destination {
  display:flex; flex-direction:column; min-width:0; overflow:hidden;
  background:var(--home-paper,#fff); border-radius:var(--radius-lg, 16px);
  color:var(--home-ink); text-decoration:none;
}
body.page-home .home-parent-guide__destination img { display:block; width:100%; height:auto; aspect-ratio:1.85; object-fit:cover; }
body.page-home .home-parent-guide__destination-copy { position:relative; display:flex; flex:1; flex-direction:column; gap:6px; padding:13px 36px 15px 15px; }
body.page-home .home-parent-guide__destination-note { color:var(--home-muted); font-size:12px; line-height:1.35; }
body.page-home .home-parent-guide__destination strong { font-size:17px; font-weight:700; line-height:1.35; }
body.page-home .home-parent-guide__destination-arrow { position:absolute; right:15px; bottom:18px; color:var(--home-green); font-size:21px; line-height:1; }
body.page-home .home-parent-guide__footer { grid-column:1/-1; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px 20px; }
body.page-home .home-parent-guide__shortcuts, body.page-home .home-parent-guide__actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 24px; }
body.page-home .home-parent-guide__actions { margin-top:0; grid-column:1; grid-row:1; }
body.page-home .home-parent-guide__shortcuts { grid-column:2; grid-row:1; justify-content:center; }
body.page-home .home-parent-guide__shortcuts a, body.page-home .home-parent-guide__sport { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--home-green); font-size:14px; font-weight:650; text-underline-offset:4px; }
body.page-home .home-parent-guide__shortcuts a { text-decoration:underline; text-decoration-color:var(--home-line); }
body.page-home .home-parent-guide .home-redesign-primary { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-width:44px; min-height:44px; padding:12px 20px; border-radius:var(--radius-lg, 16px); background:var(--home-green); color:#fff; font-size:14px; font-weight:650; text-decoration:none; }
body.page-home .home-parent-guide a:hover { text-decoration:underline; text-underline-offset:4px; }
body.page-home .home-parent-guide__destination:hover { text-decoration:none; }
body.page-home .home-parent-guide__destination:hover strong { text-decoration:underline; text-underline-offset:4px; }
body.page-home .home-parent-guide a:focus-visible { outline:3px solid var(--home-green); outline-offset:5px; }
@keyframes guide-card-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
@media (prefers-reduced-motion:no-preference) {
  body.page-home .home-parent-guide__destination { animation:guide-card-float 4.8s ease-in-out infinite; animation-play-state:paused; }
  body.page-home .home-parent-guide__destination:nth-child(2n) { animation-delay:-1.8s; }
  body.page-home .home-parent-guide__destination:nth-child(3n) { animation-delay:-3.6s; }
  body.page-home .home-parent-guide[data-guide-motion-state="running"] .home-parent-guide__destination { animation-play-state:running; }
  body.page-home .home-parent-guide:has(:focus-visible) .home-parent-guide__destination { animation-play-state:paused; }
}
@media (hover:hover) {
  body.page-home .home-parent-guide .home-parent-guide__destination:hover { animation-play-state:paused; box-shadow:0 6px 16px #173c2414; }
}
@media (prefers-reduced-motion:reduce) {
  body.page-home .home-parent-guide__destination { animation:none; }
}
@media (max-width:1024px) {
  body.page-home .home-parent-guide__footer { grid-template-columns:minmax(0,1fr) auto; gap:12px; }
  body.page-home .home-parent-guide__controls { grid-column:2; }
  body.page-home .home-parent-guide__shortcuts { grid-column:1/-1; grid-row:2; justify-content:flex-start; }
}
@media (max-width:760px) {
  body.page-home .home-parent-guide { grid-template-columns:minmax(0,1fr); gap:16px; padding:20px; }
  body.page-home .home-parent-guide h2 { font-size:28px; margin:10px 0 12px; }
  body.page-home .home-parent-guide__destinations { gap:12px; grid-auto-columns:82%; }
  body.page-home .home-parent-guide__controls { justify-self:end; margin-top:0; }
  body.page-home .home-parent-guide__destination img { aspect-ratio:1.75; }
  body.page-home .home-parent-guide__destination-copy { padding:12px 32px 14px 12px; }
  body.page-home .home-parent-guide__destination-note { min-height:0; }
  body.page-home .home-parent-guide__destination strong { font-size:17px; }
  body.page-home .home-parent-guide__destination-arrow { bottom:10px; right:12px; font-size:18px; }
  body.page-home .home-parent-guide__footer { padding-top:0; }
  body.page-home .home-parent-guide__shortcuts { gap:4px 18px; }
  body.page-home .home-parent-guide__actions { gap:8px 20px; margin-top:0; }
}
body.page-home .home-parent-guide__cta-short { display:none; }
@media (max-width:360px) {
  body.page-home .home-parent-guide__cta-full, body.page-home .home-parent-guide__cta-arrow { display:none; }
  body.page-home .home-parent-guide__cta-short { display:inline; }
  body.page-home .home-parent-guide .home-redesign-primary { padding:10px 8px; gap:6px; font-size:13px; }
  body.page-home .home-parent-guide__controls { gap:4px; }
  body.page-home .home-parent-guide__footer { column-gap:6px; }
  body.page-home .home-parent-guide { padding:18px; }
  body.page-home .home-parent-guide h2 { font-size:26px; }
  body.page-home .home-parent-guide__destinations { gap:10px; }
  body.page-home .home-parent-guide__destination-note { font-size:11px; }
}

body.page-home .home-hero.panel {
  padding-top: 32px;
}

body.page-home .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
}

body.page-home .home-hero-grid > .home-hero-copy {
  align-self: center;
}

body.page-home .home-hero-grid .home-hero-copy h1 {
  font-size: clamp(36px, 3.5vw, 48px);
  line-height: 1.12;
  margin: 0;
  max-width: 18em;
}

body.page-home .home-hero-grid .home-hero-copy > p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  max-width: 37em;
}

body.page-home .home-hero-grid .home-hero-copy > .home-hero-map-hint {
  margin-top: 12px;
  color: var(--home-green);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

body.page-home .home-hero-grid .home-hero-visual {
  align-self: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}

body.page-home .home-hero-grid .home-hero-slide-grid {
  grid-template-rows: repeat(2, clamp(112px, 10.5vw, 148px));
  gap: 10px;
}

body.page-home .home-hero-visual .home-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--home-line);
}

body.page-home .home-hero-visual .home-hero-stat.km-stat-card {
  min-width: 0;
  min-height: 64px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-home .home-hero-visual .home-hero-stat.km-stat-card:first-child {
  border-right: 1px solid var(--home-line);
}

body.page-home .home-hero-visual .km-stat-details {
  min-width: 0;
}

body.page-home .home-hero-visual .home-hero-stat span {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Search uses the complete hero width, independent of the copy column. */
body.page-home .home-hero-grid > .home-hero-search-area {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

body.page-home .home-hero-search-area .home-hero-search-deck {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-home .home-hero-search-area .home-search {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-home .home-hero-search-area .home-search-primary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
}

body.page-home .home-hero-search-area .home-search-show-map-btn {
  height: 50px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius-lg, 16px);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  body.page-home .home-hero-search-area .home-search-primary-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
  }

  body.page-home .home-hero-search-area .home-search-show-map-btn {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    border-radius: var(--radius-md, 12px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.page-home .home-hero-search-area .home-search-show-map-btn > span {
    display: none !important;
  }

  body.page-home .home-hero-search-area .home-search-show-map-btn > svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }
}

body.page-home .home-hero-search-area .home-search-refine {
  margin-top: 10px;
}

body.page-home .home-hero-search-area .home-search-refine > summary {
  min-height: 44px;
  padding: 10px 14px;
}

body.page-home .home-hero-search-area .home-search-refine .home-search-filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  margin-top: 8px;
  box-sizing: border-box;
}

body.page-home .home-hero-search-area .home-search-refine :is(.km-location-tree, .km-category-select, .km-age-select) {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  width: 100%;
}

body.page-home .home-hero-search-area .home-search-refine :is(.km-tree-trigger, .km-category-trigger, .km-age-trigger) {
  min-height: 44px;
  font-size: 13.5px;
}

body.page-home .home-hero-search-area .home-age-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}

body.page-home .home-hero-search-area .home-age-range > legend {
  padding: 0;
  margin-bottom: 6px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.page-home .home-hero-search-area .home-age-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

body.page-home .home-hero-search-area .home-age-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  box-sizing: border-box;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-md, 12px);
  background: #fff;
  color: var(--home-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}

body.page-home .home-hero-search-area .home-age-field input:focus-visible {
  outline: 2px solid var(--home-green);
  outline-offset: 2px;
  border-color: var(--home-green);
}

body.page-home .home-hero-search-area .home-search-refine .home-search-reset-btn {
  grid-column: auto;
  grid-row: auto;
  align-self: end;
  justify-self: stretch;
  min-width: 0;
  min-height: 44px;
  width: auto;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.3;
  white-space: normal;
}

/* Keep the map action legible in every state, overriding historic hover layers. */
body.page-home .home-hero .home-redesign-actions {
  margin-top: 20px;
  gap: 10px;
}

body.page-home .home-hero .home-redesign-actions .home-redesign-primary,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary:link,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary:visited,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary:hover,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary:focus-visible,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary:active {
  min-height: 48px;
  padding: 12px 18px;
  background: var(--brand-turf, #136f38);
  border: 1px solid var(--brand-turf, #136f38);
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  transform: none;
  filter: none;
}

body.page-home .home-hero .home-redesign-actions .home-redesign-primary:hover,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary:active {
  background: var(--brand-spruce, #0d4924);
  border-color: var(--brand-spruce, #0d4924);
  color: #fff;
}

body.page-home .home-hero .home-redesign-actions .home-redesign-primary > span,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary .home-btn-icon,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary:hover .home-btn-icon {
  background: transparent;
  color: inherit;
  transform: none;
}

body.page-home .home-hero .home-redesign-actions .home-redesign-primary .home-btn-icon svg {
  stroke: currentColor;
  transform: none;
}

body.page-home .home-hero .home-redesign-actions .home-redesign-primary::before,
body.page-home .home-hero .home-redesign-actions .home-redesign-primary::after {
  content: none;
  display: none;
  animation: none;
}

body.page-home .home-hero .home-redesign-actions .home-redesign-secondary {
  min-height: 48px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--home-green);
  color: var(--home-green);
  box-shadow: none;
  text-decoration: none;
  transform: none;
}

body.page-home .home-hero .home-redesign-actions > a {
  justify-content: center;
  height: auto;
  border-radius: var(--radius-lg, 16px);
  line-height: 1.35;
  text-align: center;
}

body.page-home .home-hero .home-redesign-actions > a:focus-visible {
  outline: 3px solid var(--home-green);
  outline-offset: 4px;
}

body.page-home .home-hero .home-redesign-actions .home-redesign-secondary:hover {
  background: #eef7f0;
  text-decoration: none;
}

body.page-home .home-hero .home-redesign-actions .home-btn-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: transparent;
}

/* Inline #add-place used auto margins that shrink a flex child to its content. */
body.page-home #add-place.home-owner-banner {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  body.page-home .home-hero-search-area .home-search-refine .home-search-filters-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  body.page-home .home-hero-search-area .home-search-refine :is(.km-location-tree, .km-category-select) {
    grid-column: span 3;
    grid-row: 1;
  }

  body.page-home .home-hero-search-area .home-search-refine :is(.km-age-select, .home-age-range) {
    grid-column: span 4;
    grid-row: 2;
  }

  body.page-home .home-hero-search-area .home-search-refine .home-search-reset-btn {
    grid-column: span 2;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  body.page-home .home-hero-search-area .home-search-refine .home-search-filters-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  body.page-home .home-hero-search-area .home-search-refine .km-location-tree {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    order: 1 !important;
  }

  body.page-home .home-hero-search-area .home-search-refine .km-category-select {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    order: 2 !important;
  }

  body.page-home .home-hero-search-area .home-search-refine :is(.km-age-select, .home-age-range) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    order: 3 !important;
  }

  body.page-home .home-hero-search-area .home-search-refine .home-search-reset-btn {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    margin-left: 0 !important;
    order: 4 !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

@media (max-width: 960px) {
  body.page-home .home-hero.panel {
    padding-top: 20px;
  }

  body.page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body.page-home .home-hero-grid > .home-hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  body.page-home .home-hero-grid > .home-hero-search-area {
    grid-column: 1;
    grid-row: 2;
  }

  body.page-home .home-hero-grid > .home-hero-visual {
    grid-column: 1;
    grid-row: 3;
    max-width: 600px;
    justify-self: center;
  }

  body.page-home .home-hero-grid .home-hero-copy h1 {
    font-size: clamp(28px, 5vw, 40px);
    max-width: 20em;
  }

  body.page-home .home-hero-grid .home-hero-slide-grid {
    grid-template-rows: repeat(2, clamp(88px, 18vw, 136px));
  }
}

@media (max-width: 620px) {
  body.page-home .home-hero.panel {
    padding-top: 12px;
  }

  body.page-home .home-hero-grid {
    gap: 16px;
  }

  body.page-home .home-hero-grid .home-hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.16;
  }

  body.page-home .home-hero-grid .home-hero-copy > p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  body.page-home .home-hero-grid .home-hero-copy > .home-hero-map-hint {
    font-size: 13px;
  }

  body.page-home .home-hero .home-redesign-actions {
    margin-top: 14px;
    gap: 8px;
  }

  body.page-home .home-hero .home-redesign-actions > a {
    flex: 1 1 auto;
    font-size: 13px;
  }

  body.page-home .home-hero .home-redesign-actions .home-redesign-primary {
    padding-inline: 12px;
  }

  body.page-home .home-hero-search-area .home-search-primary-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
  }

  body.page-home .home-hero-search-area .home-search-refine > summary {
    gap: 6px;
    padding: 10px 12px;
  }

  body.page-home .home-hero-search-area .home-refine-hint {
    display: none;
  }

  body.page-home .home-hero-search-area .home-refine-chevron {
    margin-left: auto;
  }

  body.page-home .home-hero-search-area .home-search-refine .home-search-filters-row {
    padding: 10px;
    gap: 8px;
  }

  body.page-home .home-hero-search-area .home-age-field input {
    padding-inline: 8px;
  }

  body.page-home .home-hero-search-area .home-search-refine .home-search-reset-btn {
    padding-inline: 4px;
    font-size: 12px;
  }

  body.page-home .home-hero-search-area .home-search-reset-btn svg {
    display: none;
  }

  body.page-home .home-hero-visual .home-hero-stats {
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
  }

  body.page-home .home-hero-visual .home-hero-stat.km-stat-card {
    min-height: 56px;
    padding: 0 4px;
    gap: 8px;
  }

  body.page-home .home-hero-visual .home-hero-stat .km-stat-icon-wrapper {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  body.page-home .home-hero-visual .home-hero-stat span {
    font-size: 11px;
  }
}

/* Keep side photographs close to their original 3:2 framing on phones. */
@media (max-width: 767px) {
  body.page-home .home-hero-grid .home-hero-slide-grid {
    aspect-ratio: 1.85;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.page-home .home-hero-grid .home-hero-photo-card img {
    object-position: center;
  }
}

/* Long AZ category labels need the complete row on narrow phones. */
@media (max-width: 360px) {
  body.page-home .home-hero-search-area .home-search-refine .km-location-tree {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.page-home .home-hero-search-area .home-search-refine .km-category-select {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.page-home .home-hero-search-area .home-search-refine .home-age-range,
  body.page-home .home-hero-search-area .home-search-refine .home-search-reset-btn {
    grid-row: 3;
  }
}

/* Keep both destinations in one compact row before the mobile search. */
@media (max-width: 620px) {
  body.page-home .home-hero .home-redesign-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.page-home .home-hero .home-hero-copy .home-redesign-actions > :is(.home-redesign-primary, .home-redesign-secondary) {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 10px 8px;
    box-sizing: border-box;
    white-space: normal;
  }

  body.page-home .home-hero .home-redesign-actions > a:only-child {
    grid-column: 1 / -1;
  }

  body.page-home .home-hero .home-redesign-actions > a > span:not(.home-btn-icon) {
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal;
  }
}

/* Desktop counterpart of the playful mobile photo frames. Keep the collage
   stationary so rounded corners move without scaling or clipping the photo. */
@media (min-width: 961px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.page-home .home-hero .home-hero-photo-card {
    transition: border-radius 520ms cubic-bezier(.2,.7,.3,1),
      border-color 350ms ease, box-shadow 350ms ease;
  }
  body.page-home .home-hero .home-hero-photo-card:hover {
    transform: none;
    border-color: var(--brand-celadon, #a8d59b);
    box-shadow: 0 10px 24px -6px rgba(16,60,30,.2);
  }
  body.page-home .home-hero .home-hero-photo-main:hover {
    border-radius: 28px 88px 28px 56px;
  }
  body.page-home .home-hero .home-hero-photo-side-top:hover {
    border-radius: 58px 20px 24px 20px;
  }
  body.page-home .home-hero .home-hero-photo-side-bottom:hover {
    border-radius: 24px 60px 24px 20px;
  }
  body.page-home .home-hero .home-hero-photo-card:hover img { transform: none; }
  body.page-home .home-hero .home-hero-photo-card::after { display: none; }
}
