/* ═══════════════════════════════════════════════════════════════════════════
   GAYMALES — Swiss International Style  v1.0.26
   Palette · Typography · Layout · Components
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&display=swap');

/* ── 1. Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Palette */
  --ivory:        #F4EFE3;
  --ivory-dark:   #EDE8D8;
  --black:        #111111;
  --white:        #FFFFFF;
  --grey-light:   #D8D4C8;
  --grey-mid:     #8A8880;

  /* Category colours */
  --col-orange:   #D94E25;
  --col-blue:     #1A4BA8;
  --col-pink:     #C4909A;
  --col-teal:     #2A7858;
  --col-purple:   #6A4B8A;
  --col-gold:     #C8A020;
  --col-green:    #2A6040;
  --col-navy:     #1A3060;
  --col-coral:    #C85A3A;

  /* Typography */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-oswald: 'Oswald', var(--font);   /* semi-bold condensed — logo + hero headline */

  /* Spacing */
  --gutter: 2.5rem;

  /* Layout */
  --max-width: 1440px;
  --header-h:  12vh;
  --hero-h:    clamp(320px, 42vh, 520px);  /* fixed band — won't balloon on tall viewports */
  --icons-h:   25vh;

  /* Transitions */
  --ease: 0.18s ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 500;             /* slightly heavier than default 400 */
  background-color: var(--ivory);
  color: var(--black);
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.78; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ── 3. Utility ──────────────────────────────────────────────────────────── */
.gm-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gm-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

.gm-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ── 4. HEADER ───────────────────────────────────────────────────────────── */
.gm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--ivory);
  display: flex;
  align-items: flex-start;   /* logo anchored to top so padding-top controls gap */
  transition: box-shadow var(--ease);
}

.gm-header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding-top: clamp(0.9rem, 2.5vh, 1.8rem);  /* 3× more space above GAY MALES */
  padding-left: 1.8rem;   /* 1.5× the previous 1.2rem */
  padding-right: 1.5rem;
}

/* Logo — flex column guarantees identical left edge for all three lines */
.gm-logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* GAY, Montréal, Community all start at the same x */
  text-decoration: none;
  color: var(--black);
}
.gm-logo__name {
  font-family: var(--font-oswald);
  font-size: clamp(2.645rem, 4.97vw, 4.3rem);  /* +15%: 2.3×1.15, 4.32×1.15, 3.74×1.15 */
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.gm-logo__city {
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--black);
  margin-top: 0.37rem;  /* +0.27rem (= 10% of 2.7rem) — equal and opposite to page-top reduction */
  margin-left: 0.9rem;  /* ½ of header padding-left (1.8rem) — visual indent below G */
}
.gm-logo__tagline {
  font-family: var(--font-oswald);  /* same font as GAY MALES */
  font-size: 0.7rem;
  font-weight: 600;                 /* same weight as GAY MALES */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 0.15rem;
  margin-left: 0.9rem;  /* same indent as Montréal */
}

/* Primary nav — flex row: [social icons] [nav ul] [login btn] */
.gm-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;   /* space between social group, nav ul, and login btn */
}
.gm-nav ul { display: flex; align-items: center; }
.gm-nav ul li { display: flex; align-items: center; }
.gm-nav ul li:not(:last-child)::after {
  content: "|";
  color: var(--grey-mid);
  margin-inline: 1.1rem;
  font-weight: 300;
}
.gm-nav a {
  font-family: var(--font-oswald);   /* same family as title + central text */
  font-size: 0.94rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  white-space: nowrap;
  transition: color var(--ease);
}
.gm-nav a:hover,
.gm-nav a.current-menu-item { color: var(--col-orange); opacity: 1; }

/* Mobile hamburger */
.gm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
}
.gm-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
}

/* Social media icons — sit to the left of the first nav link */
.gm-social-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.gm-social-icons a {
  display: flex;
  align-items: center;
  /* reset the Oswald nav-link overrides that would apply via .gm-nav a */
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--black);
  opacity: 0.75;
  transition: opacity var(--ease);
}
.gm-social-icons a:hover { opacity: 1; }
.gm-social-icons svg { width: 15px; height: 15px; display: block; }

/* Login button — sits to the right of the last nav link (Plus) */
.gm-login-btn {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* reset Oswald overrides */
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--black);
  opacity: 0.8;
  transition: opacity var(--ease);
}
.gm-login-btn:hover { opacity: 1; }
.gm-login-btn svg { width: 18px; height: 18px; display: block; }

