/*
 * Property and homepage styles. Loaded only where they are needed — see functions.php.
 * All colour comes from the tokens in style.css; nothing here hardcodes a hex.
 */

.yhh-single, .yhh-archive, .yhh-home { color: var(--yhh-ink); }
.yhh-single__head h1 { margin-bottom: .15em; }
.yhh-single__area { margin: 0 0 1.4rem; }
.yhh-single__area a { color: var(--yhh-ocean); text-decoration: none; font-size: .95rem; }
.yhh-subhead {
  font-family: var(--yhh-display); color: var(--yhh-deep);
  margin: 2rem 0 .8rem; font-size: 1.25rem;
}

/* --- layout: gallery two-thirds, price panel one-third, same top line --- */

/*
 * Three blocks — gallery, content, price panel — placed by named grid areas rather than
 * source order. That is what lets the price panel sit beside the photo on a desktop and
 * directly beneath it on a phone, without duplicating any markup.
 */
.yhh-single__body {
  display: grid; gap: 1.5rem 2rem; align-items: start;
  grid-template-columns: 1fr;
  grid-template-areas: "gallery" "aside" "content";
}
.yhh-single__gallery { grid-area: gallery; min-width: 0; }
.yhh-single__main    { grid-area: content; min-width: 0; }
.yhh-single__aside   { grid-area: aside; }

@media (min-width: 900px) {
  .yhh-single__body {
    grid-template-columns: minmax(0,2fr) minmax(0,1fr);
    grid-template-areas: "gallery aside" "content aside";
  }
  .yhh-single__aside { position: sticky; top: 90px; }
}

/* --- gallery ----------------------------------------------------------- */

.yhh-gallery__hero { position: relative; margin: 0 0 .5rem; }
.yhh-gallery__hero-img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  /* Reserving the ratio stops the page jumping as the hero arrives — layout shift is both
     a ranking signal and the most irritating thing on a slow connection. */
  aspect-ratio: 3 / 2; object-fit: cover;
  /* Ten per cent shorter than it was. The hero was eating the fold and pushing the
     description below it on a laptop. */
  max-height: 54vh;
}
.yhh-gallery__open { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.yhh-gallery__count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(11,49,68,.74); color: #fff;
  padding: .3em .8em; border-radius: 999px; font-size: .78rem;
}
.yhh-gallery__strip {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: grid; gap: .35rem; grid-template-columns: repeat(6, 1fr);
}
.yhh-gallery__strip img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  aspect-ratio: 4 / 3; border-radius: 6px;
}
.yhh-gallery__more {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; width: 100%;
  background: var(--yhh-tint); color: var(--yhh-ocean);
  border-radius: 6px; font-weight: 500; font-size: .8rem; cursor: pointer;
}
.yhh-gallery__more:hover { background: var(--yhh-line); }

/* --- lightbox ---------------------------------------------------------- */

.yhh-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(11,25,34,.94); display: flex; align-items: center; justify-content: center; }
.yhh-lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.yhh-lightbox__btn {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0;
  cursor: pointer; font-size: 1.6rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%;
}
.yhh-lightbox__btn:hover { background: rgba(255,255,255,.28); }
.yhh-lightbox__close { top: 16px; right: 16px; }
.yhh-lightbox__prev { left: 16px; }
.yhh-lightbox__next { right: 16px; }
.yhh-lightbox__counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; opacity: .85; }

/* --- price panel ------------------------------------------------------- */

/*
 * The price panel is deliberately compact. Its job is price, ownership, the headline
 * numbers and the enquiry buttons — all of it visible without scrolling on a laptop. The
 * feature tags moved out to the main column for the same reason.
 */
.yhh-single__aside {
  background: var(--yhh-paper); border: 1px solid var(--yhh-line);
  border-radius: 12px; padding: 1rem 1.1rem;
  font-size: .93rem; line-height: 1.4;
}
.yhh-price { margin-bottom: .8rem; }
.yhh-price__label {
  display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--yhh-muted); font-weight: 500; margin-bottom: -.1rem;
}
.yhh-price__main { font-family: var(--yhh-display); font-size: 1.6rem; color: var(--yhh-ocean); margin: 0; line-height: 1.15; }
.yhh-price__rent { font-size: 1.15rem; margin: .5rem 0 0; line-height: 1.2; color: var(--yhh-ink); }
.yhh-price__note { font-size: .78rem; color: var(--yhh-muted); margin: .1rem 0 0; font-weight: 400; text-transform: none; letter-spacing: 0; display: inline; }

