/* =========================================================================
   Living REIT — Block layouts (homepage)
   Block-specific layout only. Foundation/tokens live in base.css.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--live-green-2);
  /* same gutters as sections: max 1200 content, 40px sides (20px mobile) */
  padding-inline: var(--section-pad-x);
  /* logo sits 34px from top with 27px space below it */
  padding-block: 34px 27px;
}
/* Container height is driven by the logo (65px); Contact + nav links are
   absolutely positioned to hit their exact px offsets from the header top. */
.site-header .container { position: relative; }

.site-logo { display: block; width: 140px; }
.site-logo img { width: 140px; height: 65px; }

/* Nav links: 72px from header top (container top is at 34px → +38px),
   left-aligned flush to the right of the logo with an 88px column gap. */
.main-nav {
  position: absolute;
  top: 35px;
  right: 0;
}
.main-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav .nav-links a {
  color: var(--white);
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  white-space: nowrap;
}
.main-nav .nav-links a:hover { color: var(--light); }

/* --- Nav dropdowns (desktop: hover / keyboard focus) ------------------- */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.nav-links .has-dropdown:hover > a .nav-caret,
.nav-links .has-dropdown:focus-within > a .nav-caret { transform: rotate(180deg); }

.nav-links .dropdown {
  position: absolute;
  top: 100%;                 /* flush under the link — no hover gap */
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 18px 0 10px;      /* top padding doubles as the hover bridge */
  list-style: none;
  background-color: var(--live-green-2);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 60;
}
.nav-links .dropdown.dropdown--right { left: auto; right: 0; }
/* invisible bridge so the cursor can cross from link to panel without dropping hover */
.nav-links .dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.nav-links .has-dropdown:hover > .dropdown,
.nav-links .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .dropdown a {
  display: block;
  padding: 9px 22px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}
.nav-links .dropdown a:hover { color: var(--light); background-color: rgba(255, 255, 255, 0.06); }

/* "Contact" pill button — 100x33, 26px from header top, right-aligned.
   Same transition + hover as other buttons. */
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 33px;
  padding: 4px 8px;
  color: var(--white);
  background-color: var(--live-green-3);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 500;
  font-size: 18px;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.nav-contact:hover {
  background-color: var(--white);
  border-color: var(--live-green-2);
  color: var(--live-green-2);
}
.site-header .nav-contact {
  position: absolute;
  top: -8px;   /* container top is 34px from header top → 26px */
  right: 0;
}
.nav-burger { position: absolute; top: 4px; right: 0; }

/* Burger (mobile only) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 40px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  justify-content: center;
}
.nav-burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--live-green-2);
  padding: 30px var(--section-pad-x-mobile);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.drawer-close::before,
.drawer-close::after {
  content: '';
  position: absolute;
  top: 50%; left: 8px;
  width: 24px; height: 3px;
  background: var(--white);
}
.drawer-close::before { transform: rotate(45deg); }
.drawer-close::after  { transform: rotate(-45deg); }

.drawer-nav {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.drawer-nav a { color: var(--white); font-weight: 400; font-size: 1.5rem; }
.drawer-nav .nav-contact { align-self: flex-start; font-size: 1.25rem; }

/* --- Drawer dropdowns (mobile: click accordion) ------------------------ */
.drawer-nav .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.drawer-nav .has-dropdown > a .nav-caret { width: 16px; height: 16px; transition: transform var(--transition); }
.drawer-nav .has-dropdown.open > a .nav-caret { transform: rotate(180deg); }
.drawer-nav .dropdown {
  display: none;
  list-style: none;
  margin: 18px 0 0;
  padding-left: 18px;
  flex-direction: column;
  gap: 18px;
}
.drawer-nav .has-dropdown.open > .dropdown { display: flex; }
.drawer-nav .dropdown a { font-size: 1.125rem; }

/* -------------------------------------------------------------------------
   Home Header (hero)
   ------------------------------------------------------------------------- */