/* ── 5. PAGE-TOP WRAPPER (hero + search bar share a grid) ────────────────── */
/* Col 1 (1fr ≈ 46%):  text row 1 + search bar overlay row 2
   Col 2 (50%):         B&W photo — spans rows 1+2, overlaps form (form ends at 66%)
   Col 3 (3.75rem):     empty right margin = same width as left indent of red bar    */
.gm-page-top {
  display: grid;
  grid-template-columns: 1fr 50% 3.75rem;
  grid-template-rows: auto auto;   /* rows size to content — search bar rises to PROGRESSEZ */
  position: relative;
  margin-top: 2.43rem;  /* −10% again: 2.7 × 0.9 → less gap between Community bottom and red bar top */
}

/* ── 5. HOMEPAGE HERO ────────────────────────────────────────────────────── */
.gm-hero-home {
  display: contents;   /* transparent to .gm-page-top grid — no layout of its own */
}

.gm-hero-home__text {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* top    = same clamp as photo img top → VOTRE aligns with photo top
     right  = unchanged
     bottom = gap so PROGRESSEZ never slides under the search bar
     left   = 3.75rem indent (+25% of 3rem) + bar (4px) + gap (0.9rem)   */
  padding: clamp(0.875rem, 2.45vh, 1.575rem) 1.5rem 1rem calc(3.75rem + 4px + 0.9rem);
  /* bottom 1rem = gap PROGRESSEZ→search-bar = gap search-bar-bottom→icons-top */
  /* no border-right — the old line created a ghost above the photo */
  background-color: var(--ivory);
  overflow: hidden;
}
/* Red accent bar is now on the HEADLINE so top/bottom match VOTRE → PROGRESSEZ */
.gm-hero-home__text::before { display: none; }

.gm-hero-home__headline {
  position: relative;   /* needed for ::before red bar */
  font-family: var(--font-oswald);
  font-size: clamp(2.3rem, 4.32vw, 3.74rem);  /* same as GAY MALES logo */
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
}
/* Red bar spans exactly the headline bounding box — top = VOTRE, bottom = PROGRESSEZ */
.gm-hero-home__headline::before {
  content: '';
  position: absolute;
  left: calc(-0.9rem - 4px);   /* gap (0.9rem) + bar-width (4px) to the left of headline */
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--col-orange);
}

.gm-hero-home__photo {
  grid-column: 2;
  grid-row: 1 / 3;    /* spans hero row + search bar row */
  z-index: 0;          /* UNDER the search bar (z-index: 1) */
  position: relative;
  overflow: hidden;
  background-color: var(--ivory); /* NO filter here — ivory is outside the filter scope so
                                     transparent PNG areas composite against it, not against
                                     the white buffer that browsers create for CSS filters */
}
/* Inner wrapper is the filter scope — its parent (above) already provides ivory,
   so transparent PNG areas show ivory once this layer composites upward.          */
.gm-hero-home__photo-grayscale {
  position: absolute;
  inset: 0;
  filter: grayscale(100%);
  background: transparent; /* transparent → transparent PNG areas fall through to parent ivory */
}
/* Image starts at the same offset as VOTRE text — same clamp value as text padding-top */
.gm-hero-home__photo img {
  position: absolute;
  top: calc(clamp(0.79rem, 2.2vh, 1.42rem) - 10%); /* −10% of container height → photo 10% taller, bottom stays fixed */
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
}
.gm-hero-home__photo:hover img { transform: scale(1.02); }