.yhh-ownership {
  margin: 0 0 .8rem; padding: .5rem .7rem;
  border-left: 3px solid var(--yhh-sun); background: #FBF2E6; border-radius: 0;
}
.yhh-ownership__label {
  display: block; font-size: .66rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--yhh-sun-dk); margin-bottom: .05rem;
}
.yhh-ownership strong { color: var(--yhh-ink); font-weight: 500; font-size: .95rem; }
.yhh-ownership__other { display: block; font-size: .78rem; color: var(--yhh-muted); margin-top: .05rem; }

.yhh-facts { list-style: none; margin: 0 0 .9rem; padding: 0; }
.yhh-facts li { display: flex; justify-content: space-between; gap: .8rem; padding: .3rem 0; border-bottom: 1px solid var(--yhh-line); }
.yhh-facts li:last-child { border-bottom: 0; }
.yhh-facts__label { color: var(--yhh-muted); font-size: .84rem; }
.yhh-facts__value { font-weight: 500; text-align: right; font-size: .88rem; }

.yhh-tags { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.yhh-tags li a, .yhh-tags--plain li {
  display: inline-block; padding: .28em .8em; border: 1px solid var(--yhh-line);
  border-radius: 999px; font-size: .82rem; text-decoration: none; color: var(--yhh-ink);
}
.yhh-tags li a:hover { border-color: var(--yhh-ocean); color: var(--yhh-ocean); }

/* --- contact ----------------------------------------------------------- */

.yhh-contact { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--yhh-line); }
.yhh-contact__lead { margin: 0 0 .6rem; font-weight: 500; font-size: .95rem; }
.yhh-contact__buttons { display: flex; flex-direction: column; gap: .35rem; }
.yhh-btn {
  display: block; text-align: center; padding: .7em 1.1em; border-radius: 8px;
  text-decoration: none; font-weight: 500; border: 1px solid transparent; color: #fff;
  background: var(--yhh-deep);
}
.yhh-btn:hover { color: #fff; opacity: .92; }
/* Sun is for actions only. WhatsApp is the action that matters most here. */
.yhh-btn--wa, .yhh-btn--primary { background: var(--yhh-sun); }
.yhh-btn--wa:hover, .yhh-btn--primary:hover { background: var(--yhh-sun-dk); }
.yhh-btn--line { background: var(--yhh-ocean); }
.yhh-btn--call { background: var(--yhh-ocean); }
.yhh-btn--mail { background: var(--yhh-deep); }
/* Quiet: "Show map" is a convenience, not the action this page is asking for. */
.yhh-btn--ghost {
  display: inline-block; width: auto; background: var(--yhh-paper);
  color: var(--yhh-ocean); border-color: var(--yhh-ocean); cursor: pointer;
  font: inherit; font-weight: 500;
}
.yhh-btn--ghost:hover { background: var(--yhh-tint); color: var(--yhh-deep); opacity: 1; }
.yhh-btn--ghost[disabled] { opacity: .6; cursor: default; }

/* --- footer credit ------------------------------------------------------ */

/* The theme credit is an obligation, not a message. Smaller and quieter so the line reads
   as "YHuaHin, by ElephantBricks" first, with the attribution trailing after it. */
.yhh-credit-small { font-size: .82em; opacity: .75; }

/* --- location map ------------------------------------------------------- */

/* The placeholder holds the same height the map will take, so opening it does not shove
   the rest of the page downwards. */
.yhh-map { margin: 0 0 1rem; }
.yhh-map__placeholder,
.yhh-map__canvas {
  height: 320px; border-radius: 10px; border: 1px solid var(--yhh-line);
}
.yhh-map__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; background: var(--yhh-tint); text-align: center; padding: 1rem;
}
.yhh-map__icon { width: 34px; height: 34px; fill: var(--yhh-ocean); opacity: .55; }
.yhh-map__note { margin: 0; font-size: .9rem; color: var(--yhh-ink); max-width: 34ch; }
.yhh-map__canvas { width: 100%; background: var(--yhh-tint); }
/* Leaflet sets its own font; keep the attribution from shouting. */
.yhh-map__canvas .leaflet-container { font-family: inherit; border-radius: 10px; }
.yhh-map__canvas .leaflet-control-attribution { font-size: .7rem; }

