/*
 * main.css — Unihouse theme stylesheet
 *
 * Hand-authored to mirror assets/scss/main.scss.
 * Recompile via dart-sass when toolchain installed:
 *   sass assets/scss/main.scss assets/css/main.css --style=compressed
 *
 * ANU Design System brand tokens are defined in theme.json (palette, typography,
 * spacing). WordPress generates --wp--preset--* CSS variables automatically.
 * Derived tokens (radii, shadows, etc.) are defined here in :root.
 */

@import url("https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;700&display=swap");

/* ============================================================
   TOKENS
   ============================================================ */

:root {
  /* ANU brand palette (mirrors theme.json) */
  --color-primary:    var(--wp--preset--color--primary);    /* ANU Black  #000000 */
  --color-secondary:  var(--wp--preset--color--secondary);  /* ANU Unigrey #333333 */
  --color-accent:     var(--wp--preset--color--accent);     /* ANU Gold   #BE830E */
  --color-gold-tint:  var(--wp--preset--color--gold-tint);  /* ANU Gold Tint #F5EDDE */
  --color-bg:         var(--wp--preset--color--bg);
  --color-surface:    var(--wp--preset--color--surface);
  --color-border:     var(--wp--preset--color--border);
  --color-muted:      var(--wp--preset--color--muted);
  --color-on-primary: var(--wp--preset--color--on-primary);

  /* ANU brand aliases — cross-block parity */
  --anu-black:     var(--wp--preset--color--primary);
  --anu-unigrey:   var(--wp--preset--color--secondary);
  --anu-gold:      var(--wp--preset--color--accent);
  --anu-gold-tint: var(--wp--preset--color--gold-tint);
  --anu-white:     var(--wp--preset--color--bg);

  /* Footer cream aliased to ANU Gold Tint */
  --color-footer-cream: var(--wp--preset--color--gold-tint);

  /* Border radii */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 8px rgb(0 0 0 / 10%);
  --shadow-md: 3px 3px 20px 1px rgb(157 157 157 / 72%);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;

  /* Z-index scale */
  --z-header: 50;
  --z-modal:  100;
  --z-toast:  150;
}

/* ============================================================
   ICON HELPER
   ============================================================ */

.unihouse-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
}

/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ANU link convention: body links use ANU Black with permanent underline
   (WCAG-safe at body-text size where gold-on-white would fail). Accent
   gold is reserved for hover/focus and for large-format links (headings,
   CTAs >= 19px semibold / 24px regular) which override these defaults. */
a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-decoration-skip-ink: auto;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--wp--preset--color--accent);
}

a:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
}

/* ============================================================
   ANU TYPOGRAPHY (heading scale)
   Per ANU Web Style Guide: em-based, fixed, sentence-case, 0.01em
   letter-spacing, 10px margin-bottom, font-style normal.
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--wp--preset--color--primary);
}

h1 { font-size: var(--wp--preset--font-size--xxxl); }   /* 2.1em */
h2 { font-size: var(--wp--preset--font-size--xxl); }   /* 1.9em */
h3 { font-size: var(--wp--preset--font-size--xl); }    /* 1.4em */
h4 { font-size: var(--wp--preset--font-size--lg); }    /* 1.2em */
h5 { font-size: var(--wp--preset--font-size--sm); }    /* 0.83em */
h6 { font-size: var(--wp--preset--font-size--xs); }    /* 0.67em */

/* Heading anchors should inherit the heading colour and skip the body
   underline pattern. Block-level overrides (e.g. archive titles, footer
   col headings) can opt back in to the brand-link behaviour. */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  text-decoration: none;
}
h1 a:hover, h1 a:focus-visible,
h2 a:hover, h2 a:focus-visible,
h3 a:hover, h3 a:focus-visible,
h4 a:hover, h4 a:focus-visible,
h5 a:hover, h5 a:focus-visible,
h6 a:hover, h6 a:focus-visible {
  color: var(--wp--preset--color--accent);
}

/* ============================================================
   ANU BUTTONS
   Per ANU Web Style Guide: 3px solid border, square corners,
   applied to <a> elements. Three variants — default (gold border on
   white), .anu-btn-black, .anu-btn-white.
   ============================================================ */

.anu-btn,
.anu-btn-black,
.anu-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--30);
  padding: 0.5em 2em;
  border-width: 3px;
  border-style: solid;
  font-weight: 700;
  font-size: 1em;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.anu-btn {
  border-color: var(--wp--preset--color--accent);
  background-color: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--primary);
}
.anu-btn:hover,
.anu-btn:focus-visible {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
}

.anu-btn-black {
  border-color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--bg);
}
.anu-btn-black:hover,
.anu-btn-black:focus-visible {
  background-color: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--primary);
}

.anu-btn-white {
  border-color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--primary);
}
.anu-btn-white:hover,
.anu-btn-white:focus-visible {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--bg);
}

/* ============================================================
   PAGE SHELL (sidebar + main layout)
   ============================================================ */

/* Full-width banner image shown when a page has a featured image set */
.page-banner {
  display: block;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
}
.page-banner img {
  width: 100%;
  max-height: 45vh;
  object-fit: cover;
  display: block;
}

.page-shell {
  padding-block: var(--wp--preset--spacing--60);
  padding-inline: var(--wp--preset--spacing--60);
}

/* When preceded by a banner image, remove the gap at the top */
.page-banner + .page-shell,
.page-banner ~ .page-shell {
  padding-block-start: var(--wp--preset--spacing--50);
  margin-block-start: 0 !important;
}

.page-shell__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--60);
  max-width: 1200px;
  margin-inline: auto;
}

.page-shell__sidebar {
  flex: 0 0 280px;
  max-width: 100%;
}

/* When the section-nav renders nothing (top-level pages, archives, CPT
   singles without a sidebar), collapse the slot entirely so the main
   content can be centred in the remaining space. */
.page-shell__sidebar:not(:has(*)) {
  display: none;
}

/* Centre main content when there is no sidebar. */
.page-shell__inner:has(.page-shell__sidebar:not(:has(*))) .page-shell__main {
  max-width: 800px;
  margin-inline: auto;
}

.page-shell__main {
  flex: 1 1 0;
  min-width: 0;
}

/* Match the optical baseline of the section-nav heading so the page-title
   and the sidebar's heading sit on the same Y axis. */
.page-shell__main > .page-title:first-child,
.page-shell__main > .wp-block-post-title:first-child {
  margin-top: calc(var(--wp--preset--spacing--20) * -1);
}

/* Hide the template page title when a hero block is the first content block
   (the hero renders its own h1, so the template title is redundant). */
.has-hero-first .page-title,
.has-hero-first .wp-block-post-title {
  display: none;
}

.page-title {
  /* Inherits ANU h1 scale (3xl = 2.1em). Explicit selector kept so the
     block editor's post-title block resolves consistently. */
  font-size: var(--wp--preset--font-size--xxxl);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 var(--wp--preset--spacing--60);
}

/* Constrain ad-hoc post-content paragraphs so reading widths stay
   comfortable when an editor adds raw text outside a Text block. Full-bleed
   blocks (hero, gallery, columns) opt out by setting their own width. */
.page-shell__main > p,
.page-shell__main > ul,
.page-shell__main > ol,
.page-shell__main > h2,
.page-shell__main > h3,
.page-shell__main > h4 {
  max-width: 70ch;
}

/* Prose lists — bare ul/ol in content areas and WP block editor lists */
.page-shell__main ul:not([class]),
.page-shell__main .wp-block-list,
.wp-block-post-content ul:not([class]),
.wp-block-post-content .wp-block-list {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.page-shell__main ol:not([class]),
.wp-block-post-content ol:not([class]) {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.page-shell__main ul:not([class]) li,
.page-shell__main .wp-block-list li,
.page-shell__main ol:not([class]) li,
.wp-block-post-content ul:not([class]) li,
.wp-block-post-content .wp-block-list li,
.wp-block-post-content ol:not([class]) li {
  margin-bottom: 0.3em;
}

/* Gold tick bullets — accommodation and food & drink sections only */
.uh-section--tick-lists .page-shell__main ul:not([class]),
.uh-section--tick-lists .page-shell__main .wp-block-list,
.uh-section--tick-lists .wp-block-post-content ul:not([class]),
.uh-section--tick-lists .wp-block-post-content .wp-block-list {
  list-style: none;
  padding-left: 0;
}
.uh-section--tick-lists .page-shell__main ul:not([class]) li,
.uh-section--tick-lists .page-shell__main .wp-block-list li,
.uh-section--tick-lists .wp-block-post-content ul:not([class]) li,
.uh-section--tick-lists .wp-block-post-content .wp-block-list li {
  position: relative;
  padding-left: 1.5em;
}
.uh-section--tick-lists .page-shell__main ul:not([class]) li::before,
.uh-section--tick-lists .page-shell__main .wp-block-list li::before,
.uh-section--tick-lists .wp-block-post-content ul:not([class]) li::before,
.uh-section--tick-lists .wp-block-post-content .wp-block-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--accent);
  font-weight: 700;
}

@media (max-width: 768px) {
  .page-shell__inner {
    flex-direction: column;
  }
  .page-shell__sidebar {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ============================================================
   HERO BLOCK
   ============================================================ */

.unihouse-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 55vh;
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
  overflow: hidden;
  background-color: var(--wp--preset--color--primary);
  color: #ffffff;
}

.unihouse-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 30%;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Directional gradient: opaque on the left for legibility, fading right so
   the landscape reads through — layered with a soft bottom vignette for depth. */
.unihouse-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.80) 0%,
      rgba(0, 0, 0, 0.58) 34%,
      rgba(0, 0, 0, 0.24) 68%,
      rgba(0, 0, 0, 0.06) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0) 42%
    );
  z-index: 1;
}

