/*
Theme Name:   Spa & Wellness
Theme URI:    https://spaandwellness.com.au
Description:  Child theme for Divi. Carries the Spa & Wellness design system —
              typography, colour, and the article, listing and guide components.
              The design lives here so that article content can stay plain HTML
              and be imported in bulk.
Author:       Commotion Pty Ltd
Template:     Divi
Version:      1.1.0
Text Domain:  spa-wellness
*/

/* ==========================================================================
   1. TOKENS
   Every colour and typeface in the design is declared once, here.
   Change a value in this block and it changes everywhere.
   ========================================================================== */

:root {
  /* Near-monochrome. The photographs supply the colour. */
  --sw-ink: #191817; /* display type */
  --sw-copy: #2c2a26; /* body copy — a shade off the display black */
  --sw-stone: #5a5854; /* secondary text */
  --sw-quiet: #6c6a64; /* captions, credits */
  --sw-paper: #ffffff;
  --sw-lift: #fafaf9;
  --sw-rule: #dedcd7; /* hairlines */
  --sw-rule-soft: #efeeeb;
  --sw-accent: #2e5b5c; /* rationed. links, and almost nothing else */
  --sw-night: #191b1b; /* full-bleed dark sections */
  --sw-night-soft: #a7a9a4;

  --sw-display: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
  --sw-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sw-util:
    "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --sw-measure: 33rem; /* the reading column */
  --sw-gutter: clamp(1.4rem, 5vw, 4rem);
}

/* ==========================================================================
   2. RESET DIVI
   Divi sets body type from the Customiser at a fairly high specificity.
   These rules take it back. If a heading still refuses to change, the
   Customiser value is winning — clear it there rather than adding !important.
   ========================================================================== */

body,
body.et-db #et-boc .et-l p {
  font-family: var(--sw-body);
  font-optical-sizing: auto;
  font-size: clamp(0.95rem, 0.22vw + 0.89rem, 1.01rem);
  font-weight: 350;
  line-height: 1.95;
  letter-spacing: 0.004em;
  color: var(--sw-copy);
  background: var(--sw-paper);
}

/* The rule above needs `background` for the body, but it also lands on every
   Divi paragraph, which then carries a white box and the dark body colour.
   Invisible on a white page; on a dark section every line sits in its own
   white rectangle. Give the paragraphs their background back, and let text on
   a dark layout inherit the colour the section sets. */
body.et-db #et-boc .et-l p {
  background: transparent;
}
body.et-db #et-boc .et-l .et_pb_bg_layout_dark p {
  color: inherit;
}

/*
 * Form controls.
 *
 * Divi's Customiser writes `body, input, textarea, select { font-family:
 * 'Cormorant' }` from its Body Font setting. The `body` half loses to the
 * rule above, so the page reads correctly and the problem stays hidden — but
 * nothing in this theme claimed the other three, so every field the theme
 * does not style by hand was rendering in a leftover serif: HivePress forms,
 * the checkout, Gravity Forms, and any Divi button whose own font setting is
 * empty.
 *
 * Claimed here. The components that want something different — the subscribe
 * bar, the directory selects — still set their own, further down.
 *
 * Led by `html` deliberately. Divi writes its Customiser CSS inline in the
 * head, after this stylesheet, so at equal specificity Divi wins on order
 * alone. One extra element in the selector settles it without !important,
 * and keeps settling it if someone changes the Body Font setting later.
 */
html input,
html textarea,
html select,
html button,
html .et_pb_button,
html .gform_wrapper .gform_button,
html .dipi_gf_submit_button {
  font-family: var(--sw-util);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sw-display);
  font-weight: 400;
  color: var(--sw-ink);
  text-wrap: balance;
}

/* Nothing in this design is italic. */
i,
em,
cite,
address,
dfn,
.et_pb_text i,
.et_pb_text em {
  font-style: normal;
}

/* Divi rounds things by default. This design does not round anything. */
.sw-article img,
.sw-article .sw-shot,
.sw-card .sw-shot {
  border-radius: 0;
}

/* ==========================================================================
   3. UTILITY TYPE
   Small, tracked, uppercase. This is the most consistent luxury signal
   in the category — eyebrows, categories, captions, buttons, labels.
   ========================================================================== */

.sw-label {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sw-stone);
  display: inline-block;
}
.sw-label--ink {
  color: var(--sw-ink);
}

/* ==========================================================================
   4. MASTHEAD
   Small, centred, quiet. Applied to the Divi Theme Builder global header.
   ========================================================================== */

.sw-masthead {
  border-bottom: 1px solid var(--sw-rule);
  text-align: center;
  padding: 2.1rem var(--sw-gutter) 1.4rem;
  background: var(--sw-paper);
}
.sw-wordmark {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 16;
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sw-ink);
  display: inline-block;
  margin-right: -0.34em; /* optical correction for the tracking */
}
.sw-masthead nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.1rem;
}
.sw-masthead nav a {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-stone);
  text-decoration: none;
  transition: color 0.3s ease;
}
.sw-masthead nav a:hover {
  color: var(--sw-ink);
}
@media (max-width: 700px) {
  .sw-masthead nav {
    gap: 1.1rem;
    margin-top: 1.1rem;
  }
  .sw-masthead nav a {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }
}

/*
 * The top level of the global header menu.
 *
 * The header is still a Divi Menu module, and its font was set inside the
 * module in Theme Builder — "Proxima Nova Light", an uploaded font left over
 * from the old site. Clearing it there is right, but it cannot be the only
 * place it is set: a per-module setting is invisible from the stylesheet, it
 * drifts whenever someone edits the header, and Divi drops the declaration
 * altogether when its dynamic CSS cache is rebuilt — which is exactly what
 * happened on 26 November, leaving the menu with no font-family at all.
 *
 * So it is set here as well, where every other font decision on the site
 * lives. Sub-menu and mega-menu links are styled in section 33; this is the
 * top row only, hence the child combinator.
 */
.et-l--header .et-menu > li > a {
  font-family: var(--sw-util);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The Directory mega menu is Divi's own (li.mega-menu). It is styled in
   section 33. The hand-built .sw-mega markup this once styled was never
   used on the site — confirmed zero elements across every template — and
   was removed on 14 November rather than left to mislead. */

/* Utility row, top right: Join our directory · Advertise · My account · Search */
.sw-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
  padding: 0.6rem var(--sw-gutter) 0;
  font-family: var(--sw-util);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sw-util-links {
  display: flex;
  gap: 1.4rem;
}

/*
 * "Join our directory" and "My account" are two words each. In a narrow
 * column they break after the first word and the row reads as eight items
 * instead of four, which is what it looked like in the header.
 */
.sw-util-links a {
  white-space: nowrap;
}

/*
 * Divi gives every <ul> a bottom padding, which inside the utility row lifted
 * the icons about 14px above the words beside them, and the row needs
 * align-items or the two groups only line up by accident of height.
 */
.sw-utility .sw-social-icons {
  margin: 0;
  padding: 0;
}

.sw-utility a {
  color: var(--sw-quiet);
  text-decoration: none;
}
.sw-utility a:hover {
  color: var(--sw-ink);
}

/* ---------- social ---------- */
.sw-social {
  display: flex;
  gap: 1.05rem;
  align-items: center;
}
.sw-social a {
  color: var(--sw-quiet);
  display: inline-flex;
  transition: color 0.3s ease;
}
.sw-social a:hover {
  color: var(--sw-ink);
}
.sw-social svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}
.sw-social--footer {
  justify-content: center;
  margin-bottom: 1.6rem;
}
.sw-social--footer svg {
  width: 17px;
  height: 17px;
}
.sw-social--footer a {
  color: var(--sw-stone);
}
.sw-utility {
  justify-content: space-between;
}
@media (max-width: 44rem) {
  /* The utility links go into the hamburger on mobile, but the social
     icons stay — they are the one thing worth keeping at the top. */
  .sw-utility {
    display: flex;
    justify-content: center;
    padding-bottom: 0.5rem;
  }
  .sw-utility .sw-util-links {
    display: none;
  }
}

/* ==========================================================================
   5. ARTICLE — OPENING

   (The reading rail that lived here has been removed. A progress indicator
   is a device from long-form journalism, where the signal is "this is a
   commitment, here is how far you have to go". A luxury magazine makes the
   opposite promise. None of the reference sites carry one.)
   ========================================================================== */

.sw-opening {
  height: min(82vh, 44rem);
  background: var(--sw-rule-soft);
  overflow: hidden;
}
.sw-opening img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sw-titleblock {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5rem) var(--sw-gutter) 0;
}
.sw-kicker {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.9rem;
}
.sw-kicker .sw-bar {
  width: 2.2rem;
  height: 1px;
  background: var(--sw-rule);
}

.sw-article h1,
.sw-titleblock h1 {
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 21ch;
}
.sw-titleblock h1 .sw-em {
  color: var(--sw-accent);
} /* emphasis by colour, never slant */

.sw-title-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--sw-rule);
}
@media (min-width: 52rem) {
  .sw-title-foot {
    grid-template-columns: min(32rem, calc(100% - 2 * var(--sw-gutter))) minmax(
        0,
        1fr
      );
    gap: 3.5rem;
    align-items: start;
  }
}
.sw-standfirst {
  font-size: clamp(1.02rem, 0.4vw + 0.93rem, 1.13rem);
  font-weight: 300;
  line-height: 1.62;
  color: var(--sw-stone);
  margin: 0;
  text-wrap: pretty;
}
.sw-credits {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sw-credits div {
  font-family: var(--sw-util);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sw-stone);
}
.sw-credits b {
  font-weight: 500;
  color: var(--sw-ink);
}
.sw-credits a {
  color: var(--sw-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sw-rule);
}

/* ==========================================================================
   6. ARTICLE — THE PROSE GRID
   Three widths: the reading measure, a wider break-out, and full bleed.
   Apply .sw-article to the Theme Builder's post content module.
   ========================================================================== */

.sw-article {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--sw-gutter), 1fr)
    [wide-start] minmax(0, 7rem)
    /* min(), not minmax(). All three inner tracks grow at the same rate, so
       on a 375px phone the reading column and the two break-out columns each
       took about 110px — three words a line. min() lets the column take the
       full width minus the gutters until it reaches the measure. Desktop is
       unchanged: still 33rem. */
    [content-start] min(var(--sw-measure), 100% - 2 * var(--sw-gutter)) [content-end]
    minmax(0, 7rem) [wide-end]
    minmax(var(--sw-gutter), 1fr) [full-end];
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.sw-article > * {
  grid-column: content;
}
.sw-article > .sw-wide {
  grid-column: wide;
}
.sw-article > .sw-full {
  grid-column: full;
}

.sw-article p {
  margin: 0 0 1.55em;
  /* Divi gives every <p> padding-bottom: 1em, which stacks on the margin
     above and doubles the gap. The blank paragraphs that did the rest of the
     damage are stripped on output in functions.php. */
  padding-bottom: 0;
  color: var(--sw-copy);
}
.sw-article p a {
  color: var(--sw-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--sw-rule);
  transition: border-color 0.3s ease;
}
.sw-article p a:hover {
  border-bottom-color: var(--sw-accent);
}

/* Opening paragraph: a tracked lead-in, not a drop cap. Same size as the
   body and lighter, so the lead-in carries the emphasis. */
.sw-lede {
  font-size: 1em;
  font-weight: 300;
  line-height: 1.95;
  color: var(--sw-copy);
}
.sw-lede .sw-lead-in {
  font-family: var(--sw-util);
  font-size: 0.74em;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sw-article h2 {
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 3.6rem 0 1.2rem;
  max-width: 24ch;
  scroll-margin-top: 4rem;
}

/* ==========================================================================
   7. ARTICLE — COMPONENTS
   These nine classes are the whole vocabulary of an article body.
   Anything generated for the bulk import uses only these.
   ========================================================================== */

/* Images */
.sw-article figure {
  margin: clamp(3rem, 7vw, 5rem) 0;
}
.sw-shot {
  background: var(--sw-rule-soft);
  overflow: hidden;
}
.sw-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-full .sw-shot {
  aspect-ratio: 16/9;
}
.sw-wide .sw-shot {
  aspect-ratio: 3/2;
}
.sw-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 1.5vw, 1.1rem);
}
.sw-pair .sw-shot {
  aspect-ratio: 4/5;
}
@media (max-width: 34rem) {
  .sw-pair {
    grid-template-columns: 1fr;
  }
}
.sw-article figcaption {
  font-family: var(--sw-util);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--sw-quiet);
  margin-top: 1rem;
  max-width: 36rem;
}
.sw-article figcaption b {
  font-weight: 500;
  color: var(--sw-stone);
}
.sw-article > figure.sw-full figcaption {
  padding-inline: var(--sw-gutter);
}

/* Pull quote — scale and air, no rule, no slant */
.sw-quote {
  margin: clamp(3.5rem, 8vw, 6rem) 0;
}
.sw-quote p {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.9vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 1.3rem;
  color: var(--sw-ink);
  text-wrap: balance;
}
.sw-quote cite {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sw-quiet);
}