@media (max-width: 600px) {
  .yhh-map__placeholder, .yhh-map__canvas { height: 240px; }
}

/* --- photographs inside page content (the guides) ----------------------- */

/* Scoped to Gutenberg image blocks, which exist only inside page and post content. That
   avoids guessing which wrapper class Kadence puts around a page — a guess that would
   fail silently and look like the CSS simply had no effect. */
.wp-block-image { margin: 1.75rem 0; }
.wp-block-image img { border-radius: 10px; height: auto; max-width: 100%; }
.wp-block-image figcaption {
  margin-top: .55rem; font-size: .88rem; line-height: 1.45;
  color: var(--yhh-muted); text-align: left;
}

/* For a photo whose original is narrower than the text column. Stretching a 550px image
   across 800px adds no detail — it only makes it look soft, which reads as a careless
   upload. Shown at its own size and centred, it reads as a deliberate choice. */
.wp-block-image.yhh-photo-small img { max-width: 560px; margin-left: auto; margin-right: auto; }
.wp-block-image.yhh-photo-small figcaption { text-align: center; }

/* Headings in a long guide need air above them or the areas run together. Scoped to the
   block editor's own class so it needs no extra class added by hand in the admin. */
.wp-block-heading + .wp-block-image { margin-top: 1rem; }

/* --- video, plans, banners --------------------------------------------- */

.yhh-video-wrap { margin: 0 0 1rem; }
.yhh-video-wrap figcaption { margin-top: .4rem; font-size: .88rem; color: var(--yhh-muted); }
/* Twenty per cent shorter, and capped in width too — a phone-shot clip gains nothing from
   being blown up to the full column, and it competes with the photographs. */