.home-header {
  padding-block: 112px 0;                  /* 112px top at all breakpoints */
  max-height: 640px;  
  height:80vh;                     /* desktop */
}
/* higher specificity than .body-section.dark so the hero gets the darkest green */
.body-section.dark.home-header { background-color: var(--live-green-1); }
.home-header .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  min-height: 640px;
}
.home-header__content { padding: 0; position: relative; z-index: 2; }
.home-header__content .display { color: var(--white); }
.home-header__media {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* circular hero image */
.home-header__media .hero-circle {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
}
.home-header__media .hero-circle img { width: 100%; height: 100%; object-fit: cover; }

/* decorative back circles, offset to the left */
.home-header__media .hero-circle.is-back {
  background-color: var(--live-green-2);
}
.home-header .circle-holder {
  position:absolute; height:110%; margin-bottom:-20px; right:0px;
  display: flex;
  justify-content: flex-end;
  gap: 60px;
}

.home-header .circle-holder.image-section {
  right: -400px;
}

/* -------------------------------------------------------------------------
   Simple Header (interior page hero — e.g. News)
   Same top padding + gutters as the home header; reuses circle-holder/circles.
   ------------------------------------------------------------------------- */
.simple-header { padding-block: 112px 88px;min-height: 280px; }
.body-section.dark.simple-header { background-color: var(--live-green-1); }
.simple-header .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: start;
}
.simple-header__content .display,
.simple-header__content h1 { color: var(--white); margin: 0; }

/* reuse the circle-holder + circles, bleeding off the right edge */
.simple-header .circle-holder {
  position: absolute;
  top: 90px;
  right: -60px;
  transform: translateY(-50%);
  height: 320px;
  display: flex;
  align-items: start;
  justify-content: flex-end;
  gap: 30px;
  z-index: 0;
  pointer-events: none;
  z-index:-1;
}
.simple-header .circle-holder .hero-circle {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--live-green-2);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Pagination (news / archive listings)
   ------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 56px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  color: var(--live-green-2);
}
.pagination a:hover { color: var(--live-green-3); }
.pagination .page-num.is-current {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.pagination svg { width: 18px; height: 18px; }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }


/* -------------------------------------------------------------------------
   Text Block (H2 left / text right)
   col gap 20px, row gap 26px, stacks mobile left-first
   ------------------------------------------------------------------------- */
.text-block .grid-2 { align-items: start; }
.text-block__title h2 { margin: 0; }
.text-block__body { font-size: var(--fs-body); }
.text-block__half { width: 50%; }

.text-block__body h3 { margin-bottom: 0px; }

/* Text block with circular image (dark "Investment proposition" variant) */
.text-block--image .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 44px;
}
.text-block--image .tb-circle {
  width: min(510px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  justify-self: center;
  position: relative;
}

.tb-circle.inner-circ,
.inner-circ {
  position: absolute;
  top: 100%;
  margin-top: 30px;
  width: min(510px, 100%);
  aspect-ratio: 1 / 1;
  background-color: var(--live-green-3);
  border-radius: 50%;
  z-index: 0;
}
 
.tb-circle.inner-circ--top,
.inner-circ--top {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 30px;
}
 
.body-section.light-green {
    background-color: var(--light);
}

.text-block--image .tb-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* -------------------------------------------------------------------------
   Stats block
   cards 330px / col gap 48px / row gap 48px / grid inner padding 57px
   card: top border 8px, bottom corners radius 8px, equal height
   ------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 48px;
  padding-inline: 57px;
}

.stats-grid.wide { padding:0px; column-gap: 20px; }

.stat-card {
  display: flex;
  flex-direction: column;
  background-color: var(--grey-55);
  border-top: 8px solid var(--live-green-2);
  border-bottom-left-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
  padding: 10px 16px 40px;
}

.stat-card.alt { padding:27px; border-top: 8px solid var(--live-green-3); }

.stat-card__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--live-green-2);
  margin: 0 0 22px;
}

.stat-card.alt h3 { font-size: var(--fs-h3); }

.stat-card__figure {
  font-size: var(--fs-figure);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: var(--ls-heading);
  color: var(--live-green-2);
}
/* true/false: stat above title */
.stat-card.figure-first { flex-direction: column; }
.stat-card.figure-first .stat-card__figure { order: 1; margin-bottom: 22px; }
.stat-card.figure-first .stat-card__title  { order: 2; margin: 0; }