/* Centred container so hero text aligns with the sections below. */
.unihouse-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.unihouse-hero__content {
  max-width: 600px;
}

/* Gold accent bar above the heading. */
.unihouse-hero__content::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background-color: var(--wp--preset--color--accent);
  margin-bottom: var(--wp--preset--spacing--40);
}

.unihouse-hero__heading {
  font-size: var(--wp--preset--font-size--xxxl);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--wp--preset--spacing--40);
  color: #ffffff;
}

.unihouse-hero__subheading {
  font-size: var(--wp--preset--font-size--lg);
  margin: 0 0 var(--wp--preset--spacing--40);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.unihouse-hero__body {
  font-size: var(--wp--preset--font-size--md);
  margin: 0 0 var(--wp--preset--spacing--60);
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.6;
}

/* ANU-compliant button: gold border, transparent bg over dark photo,
   fills gold on hover. */
.unihouse-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--30);
  padding: 0.6em 2em;
  border: 3px solid var(--wp--preset--color--accent);
  background-color: transparent;
  color: #ffffff;
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  border-radius: 0;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.unihouse-hero__cta:hover,
.unihouse-hero__cta:focus-visible {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
}

@media (max-width: 640px) {
  .unihouse-hero {
    min-height: 40vh;
    align-items: flex-end;
    padding-bottom: var(--wp--preset--spacing--70);
  }

  .unihouse-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.40) 55%,
      rgba(0, 0, 0, 0.10) 100%
    );
  }

  .unihouse-hero__content::before {
    display: none;
  }
}

/* ============================================================
   SITE HEADER BLOCK
   ============================================================ */

.unihouse-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--wp--preset--color--bg);
}

/* ── Top bar ── */
.unihouse-header__topbar {
  background-color: var(--wp--preset--color--primary);
}
.unihouse-header__topbar-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.55rem var(--wp--preset--spacing--60);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.unihouse-header__topbar-link {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255 255 255 / 70%);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-header__topbar-link:hover {
  color: #fff;
}

/* ── Main row ── */
.unihouse-header__main {
  border-bottom: 2px solid var(--wp--preset--color--accent);
  box-shadow: 0 2px 12px rgb(0 0 0 / 6%);
}
.unihouse-header__inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding: 1.35rem var(--wp--preset--spacing--60);
  gap: var(--wp--preset--spacing--70);
}

/* ── Logo ── */
.unihouse-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: auto;
}
.unihouse-header__logo img {
  height: 1.95rem;
  width: auto;
  display: block;
}

/* ── Desktop nav ── */
.unihouse-header__nav {
  display: flex;
  align-items: center;
}
.unihouse-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.unihouse-header__nav-list li {
  margin: 0;
}
.unihouse-header__nav-list li a,
.unihouse-header__nav-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.unihouse-header__nav-list li a:hover,
.unihouse-header__nav-list li a:focus-visible,
.unihouse-header__nav-link:hover,
.unihouse-header__nav-link:focus-visible {
  background-color: color-mix(in srgb, var(--wp--preset--color--accent) 10%, transparent);
  color: var(--wp--preset--color--accent);
}
.unihouse-header__nav-list .current-menu-item > a,
.unihouse-header__nav-list .current-page-ancestor > a,
.unihouse-header__nav-list [aria-current="page"] {
  color: var(--wp--preset--color--accent);
  font-weight: 600;
}

/* ── Desktop dropdown ── */
.unihouse-header__nav-item.has-children {
  position: relative;
}

/* Parent link gets gold-tint pill on hover; when dropdown is open, flatten bottom corners to connect */
.unihouse-header__nav-item.has-children:hover > .unihouse-header__nav-link,
.unihouse-header__nav-item.has-children:focus-within > .unihouse-header__nav-link {
  background-color: var(--wp--preset--color--gold-tint);
  color: var(--wp--preset--color--primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.unihouse-header__dropdown {
  position: absolute;
  top: 100%;       /* flush — no gap so cursor stays in hover zone */
  left: 0;
  z-index: 1;
  min-width: 200px;
  background-color: var(--wp--preset--color--gold-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0.375rem 0 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
}
.unihouse-header__nav-item.has-children:hover .unihouse-header__dropdown,
.unihouse-header__nav-item.has-children:focus-within .unihouse-header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.unihouse-header__dropdown-item {
  margin: 0;
}
.unihouse-header__dropdown-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 1.125rem;
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.unihouse-header__dropdown .unihouse-header__dropdown-link:hover,
.unihouse-header__dropdown .unihouse-header__dropdown-link:focus-visible {
  background-color: color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
  color: var(--wp--preset--color--primary);
}
.unihouse-header__dropdown-link.is-active {
  color: var(--wp--preset--color--accent);
  font-weight: 600;
}

/* ── Book CTA button ── */
.unihouse-header__book {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid var(--wp--preset--color--accent);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.unihouse-header__book:hover,
.unihouse-header__book:focus-visible {
  background-color: transparent;
  color: var(--wp--preset--color--accent);
}

/* ── Hamburger ── */
.unihouse-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}
.unihouse-header__burger:hover {
  border-color: var(--wp--preset--color--accent);
}
.unihouse-header__burger:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}
.unihouse-header__burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--wp--preset--color--primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.unihouse-header__burger[aria-expanded="true"] .unihouse-header__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.unihouse-header__burger[aria-expanded="true"] .unihouse-header__burger-bar:nth-child(2) {
  opacity: 0;
}
.unihouse-header__burger[aria-expanded="true"] .unihouse-header__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav ── */
.unihouse-header__mobile-nav {
  background-color: var(--wp--preset--color--bg);
  border-top: 1px solid var(--wp--preset--color--border);
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}
.unihouse-header__mobile-nav[hidden] {
  display: none;
}
.unihouse-header__mobile-list {
  list-style: none;
  margin: 0 auto;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
  max-width: 1200px;
}
.unihouse-header__mobile-list li {
  margin: 0;
}
.unihouse-header__mobile-list li a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--md);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.unihouse-header__mobile-list li:last-child a {
  border-bottom: none;
}
.unihouse-header__mobile-list li a:hover,
.unihouse-header__mobile-list li a:focus-visible {
  color: var(--wp--preset--color--accent);
  padding-left: 0.5rem;
}
/* Mobile sub-menu items (depth 2) — shown indented below parent */
.unihouse-header__mobile-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.unihouse-header__mobile-list .sub-menu li a {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--wp--preset--color--secondary);
  border-bottom-color: var(--wp--preset--color--border);
}
.unihouse-header__mobile-list .sub-menu li a:hover,
.unihouse-header__mobile-list .sub-menu li a:focus-visible {
  color: var(--wp--preset--color--accent);
  padding-left: 1.75rem;
}

.unihouse-header__mobile-cta {
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
  max-width: 1200px;
  margin-inline: auto;
  border-top: 1px solid var(--wp--preset--color--border);
}
.unihouse-header__mobile-cta .unihouse-header__book {
  width: 100%;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .unihouse-header__nav,
  .unihouse-header__book {
    display: none;
  }
  .unihouse-header__burger {
    display: flex;
  }
}

/* ============================================================
   CTA BLOCK
   ============================================================ */

.unihouse-cta {
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
  background-color: var(--wp--preset--color--surface);
  text-align: center;
}

.unihouse-cta__inner {
  max-width: 720px;
  margin-inline: auto;
}

.unihouse-cta__heading {
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: var(--wp--preset--spacing--40);
}

.unihouse-cta__subheading {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--secondary);
  margin-bottom: var(--wp--preset--spacing--60);
}

.unihouse-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--40);
}

.unihouse-cta__btn {
  /* ANU button base — primary uses gold border + white bg, secondary
     uses black border + black bg. Square corners. */
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  padding: 0.5em 2em;
  border: 3px solid transparent;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.unihouse-cta__btn--primary {
  border-color: var(--wp--preset--color--accent);
  background-color: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--primary);
}
.unihouse-cta__btn--primary:hover,
.unihouse-cta__btn--primary:focus-visible {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
}

.unihouse-cta__btn--secondary {
  border-color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--bg);
}
.unihouse-cta__btn--secondary:hover,
.unihouse-cta__btn--secondary:focus-visible {
  background-color: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--primary);
}

.unihouse-cta__tertiary {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  color: var(--wp--preset--color--accent);
  font-size: var(--wp--preset--font-size--sm);
  text-decoration: none;
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.unihouse-cta__tertiary:hover,
.unihouse-cta__tertiary:focus-visible {
  gap: var(--wp--preset--spacing--30);
}

/* ============================================================
   SITE FOOTER BLOCK
   ============================================================ */

.unihouse-footer {
  color: inherit;
  --footer-line-x: 0rem;       /* distance from container left to the vertical gold line */
  --footer-content-pad: 2rem;  /* clear space between line and content on its right */
  --footer-max: 1200px;        /* matches page-shell wideSize so footer aligns with page content */
}

/* ── Contact bar (above the footer) ──────────────────────── */

.unihouse-footer__contact-bar {
  background-color: #000;
  border-bottom: 1px solid rgba(255 255 255 / 20%);
  color: #fff;
}
.unihouse-footer__contact-bar-inner {
  max-width: var(--footer-max);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.unihouse-footer__contact-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 500;
  color: rgba(255 255 255 / 85%);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.unihouse-footer__contact-bar-item:hover {
  color: var(--wp--preset--color--accent);
}
.unihouse-footer__contact-bar-item .unihouse-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .unihouse-footer__contact-bar-inner {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
}

/* ── Top: cream nav + actions ─────────────────────────────── */

.unihouse-footer__top {
  position: relative;
  background-image: url("../graphics/bg-waves.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
}


.unihouse-footer__top-inner {
  max-width: var(--footer-max);
  margin-inline: auto;
}

.unihouse-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--60);
}

.unihouse-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.unihouse-footer__col-heading {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--primary);
  margin: 0 0 var(--wp--preset--spacing--20);
}
.unihouse-footer__col-heading a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-footer__col-heading a:hover,
.unihouse-footer__col-heading a:focus-visible {
  color: var(--wp--preset--color--accent);
}