.yhh-video { width: 100%; max-width: 560px; height: auto; max-height: 48vh; border-radius: 10px; background: var(--yhh-deep); }
.yhh-video-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 10px; }
.yhh-plans { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
.yhh-plans img { width: 100%; height: auto; border-radius: 6px; }
.yhh-closed-banner { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.2rem; background: #FBF2E6; border: 1px solid #EBD3B0; }
.yhh-notice { padding: .8rem 1rem; background: #FBF2E6; border: 1px solid #EBD3B0; border-radius: 8px; }
.yhh-similar { margin-top: 3rem; }

/* --- cards ------------------------------------------------------------- */

.yhh-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.yhh-card { border: 1px solid var(--yhh-line); border-radius: 12px; overflow: hidden; background: var(--yhh-paper); transition: border-color .15s; }
.yhh-card:hover { border-color: var(--yhh-ocean); }
.yhh-card__link { text-decoration: none; color: inherit; display: block; }
.yhh-card__media { position: relative; background: var(--yhh-tint); }
.yhh-card__media img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.yhh-card__noimage { display: flex; aspect-ratio: 4/3; align-items: center; justify-content: center; color: var(--yhh-muted); font-size: .85rem; }
.yhh-card__badge { position: absolute; top: 10px; left: 10px; background: rgba(11,49,68,.78); color: #fff; padding: .25em .75em; border-radius: 999px; font-size: .74rem; }
.yhh-card__badge--type { background: rgba(255,255,255,.94); color: var(--yhh-deep); }
.yhh-card--closed .yhh-card__media img { filter: grayscale(1); opacity: .6; }
.yhh-card__body { padding: .9rem 1rem 1.1rem; }
.yhh-card__title { font-family: var(--yhh-display); margin: 0 0 .15rem; font-size: 1.02rem; line-height: 1.3; color: var(--yhh-deep); }
.yhh-card__area { margin: 0 0 .45rem; font-size: .84rem; color: var(--yhh-muted); }
.yhh-card__price { font-family: var(--yhh-display); margin: 0 0 .25rem; font-size: 1.12rem; color: var(--yhh-ocean); }
.yhh-card__specs { margin: 0; font-size: .84rem; color: var(--yhh-muted); }

/* --- filters and archive ----------------------------------------------- */

.yhh-filters {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin: 0 0 1.6rem; padding: 1rem; border-radius: 12px;
  background: var(--yhh-paper); border: 1px solid var(--yhh-line);
}
.yhh-filters__field { flex: 1 1 150px; margin: 0; }
.yhh-filters select { width: 100%; padding: .6em .7em; border-radius: 8px; border: 1px solid var(--yhh-line); background: #fff; color: var(--yhh-ink); font-family: inherit; }
.yhh-filters__clear { align-self: center; font-size: .9rem; }

/* Multi-select filter (price). <details> so it works with JavaScript switched off. */
.yhh-filters__multi { position: relative; }
.yhh-filters__multi > summary {
  list-style: none; cursor: pointer; padding: .6em .7em; border-radius: 8px;
  border: 1px solid var(--yhh-line); background: #fff; color: var(--yhh-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yhh-filters__multi > summary::-webkit-details-marker { display: none; }
/* The same chevron a <select> shows, so it reads as one of the dropdowns rather than
   as something new to learn. */
.yhh-filters__multi > summary::after {
  content: ''; float: right; margin: .45em 0 0 .5em; width: .5em; height: .5em;
  border-right: 2px solid var(--yhh-muted); border-bottom: 2px solid var(--yhh-muted);
  transform: rotate(45deg); transform-origin: center;
}
.yhh-filters__multi[open] > summary { border-color: var(--yhh-ocean); }
.yhh-filters__multi[open] > summary::after { transform: rotate(225deg); margin-top: .7em; }
.yhh-filters__panel {
  position: absolute; z-index: 20; top: calc(100% + .3rem); left: 0; min-width: 100%;
  background: #fff; border: 1px solid var(--yhh-line); border-radius: 8px;
  padding: .45rem; box-shadow: 0 8px 22px rgba(11, 49, 68, .13);
}
.yhh-filters__check {
  display: flex; align-items: center; gap: .5rem; padding: .32em .45em;
  border-radius: 6px; cursor: pointer; white-space: nowrap; font-size: .93rem;
}
.yhh-filters__check:hover { background: var(--yhh-ground); }
.yhh-filters__check input { margin: 0; accent-color: var(--yhh-ocean); }

/* On a phone the panel drops in the flow instead of floating: an absolutely positioned
   panel near the bottom of a narrow screen ends up half off-screen with no way to scroll
   to the rest of it. */
@media (max-width: 640px) {
  .yhh-filters__field { flex: 1 1 100%; }
  .yhh-filters__panel { position: static; box-shadow: none; margin-top: .35rem; }
}
.yhh-archive__head h1 { margin-bottom: .1em; }
.yhh-archive__count { margin: 0 0 1.3rem; color: var(--yhh-muted); }
.yhh-archive__intro { margin: 0 0 1.6rem; max-width: 68ch; }
.yhh-empty { padding: 2rem 0; }

/* --- homepage ---------------------------------------------------------- */

.yhh-hero { background: var(--yhh-tint); padding: clamp(2.5rem, 7vw, 5rem) 1.25rem; text-align: center; }
.yhh-hero__inner { max-width: 780px; margin: 0 auto; }
.yhh-hero__title { font-size: clamp(1.7rem, 4.2vw, 2.7rem); line-height: 1.15; margin: 0 0 .5rem; }
.yhh-hero__sub { font-size: 1.02rem; color: var(--yhh-ink); opacity: .8; margin: 0 0 1.5rem; }
.yhh-hero__search .yhh-filters { margin: 0; }

.yhh-band { padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; }
.yhh-band--paper { background: var(--yhh-paper); border-top: 1px solid var(--yhh-line); border-bottom: 1px solid var(--yhh-line); }
.yhh-band__inner { max-width: 1100px; margin: 0 auto; }
.yhh-band__title { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 0 0 .2rem; }
.yhh-band__sub { color: var(--yhh-muted); margin: 0 0 1.4rem; }
.yhh-band__more { margin: 1.5rem 0 0; text-align: center; }
.yhh-band__more .yhh-btn { display: inline-block; }

.yhh-services { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.yhh-service { border: 1px solid var(--yhh-line); border-radius: 12px; padding: 1.2rem; background: var(--yhh-paper); }
.yhh-service h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.yhh-service p { margin: 0; color: var(--yhh-muted); font-size: .92rem; line-height: 1.6; }
/* The differentiator gets the accent. Nothing else in this row does. */
.yhh-service--flag { border-color: var(--yhh-sun); }
.yhh-service--flag h3 { color: var(--yhh-sun-dk); }

.yhh-areas { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.yhh-areas a {
  display: block; padding: .85rem; text-align: center; text-decoration: none;
  background: var(--yhh-paper); border: 1px solid var(--yhh-line);
  border-radius: 10px; color: var(--yhh-ink);
}
.yhh-areas a:hover { border-color: var(--yhh-ocean); }
.yhh-areas span { display: block; font-weight: 500; }
.yhh-areas em { display: block; font-style: normal; font-size: .78rem; color: var(--yhh-muted); margin-top: .1rem; }

.yhh-trust { background: var(--yhh-deep); color: #EAF2F7; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; }
.yhh-trust__title { color: #fff; margin: 0 0 .5rem; font-size: 1.5rem; }
.yhh-trust__addr { margin: 0; color: #C4D5DF; line-height: 1.7; }

/* --- area guide beneath the listings ------------------------------------ */

.yhh-guide {
  max-width: 68ch; margin: 3rem 0 0; padding-top: 2rem;
  border-top: 1px solid var(--yhh-line);
}
.yhh-guide h2 { font-size: 1.45rem; margin: 1.8rem 0 .5rem; }
.yhh-guide h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.yhh-guide h2:first-child, .yhh-guide h3:first-child { margin-top: 0; }
.yhh-guide p, .yhh-guide li { line-height: 1.7; }
.yhh-guide ul, .yhh-guide ol { padding-left: 1.2rem; }
.yhh-guide table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; }
.yhh-guide th { text-align: left; border-bottom: 2px solid var(--yhh-deep); padding: .5rem .6rem .4rem 0; }
.yhh-guide td { border-bottom: 1px solid var(--yhh-line); padding: .5rem .6rem .5rem 0; vertical-align: top; }
/* Tables are the most likely thing to overflow on a phone. */
.yhh-guide .yhh-scroll, .yhh-guide figure.wp-block-table { overflow-x: auto; }

/* --- enquiry forms ------------------------------------------------------ */

/*
 * Form styling targets the fields themselves rather than Fluent Forms' wrapper classes.
 * An earlier version scoped everything under .fluentform, which meant the styling silently
 * did nothing whenever their markup differed from what was expected — including a message
 * box that stayed one line tall.
 */
.yhh-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--yhh-line); }
.yhh-form label { font-size: .85rem; font-weight: 500; color: var(--yhh-ink); }
.yhh-form input[type="text"],
.yhh-form input[type="email"],
.yhh-form input[type="tel"],
.yhh-form input[type="url"],
.yhh-form input[type="number"],
.yhh-form textarea,
.yhh-form select {
  border: 1px solid var(--yhh-line); border-radius: 8px; padding: .6em .7em;
  font-family: inherit; font-size: 1rem; color: var(--yhh-ink);
  background: #fff; width: 100%; box-sizing: border-box;
}
.yhh-form input:focus, .yhh-form textarea:focus, .yhh-form select:focus {
  outline: 2px solid var(--yhh-ocean); outline-offset: 1px; border-color: var(--yhh-ocean);
}
/* Four lines. !important because Fluent Forms sets an inline height from its rows value,
   and an inline style beats any selector. */
.yhh-form textarea {
  min-height: 110px !important;
  height: auto;
  resize: vertical;
}
.yhh-form button[type="submit"],
.yhh-form input[type="submit"],
.yhh-form .ff-btn-submit {
  background: var(--yhh-sun); border: 0; color: #fff; font-weight: 500;
  border-radius: 8px; padding: .75em 1.2em; width: 100%; cursor: pointer;
  font-family: inherit; font-size: 1rem;
}
.yhh-form button[type="submit"]:hover,
.yhh-form input[type="submit"]:hover,
.yhh-form .ff-btn-submit:hover { background: var(--yhh-sun-dk); }
/* The owner form sits in the page body rather than a narrow panel. */
.yhh-home .yhh-form, .page .yhh-form { max-width: 560px; border-top: 0; }

/* --- contact page: every number with its own buttons -------------------- */

.yhh-contacts { margin: 1.2rem 0; max-width: 640px; }
.yhh-contacts__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .9rem 0; border-bottom: 1px solid var(--yhh-line);
}
.yhh-contacts__row:last-child { border-bottom: 0; }
.yhh-contacts__who strong { display: block; font-size: 1.05rem; color: var(--yhh-deep); }
.yhh-contacts__who span { font-size: .85rem; color: var(--yhh-muted); }
.yhh-contacts__btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.yhh-contacts__btns .yhh-btn { display: inline-block; padding: .5em .95em; font-size: .9rem; }
@media (max-width: 520px) {
  .yhh-contacts__row { flex-direction: column; align-items: stretch; }
  .yhh-contacts__btns .yhh-btn { flex: 1; text-align: center; }
}

/* --- specimen owner statement ------------------------------------------ */

.yhh-statement { margin: 1.5rem 0; }
.yhh-statement__doc {
  background: var(--yhh-paper); border: 1px solid var(--yhh-line);
  border-radius: 12px; padding: 1.25rem; max-width: 620px;
  font-size: .9rem; line-height: 1.45;
}
.yhh-statement__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 2px solid var(--yhh-deep); }
.yhh-statement__head strong { display: block; font-family: var(--yhh-display); color: var(--yhh-deep); font-size: 1.05rem; }
.yhh-statement__head span { font-size: .8rem; color: var(--yhh-muted); }
.yhh-statement__meta { text-align: right; }
.yhh-statement__prop { font-weight: 500; margin: .8rem 0 .1rem; }
.yhh-statement__sub { font-size: .82rem; color: var(--yhh-muted); margin: 0 0 .8rem; }

.yhh-statement table { width: 100%; border-collapse: collapse; margin: 0 0 .9rem; }
.yhh-statement th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--yhh-muted); border-bottom: 1px solid var(--yhh-line); padding: .3rem 0; font-weight: 500; }
.yhh-statement td { padding: .32rem 0; border-bottom: 1px solid var(--yhh-line); }
.yhh-statement .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yhh-statement .neg { color: var(--yhh-muted); }

.yhh-statement__totals { list-style: none; margin: 0 0 1rem; padding: 0; }
.yhh-statement__totals li { display: flex; justify-content: space-between; padding: .25rem 0; }
.yhh-statement__totals .tot { border-top: 2px solid var(--yhh-deep); margin-top: .3rem; padding-top: .5rem; font-weight: 500; font-size: 1.02rem; color: var(--yhh-deep); }

.yhh-statement__split { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); margin-bottom: 1rem; }
.yhh-statement__split h4 { margin: 0 0 .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--yhh-muted); font-family: var(--yhh-body); font-weight: 500; }
.yhh-statement__split p { margin: 0; font-size: .88rem; }

.yhh-statement__owed {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 0; padding: .7rem .9rem; background: var(--yhh-tint); border-radius: 8px;
}
.yhh-statement__owed strong { font-family: var(--yhh-display); font-size: 1.3rem; color: var(--yhh-ocean); }
.yhh-statement figcaption { margin-top: .7rem; font-size: .85rem; color: var(--yhh-muted); max-width: 620px; }

/* --- mobile sticky contact bar ----------------------------------------- */

.yhh-sticky { display: none; }
@media (max-width: 860px) {
  .yhh-sticky {
    display: flex; gap: .4rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: .5rem; background: var(--yhh-paper); border-top: 1px solid var(--yhh-line);
    /* Clears the iOS home indicator, which otherwise sits on top of the buttons. */
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
  }
  .yhh-sticky__btn {
    flex: 1; text-align: center; padding: .8em .5em; border-radius: 8px;
    background: var(--yhh-ocean); color: #fff; text-decoration: none;
    font-weight: 500; font-size: .92rem;
  }
  .yhh-sticky__btn--sun { background: var(--yhh-sun); }
  .yhh-sticky__btn--dark { background: var(--yhh-deep); }
  .yhh-sticky__btn:hover { color: #fff; }
}
