.living-section {
  padding-block: clamp(60px, 6.5vw, 100px);
  background: #f7f5ee;
}

.living-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 35%);
  gap: 6%;
  align-items: end;
}

.living-heading > p,
.living-story > p,
.living-tip p {
  color: var(--muted);
}

.living-selector {
  margin: clamp(24px, 2.7vw, 40px) 0 20px;
}

.living-selector fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.living-selector legend,
.living-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.living-choices {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #c8d0cd;
  border-radius: 7px;
}

.living-choice {
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.living-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 4px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.living-choice svg { width: 17px; height: 17px }
.living-choice:hover span { background: #e7e9df }
.living-choice input:checked + span { background: var(--navy); color: white }
.living-choice input:checked + span svg { color: #ffca5e }
.living-choice input:focus-visible + span { outline: 3px solid #0786c1; outline-offset: 3px }

.living-panel {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.living-section:has(.living-choice input[value="permanent"]:checked) [data-profile="seasonal"],
.living-section:has(.living-choice input[value="seasonal"]:checked) [data-profile="permanent"] {
  display: none;
}

.living-picture {
  min-height: 400px;
  position: relative;
  isolation: isolate;
  margin: 0;
  background: #b7c3be;
}

.living-picture img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.living-picture figcaption {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
  position: absolute;
  inset: auto 0 0;
  padding: 60px clamp(16px, 2vw, 32px) 18px;
  background: linear-gradient(transparent, #082333c9);
  color: white;
}

.living-picture figcaption span {
  font-weight: 600;
  font-size: 14px;
}

.living-picture figcaption small {
  font-size: 10px;
  text-align: end;
}

.living-story {
  padding: clamp(30px, 3.5vw, 58px);
  align-self: center;
}

.living-serial {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .12em;
  color: #536777;
  font-variant-numeric: tabular-nums;
}

.living-serial b { color: var(--navy) }
.living-serial span { width: 27px; height: 2px; background: var(--gold) }

.living-story h3 {
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -.045em;
  color: var(--navy);
  margin: 16px 0;
  text-wrap: balance;
}

.living-tip {
  display: flex;
  align-items: start;
  gap: 13px;
  margin: 22px 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
}

.living-tip > svg { color: var(--blue); width: 19px; height: 19px; margin-top: 2px }
.living-tip strong { font-size: 14px; color: var(--navy) }
.living-tip p { margin: 4px 0 0; font-size: 14px; line-height: 1.55 }
.living-scan {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.living-scan:hover { color: var(--navy) }

@media (max-width: 850px) {
  .living-heading { grid-template-columns: 1fr; gap: 14px }
  .living-heading > p { max-width: 585px }
  .living-panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) }
  .living-story { padding: 28px }
}

@media (max-width: 650px) {
  .living-section { padding-block: 52px }
  .living-heading > p, .living-story > p { font-size: 15px }
  .living-panel { grid-template-columns: 1fr }
  .living-picture { min-height: 0; aspect-ratio: 1.6 }
  .living-picture figcaption { padding-bottom: 12px }
  .living-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) }
  .living-choice span { height: 100%; min-height: 44px; padding: 8px; font-size: 13px; text-align: center }
  .living-story { padding: 25px 21px 28px }
  .living-story h3 { margin-block: 12px }
}

@media (forced-colors: active) {
  .living-choice input:checked + span { outline: 2px solid SelectedItem }
}
