/* Hamuwemu Relationship Hub — /blog styles.
   Self-contained: the hub pages do not load the main site's Tailwind. Colours
   follow the main site's brand (#E33362) with the logo's teal as the accent. */

/* Sinhala and Tamil — the main site's self-hosted faces (Assest/Font).
   unicode-range limits each face to its own script, so Latin text stays in
   Plus Jakarta Sans and English readers never download them. Match the main
   site's Sinhala weights: SemiBold (600) for body copy and labels, Bold (700)
   for headings and buttons, with no extra glyph scaling. */
@font-face {
  font-family: 'Hub Sinhala';
  src: url('/Assest/Font/Abhaya_Libre/AbhayaLibre-SemiBold.ttf') format('truetype');
  font-weight: 100 699;
  font-display: swap;
  unicode-range: U+0D80-0DFF, U+200C-200D;
}
@font-face {
  font-family: 'Hub Sinhala';
  src: url('/Assest/Font/Abhaya_Libre/AbhayaLibre-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0D80-0DFF, U+200C-200D;
}
@font-face {
  font-family: 'Hub Tamil';
  src: url('/Assest/Font/Hind_Madurai/HindMadurai-Regular.ttf') format('truetype');
  font-weight: 100 449;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}
@font-face {
  font-family: 'Hub Tamil';
  src: url('/Assest/Font/Hind_Madurai/HindMadurai-Medium.ttf') format('truetype');
  font-weight: 450 549;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}
@font-face {
  font-family: 'Hub Tamil';
  src: url('/Assest/Font/Hind_Madurai/HindMadurai-SemiBold.ttf') format('truetype');
  font-weight: 550 649;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}
@font-face {
  font-family: 'Hub Tamil';
  src: url('/Assest/Font/Hind_Madurai/HindMadurai-Bold.ttf') format('truetype');
  font-weight: 650 900;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}

:root {
  --pink: #E33362;
  --pink-600: #C91E4E;
  --pink-50: #FFF4F7;
  --pink-100: #FDE6EE;
  --pink-200: #F9CCDA;
  --navy: #16203F;
  --ink: #2A3148;
  --text: #3B4257;
  --muted: #667085;
  --line: #F1E7EB;
  --teal: #12A39E;
  --teal-50: #E8F7F6;
  --blue: #2F5BB7;
  --shadow: 0 8px 24px rgba(22, 32, 63, .07);
  --shadow-hover: 0 16px 34px rgba(22, 32, 63, .12);
  --grad-pink: linear-gradient(135deg, #F0457B 0%, #E33362 55%, #D5285A 100%);
  --font: 'Plus Jakarta Sans', 'Hub Sinhala', 'Hub Tamil', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------------- page loader ----------------
   The main site's loading screen (index.html #page-loader), copied as-is.
   blog/index.html lifts it once the page has loaded and app.js has rendered. */

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}

#page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loading { overflow: hidden; }

/* From Uiverse.io by c0d3hdz */
.loader {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-image: linear-gradient(90deg, #ff0037 0%, #ff2c7d 10%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.loader::after,
.loader::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ff2c7d;
  box-shadow: 0 0 10px rgba(230, 169, 169, 0.316);
  margin: 1rem auto;
}

.Particle_heart {
  position: absolute;
  font-size: 1.5rem;
  color: #ff2c7d;
  opacity: 0;
  animation: floatHeart 5s linear infinite;
}

.Particle_heart:nth-child(1) { left: 10%; animation-delay: 0.2s; }
.Particle_heart:nth-child(2) { left: 30%; animation-delay: 2.0s; }
.Particle_heart:nth-child(3) { left: 50%; animation-delay: 1.0s; }
.Particle_heart:nth-child(4) { left: 70%; animation-delay: 1s; }

@keyframes floatHeart {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { transform: translateY(-100px) translateX(30px); opacity: 1; }
  100% { transform: translateY(-150px) translateX(60px); opacity: 0; }
}

/* a slow breath while it waits, a small lift as it leaves */
@keyframes loaderBreathe {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

#page-loader .loader {
  animation: loaderBreathe 1.8s ease-in-out infinite;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

#page-loader.is-hidden .loader {
  animation: none;
  transform: translateY(-10px) scale(.97);
}

:focus-visible {
  outline: 3px solid rgba(227, 51, 98, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.pink { color: var(--pink); }
.ic { width: 1em; height: 1em; flex: none; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn .ic { width: 18px; height: 18px; }

.btn--pink {
  background: var(--grad-pink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(227, 51, 98, .26);
}
.btn--pink:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(227, 51, 98, .34);
}

.btn--ghost {
  background: #fff;
  color: var(--pink);
  border: 1.5px solid var(--pink-200);
}
.btn--ghost:hover { background: var(--pink-50); }

.btn--block { width: 100%; }
.btn--lg { height: 56px; padding: 0 34px; font-size: 17px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------------- header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #F3E6EB;
}

.site-head__bar {
  position: relative;
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo lockup — mirrors the main site header (icon + wordmark + tagline). */
.brand { flex: none; display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__text { display: block; line-height: 1.25; }
.brand__name { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; color: var(--pink); }
.brand__tagline { display: block; margin-top: -2px; font-size: 12px; font-weight: 400; color: #6B7280; }
.brand__br { display: none; }

@media (min-width: 1024px) and (max-width: 1179px) {
  .brand__br { display: inline; }
}

@media (max-width: 639px) {
  .brand__name { font-size: 22px; }
  .brand__br { display: inline; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s;
}
.site-nav a:not(.btn):hover { color: var(--pink); }

.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 36px;
  height: 2.5px;
  border-radius: 9px;
  background: var(--pink);
  transform: translateX(-50%) scaleX(0);
  transition: transform .25s ease;
}

body[data-hub-nav="hub"] .site-nav a[data-nav="hub"] {
  color: var(--pink);
  font-weight: 600;
}

body[data-hub-nav="hub"] .site-nav a[data-nav="hub"]::after {
  transform: translateX(-50%) scaleX(1);
}

.site-nav__cta { display: none !important; }
.site-head__cta { flex: none; height: 44px; padding: 0 18px 0 22px; }

/* language switcher — the main site's control (index.html .lang-switch) */
.lang-switch { position: relative; flex: none; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #F8E8EE;
  border-radius: 999px;
  background: #FFF6F8;
  color: var(--pink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.lang-btn:hover { background: #F8E8EE; border-color: var(--pink); }
.lang-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.lang-btn .ic { width: 16px; height: 16px; }
.lang-caret { width: 12px; height: 12px; transition: transform .2s ease; }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }

/* full native name once there is room, ISO code on small screens */
.lang-name { display: none; }
@media (min-width: 1024px) {
  .lang-name { display: inline; }
  .lang-code { display: none; }
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #F8E8EE;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(227, 51, 98, .10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #374151;
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-option:hover,
.lang-option[aria-selected="true"] { background: #FFF6F8; color: var(--pink); }
.lang-option:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.lang-check { width: 16px; height: 16px; flex: none; opacity: 0; }
.lang-option[aria-selected="true"] .lang-check { opacity: 1; }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--pink-50);
  color: var(--navy);
  cursor: pointer;
}
.nav-burger svg { width: 22px; height: 22px; transition: transform .3s; }
.site-head[data-open] .nav-burger svg { transform: rotate(90deg); }

@media (max-width: 1100px) {
  .site-nav { gap: 22px; }
  .site-nav a:not(.btn) { font-size: 14.5px; }
}

@media (max-width: 1023px) {
  .nav-burger { display: grid; }
  .site-head__cta { display: none; }
  /* the switcher sits beside the burger, both pushed right */
  .site-head__bar { gap: 12px; }
  .lang-switch { margin-left: auto; }
  .lang-switch + .nav-burger { margin-left: 0; }

  .site-nav {
    position: absolute;
    top: calc(var(--head-h) - 6px);
    right: 16px;
    width: min(270px, calc(100vw - 32px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
  }
  .site-head[data-open] .site-nav { display: flex; animation: drop .25s ease; }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid #F6EEF1; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav__cta { display: inline-flex !important; margin-top: 14px; }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- hero ---------------- */

.hub-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 390px;
  overflow: hidden;
  background: #FBEFEA;
  isolation: isolate;
}

.hub-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
      rgba(255, 250, 248, .97) 0%,
      rgba(255, 248, 245, .9) 30%,
      rgba(255, 246, 243, .5) 48%,
      rgba(255, 255, 255, 0) 64%);
}

/* Helium heart balloons — the main site hero's cluster (index.html
   .hero-balloons). Purely decorative. They hang in the empty gutter left of
   the copy, so they only show once that gutter is wide enough (>=1440px).
   Width tracks the real gutter: (viewport - container) / 2 + padding.
   z-index -1 paints them over the photo's fade but under the copy. */
.hub-hero__balloons {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: min(250px, calc((100vw - 1200px) / 2 + 18px));
  pointer-events: none;
}

@media (min-width: 1440px) {
  .hub-hero__balloons { display: block; }
}

.hub-hero__defs { position: absolute; }

.hub-hero__balloon {
  position: absolute;
  opacity: .95;
  will-change: transform;
  filter: drop-shadow(0 12px 16px rgba(170, 20, 60, .18));
  animation: balloonFloat 8s ease-in-out infinite;
}

/* staggered sizes, offsets, speeds and phases so the drift never reads as a loop.
   heights are width x 1.86 to match the 100x186 viewBox. */
.hub-hero__balloon--1 { left: 3%; top: 5%; width: 86px; height: 160px; animation-duration: 7.6s; animation-delay: -.2s; }
.hub-hero__balloon--2 { left: 51%; top: 23%; width: 56px; height: 104px; animation-duration: 9.4s; animation-delay: -3.1s; }
.hub-hero__balloon--3 { left: 8%; top: 45%; width: 68px; height: 127px; animation-duration: 8.3s; animation-delay: -1.5s; }
.hub-hero__balloon--4 { left: 47%; top: 65%; width: 44px; height: 82px; animation-duration: 6.9s; animation-delay: -4.4s; }

@keyframes balloonFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2.5deg); }
  50% { transform: translate3d(5px, -26px, 0) rotate(2.5deg); }
}

.hub-hero__inner { padding-block: 52px 58px; }

.hub-hero__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy);
}
.hub-hero__title span { display: block; }

.hub-hero__lead {
  max-width: 440px;
  margin: 18px 0 26px;
  font-size: 17px;
  color: var(--text);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 470px;
  height: 56px;
  padding: 6px 6px 6px 52px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(22, 32, 63, .10);
  transition: box-shadow .2s;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(227, 51, 98, .22), 0 10px 30px rgba(22, 32, 63, .10); }

.search__ic {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  color: #6B7280;
}

.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}
.search__input::placeholder { color: #8A90A2; }
.search__input::-webkit-search-cancel-button { cursor: pointer; }

.search__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--grad-pink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(227, 51, 98, .3);
}
.search__btn .ic { width: 20px; height: 20px; stroke-width: 2.2; }

@media (max-width: 759px) {
  /* as on desktop, the copy sits on the photo's left over a soft white haze,
     with the couple on the right. The photo stops at the search, which stays
     below on the cream: 88px = search (56) + bottom padding (32). */
  .hub-hero { display: block; min-height: 0; background: #FFF6F3; }
  .hub-hero__img { height: calc(100% - 88px); object-position: 100% center; }
  .hub-hero::before {
    bottom: auto;
    height: calc(100% - 88px);
    background:
      linear-gradient(180deg, rgba(255, 246, 243, 0) 78%, #FFF6F3 100%),
      linear-gradient(90deg,
        rgba(255, 250, 248, .9) 0%,
        rgba(255, 248, 245, .84) 42%,
        rgba(255, 246, 243, .6) 55%,
        rgba(255, 255, 255, 0) 66%);
  }
  .hub-hero__inner { padding-block: 22px 32px; }
  /* vw sizes keep the same line breaks on every phone, so the copy always
     ends just left of her face */
  .hub-hero__title { max-width: 60%; font-size: clamp(22px, 6.5vw, 28px); }
  .hub-hero__title span { display: inline; }
  .hub-hero__lead { max-width: 60%; font-size: clamp(13px, 3.5vw, 15px); margin: 12px 0 22px; }
}

/* ---------------- category row ---------------- */

.cat-row {
  background: #fff;
  border-bottom: 1px solid #F4ECEF;
}

.cat-row__list {
  display: grid;
  /* one equal column per category, however many categories.js lists */
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
  padding: 22px 0 18px;
  list-style: none;
}

.cat-row__list li { position: relative; }
.cat-row__list li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 22px;
  width: 1px;
  background: #F1E6EA;
}

.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.cat-pill span { max-width: 118px; transition: color .2s; }
.cat-pill img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cat-pill:hover img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(227, 51, 98, .18); }
.cat-pill:hover span,
.cat-pill.is-active span { color: var(--pink); }
.cat-pill.is-active img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink); }

@media (max-width: 960px) {
  .cat-row .container { padding-inline: 0; }
  .cat-row__list {
    display: flex;
    gap: 2px;
    padding: 18px 12px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .cat-row__list::-webkit-scrollbar { display: none; }
  .cat-row__list li { flex: 0 0 104px; scroll-snap-align: start; }
  .cat-pill { font-size: 12.5px; }
}

/* ---------------- layout ---------------- */

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
  padding-block: 30px 8px;
}
.hub-col { min-width: 0; }

.hub-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 1023px) {
  .hub-grid { grid-template-columns: minmax(0, 1fr); }
  .hub-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .pop-block { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 640px) {
  .hub-side { grid-template-columns: minmax(0, 1fr); }
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.sec-title {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy);
}
.sec-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: var(--pink);
}

.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}
.sec-link .ic { width: 16px; height: 16px; transition: transform .2s; }
.sec-link:hover .ic { transform: translateX(3px); }

.hub-featured + .hub-latest { margin-top: 36px; }

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

.stretched::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--top { position: absolute; top: 14px; left: 14px; }
.badge--bottom { position: absolute; left: 12px; bottom: 12px; }
.badge--link { margin-bottom: 16px; transition: background-color .2s; }
.badge--link:hover { background: var(--pink-600); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12.5px;
  color: var(--muted);
}
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ic { width: 15px; height: 15px; }
.meta--light { color: rgba(255, 255, 255, .92); font-size: 13.5px; }

.img-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FFE3EC, #FFF4F7);
  color: var(--pink-200);
}
.img-empty .ic { width: 40%; height: 40%; max-width: 64px; max-height: 64px; }