.unihouse-footer__col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.unihouse-footer__col-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--md);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-footer__col-link:hover,
.unihouse-footer__col-link:focus-visible {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
}
.unihouse-footer__col-link-arrow {
  color: var(--wp--preset--color--accent);
  font-weight: 700;
}


.unihouse-action-icon {
  width: 100%;
  height: 100%;
}

/* ── Bottom: dark band ────────────────────────────────────── */

.unihouse-footer__bottom {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--bg);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
}

/* Utility row: CTA button left, social icons right */
.unihouse-footer__utility {
  max-width: var(--footer-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}

.unihouse-footer__cta-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}
.unihouse-footer__cta-btn:hover,
.unihouse-footer__cta-btn:focus-visible {
  opacity: 0.85;
  color: var(--wp--preset--color--primary);
}

.unihouse-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.unihouse-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
  transition: transform var(--transition-fast);
}
.unihouse-footer__social-link:hover,
.unihouse-footer__social-link:focus-visible {
  transform: scale(1.05);
  color: var(--wp--preset--color--primary);
}

.unihouse-social-icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* Back-to-top: gold square anchored to the right end of the top rule,
   vertically centred on the line (matches the ANU master footer). */
.unihouse-footer__top-link {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
  border-radius: 0;
  text-decoration: none;
  transition: transform var(--transition-fast);
}
.unihouse-footer__top-link svg {
  width: 1.5rem;
  height: 1.5rem;
}
.unihouse-footer__top-link:hover,
.unihouse-footer__top-link:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

/* Horizontal rules */
.unihouse-footer__rule {
  border: 0;
  height: 1px;
}
.unihouse-footer__rule--gold {
  /* Top grey rule of the framed area. Starts at the vertical line's x-position
     (forming an L-shape at the top-left corner). */
  background-color: rgb(255 255 255 / 28%);
  margin: 0 0 2.5rem var(--footer-line-x);
  width: calc(100% - var(--footer-line-x));
  max-width: none;
}
/* White rule: nested inside .unihouse-footer__bottom-inner (which has
   padding-left equal to line-x + content-pad). Pull it back so its left
   edge starts at the vertical gold line. */
.unihouse-footer__rule--white {
  background-color: rgb(255 255 255 / 90%);
  margin: 2rem 0 1.5rem 0;
  width: 100%;
  max-width: none;
}

/* Framed wrapper — owns the L-shape: top horizontal grey rule + a vertical
   gold line on the left that extends from the rule down past every row of
   content (brand, ack, white rule, legal, contact, meta). */
.unihouse-footer__framed {
  max-width: var(--footer-max);
  margin: 0 auto;
  position: relative;
}
.unihouse-footer__framed::before {
  display: none;
}

/* Bottom inner — content sits to the right of the vertical line with
   var(--footer-content-pad) of breathing room. */
.unihouse-footer__bottom-inner {
  padding-left: 0;
}

.unihouse-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Pull the ANU logo left so the vertical gold line passes behind the crest.
   background-color: #000 makes the logo area opaque, hiding the line behind
   the crest (matching the ANU master footer where the crest covers the line).
   z-index: 1 ensures the crest paints above the ::before line. */
.unihouse-footer__brand-primary {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  position: relative;
  z-index: 1;
  background-color: #000;
  padding-block: 1rem;
}
.unihouse-footer__brand-primary img {
  height: 4.5rem;
  width: auto;
}

.unihouse-footer__partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
}
.unihouse-footer__partners img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.unihouse-footer__acknowledgement {
  padding-bottom: 0.5rem;
}

.unihouse-footer__ack-heading {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  color: var(--wp--preset--color--bg);
  margin: 0 0 0.75rem;
}

.unihouse-footer__ack-body {
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.6;
  color: rgb(255 255 255 / 90%);
  margin: 0;
  max-width: 80ch;
}

/* Legal region — nested inside .unihouse-footer__bottom-inner so the
   vertical gold line passes through it too. */
.unihouse-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.unihouse-footer__legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.unihouse-footer__legal-links a {
  color: var(--wp--preset--color--bg);
  font-size: var(--wp--preset--font-size--sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-footer__legal-links a:hover,
.unihouse-footer__legal-links a:focus-visible {
  color: var(--wp--preset--color--accent);
}
.unihouse-footer__legal-links li:not(:last-child) a::after {
  content: '|';
  color: rgb(255 255 255 / 60%);
  padding: 0 0.75rem;
  font-weight: 400;
}

.unihouse-footer__contact {
  font-size: var(--wp--preset--font-size--sm);
  color: rgb(255 255 255 / 95%);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.unihouse-footer__contact a,
.unihouse-footer__contact span {
  color: inherit;
  text-decoration: none;
}
.unihouse-footer__contact > *:not(:last-child)::after {
  content: '|';
  color: rgb(255 255 255 / 60%);
  padding: 0 0.75rem;
}

.unihouse-footer__meta {
  font-size: var(--wp--preset--font-size--sm);
  color: rgb(255 255 255 / 90%);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .unihouse-footer__top-inner {
    grid-template-columns: 1fr;
  }
  .unihouse-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .unihouse-footer {
    --footer-line-x: 0rem;
    --footer-content-pad: 1rem;
  }
  .unihouse-footer__top {
    padding: 3rem 1.25rem 4rem;
  }
  .unihouse-footer__bottom {
    padding: 1.5rem 1.25rem 2rem;
  }
  .unihouse-footer__columns {
    grid-template-columns: 1fr;
  }
  .unihouse-footer__brand {
    flex-direction: column;
    align-items: flex-start;
  }
  .unihouse-footer__legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .unihouse-footer__legal-links li:not(:last-child) a::after {
    content: '';
    padding: 0;
  }
  .unihouse-footer__contact {
    flex-direction: column;
  }
  .unihouse-footer__contact > *:not(:last-child)::after {
    content: '';
    padding: 0;
  }
}

/* ============================================================
   FEATURES BLOCK
   ============================================================ */

.unihouse-features {
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
  background-color: var(--wp--preset--color--surface);
}

.unihouse-features__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.unihouse-features__header {
  text-align: center;
  margin-bottom: var(--wp--preset--spacing--70);
  max-width: 720px;
  margin-inline: auto;
}

.unihouse-features__heading {
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: var(--wp--preset--spacing--40);
}

.unihouse-features__subheading {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--secondary);
}

.unihouse-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--wp--preset--spacing--60);
}

.unihouse-features__card {
  background-color: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-lg);
  padding: var(--wp--preset--spacing--60);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.unihouse-features__card:hover {
  box-shadow: var(--shadow-md);
}

.unihouse-features__icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--wp--preset--spacing--40);
  object-fit: contain;
}

.unihouse-features__card-title {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: var(--wp--preset--spacing--30);
}

.unihouse-features__card-desc {
  font-size: var(--wp--preset--font-size--md);
  color: var(--wp--preset--color--secondary);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS BLOCK
   ============================================================ */

.unihouse-testimonials {
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
}

.unihouse-testimonials__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.unihouse-testimonials__heading {
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  text-align: center;
  margin-bottom: var(--wp--preset--spacing--70);
}

.unihouse-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--wp--preset--spacing--60);
}

.unihouse-testimonials__card {
  background-color: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-lg);
  padding: var(--wp--preset--spacing--60);
}

.unihouse-testimonials__quote {
  font-size: var(--wp--preset--font-size--md);
  color: var(--wp--preset--color--secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--wp--preset--spacing--50);
}

.unihouse-testimonials__quote::before {
  content: '\201C';
  color: var(--wp--preset--color--accent);
  font-size: var(--wp--preset--font-size--xl);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: var(--wp--preset--spacing--20);
}

.unihouse-testimonials__author {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
}

.unihouse-testimonials__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  flex-shrink: 0;
}

.unihouse-testimonials__author-info {
  display: flex;
  flex-direction: column;
}

.unihouse-testimonials__author-name {
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--primary);
}

.unihouse-testimonials__author-role {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--muted);
}

/* ============================================================
   FAQ BLOCK
   ============================================================ */

.unihouse-faq {
  padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60);
}

.unihouse-faq__inner {
  max-width: 720px;
  margin-inline: auto;
}

.unihouse-faq__heading {
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  text-align: center;
  margin-bottom: var(--wp--preset--spacing--70);
}

.unihouse-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.unihouse-faq__item {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.unihouse-faq__item[open] .unihouse-faq__icon {
  transform: rotate(180deg);
}

.unihouse-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--40);
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
  cursor: pointer;
  font-size: var(--wp--preset--font-size--md);
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--surface);
  list-style: none;
  transition: background-color var(--transition-fast);
}

.unihouse-faq__summary:hover {
  background-color: var(--wp--preset--color--border);
}

.unihouse-faq__summary::-webkit-details-marker {
  display: none;
}

.unihouse-faq__icon {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: var(--wp--preset--color--accent);
}

.unihouse-faq__answer {
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
  font-size: var(--wp--preset--font-size--md);
  color: var(--wp--preset--color--secondary);
  line-height: 1.7;
}

/* ============================================================
   SECTION NAV BLOCK
   ============================================================ */

.unihouse-section-nav__inner {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}

.unihouse-section-nav__heading-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-section-nav__heading-link:hover,
.unihouse-section-nav__heading-link:focus-visible {
  color: var(--wp--preset--color--accent);
}

