/* SYP & Steyn FAQ — static site styles. Mirrors the look of the old WordPress (Assembler) site. */
:root {
  --ink: #1d2b24;
  --muted: #55615b;
  --bg: #ffffff;
  --soft: #f3f6f4;
  --line: #d6dbd8;
  --accent: #0f2a20;
  --link: #1d4d38;
  --wide: 1240px;
  --narrow: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

/* header & footer */
.site-header .wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-title { font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.lang { font-weight: 600; white-space: nowrap; }
.lang a { color: var(--muted); }
.lang a[aria-current] { color: var(--ink); }
.lang a.login { color: #fff; background: var(--accent); padding: 6px 14px; border-radius: 8px; text-decoration: none; margin-right: 12px; }
.site-footer { background: var(--soft); margin-top: 64px; padding: 32px 16px; text-align: center; }

/* content column: narrow text, wide and full blocks break out */
.content > * { max-width: var(--narrow); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.content > .alignwide, .content > .wp-block-columns, .content > .wp-block-gallery.alignwide { max-width: var(--wide); }
.content > .alignfull { max-width: none; padding: 0; }
.content > ol, .content > ul { padding-left: 40px; }
.content li { margin-bottom: 6px; }
.content h1, .content h2, .content h3 { line-height: 1.3; font-weight: 600; }
.content h2 { font-size: 1.4rem; margin-top: 2em; }
.content h3 { font-size: 1.15rem; }
.content > p:first-of-type a[href] { text-decoration: none; }

/* cover / banner */
.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 240px;
  margin-bottom: 32px;
}
.wp-block-cover__image-background {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.wp-block-cover__background { position: absolute; inset: 0; opacity: .2; }
.wp-block-cover__background.has-background-dim:not([class*="dim-"]) { opacity: .5; }
.wp-block-cover__inner-container { position: relative; padding: 24px 16px; text-align: center; color: #fff; width: 100%; }
.wp-block-cover h1 { color: #fff; font-size: clamp(2rem, 6vw, 3.4rem); margin: 0; }

/* home page tiles: 4 across on desktop, 3 on tablets, 2 on phones */
.home-tiles { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .home-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .home-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.home-tiles a { padding: 18px !important; }
.home-tiles strong { font-size: 1.2em !important; }
.home-tiles span { font-size: .9em; }
@media (max-width: 640px) { .home-tiles a { padding: 12px !important; } .home-tiles span { display: none; } }

/* download link: tray icon + plain text */
a.dl { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: #000; text-decoration: none; font-size: .7em; font-weight: 500; vertical-align: middle; }
a.dl:hover { text-decoration: underline; }

/* fully clickable photo tiles and collapsible tiles (inline styles do the rest) */
.wp-block-group.alignwide a[style*="aspect-ratio"] { transition: transform .15s ease, box-shadow .15s ease; }
.wp-block-group.alignwide a[style*="aspect-ratio"]:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span { opacity: .8; }
details p { margin: 0 0 10px; }

/* columns */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.wp-block-column { flex: 1 1 280px; min-width: 0; }

/* images & galleries */
.wp-block-image, figure { margin: 0 0 24px; }
.wp-element-caption, figcaption { font-size: .9em; color: var(--muted); margin-top: 6px; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-bottom: 24px; }
.wp-block-gallery.columns-3 { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.wp-block-gallery figure { margin: 0; }
.wp-block-gallery.is-cropped img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.content img { cursor: zoom-in; border-radius: 6px; }
.content a img, .wp-block-cover img, summary img, .lang img { cursor: auto; }

/* tables */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--ink); padding: 10px 12px; vertical-align: top; text-align: left; }
.wp-block-table th { background: var(--soft); }

/* hover to enlarge table pictures (mouse only; on touch screens a tap opens the lightbox) */
@media (hover: hover) and (min-width: 700px) {
  .wp-block-table td img { position: relative; transition: transform .2s ease; transform-origin: left center; }
  .wp-block-table td img:hover { transform: scale(2.4); z-index: 10; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
  .wp-block-table { overflow: visible; }
}

/* file download + buttons */
.wp-block-file { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.wp-block-file__button, .button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.note { background: var(--soft); border-radius: 12px; padding: 16px 20px; }

/* parking scan: button, legend and coloured spots on the floorplans */
.spot-scan { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.spot-scan button { border: 0; cursor: pointer; font: inherit; }
.spot-scan button:disabled { opacity: .6; cursor: wait; }
.spot-scan-status { color: var(--muted); }
.spot-legend { display: none; gap: 16px; flex-wrap: wrap; font-size: .9em; width: 100%; }
.spot-scan.scanned .spot-legend { display: flex; }
.spot-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.spot-wrap { position: relative; display: block; }
.spot-wrap img { display: block; }
.spot { position: absolute; border-radius: 3px; pointer-events: none; mix-blend-mode: multiply; }
.spot-legend .available { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.spot.rented, .spot-legend .rented { background: rgba(16, 38, 92, .8); }

/* residents' lock form */
form.unlock { display: grid; gap: 16px; max-width: 420px; }
form.unlock label { display: grid; gap: 6px; font-weight: 600; }
form.unlock input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
form.unlock .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .85);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; cursor: zoom-out; }