/* ── 6. SEARCH BAR ───────────────────────────────────────────────────────── */
.gm-search-bar {
  grid-column: 1 / -1;  /* spans all 3 cols (full page width) — form % stays relative to page */
  grid-row: 2;
  position: relative;
  z-index: 1;           /* above the photo */
  background: transparent; /* photo shows through on the right 45% */
  padding: 1.05rem 0 0;    /* no bottom padding → photo bottom flush with form bottom */
}
.gm-search-bar form {
  display: flex;
  align-items: center;
  border: 3.6px solid var(--black);  /* +5%: 3.4 × 1.05 ≈ 3.6 */
  background: var(--ivory);
  margin-left: 3.75rem;           /* aligns with red bar indent */
  width: calc(59.4% - 3.75rem);  /* 66% × 0.9 = 59.4% → −10% narrower */
}
/* Kill any browser or WordPress outline on focus — prevents full-width ghost borders */
.gm-search-bar *:focus,
.gm-search-bar form:focus-within,
.gm-search-bar:focus-within {
  outline: none !important;
  box-shadow: none !important;
}
.gm-search-bar input[type="search"]:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}
.gm-search-bar input[type="search"] {
  flex: 1;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
  background: transparent;
  border: none;
  padding: 1.1rem 1rem;   /* 50% taller: 0.75rem × 1.5 */
  outline: none;
  min-width: 0;
}
.gm-search-bar input[type="search"]::placeholder { color: var(--grey-mid); }
.gm-search-bar button[type="submit"] {
  background: var(--white);            /* inverted: white background */
  border: none;
  border-left: 3px solid var(--black); /* subtle separator */
  padding: 1.1rem 1rem;   /* match input height */
  display: flex;
  align-items: center;
  color: var(--black);
  flex-shrink: 0;
}
.gm-search-bar button svg {
  width: 17px;
  height: 17px;
  stroke: var(--black);   /* inverted: black loupe */
  fill: none;
  stroke-width: 4;        /* 2× thicker stroke */
}

/* ── 7. CATEGORY ICONS SECTION ───────────────────────────────────────────── */
.gm-icons-section {
  /* no fixed min-height — section sizes to content, gaps don't balloon on resize */
}
.gm-icons-section__inner {
  display: grid;
  /* max-content tracks = column = icon + 2×1rem margin → icons pack tightly, no dead air between them
     padding-left: 2.75rem → icon left edge = 2.75 + 1(auto margin) = 3.75rem = search bar left
     padding-right: 3.75rem → last sidebar right edge = calc(100% − 3.75rem) = photo right edge (flush)
     3 equal sidebar columns fill the remaining space after the 9 icon columns                    */
  grid-template-columns: repeat(9, minmax(80px, max-content)) repeat(3, minmax(120px, 1fr));
  padding-left: 2.75rem;
  padding-right: 3.75rem;
}

/* ── Category column (new: square only + label outside) ─────────────────── */
.gm-cat-col {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--black);
  /* no vertical separator lines between icon columns */
  background: var(--ivory);
  transition: opacity var(--ease);
}
.gm-cat-col:hover { opacity: 0.82; }

/* Colored square — capped at 120px so icons aren't oversized at wide viewports */
.gm-cat-square {
  width: calc(100% - 2rem);  /* 1rem on each side → equal spacing */
  max-width: 120px;           /* −30% cap at large viewports */
  min-width: 48px;            /* floor so they stay readable at narrow widths */
  margin: 1rem auto 0.25rem; /* auto left/right centres within column */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;   /* makes currentColor icons white */
}

/* Colour variants */
.gm-cat-square--orange { background-color: var(--col-orange); }
.gm-cat-square--blue   { background-color: var(--col-blue);   }
.gm-cat-square--pink   { background-color: var(--col-pink);   }
.gm-cat-square--teal   { background-color: var(--col-teal);   }
.gm-cat-square--purple { background-color: var(--col-purple); }
.gm-cat-square--gold   { background-color: var(--col-gold);   }
.gm-cat-square--green  { background-color: var(--col-green);  }
.gm-cat-square--navy   { background-color: var(--col-navy);   }
.gm-cat-square--coral  { background-color: var(--col-coral);  }

