/* Responsive layouts retain the complete selected layout and its price. */
@media(max-width:900px) {
  :root {
    --gutter: clamp(18px,4vw,36px);
  }
  .hero-inner {
    gap: 25px;
    grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  }
  .hero-copy h1 {
    font-size: clamp(4.2rem,8.5vw,5.5rem);
  }
  .detail-grid {
    grid-template-columns: minmax(0,1.2fr) minmax(275px,.83fr);
    gap: 20px;
  }
  .card-info {
    grid-template-columns: minmax(0,1fr) minmax(140px,.6fr) auto;
    gap: 12px;
  }
  .flow-grid {
    gap: 30px;
  }
}

@media(max-width:700px) {
  .head-inner {
    min-height: 58px;
  }
  .letters {
    width: 66px;
  }
  .brand {
    gap: 7px;
  }
  .site-head nav,footer nav {
    gap: 16px;
  }
  .site-head nav a,footer nav a {
    font-size: .82rem;
  }
  .nav-portfolio {
    gap: 5px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 29px 25px;
  }
  .hero-copy h1 {
    font-size: clamp(3.85rem,12.7vw,5.3rem);
    margin: 15px 0 12px;
  }
  .hero-copy h1 br {
    display: none;
  }
  .hero-copy h1 br::after {
    content: " ";
  }
  .hero-deck {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.48;
    max-width: 47ch;
  }
  .collection-facts {
    display: none;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-block: 34px;
  }
  .feature-image img {
    aspect-ratio: 2.05;
  }
  .feature-info h2 {
    margin-top: 12px;
  }
  .collection-intro {
    display: block;
  }
  .collection-intro>p {
    margin-top: 10px;
  }
  h1,.property-heading h1 {
    font-size: clamp(3rem,11.3vw,4.2rem);
  }
  .filter-bar {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 10px;
    margin-top: 21px;
    padding: 13px 0;
  }
  .filter-bar label:last-child {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .filter-bar label:last-child select {
    flex: 1;
    margin: 0;
  }
  .property-card {
    grid-template-columns: minmax(88px,31%) minmax(0,1fr);
    gap: 16px;
    padding: 15px 0;
  }
  .property-card>img {
    height: clamp(115px,28vw,146px);
  }
  .card-info {
    display: block;
  }
  .card-info>svg {
    display: none;
  }
  .card-info h2 {
    font-size: clamp(1.55rem,6vw,2.4rem);
    margin: 3px 0;
    line-height: 1.04;
  }
  .card-info .eyebrow,.card-values small {
    font-size: .61rem;
    letter-spacing: .065em;
  }
  .card-values {
    margin-top: 7px;
  }
  .card-values b {
    font-size: .95rem;
    margin: 0;
  }
  .record-layouts {
    font-size: .78rem;
  }
  .property-heading {
    margin: 10px 0 17px;
  }
  .property-page {
    padding-top: 14px;
  }
  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
  .detail-grid>* {
    width: 100%;
    min-width: 0;
  }
  .layout-card {
    position: static;
    padding: 18px;
  }
  .gallery-img {
    aspect-ratio: 1.72;
  }
  .ref-block strong {
    font-size: clamp(1.6rem,6.8vw,2.4rem);
  }
  .detail-row {
    font-size: .91rem;
  }
  .compare a {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }
  .plan-thumb img {
    height: 180px;
  }
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 12px;
  }
  .flow-form h1,.confirmed h1 {
    font-size: clamp(3.2rem,12vw,4.7rem);
    margin: 12px 0 15px;
  }
  .flow-form form {
    margin-top: 18px;
  }
  .flow-form form>.button {
    width: 100%;
  }
  .small-property img {
    width: 80px;
    height: 67px;
  }
  .total-callout {
    margin-top: 17px;
    padding-top: 13px;
  }
  .balance {
    display: block;
    padding: 22px;
  }
  .balance dl {
    margin-top: 16px;
    border-top: 1px solid #aaa68f;
    padding-top: 12px;
  }
  .balance dl>div {
    min-width: 34%;
    border: 0;
    padding: 0;
  }
  .balance dd {
    font-size: 2rem;
  }
  .holding-link {
    gap: 15px;
  }
  .holding-link img {
    width: 95px;
    height: 104px;
  }
  .holding-link h3 {
    font-size: 1.65rem;
  }
  .activity-item {
    font-size: .9rem;
  }
  .dialog-actions .button,.quiet {
    padding: 9px 12px;
  }
  .foot-inner {
    min-height: 77px;
  }
}