/* -------------------------------------------------------------------------
   Recent Posts / News cards
   image absolute top (218h x 387w), 8px border under image,
   button absolute bottom 27px/27px, card padding 27px
   ------------------------------------------------------------------------- */
.news-card {
  position: relative;
  background-color: var(--grey-55);
  padding: 0 27px;
  /* top padding = image height + spacing; bottom = 27 + button + 27 */
  padding-top: calc(56.33% + 28px);          /* image aspect 218/387 + gap */
  padding-bottom: calc(27px + 44px + 27px);  /* button height ~44px */
  /* bottom corners only — image sits square at the top */
  border-bottom-left-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
  overflow: hidden;
}
.news-card__image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  aspect-ratio: 387 / 218;
  border-bottom: 8px solid var(--live-green-2);
  object-fit: cover;
}
.news-card__date {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
}
.news-card__title {
  font-size: var(--fs-h3);
  margin: 0 0 14px;
}
.news-card__excerpt { font-size: var(--fs-body-2); }
.news-card .button-holder {
  position: absolute;
  left: 27px;
  bottom: 27px;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background-color: var(--live-green-2); color: var(--white); }
.footer-logo { display: block; margin-bottom: 80px; }  /* 80px gap under logo */
.footer-logo img { width: 140px; height: 65px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-contact { display: flex; flex-direction: column; gap: 22px; }
.footer-contact .contact-row {
  display: flex;
  align-items: flex-start;   /* first line of text aligns with the icon */
  gap: 16px;
}
/* Icons are supplied pre-coloured (light grey / white) for the dark footer.
   Each centres within a uniform 29.27px box. */
.footer-icon {
  width: 29.27px;
  height: 29.27px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center center;  /* centred vertically + horizontally */
}

.footer-contact a, .footer-contact span { font-weight: 400; }

.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-weight: 400; font-size: 1.0625rem; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-legal a { font-weight: 400; font-size: 0.9375rem; color: rgba(255,255,255,0.85); }

.footer-bottom {
  margin-top: 40px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* -------------------------------------------------------------------------
   Page Header (interior hero) — same as home-header, no button, max 500px
   ------------------------------------------------------------------------- */
.page-header {
  padding-block: 112px 0;
  max-height: 500px;
  height: 80vh;
}
.body-section.dark.page-header { background-color: var(--live-green-1); }
.page-header .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  min-height: 500px;
}
.page-header__content { padding: 0; position: relative; z-index: 2; }
.page-header__content .display,
.page-header__content h1 { color: var(--white); margin: 0; }
.page-header__media {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-header__media .hero-circle {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
}
.page-header__media .hero-circle img { width: 100%; height: 100%; object-fit: cover; }
.page-header__media .hero-circle.is-back { background-color: var(--live-green-2); }
.page-header .circle-holder {
  position: absolute;
  height: 130%;
  margin-bottom: -30px;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 60px;
}

/* -------------------------------------------------------------------------
   Objectives — numbered cards with a per-card accent top border
   ------------------------------------------------------------------------- */
.body-section.grey.objectives h2 {
   font-size: var(--fs-h3); }

   .objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 53px;
}
.objective-card {
  display: flex;
  flex-direction: column;
  min-height: 246px;
  background-color: var(--white);
  border-top: 8px solid var(--card-accent, var(--live-green-3));
  border-radius: 0px 0px 8px 8px;
  padding: 30px 32px 40px;
}
.objective-card__number {
  font-size: var(--fs-figure);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-heading);
  color: var(--card-accent, var(--live-green-3));
  margin: 0 0 auto;          /* pushes the title to the bottom */
}
.objective-card__title {
  font-weight: 600;
  line-height: 1.2;
  color: var(--live-green-2);
  margin: 32px 0 0;
}

.objective-card__title.if-title {
  font-size: var(--fs-h3);
  margin-top:0px;
  margin-bottom:32px;
}
.objectives-spacer { height: var(--section-pad-y); }

