/* =========================================================
   GRAFTON NATIVE INSIGHT / BLOG
   v1.8 — selectable hero treatments
   ========================================================= */

.gg-insight {
  --navy:#152B4D;
  --gold:#8A6508;
  --paper:#FAF8F3;
  --white:#FFFFFF;
  --soft-blue:#D9E5ED;
  --warm-gold:#D8BE73;
  --text:#49566B;
  --soft:#78849A;
  --line:rgba(21,43,77,.15);

  background:var(--paper);
  color:var(--text);
  font-family:"Source Sans 3",Arial,sans-serif;
}

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

.gg-insight .gg-shell {
  width:min(1160px,calc(100% - 48px));
  margin-inline:auto;
}


/* =========================================================
   SHARED HERO ELEMENTS
   ========================================================= */

.gg-insight-hero {
  color:var(--navy);
}

.gg-insight__crumbs {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;

  margin:0 0 28px;

  font:400 10px/1.4 "IBM Plex Mono",monospace;
  letter-spacing:.13em;
  text-transform:uppercase;

  color:var(--soft);
}

.gg-insight__crumbs a {
  color:inherit;
  text-decoration:none;
}

.gg-insight__crumbs a:hover {
  color:var(--gold);
}

.gg-insight__eyebrow {
  font:500 10px/1.4 "IBM Plex Mono",monospace;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--gold);
}

.gg-insight-hero h1 {
  margin:16px 0 24px;

  font:800 clamp(42px,5.1vw,72px)/.92 "Saira Condensed",sans-serif;
  letter-spacing:-.02em;
  text-transform:uppercase;

  color:var(--navy);
}

.gg-insight__hero-deck {
  max-width:720px;
  margin:0 0 24px;

  font:400 clamp(19px,1.8vw,23px)/1.45 "Saira",sans-serif;

  color:var(--navy);
}

.gg-insight__meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px 22px;

  font:400 10px/1.4 "IBM Plex Mono",monospace;
  letter-spacing:.12em;
  text-transform:uppercase;

  color:var(--soft);
}


/* =========================================================
   HERO BACKGROUND OPTIONS
   Text color is automatic.
   ========================================================= */

.gg-insight-hero--bg-cream {
  background:var(--paper);
}

.gg-insight-hero--bg-white {
  background:#fff;
}

.gg-insight-hero--bg-soft-blue {
  background:var(--soft-blue);
}

.gg-insight-hero--bg-gold {
  background:var(--warm-gold);
}

.gg-insight-hero--bg-navy {
  background:var(--navy);
  color:#fff;
}

.gg-insight-hero--bg-navy h1,
.gg-insight-hero--bg-navy .gg-insight__hero-deck {
  color:#fff;
}

.gg-insight-hero--bg-navy .gg-insight__crumbs,
.gg-insight-hero--bg-navy .gg-insight__meta {
  color:rgba(255,255,255,.67);
}

.gg-insight-hero--bg-navy .gg-insight__crumbs a:hover {
  color:#DDB526;
}

.gg-insight-hero--bg-navy .gg-insight__eyebrow {
  color:#DDB526;
}


/* =========================================================
   OPTION 1 — EDITORIAL / CLASSIC
   ========================================================= */

.gg-insight-hero--editorial {
  padding:56px 0 34px;
}

.gg-insight-hero--editorial h1 {
  max-width:760px;
}

.gg-insight-hero--editorial .gg-insight__meta {
  max-width:760px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}

.gg-insight-hero--bg-navy.gg-insight-hero--editorial .gg-insight__meta {
  border-bottom-color:rgba(255,255,255,.2);
}

.gg-insight-hero--editorial .gg-insight__hero-deck {
  margin-top:24px;
}

.gg-insight__featured {
  margin-top:0;
  padding-top:34px;
}

.gg-insight__featured-image {
  display:block;
  width:min(760px,100%);
  max-height:480px;
  height:auto;
  object-fit:cover;
}

.gg-insight__featured figcaption {
  width:min(760px,100%);
  margin-top:10px;

  font:400 10px/1.45 "IBM Plex Mono",monospace;
  letter-spacing:.13em;
  text-transform:uppercase;

  color:var(--soft);
}


/* =========================================================
   OPTIONS 2 + 3 — CINEMATIC SPLIT HERO
   ========================================================= */

.gg-insight-hero--image-left,
.gg-insight-hero--image-right {
  padding:38px 0 52px;
}

.gg-insight-hero__grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:54px;
  align-items:center;

  min-height:430px;
}

.gg-insight-hero--image-right .gg-insight-hero__image-wrap {
  order:2;
}

.gg-insight-hero--image-right .gg-insight-hero__copy {
  order:1;
}

.gg-insight-hero__image-wrap {
  min-width:0;
}