/* Treatment note — hairlines, no box */
.sw-note {
  margin: clamp(2.75rem, 6vw, 4rem) 0;
  padding: 1.9rem 0;
  border-top: 1px solid var(--sw-ink);
  border-bottom: 1px solid var(--sw-rule);
}
.sw-note .sw-label {
  display: block;
  margin-bottom: 1.6rem;
}
.sw-note dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 2.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.sw-note dt {
  font-family: var(--sw-util);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  padding-top: 0.35em;
}
.sw-note dd {
  margin: 0;
  color: var(--sw-copy);
}
.sw-note .sw-after {
  font-size: 0.92rem;
  color: var(--sw-stone);
  margin: 1.7rem 0 0;
  line-height: 1.8;
}
@media (max-width: 32rem) {
  .sw-note dl {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .sw-note dd {
    margin-bottom: 1rem;
  }
}

/* The details — a hairline table, not a panel */
.sw-details {
  margin: clamp(3rem, 7vw, 4.5rem) 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--sw-ink);
}
.sw-details h2 {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  margin: 1.2rem 0 1.6rem;
}
.sw-details dl {
  margin: 0;
}
.sw-details .sw-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sw-rule-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}
.sw-details .sw-row:last-child {
  border-bottom: 0;
}
.sw-details dt {
  font-family: var(--sw-util);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  padding-top: 0.4em;
}
.sw-details dd {
  margin: 0;
  color: var(--sw-copy);
}
.sw-details a {
  color: var(--sw-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--sw-rule);
}
@media (max-width: 32rem) {
  .sw-details .sw-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* The loop — into the directory. Every property named gets one of these. */
.sw-into-directory {
  margin: clamp(2.75rem, 6vw, 4rem) 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--sw-rule);
  border-bottom: 1px solid var(--sw-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1.6rem;
}
.sw-into-directory a {
  font-family: var(--sw-util);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sw-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sw-ink);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}
.sw-into-directory a:hover {
  opacity: 0.55;
}

.sw-disclosure {
  font-family: var(--sw-util);
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--sw-quiet);
  margin: 2.5rem 0 0;
}

/* Byline foot */
.sw-written-by {
  margin: clamp(2.75rem, 6vw, 4rem) 0 0;
  padding-top: 1.9rem;
  border-top: 1px solid var(--sw-rule);
}
.sw-written-by .sw-name {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 24;
  font-size: 1.15rem;
  color: var(--sw-ink);
  margin: 0.85rem 0 0.45rem;
}
.sw-written-by p {
  font-size: 0.9rem;
  color: var(--sw-stone);
  margin: 0;
  line-height: 1.75;
  max-width: 34rem;
}

/* ==========================================================================
   8. NEWSLETTER — full-bleed night section
   ========================================================================== */

.sw-subscribe {
  background: var(--sw-night);
  color: var(--sw-paper);
  padding: clamp(4rem, 9vw, 7rem) var(--sw-gutter);
  text-align: center;
}
.sw-subscribe .sw-label {
  color: var(--sw-night-soft);
}
.sw-subscribe h2 {
  font-variation-settings: "opsz" 72;
  color: var(--sw-paper);
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 1.4rem auto 1rem;
  max-width: 20ch;
}
.sw-subscribe p {
  color: var(--sw-night-soft);
  max-width: 29rem;
  margin: 0 auto 2.4rem;
  font-weight: 300;
  font-size: 0.96rem;
}
.sw-subscribe input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #666a67;
  color: var(--sw-paper);
  font-family: var(--sw-util);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 0.1rem;
}
.sw-subscribe input::placeholder {
  color: #909490;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
}
.sw-subscribe input:focus {
  outline: 0;
  border-bottom-color: var(--sw-paper);
}
.sw-subscribe button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sw-paper);
  color: var(--sw-paper);
  font-family: var(--sw-util);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.7rem 0.1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.sw-subscribe button:hover {
  opacity: 0.6;
}

/* The newsletter form itself. Used by the homepage layout's block 9 and by
   the article footer. Without this the inputs stack full width instead of
   sitting on one line under the heading. */
.sw-form {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.4rem;
  flex-wrap: wrap;
  max-width: 30rem;
  margin: 0 auto;
}
.sw-form input {
  flex: 1 1 15rem;
}
.sw-form button {
  flex: 0 0 auto;
}
@media (max-width: 34rem) {
  .sw-form {
    gap: 1.6rem;
  }
  .sw-form input {
    flex: 1 1 100%;
  }
  .sw-form input {
    font-size: 16px;
  } /* stops iOS zooming the page on focus */
}

/* ==========================================================================
   9. CARDS — related, category grids, guide grids
   ========================================================================== */

.sw-related {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--sw-gutter);
}
.sw-related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--sw-ink);
}
.sw-related-head a {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-stone);
  text-decoration: none;
  white-space: nowrap;
}
.sw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.75rem);
  margin-top: 2.75rem;
}
@media (max-width: 56rem) {
  /* One lead story with a big picture, then two smaller ones beside each
     other. All three are visible in roughly a screen, and the hierarchy
     tells the reader which one we think matters. Better than three equal
     full-width cards, where only the first is ever seen. */
  .sw-cards {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.1rem;
  }
  .sw-cards .sw-card:first-child {
    grid-column: 1 / -1;
  }
  .sw-cards .sw-card:first-child .sw-shot {
    aspect-ratio: 3/2;
  }
  .sw-cards .sw-card:first-child h3 {
    font-size: 1.36rem;
  }
  .sw-cards .sw-card:not(:first-child) .sw-shot {
    aspect-ratio: 1/1;
    margin-bottom: 0.85rem;
  }
  .sw-cards .sw-card:not(:first-child) h3 {
    font-size: 0.98rem;
    line-height: 1.32;
  }
}
.sw-card {
  text-decoration: none;
  display: block;
}
.sw-card .sw-shot {
  aspect-ratio: 4/5;
  margin-bottom: 1.2rem;
}
.sw-card .sw-shot img {
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.sw-card:hover .sw-shot img {
  transform: scale(1.03);
}
.sw-card h3 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.004em;
  color: var(--sw-ink);
  margin: 0.7rem 0 0;
  max-width: 24ch;
  transition: color 0.25s ease;
}
.sw-card:hover h3 {
  color: var(--sw-accent);
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.sw-footer {
  border-top: 1px solid var(--sw-rule);
  padding: 2.75rem var(--sw-gutter) 4rem;
  text-align: center;
  background: var(--sw-paper);
}
.sw-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.9rem;
  margin-bottom: 1.6rem;
}
.sw-footer a {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-stone);
  text-decoration: none;
}
.sw-footer a:hover {
  color: var(--sw-ink);
}
.sw-footer .sw-fine {
  font-family: var(--sw-util);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-quiet);
}

/* ==========================================================================
   11. DIRECTORY — HivePress overrides
   The directory inherits the same system so the site reads as one thing.
   ========================================================================== */

.hp-listing__title,
.hp-listing__title a {
  font-family: var(--sw-display);
  font-weight: 400;
  color: var(--sw-ink);
  text-decoration: none;
  letter-spacing: -0.006em;
}
.hp-listing__category,
.hp-listing__attribute {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-quiet);
}

/* On the single listing page HivePress sets the primary attributes to 120%
   through a longer selector, which beats the rule above: 21.6px tracked
   capitals. An email address wrapped to three lines, 158px tall. Tracked caps
   were never right for an address or a URL in any case — they are read, not
   skimmed. The selector below matches HivePress's own length so it wins
   without !important. */
/*
 * The padding is HivePress's too: 1rem 1.5rem. On a 266px sidebar that
 * leaves 218px of content, and the envelope icon is inline — so an address
 * of any normal length plus the icon came to about 220px and the address
 * dropped onto a second line on its own. Not a wrap caused by long text: a
 * wrap caused by 48px of side padding. Both boxes stood 78px tall for one
 * line of type.
 *
 * Tightened to 11px / 14px, which gives 238px of content. Measured after:
 * the email sits beside its icon on one line on every listing, and the
 * boxes come down to 48px.
 *
 * Long URLs still wrap, and nothing here can change that — the longest in
 * the directory is 145 characters. If those matter, the fix is to print the
 * domain rather than the whole address, which is a template change, not CSS.
 */
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute {
  font-family: var(--sw-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 0.7rem 0.875rem;
}

/* Gallery images are set to object-fit: contain on a grey ground, so any
   photograph that is not the slider's exact ratio gets a band above it.
   125 of 141 listings are affected. */
.hp-listing--view-page .hp-listing__images img {
  object-fit: cover;
  background: none;
}

/* The topbar is a menu with a single item in it, reading "Details". */
.hp-listing--view-page .hp-page__topbar {
  display: none;
}

/* No phone numbers on any tier (Kris, 24 November).

   The numbers themselves stay — 132 of them — and the attribute's display
   areas are cleared so the value never renders. HivePress still prints the
   container and its icon, though, which left a 55px box with a telephone
   symbol and nothing beside it. */
.hp-listing__attribute--phone {
  display: none;
}

/* The category separator, out from under the underline.
   HivePress puts the dot in an ::before on the second category link, so it
   sits inside that link's box and the border-bottom runs straight through
   it — the dot appears underlined, which reads as a typo. Taking the pseudo
   out of flow with position: absolute puts it in the gap instead, where it
   belongs, and the border then spans only the words. */
.hp-listing--view-page .hp-listing__categories a {
  position: relative;
}
.hp-listing--view-page .hp-listing__categories a + a {
  margin-left: 1.1em;
}
.hp-listing--view-page .hp-listing__categories a + a::before {
  position: absolute;
  /* Centred in the 1.1em gap. These labels carry letter-spacing, which adds
     a trailing sliver to the dot's own box, so the offset is not simply half
     the gap — measured on the rendered page rather than calculated. */
  left: -1em;
  border: 0;
  color: var(--sw-quiet);
}

/* Gravity Forms marks required fields in italics. The design has no italics
   anywhere — section 3 already normalises i, em and cite — so this was the
   one place they survived. */
.gfield_required,
.gfield_required_text,
.hp-field__label em {
  font-style: normal;
}
.hp-listing {
  border-radius: 0;
}
.hp-form__button,
.hp-listing__action .button {
  font-family: var(--sw-util);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--sw-ink);
  border: 1px solid var(--sw-ink);
  border-radius: 0;
  padding: 0.8rem 1.6rem;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.hp-form__button:hover,
.hp-listing__action .button:hover {
  background: var(--sw-ink);
  color: var(--sw-paper);
}

/* A featured member reads as featured without a coloured badge shouting. */
.hp-listing--featured {
  position: relative;
}
.hp-listing--featured .hp-listing__title::after {
  content: "Featured";
  display: inline-block;
  margin-left: 0.7rem;
  vertical-align: middle;
  font-family: var(--sw-util);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-accent);
}

/*
 * Category and location landing pages: the 200 words that make them rank.
 *
 * Left-aligned, on Kris's instruction of 14 October: left across the site,
 * with centring kept only for a page-opening title and its one-line
 * explanation, and for buttons and badges.
 *
 * A hundred and fifty centred words was the thing making these read as
 * generic filter pages rather than written ones — the column stays centred
 * on the page, the ragged right edge comes back.
 */
.sw-archive-intro {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  padding-inline: var(--sw-gutter);
  text-align: left;
}
.sw-archive-intro h1 {
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  margin: 1rem 0 1.1rem;
}
.sw-archive-intro p {
  color: var(--sw-stone);
  font-weight: 300;
}

/* ==========================================================================
   12. HOME PAGE
   Paste one section of spa-wellness-homepage.html into one Divi Code
   module each. These rules style them. Nothing needs configuring in the
   builder — no rows, no columns, no settings panels.
   ========================================================================== */

.sw-wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding-inline: var(--sw-gutter);
}


/* Hero — one photograph, one line, the search on top of it */
.sw-hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: flex;
  align-items: flex-end;
  background: var(--sw-rule-soft);
  overflow: hidden;
}
.sw-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*
 * The scrim the hero text sits on.
 *
 * It used to fade to nothing at 72% of the way up, which was fine while the
 * only text here was a large white headline. The directory hero carries a
 * kicker and a standfirst as well, and they sit from roughly 30% to 70% up —
 * right where the old scrim had almost run out. Against this photograph, a
 * pale sky over a pale sea, white text there measured 1.1:1.
 *
 * Held further up and a little stronger through the text band. Measured
 * after the change rather than guessed; the figures are in the notes for
 * 26 November.
 */
.sw-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 12, 11, 0.8) 0%,
    rgba(12, 12, 11, 0.58) 38%,
    rgba(12, 12, 11, 0.38) 62%,
    rgba(12, 12, 11, 0.16) 84%,
    transparent 100%
  );
}
.sw-hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--sw-gutter) clamp(2.5rem, 5vw, 4rem);
}
.sw-hero .sw-label {
  color: rgba(255, 255, 255, 0.82);
}
.sw-hero h1 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 96;
  font-weight: 400;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.014em;
  margin: 1.2rem 0 2rem;
  max-width: 17ch;
  text-wrap: balance;
}

/*
 * The hero standfirst.
 *
 * The label and the h1 above were whitened when this hero was built; the
 * standfirst was added later, with [sw_dir_opening], and was never covered.
 * It came out near-black on the photograph — unreadable, and only on
 * /directory/, since no other hero carries one.
 *
 * It is not enough to set the colour on .sw-standfirst. The standfirst is a
 * <p> inside a Divi layout, and section 2's reset claims those with
 * `body.et-db #et-boc .et-l p`, which carries an id and therefore outranks
 * any plain class. So the Divi prefix is repeated here to outrank it in turn,
 * which is the same approach the mega menu uses, and still no !important.
 * The second selector covers the hero outside a Divi layout.
 */
body.et-db #et-boc .et-l .sw-hero .sw-standfirst,
.sw-hero .sw-standfirst {
  color: rgba(255, 255, 255, 0.92);
  max-width: 44ch;
  margin-bottom: 2.4rem;
}

/* The search. DEVELOPER: this must produce a real web address —
   /directory/day-spas/sydney/ — not filter inside the browser. */