.unihouse-section-nav__heading {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--primary);
  margin: 0 0 var(--wp--preset--spacing--20);
}

.unihouse-section-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--20);
}

.unihouse-section-nav__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--md);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.unihouse-section-nav__item:hover,
.unihouse-section-nav__item:focus-visible {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
}

.unihouse-section-nav__item--current {
  color: var(--wp--preset--color--accent);
  font-weight: 700;
}

.unihouse-section-nav__item-arrow {
  color: var(--wp--preset--color--accent);
  font-weight: 700;
}
.unihouse-section-nav__download {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--wp--preset--spacing--50);
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--on-primary);
  border-radius: var(--radius-sm);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}
.unihouse-section-nav__download:hover,
.unihouse-section-nav__download:focus-visible {
  background-color: var(--color-gold-800, #a36a00);
  color: var(--wp--preset--color--on-primary);
}
.unihouse-section-nav__download .unihouse-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.unihouse-section-nav__contact {
  margin-top: var(--wp--preset--spacing--50);
  padding: var(--wp--preset--spacing--50);
  background-color: var(--wp--preset--color--gold-tint);
  border-radius: var(--radius-sm);
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
  line-height: 1.5;
}
.unihouse-section-nav__contact p {
  margin-block: 0 0.5em;
}
.unihouse-section-nav__contact p:last-child {
  margin-block-end: 0;
}
.unihouse-section-nav__contact a {
  color: var(--wp--preset--color--primary);
  text-underline-offset: 2px;
}
.unihouse-section-nav__contact a:hover {
  color: var(--wp--preset--color--accent);
}
.unihouse-section-nav__contact strong {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
}

/* ============================================================
   ARCHIVE TABS
   ============================================================ */

.unihouse-archive-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--wp--preset--color--border);
  margin-bottom: var(--wp--preset--spacing--60);
}
.unihouse-archive-tabs__tab {
  display: inline-block;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
  font-size: var(--wp--preset--font-size--md);
  font-weight: 500;
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.unihouse-archive-tabs__tab:hover,
.unihouse-archive-tabs__tab:focus-visible {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--border);
}
.unihouse-archive-tabs__tab--active {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  border-bottom-color: var(--wp--preset--color--accent);
}
.unihouse-archive-tabs__tab--active:hover,
.unihouse-archive-tabs__tab--active:focus-visible {
  border-bottom-color: var(--wp--preset--color--accent);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.unihouse-breadcrumb {
  margin-bottom: var(--wp--preset--spacing--40);
}
.unihouse-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--wp--preset--font-size--sm);
}
.unihouse-breadcrumb__item {
  color: var(--wp--preset--color--secondary);
}
.unihouse-breadcrumb__item a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}
.unihouse-breadcrumb__item a:hover,
.unihouse-breadcrumb__item a:focus-visible {
  color: var(--wp--preset--color--accent);
}
.unihouse-breadcrumb__item--sep {
  user-select: none;
}
.unihouse-breadcrumb__item--current {
  font-weight: 500;
}

/* ============================================================
   ARCHIVE / LIST (news + events)
   ============================================================ */

.unihouse-archive {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--70);
}

.unihouse-archive__item {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  padding-bottom: var(--wp--preset--spacing--60);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.unihouse-archive__image img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

.unihouse-archive__meta {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.01em;
}

.unihouse-archive__title {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.unihouse-archive__title a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-archive__title a:hover,
.unihouse-archive__title a:focus-visible {
  color: var(--wp--preset--color--accent);
}

.unihouse-archive__excerpt {
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.6;
  color: var(--wp--preset--color--secondary);
}

.unihouse-archive__pagination {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
  justify-content: center;
  margin-top: var(--wp--preset--spacing--60);
}

.unihouse-single__meta {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.01em;
  margin-bottom: var(--wp--preset--spacing--20);
}

.unihouse-single__image {
  margin-block: var(--wp--preset--spacing--50);
}
.unihouse-single__image img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* ============================================================
   EVENT SINGLE BLOCK
   ============================================================ */

.unihouse-event-single__hero {
  position: relative;
  margin-bottom: var(--wp--preset--spacing--60);
  overflow: hidden;
}
.unihouse-event-single__hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}
.unihouse-event-single__badge {
  position: absolute;
  bottom: var(--wp--preset--spacing--50);
  left: var(--wp--preset--spacing--50);
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  min-width: 4.5rem;
  text-align: center;
  line-height: 1.1;
}
.unihouse-event-single__badge-day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.unihouse-event-single__badge-month {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}
.unihouse-event-single__badge-year {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 0.15em;
}
.unihouse-event-single__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--wp--preset--spacing--70);
  align-items: start;
}
.unihouse-event-single__main {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}
.unihouse-event-single__title {
  margin: 0;
}
.unihouse-event-single__excerpt {
  font-size: var(--wp--preset--font-size--lg);
  color: var(--wp--preset--color--secondary);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  padding-left: var(--wp--preset--spacing--40);
}
.unihouse-event-single__content {
  color: var(--wp--preset--color--primary);
  line-height: 1.7;
}
.unihouse-event-single__content p { margin: 0 0 1em; }
.unihouse-event-single__content p:last-child { margin-bottom: 0; }
.unihouse-event-single__details {
  background-color: var(--wp--preset--color--gold-tint);
  padding: var(--wp--preset--spacing--50);
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--50);
  position: sticky;
  top: calc(var(--wp--preset--spacing--60) + 5rem);
}
.unihouse-event-single__details-heading {
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  padding-bottom: var(--wp--preset--spacing--40);
  border-bottom: 1px solid rgb(0 0 0 / 12%);
}
.unihouse-event-single__dl {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
  margin: 0;
}
.unihouse-event-single__dl-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  align-items: start;
}
.unihouse-event-single__dl-row dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  color: var(--wp--preset--color--secondary);
  white-space: nowrap;
  margin: 0;
  padding-top: 0.1em;
}
.unihouse-event-single__dl-row dt .unihouse-icon {
  width: 1.1em;
  height: 1.1em;
  stroke: var(--wp--preset--color--accent);
  flex-shrink: 0;
}
.unihouse-event-single__dl-row dd {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--primary);
  line-height: 1.5;
  margin: 0;
}
.unihouse-event-single__cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.unihouse-event-single__enquire {
  margin: 0;
  font-size: var(--wp--preset--font-size--sm);
  text-align: center;
}
.unihouse-event-single__enquire a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}
.unihouse-event-single__enquire a:hover,
.unihouse-event-single__enquire a:focus-visible {
  color: var(--wp--preset--color--accent);
}
@media (max-width: 820px) {
  .unihouse-event-single__hero-img { aspect-ratio: 16 / 9; }
  .unihouse-event-single__body { grid-template-columns: 1fr; }
  .unihouse-event-single__details { position: static; }
  .unihouse-event-single__dl-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .unihouse-event-single__dl-row dt { padding-top: 0; }
}

/* ============================================================
   EVENT CARD BLOCK (events archive)
   ============================================================ */

.unihouse-event-card {
  border-top: 1px solid var(--wp--preset--color--border);
  padding-block: var(--wp--preset--spacing--60);
}
.unihouse-event-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.unihouse-event-card__link {
  display: grid;
  grid-template-columns: 6rem 1fr minmax(0, 240px);
  gap: var(--wp--preset--spacing--60);
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.unihouse-event-card__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: var(--wp--preset--spacing--50);
  border-right: 1px solid var(--wp--preset--color--border);
}

.unihouse-event-card__day {
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1;
  color: var(--wp--preset--color--primary);
}

.unihouse-event-card__month {
  margin-top: 0.25rem;
  font-size: 1em;
  font-weight: 700;
  color: var(--wp--preset--color--accent);
}

.unihouse-event-card__year {
  font-size: 0.83em;
  color: var(--wp--preset--color--secondary);
}

.unihouse-event-card__body {
  min-width: 0;
}

.unihouse-event-card__when {
  font-size: 0.83em;
  color: var(--wp--preset--color--secondary);
  margin: 0 0 0.4rem;
}

.unihouse-event-card__title {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin: 0 0 0.5rem;
  transition: color var(--transition-fast);
}

.unihouse-event-card__link:hover .unihouse-event-card__title,
.unihouse-event-card__link:focus-visible .unihouse-event-card__title {
  color: var(--wp--preset--color--accent);
}

.unihouse-event-card__location {
  font-size: 1em;
  color: var(--wp--preset--color--secondary);
  margin: 0 0 0.75rem;
}

.unihouse-event-card__excerpt {
  font-size: 1em;
  color: var(--wp--preset--color--primary);
  line-height: 1.6;
  margin: 0 0 var(--wp--preset--spacing--40);
  max-width: 65ch;
}

.unihouse-event-card__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: var(--wp--preset--color--accent);
  font-weight: 700;
  text-decoration: none;
}

.unihouse-event-card__link:hover .unihouse-event-card__cta,
.unihouse-event-card__link:focus-visible .unihouse-event-card__cta {
  text-decoration: underline;
}

.unihouse-event-card__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 760px) {
  .unihouse-event-card__link {
    grid-template-columns: 5rem 1fr;
  }
  .unihouse-event-card__image {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: var(--wp--preset--spacing--40);
  }
}

@media (max-width: 480px) {
  .unihouse-event-card__link {
    grid-template-columns: 1fr;
  }
  .unihouse-event-card__date {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5em;
    border-right: 0;
    border-bottom: 1px solid var(--wp--preset--color--border);
    padding: 0 0 0.5em;
  }
  .unihouse-event-card__day {
    font-size: 1.6em;
  }
}

/* ============================================================
   NEWS CARD BLOCK
   ============================================================ */