.card-title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
  transition: color .2s;
}

/* featured block */
.featured-grid {
  display: grid;
  gap: 18px;
}
.featured-grid--2,
.featured-grid--3 { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }

.featured-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.lead-card {
  position: relative;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #2A2230;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.lead-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.lead-card:hover .lead-card__img { transform: scale(1.03); }
.lead-card__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 8, 22, 0) 32%, rgba(12, 8, 22, .5) 60%, rgba(12, 8, 22, .86) 100%);
}
.lead-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 24px 22px;
}
.lead-card__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 29px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}
.lead-card__excerpt {
  max-width: 520px;
  margin: 0 0 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
}

.side-card-post,
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #F3ECEF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.side-card-post:hover,
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.side-card-post:hover .card-title,
.post-card:hover .card-title { color: var(--pink); }

/* the box sets the shape; the image fills it, whatever its own proportions */
.side-card-post__media,
.post-card__media { position: relative; flex: none; overflow: hidden; background: var(--pink-50); }
.side-card-post__media { aspect-ratio: 16 / 8.6; }
.post-card__media { aspect-ratio: 16 / 10; }
.side-card-post__img,
.post-card__img,
.side-card-post__media .img-empty,
.post-card__media .img-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-card-post__media .badge,
.post-card__media .badge { z-index: 1; }