/* -------------------------------------------------------------------------
   Downloads — report cards (image + title + download button)
   ------------------------------------------------------------------------- */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.download-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0px;
  background-color: var(--grey-55);
  margin-bottom: 24px;
}
.download-card__title {
  font-size: var(--fs-h3);
  margin: 0 0 20px;
}
.download-card .button-holder { margin-top: 0; }

/* -------------------------------------------------------------------------
   Documents — filterable list of downloadable docs
   ------------------------------------------------------------------------- */
.documents__intro { max-width: 520px; }
.documents__filters {
  display: flex;
  gap: 0px;
  flex-direction: column;
  flex-wrap: wrap;
  margin: 32px 0 48px;
}
.documents__filters-inner
{  display: flex; gap: 20px;flex-wrap: wrap;}
.documents__select,
.documents__search {
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(33, 54, 48, 0.18);
  border-radius: 0px;
  background-color: var(--grey);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--live-green-2);
}
.documents__select {
  min-width: 200px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23213630' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
.documents__search { min-width: 260px; flex: 1; max-width: 340px; }
.documents__search:focus,
.documents__select:focus { outline: none; border-color: var(--live-green-3); }
.body-section.grey .documents__select { background-color:var(--white);}
.body-section.grey .documents__search { background-color:var(--white);}
.documents__list { margin-top: 24px; }
.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(33, 54, 48, 0.18);
}
.document-row__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--live-green-2);
}
.document-row .button { flex-shrink: 0; }
.documents__empty { display: none; padding: 24px 0; color: var(--live-green-2); }
.documents__empty.is-visible { display: block; }

/* -------------------------------------------------------------------------
   Feature columns (e.g. "Reasons to invest" — 3 headed checklists)
   ------------------------------------------------------------------------- */
.feature-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}
.feature-col__title {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--live-green-2);
  margin: 0 0 18px;
}
.feature-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-col li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-body-2);
}
.feature-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--live-green-3);
}

/* -------------------------------------------------------------------------
   Team cards — portrait photo (2:2.5) + name/role, then a "Read more"
   link OR a description. Same family as the recent-posts/news cards.
   ------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 48px;
  margin-top: 40px;
}
.team-card { display: flex; flex-direction: column; }
.team-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 8px solid var(--live-green-3);
}
.team-stuff .team-card__image { aspect-ratio: 1 / 0.66; }
.team-card__name { font-size: var(--fs-h3); color: var(--live-green-2); margin: 0 0 2px; }
.team-card__role { font-size: var(--fs-body-2); color: var(--live-green-2); font-weight: 400; margin: 0; }
.team-card__desc { font-size: var(--fs-body-2); margin: 14px 0 0; }

/* Description cards (Living REIT team): name/role/desc sit directly on the
   section bg, so they need the gap the image margin used to provide. */
.team-card > .team-card__name { margin-top: 18px; }

/* Carded variant (Board + Investment manager): a grey panel under the image
   holds name/role + a filled "Read more" button. Readable on white and dark. */
.team-card__body {
  background-color: var(--grey-55);
  padding: 22px 24px 26px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
/* "Read more" reuses .button.main; this just makes it compact + spaced. */
.team-card__more {
  margin-top: 18px;
  min-width: 0;
  padding: 10px 18px;
  gap: 12px;
}

/* -------------------------------------------------------------------------
   Single team / bio — square portrait (left) + name/role/LinkedIn/bio/CTA
   (right). On the grey section bg. Used by single-team.php / .html.
   ------------------------------------------------------------------------- */
.persona-grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  column-gap: 52px;
  align-items: start;
  width: 100%;        /* centres the block in the 1200 container */
  margin-inline: auto;
}
.persona-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 460px;
}
.persona-name { font-size: var(--fs-h2); color: var(--live-green-2); margin: 0 0 6px; }
.persona-role { font-size: var(--fs-h3); color: var(--live-green-2); font-weight: 600; margin: 0 0 22px; }
.persona-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 500;
  color: var(--live-green-2);
}
.persona-linkedin__icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--live-green-3); }
.persona-linkedin__icon svg { width: 100%; height: 100%; display: block; }
.persona-linkedin:hover { color: var(--live-green-3); }
.persona-bio > :first-child { margin-top: 0; }
.persona-bio > :last-child { margin-bottom: 0; }
.single-team .button-holder { margin-top: 32px; }