.sw-find {
  background: var(--sw-paper);
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  max-width: 44rem;
}
@media (min-width: 44rem) {
  .sw-find {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}
.sw-find label {
  display: block;
  font-family: var(--sw-util);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  margin-bottom: 0.45rem;
}
.sw-find select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--sw-ink);
  background: transparent;
  font-family: var(--sw-util);
  font-size: 0.88rem;
  color: var(--sw-ink);
  padding: 0.5rem 0;
  border-radius: 0;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sw-ink) 50%),
    linear-gradient(135deg, var(--sw-ink) 50%, transparent 50%);
  background-position:
    calc(100% - 9px) calc(50% + 2px),
    calc(100% - 4px) calc(50% + 2px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
.sw-find select:focus {
  outline: 0;
  border-bottom-width: 2px;
}
.sw-find button {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--sw-ink);
  color: var(--sw-paper);
  border: 0;
  border-radius: 0;
  padding: 0.95rem 1.8rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}
.sw-find button:hover {
  opacity: 0.8;
}

/* Section headers */
.sw-section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.sw-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid var(--sw-ink);
  padding-bottom: 1.1rem;
  margin-bottom: 2.4rem;
}
.sw-section-head h2 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  color: var(--sw-ink);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 0;
}
.sw-section-head a {
  font-family: var(--sw-util);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-stone);
  text-decoration: none;
  white-space: nowrap;
}
.sw-section-head a:hover {
  color: var(--sw-ink);
}

/* Category tiles — the money words, one click from the front page */
.sw-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem);
}
@media (min-width: 46rem) {
  .sw-tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}
.sw-tile {
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--sw-rule-soft);
}
.sw-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.sw-tile:hover img {
  transform: scale(1.04);
}
.sw-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 11, 0.62), transparent 58%);
}
.sw-tile-t {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.95rem;
  z-index: 2;
}
.sw-tile-t b {
  display: block;
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 24;
  font-weight: 400;
  font-size: 1.16rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.004em;
}
.sw-tile-t span {
  font-family: var(--sw-util);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-top: 0.3rem;
}

/*
 * Voucher band.
 *
 * Left-aligned on Kris's instruction of 14 October. The heading and the
 * paragraph were centred twice over — by text-align here and by auto
 * margins on their own boxes below — so both have to go, or the result is
 * a centred column of left-aligned text, which looks like a mistake.
 */
.sw-band {
  background: var(--sw-night);
  color: var(--sw-paper);
  padding: clamp(3.5rem, 8vw, 6rem) var(--sw-gutter);
  text-align: left;
}
.sw-band .sw-label {
  color: var(--sw-night-soft);
}
.sw-band h2 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  color: var(--sw-paper);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 1.3rem auto 1rem 0;
  max-width: 19ch;
}
.sw-band p {
  color: var(--sw-night-soft) !important;
  max-width: 32rem;
  margin: 0 auto 2.2rem 0;
  font-weight: 300;
  background: none !important;
}
.sw-btn {
  display: inline-block;
  font-family: var(--sw-util);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border: 1px solid currentColor;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.sw-band .sw-btn {
  color: var(--sw-paper);
}
.sw-band .sw-btn:hover {
  background: var(--sw-paper);
  color: var(--sw-night);
}
.sw-band-links {
  margin-top: 1.6rem;
  font-family: var(--sw-util) !important;
  font-size: 0.64rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;

  /*
   * A row, so several links do not run into one another. The markup emits
   * </a><a> with no whitespace between, and tracked uppercase has no word
   * shapes to separate them by eye — JAPANINDONESIAMALAYSIA reads as one word.
   * The gap is the separator; nothing needs a bullet or a pipe.
   *
   * Harmless where the band holds a single link, which is how the home page
   * uses it.
   */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 1.5rem;
}

/*
 * Centred inside the dark band.
 *
 * .sw-band centres its contents with text-align, which a flex container
 * ignores when placing its items — so turning this into a flex row to separate
 * the links silently left-aligned the band's own link, which had been centred
 * since it was written. The directory's bands stay left-aligned, which is
 * correct there: they sit under a left-aligned heading.
 */
/*
 * The links row is a flex container, so text-align on the band does not
 * reach it — it needs justify-content of its own. Left, to line up under
 * the button rather than floating in the middle of a left-aligned block.
 */
.sw-band .sw-band-links {
  justify-content: flex-start;
}

/*
 * The margin-top declared on .sw-band-links above has never applied. The
 * element is a <p>, and Divi zeroes paragraph margins with
 *
 *   .et-db #et-boc .et-l p { margin: 0 }
 *
 * which carries an ID and therefore outranks any class-only rule. The link
 * sat flush against the button as a result. Same prefix, same reason, as
 * the masthead rules in section 23.
 */
.et-db #et-boc .et-l .sw-band-links {
  margin-top: 2.2rem;
}

/*
 * The band on a white ground.
 *
 * The base colours are built for a dark section — pale grey text on a near
 * black band, as the home page uses it. On white that same grey is barely
 * legible. This variant is for the directory pages, which are white.
 */
/* Doubled class: the base .sw-band-links a rule sits later in this file, and at
   equal specificity the later rule would win. */
.sw-band-links.sw-band-links--light a {
  color: var(--sw-stone);
  border-bottom-color: var(--sw-rule);
}
.sw-band-links.sw-band-links--light a:hover {
  color: var(--sw-accent);
  border-bottom-color: var(--sw-accent);
}
.sw-band-links a {
  color: var(--sw-night-soft);
  text-decoration: none;
  border-bottom: 1px solid #3b3d3d;
}
.sw-band-links a:hover {
  color: var(--sw-paper);
}

/* The Editor's Edit */
.sw-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
@media (min-width: 46rem) {
  .sw-products {
    grid-template-columns: repeat(4, 1fr);
  }
}
.sw-product {
  text-decoration: none;
  display: block;
}
/*
 * Portrait, not square. The magazine cover is 2362x2953 — exactly 4:5 — so at
 * 1:1 the one product that is genuinely a picture of itself was losing the top
 * and bottom of its own cover. The other three are landscape photographs and
 * crop to 4:5 without losing their subject.
 *
 * It also matches .sw-card .sw-shot in the magazine row above, so the two
 * card grids on the page now share a shape instead of disagreeing.
 */
.sw-product .sw-shot {
  aspect-ratio: 4/5;
  background: var(--sw-lift);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.sw-product b {
  display: block;
  font-family: var(--sw-util);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-quiet);
}
.sw-product h3 {
  font-family: var(--sw-display);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sw-ink);
  margin: 0.4rem 0 0.3rem;
}
.sw-product .sw-price {
  font-family: var(--sw-util);
  font-size: 0.76rem;
  color: var(--sw-stone);
}

/* ---------- FEATURED LISTING — a weekly slot, and a revenue line ---------- */
.sw-featured {
  border-top: 1px solid var(--sw-rule);
  border-bottom: 1px solid var(--sw-rule);
  background: var(--sw-lift);
}
.sw-featured-in {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 52rem) {
  .sw-featured-in {
    grid-template-columns: 1.35fr 1fr;
  }
}
.sw-featured-shot {
  background: var(--sw-rule-soft);
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 100%;
}
.sw-featured-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 52rem) {
  .sw-featured-shot {
    aspect-ratio: auto;
  }
}
.sw-featured-text {
  padding: clamp(2rem, 4vw, 3.5rem) var(--sw-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
}
.sw-featured-text h2 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 72;
  font-weight: 400;
  color: var(--sw-ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 1rem 0 0.5rem;
}
.sw-featured-text .sw-place {
  font-family: var(--sw-util);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-quiet);
}
.sw-featured-text p {
  color: var(--sw-stone);
  margin: 1.2rem 0 1.6rem;
  max-width: 34ch;
}
.sw-link {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sw-ink);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: opacity 0.3s ease;
}
.sw-link:hover {
  opacity: 0.55;
}
.sw-disclose {
  font-family: var(--sw-util);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  margin: 1.8rem 0 0 !important;
}

/* ---------- BANNER SLOT ---------- */
.sw-adslot {
  padding: clamp(2.5rem, 6vw, 4rem) var(--sw-gutter);
  text-align: center;
}

/*
 * Hide the slot until there is artwork in it. Kris's instruction of
 * 14 October: an empty grey box reads as a broken page, not as inventory
 * waiting to be sold.
 *
 * Written as "no image inside" rather than commented out, so the slot comes
 * back on its own the moment a banner is added and nobody has to remember
 * to undo anything.
 */
.sw-adslot:not(:has(img)) {
  display: none;
}
.sw-ad-label {
  display: block;
  font-family: var(--sw-util);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  margin-bottom: 1rem;
}
.sw-ad {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--sw-rule-soft);
  aspect-ratio: 3/1;
  overflow: hidden;
}
.sw-ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 44rem) {
  .sw-ad {
    aspect-ratio: 5/4;
  }
}

/* Destination guides */
.sw-guides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--sw-rule);
}
.sw-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sw-rule);
  text-decoration: none;
  transition: padding-left 0.3s ease;
}
@media (min-width: 44rem) {
  .sw-guide {
    grid-template-columns: 11rem 1fr auto;
    gap: 2rem;
    align-items: baseline;
  }
}
.sw-guide:hover {
  padding-left: 0.6rem;
}
.sw-guide .sw-place {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-quiet);
}
.sw-guide h3 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--sw-ink);
  margin: 0;
  letter-spacing: -0.006em;
}
.sw-guide .sw-count {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  white-space: nowrap;
}

/* What's on — pulled from listings. No separate events product. */
.sw-whatson {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.sw-event {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.4rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--sw-rule-soft);
  text-decoration: none;
  align-items: baseline;
}
@media (min-width: 44rem) {
  .sw-event {
    grid-template-columns: 4.5rem 1fr auto;
    gap: 2rem;
  }
}
.sw-event .sw-when {
  font-family: var(--sw-util);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-ink);
  line-height: 1.4;
}
.sw-event h3 {
  font-family: var(--sw-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sw-ink);
  margin: 0;
}
.sw-event .sw-venue {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  white-space: nowrap;
}

/* ---------- mobile corrections ---------- */
@media (max-width: 44rem) {
  .sw-masthead {
    padding: 1.1rem var(--sw-gutter) 0.9rem;
  }
  .sw-masthead nav {
    margin-top: 1.1rem;
  }

  /* The search must sit above the fold. At 88vh the button fell below it. */
  .sw-hero {
    min-height: min(74vh, 34rem);
  }
  .sw-hero h1 {
    margin-bottom: 1.4rem;
  }
  .sw-find {
    padding: 1.1rem;
  }

  /* 16px stops iOS zooming the whole page when a field is tapped. */
  .sw-find select {
    font-size: 16px;
  }
}

@media (max-width: 34rem) {
  .sw-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}
@media (max-width: 44rem) {
  .sw-opening {
    height: 66vh;
  }
}

/* ==========================================================================
   13. MOTION — slow, or none
   ========================================================================== */

.sw-rise {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.1s ease,
    transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.sw-rise.sw-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .sw-rise {
    opacity: 1;
    transform: none;
  }
}

/* Visible keyboard focus, everywhere. */
:focus-visible {
  outline: 1px solid var(--sw-ink);
  outline-offset: 4px;
}

/* ---------- MOBILE MEASURE ----------
   Narrow columns need less leading than wide ones. At 390px the measure
   is ~48 characters; 1.95 leading drifts apart at that width. ---------- */
@media (max-width: 34rem) {
  .sw-article {
    line-height: 1.72;
  }
  .sw-article p {
    margin-bottom: 1.35em;
  }
  .sw-article .sw-lede,
  .sw-article .lede {
    line-height: 1.72;
  }
}

/* The byline foot sits in its own grid in the Theme Builder, outside the post
   content. Kill the top padding the article grid would otherwise add, so it
   reads as a continuation of the piece rather than a new section. */
.sw-article--foot { padding-top: 0; }

/* ==========================================================================
   14. DIRECTORY TEMPLATES
   Breadcrumb, listing cards and pagination for the category-and-location,
   listing and guide templates. Same hairlines and tracked caps as everything
   else — nothing new invented, only arranged.
   ========================================================================== */

.sw-crumbs{
  max-width:74rem;margin:0 auto;
  padding:clamp(1.5rem,3vw,2.5rem) var(--sw-gutter) 0;
  font-family:var(--sw-util);font-size:.72rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--sw-quiet);
}
.sw-crumbs a{color:var(--sw-quiet);text-decoration:none;border-bottom:1px solid transparent}
.sw-crumbs a:hover{border-bottom-color:var(--sw-rule)}
.sw-crumb-sep{padding:0 .55rem;color:var(--sw-rule)}

.sw-cards--listings{
  max-width:74rem;margin:0 auto;
  padding:clamp(2rem,4vw,3rem) var(--sw-gutter);
  grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));
}

/* A featured member reads as featured through position and a hairline, not a
   coloured badge. The accent stays rationed. */
.sw-card--featured{position:relative}
.sw-card--featured .sw-shot{outline:1px solid var(--sw-accent);outline-offset:-1px}

.sw-pagination{
  max-width:74rem;margin:0 auto;
  padding:0 var(--sw-gutter) clamp(3rem,6vw,5rem);
}
.sw-pagination ul{display:flex;gap:.9rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.sw-pagination a,.sw-pagination span{
  font-family:var(--sw-util);font-size:.74rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--sw-quiet);text-decoration:none;
  padding-bottom:.2rem;border-bottom:1px solid transparent;
}
.sw-pagination a:hover{color:var(--sw-ink);border-bottom-color:var(--sw-rule)}
.sw-pagination .current{color:var(--sw-ink);border-bottom-color:var(--sw-ink)}

/* A venue's own accounts. Text, not icon soup — seven brand marks in a row
   would be the loudest thing on a page whose whole position is restraint. */