.unihouse-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.unihouse-news-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--wp--preset--spacing--60);
  align-items: start;
  padding-block: var(--wp--preset--spacing--60);
  border-top: 2px solid var(--wp--preset--color--border);
}
.unihouse-news-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.unihouse-news-card--no-image {
  grid-template-columns: 1fr;
}
.unihouse-news-card__media a {
  display: block;
  overflow: hidden;
  text-decoration: none;
}
.unihouse-news-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}
.unihouse-news-card__media a:hover .unihouse-news-card__image,
.unihouse-news-card__media a:focus-visible .unihouse-news-card__image {
  transform: scale(1.02);
}
.unihouse-news-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  min-width: 0;
}
.unihouse-news-card__date {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
  font-weight: 500;
}
.unihouse-news-card__title {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.unihouse-news-card__title a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-news-card__title a:hover,
.unihouse-news-card__title a:focus-visible {
  color: var(--wp--preset--color--accent);
}
.unihouse-news-card__excerpt {
  color: var(--wp--preset--color--secondary);
  line-height: 1.6;
  font-size: var(--wp--preset--font-size--md);
}
.unihouse-news-card__more {
  align-self: flex-start;
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}
.unihouse-news-card__more:hover,
.unihouse-news-card__more:focus-visible {
  color: var(--wp--preset--color--accent);
}
@media (max-width: 720px) {
  .unihouse-news-card {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NEWS ARCHIVE GRID (legacy — kept for reference)
   ============================================================ */

.unihouse-news-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--60);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 960px) {
  .unihouse-news-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .unihouse-news-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

.unihouse-news-grid .wp-block-post {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.unihouse-news-grid .wp-block-post-featured-image {
  margin: 0 0 var(--wp--preset--spacing--30);
}

.unihouse-news-grid .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.unihouse-news-grid .wp-block-post-featured-image:hover img,
.unihouse-news-grid .wp-block-post-featured-image:focus-within img {
  transform: scale(1.02);
}

.unihouse-news-grid .wp-block-post-date {
  font-size: 0.83em;
  color: var(--wp--preset--color--secondary);
  margin: 0;
  letter-spacing: 0.01em;
}

.unihouse-news-grid .wp-block-post-title {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.unihouse-news-grid .wp-block-post-title a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-news-grid .wp-block-post-title a:hover,
.unihouse-news-grid .wp-block-post-title a:focus-visible {
  color: var(--wp--preset--color--accent);
}

.unihouse-news-grid .wp-block-post-excerpt {
  margin: 0;
}
.unihouse-news-grid .wp-block-post-excerpt p {
  font-size: 1em;
  color: var(--wp--preset--color--primary);
  line-height: 1.6;
  margin: 0 0 var(--wp--preset--spacing--30);
}
.unihouse-news-grid .wp-block-post-excerpt__more-link {
  color: var(--wp--preset--color--accent);
  font-weight: 700;
  text-decoration: none;
}
.unihouse-news-grid .wp-block-post-excerpt__more-link:hover,
.unihouse-news-grid .wp-block-post-excerpt__more-link:focus-visible {
  text-decoration: underline;
}

/* ============================================================
   ARCHIVE LEAD (intro band above the cards)
   ============================================================ */

.unihouse-archive-lead {
  margin: 0 0 var(--wp--preset--spacing--60);
  padding-bottom: var(--wp--preset--spacing--50);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.unihouse-archive-lead p {
  font-size: 1.2em;
  line-height: 1.5;
  color: var(--wp--preset--color--secondary);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   SINGLE NEWS / EVENT — editorial layout
   ============================================================ */

.unihouse-single__eyebrow {
  align-items: baseline;
  gap: var(--wp--preset--spacing--50);
  margin: 0 0 var(--wp--preset--spacing--40);
  font-size: 0.83em;
  color: var(--wp--preset--color--secondary);
}

.unihouse-single__back {
  margin: 0;
}
.unihouse-single__back a {
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
}
.unihouse-single__back a:hover,
.unihouse-single__back a:focus-visible {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
}

.unihouse-single .wp-block-post-date,
.unihouse-single .unihouse-single__meta {
  font-size: 0.83em;
  color: var(--wp--preset--color--secondary);
  margin: 0;
}


/* Features inside a column — compact "facility list" treatment.
   Strips the surface-coloured panel, the card backgrounds, and
   the heavy spacing. Renders as a small heading + tight list. */
.page-shell__main .wp-block-column .unihouse-features {
  padding: 0;
  background-color: transparent;
  margin-top: var(--wp--preset--spacing--50);
}
.page-shell__main .wp-block-column .unihouse-features__inner {
  max-width: none;
  margin: 0;
}
.page-shell__main .wp-block-column .unihouse-features__header {
  text-align: left;
  max-width: none;
  margin: 0 0 0.75rem;
}
.page-shell__main .wp-block-column .unihouse-features__heading {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;          /* content may be UPPERCASE; let user case win */
  margin: 0;
  color: var(--wp--preset--color--primary);
}
.page-shell__main .wp-block-column .unihouse-features__subheading {
  display: none;
}
.page-shell__main .wp-block-column .unihouse-features__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.page-shell__main .wp-block-column .unihouse-features__card {
  background-color: transparent;
  border: 0;
  border-top: 1px solid var(--wp--preset--color--border);
  border-radius: 0;
  padding: 0.5rem 0;
  box-shadow: none;
  transition: none;
}
.page-shell__main .wp-block-column .unihouse-features__card:first-child {
  border-top: 0;
  padding-top: 0;
}
.page-shell__main .wp-block-column .unihouse-features__card:hover {
  box-shadow: none;
}
.page-shell__main .wp-block-column .unihouse-features__icon {
  display: none;
}
.page-shell__main .wp-block-column .unihouse-features__card-title {
  font-size: 0.95em;
  font-weight: 400;
  color: var(--wp--preset--color--secondary);
  line-height: 1.45;
  margin: 0;
}

/* Room-card separator: consecutive wp:columns blocks inside post-content
   become a list of rooms. Add a subtle divider + breathing room between
   them so each room reads as its own card. */
.page-shell__main .wp-block-post-content > .wp-block-columns + .wp-block-columns,
.entry-content > .wp-block-columns + .wp-block-columns {
  border-top: 1px solid var(--wp--preset--color--border);
  padding-top: var(--wp--preset--spacing--60);
  margin-top: var(--wp--preset--spacing--60);
}

/* Tighten the column gap for room cards (default WP gap is generous). */
.page-shell__main .wp-block-columns {
  gap: var(--wp--preset--spacing--60);
  align-items: start;
}

/* ============================================================
   FACILITY CHIPS (inside room-card context)
   When a features-row contains slash-separated items we render each
   token as an inline chip rather than a wall of text. The first row
   (often the room-type like "Room / Heated bathroom / Private balcony")
   gets the most prominent pill treatment; the rest are quieter.
   ============================================================ */

.page-shell__main .wp-block-column .unihouse-features__card--chips {
  border-top: 1px solid var(--wp--preset--color--border);
  padding: 0.75rem 0;
}
.page-shell__main .wp-block-column .unihouse-features__card--chips:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-shell__main .wp-block-column .unihouse-features__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-shell__main .wp-block-column .unihouse-features__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.83em;
  font-weight: 500;
  line-height: 1.3;
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--gold-tint);
  border: 1px solid transparent;
  text-transform: none;
}

/* First chip-row gets a stronger treatment — gold-bordered pills that
   read as the room-type signature. Case is preserved from content so
   editors can use "Room" (preferred sentence case) or leave as-is. */
.page-shell__main .wp-block-column .unihouse-features__card--chips:first-of-type {
  border-top: 0;
  padding-top: 0;
  padding-bottom: 1rem;
}
.page-shell__main .wp-block-column .unihouse-features__card--chips:first-of-type .unihouse-features__chip {
  background-color: transparent;
  border-color: var(--wp--preset--color--accent);
  font-weight: 700;
  font-size: 0.9em;
  padding: 0.25rem 0.7rem;
  /* Sentence-case is applied server-side in unihouse-features.php */
}

/* The size row ("29 sqm") gets its own small-meta treatment. */
.page-shell__main .wp-block-column .unihouse-features__card--size {
  border-top: 1px solid var(--wp--preset--color--border);
  padding: 0.6rem 0 0;
  margin-top: 0.4rem;
}
.page-shell__main .wp-block-column .unihouse-features__card--size .unihouse-features__card-title {
  font-size: 0.83em;
  font-weight: 700;
  color: var(--wp--preset--color--secondary);
  letter-spacing: 0.04em;
}

/* ============================================================
   ROOM CARD BLOCK (acf/unihouse-room-card)
   Used inside the rooms archive Query Loop. Image left / body right
   with a thin top divider between cards.
   ============================================================ */

.unihouse-room {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--wp--preset--spacing--60);
  align-items: start;
  padding-block: var(--wp--preset--spacing--60);
  border-top: 2px solid var(--wp--preset--color--border);
}
.unihouse-room:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.unihouse-room__media a {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.unihouse-room__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.unihouse-room__media a:hover .unihouse-room__image,
.unihouse-room__media a:focus-visible .unihouse-room__image {
  transform: scale(1.02);
}

.unihouse-room__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}

.unihouse-room__title {
  font-size: var(--wp--preset--font-size--xxl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.unihouse-room__title a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.unihouse-room__title a:hover,
.unihouse-room__title a:focus-visible {
  color: var(--wp--preset--color--accent);
}

.unihouse-room__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--wp--preset--font-size--sm);
}

.unihouse-room__meta li {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.unihouse-room__meta-label {
  font-size: 0.83em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--secondary);
}

.unihouse-room__description {
  color: var(--wp--preset--color--primary);
  line-height: 1.6;
}

.unihouse-room__description p {
  margin: 0 0 0.75rem;
}
.unihouse-room__description p:last-child {
  margin-bottom: 0;
}

.unihouse-room__facilities {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.unihouse-room__facilities-heading {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--primary);
  margin: 0 0 0.4rem;
}

.unihouse-room__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--wp--preset--color--border);
}
.unihouse-room__chips:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.unihouse-room__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.83em;
  font-weight: 500;
  line-height: 1.3;
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--gold-tint);
  border: 1px solid transparent;
}