.view-switch button[aria-pressed="true"]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--kogane);
  border: 1px solid #57743e;
  margin-right: 7px;
}

.calculation .detail-row:nth-child(4) dd,.receipt-side>dl .detail-row:nth-child(4) dd,.receipt-confirm>dl .detail-row:nth-child(4) dd {
  background: var(--kogane);
  padding: 2px 5px;
}

/* In the cover, these are the actual property and portfolio routes. The host
   measures the embedded content so the selected screen fits at every width. */
.device-preview,.device-preview body {
  height: auto;
  overflow: hidden;
  background: var(--paper);
}

.device-preview #app {
  display: flow-root;
  min-height: 0;
}

.device-preview .site-head,.device-preview footer,.device-preview .back,.device-preview .skip {
  display: none;
}

.device-preview .property-page,.device-preview .portfolio {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.device-preview .property-page {
  display: flex;
  flex-direction: column;
}

.device-preview .property-heading {
  order: 2;
  margin: 0;
  padding: 15px 20px 7px;
}

.device-preview .property-heading h1 {
  font-size: clamp(1.95rem,6vw,3rem);
  margin: 3px 0;
}

.device-preview .property-heading .place {
  font-size: .78rem;
}

.device-preview .property-heading .eyebrow {
  font-size: .64rem;
}

.device-preview .detail-grid {
  display: contents;
}

.device-preview .gallery {
  order: 1;
}

.device-preview .gallery-img {
  aspect-ratio: 1.88;
  object-fit: cover;
}

.device-preview .gallery-meta,.device-preview .image-label,.device-preview .image-expand {
  display: none;
}

.device-preview .layout-card {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0,1fr);
  gap: 14px;
  order: 3;
  position: static;
  border: 0;
  background: transparent;
  padding: 0 20px 15px;
}

.device-preview .layout-card>*,.device-preview .details-below {
  display: none;
}

.device-preview .layout-card .preview-layout {
  display: block;
  border-right: 1px solid var(--rule);
  padding-right: 14px;
}

.device-preview .layout-card .ref-block {
  display: block;
}

.device-preview .ref-block>span {
  font-size: .58rem;
}

.device-preview .ref-block strong {
  font: 600 clamp(.82rem,2.6vw,1.04rem)/1.35 var(--sans);
  margin-top: 1px;
}

.device-preview .portfolio {
  padding: 22px;
}

.device-preview .portfolio h1 {
  font-size: 2.65rem;
  margin: 8px 0;
}

.device-preview .balance {
  display: block;
  margin: 14px 0 9px;
  padding: 16px 18px;
}

.device-preview .balance dl {
  display: flex;
  gap: 26px;
  padding: 9px 0 0;
  margin-top: 12px;
  border-top: 1px solid #aaa68f;
}

.device-preview .balance dl>div {
  padding: 0;
  border: 0;
}

.device-preview .balance strong {
  font-size: 2.7rem;
}

.device-preview .balance dd {
  font-size: 1.65rem;
}

.device-preview .account-tabs {
  margin-bottom: 10px;
}

.device-preview .empty {
  padding: 4px 0 0;
}

.device-preview .empty h2,.device-preview .holding-list h2 {
  font-size: 1.75rem;
}

.device-preview .empty p {
  margin: 5px 0;
  font-size: .86rem;
}

.device-preview .empty .button,.device-preview .reset-link,.device-preview .holding-link:nth-of-type(n+2) {
  display: none;
}

.device-preview .holding-link {
  padding: 10px 0;
}

.device-preview .holding-link img {
  width: 75px;
  height: 75px;
}

.device-preview .holding-link h3 {
  font-size: 1.3rem;
}

@media(max-width:450px) {
  .device-preview .property-heading {
    padding: 10px 14px 7px;
  }
  .device-preview .layout-card {
    padding: 0 14px 12px;
    gap: 9px;
  }
  .device-preview .layout-card .preview-layout {
    font-size: .61rem;
    padding-right: 9px;
  }
  .device-preview .portfolio {
    padding: 14px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
  }
}

.property-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.property-tools .detail-nav {
  border: 0;
  gap: 17px;
}

.property-tools .detail-nav a {
  color: #405035;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.device-preview .property-tools {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.preview-panel {
  position: relative;
}

.preview-loading {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  aspect-ratio: 1.88;
  object-fit: cover;
}

@media(max-width:700px) {
  .property-tools .detail-nav,.property-tools {
    gap: 10px;
  }
  .property-tools .detail-nav a,.property-tools .back {
    font-size: .77rem;
  }
}