.gg-insight-hero__image {
  display:block;

  width:100%;
  height:390px;

  object-fit:cover;

  background:#d9d9d9;
}

.gg-insight-hero--image-center .gg-insight-hero__image {
  object-position:center;
}

.gg-insight-hero--image-top .gg-insight-hero__image {
  object-position:center top;
}

.gg-insight-hero--image-bottom .gg-insight-hero__image {
  object-position:center bottom;
}

.gg-insight-hero__caption {
  margin-top:10px;

  font:400 10px/1.45 "IBM Plex Mono",monospace;
  letter-spacing:.13em;
  text-transform:uppercase;

  color:var(--soft);
}

.gg-insight-hero--bg-navy .gg-insight-hero__caption {
  color:rgba(255,255,255,.58);
}

.gg-insight-hero__copy h1 {
  max-width:540px;
  font-size:clamp(42px,4.4vw,64px);
}

.gg-insight-hero__copy .gg-insight__hero-deck {
  max-width:540px;
  font-size:19px;
}

.gg-insight-hero__copy .gg-insight__meta {
  margin-top:26px;
}


/* =========================================================
   ARTICLE + TOC RAIL
   ========================================================= */

.gg-insight__body {
  display:grid;
  grid-template-columns:minmax(0,760px) 220px;
  gap:86px;
  align-items:start;

  padding-top:46px;
  padding-bottom:72px;
}

.gg-insight__content {
  min-width:0;
}

.gg-insight__gutenberg {
  font-size:17px;
  line-height:1.7;
  color:var(--text);
}

.gg-insight__gutenberg p {
  margin:0 0 20px;
}

/*
 * H2 remains available for major page-level modules/CTA-style
 * content that is deliberately inserted into Gutenberg.
 */
.gg-insight__gutenberg h2 {
  margin:52px 0 18px;
  font:700 30px/1.08 "Saira",sans-serif;
  color:var(--navy);
}

/* H3 = editorial article section */
.gg-insight__gutenberg h3 {
  position:relative;

  margin:48px 0 18px;
  padding-top:17px;

  font:800 25px/1.05 "Saira Condensed",sans-serif;
  text-transform:uppercase;

  color:var(--navy);
}

.gg-insight__gutenberg h3::before {
  content:"";

  position:absolute;
  top:0;
  left:0;

  width:44px;
  height:3px;

  background:var(--gold);
}

.gg-insight__gutenberg h4 {
  margin:32px 0 12px;

  font:700 19px/1.2 "Saira",sans-serif;
  color:var(--navy);
}

.gg-insight__gutenberg ul,
.gg-insight__gutenberg ol {
  margin:0 0 24px;
  padding-left:26px;
}

.gg-insight__gutenberg li {
  margin:7px 0;
}

.gg-insight__gutenberg li::marker {
  color:var(--gold);
}

.gg-insight__gutenberg blockquote {
  margin:34px 0;
  padding:4px 0 4px 22px;

  border-left:3px solid var(--gold);

  font:400 24px/1.35 "Saira",sans-serif;
  color:var(--navy);
}

.gg-insight__gutenberg img {
  max-width:100%;
  height:auto;
}

.gg-insight__gutenberg figure {
  margin:32px 0;
}

.gg-insight__gutenberg table {
  width:100%;

  margin:28px 0;

  border-collapse:collapse;

  font-size:14px;
}

.gg-insight__gutenberg th,
.gg-insight__gutenberg td {
  padding:11px 12px;

  border:1px solid var(--line);

  vertical-align:top;
}

.gg-insight__gutenberg th {
  font-weight:700;
  color:var(--navy);
}


/* ---------- Rail ---------- */

.gg-insight__rail {
  min-width:0;
}

.gg-insight__rail-inner {
  position:sticky;
  top:110px;
}

.gg-insight__rail-author {
  display:block;

  margin-bottom:22px;

  font:700 18px/1.2 "Saira",sans-serif;
  color:var(--navy);
}

.gg-insight__toc-title {
  display:flex;
  justify-content:space-between;

  padding:0 0 14px;

  border-bottom:1px solid var(--line);

  font:600 14px/1.3 "Saira",sans-serif;
  color:var(--navy);
}

.gg-insight__toc {
  margin:16px 0 0;
  padding-left:22px;

  font-size:13px;
  line-height:1.45;
}

.gg-insight__toc li {
  margin:0 0 11px;
  padding-left:4px;
}

.gg-insight__toc a {
  color:var(--text);
  text-decoration:none;
}

.gg-insight__toc a:hover {
  color:var(--gold);
}


/* =========================================================
   AUTHOR
   ========================================================= */

.gg-insight__author {
  display:flex;
  gap:18px;
  align-items:center;

  margin-top:56px;
  padding-top:24px;

  border-top:1px solid var(--line);

  color:var(--navy);
}