.unihouse-room__chips--prominent .unihouse-room__chip {
  background-color: transparent;
  border-color: var(--wp--preset--color--accent);
  font-weight: 700;
  font-size: 0.9em;
  padding: 0.25rem 0.7rem;
}

.unihouse-room__size {
  font-size: 0.83em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--secondary);
  margin: 0.4rem 0 0;
}

.unihouse-room__cta {
  align-self: flex-start;
  margin-top: var(--wp--preset--spacing--40);
}

@media (max-width: 720px) {
  .unihouse-room {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HOMEPAGE SECTIONS  (.uh-*)
   Shared section system used by the Home: blocks
   (events, news, venues, accommodation).
   ============================================================ */

.uh-section {
  padding-block: var(--wp--preset--spacing--80);
  padding-inline: var(--wp--preset--spacing--60);
}
/* Full-bleed homepage sections sit flush — remove the default block gap
   that otherwise shows the body background as a thin bar between them. */
.unihouse-hero,
.uh-section {
  margin-block: 0;
}
.uh-section--surface {
  background-color: var(--wp--preset--color--surface);
}
.uh-section--dark {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--on-primary);
}
.uh-section--gold-tint {
  background-color: var(--wp--preset--color--gold-tint);
  color: var(--wp--preset--color--primary);
}
.uh-section__container {
  max-width: 1200px;
  margin-inline: auto;
}

/* Section header row */
.uh-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--50);
  margin-bottom: var(--wp--preset--spacing--60);
}
.uh-section__eyebrow {
  margin: 0 0 0.4rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}
.uh-section__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--xxl);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
}
.uh-section__viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  white-space: nowrap;
  transition: gap var(--transition-fast);
}
.uh-section__viewall:hover,
.uh-section__viewall:focus-visible {
  gap: 0.75rem;
}
.uh-section__viewall .unihouse-icon {
  width: 1em;
  height: 1em;
}

/* Responsive grid */
.uh-grid {
  display: grid;
  gap: var(--wp--preset--spacing--60);
}
.uh-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .uh-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .uh-section__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .uh-grid--3 { grid-template-columns: 1fr; }
}

/* Base card */
.uh-card {
  display: flex;
  flex-direction: column;
  background-color: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.uh-card:hover,
.uh-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.uh-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--wp--preset--spacing--50);
  flex: 1 1 auto;
}
.uh-card__title {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--wp--preset--color--primary);
}
.uh-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--preset--color--accent);
}
.uh-card__cta .unihouse-icon {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-fast);
}
.uh-card:hover .uh-card__cta .unihouse-icon {
  transform: translateX(3px);
}

/* Event card */
.uh-event__date {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) 0;
  color: var(--wp--preset--color--primary);
}
.uh-event__day {
  font-size: var(--wp--preset--font-size--xxl);
  font-weight: 700;
  line-height: 1;
}
.uh-event__month {
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--accent);
}
.uh-event__when,
.uh-event__location {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
}

/* News card */
.uh-news__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--wp--preset--color--surface);
}
.uh-news__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}
.uh-card:hover .uh-news__image {
  transform: scale(1.04);
}
.uh-news__date {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.uh-news__excerpt {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
  line-height: 1.6;
}

/* Venue card */
.uh-venue__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--wp--preset--color--surface);
}
.uh-venue__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}
.uh-card:hover .uh-venue__image {
  transform: scale(1.04);
}
.uh-venue--no-image .uh-card__body {
  padding-block: var(--wp--preset--spacing--60);
}
.uh-venue__excerpt {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
  line-height: 1.6;
}

/* Accommodation band */
.uh-stay__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--wp--preset--spacing--70);
  align-items: center;
}
@media (max-width: 1024px) {
  .uh-stay__grid { grid-template-columns: 1fr; }
}
.uh-stay__lead {
  margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--50);
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.7;
  color: rgba(255 255 255 / 80%);
  max-width: 46ch;
}
.uh-stay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--40);
}
.uh-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid var(--wp--preset--color--accent);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.uh-btn--solid {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--on-primary);
}
.uh-btn--solid:hover,
.uh-btn--solid:focus-visible {
  background-color: transparent;
  color: var(--wp--preset--color--accent);
}
.uh-btn--ghost {
  background-color: transparent;
  color: var(--wp--preset--color--on-primary);
  border-color: rgba(255 255 255 / 40%);
}
.uh-btn--ghost:hover,
.uh-btn--ghost:focus-visible {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}
.uh-stay__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.uh-stay__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255 255 255 / 30%);
  background: transparent;
  color: var(--wp--preset--color--on-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  z-index: 1;
}
.uh-stay__arrow:hover:not(:disabled) {
  border-color: var(--wp--preset--color--accent);
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--on-primary);
}
.uh-stay__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.uh-section--gold-tint .uh-stay__arrow {
  border-color: rgba(0 0 0 / 20%);
  color: var(--wp--preset--color--primary);
}
.uh-section--gold-tint .uh-stay__arrow:hover:not(:disabled) {
  border-color: var(--wp--preset--color--accent);
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
}
.uh-stay__rooms {
  display: flex;
  gap: var(--wp--preset--spacing--40);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.uh-stay__rooms::-webkit-scrollbar {
  display: none;
}
@media (max-width: 700px) {
  .uh-stay__rooms {
    padding-right: 1.5rem;
  }
}
.uh-roomlet {
  flex: 0 0 calc((100% - 2 * var(--wp--preset--spacing--40)) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--wp--preset--color--on-primary);
}
/* Stacked layout: still 3-up with arrows */
@media (max-width: 1024px) and (min-width: 701px) {
  .uh-roomlet { flex: 0 0 calc((100% - 2 * var(--wp--preset--spacing--40)) / 3); }
}
/* Tablet portrait: hide arrows, show 2 full cards + peek of 3rd */
@media (max-width: 700px) and (min-width: 481px) {
  .uh-stay__arrow { display: none; }
  .uh-roomlet { flex: 0 0 calc((100% - var(--wp--preset--spacing--40)) / 2.15); }
}
/* Phone: hide arrows, show 1 full card + peek of 2nd */
@media (max-width: 480px) {
  .uh-stay__arrow { display: none; }
  .uh-roomlet { flex: 0 0 80%; }
}
.uh-roomlet__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: rgba(255 255 255 / 8%);
}
.uh-roomlet__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}
.uh-roomlet:hover .uh-roomlet__image {
  transform: scale(1.05);
}
.uh-roomlet__body {
  padding-top: 0.5rem;
}
.uh-roomlet__title {
  display: block;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
}
.uh-roomlet__size {
  display: block;
  font-size: var(--wp--preset--font-size--xs);
  color: rgba(255 255 255 / 65%);
}

/* Overrides when stay section uses gold-tint background instead of dark */
.uh-section--gold-tint .uh-stay__lead {
  color: var(--wp--preset--color--secondary);
}
.uh-section--gold-tint .uh-btn--ghost {
  color: var(--wp--preset--color--primary);
  border-color: rgba(0 0 0 / 30%);
}
.uh-section--gold-tint .uh-btn--ghost:hover,
.uh-section--gold-tint .uh-btn--ghost:focus-visible {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}
.uh-section--gold-tint .uh-roomlet {
  color: var(--wp--preset--color--primary);
}
.uh-section--gold-tint .uh-roomlet__media {
  background-color: rgba(0 0 0 / 8%);
}
.uh-section--gold-tint .uh-roomlet__size {
  color: var(--wp--preset--color--secondary);
}

/* ── What's On & News (combined two-column section) ── */
.uh-whatson {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--wp--preset--spacing--70);
  align-items: start;
}
@media (max-width: 1024px) {
  .uh-whatson {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--60);
  }
}

.uh-colhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--40);
  margin-bottom: var(--wp--preset--spacing--50);
}
.uh-whatson__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--wp--preset--color--primary);
}

/* Event rows (left column) */
.uh-eventrows {
  display: flex;
  flex-direction: column;
}
.uh-eventrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--wp--preset--spacing--50);
  align-items: center;
  padding-block: var(--wp--preset--spacing--50);
  border-top: 1px solid var(--wp--preset--color--border);
  text-decoration: none;
  color: var(--wp--preset--color--primary);
}
.uh-eventrow:first-child {
  border-top: 0;
  padding-top: 0;
}
.uh-eventrow__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
  padding-right: var(--wp--preset--spacing--50);
  border-right: 1px solid var(--wp--preset--color--border);
}
.uh-eventrow__day {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  line-height: 1;
  color: var(--wp--preset--color--primary);
}
.uh-eventrow__month {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--primary);
}
.uh-eventrow__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.uh-eventrow__when {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--secondary);
}
.uh-eventrow__title {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  line-height: 1.2;
  color: var(--wp--preset--color--primary);
  transition: color var(--transition-fast);
}
.uh-eventrow:hover .uh-eventrow__title,
.uh-eventrow:focus-visible .uh-eventrow__title {
  color: var(--wp--preset--color--secondary);
}
.uh-eventrow__location {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
}
.uh-eventrow__chev {
  display: inline-flex;
  color: var(--wp--preset--color--primary);
}
.uh-eventrow__chev .unihouse-icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--transition-fast);
}
.uh-eventrow:hover .uh-eventrow__chev .unihouse-icon {
  transform: translateX(3px);
}
.uh-whatson__empty {
  color: var(--wp--preset--color--secondary);
}