/* Icon — large, fills 58% of the square */
.gm-cat-icon {
  width: 58%;
  height: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-cat-icon svg { width: 100%; height: 100%; }

/* Label — OUTSIDE/BELOW the colored square, on ivory */
.gm-cat-meta {
  /* mirror the square's width/margin so label left & right align exactly with icon edges */
  width: calc(100% - 2rem);
  max-width: 120px;
  min-width: 48px;
  margin: 0 auto;
  padding: 0.5rem 0 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gm-cat-name {
  font-family: var(--font-oswald);
  font-size: 0.9rem;   /* 1.12rem × 0.80 = −20% */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
}
.gm-cat-arrow { font-size: 0.95rem; flex-shrink: 0; margin-left: 0.25rem; }

/* ── Legacy .gm-cat-card kept for any old template refs ─────────────────── */
.gm-cat-card { display: flex; flex-direction: column; text-decoration: none; }
.gm-cat-card__icon { width: 44px; height: 44px; }
.gm-cat-card__icon svg { width: 100%; height: 100%; }

/* Latest Updates sidebar */
.gm-latest-updates {
  background-color: var(--ivory);
  position: relative;           /* for ::before line */
  /* no border-left — replaced by ::before so line doesn't touch photo or footer */
  padding: 1.2rem 2rem;  /* left/right = 2rem = inter-icon gap (1rem × each side) */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
/* Separator — offset 1rem from column left so gap from last icon = 1rem+1rem = 2rem = inter-icon gap */
.gm-latest-updates::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1.5px;
  background-color: var(--black);
}
.gm-latest-updates__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.gm-latest-updates__clock { width: 16px; height: 16px; flex-shrink: 0; }
.gm-latest-updates__heading {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
}
.gm-latest-updates__label {
  font-size: 0.78rem;  /* +25%: 0.62 × 1.25 */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  margin-bottom: 0.15rem;
}
.gm-latest-updates__text {
  font-size: 0.88rem;  /* +25%: 0.7 × 1.25 */
  line-height: 1.45;
  color: var(--black);
}
.gm-latest-updates__more {
  margin-top: 0.4rem;
  font-size: 0.78rem;  /* +25%: 0.62 × 1.25 */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--col-orange);
  text-decoration: underline;
}

/* ── Placeholder sidebars (Section 1, Section 2) — same form as Latest Updates ── */
.gm-section-sidebar {
  background-color: var(--ivory);
  position: relative;
  padding: 1.2rem 2rem;  /* left/right = 2rem = inter-icon gap */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
/* Separator at column left edge — separates from the preceding sidebar */
.gm-section-sidebar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1.5px;
  background-color: var(--black);
}
.gm-section-sidebar__heading {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
}
.gm-section-sidebar__body {
  font-size: 0.78rem;
  color: var(--grey-mid);
  line-height: 1.45;
}

/* ── 8. FOOTER ───────────────────────────────────────────────────────────── */
.gm-footer {
  background-color: var(--ivory);
  position: relative;   /* for ::before centred line */
  padding-block: 1.4rem 1rem;
}
/* 95%-wide top rule — centred, doesn't span edge to edge (+5%: 90×1.05≈94.5→95%) */
.gm-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 1.5px;
  background-color: var(--black);
}
.gm-footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.gm-footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.gm-footer__nav ul { display: flex; align-items: center; flex-wrap: wrap; }
.gm-footer__nav ul li { display: flex; align-items: center; }
.gm-footer__nav ul li:not(:last-child)::after {
  content: "|";
  color: var(--grey-mid);
  margin-inline: 0.9rem;
  font-weight: 300;
}
.gm-footer__nav a {
  font-size: 0.91rem;
  font-weight: 700;     /* bold — same weight family as rest of design */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  white-space: nowrap;
}
.gm-footer__copy {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--black);  /* full black, not grey */
  letter-spacing: 0.06em;
}
.gm-footer__copy strong { font-weight: 900; }

/* ── 9. CATEGORY PAGE HERO ───────────────────────────────────────────────── */
.gm-hero-cat {
  height: var(--hero-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-bottom: 1.5px solid var(--black);
}
.gm-hero-cat__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--gutter) 3rem calc(var(--gutter) + 1rem);
  background-color: var(--ivory);
  border-right: 1.5px solid var(--black);
}
.gm-hero-cat__cat-label {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gm-hero-cat__cat-label::before {
  content: "";
  display: block;
  width: 3px;
  height: 1em;
  background-color: currentColor;
  flex-shrink: 0;
}
.gm-hero-cat__headline {
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 1rem;
}
.gm-hero-cat__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--black);
  max-width: 36ch;
}
.gm-hero-cat__photo {
  position: relative;
  overflow: hidden;
  background-color: #2A2A2A;
}
.gm-hero-cat__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
}

/* ── 10. SUB-CATEGORY GRID ───────────────────────────────────────────────── */
.gm-subcat-grid { /* no border-bottom — horizontal dividers removed */ }
.gm-subcat-grid__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr) minmax(200px, 240px);
  padding-left: 0.6rem;
  min-height: 16vh;
}
.gm-subcat-grid.has-5 .gm-subcat-grid__inner {
  grid-template-columns: repeat(5, 1fr) minmax(200px, 240px);
}