.gg-insight__author img {
  width:58px;
  height:58px;
  object-fit:cover;
}

.gg-insight__author-label,
.gg-insight__service-kicker,
.gg-insight__related-kicker {
  font:500 10px/1.4 "IBM Plex Mono",monospace;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--gold);
}

.gg-insight__author strong {
  display:block;

  margin:4px 0;

  font:600 15px/1.3 "Saira",sans-serif;
}

.gg-insight__author p {
  margin:3px 0 0;
  font-size:13px;
}


/* =========================================================
   RELATED SERVICE BAND
   ========================================================= */

.gg-insight__service {
  padding:54px 0;

  background:var(--navy);
  color:#fff;
}

.gg-insight__service-inner {
  display:flex;
  justify-content:space-between;
  gap:50px;
  align-items:center;
}

.gg-insight__service h2 {
  margin:10px 0 8px;

  font:800 38px/1 "Saira Condensed",sans-serif;
  text-transform:uppercase;

  color:#fff;
}

.gg-insight__service p {
  max-width:620px;

  margin:0;

  font-size:16px;
}

.gg-insight__service-actions {
  display:flex;
  flex-direction:column;
  gap:10px;

  min-width:170px;
}

.gg-btn {
  display:inline-block;

  padding:13px 18px;

  text-align:center;
  text-decoration:none!important;

  font:600 10px/1 "IBM Plex Mono",monospace;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.gg-btn--gold {
  background:#DDB526;
  color:var(--navy)!important;
}

.gg-btn--light {
  background:#fff;
  color:var(--navy)!important;
}


/* =========================================================
   RELATED INSIGHTS
   ========================================================= */

.gg-insight__related {
  padding:52px 0 66px;
}

.gg-insight__related-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:34px;

  margin-top:22px;
}

.gg-insight-card {
  padding-top:16px;
  border-top:1px solid var(--line);
}

.gg-insight-card__meta {
  font:400 9px/1.4 "IBM Plex Mono",monospace;
  letter-spacing:.11em;
  text-transform:uppercase;

  color:var(--gold);
}

.gg-insight-card h3 {
  margin:10px 0 8px;

  font:600 18px/1.25 "Saira",sans-serif;
}

.gg-insight-card h3 a {
  color:var(--navy);
  text-decoration:none;
}

.gg-insight-card p {
  margin:0;

  font-size:14px;
  line-height:1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:900px) {

  .gg-insight-hero__grid {
    grid-template-columns:1fr 1fr;
    gap:34px;
    min-height:380px;
  }

  .gg-insight-hero__image {
    height:340px;
  }

  .gg-insight-hero__copy h1 {
    font-size:clamp(38px,6vw,54px);
  }

  .gg-insight__body {
    grid-template-columns:1fr;
    gap:36px;
  }

  .gg-insight__rail {
    order:-1;
  }

  .gg-insight__rail-inner {
    position:static;
  }

  .gg-insight__toc {
    columns:2;
  }

  .gg-insight__service-inner {
    align-items:flex-start;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:767px) {

  .gg-insight .gg-shell {
    width:min(100% - 32px,1160px);
  }

  .gg-insight-hero--editorial {
    padding-top:34px;
  }

  .gg-insight-hero h1 {
    font-size:44px;
  }

  .gg-insight__meta {
    gap:8px 16px;
  }

  .gg-insight__hero-deck {
    font-size:19px;
  }

  .gg-insight__featured {
    padding-top:24px;
  }

  /* Split heroes become image over copy on mobile,
     regardless of left/right desktop choice. */

  .gg-insight-hero--image-left,
  .gg-insight-hero--image-right {
    padding:28px 0 36px;
  }

  .gg-insight-hero__grid {
    display:flex;
    flex-direction:column;

    min-height:0;
    gap:26px;
  }

  .gg-insight-hero--image-right .gg-insight-hero__image-wrap,
  .gg-insight-hero--image-right .gg-insight-hero__copy {
    order:initial;
  }

  .gg-insight-hero__image-wrap {
    width:100%;
  }

  .gg-insight-hero__image {
    height:270px;
  }

  .gg-insight-hero__copy h1 {
    font-size:44px;
  }

  .gg-insight-hero__copy .gg-insight__hero-deck {
    font-size:18px;
  }

  .gg-insight__body {
    padding-top:32px;
    padding-bottom:48px;
  }

  .gg-insight__gutenberg {
    font-size:16px;
  }

  .gg-insight__gutenberg h3 {
    font-size:23px;
  }

  .gg-insight__toc {
    columns:1;
  }

  .gg-insight__service-inner {
    display:block;
  }

  .gg-insight__service-actions {
    margin-top:28px;
    max-width:220px;
  }

  .gg-insight__related-grid {
    grid-template-columns:1fr;
  }

}