.sw-social--listing{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:1.15rem;
  margin-top:1.4rem;padding-top:1.2rem;border-top:1px solid var(--sw-rule-soft);
}
.sw-social--listing .sw-label{margin-right:.2rem}
.sw-social--listing a{
  font-family:var(--sw-util);font-size:.74rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--sw-stone);text-decoration:none;
  padding-bottom:.15rem;border-bottom:1px solid var(--sw-rule);
}
.sw-social--listing a:hover{color:var(--sw-ink);border-bottom-color:var(--sw-ink)}


/* ==========================================================================
   15 · HIVEPRESS DIRECTORY ARCHIVE
   --------------------------------------------------------------------------
   The category and location pages are HivePress's own archive, because that
   is what keeps the filters, the sorting and the map working. Left alone it
   arrives in HivePress's default costume — rounded cards, drop shadows, a
   sans-serif stack — which reads as a different website to the article pages.

   This section dresses it in the same clothes as everything else: the display
   serif for names, hairlines instead of shadows, square corners, the accent
   rationed to links. It restyles; it does not restructure. HivePress keeps
   control of what renders, so a plugin update cannot break the page — only,
   at worst, leave a rule unused.
   ========================================================================== */

/* --- the page frame ------------------------------------------------------ */

.hp-page__content,
.hp-page__sidebar {
  font-family: var(--sw-body);
  color: var(--sw-copy);
}

.post-type-archive-hp_listing .hp-row,
.tax-hp_listing_category .hp-row,
.tax-hp_listing_location .hp-row {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--sw-gutter);
}

/* Our breadcrumb and heading sit inside hp-page__content, so the intro needs
   its own breathing room rather than the article template's. */
.hp-page__content > .sw-crumbs {
  padding-left: 0;
  padding-right: 0;
}
.hp-page__content > .sw-archive-intro {
  max-width: none;
  padding: 0 0 clamp(1.6rem, 3vw, 2.4rem);
}

/* --- the top bar: result count and sort ---------------------------------- */

.hp-page__topbar {
  border-top: 1px solid var(--sw-rule);
  border-bottom: 1px solid var(--sw-rule);
  padding: 0.9rem 0;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  align-items: center;
}

.hp-result-count {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sw-stone);
}

.hp-form--listing-sort .hp-field__label span,
.hp-form--listing-sort select {
  font-family: var(--sw-util);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--sw-stone);
}

/* --- the cards ----------------------------------------------------------- */

.hp-listing--view-block {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.hp-listing--view-block .hp-listing__header,
.hp-listing--view-block .hp-listing__content,
.hp-listing--view-block .hp-listing__footer {
  padding: 0;
  border: 0;
}

.hp-listing--view-block .hp-listing__image {
  aspect-ratio: 4/5;
  border-radius: 0;
  overflow: hidden;
  background: var(--sw-rule-soft);
  margin-bottom: 1.1rem;
}
.hp-listing--view-block .hp-listing__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.hp-listing--view-block:hover .hp-listing__image img {
  transform: scale(1.03);
}

/* HivePress uppercases listing names in the data itself — several are stored
   in caps. Small-caps-by-CSS would fight that, so leave the casing alone and
   let the display serif do the work. */
.hp-listing--view-block .hp-listing__title,
.hp-listing--view-block .hp-listing__title a {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.004em;
  color: var(--sw-ink);
  text-decoration: none;
  margin: 0;
  transition: color 0.25s ease;
}
.hp-listing--view-block:hover .hp-listing__title a {
  color: var(--sw-accent);
}

.hp-listing--view-block .hp-listing__category,
.hp-listing--view-block .hp-listing__categories,
.hp-listing--view-block .hp-listing__attribute {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  margin-top: 0.5rem;
}
.hp-listing--view-block .hp-listing__category a,
.hp-listing--view-block .hp-listing__categories a {
  color: inherit;
  text-decoration: none;
}

/* Paying members. The accent hairline is the whole signal — no badge, no
   ribbon. It reads as editorial selection rather than advertising, which is
   the distinction the Blueprint keeps drawing. */
.hp-listing--featured .hp-listing__image {
  outline: 1px solid var(--sw-accent);
  outline-offset: -1px;
}

/* --- the sidebar: filters and map ---------------------------------------- */

.hp-page__sidebar .widget {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2.2rem;
}

.hp-widget--listing-filter .hp-form__field--radio label {
  font-family: var(--sw-body);
  font-size: 0.92rem;
  color: var(--sw-copy);
  cursor: pointer;
}
.hp-widget--listing-filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-widget--listing-filter ul ul {
  padding-left: 0.9rem;
  border-left: 1px solid var(--sw-rule-soft);
  margin-top: 0.35rem;
}
.hp-widget--listing-filter li {
  margin: 0.3rem 0;
}

.hp-form__button,
.hp-listing__action .button {
  border-radius: 0;
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hp-map {
  border: 1px solid var(--sw-rule);
  border-radius: 0;
  overflow: hidden;
}

/* --- pagination ---------------------------------------------------------- */

.hp-pagination,
.hp-page__content .page-numbers {
  font-family: var(--sw-util);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}
.hp-page__content .page-numbers {
  border-radius: 0;
}

/* --- our blocks, when they sit inside the HivePress column ---------------- */

.hp-page__content .sw-related {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.hp-page__content .sw-related .sw-cards {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 781px) {
  .hp-page__sidebar {
    margin-bottom: 2rem;
  }
}


/* ==========================================================================
   16 · HIVEPRESS — THE THINGS SECTION 15 COULD NOT REACH
   --------------------------------------------------------------------------
   Three faults that a normal rule cannot fix, each for its own reason.
   ========================================================================== */

/* --- the search strip above the archive ---------------------------------- */
/*
   Divi's form reset strips the padding off HivePress's inputs, which leaves
   them 22px tall beside a 43px submit button — the single thing that makes
   this strip look broken. Everything here is about putting all three controls
   on the same baseline.
*/

.hp-page__header {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--sw-gutter);
}

.hp-form--listing-search .hp-field--search,
.hp-form--listing-search .hp-field--text,
.hp-widget--listing-filter .hp-field--text {
  height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--sw-rule);
  border-radius: 0;
  background: var(--sw-paper);
  font-family: var(--sw-body);
  font-size: 0.95rem;
  color: var(--sw-copy);
  box-shadow: none;
  line-height: normal;
}
.hp-form--listing-search .hp-field--search:focus,
.hp-form--listing-search .hp-field--text:focus {
  border-color: var(--sw-accent);
  outline: none;
}
.hp-form--listing-search ::placeholder {
  color: var(--sw-quiet);
  opacity: 1;
}

.hp-form--listing-search .hp-form__button,
.hp-form--listing-search button[type="submit"] {
  height: 44px;
  padding: 0 1.8rem;
  border: 1px solid var(--sw-ink);
  background: var(--sw-ink);
  color: var(--sw-paper);
}
.hp-form--listing-search .hp-form__button:hover {
  background: var(--sw-accent);
  border-color: var(--sw-accent);
}

/*
   The "Locate Me" arrow.

   HivePress already overlays it on the input, but by flex rather than by
   absolute positioning: the wrapper is a flex row and the anchor carries
   `flex: 0 0 3rem; margin-left: -3rem`, so it pulls itself back over the
   input's right edge. An earlier attempt here set the wrapper to display:block
   and nudged the anchor with top/transform, which removed the flex the overlay
   depends on and left the arrow floating above the field.

   So: leave the geometry to HivePress. All this needs to do is reserve room on
   the input so typed text does not run under the icon, and recolour it.
*/
.hp-field--location > input,
[data-component="location"] > input {
  padding-right: 3rem;
}
/*
   One thing does have to be taken off HivePress: the z-index.

   Its own rule is `.hp-field--location a { position: relative; z-index: 3 }`,
   which only needs to beat the input beside it. But none of the anchor's
   ancestors are positioned, so that 3 is measured in the ROOT stacking
   context — while the whole header lives inside
   `.et-l--header .et_builder_inner_content`, which Divi positions at
   z-index: 2. Three beats two, so the arrow painted on top of the entire
   header, and the menu dropdown's own z-index: 9999 could not save it: that
   9999 is sealed inside the header's z-index: 2 context.

   Visible as the little arrow punching through the Magazine and Directory
   dropdowns on every category and location page.

   z-index: 0 is enough. The anchor is still positioned, so it still paints
   above the static input it overlaps and stays the hit target — checked with
   elementFromPoint — but it now loses to the header.
*/
.hp-field--location > a,
[data-component="location"] > a {
  color: var(--sw-quiet);
  transition: color 0.2s ease;
  z-index: 0;
}
.hp-field--location > a:hover,
[data-component="location"] > a:hover {
  color: var(--sw-accent);
}
.hp-field--location > a .hp-icon,
[data-component="location"] > a .hp-icon {
  font-size: 0.85rem;
}

/* --- card images --------------------------------------------------------- */
/*
   HivePress writes aspect-ratio inline from its own setting, so nothing in a
   stylesheet can beat it without !important. This is the one place in the
   theme that uses it, and it is deliberate: the alternative is asking the
   client to change a plugin setting that would then be lost on reinstall.
*/

.hp-listing--view-block .hp-listing__image {
  aspect-ratio: 4 / 5 !important;
  padding-bottom: 0 !important;
}

/* --- the category filter ------------------------------------------------- */
/*
   HivePress caps the radio list and gives it its own scrollbar, so a
   thirteen-category list becomes a cramped box with a second scrollbar inside
   the page. Let it run to its natural height — it is a sidebar, it has room.
*/

.hp-widget--listing-filter .hp-field--radio,
.hp-widget--listing-filter .hp-field--checkboxes {
  max-height: none !important;
  overflow: visible !important;
}

.hp-widget--listing-filter .hp-form__field {
  margin-bottom: 1.2rem;
}
.hp-widget--listing-filter .hp-field--radio li {
  margin: 0.45rem 0;
}
.hp-widget--listing-filter .hp-field--radio label {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

/* A heading for the filter column, since HivePress ships none and the list
   otherwise begins with no explanation of what it is. */
.hp-widget--listing-filter::before {
  content: "Filter";
  display: block;
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sw-ink);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--sw-rule);
}

/* --- room to breathe ----------------------------------------------------- */

.hp-page__sidebar {
  padding-right: clamp(1rem, 2vw, 2rem);
}
.hp-listings.hp-grid > .hp-row {
  margin-left: -0.9rem;
  margin-right: -0.9rem;
}
.hp-listings.hp-grid .hp-grid__item {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

@media (max-width: 781px) {
  .hp-page__sidebar {
    padding-right: 0;
  }
  .hp-form--listing-search .hp-form__fields {
    gap: 0.6rem;
  }
}


/* ==========================================================================
   17 · THE DIRECTORY POINTING AT A GUIDE
   --------------------------------------------------------------------------
   The mirror of .sw-into-directory, which sends a guide's reader down into the
   directory. This one sends a directory visitor up to the guide, and it earns
   a little more emphasis than its twin: where a guide exists it is the better
   answer, and the whole anti-cannibalisation rule rests on the reader taking
   it. Hence the tinted ground and the accent rule — the only two places in the
   component where the palette is spent.

   It sits between the heading and the listing grid, so it stays tight: this is
   a signpost, not a section.
   ========================================================================== */

.sw-into-directory--guide {
  margin: 0 0 clamp(1.8rem, 3.5vw, 2.6rem);
  padding: 1.15rem 1.3rem;
  background: var(--sw-lift);
  border: 0;
  border-left: 2px solid var(--sw-accent);
  align-items: center;
}

.sw-into-directory--guide .sw-label {
  color: var(--sw-accent);
}

.sw-into-directory--guide p {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sw-ink);
  margin: 0;
  flex: 1 1 16rem;
}

.sw-into-directory--guide a {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .sw-into-directory--guide {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
}


/* ==========================================================================
   18 · THE DIRECTORY INDEX
   --------------------------------------------------------------------------
   Category cards with no photograph. Every other card on the site leads with
   an image, but a category has no single image that is honest about it — one
   day spa standing for seventy is a choice the reader cannot see being made.
   So these are type and a count, and the hairline does the work the photograph
   does elsewhere.
   ========================================================================== */

.sw-cards--index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--sw-rule);
  border: 1px solid var(--sw-rule);
}

.sw-cards--index .sw-card {
  background: var(--sw-paper);
  padding: 1.5rem 1.4rem 1.3rem;
  transition: background 0.3s ease;
}
.sw-cards--index .sw-card:hover {
  background: var(--sw-lift);
}

.sw-cards--index .sw-card h3 {
  margin: 0 0 0.45rem;
  max-width: none;
}

.sw-cards--index .sw-card .sw-label {
  font-size: 0.58rem;
  color: var(--sw-quiet);
}


/* ==========================================================================
   19 · THE ENQUIRY FORM ON A LISTING
   --------------------------------------------------------------------------
   A disclosure, not a modal. Closed it is a single button; open it is the
   form in place. No overlay, no scroll lock, no focus trap to get wrong — and
   it works with JavaScript disabled, which a modal does not.

   Gravity Forms ships its own opinionated styling. These rules bring it back
   to the same inputs as the rest of the site rather than leaving a second
   design language on the page.
   ========================================================================== */

.sw-enquire {
  margin: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--sw-rule);
  border-bottom: 1px solid var(--sw-rule);
  padding: 1.4rem 0;
}

.sw-enquire > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
}
.sw-enquire > summary::-webkit-details-marker {
  display: none;
}
.sw-enquire > summary:focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: 3px;
}

