.residence-article { grid-template-columns: minmax(0, 1fr); }
.residence-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 20px; }
.residence-breadcrumb a, .residence-services a { color: var(--blue); text-decoration: underline; }
.residence-table { min-width: 0; overflow-x: auto; }
.residence-table :is(td, th) { overflow-wrap: anywhere; }

.residence-timeline li { padding: 0 0 12px 10px; border-left: 2px solid var(--line); }
.residence-timeline li::marker { color: var(--blue); font-weight: 700; }
.residence-timeline span, .residence-services span { display: block; color: var(--muted); }

.residence-photo { margin: 0; }
.residence-photo figcaption { margin-top: 10px; color: var(--muted); }
.residence-photo-art {
  display: grid;
  grid-template-columns: minmax(0, 140px) auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef5fb;
  color: #142f47;
}

.residence-photo-width { text-align: center; border-bottom: 1px solid currentColor; }
.residence-photo-frame {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  overflow: hidden;
  aspect-ratio: 35 / 45;
  border: 2px solid #315c81;
  border-radius: 4px;
  background: white;
}

.residence-photo-frame::before, .residence-photo-frame span {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
  background: #9eb8cf;
  content: "";
}

.residence-photo-frame::before { top: 21%; width: 37%; aspect-ratio: 3 / 4; border-radius: 50%; }
.residence-photo-frame span { bottom: 12%; width: 65%; height: 31%; border-radius: 48% 48% 0 0; }
.residence-photo-height { grid-column: 2; grid-row: 2; padding-left: 8px; border-left: 1px solid currentColor; }

.residence-costs, .residence-services, .residence-checklist {
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.residence-costs div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0; }
.residence-costs div + div { border-top: 1px solid var(--line); }
.residence-costs dd { margin: 0; }
.residence-costs strong { color: var(--blue); font-size: 1.2rem; }
.residence-service-origin { margin: 0 auto 14px; padding: 10px; text-align: center; border-bottom: 2px solid #9eb8cf; }
.residence-services ul {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  padding: 0;
  list-style: none;
}

.residence-services li { padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.residence-checklist legend { padding-inline: 6px; font-weight: 700; }
.residence-checklist label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  padding-block: 6px;
  cursor: pointer;
}

.residence-checklist input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--blue); }
.residence-copy, .residence-checklist button { min-height: 44px; justify-self: start; }
[data-residence-copy][hidden], .residence-copy-status:empty { display: none; }
