/*
Theme Name: SR 16
Version: 2.0.5
Text Domain: sr16-firma
*/

/* Brand: Bydgoszcz granaries on the Brda – navy river, brick, white timber. */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #14262e;
  --muted: #4a5e66;
  --accent: #1f6b72;
  --accent-dark: #164f55;
  --brick: #a8432a;
  --brick-soft: #f6e7e1;
  --line: #d5dfde;
  --wash: #eef3f2;
  --paper: #ffffff;
  --radius: .9rem;
  --display: "Bricolage", "Instrument Sans", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); }
img { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: .18rem solid var(--accent); outline-offset: .2rem; border-radius: .2rem; }
.wrap { width: min(calc(100% - 2.5rem), 72rem); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.75rem; display: flex; gap: .6rem 1.75rem; align-items: center; padding-block: .7rem; }
.brand { flex: none; color: var(--ink); font-weight: 750; }
.brand a { color: inherit; text-decoration: none; }
.brand .custom-logo-link { display: block; width: clamp(8.5rem, 13vw, 10.5rem); }
.brand .custom-logo { display: block; width: 100%; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { padding: 0; margin: 0; list-style: none; display: flex; gap: .2rem; }
.site-nav a { display: block; padding: .45rem .7rem; border-radius: .5rem; font-weight: 600; font-size: .97rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--wash); color: var(--ink); }
.site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a { background: var(--wash); color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--brick); }
.header-phone { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 650; font-size: .95rem; text-decoration: none; }
.header-phone:hover { background: var(--accent-dark); color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 66rem) {
  .header-inner { flex-wrap: wrap; min-height: 4.25rem; }
  .brand .custom-logo-link { width: 8.25rem; }
  .header-phone { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0; }
  .site-nav ul { flex-wrap: wrap; }
  .has-js .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 650 .95rem/1 var(--text); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .15s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .has-js .header-phone { margin-left: .5rem; }
  .has-js .nav-toggle { margin-left: auto; }
  .has-js .site-nav { display: none; }
  .has-js.nav-open .site-nav { display: block; padding: .4rem 0 1rem; border-top: 1px solid var(--line); margin-top: .7rem; }
  .site-nav ul { flex-direction: column; gap: .15rem; }
  .site-nav a { padding: .85rem .9rem; font-size: 1.08rem; border-radius: .6rem; white-space: normal; }
  .site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a { box-shadow: inset 3px 0 0 var(--brick); }
}
@media (max-width: 26rem) {
  .header-phone span { display: none; }
  .header-phone { padding: .62rem; }
}