/* -------------------------------------------------------------------------
   Single post / blog — slim dark header (reuses .simple-header) with a
   meta line + title, then a 2-col body: article content + a sticky links
   sidebar (Categories / Read more). Used by single-post.php / .html.
   ------------------------------------------------------------------------- */
.single-post-header .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 20px;
  color: var(--light);
  font-size: var(--fs-body-2);
}
.single-post-header .post-meta .sep { opacity: 0.5; }
.single-post-header .post-title { font-size: var(--fs-h1); max-width: 16ch; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 64px;
  align-items: start;
}

/* --- Article content (WYSIWYG prose) --- */
.post-content__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 8px solid var(--live-green-3);
  margin-bottom: 36px;
}
.post-content > :first-child { margin-top: 0; }
.post-content > :last-child { margin-bottom: 0; }
.post-content h2 { font-size: var(--fs-h2); margin: 1.4em 0 0.5em; }
.post-content h3 { font-size: var(--fs-h3); margin: 1.4em 0 0.4em; }
.post-content p { margin: 0 0 1.2em; }
.post-content ul,
.post-content ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.post-content li { margin-bottom: 0.5em; }
.post-content a {
  color: var(--live-green-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: var(--live-green-2); }
.post-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--live-green-3);
  font-size: var(--fs-h3);
  line-height: 1.4;
}
.post-content img { max-width: 100%; height: auto; }

/* --- Links sidebar --- */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.post-sidebar__title {
  margin: 0 0 4px;
  padding-bottom: 14px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--live-green-2);
  border-bottom: 1px solid rgba(33, 54, 48, 0.18);
}
.post-sidebar__link {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid rgba(33, 54, 48, 0.18);
  color: var(--live-green-2);
  font-weight: 600;
  line-height: 1.35;
}
.post-sidebar__link:hover { color: var(--live-green-3); }
.post-sidebar__date {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-body-3);
  font-weight: 400;
  color: var(--live-green-3);
}

/* -------------------------------------------------------------------------
   Logo grid — white cards holding a partner/platform logo. Used by
   "How to Invest" (6 fund-platform logos) and "Research" (provider logos).
   Sits under a .text-block (title left / body right).
   ------------------------------------------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.logo-grid--2 { grid-template-columns: repeat(2, 1fr); }
.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 30px;
  background-color: var(--white);
  border-radius: var(--radius-card);
}
.logo-card img { max-width: 72%; max-height: 64px; object-fit: contain; }
/* text fallback while real logo SVGs are pending */
.logo-card span { font-size: 1.25rem; font-weight: 700; color: var(--live-green-2); }

/* -------------------------------------------------------------------------
   Documents — dated table variant. Base .documents/.document-row live above
   (title + Download). `.documents--table` adds a Date column + header row,
   used by Results centre (filter by year) and Documents (filter by type).
   ------------------------------------------------------------------------- */
.documents__label { font-size: 1.25rem; margin: 0 0 14px; color: var(--live-green-2); }