.sw-enquire[open] > summary {
  margin-bottom: 1.6rem;
}
.sw-enquire[open] > summary .sw-btn::after {
  content: " ×";
}

.sw-enquire__note {
  font-family: var(--sw-util);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--sw-quiet);
  margin: 0 0 1.2rem;
}

/* --- Gravity Forms, brought into line ------------------------------------ */

.sw-enquire .gform_wrapper {
  margin: 0;
  max-width: 34rem;
}

.sw-enquire .gfield_label {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-stone);
}

.sw-enquire input[type="text"],
.sw-enquire input[type="email"],
.sw-enquire textarea {
  width: 100%;
  border: 1px solid var(--sw-rule);
  border-radius: 0;
  background: var(--sw-paper);
  font-family: var(--sw-body);
  font-size: 0.95rem;
  color: var(--sw-copy);
  padding: 0.65rem 0.8rem;
  box-shadow: none;
}
.sw-enquire input[type="text"]:focus,
.sw-enquire input[type="email"]:focus,
.sw-enquire textarea:focus {
  border-color: var(--sw-accent);
  outline: none;
}

.sw-enquire textarea {
  min-height: 8rem;
  resize: vertical;
}

.sw-enquire .gform_button {
  border: 1px solid var(--sw-ink);
  background: var(--sw-ink);
  color: var(--sw-paper);
  border-radius: 0;
  padding: 0.75rem 1.9rem;
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.sw-enquire .gform_button:hover {
  background: var(--sw-accent);
  border-color: var(--sw-accent);
}

.sw-enquire .gform_confirmation_message {
  font-family: var(--sw-body);
  font-size: 1rem;
  color: var(--sw-ink);
  border-left: 2px solid var(--sw-accent);
  background: var(--sw-lift);
  padding: 1rem 1.2rem;
}


/* ==========================================================================
   20 · SOCIAL ICONS
   --------------------------------------------------------------------------
   Named .sw-social-icons, not .sw-social.

   Three different components wanted that shorter name: the supplied SVG row,
   the text links on a listing (.sw-social--listing), and this one. This file
   is read top to bottom, so whichever is defined last wins — and this was
   last, which meant `width: 44px` from a rule meant for icon buttons was
   being applied to the words "Facebook" and "Instagram" on every listing,
   squashing them into overlapping squares.

   The shortcode is still [sw_social]; only the class it prints has changed,
   so nothing placed in a Divi module needs editing.
   --------------------------------------------------------------------------
   One component, two placements. In the masthead they sit beside the
   navigation and must not compete with it, so they are small, quiet and only
   take the accent on hover. In the footer they can be larger, because there is
   nothing left to compete with.

   Touch targets are 44px in both, which is larger than the icons look. Small
   icons with small targets are the single most common thing that fails on a
   phone, and the SoW asks for QA on one.
   ========================================================================== */

.sw-social-icons {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-social-icons li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sw-social-icons li::before,
.sw-social-icons li::marker {
  content: none;
}

.sw-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--sw-stone);
  text-decoration: none;
  border: 0;
  transition: color 0.25s ease;
}
.sw-social-icons a:hover,
.sw-social-icons a:focus-visible {
  color: var(--sw-accent);
}
.sw-social-icons a:focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: -6px;
}

.sw-social-icons i {
  font-size: 0.95rem;
  line-height: 1;
}

/* --- in the masthead ----------------------------------------------------- */

.sw-social-icons--masthead {
  gap: 0;

  /*
   * Right-aligned, because the masthead's third column right-aligns its
   * "Join our directory" link and the icons sit directly beneath it. Left
   * aligned they start at the column's left edge, which puts them under the
   * logo in the middle of the header, belonging to neither.
   */
  justify-content: flex-end;
  margin-top: -0.2rem;
}
.sw-social-icons--masthead a {
  width: 38px;
  color: var(--sw-ink);
}

/* Once the header columns stack, nothing is to the right to align with. */
@media (max-width: 980px) {
  .sw-social-icons--masthead {
    justify-content: center;
  }
}

/* --- in the footer ------------------------------------------------------- */

.sw-social-icons--footer i {
  font-size: 1.05rem;
}

/* On a dark footer the inherited ink would disappear. */
.et_pb_bg_layout_dark .sw-social-icons a,
.sw-footer--dark .sw-social-icons a {
  color: var(--sw-night-soft);
}
.et_pb_bg_layout_dark .sw-social-icons a:hover,
.sw-footer--dark .sw-social-icons a:hover {
  color: var(--sw-paper);
}

.sw-social-icons--lg i {
  font-size: 1.25rem;
}

@media (max-width: 980px) {
  /* Centred once the footer columns stack, otherwise they hang off to one
     side under a centred logo. */
  .sw-social-icons--footer {
    justify-content: center;
  }
}


/* ==========================================================================
   21 · DIRECTORY ARCHIVE — TABLET AND PHONE
   --------------------------------------------------------------------------
   HivePress keeps its filter sidebar beside the listings down to its own
   breakpoint, which on a 768px tablet leaves 451px for the grid and puts three
   cards in it. A 157px card carrying an 18px display serif is not a card — the
   title wraps to four lines and the photograph is a thumbnail.

   So the sidebar stacks earlier than HivePress would stack it, and the grid is
   held to two cards until there is not room for two.
   ========================================================================== */

@media (max-width: 980px) {

  .hp-page__sidebar,
  .hp-page__content {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .hp-page__sidebar {
    padding-right: 0;
    margin-bottom: 2.4rem;
  }

  /* The filter column reads as a row of controls once it is full width, not a
     column clinging to the left edge. */
  .hp-widget--listing-filter .hp-field--radio > ul > li > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.4rem;
    border-left: 0;
    padding-left: 0;
  }

  .hp-map {
    height: 220px;
  }

  .hp-listings.hp-grid .hp-grid__item {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }
}

@media (max-width: 560px) {

  .hp-listings.hp-grid .hp-grid__item {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* One card per row means the 4:5 crop is unnecessarily tall on a phone —
     it pushes the second card entirely below the fold. */
  .hp-listing--view-block .hp-listing__image {
    aspect-ratio: 3 / 2 !important;
  }

  .hp-page__topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}


/* ==========================================================================
   22 · SINGLE LISTING — CONTAINMENT
   --------------------------------------------------------------------------
   Section 15 gave the archive rows a max width and a gutter, which also
   absorbs the negative margins HivePress's grid rows carry. The single listing
   page was left out, so on a phone its .hp-row is 422px inside a 390px
   viewport and the whole page scrolls sideways.

   Sideways scroll is the one layout fault a reader always notices and never
   reports as a layout fault — it reads as the site being broken.
   ========================================================================== */

.single-hp_listing .hp-row {
  max-width: 74rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sw-gutter);
  padding-right: var(--sw-gutter);
}

/*
 * Room under the masthead.
 *
 * An archive gets this from .hp-page__header, which carries the search strip.
 * A single listing has no header block, so its title began exactly at the
 * navigation's bottom edge — a measured gap of zero. The name of the venue is
 * the first thing on the page and it was touching the menu above it.
 */
.single-hp_listing .hp-page,
.single-hp_listing .hp-page__content {
  padding-top: 0;
}
.single-hp_listing .hp-row:first-of-type {
  padding-top: clamp(2.25rem, 4.5vw, 3.75rem);
}

@media (max-width: 980px) {

  .single-hp_listing .hp-page__sidebar,
  .single-hp_listing .hp-page__content {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-right: 0;
  }

  .single-hp_listing .hp-page__sidebar {
    margin-bottom: 2rem;
  }
}


/* ==========================================================================
   23 · SOCIAL ICONS STAY VISIBLE ON MOBILE
   --------------------------------------------------------------------------
   The Site Blueprint is explicit about this: "On mobile the utility row
   collapses to save two lines of vertical space, but the icons stay visible.
   That is a real bug that appeared and was fixed during testing, and it is
   worth re-checking after any theme change."

   This is that theme change, and it had regressed. The masthead's third column
   is hidden below Divi's tablet breakpoint, which takes the icons with it.

   So the column is brought back and everything else inside it stays hidden —
   the utility links still collapse into the hamburger exactly as before, and
   only the icons survive, which is what the Blueprint asks for.
   ========================================================================== */

@media (max-width: 980px) {

  /* Modern browsers: find the column by what it contains, so this survives
     the header being rebuilt and the auto-generated column class changing. */
  /*
   * The .et-db #et-boc .et-l prefix is Divi's own, and it is here to win an
   * argument rather than to describe anything. Divi hides this column with
   *
   *   .et-db #et-boc .et-l .et_pb_column_2_tb_header { display: none !important }
   *
   * which carries an ID selector. Two !important rules are settled by
   * specificity, so a class-only selector loses however emphatic it is. The
   * column is found by what it contains rather than by its generated class
   * name, so rebuilding the header does not quietly undo this.
   */
  .et-db #et-boc .et-l .et_pb_column:has(> .et_pb_code .sw-social-icons--masthead) {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .et-db #et-boc .et-l .et_pb_column:has(> .et_pb_code .sw-social-icons--masthead) > .et_pb_module {
    display: none !important;
  }

  .et-db #et-boc .et-l .et_pb_column:has(> .et_pb_code .sw-social-icons--masthead) > .et_pb_code {
    display: block !important;
    margin-bottom: 0 !important;
  }

  .sw-social-icons--masthead {
    justify-content: center;
  }
}


/* ==========================================================================
   24 · THE LISTING'S META LINE
   --------------------------------------------------------------------------
   Two faults under the venue name.

   The categories ran together. HivePress prints them as adjacent links with
   nothing between, so a venue in two of them read as one invented category:
   "DAY SPAS BATHHOUSES & SAUNAS". A separator is all it needs.

   And the address beneath the title was set in the same face, size and colour
   as the description below it, so nothing said it was the venue's details
   rather than the start of its write-up. The Blueprint's wireframe has this
   line as name · suburb · category — a compact meta line, not body copy.
   ========================================================================== */

.hp-listing__category a + a::before,
.hp-listing__categories a + a::before {
  content: "·";
  margin: 0 0.5em;
  color: var(--sw-rule);
}

.hp-listing--view-page .hp-listing__details--primary,
.single-hp_listing .hp-listing__details--primary {
  font-family: var(--sw-util);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--sw-stone);
  margin-top: 0.55rem;
  margin-bottom: 1.4rem;
}

.hp-listing--view-page .hp-listing__details--primary a,
.single-hp_listing .hp-listing__details--primary a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--sw-rule);
}
.hp-listing--view-page .hp-listing__details--primary a:hover,
.single-hp_listing .hp-listing__details--primary a:hover {
  color: var(--sw-accent);
  border-bottom-color: var(--sw-accent);
}

/* The category, wherever it sits, reads as a label rather than a sentence. */
.single-hp_listing .hp-listing__category,
.single-hp_listing .hp-listing__categories {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sw-quiet);
}


/* ==========================================================================
   25 · HEADINGS INSIDE A LISTING'S OWN WRITE-UP
   --------------------------------------------------------------------------
   Ninety-three of the listings open their description with a heading tag —
   almost always an <h4> wrapped around what is plainly a sentence:

     <h4>Peninsula Hot Springs is the first natural hot springs and day spa…

   Rendered in the display serif, that reads as a second title stacked under
   the venue's name. It is not a heading; it is the opening paragraph, mis-
   tagged in data written years ago by whoever filled the field in.

   Rewriting ninety-three records to strip the tags is the honest fix, and it
   is a content job with ninety-three chances to damage someone's copy. Until
   that is worth doing, h3 and h4 inside a write-up are set as the prose they
   are, while h2 keeps a heading's weight for the few venues that use one
   properly.
   ========================================================================== */

.hp-listing__description h1,
.hp-listing__description h2 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.004em;
  color: var(--sw-ink);
  margin: 2rem 0 0.8rem;
}

.hp-listing__description h3,
.hp-listing__description h4,
.hp-listing__description h5,
.hp-listing__description h6 {
  font-family: var(--sw-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.004em;
  color: var(--sw-copy);
  margin: 0 0 1.1rem;
}

/* The first one is the lede, so it carries a little more presence. */
.hp-listing__description > h3:first-child,
.hp-listing__description > h4:first-child {
  font-size: 1.06rem;
  color: var(--sw-ink);
}


/* ==========================================================================
   26 · THE HOME PAGE ROWS SIT FLUSH LEFT ON A PHONE
   --------------------------------------------------------------------------
   Divi narrows .et_pb_row to 90% below its tablet breakpoint and relies on
   `margin: auto` to keep it centred. The rows holding the home page Code
   modules carry margin 0, so the 10% it gives back all lands on the right:
   at 375px the row measures 337.5px and starts at x=0, leaving a 37.5px gap
   down one side only. The footer rows, which keep Divi's auto margins, are
   centred correctly — which is why only these nine look wrong.

   These rows are meant to run edge to edge anyway. The section inside each
   one already caps its content and supplies its own gutter, so taking the
   row to a true 100% both fixes the lopsided gap and leaves the reading
   width unchanged.

   Matching on the section rather than on .sw-wrap catches all nine: the
   hero, the gift voucher band, Featured this week and the ad slot lay their
   own widths out and carry no .sw-wrap, but every one of them is a
   <section class="sw-..."> sitting directly inside a Code module.
   ========================================================================== */

.et_pb_row:has(.et_pb_code_inner > section[class*="sw-"]) {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}


/* ==========================================================================
   27 · THE TRUST LINE UNDER A DIRECTORY INTRO
   --------------------------------------------------------------------------
   Two sentences about Editor Visited and award badges, printed by
   sw_dir_trust_line() rather than repeated in all twenty term descriptions.

   It is a footnote to the intro, not part of it, so it sits a size down and
   a shade quieter than the copy above. Still centred with the rest of the
   block, still readable — this is the line that tells a first-time visitor
   the badges mean something.
   ========================================================================== */

.sw-archive-intro .sw-archive-trust {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--sw-quiet);
  font-weight: 300;
}