/* News list (right column — text only) */
.uh-whatson__news {
  padding-left: var(--wp--preset--spacing--70);
  border-left: 1px solid var(--wp--preset--color--border);
}
@media (max-width: 1024px) {
  .uh-whatson__news {
    padding-left: 0;
    border-left: 0;
    padding-top: var(--wp--preset--spacing--50);
    border-top: 1px solid var(--wp--preset--color--border);
  }
}
.uh-newslist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.uh-newslist__item {
  margin: 0;
}
.uh-newslist__link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: var(--wp--preset--spacing--40);
  border-top: 1px solid var(--wp--preset--color--border);
  text-decoration: none;
}
.uh-newslist__item:first-child .uh-newslist__link {
  border-top: 0;
  padding-top: 0;
}
.uh-newslist__date {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.uh-newslist__title {
  font-size: var(--wp--preset--font-size--md);
  font-weight: 600;
  line-height: 1.3;
  color: var(--wp--preset--color--primary);
  transition: color var(--transition-fast);
}
.uh-newslist__link:hover .uh-newslist__title,
.uh-newslist__link:focus-visible .uh-newslist__title {
  color: var(--wp--preset--color--secondary);
}
.uh-whatson__newsmore {
  margin-top: var(--wp--preset--spacing--50);
}

/* ============================================================
   TEXT BLOCK  (.uh-text-block*)
   Simple heading + body + link block (acf/unihouse-text).
   ============================================================ */
.uh-text-block {
  max-width: 72ch;
}
.uh-text-block__heading {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin: 0 0 var(--wp--preset--spacing--40);
}
.uh-text-block__body {
  color: var(--wp--preset--color--secondary);
  line-height: 1.7;
  margin: 0 0 var(--wp--preset--spacing--50);
}
.uh-text-block__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--wp--preset--color--accent);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--sm);
  text-decoration: none;
}
.uh-text-block__link:hover,
.uh-text-block__link:focus-visible {
  text-decoration: underline;
}
.uh-text-block__link svg {
  width: 1em;
  height: 1em;
}

/* ============================================================
   VENUE TILES  (.uh-tile*)
   Image + excerpt row tiles listing a page's child pages.
   ============================================================ */
.uh-tiles {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--60);
  margin-top: var(--wp--preset--spacing--60);
}
.uh-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.uh-tile:hover,
.uh-tile:focus-visible {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.uh-tile--no-hover:hover,
.uh-tile--no-hover:focus-visible {
  box-shadow: none;
  border-color: var(--wp--preset--color--border);
  transform: none;
  cursor: default;
}
.uh-tile.is-reversed .uh-tile__media {
  order: 2;
}
.uh-tile__media {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background-color: var(--wp--preset--color--surface);
}
.uh-tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.uh-tile:hover .uh-tile__image {
  transform: scale(1.03);
}
.uh-tile__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--wp--preset--spacing--40);
  padding: var(--wp--preset--spacing--70);
}
.uh-tile__title {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--wp--preset--color--primary);
}
.uh-tile__excerpt {
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.6;
  color: var(--wp--preset--color--secondary);
}
.uh-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--wp--preset--spacing--20);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--preset--color--accent);
}
.uh-tile__cta .unihouse-icon {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-fast);
}
.uh-tile:hover .uh-tile__cta .unihouse-icon {
  transform: translateX(3px);
}
.uh-tile--no-image {
  grid-template-columns: 1fr;
}
@media (max-width: 768px) {
  .uh-tile,
  .uh-tile--no-image {
    grid-template-columns: 1fr;
  }
  .uh-tile.is-reversed .uh-tile__media {
    order: 0;
  }
  .uh-tile__media {
    min-height: 12rem;
  }
  .uh-tile__body {
    padding: var(--wp--preset--spacing--50);
  }
}

/* ============================================================
   FUNCTION ROOM LIST CARDS  (.uh-fnroom-*)
   Full-image (uncropped) left + details right layout.
   ============================================================ */
.uh-fnroom-list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--60);
  margin-top: var(--wp--preset--spacing--60);
}
.uh-fnroom-card {
  display: flex;
  flex-direction: row;
  background-color: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.uh-fnroom-card--no-image {
  flex-direction: column;
}
.uh-fnroom-card__media {
  flex: 0 0 45%;
  max-width: 45%;
  border-right: 1px solid var(--wp--preset--color--border);
  background-color: var(--wp--preset--color--bg);
  padding: var(--wp--preset--spacing--50);
  display: flex;
  align-items: center;
}
.uh-fnroom-card__image {
  display: block;
  width: 100%;
  height: auto;
}
.uh-fnroom-card__body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
  padding: var(--wp--preset--spacing--60);
}
.uh-fnroom-card__title {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--wp--preset--color--primary);
  margin: 0;
}
.uh-fnroom-card__excerpt {
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.6;
  color: var(--wp--preset--color--secondary);
  margin: 0;
}
.uh-fnroom-card__area {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--preset--color--muted);
  margin: 0 0 var(--wp--preset--spacing--30);
}
.uh-fnroom-card__features {
  list-style: none;
  margin: 0 0 var(--wp--preset--spacing--40);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.uh-fnroom-card__feature {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
  padding-left: 1.25em;
  position: relative;
}
.uh-fnroom-card__feature::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--accent);
  font-weight: 700;
}
.uh-fnroom-card__dims {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--secondary);
  margin: 0;
}
.uh-fnroom-card__caps {
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--40);
  border-top: 1px solid var(--wp--preset--color--border);
}
.uh-fnroom-card__caps-label {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--muted);
  margin: 0 0 var(--wp--preset--spacing--30);
}
.uh-fnroom-card__caps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--20);
}
.uh-fnroom-card__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  min-width: 4.5rem;
  text-align: center;
}
.uh-fnroom-card__cap-label {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--muted);
  line-height: 1.2;
}
.uh-fnroom-card__cap-value {
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  line-height: 1.3;
}
@media (max-width: 768px) {
  .uh-fnroom-card {
    flex-direction: column;
  }
  .uh-fnroom-card__media {
    flex: none;
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--wp--preset--color--border);
  }
  .uh-fnroom-card__body {
    padding: var(--wp--preset--spacing--50);
  }
}

/* ============================================================
   FUNCTION ROOMS CAPACITY TABLE  (.uh-captable*)
   ============================================================ */
.uh-captable {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
}
.uh-captable__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--primary);
  min-width: 48rem;
}
.uh-captable th,
.uh-captable td {
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
  text-align: center;
  border-bottom: 1px solid var(--wp--preset--color--border);
  white-space: nowrap;
}
.uh-captable thead th {
  background-color: var(--wp--preset--color--surface);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  border-bottom: 2px solid var(--wp--preset--color--border);
}
.uh-captable__unit {
  font-weight: 400;
  color: var(--wp--preset--color--secondary);
}
.uh-captable__room {
  text-align: left;
  font-weight: 700;
  position: sticky;
  left: 0;
  background-color: var(--wp--preset--color--bg);
}
.uh-captable thead .uh-captable__room {
  background-color: var(--wp--preset--color--surface);
}
.uh-captable tbody tr:last-child th,
.uh-captable tbody tr:last-child td {
  border-bottom: 0;
}
.uh-captable tbody tr:hover td,
.uh-captable tbody tr:hover .uh-captable__room {
  background-color: var(--wp--preset--color--surface);
}

/* ============================================================
   GRAVITY FORMS  (.gform_wrapper)
   Override the Orbital theme tokens + direct overrides to match
   the ANU / Unihouse design system.
   ============================================================ */

/* --- Token overrides (GF Orbital CSS variables) --- */
.gform_wrapper.gform-theme {
  --gf-color-primary:               var(--wp--preset--color--accent);
  --gf-color-primary-rgb:           190, 131, 14;
  --gf-color-primary-contrast:      #fff;
  --gf-color-primary-darker:        #a36a00;
  --gf-color-primary-lighter:       #d19010;
  --gf-color-in-ctrl-primary:       var(--wp--preset--color--accent);
  --gf-ctrl-border-color:           var(--wp--preset--color--border);
  --gf-radius:                      8px;
  --gf-font-size-secondary:         var(--wp--preset--font-size--sm);
  --gf-font-size-tertiary:          var(--wp--preset--font-size--xs);
  --gf-ctrl-label-color-primary:    var(--wp--preset--color--primary);
  --gf-ctrl-label-color-secondary:  var(--wp--preset--color--secondary);
  --gf-color-out-ctrl-light:        var(--wp--preset--color--border);
}

/* --- Base: font + spacing --- */
.gform_wrapper,
.gform_wrapper input,
.gform_wrapper textarea,
.gform_wrapper select {
  font-family: 'Public Sans', sans-serif;
  font-size: var(--wp--preset--font-size--md);
  color: var(--wp--preset--color--primary);
}

.gform_wrapper .gform_fields {
  row-gap: var(--wp--preset--spacing--50);
}

/* --- Labels --- */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.375rem;
}

/* Required indicator */
.gform_wrapper .gfield_required {
  color: var(--wp--preset--color--accent);
  font-weight: 400;
}

/* Sub-labels (First / Last under name field) */
.gform_wrapper .gfield_label_before_complex + .ginput_container .gform-grid-col label,
.gform_wrapper .ginput_complex .ginput_left label,
.gform_wrapper .ginput_complex .ginput_right label,
.gform_wrapper .name_first label,
.gform_wrapper .name_last label {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--muted);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* --- Inputs, textareas, selects --- */
.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=image]):not([type=file]),
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-sm);
  background-color: var(--wp--preset--color--bg);
  color: var(--wp--preset--color--primary);
  font-family: 'Public Sans', sans-serif;
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=image]):not([type=file]):focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
  outline: none;
  border-color: var(--wp--preset--color--accent);
  box-shadow: 0 0 0 3px rgba(190, 131, 14, 0.15);
}