/* ── 11. À LA UNE SIDEBAR ────────────────────────────────────────────────── */
.gm-a-la-une {
  background-color: var(--ivory);
  border-left: 1.5px solid var(--black);   /* separator from icon columns */
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.gm-a-la-une__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--grey-light);
}
.gm-a-la-une__heading {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.gm-une-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.7rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--grey-light);
  align-items: start;
}
.gm-une-item:last-of-type { border-bottom: none; }
.gm-une-item__thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  filter: grayscale(100%);
  background-color: var(--grey-light);
  display: block;
}
.gm-une-item__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.gm-une-item__type {
  font-size: 0.55rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.gm-une-item__title {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}
.gm-une-item__date { font-size: 0.58rem; color: var(--grey-mid); }
.gm-a-la-une__more {
  margin-top: 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--col-orange);
  text-decoration: underline;
}

/* ── 12. EDITORIAL SELECTIONS ────────────────────────────────────────────── */
.gm-editorial {
  padding-block: 2rem 2.5rem;
  border-bottom: 1.5px solid var(--black);
}
.gm-editorial__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.gm-editorial__heading {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--black);
}
.gm-editorial__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}
.gm-ed-card { display: flex; flex-direction: column; gap: 0.6rem; }
.gm-ed-card__thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(100%);
  background-color: var(--grey-light);
  display: block;
}
.gm-ed-card__meta { display: flex; flex-direction: column; gap: 0.2rem; }
.gm-ed-card__title { font-size: 0.78rem; font-weight: 700; line-height: 1.3; color: var(--black); }
.gm-ed-card__desc  { font-size: 0.66rem; color: var(--grey-mid); line-height: 1.4; }
.gm-ed-card__location { font-size: 0.6rem; color: var(--grey-mid); }
.gm-ed-card__cat-tag {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── 13. LISTINGS PAGE ───────────────────────────────────────────────────── */
.gm-listings-header {
  padding-block: 2.5rem;
  border-bottom: 1.5px solid var(--black);
}
.gm-listings-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.gm-listings-header__cat {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
}
.gm-listings-header__title {
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.gm-listings {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
}
.gm-listing-grid { display: flex; flex-direction: column; }
.gm-listing-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--grey-light);
  text-decoration: none;
  color: var(--black);
  transition: background-color var(--ease);
}
.gm-listing-item:hover { background-color: var(--ivory-dark); opacity: 1; }
.gm-listing-item__thumb {
  width: 140px;
  height: 100px;
  object-fit: cover;
  filter: grayscale(100%);
  background-color: var(--grey-light);
  display: block;
  flex-shrink: 0;
}
.gm-listing-item__body { display: flex; flex-direction: column; gap: 0.35rem; }
.gm-listing-item__cat {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.gm-listing-item__title { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.gm-listing-item__excerpt { font-size: 0.72rem; color: var(--grey-mid); line-height: 1.5; }
.gm-listing-item__location { font-size: 0.62rem; color: var(--grey-mid); }

/* Sidebar */
.gm-listings-sidebar {
  border-left: 1.5px solid var(--black);
  padding-left: 2rem;
}

/* Pagination */
.gm-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: 1.2rem;
  border-top: 1.5px solid var(--black);
}
.gm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1.5px solid var(--black);
  margin-left: -1.5px;
  transition: background-color var(--ease), color var(--ease);
  color: var(--black);
}
.gm-pagination .page-numbers:hover,
.gm-pagination .page-numbers.current {
  background-color: var(--black);
  color: var(--ivory);
  opacity: 1;
}

/* ── 14. AD / SPONSORED BANNER ───────────────────────────────────────────── */
.gm-ad-banner {
  border-top: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  background-color: var(--ivory-dark);
  padding-block: 0.8rem;
}
.gm-ad-banner__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.gm-ad-banner__pub {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--grey-mid);
  border: 1px solid var(--grey-mid);
  padding: 0.15rem 0.4rem;
  flex-shrink: 0;
}
.gm-ad-banner__text { flex: 1; }
.gm-ad-banner__text strong { display: block; font-size: 0.78rem; font-weight: 700; }
.gm-ad-banner__text span  { font-size: 0.65rem; color: var(--grey-mid); }
.gm-ad-banner__cta {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--black);
  padding: 0.5rem 1rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color var(--ease), color var(--ease);
  color: var(--black);
}
.gm-ad-banner__cta:hover {
  background-color: var(--black);
  color: var(--ivory);
  opacity: 1;
}