/* ==========================================================================
   28 · THREE THINGS KRIS SPOTTED ON A LISTING CARD
   --------------------------------------------------------------------------
   From her screenshot of /directory/day-spas/sydney/, approved 17 October.
   All three are HivePress defaults showing through — the kind of detail that
   makes an edited directory read like a database listing.
   ========================================================================== */

/*
 * 1. "Added on 4 March 2024" under every card.
 *
 * The date a row entered a database is not information a reader wants, and
 * the dates disagree with each other: most are 2020 to 2024, but the ones
 * touched during the migration say 2026, so the newest-looking venues are
 * simply the ones we edited last. Hidden rather than restyled — there is no
 * version of this line that earns its place.
 */
.hp-listing .hp-listing__created-date {
  display: none;
}

/*
 * 2. Addresses cut off mid-word — "24 Loftus Street, Sydney N…".
 *
 * The link inside sets nowrap with an ellipsis, so a long address is
 * truncated instead of running to a second line. There is room for two
 * lines in the card; there is no room for half an address.
 */
.hp-listing__location a {
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
}

/*
 * 3. The Sort control showing "T…" instead of the chosen option.
 *
 * HivePress renders it through Select2, so the width has to go on the
 * container it generates rather than on the <select>, which is hidden.
 */
.hp-form--listing-sort .select2-container,
.hp-form__field--select .select2-container {
  min-width: 11rem;
}


/* ==========================================================================
   29 · AFFILIATE DISCLOSURE IN THE EDITOR'S EDIT
   --------------------------------------------------------------------------
   Kris, 17 October: the Editor's Edit carries two kinds of product — things
   she has tried and endorses with no commission, and affiliate products
   starting with Start My Tomorrow and MBODY Minerals.

   The affiliate ones say so. Styled like the price it replaces rather than
   hidden away in small grey text: a disclosure nobody reads is not a
   disclosure, and a publisher who calls out unlabelled advertising
   elsewhere on the page cannot run its own unmarked.
   ========================================================================== */

.sw-product .sw-affiliate {
  display: block;
  font-family: var(--sw-util);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  margin-top: 0.35rem;
}


/* ==========================================================================
   30 · FOUNDING PARTNERS — THE GIFT VOUCHER SIGN-UP ON THE JOIN PAGE
   --------------------------------------------------------------------------
   Kris is showing this page to venue owners at the Wellness Summit on
   25 October and recruiting twenty founding partners from the room. It has
   to carry on its own: set apart from the $520 listing pitch above it, so
   nobody reads the two as one offer, and legible over someone's shoulder.

   A rule above and the paper ground rather than a boxed card — this is a
   second invitation on the page, not an advertisement inside it.
   ========================================================================== */

.sw-founding {
  max-width: 44rem;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: clamp(2.2rem, 5vw, 3.4rem) var(--sw-gutter) 0;
  border-top: 1px solid var(--sw-rule);
  text-align: left;
}
.sw-founding h2 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 48;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.008em;
  margin: 0.9rem 0 1rem;
  max-width: 24ch;
}
.sw-founding p {
  color: var(--sw-stone);
  font-weight: 300;
  max-width: 34rem;
}
.sw-founding-form {
  margin-top: 1.8rem;
}

/* Shown only while no form is wired up. */
.sw-founding-fallback {
  margin-top: 1.4rem;
}

/* ==========================================================================
 * 31. HivePress forms — Submit Listing, Sign In, Register, My Account
 *
 * HivePress ships its fields with almost no styling: common.min.css gives
 * inputs width:100% and nothing else. No border, no padding, no limit on how
 * wide the column grows. It expects the theme to dress them, and Divi only
 * dresses its own form modules, so a HivePress form renders close to naked —
 * a Title box 1,400px wide on a desktop, which is the first thing a venue
 * owner sees after paying $520.
 *
 * Nothing here is a HivePress override in the awkward sense. The plugin left
 * these properties unset on purpose; we are filling them in with the site's
 * own type, rule colour and spacing so the join flow looks like the rest of
 * Spa & Wellness rather than like a plugin.
 *
 * Scoped by HivePress's own field classes, which sit on the inputs
 * themselves, so this cannot reach Divi's forms or Gravity Forms.
 * ========================================================================== */

/*
 * The column. 34rem is the same measure the editorial pages read at, so a
 * form lines up with the prose above it instead of running to the window
 * edge. Safe in the login and register modals too: those are 380px wide, so
 * a 34rem ceiling never applies there.
 */
.hp-form__fields {
  max-width: 34rem;
}

/*
 * Labels. They inherit the display serif otherwise and read as headings —
 * on a twelve-field form that gives you twelve headings and no hierarchy.
 * The utility face at a small size puts them back where a label belongs.
 */
.hp-field__label {
  font-family: var(--sw-util);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sw-ink);
  margin-bottom: 0.45rem;
}

/* "(optional)" rides inside the label in a <small>; quiet it down. */
.hp-field__label small {
  font-weight: 400;
  color: var(--sw-quiet);
}

.hp-field__description {
  font-family: var(--sw-util);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--sw-quiet);
  opacity: 1; /* HivePress dims it to .75; the colour already does that */
}

/*
 * The inputs. These class names sit on the elements, not on wrappers —
 * see .hp-field--text{width:100%} in the plugin's own stylesheet.
 */
.hp-field--text,
.hp-field--email,
.hp-field--url,
.hp-field--number,
.hp-field--password,
.hp-field--search,
.hp-field--textarea,
.hp-field--select {
  font-family: var(--sw-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--sw-copy);
  background: var(--sw-paper);
  border: 1px solid var(--sw-rule);
  border-radius: 0;
  padding: 0.72rem 0.85rem;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.hp-field--textarea {
  min-height: 9rem;
  resize: vertical;
}

/* The caret Divi would normally draw. Native selects lose it once we set a
 * background, so put one back rather than leave a flat box. */
.hp-field--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--sw-stone) 50%),
    linear-gradient(135deg, var(--sw-stone) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.15rem, calc(100% - 0.85rem) 1.15rem;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.hp-field--text:focus,
.hp-field--email:focus,
.hp-field--url:focus,
.hp-field--number:focus,
.hp-field--password:focus,
.hp-field--search:focus,
.hp-field--textarea:focus,
.hp-field--select:focus {
  border-color: var(--sw-accent);
  outline: none;
}

.hp-field--text::placeholder,
.hp-field--email::placeholder,
.hp-field--url::placeholder,
.hp-field--textarea::placeholder {
  color: var(--sw-quiet);
}

/*
 * Field rhythm. HivePress sets 1.5rem between fields, but the live page
 * shows far more than that — Divi is adding margin of its own through a
 * selector carrying an ID (.et-db #et-boc .et-l), which no class-only rule
 * can beat. Both forms of the rule are written out: the plain one for
 * anywhere Divi's wrapper is absent, the prefixed one for the page itself.
 */
.hp-form__field:not(:last-child) {
  margin-bottom: 1.5rem;
}
.et-db #et-boc .et-l .hp-form__field:not(:last-child) {
  margin-bottom: 1.5rem;
}
.et-db #et-boc .et-l .hp-field__label {
  margin-bottom: 0.45rem;
}

/*
 * "Select Images". HivePress floats a <label> over a hidden file input, so
 * this is the only button on the form that is not a <button> — and the one
 * that renders as a raw grey browser control if left alone.
 */
.hp-field--attachment-upload label {
  display: inline-flex;
  align-items: center;
  font-family: var(--sw-util);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-ink);
  background: var(--sw-paper);
  border: 1px solid var(--sw-ink);
  border-radius: 0;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hp-field--attachment-upload label:hover {
  background: var(--sw-ink);
  color: var(--sw-paper);
}

/* Submit, Sign In, Register — the form's own buttons. */
.hp-form__button {
  font-family: var(--sw-util);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-paper);
  background: var(--sw-ink);
  border: 1px solid var(--sw-ink);
  border-radius: 0;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hp-form__button:hover {
  background: var(--sw-paper);
  color: var(--sw-ink);
}

/* The footer links under Sign In — "Register", "Forgot password?". */
.hp-form__footer {
  font-family: var(--sw-util);
  font-size: 0.78rem;
  color: var(--sw-stone);
}

/* ==========================================================================
 * 32. The HivePress page block — Submit Listing, Sign In, Register, Account
 *
 * .hp-page is a bare <div> carrying max-width:1280px and no padding at all,
 * so a form starts hard against the top of the window and ends hard against
 * the bottom, hugging the left of a 1280px block it only half fills.
 *
 * Scoped by HivePress's own body classes rather than by .hp-page, because
 * the directory uses the same wrapper:
 *
 *   directory term page  body.hp-template--listings-view-page
 *   single listing       body.hp-template--listing-view-page
 *   submit listing       body.hp-template--listing-submit-details-page
 *   sign in              body.hp-template--user-login-page
 *
 * Matching "listing-submit" and "user-" reaches every step of the join flow
 * and every account screen, and cannot reach "listings-view" or
 * "listing-view". The grid Kris has already signed off is untouched.
 *
 * 42rem is the form's 34rem measure plus a gutter either side, so the block
 * is exactly as wide as its contents. Centring it then reads as centred
 * without centring the text — the copy stays left-aligned, as Kris asked for
 * everywhere else on the site.
 * ========================================================================== */

body[class*="hp-template--listing-submit"] .hp-page,
body[class*="hp-template--user-"] .hp-page,
body[class*="hp-template--membership"] .hp-page {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--sw-gutter) clamp(4rem, 9vw, 7rem);
}

/* "Add Details", "Sign In" — give the title room before the first field. */
body[class*="hp-template--listing-submit"] .hp-page__title,
body[class*="hp-template--user-"] .hp-page__title,
body[class*="hp-template--membership"] .hp-page__title {
  margin: 0 0 2rem;
}

body[class*="hp-template--listing-submit"] .hp-page__header:not(:last-child),
body[class*="hp-template--user-"] .hp-page__header:not(:last-child),
body[class*="hp-template--membership"] .hp-page__header:not(:last-child) {
  margin-bottom: 2rem;
}

/*
 * Sign In and Register sit in a centred third of the row (hp-col-sm-offset-4)
 * which, inside a block already narrowed to 42rem, leaves a column too thin
 * to type in. Let them use the whole block instead.
 */
body[class*="hp-template--user-"] .hp-page__content[class*="hp-col-sm-offset"] {
  margin-left: 0;
  flex-basis: 100%;
  max-width: 100%;
}

/* ==========================================================================
 * 33. The Directory mega menu
 *
 * Kris, 18 October: "stay with the WordPress menu, no need for the Divi Mega
 * Pro licence. Please style it to match the design through the child theme."
 *
 * It is Divi's own mega menu — li.mega-menu with a four-column sub-menu, the
 * columns floated at 25%. Left alone it arrives in Divi's factory clothes:
 * a 2.7px #2ea3f2 top border, Proxima Nova, and column headings that look
 * like links because they are links.
 *
 * Divi's menu rules are specific, so these selectors are led by the Theme
 * Builder header to clear them without resorting to !important.
 *
 * The three columns carry headings that are also links to nothing — "By
 * type", "By place", "Worth knowing" are custom items with no destination.
 * They are styled as the labels they are, and the pointer is removed so
 * nobody clicks hoping for a page.
 * ========================================================================== */

.et-l--header .et-menu li.mega-menu > ul.sub-menu {
  border-top: 1px solid var(--sw-rule);
  border-bottom: 1px solid var(--sw-rule);
  background: var(--sw-paper);
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 18px 40px -28px rgba(25, 24, 23, 0.28);
}

/* The four columns. */
.et-l--header .et-menu li.mega-menu > ul.sub-menu > li {
  padding: 0 1.6rem;
  border-left: 1px solid var(--sw-rule-soft);
}

.et-l--header .et-menu li.mega-menu > ul.sub-menu > li:first-child {
  border-left: 0;
  padding-left: 0;
}

/*
 * Column headings. Divi renders them as menu links; they are labels.
 */
.et-l--header .et-menu li.mega-menu > ul.sub-menu > li > a {
  font-family: var(--sw-util);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sw-ink);
  padding: 0 0 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--sw-rule-soft);
  display: block;
}

/* A heading that goes nowhere should not pretend otherwise. */
.et-l--header .et-menu li.mega-menu > ul.sub-menu > li.menu-item-has-children > a {
  cursor: default;
  pointer-events: none;
}

/* The links themselves. */
.et-l--header .et-menu li.mega-menu > ul.sub-menu > li > ul.sub-menu > li > a {
  font-family: var(--sw-body);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sw-stone);
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

.et-l--header .et-menu li.mega-menu > ul.sub-menu > li > ul.sub-menu > li > a:hover {
  color: var(--sw-ink);
}

/*
 * "Events" is a column of one, with no children. Without this it sits at the
 * top of an empty quarter of the menu looking like a heading someone forgot
 * to fill in, so it is given the body treatment the other links have.
 */
.et-l--header .et-menu li.mega-menu > ul.sub-menu > li:not(.menu-item-has-children) > a {
  font-family: var(--sw-body);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sw-stone);
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0.3rem;
}

.et-l--header .et-menu li.mega-menu > ul.sub-menu > li:not(.menu-item-has-children) > a:hover {
  color: var(--sw-ink);
}