.documents--table .document-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  column-gap: 24px;
}
.document-row__date { font-size: var(--fs-body-2); color: var(--live-green-2); }
.document-row__report { justify-self: end; }
/* header label row */
.documents--table .document-row.is-head { padding: 0 0 16px; border-color: var(--live-green-3); }
.documents--table .document-row.is-head > * {
  font-weight: 300;
  font-size: var(--fs-body-2);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Reduced, proportional type scale — base steps down to 18px and
     titles/text scale with it, continuing down toward mobile. */
  :root {
    --fs-display: clamp(2.1875rem, 1.3rem + 3.6vw, 3.5625rem); /* 35 → 57 */
    --fs-h1:      clamp(2.1875rem, 2.1rem + 0.35vw, 2.3125rem);/* 35 → 37 */
    --fs-h2:      clamp(2.1875rem, 2.1rem + 0.35vw, 2.3125rem);/* 35 → 37 */
    --fs-h3:      clamp(1.5rem, 1.42rem + 0.35vw, 1.625rem);   /* 24 → 26 */
    --fs-figure:  clamp(3.25rem, 2.75rem + 2.1vw, 4.0625rem);  /* 52 → 65 */
    --fs-body:    18px;                                        /* base floor */
    --fs-body-2:  clamp(0.875rem, 0.8rem + 0.3vw, 1rem);       /* 14 → 16 */
    --fs-body-3:  0.875rem;                                    /* 14 */
    --fs-button:  1rem;                                        /* 16 */
  }

  .home-header { min-height: 0; padding-top:60px; padding-bottom:60px; height:auto; min-height: auto;}
  .page-header { padding-top:60px; padding-bottom:60px; min-height: 0; height:420px; max-height:none; }

  .objectives-grid { grid-template-columns: 1fr 1fr; }
  .feature-cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .persona-grid { grid-template-columns: 1fr; row-gap: 40px; }

  /* article + sidebar stack; sidebar drops below the content */
  .post-layout { grid-template-columns: 1fr; row-gap: 48px; }
  .single-post-header .post-title { max-width: none; }

  .logo-grid { grid-template-columns: 1fr 1fr; }

  /* nav reverts to a simple logo-left / burger-right row */
  .site-header { padding-block: 20px; }
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-logo { width: auto; }
  .site-logo img { width: auto; height: 48px; }
  .main-nav { display: none; }
  .site-header .nav-contact { display: none; }
  .nav-burger { display: flex; position: static; }
  .stats-grid { padding-inline: 0; column-gap: 20px; }
  .text-block__half { width: 100%; } 
  .home-header .circle-holder.image-section {
    right: -400px; height:375px; max-height: 375px; top:0px; gap:20px;right:-200px;
  } 
  .body-section.dark.home-header.image-only.image-only { height:375px; max-height: 375px; }
}

@media (max-width: 767px) {
  .site-header { padding-inline: var(--section-pad-x-mobile); }

  .pagination {
    width:100%;
      align-items: start;
    }

    .text-block--image .tb-circle { justify-self: start; width: min(400px, 100%); }

    .text-block--image .container {
      
    margin-bottom:0px; }

    .text-block--image.reverse .container {
      display: flex;
      flex-direction: column-reverse; }

    .tb-circle.inner-circ {
      top: 0%;
      margin-top: 0px;
      left:100%;
      margin-left: 30px;
    }

    .tb-circle.inner-circ--top {
      top: 0%;
      bottom: 0%;
      margin-top: 0;
      margin-bottom: 0px;
      left:100%;
      margin-left: 30px;
    }
  

  .home-header { padding-top:40px; padding-bottom:0px; }
  .home-header .container { grid-template-columns: 1fr; min-height: 0; }
  .home-header__content { padding-block: 40px 0; }
  /* clamp removed for desktop — restore an in-flow, fitted circle on mobile */
  .home-header__media { padding-bottom: 0px; height:300px; min-height: 0; }

.home-header .circle-holder { height:100%; gap: 30px; margin-bottom:-60px; }

  /* page-header stacks the same way as the home header */
  .page-header { padding-top:40px; padding-bottom:0; }
  .page-header .container { grid-template-columns: 1fr; min-height: 0; }
  .page-header__content { padding-block: 40px 0; }
  .page-header__media { height: 300px; min-height: 0; }
  .page-header .circle-holder { height: 100%; gap: 30px; margin-bottom: -60px; }

  .objectives-grid { grid-template-columns: 1fr; }
  .objective-card { height: auto; min-height: auto; }
  .downloads-grid { grid-template-columns: 1fr; gap: 32px; }
  .document-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* dated table collapses to a stack; drop the header-label row */
  .documents--table .document-row { grid-template-columns: 1fr; row-gap: 10px; }
  .documents--table .document-row.is-head { display: none; }
  .document-row__report { justify-self: start; }

  .text-block--image .container { grid-template-columns: 1fr; gap: 30px; }
  .feature-cols { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: 1fr; row-gap: 30px; }
  .logo-grid, .logo-grid--2 { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-card { padding-bottom: 22px; }
  .stat-card__title { margin-bottom: 12px; }

  .documents__select { min-width: 100%; }
  .documents__search { min-width: 100%; }

  .footer-cols { grid-template-columns: 1fr; gap: 36px; }
}