/* ── 15. SINGLE POST ─────────────────────────────────────────────────────── */
.gm-single {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}
.gm-single__header { margin-bottom: 2rem; }
.gm-single__cat {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}
.gm-single__title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.96;
  margin-bottom: 1rem;
}
.gm-single__thumb {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: grayscale(100%);
  margin-bottom: 2rem;
  display: block;
}
.gm-single__content { font-size: 0.88rem; line-height: 1.7; }
.gm-single__content p  { margin-bottom: 1.2rem; }
.gm-single__content h2 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; margin-block: 1.8rem 0.8rem; }
.gm-single__content h3 { font-size: 1rem; font-weight: 700; margin-block: 1.4rem 0.6rem; }

/* ── 16. RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  /* Editorial grid only — icon grids keep their 1fr columns */
  .gm-editorial__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --gutter: 1.5rem; --hero-h: auto; }

  /* Collapse page-top grid — stack vertically */
  .gm-page-top { display: block; margin-top: 1rem; }
  .gm-hero-home { display: grid; grid-template-columns: 1fr; height: auto; overflow: hidden; }
  .gm-hero-home__text {
    grid-column: unset; grid-row: unset; z-index: auto;
    justify-content: flex-start; padding-top: 1.5rem;   /* compact at mobile */
  }
  .gm-hero-home__photo {
    grid-column: unset; grid-row: unset; z-index: auto; height: 260px;
    background-color: var(--ivory);
  }
  .gm-hero-home__photo-grayscale {
    position: relative; inset: auto; width: 100%; height: 100%;
  }
  .gm-hero-home__photo img {
    position: static; width: 100%; height: 100%;   /* normal flow — reset desktop absolute */
    top: auto;
  }
  .gm-search-bar {
    grid-column: unset; grid-row: unset;
    background: var(--ivory);    /* restore full ivory bg */
    padding: 0.7rem 0;
  }
  .gm-search-bar form { width: calc(100% - 2 * var(--gutter)); margin-left: var(--gutter); }
  /* Icons wrap automatically — handles any number of categories */
  .gm-icons-section__inner { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important; }

  .gm-hero-cat { grid-template-columns: 1fr; height: auto; }
  .gm-hero-cat__photo { height: 260px; }
  .gm-hero-home__text,
  .gm-hero-cat__text { border-right: none; border-bottom: 1.5px solid var(--black); padding: 2rem var(--gutter); }

  .gm-listings { grid-template-columns: 1fr; }
  .gm-listings-sidebar { border-left: none; border-top: 1.5px solid var(--black); padding-left: 0; padding-top: 2rem; }
  .gm-single { grid-template-columns: 1fr; }

  /* Sidebars stack full-width below the icon row */
  .gm-icons-section__inner,
  .gm-subcat-grid__inner {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
  }
  .gm-a-la-une,
  .gm-latest-updates,
  .gm-section-sidebar {
    grid-column: 1 / -1;
    border-left: none;
  }
  .gm-latest-updates::before,
  .gm-section-sidebar::before { left: 0; }  /* reset offset — not adjacent to icons at mobile */
  .gm-editorial__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gm-nav { display: none; flex-direction: column; width: 100%; background: var(--ivory); border-top: 1.5px solid var(--black); }
  .gm-nav.open { display: flex; }
  .gm-nav ul { flex-direction: column; align-items: flex-start; padding: 1rem var(--gutter); gap: 0.8rem; }
  .gm-nav ul li::after { display: none !important; }
  .gm-hamburger { display: flex; }
  .gm-header__inner { flex-wrap: wrap; padding-block: 0.8rem; }
  .gm-header { height: auto; }

  .gm-icons-section__inner,
  .gm-subcat-grid__inner { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)) !important; }
  .gm-editorial__grid { grid-template-columns: 1fr; }
  .gm-listing-item { grid-template-columns: 1fr; }
  .gm-listing-item__thumb { width: 100%; height: 180px; }
  .gm-footer__nav ul { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .gm-footer__nav ul li::after { display: none !important; }
}

/* ── 17. WordPress Core ──────────────────────────────────────────────────── */
.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem;  margin-bottom: 1rem; }
.aligncenter { text-align: center; margin-inline: auto; display: block; }
.wp-caption-text { font-size: 0.65rem; color: var(--grey-mid); margin-top: 0.3rem; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; overflow: hidden; position: absolute;
  white-space: nowrap; width: 1px;
}