@media only screen and (max-width: 980px) {
  /* Divi stacks the mobile menu itself; only the desktop rules above need
   * standing down, or the column rules fight the stacked list. */
  .et-l--header .et-menu li.mega-menu > ul.sub-menu > li {
    border-left: 0;
    padding: 0;
  }
}


/* ==========================================================================
   15. MAGAZINE: WELLNESS Digital (the issues moved across from Readymag)

   Add to the end of spa-wellness-child/style.css, after section 14.
   Everything here is scoped to classes that only the magazine templates use,
   so nothing on Articles, the Directory or the Shop moves.

   What makes a magazine piece look different from an Article:
     - the opening: full-bleed photograph with a white panel laid over it
       (the print edition's core layout move)
     - the WE—LLNESS lockup, with a three-line phrase tucked in the middle,
       coloured by the piece's section key
     - section-key colour, used sparingly: lockup, quote mark, rules, the
       Details panel and links
     - subheads set as tracked capitals, as in print
     - asterisk lists, key-coloured Details and treatment notes, and an
       "In this issue" footer

   Same fonts, same reading grid, same body markup as Articles. A converted
   Readymag article pastes in exactly as an Article does; the Feature template
   adds .sw-feature to the wrapper and the look changes.

   One font change needed in functions.php: add Jost 600 to the Google Fonts
   request (Jost:wght@300;400;500;600). It is used for the lockup only.
   ========================================================================== */

/* ---- Section keys --------------------------------------------------------
   Lifted from the print section openers. --sw-key is the print colour, for
   large or decorative use. --sw-key-ink is a deeper shade of the same hue
   for small text, so it passes contrast (all four above 5:1 on white).
   Set the key with one class on the wrapper: .sw-key-mist (default),
   .sw-key-clay, .sw-key-sage or .sw-key-gold.
   ------------------------------------------------------------------------ */
.sw-feature,
.sw-issue,
.sw-mag {
  --sw-key: #9fbac6;
  --sw-key-ink: #4a6b79;
  --sw-key-wash: #f1f5f7;
}
.sw-key-mist { --sw-key: #9fbac6; --sw-key-ink: #4a6b79; --sw-key-wash: #f1f5f7; }
.sw-key-clay { --sw-key: #bc9f96; --sw-key-ink: #8b6458; --sw-key-wash: #f7f2f0; }
.sw-key-sage { --sw-key: #7e9b81; --sw-key-ink: #4a6a4f; --sw-key-wash: #f0f4f0; }
.sw-key-gold { --sw-key: #a98a5b; --sw-key-ink: #7a6036; --sw-key-wash: #f7f3ec; }

/* ---- Shared magazine type ------------------------------------------------ */
.sw-issue-line {
  font-family: var(--sw-util);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sw-key-ink);
  margin: 0;
}
.sw-issue-line a {
  color: inherit;
  text-decoration: none;
}

/* The WE—LLNESS lockup. The tucked phrase finishes a sentence that starts
   with "WE": "WE are the voice of spa and wellness", "WE are striving for
   longevity". Always write it to follow on from "We". Three short lines.
   It is a brand mark: give it aria-hidden="true" and keep the real headline
   in the h1. */
.sw-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  font-family: var(--sw-util);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--sw-key);
  margin: 0;
}
.sw-lockup .sw-tuck {
  font-family: var(--sw-body);
  font-weight: 400;
  font-size: max(0.25em, 0.8rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
  color: var(--sw-key-ink);
  max-width: 8em;
}

.sw-key-rule {
  width: 6rem;
  height: 1px;
  border: 0;
  background: var(--sw-key);
  margin: 1.6rem auto;
}

/* ==========================================================================
   FEATURE ARTICLE (one magazine piece)
   Theme Builder: a second post template, assigned to posts in an Issue.
   Wrapper section gets: class="sw-feature sw-key-mist"
   ========================================================================== */

/* Opening: full-bleed photograph, white panel over its lower edge.
   The photograph is the post's Featured Image, as for Articles. */
.sw-feature-opening {
  position: relative;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.sw-feature-opening .sw-hero {
  height: min(88vh, 50rem);
  background: var(--sw-rule-soft);
  overflow: hidden;
}
.sw-feature-opening .sw-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-panel {
  position: relative;
  max-width: 46rem;
  margin: clamp(-12rem, -14vw, -4rem) auto 0;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.4rem, 5vw, 4rem);
  background: var(--sw-paper);
  text-align: center;
}
@media (max-width: 40rem) {
  .sw-feature-opening .sw-hero {
    height: auto;
    aspect-ratio: 4/5;
  }
  .sw-panel {
    margin: -3rem var(--sw-gutter) 0;
  }
}
.sw-panel .sw-issue-line {
  margin-bottom: 1.5rem;
}
.sw-panel h1 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 96;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 auto;
  max-width: 18ch;
}
.sw-panel .sw-standfirst {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 0.4vw + 0.96rem, 1.18rem);
}
.sw-panel .sw-byline {
  font-family: var(--sw-util);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-stone);
  margin: 1.6rem 0 0;
}
.sw-panel .sw-byline b {
  font-weight: 500;
  color: var(--sw-ink);
}
.sw-feature-opening .sw-hero-credit {
  max-width: 46rem;
  margin: 0.8rem auto 0;
  padding-inline: var(--sw-gutter);
  font-family: var(--sw-util);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--sw-quiet);
  text-align: center;
}

/* Body: same grid as Articles, a touch larger and airier. */
.sw-feature .sw-article {
  font-size: 1.04em;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}
.sw-feature .sw-article p a,
.sw-feature .sw-article li a {
  color: var(--sw-key-ink);
  border-bottom-color: var(--sw-key);
}

/* Subheads as tracked capitals, as in print. Still real h2s for search. */
.sw-feature .sw-article h2 {
  font-family: var(--sw-util);
  font-variation-settings: normal;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--sw-ink);
  max-width: none;
  margin: 3.4rem 0 1.1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sw-key);
  width: 100%;
}
.sw-feature .sw-article h3 {
  font-family: var(--sw-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 2.4rem 0 0.8rem;
}

/* Pull quote: centred, with an opening mark in the section key. */
.sw-feature .sw-quote {
  text-align: center;
}
.sw-feature .sw-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--sw-display);
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--sw-key);
  margin-bottom: 1.2rem;
}
.sw-feature .sw-quote p {
  margin-inline: auto;
  text-wrap: balance;
}

/* Asterisk list: the boxed lists in print use * rather than bullets.
   <ul class="sw-star"> */
.sw-star {
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 0;
}
.sw-star li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}
.sw-star li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1.15em;
  color: var(--sw-key-ink);
}

/* The Details panel takes a wash of the section key in Features. */
.sw-feature .sw-details {
  background: var(--sw-key-wash);
  border-top: 2px solid var(--sw-key);
  padding: 2rem clamp(1.2rem, 4vw, 2rem) 1rem;
}
.sw-feature .sw-details .sw-label {
  color: var(--sw-key-ink);
}
.sw-feature .sw-details .sw-row {
  border-bottom-color: rgba(25, 24, 23, 0.08);
}

/* Treatment note (.sw-note, already in the theme) takes the section key:
   a key-coloured top rule and label, so the same markup reads as magazine. */
.sw-feature .sw-note {
  border-top: 2px solid var(--sw-key);
}
.sw-feature .sw-note .sw-label {
  color: var(--sw-key-ink);
}

/* "In this issue" footer: back to contents, next piece in running order. */
.sw-issue-foot {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.4rem;
  align-items: start;
  margin: clamp(3rem, 7vw, 4.5rem) 0 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--sw-key);
  border-bottom: 1px solid var(--sw-rule);
}
.sw-issue-foot .sw-cover {
  aspect-ratio: 3/4;
}
.sw-issue-foot h3 {
  font-family: var(--sw-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0.4rem 0 0.8rem;
}
.sw-issue-foot .sw-next {
  font-family: var(--sw-util);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-stone);
}
.sw-issue-foot .sw-next a {
  color: var(--sw-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sw-key);
}

/* ==========================================================================
   VIDEO: Articles and Features both.
   <figure class="sw-video"><iframe src="https://www.youtube-nocookie.com/embed/ID"
     title="Describe the video" loading="lazy" allowfullscreen></iframe>
     <figcaption>Caption</figcaption></figure>
   Add sw-wide or sw-full to break out of the reading column.
   ========================================================================== */
.sw-video {
  margin: clamp(2.5rem, 6vw, 4rem) 0;
}
.sw-video iframe,
.sw-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  background: var(--sw-night);
}

/* ==========================================================================
   COVERS: shared by the issue page, the Magazine page and the issue foot.
   ========================================================================== */
.sw-cover {
  display: block;
  aspect-ratio: 3/4;
  background: var(--sw-rule-soft);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(25, 24, 23, 0.08), 0 8px 24px rgba(25, 24, 23, 0.08);
}
.sw-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   ISSUE PAGE: /magazine/issue-09/
   Wrapper: class="sw-issue sw-key-mist"
   ========================================================================== */
.sw-issue-head {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--sw-gutter) clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 52rem) {
  .sw-issue-head {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  }
  /* An issue with no cover yet has one column, not an empty first one. */
  .sw-issue-head--nocover {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sw-issue-head--nocover > div {
  max-width: 46rem;
}
.sw-issue-head .sw-lockup {
  margin-top: 1rem;
}
.sw-issue-head h1 {
  font-family: var(--sw-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.06;
  margin: 1rem 0 0;
}
.sw-issue-head .sw-coverlines {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--sw-key);
  font-family: var(--sw-display);
  font-size: 1.1rem;
  line-height: 1.45;
}
.sw-issue-head .sw-coverlines li {
  margin-bottom: 0.5rem;
}

/* Editor's letter */
.sw-letter {
  margin-top: 2.2rem;
}
.sw-letter p {
  margin: 0 0 1.2em;
}
.sw-letter-sign {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.4rem;
  font-family: var(--sw-util);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-stone);
}
.sw-letter-sign .sw-portrait {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sw-rule-soft);
  flex: 0 0 auto;
}
.sw-letter-sign .sw-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw-letter-sign b {
  display: block;
  font-weight: 500;
  color: var(--sw-ink);
}

/* Contents: every piece in running order, as the digital issue sets it:
   a photograph with a large Bodoni numeral over its top edge, a tracked
   kicker, the title and a short standfirst. */
.sw-contents {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--sw-gutter) clamp(3.5rem, 8vw, 6rem);
}
.sw-contents-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sw-key);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.sw-contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(2.4rem, 5vw, 3.4rem) clamp(1.4rem, 3vw, 2.4rem);
}
.sw-contents li a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.sw-contents .sw-no {
  display: block;
  position: relative;
  z-index: 1;
  text-align: right;
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--sw-ink);
  margin-bottom: -0.42em;
  padding-right: 0.4rem;
}
.sw-contents .sw-shot {
  display: block;
  aspect-ratio: 4/3;
}
.sw-contents .sw-shot img {
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.sw-contents li a:hover .sw-shot img {
  transform: scale(1.03);
}
.sw-contents .sw-issue-line {
  margin: 1.1rem 0 0.3rem;
}
.sw-contents h3 {
  font-family: var(--sw-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.18;
  margin: 0 0 0.5rem;
  transition: color 0.2s ease;
}
.sw-contents li a:hover h3 {
  color: var(--sw-key-ink);
}
.sw-contents p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--sw-stone);
}

/*
 * "Read the full article" under each teaser.
 *
 * The whole teaser is already one link, so this is a span rather than a
 * second anchor inside the first — which is invalid markup, and gives a
 * keyboard user two stops for one destination. It is styled as the prompt
 * it is, and the underline follows the section colour like every other
 * magazine link.
 */
.sw-contents .sw-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--sw-util);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-ink);
  border-bottom: 1px solid var(--sw-key);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.sw-contents li a:hover .sw-more {
  color: var(--sw-key-ink);
}

/* The issue introduction sits under the cover lines, not beside them. */
.sw-issue-head .sw-letter .sw-label {
  display: block;
  margin-bottom: 0.9rem;
}

/* Phones: two across, so a 14-story issue isn't 14 screens long */
@media (max-width: 34rem) {
  .sw-contents ol {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0.9rem;
  }
  .sw-contents .sw-no {
    font-size: 2.2rem;
  }
  .sw-contents h3 {
    font-size: 1.08rem;
  }
  .sw-contents p {
    font-size: 0.84rem;
    line-height: 1.5;
  }
}