.side-card-post__body,
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}
.post-card .meta { margin-top: auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.more-row { display: flex; justify-content: center; margin-top: 24px; }

@media (max-width: 900px) {
  .featured-grid--2,
  .featured-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .featured-grid--3 .featured-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .lead-card { min-height: 380px; }
  .featured-grid--3 .featured-stack,
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

.hub-empty {
  padding: 28px;
  border: 1px dashed var(--pink-200);
  border-radius: 18px;
  background: #FFF7F9;
}
.hub-empty p { margin: 10px 0 0; color: var(--text); }
.hub-empty .btn { margin-top: 18px; }

.search-results { margin-bottom: 30px; }
.search-results__count { margin: -6px 0 16px; font-size: 14px; color: var(--muted); }
.search-results__none {
  padding: 22px;
  border-radius: 14px;
  background: var(--pink-50);
  color: var(--text);
}

/* ---------------- sidebar ---------------- */

.join-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #FBD5E0;
  border-radius: 18px;
  background: linear-gradient(150deg, #FFF3F6 0%, #FFE4EC 100%);
}
.join-card__deco {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 74px;
  height: 74px;
  color: #F3A1BA;
  stroke-width: 1.2;
  transform: rotate(14deg);
}
.join-card__head { display: flex; align-items: flex-start; gap: 12px; padding-right: 36px; }
.join-card__icon { flex: none; color: var(--pink); }
.join-card__icon .ic { width: 38px; height: 38px; stroke-width: 2.2; }
.join-card__title {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--pink);
}
.join-card p { margin: 10px 0 18px 50px; font-size: 14px; color: var(--text); }

.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.ic--flame { width: 20px; height: 20px; color: #F0522E; }

.pop-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid #F1E6EA;
}
.pop-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.pop-item__img,
.pop-item .img-empty { width: 80px; height: 60px; border-radius: 8px; object-fit: cover; }
.pop-item__title {
  display: block;
  margin: 0 0 5px;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--navy);
  transition: color .2s;
}
.pop-item:hover .pop-item__title { color: var(--pink); }
.pop-item .meta { font-size: 11.5px; }
.pop-item .meta .ic { width: 13px; height: 13px; }