/* Date picker icon button */
.gform_wrapper .gfield--datepicker-default-icon .ginput_container_date::after {
  border-color: var(--wp--preset--color--accent);
}

/* --- Section headings --- */
.gform_wrapper .gsection {
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-bottom: var(--wp--preset--spacing--30);
  margin-top: var(--wp--preset--spacing--20);
}
.gform_wrapper .gsection_title {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin: 0;
}

/* --- Radio buttons --- */
.gform_wrapper .gfield_radio .gchoice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}
.gform_wrapper .gfield_radio .gchoice input[type=radio] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--wp--preset--color--accent);
  cursor: pointer;
}
.gform_wrapper .gfield_radio .gchoice label {
  font-size: var(--wp--preset--font-size--md);
  color: var(--wp--preset--color--primary);
  cursor: pointer;
  margin: 0;
}

/* --- Checkboxes --- */
.gform_wrapper .gfield_checkbox .gchoice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
}
.gform_wrapper .gfield_checkbox .gchoice input[type=checkbox] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--wp--preset--color--accent);
  cursor: pointer;
}
.gform_wrapper .gfield_checkbox .gchoice label {
  font-size: var(--wp--preset--font-size--md);
  color: var(--wp--preset--color--primary);
  cursor: pointer;
  margin: 0;
}

/* --- Number input: hide browser spinner arrows --- */
.gform_wrapper input[type=number]::-webkit-inner-spin-button,
.gform_wrapper input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  opacity: 0 !important;
}
.gform_wrapper input[type=number] {
  -moz-appearance: textfield !important;
}

/* --- Validation messages --- */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
  border-color: #c0392b;
}
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message {
  font-size: var(--wp--preset--font-size--xs);
  color: #c0392b;
  margin-top: 0.25rem;
}
.gform_wrapper .gform_validation_errors {
  border: 1px solid #c0392b;
  border-radius: var(--radius-sm);
  padding: var(--wp--preset--spacing--40);
  color: #c0392b;
  font-size: var(--wp--preset--font-size--sm);
}

/* --- Submit button --- */
.gform_wrapper .gform_footer {
  margin-top: var(--wp--preset--spacing--60);
  padding-top: var(--wp--preset--spacing--50);
  border-top: 1px solid var(--wp--preset--color--border);
}
.gform_wrapper .gform_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 2rem;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Public Sans', sans-serif;
  font-size: var(--wp--preset--font-size--md);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper .gform_button:focus-visible {
  background-color: #a36a00;
  outline: none;
}

/* --- Confirmation message --- */
.gform_confirmation_wrapper {
  padding: var(--wp--preset--spacing--60);
  background-color: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  font-size: var(--wp--preset--font-size--md);
  color: var(--wp--preset--color--primary);
}

/* Override GF's inline-style ID-specificity on the submit button */
.gform_wrapper .gform_button,
.gform_wrapper input[type=submit].gform_button {
  background-color: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--primary) !important;
  font-family: 'Public Sans', sans-serif !important;
  font-size: var(--wp--preset--font-size--md) !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.7rem 2rem !important;
  cursor: pointer !important;
  transition: background-color var(--transition-fast) !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type=submit].gform_button:hover {
  background-color: #a36a00 !important;
  border-color: #a36a00 !important;
}

/* Gravity Forms side padding */
.gform_wrapper .gform_body {
  padding: 0 var(--wp--preset--spacing--70) 0 0;
}
.gform_wrapper .gform_footer {
  padding-left: 0;
  padding-right: var(--wp--preset--spacing--70);
}

/* 3-column checkbox / radio list — add CSS class "cols-3" to the GF field */
.gform_wrapper .cols-3 .gfield_checkbox,
.gform_wrapper .cols-3 .gfield_radio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem 1.5rem;
}
@media (max-width: 600px) {
  .gform_wrapper .cols-3 .gfield_checkbox,
  .gform_wrapper .cols-3 .gfield_radio {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════
   Contact page block (acf/unihouse-contact)
   ══════════════════════════════════════════════════════════ */
.page-contacts-crumb {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60) 0;
}
.uh-contact__container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--wp--preset--spacing--60);
}

/* Hero band */
.uh-contact__hero {
  background-color: var(--wp--preset--color--gold-tint);
  padding-block: var(--wp--preset--spacing--80);
}
.uh-contact__intro {
  max-width: 60ch;
  margin-bottom: var(--wp--preset--spacing--70);
}
.uh-contact__title {
  margin: 0 0 var(--wp--preset--spacing--40);
  font-size: var(--wp--preset--font-size--xxxl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--wp--preset--color--primary);
}
.uh-contact__lead {
  margin: 0;
  font-size: var(--wp--preset--font-size--lg);
  line-height: 1.6;
  color: var(--wp--preset--color--secondary);
}
.uh-contact__hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--wp--preset--spacing--60);
  align-items: stretch;
}
@media (max-width: 860px) {
  .uh-contact__hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Address card */
.uh-contact__location {
  display: flex;
}
.uh-contact__address {
  display: flex;
  gap: 1rem;
  background: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  padding: var(--wp--preset--spacing--50);
  width: 100%;
}
.uh-contact__address-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--wp--preset--color--gold-tint);
  color: var(--wp--preset--color--accent);
}
.uh-contact__address-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.uh-contact__address-label {
  margin: 0 0 0.35rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}
.uh-contact__address-text {
  margin: 0 0 1rem;
  font-size: var(--wp--preset--font-size--md);
  line-height: 1.6;
  color: var(--wp--preset--color--primary);
}
.uh-contact__directions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--wp--preset--color--accent);
  transition: gap var(--transition-fast);
}
.uh-contact__directions:hover,
.uh-contact__directions:focus-visible {
  gap: 0.75rem;
}
.uh-contact__directions .unihouse-icon {
  width: 1em;
  height: 1em;
}

/* Map embed */
.uh-contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--border);
  min-height: 320px;
}
.uh-contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Departments band */
.uh-contact__depts {
  padding-block: var(--wp--preset--spacing--80);
  background: var(--wp--preset--color--bg);
}
.uh-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--50);
}
@media (max-width: 900px) {
  .uh-contact__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .uh-contact__grid { grid-template-columns: 1fr; }
}
.uh-contact__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--wp--preset--spacing--50);
  background: var(--wp--preset--color--bg);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.uh-contact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0 0 0 / 8%);
}
.uh-contact__card-name {
  margin: 0;
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--wp--preset--color--primary);
}
.uh-contact__card-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}
.uh-contact__card-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--wp--preset--font-size--sm);
  text-decoration: none;
  color: var(--wp--preset--color--secondary);
  transition: color var(--transition-fast);
  overflow-wrap: anywhere;
}
.uh-contact__card-line:hover,
.uh-contact__card-line:focus-visible {
  color: var(--wp--preset--color--accent);
}
.uh-contact__card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--wp--preset--color--gold-tint);
  color: var(--wp--preset--color--accent);
}
.uh-contact__card-icon svg {
  width: 1rem;
  height: 1rem;
}

/* ══════════════════════════════════════════════════════════
   Room comparison table (acf/unihouse-room-table)
   ══════════════════════════════════════════════════════════ */
.uh-room-table {
  margin: 0 0 var(--wp--preset--spacing--50);
  overflow-x: auto;
}
.uh-room-table__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wp--preset--font-size--sm);
}
.uh-room-table__table th,
.uh-room-table__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--wp--preset--color--border);
  white-space: nowrap;
}
.uh-room-table__table thead th {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--muted);
  border-bottom: 2px solid var(--wp--preset--color--primary);
}
.uh-room-table__table tbody tr:hover {
  background-color: var(--wp--preset--color--surface);
}
.uh-room-table__book {
  text-align: right;
}
.uh-room-table__book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--wp--preset--color--accent);
  transition: gap var(--transition-fast);
}
.uh-room-table__book-link:hover,
.uh-room-table__book-link:focus-visible {
  gap: 0.75rem;
}
.uh-room-table__book-link .unihouse-icon {
  width: 1em;
  height: 1em;
}
@media (max-width: 640px) {
  .uh-room-table__table th,
  .uh-room-table__table td {
    padding: 0.65rem 0.6rem;
  }
}

/* ══════════════════════════════════════════════════════════
   Function room comparison table (acf/unihouse-function-room-table)
   ══════════════════════════════════════════════════════════ */
.uh-fnroom-table {
  margin: 0 0 var(--wp--preset--spacing--50);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
}
.uh-fnroom-table__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--wp--preset--font-size--sm);
}
.uh-fnroom-table__table th,
.uh-fnroom-table__table td {
  padding: 0.85rem 1.1rem;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.uh-fnroom-table__table thead th {
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--gold-tint);
}
.uh-fnroom-table__name-col {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left !important;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--surface);
  border-right: 1px solid var(--wp--preset--color--border);
}
thead .uh-fnroom-table__name-col {
  z-index: 2;
}
.uh-fnroom-table__table tbody tr:last-child th,
.uh-fnroom-table__table tbody tr:last-child td {
  border-bottom: none;
}
.uh-fnroom-table__table tbody tr:hover td,
.uh-fnroom-table__table tbody tr:hover th {
  background-color: var(--wp--preset--color--gold-tint);
}
@media (max-width: 640px) {
  .uh-fnroom-table__table {
    min-width: 520px;
    font-size: var(--wp--preset--font-size--xs);
  }
  .uh-fnroom-table__table th,
  .uh-fnroom-table__table td {
    padding: 0.65rem 0.75rem;
  }
}