/* Row of issue covers: "Other issues" and "Past issues" */
.sw-issues-row {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--sw-gutter) clamp(2.5rem, 6vw, 4rem);
}
.sw-issues-row::before {
  content: "";
  display: block;
  border-top: 1px solid var(--sw-rule);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.sw-issues-row ul {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.sw-issues-row a {
  text-decoration: none;
  color: inherit;
}
.sw-issues-row .sw-issue-line {
  margin-top: 0.8rem;
  color: var(--sw-stone);
}

/* ==========================================================================
   MAGAZINE PAGE: /magazine/
   Three things only: the latest issue, past issues, and a separate band for
   WELLNESS in print. Wrapper: class="sw-mag sw-key-mist"
   ========================================================================== */
.sw-mag-latest {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--sw-gutter);
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .sw-mag-latest {
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  }
  /* Until an issue has a cover uploaded, there is no first column to fill. */
  .sw-mag-latest--nocover {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sw-mag-latest--nocover > div {
  max-width: 46rem;
}
.sw-mag-latest h1 {
  font-family: var(--sw-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.04;
  margin: 1rem 0 0;
}
.sw-mag-latest .sw-coverlines {
  list-style: none;
  margin: 1.8rem 0 2.2rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--sw-key);
  font-family: var(--sw-display);
  font-size: 1.15rem;
  line-height: 1.45;
}
.sw-mag-latest .sw-coverlines li {
  margin-bottom: 0.55rem;
}

/* WELLNESS in print: deliberately a different surface from the digital
   issues above it, so nobody mistakes one for the other. */
.sw-print-band {
  background: var(--sw-night);
  color: #f3f2ef;
}
.sw-print-band-in {
  max-width: 74rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--sw-gutter);
  display: grid;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 46rem) {
  .sw-print-band-in {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  }
  /* The band used to carry a blank rectangle where a print cover would go.
     There is no field to put one in, so it only ever rendered as a picture
     that had failed to load. Text band until there is something to show. */
  .sw-print-band-in--plain {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sw-print-band-in--plain > div {
  max-width: 46rem;
}
.sw-print-band h2 {
  font-family: var(--sw-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.12;
  color: #fff;
  margin: 0.8rem 0 0.9rem;
}
.sw-print-band p {
  color: var(--sw-night-soft);
  max-width: 34rem;
  margin: 0;
}
.sw-print-band .sw-issue-line {
  color: var(--sw-night-soft);
}

/* Buttons for the magazine pages, matching the site's tracked-caps style */
.sw-mag-btn {
  display: inline-block;
  font-family: var(--sw-util);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  background: var(--sw-ink);
  color: #fff;
  transition: background 0.2s ease;
}
/* The fallbacks are deliberate. A button whose hover background comes from a
   variable that is not in scope does not keep its old background — the whole
   declaration is dropped and it goes transparent, which on this page meant
   white type vanishing against white. The wrapper is set in issues.php now,
   but the button is reusable and should never be able to disappear. */
.sw-mag-btn:hover {
  background: var(--sw-key-ink, #4a6b79);
}
.sw-mag-btn.is-ghost {
  background: transparent;
  color: var(--sw-ink);
  box-shadow: inset 0 0 0 1px var(--sw-ink);
}
.sw-print-band .sw-mag-btn {
  background: #fff;
  color: var(--sw-ink);
  margin-top: 1.6rem;
}
.sw-print-band .sw-mag-btn:hover {
  background: var(--sw-key, #9fbac6);
}

/* ==========================================================================
   ROUNDUPS: news, gift guides, essentials, beauty news
   One article per issue for each ("In the news", "The Gift of Presence"),
   built in the Feature template from two pieces:
   ========================================================================== */

/* A news brief. One per news item:
   <section class="sw-brief">
     <figure class="sw-shot"><img ...></figure>
     <div><p class="sw-issue-line">Kicker</p><h2>Headline</h2><p>Text</p>
       <p class="sw-brief-link"><a href="/listing/...">In the directory</a></p></div>
   </section> */
.sw-feature .sw-article > .sw-brief {
  grid-column: wide;
}
.sw-brief {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: clamp(2rem, 5vw, 2.8rem) 0;
  border-top: 1px solid var(--sw-rule);
}
.sw-brief:first-of-type {
  border-top-color: var(--sw-key);
}
@media (min-width: 46rem) {
  .sw-brief {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: clamp(1.6rem, 4vw, 2.8rem);
    align-items: start;
  }
}
.sw-brief .sw-shot {
  aspect-ratio: 4/3;
  margin: 0;
}
.sw-feature .sw-article .sw-brief h2 {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 48;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.006em;
  text-transform: none;
  line-height: 1.2;
  border: 0;
  padding: 0;
  margin: 0.5rem 0 0.8rem;
  max-width: 28ch;
}
.sw-brief p {
  margin: 0 0 0.9em;
}
.sw-brief-link a {
  font-family: var(--sw-util);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sw-ink);
  border-bottom: 1px solid var(--sw-key);
  padding-bottom: 2px;
}

/* A product grid, for gift guides and essentials:
   <ul class="sw-picks sw-wide">
     <li class="sw-pick"><figure class="sw-shot"><img ...></figure>
       <p class="sw-issue-line">Brand</p><h3>Product</h3>
       <p class="sw-price">$199</p>
       <a class="sw-pick-link" href="..." rel="sponsored nofollow">Shop</a></li>
   </ul>
   Affiliate links always carry rel="sponsored nofollow", and the article
   ends with a .sw-disclosure line. */
.sw-feature .sw-article > .sw-picks {
  grid-column: wide;
}
.sw-picks {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 2.6rem) clamp(1rem, 2.5vw, 1.8rem);
}
@media (max-width: 46rem) {
  .sw-picks {
    grid-template-columns: 1fr 1fr;
  }
}
.sw-pick .sw-shot {
  aspect-ratio: 1/1;
  margin: 0 0 1rem;
  background: var(--sw-key-wash);
}
.sw-pick .sw-shot img {
  object-fit: contain;
  padding: 8%;
}
.sw-pick .sw-issue-line {
  margin: 0 0 0.3rem;
}
.sw-feature .sw-article .sw-pick h3 {
  font-family: var(--sw-display);
  font-size: 1.08rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}
.sw-price {
  font-family: var(--sw-util);
  font-size: 0.8rem;
  color: var(--sw-stone);
  margin: 0 0 0.7rem !important;
}
.sw-pick-link {
  font-family: var(--sw-util);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sw-ink);
  border-bottom: 1px solid var(--sw-key);
  padding-bottom: 2px;
}


/* ==========================================================================
   16. DIRECTORY CARDS — hierarchy and the click target

   Kris, 24 November: "The address on each card is bigger than the venue name,
   so it's the obvious thing to click, and it goes to Google Maps rather than
   the listing."

   She was right on both counts. Measured on staging the venue name was
   17.92px and the address 18px, so the address won on size as well as on
   colour, and the address was the only part of the card linked anywhere other
   than the listing — straight out to Google Maps in a new tab.

   The link itself is removed in hivepress/listing/view/listing-location.php,
   which keeps it on the listing's own page and nowhere else. What follows is
   the hierarchy, and making the whole card a single target.
   ========================================================================== */

.hp-listing--view-block .hp-listing__title,
.hp-listing--view-block .hp-listing__title a {
  font-size: 1.22rem;
  line-height: 1.22;
}

.hp-listing--view-block .hp-listing__location {
  font-family: var(--sw-util);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--sw-quiet);
  margin-top: 0.4rem;
}
.hp-listing--view-block .hp-listing__location span {
  color: inherit;
}

/* The whole card opens the listing.

   Done by stretching the title's own link across the card rather than
   wrapping everything in a second anchor: one link, one accessible name, and
   nested interactive elements stay legal. The card needs a positioning
   context for that, and the text needs to sit above the stretched layer so it
   can still be selected. */
.hp-listing--view-block {
  position: relative;
}
/* The stretched layer positions against the nearest positioned ancestor, so
   nothing between the card and the title may carry `position` — giving
   .hp-listing__content `position: relative` silently shrank this to the text
   area and left the image unclickable. The card is the only positioned box. */
.hp-listing--view-block .hp-listing__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Anything genuinely interactive sits above the stretched layer. The address
   is plain text now, so there is nothing else to lift. */
.hp-listing--view-block .hp-listing__action,
.hp-listing--view-block .hp-listing__action a {
  position: relative;
  z-index: 2;
}

/* Keyboard users get the same outline they would on any link. */
.hp-listing--view-block:focus-within {
  outline: 2px solid var(--sw-accent);
  outline-offset: 3px;
}
.hp-listing--view-block .hp-listing__title a:focus-visible {
  outline: none;
}


/* ==========================================================================
   17. GUIDES — the DISCOVER button

   The button is an <h5> and the next venue's name an <h3>, both with no
   margin, so they met at the same pixel: the button read as part of the
   heading below it. Kris asked for "more space below the button, or a fine
   line between venues". Both, in the end — the rule does the separating and
   the space stops it feeling cramped, and together they make the structure
   of a long list obvious at a glance.

   .sw-discover is added on output by sw_tag_discover_buttons(), because only
   23 of 191 h5 elements are these buttons.
   ========================================================================== */

.sw-article .sw-discover {
  margin: 1.6rem 0 0;
}

/* The venue that follows a DISCOVER button starts a new section. */
.sw-article .sw-discover + h3,
.sw-article .sw-discover + h2 {
  margin-top: 2.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--sw-rule);
}

/* ==========================================================================
   18. CATEGORY ARCHIVES — /category/beauty/, /wellness/, /travel/ …
   --------------------------------------------------------------------------
   These pages are the old site's Theme Builder archive, and its markup is
   hand-written rather than a Divi module: `ul.blog_cat` for the section
   links, `#blog_wrapper ul.blog_lists` for the posts, `.blog_pagination_
   wrapper` underneath. The CSS that used to style all three lived in the
   previous child theme, so when that theme was replaced the page fell back
   to browser defaults — a bulleted list of sections, then every post as a
   full-width 768px image stacked one under another.

   It matters because the Articles page sends people here: the nine "Browse
   by section" tiles all point at /category/…, so the one new page leads
   straight to the one unstyled one.

   Restyled rather than rebuilt. Rebuilding means taking the archive out of
   the Theme Builder, which also owns the banner and the pagination, three
   days before go-live. The markup already carries everything a card needs —
   picture, date, title, link — so it is dressed to match .sw-card instead.
   ========================================================================== */

/* --- the section links ---------------------------------------------------- */

.blog_cat {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.7rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--sw-rule);
}
.blog_cat li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog_cat a {
  font-family: var(--sw-util);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-stone);
  text-decoration: none;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.blog_cat a:hover {
  color: var(--sw-ink);
  border-bottom-color: var(--sw-key);
}

/* --- the posts ------------------------------------------------------------ */

#blog_wrapper .blog_lists {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.2rem, 4vw, 3.2rem) clamp(1.6rem, 3vw, 2.75rem);
}
/* Same step-down as the card grids elsewhere: three, then two, then one. */
@media (max-width: 56rem) {
  #blog_wrapper .blog_lists {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.1rem;
  }
}
@media (max-width: 34rem) {
  #blog_wrapper .blog_lists {
    grid-template-columns: 1fr;
  }
}
#blog_wrapper .blog_item {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The date sits inside .blog_feature_image in the markup, so the aspect box
   goes on the anchor rather than on the wrapper — otherwise the date is
   clipped by the overflow that crops the picture. */
.blog_item .blog_feature_image {
  position: relative;
  margin-bottom: 0.95rem;
}
.blog_item .blog_feature_image > a {
  display: block;
  aspect-ratio: 3/2;
  background: var(--sw-rule-soft);
  overflow: hidden;
}
.blog_item .blog_feature_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.blog_item:hover .blog_feature_image img {
  transform: scale(1.03);
}
.blog_item .blog_date p {
  font-family: var(--sw-util);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sw-stone);
  margin: 0.9rem 0 0;
  padding-bottom: 0;
}
.blog_item .blog_content h3 {
  margin: 0.35rem 0 0;
  padding: 0;
}
.blog_item .blog_content h3 a {
  font-family: var(--sw-display);
  font-variation-settings: "opsz" 32;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.004em;
  color: var(--sw-ink);
  text-decoration: none;
  display: block;
  max-width: 24ch;
  transition: color 0.25s ease;
}
.blog_item .blog_content h3 a:hover {
  color: var(--sw-accent);
}

/* The picture and the title are both links already, so a third one below
   each card is three clicks for one destination and a button in a design
   that does not use them. */
.blog_item .et_pb_button_module_wrapper {
  display: none;
}

/* --- pagination ----------------------------------------------------------- */
/* Twenty pages on the larger sections, so this is not decoration. */

.blog_pagination_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: baseline;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--sw-rule);
}
.blog_pagination_wrapper .page-numbers {
  font-family: var(--sw-util);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sw-quiet);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: none;
}
.blog_pagination_wrapper a.page-numbers:hover {
  color: var(--sw-ink);
  border-bottom-color: var(--sw-rule);
}
.blog_pagination_wrapper .page-numbers.current {
  color: var(--sw-ink);
  border-bottom-color: var(--sw-ink);
}

/*
   The old pagination design is still in the theme, in
   listing/assets/style.css: a navy filled circle behind the current page
   (drawn with a ::before), white type over it with !important, and the
   previous/next links positioned absolutely at the two edges. That was
   built for a centred bar, and inside the flex row above it put "Next »"
   somewhere of its own choosing.

   Undone here rather than edited there, because that file is the legacy
   listing module and is still serving the old directory until cutover.
   The !important is matched, not chosen.
*/
/* The legacy selector carries two :not()s, so an ordinary override loses on
   specificity; !important is matched here too rather than out-specified with
   a longer chain. And the circle is only removed, never un-positioned: its
   ::before is `position:absolute; inset:0`, so taking `position:relative` off
   the link sends it to the nearest positioned ancestor instead and it draws
   itself across the whole section. */
.blog_pagination_wrapper a.page-numbers::before,
.blog_pagination_wrapper span.page-numbers::before,
.blog_pagination_wrapper a.page-numbers:hover::before {
  content: none !important;
}
/* display:block with a 27px line-height left the current page's underline
   floating nine pixels clear of the digit. inline-block on a line-height of
   1 puts the rule back under the number it marks. */
.blog_pagination_wrapper a.page-numbers,
.blog_pagination_wrapper span.page-numbers {
  position: relative;
  inset: auto;
  transform: none;
  display: inline-block;
  line-height: 1;
  margin: 0;
  padding: 0 0 0.3rem;
}
.blog_pagination_wrapper a.page-numbers,
.blog_pagination_wrapper a.prev.page-numbers,
.blog_pagination_wrapper a.next.page-numbers {
  color: var(--sw-quiet) !important;
}
.blog_pagination_wrapper a.page-numbers:hover,
.blog_pagination_wrapper span.page-numbers.current {
  color: var(--sw-ink) !important;
}