.news-card {
  padding: 22px;
  border: 1px solid #CBEBEA;
  border-radius: 18px;
  background: linear-gradient(160deg, #EDF9F9 0%, #DDF3F2 100%);
}
.news-card__head { display: flex; align-items: flex-start; gap: 12px; }
.news-card__icon { flex: none; color: var(--teal); }
.news-card__icon .ic { width: 36px; height: 36px; stroke-width: 1.9; }
.news-card__title {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--navy);
}
.news-card p { margin: 10px 0 16px; font-size: 13.5px; color: var(--text); }

.news-form { display: grid; gap: 12px; }
.news-form__input {
  height: 46px;
  padding: 0 18px;
  border: 1px solid #D2E8E7;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.news-form__input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18, 163, 158, .18); }
.news-form__msg { margin: 0; font-size: 13px; font-weight: 600; }
.news-form__msg:empty { display: none; }
.news-form__msg.is-ok { color: #0F7B61; }
.news-form__msg.is-error { color: #C21D4B; }

/* ---------------- CTA band ---------------- */

.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 34px 0 52px;
  padding: 36px 56px;
  overflow: hidden;
  border: 1px solid #FBDCE5;
  border-radius: 28px;
  background: linear-gradient(100deg, #FFF4F7 0%, #FFE9F0 55%, #FFE2EB 100%);
  isolation: isolate;
}
.cta-band__blob {
  position: absolute;
  left: -70px;
  top: 50%;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD2DF 0%, rgba(255, 226, 235, 0) 70%);
  transform: translateY(-50%);
}
.cta-band__text { max-width: 580px; }
.cta-band__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 31px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--navy);
}
.cta-band__title span { display: block; }
.cta-band p { margin: 0; font-size: 15.5px; color: var(--text); }
.cta-band .btn { flex: none; min-width: 250px; margin-left: auto; }
.cta-band__heart { flex: none; width: 58px; height: 58px; color: var(--pink); stroke-width: 1.3; }