/* Typography & page frame */
.site-main { padding-block: clamp(1.6rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem); min-height: 55vh; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; color: var(--ink); }
h1 { max-width: 20ch; margin: 0 0 1.1rem; font-weight: 660; letter-spacing: -.022em; font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
h2 { margin: 2.6rem 0 .8rem; font-weight: 640; letter-spacing: -.012em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { margin: 0 0 .5rem; font-weight: 620; letter-spacing: 0; font-size: 1.2rem; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 68ch; }
.entry-content > p:first-child { font-size: clamp(1.14rem, 2.2vw, 1.32rem); line-height: 1.55; color: var(--muted); }
.entry-content > p { margin-block: .6rem 1rem; }
.entry-content li { margin-bottom: .35rem; }
.entry-content strong { font-weight: 650; }

/* Breadcrumbs */
.breadcrumb { margin: 0 0 1.4rem; font-size: .92rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: #9aaeb0; }
.breadcrumb a { color: var(--muted); text-decoration-color: var(--line); }
.breadcrumb a:hover { color: var(--accent); }

/* Buttons */
.sr16-action, .wp-block-button__link { display: inline-block; border-radius: 999px; background: var(--accent); color: #fff; padding: .72rem 1.25rem; font-weight: 650; line-height: 1.3; text-decoration: none; transition: background .15s; }
.sr16-action:hover, .wp-block-button__link:hover { background: var(--accent-dark); color: #fff; }
.sr16-action--ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sr16-action--ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .7rem; margin-block: 1.2rem; }

/* Cards & grids */
.sr16-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: clamp(1.3rem, 4vw, 2.2rem) 0; }
.sr16-grid > .sr16-card { margin: 0; display: flex; flex-direction: column; padding: 1.35rem 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.sr16-grid > .sr16-card:has(a:hover) { border-color: #a9bfc0; box-shadow: 0 10px 28px -18px rgba(20, 38, 46, .45); }
.sr16-card p { color: var(--muted); margin: 0 0 .7rem; }
.sr16-card > p:last-child:has(> a:only-child) { margin-block: auto 0; padding-top: .35rem; font-weight: 600; }
.sr16-grid > .sr16-card > * { margin-block-start: 0; }
.sr16-grid > .sr16-card > figure.wp-block-image:first-child { margin: -1.35rem -1.45rem 1.1rem; }
.sr16-grid > .sr16-card > h3 { margin-bottom: .45rem; }
.sr16-card > figure img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

/* Illustration heading (sub-pages) */
.sr16-page-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); align-items: center; gap: 1.4rem clamp(1.5rem, 5vw, 4rem); margin-bottom: 1.6rem; }
.sr16-page-heading h1 { margin: 0; }
.sr16-page-heading img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 47rem) {
  .sr16-page-heading { grid-template-columns: minmax(0, 1fr); }
  .sr16-page-heading img { max-width: 24rem; }
}

/* Front page: H1 + copy on the left, photo collage on the right */
.home article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(1.5rem, 4.5vw, 4rem); }
.home article > *, .home .entry-content > * { grid-column: 1 / -1; }
.home .entry-content, .home .sr16-hero { display: contents; }
.home article > h1 { grid-column: 1; grid-row: 1; align-self: end; max-width: 13ch; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; margin: clamp(.5rem, 3vw, 2.5rem) 0 1.2rem; }
.home .sr16-hero-copy { grid-column: 1; grid-row: 2; margin: 0 0 1rem; }
.home .sr16-collage { grid-column: 2; grid-row: 1 / 3; }
.sr16-hero-copy > p:first-child { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); margin-top: 0; }
.sr16-hero-copy .wp-block-buttons { margin-top: 1.5rem; }
.sr16-hero-note { font-size: .95rem; color: var(--muted); }
.sr16-collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; margin: 0; min-height: clamp(20rem, 38vw, 30rem); }
.sr16-collage > figure { margin: 0 !important; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--wash); }
.sr16-collage > figure:first-child { grid-row: 1 / 3; }
.sr16-collage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr16-collage figcaption { position: absolute; left: .6rem; bottom: .6rem; margin: 0; padding: .3rem .65rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .82rem; font-weight: 650; }
@media (max-width: 52rem) {
  .home article { grid-template-columns: minmax(0, 1fr); }
  .home article > h1, .home .sr16-hero-copy, .home .sr16-collage { grid-column: 1; grid-row: auto; }
  .sr16-collage { min-height: 0; aspect-ratio: 4 / 3; margin-top: .5rem; }
}