@media (max-width: 900px) {
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .cta-band .btn { margin-left: 0; min-width: 0; }
  .cta-band__heart { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; }
  .cta-band__text { padding-right: 36px; }
}

/* ---------------- breadcrumbs ---------------- */

.crumbs { padding-top: 22px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; min-width: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #C9CDD6; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--pink); }
.crumbs [aria-current] {
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}

/* ---------------- article ---------------- */

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  padding-block: 20px 24px;
}
.post { min-width: 0; max-width: 780px; }

@media (min-width: 1024px) {
  .post-grid .hub-side { position: sticky; top: calc(var(--head-h) + 20px); }
}
@media (max-width: 1023px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .post { max-width: none; }
}

.post-head { margin-bottom: 26px; }
.post-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--navy);
}
.post-dek { margin: 0 0 20px; font-size: 18.5px; line-height: 1.55; color: #4A5168; }
.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.post-byline .meta { font-size: 13.5px; }
.post-author { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.post-author__photo { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.post-author__role { display: block; font-size: 12.5px; font-weight: 500; color: #6B7185; }

.post-cover {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 20px;
  background: #F7EEF1;
  box-shadow: var(--shadow);
}
.post-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }

.post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.share__label { margin: 0; font-weight: 700; color: var(--navy); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--pink-50);
  color: var(--pink);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.share__btn:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.share__btn .ic { width: 20px; height: 20px; }
.share__copied { font-size: 13px; font-weight: 600; color: #0F7B61; }

.related { margin-top: 26px; padding-top: 30px; border-top: 1px solid #F4ECEF; }

/* ---------------- article body (Markdown) ---------------- */

.prose { font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: calc(var(--head-h) + 20px); color: var(--navy); }
.prose h2 { margin: 2em 0 .6em; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.prose h3 { margin: 1.7em 0 .5em; font-size: 21px; line-height: 1.3; font-weight: 800; }
.prose h4 { margin: 1.5em 0 .4em; font-size: 18px; line-height: 1.35; font-weight: 700; }
.prose > :first-child { margin-top: 0; }
.prose a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose strong { color: var(--navy); }
.prose ol { padding-left: 1.4em; }
.prose ol li::marker { color: var(--pink); font-weight: 800; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 34px; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .38em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E33362' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.prose li + li { margin-top: .5em; }

.prose blockquote {
  margin: 1.8em 0 0;
  padding: 22px 26px;
  border-left: 4px solid var(--pink);
  border-radius: 18px;
  background: linear-gradient(120deg, #FFF3F6, #FFE7EE);
  color: var(--pink);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}
.prose blockquote strong { color: inherit; }
.prose blockquote > * + * { margin-top: .6em; }

.prose .md-figure { margin: 1.8em 0 0; }
.prose .md-figure img { width: 100%; height: auto; border-radius: 16px; }
.prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.prose img { height: auto; }

/* app screenshots: "![…](…) phone" — phone-sized in a phone frame, never the
   full column width (inside a numbered card they sit beside the text, below) */
.prose .md-figure--phone { max-width: 260px; margin-inline: auto; }
.prose .md-figure.md-figure--phone img {
  border: 6px solid var(--navy);
  border-radius: 26px;
  background: var(--navy);
  box-shadow: 0 10px 26px rgba(22, 32, 63, .14);
}

/* image grids: ":::grid big-left split=62 height=45" — markdown.js sets the
   layout class and --ratio (width / height), --big / --rest (the big photo's
   share), --cols and --rows on the figure */
.prose .md-grid { margin: 1.8em 0 0; }
.prose .md-grid__cells {
  display: grid;
  gap: 8px;
  aspect-ratio: var(--ratio, 2 / 1);
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr));
}
.prose .md-grid__cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #F6F1F3;
}
.prose .md-grid__cell img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.prose .md-grid--row.md-grid--n2 .md-grid__cells,
.prose .md-grid--big-left .md-grid__cells { grid-template-columns: minmax(0, var(--big)) minmax(0, var(--rest)); }
.prose .md-grid--big-right .md-grid__cells { grid-template-columns: minmax(0, var(--rest)) minmax(0, var(--big)); }
.prose .md-grid--big-top .md-grid__cells { grid-template-rows: minmax(0, var(--big)) minmax(0, var(--rest)); }
.prose .md-grid--big-left .md-grid__cell:first-child { grid-row: 1 / -1; }
.prose .md-grid--big-right .md-grid__cell:first-child { grid-column: 2; grid-row: 1 / -1; }
.prose .md-grid--big-top .md-grid__cell:first-child { grid-column: 1 / -1; }
.prose .md-grid--columns .md-grid__cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
.prose .md-item .md-grid__cell { border-radius: 10px; }

/* phones: the big photo leads full width, the rest become square tiles, two a row */
@media (max-width: 560px) {
  .prose .md-grid--many .md-grid__cells {
    aspect-ratio: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .prose .md-grid--many .md-grid__cell:nth-child(n) { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .prose .md-grid--lead .md-grid__cell:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .prose .md-grid--many:not(.md-grid--lead) .md-grid__cell:last-child:nth-child(odd),
  .prose .md-grid--lead.md-grid--many .md-grid__cell:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}

.prose .md-table {
  overflow-x: auto;
  border: 1px solid #F4D5DF;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose thead th {
  padding: 13px 18px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.prose td { padding: 12px 18px; border-top: 1px solid #F7E3EA; background: #FFF8FA; }
.prose tbody tr:nth-child(even) td { background: #fff; }
.prose td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.prose .al-center { text-align: center; }
.prose .al-right { text-align: right; }

.prose hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.prose code { padding: .1em .4em; border-radius: 6px; background: #F6F1F3; font-size: .9em; }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: #1E2233; color: #F4F5F8; font-size: 14px; }
.prose pre code { padding: 0; background: none; }

/* numbered listicle cards: "## 1. Galle Face Green" */
.prose .md-item {
  display: flow-root;
  margin-top: 1.2em;
  padding: 22px 24px;
  border: 1px solid #F3E4EA;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(22, 32, 63, .05);
}
.prose .md-item + .md-item { margin-top: 16px; }
.prose .md-item > * + * { margin-top: .7em; }
.prose .md-item-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 21px;
}
.prose h3.md-item-title { font-size: 19px; }
.md-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-pink);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}
.prose .md-item .md-figure img { border-radius: 12px; }
/* a step card: the screenshot under the title, the step's text beside it */
.prose .md-item > .md-figure--phone { float: left; width: 180px; margin: .7em 26px 0 0; }
.prose .md-item .md-figure.md-figure--phone img { border-radius: 24px; }

/* one-line facts: "**Best time:** 5:30 PM–7 PM" */
.prose .md-fact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--teal-50);
  font-size: 14.5px;
  line-height: 1.4;
  color: #0B4F4C;
}
.md-fact-label {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.md-fact-value { font-weight: 600; }

@media (max-width: 560px) {
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 23px; }
  .prose .md-item { padding: 18px; }
  .prose .md-item-title { font-size: 19px; gap: 12px; }
  .md-num { width: 34px; height: 34px; font-size: 15px; }
  .prose .md-item > .md-figure--phone { width: 124px; margin-right: 16px; }
  .prose .md-item .md-figure.md-figure--phone img { border-width: 4px; border-radius: 18px; }
}

/* ---------------- category page ---------------- */

.cat-hero { background: linear-gradient(180deg, var(--tint, #FDE8EF) 0%, #fff 100%); }
.cat-hero__row { display: flex; align-items: center; gap: 22px; padding: 22px 0 34px; }
.cat-hero__icon {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 32, 63, .08);
}
.cat-hero__row .eyebrow { margin-bottom: 6px; }
.cat-hero__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.cat-hero__lead { max-width: 640px; margin: 0; font-size: 16.5px; color: #4A5168; }

/* 3D heart in the empty right side of the header (markup: CAT_HERO_ART in
   views.js). Purely decorative. Only shown from 1100px, where the space right
   of the text is free; the box never reaches the 750px text column.
   Everything moves with transform/opacity only. Masked and filtered elements
   are kept as leaves so the preserve-3d scene is never flattened — that is
   what lets the small hearts pass behind the big one. */
.cat-hero .container { position: relative; }

.cat-art {
  --cat-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='9 8.5 82 82.5'%3E%3Cpath d='M50 91C50 91 9 63 9 35.5 9 20 20.5 8.5 34 8.5c7.8 0 13.6 3.9 16 9.1 2.4-5.2 8.2-9.1 16-9.1C79.5 8.5 91 20 91 35.5 91 63 50 91 50 91z'/%3E%3C/svg%3E");
  display: none;
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  width: clamp(300px, calc(100% - 800px), 400px);
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}

@media (min-width: 1100px) {
  .cat-art { display: block; }
}

.cat-art span,
.cat-art i { position: absolute; display: block; }

.cat-art__glow {
  left: 50%;
  top: 52%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 168, 196, .5), rgba(255, 168, 196, 0));
}

.cat-art__shadow {
  left: 50%;
  top: calc(52% + 68px);
  width: 120px;
  height: 18px;
  margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 16, 56, .3), rgba(168, 16, 56, 0));
  animation: catShadow 5s ease-in-out infinite;
}

/* the stage: seen from slightly above, so the orbit reads as an ellipse */
.cat-art__scene {
  left: 50%;
  top: 52%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-14deg);
}

.cat-art__heart {
  left: -55px;
  top: -55px;
  width: 110px;
  height: 110px;
  transform-style: preserve-3d;
  will-change: transform;
  animation: catFloat 5s ease-in-out infinite;
}

/* rotateX(14deg) stands the heart back upright inside the tilted stage */
.cat-art__body {
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(-20deg);
  will-change: transform;
  animation: catSway 8s ease-in-out infinite;
}

/* 14 heart-shaped slices, 1.6px apart: the dark middle ones form the side wall */
.cat-art__layer {
  inset: 0;
  background: linear-gradient(180deg, #C8214F 0%, #8E0F33 100%);
  -webkit-mask: var(--cat-heart) center / contain no-repeat;
  mask: var(--cat-heart) center / contain no-repeat;
  transform: translateZ(calc(var(--z) * 1.6px));
}

.cat-art__layer:first-child,
.cat-art__layer:last-child {
  background: radial-gradient(circle at 34% 26%, #FFA8C4 0%, #E33362 46%, #A81038 100%);
}

.cat-art__orbit {
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: rotateY(30deg);
  will-change: transform;
  animation: catOrbit 14s linear infinite;
}

/* each small heart sits on the ring, turned back to face the viewer */
.cat-art__mini {
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--a)) translateZ(125px) rotateY(calc(var(--a) * -1));
}

.cat-art__mini-heart {
  left: -12px;
  top: -12px;
  width: 24px;
  height: 24px;
  -webkit-mask: var(--cat-heart) center / contain no-repeat;
  mask: var(--cat-heart) center / contain no-repeat;
  transform: rotateY(-30deg) rotateX(14deg);
  animation: catFace 14s linear infinite;
}

.cat-art__mini:nth-child(3n + 2) .cat-art__mini-heart { left: -9px; top: -9px; width: 18px; height: 18px; }
.cat-art__mini:nth-child(3n) .cat-art__mini-heart { left: -14px; top: -14px; width: 28px; height: 28px; }

.cat-art__mini-heart--brand { background: radial-gradient(circle at 34% 26%, #FFA8C4 0%, #E33362 46%, #A81038 100%); }
.cat-art__mini-heart--rose { background: radial-gradient(circle at 34% 26%, #FFC0D2 0%, #F0507A 46%, #C11A45 100%); }
.cat-art__mini-heart--blush { background: radial-gradient(circle at 34% 26%, #FFE6EE 0%, #FFA3BE 46%, #E0537C 100%); }

/* four-point sparkles */
.cat-art__spark {
  width: 14px;
  height: 14px;
  background: #FF8FB1;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: catTwinkle 3.2s ease-in-out infinite;
}

.cat-art__spark--a { left: 14%; top: 16%; }
.cat-art__spark--b { left: 84%; top: 12%; width: 11px; height: 11px; background: #FFC857; animation-duration: 2.8s; animation-delay: -1.1s; }
.cat-art__spark--c { left: 88%; top: 66%; width: 15px; height: 15px; background: #F0507A; animation-duration: 3.6s; animation-delay: -2s; }
.cat-art__spark--d { left: 7%; top: 70%; width: 10px; height: 10px; background: #FFC857; animation-duration: 3s; animation-delay: -.6s; }

@keyframes catFloat {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(-8px); }
}

@keyframes catShadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.78); opacity: .6; }
}

@keyframes catSway {
  0%, 100% { transform: rotateX(14deg) rotateY(-28deg); }
  50% { transform: rotateX(14deg) rotateY(28deg); }
}

@keyframes catOrbit {
  from { transform: rotateY(30deg); }
  to { transform: rotateY(390deg); }
}

/* counter-spin of the ring, so the small hearts always face the viewer */
@keyframes catFace {
  from { transform: rotateY(-30deg) rotateX(14deg); }
  to { transform: rotateY(-390deg) rotateX(14deg); }
}

@keyframes catTwinkle {
  0%, 100% { transform: scale(.2) rotate(0deg); opacity: 0; }
  50% { transform: scale(1) rotate(90deg); opacity: 1; }
}

@media (max-width: 560px) {
  .cat-hero__row { align-items: flex-start; gap: 16px; }
  .cat-hero__icon { width: 62px; height: 62px; }
}

/* ---------------- notices (404 / not ready) ---------------- */

.container.notice {
  max-width: 720px;
  padding-block: 72px 36px;
  text-align: center;
}
.notice__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}
.notice__text { margin: 0 auto; max-width: 520px; font-size: 16.5px; color: var(--text); }
.notice__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------------- loading (browser-rendered fallback only) ---------------- */

.hub-loading { padding-block: 34px 60px; }
.sk {
  border-radius: 18px;
  background: linear-gradient(90deg, #F7EFF2 25%, #FDF7F9 50%, #F7EFF2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.sk--hero { height: 300px; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.sk--card { height: 210px; }
.hub-noscript { margin-top: 22px; text-align: center; color: var(--text); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------- footer ----------------
   Mirrors the main site footer (index.html #contact): logo | links + credits |
   socials. Stacked and centred on phones, three columns from 768px. */

.site-foot {
  background: #fff;
  border-top: 1px solid #F8E8EE;
  line-height: 1.5;
}

.site-foot__row {
  max-width: 1240px;
  margin-inline: auto;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-foot__brand { display: flex; align-items: center; gap: 10px; }
.site-foot__brand img { width: 40px; height: 40px; object-fit: contain; }
.site-foot__brand-text { display: block; line-height: 1.25; }
.site-foot__name { display: block; font-size: 22px; font-weight: 700; color: var(--pink); }
.site-foot__tagline { display: block; margin-top: -2px; font-size: 12px; color: #6B7280; }

.site-foot__mid { text-align: center; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; color: #374151; }
.foot-nav a:hover { color: var(--pink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 8px; font-size: 13.5px; }
.foot-legal a { color: #6B7280; transition: color .18s ease; }
.foot-legal a:hover { color: var(--pink); }
.site-foot__rights { margin: 8px 0 0; font-size: 13.5px; color: #6B7280; }
.site-foot__powered { margin: 4px 0 0; font-size: 13px; color: #6B7280; }
.site-foot__powered a { color: #2E9BE0; font-weight: 600; transition: color .18s ease; }
.site-foot__powered a:hover { color: #1478C8; }
.site-foot__powered a:focus-visible { outline: 2px solid #2E9BE0; outline-offset: 2px; border-radius: 3px; }

.site-foot__side { text-align: center; }
.foot-social { display: flex; align-items: center; justify-content: center; gap: 10px; }
.foot-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  transition: transform .25s cubic-bezier(.22, .72, .28, 1), background-color .25s ease, color .25s ease;
}
.foot-social a:hover { background: #F3F4F6; color: #4B5563; transform: translateY(-2px) scale(1.08); }
.foot-social svg { width: 14px; height: 14px; }
.site-foot__made { margin: 8px 0 0; font-size: 13.5px; color: #6B7280; }
.site-foot__made span { color: var(--pink); }

@media (min-width: 768px) {
  .site-foot__row { flex-direction: row; align-items: flex-start; }
  .site-foot__side { text-align: right; }
  .foot-social { justify-content: flex-end; }
}

@media (min-width: 1024px) {
  .site-foot__row { padding-inline: 24px; }
}

@media (max-width: 560px) {
  :root { --head-h: 68px; }
  .container { padding-inline: 16px; }
  .sec-title { font-size: 20px; }
}

/* ---------------- Sinhala / Tamil ----------------
   app.js sets <html lang> to the reader's language. Only a few places need
   a hand: menu labels stay on one line, and Tamil — the longest of the three
   scripts — gets smaller display headings so they keep the English layout. */

.site-nav a:not(.btn) { white-space: nowrap; }

html[lang="si"] .hub-hero__title,
html[lang="ta"] .hub-hero__title { line-height: 1.2; }

html[lang="ta"] .site-nav a:not(.btn) { font-size: 14px; }
html[lang="ta"] .hub-hero__title { font-size: clamp(28px, 3.3vw, 40px); }
html[lang="ta"] .cat-hero__title { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; }
html[lang="ta"] .post-title { line-height: 1.3; }
html[lang="ta"] .cta-band__title { line-height: 1.3; }

@media (max-width: 1100px) {
  html[lang="ta"] .site-nav a:not(.btn) { font-size: 13.5px; }
}

/* the mobile hero's smaller copy reads tiny in Sinhala, whose glyphs run
   smaller than Latin at the same size */
@media (max-width: 759px) {
  html[lang="si"] .hub-hero .eyebrow { font-size: 16px; }
  html[lang="si"] .hub-hero__title { font-size: clamp(25px, 7.5vw, 32px); }
  html[lang="si"] .hub-hero__lead { font-size: clamp(14.5px, 4vw, 17px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .foot-social a:hover { transform: none; }
  .hub-hero__balloon { animation: none; }
  .cat-art * { animation: none; }
  #page-loader .loader { animation: none; transition: none; }
  #page-loader.is-hidden .loader { transform: none; }
  .cat-art__spark { opacity: 1; }
}