.sr16-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0; margin: clamp(2rem, 5vw, 3rem) 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.entry-content > .sr16-facts { max-width: none; }
.sr16-facts li { margin: 0; padding: 1.15rem 1.2rem 1.2rem 0; color: var(--muted); font-size: .97rem; }
.sr16-facts li + li { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.sr16-facts strong { display: block; margin-bottom: .15rem; font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
@media (max-width: 40rem) {
  .sr16-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Dark band (sell / CTA) */
.sr16-band, .sr16-offer-contact { max-width: none; margin-block: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.5rem, 4vw, 2.8rem); border-radius: calc(var(--radius) * 1.3); background: var(--ink); color: #dfe8e8; position: relative; overflow: hidden; }
.sr16-band::after, .sr16-offer-contact::after { content: ""; position: absolute; right: -1rem; bottom: -1.2rem; width: 13rem; height: 5rem; background: url("graphics/fala.svg") no-repeat center / contain; opacity: .5; pointer-events: none; }
.sr16-band h2, .sr16-offer-contact h2 { color: #fff; margin-top: 0; }
.sr16-band p, .sr16-offer-contact p { max-width: 60ch; }
.sr16-band a:not(.wp-block-button__link):not(.sr16-action), .sr16-offer-contact a:not(.sr16-action) { color: #9fd6d8; }
.sr16-band .wp-block-button__link, .sr16-offer-contact .sr16-action { background: #fff; color: var(--ink); }
.sr16-band .wp-block-button__link:hover, .sr16-offer-contact .sr16-action:hover { background: var(--brick-soft); color: var(--ink); }
.sr16-band .is-style-outline .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.sr16-offer-contact li { margin-bottom: .3rem; }
.sr16-offer-contact a { overflow-wrap: anywhere; }

.sr16-offer-price { max-width: 72ch; margin-block: 2rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--wash); border-radius: var(--radius); border-left: .3rem solid var(--brick); }
.sr16-offer-price > h2:first-child { margin-top: 0; }

/* Steps */
.sr16-steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; max-width: none !important; margin: 1.2rem 0 2rem; padding: 0; list-style: none; }
.sr16-steps > li { counter-increment: step; margin: 0; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--wash); color: var(--muted); }
.sr16-steps > li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .7rem; border-radius: 50%; background: var(--brick); color: #fff; font-family: var(--display); font-weight: 700; }
.sr16-steps strong { display: block; color: var(--ink); margin-bottom: .2rem; }

/* FAQ (core Details) */
.entry-content > .wp-block-details { max-width: 72ch; margin: 0; border-bottom: 1px solid var(--line); }
.entry-content > h2 + .wp-block-details { border-top: 1px solid var(--line); }
.wp-block-details > summary { position: relative; padding: 1rem 2.5rem 1rem 0; font-weight: 650; font-size: 1.05rem; cursor: pointer; list-style: none; }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: ""; position: absolute; right: .35rem; top: 1.25rem; width: .6rem; height: .6rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .15s; }
.wp-block-details[open] > summary::after { transform: translateY(.2rem) rotate(-135deg); }
.wp-block-details > summary:hover { color: var(--accent-dark); }
.wp-block-details > p { margin: 0 0 1.1rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #c9d6d7; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem 3rem; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.footer-logo img { display: block; width: 10rem; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; margin: 0; }
.footer-col h2 { margin: .3rem 0 .8rem; font-size: 1rem; letter-spacing: 0; color: #fff; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col p { margin: 0 0 .7rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: #9fd6d8; }
.site-footer address { font-style: normal; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding-block: 1.1rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #93a8ab; }
.footer-legal p { margin: 0; }
@media (max-width: 47rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

.skip { position: absolute; z-index: 30; top: .5rem; left: .5rem; padding: .6rem .9rem; background: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
@media (max-width: 36rem) {
  .wrap { width: calc(100% - 2rem); }
}

/* Floor plans: show the drawing area (82, 246, 1470 × 520) of the 1600 × 1200 source. */
.sr16-floor-plan > a { display: block; position: relative; overflow: hidden; aspect-ratio: 1470 / 520; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f8f8; }
.sr16-floor-plan > a > img { position: absolute; left: -5.5782%; top: -47.3077%; display: block; width: 108.8435%; max-width: none; height: auto; filter: grayscale(1) brightness(1.07) contrast(1.32); }

/* Galleries */
.entry-content .wp-block-gallery { gap: .6rem; }
.entry-content .wp-block-gallery img, .entry-content .wp-block-image img { border-radius: calc(var(--radius) * .7); }

/* Sale page: situations */
.sr16-scenarios { max-width: 72ch; margin-block: 2.4rem; }
.sr16-scenarios > h3 { margin: 1.6rem 0 .65rem; }
.sr16-scenarios > .sr16-situation { margin-block: 0; border-bottom: 1px solid var(--line); background: #fff; }
.sr16-situation > summary { padding: .85rem 1rem; color: var(--ink); font-weight: 650; cursor: pointer; overflow-wrap: anywhere; list-style: revert; }
.sr16-situation > summary::after { display: none; }
.sr16-situation > summary::marker { color: var(--brick); }
.sr16-situation > summary:focus-visible { outline: .15rem solid var(--accent); outline-offset: -.15rem; }
.sr16-situation[open] > summary { color: var(--accent-dark); background: var(--wash); }
.sr16-situation > p { margin: 0; padding: .85rem 1rem 1.05rem; color: var(--ink); }

/* Commercial units */
.sr16-page-heading--property { grid-template-columns: minmax(0, 1.15fr) minmax(0, .6fr); }
.sr16-page-heading--property h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.sr16-availability { max-width: 72ch; padding: 1.1rem 1.3rem; margin: 1.25rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.sr16-availability p { margin: .7rem 0 1rem; }
.sr16-status { width: fit-content; display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .7rem; border-radius: 999px; font-weight: 700; font-size: .86rem; }
.sr16-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.sr16-status--occupied { color: #6b4a1f; background: #f5ead7; }
.sr16-status--seeking { color: var(--accent-dark); background: #d8ecec; }
.sr16-status--available { color: #fff; background: var(--brick); }
.sr16-card > .sr16-status { margin-bottom: .7rem; }
.sr16-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sr16-contact-grid .sr16-card { padding: clamp(1.15rem, 3vw, 1.7rem); }
.sr16-contact-value { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
@media (max-width: 47rem) {
  .sr16-page-heading--property, .sr16-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Najem mieszkań & pokoje (page ids 5 and 7) */
:is(.page-id-5, .page-id-7) .sr16-page-heading { grid-template-columns: minmax(0, 1fr) minmax(0, .4fr); gap: 1.2rem; margin-bottom: .8rem; }
:is(.page-id-5, .page-id-7) .sr16-page-heading h1 { max-width: 22ch; }
:is(.page-id-5, .page-id-7) .sr16-page-heading img { max-width: 15rem; justify-self: end; }
.page-id-5 .entry-content > p:first-child { max-width: 58ch; margin-top: 0; }
.sr16-rental-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.7vw, 1.9rem); margin-top: clamp(1.1rem, 3vw, 1.85rem); }
.sr16-rental-options > .sr16-rental-option { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); background: #fff; }
.sr16-rental-option .sr16-rental-photo { margin: 0; background: var(--wash); }
.sr16-rental-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; }
.sr16-rental-option > .sr16-rental-copy { margin: 0; padding: clamp(1.15rem, 3vw, 1.9rem); }
.sr16-rental-copy h2 { margin: 0 0 .55rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.sr16-rental-copy p { margin: .55rem 0 .9rem; color: var(--muted); }
.sr16-rental-copy .sr16-rental-button { margin: 1.1rem 0 0; }
.sr16-rental-copy .sr16-rental-more { margin: .6rem 0 0; font-weight: 600; }
.entry-content > .sr16-rental-jump { display: none; }
.entry-content > .sr16-rental-students { max-width: none; margin-block: 1.3rem 0; padding: .95rem 1.1rem; border-radius: var(--radius); background: var(--brick-soft); }
.sr16-rental-students a { font-weight: 650; }
@media (max-width: 47rem) {
  :is(.page-id-5, .page-id-7) .sr16-page-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 5rem); gap: .55rem; }
  :is(.page-id-5, .page-id-7) .sr16-page-heading h1 { font-size: clamp(1.9rem, 6.75vw, 2.85rem); }
  .entry-content > .sr16-rental-jump { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: .75rem 1.1rem; }
  .sr16-rental-jump a { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--wash); font-size: .94rem; font-weight: 650; line-height: 1.5; text-decoration: none; }
  .sr16-rental-options { grid-template-columns: minmax(0, 1fr); }
}

.sr16-student-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); background: #fff; }
.sr16-student-hero > .sr16-student-copy { align-self: center; margin: 0; padding: clamp(1.2rem, 4vw, 3.3rem); }
.sr16-student-copy h2 { margin: 0 0 .45rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sr16-student-copy p { margin: .65rem 0 0; color: var(--muted); }
.sr16-student-copy .sr16-student-address { font-weight: 650; color: var(--brick); }
.sr16-student-copy .sr16-student-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.3rem; font-weight: 650; }
.sr16-student-hero .sr16-rental-photo { position: relative; min-height: 20rem; margin: 0; background: var(--wash); }
.sr16-student-hero .sr16-rental-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.sr16-student-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .9rem; }
.sr16-student-features > .sr16-student-feature { margin: 0; padding: 1.2rem 1.25rem; border-radius: var(--radius); background: var(--wash); }
.sr16-student-feature p { margin: 0; color: var(--muted); }
@media (max-width: 47rem) {
  .sr16-student-hero { grid-template-columns: minmax(0, 1fr); }
  .sr16-student-hero .sr16-rental-photo { min-height: 0; aspect-ratio: 1.57; }
}

/* Phone polish */
@media (max-width: 47rem) {
  .site-main { padding-top: 1.1rem; }
  .breadcrumb { margin-bottom: .9rem; font-size: .85rem; }
  .breadcrumb li:last-child { display: none; }
  .breadcrumb li:nth-last-child(2) a { text-decoration: none; }
  .sr16-page-heading { margin-bottom: 1rem; }
  .sr16-page-heading img, :is(.page-id-5, .page-id-7) .sr16-page-heading img { display: none; }
  :is(.page-id-5, .page-id-7) .sr16-page-heading { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .home article > h1 { font-size: clamp(2.3rem, 11vw, 3rem); margin-top: .3rem; }
  h2 { margin-top: 2.1rem; }
  .entry-content > p:first-child, .sr16-hero-copy > p:first-child { font-size: 1.1rem; }
  .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .wp-block-button__link, .entry-content .sr16-action { display: block; text-align: center; padding-block: .85rem; }
  .sr16-collage { aspect-ratio: 1 / 1; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { border-radius: 0; }
  .sr16-band, .sr16-offer-contact { margin-inline: -.25rem; }
  .footer-grid { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
