/* Editorial article mastheads + visual cross-navigation for Advice and case studies. */

/* --- Advice: unmistakably an article, not another service landing page. --- */
body.ad-advice-page .article-hero.article-hero--editorial{
  padding:76px 0 0!important;
  background:linear-gradient(180deg,#F7F5F0 0%,#F7F5F0 100%)!important;
  border-bottom:1px solid rgba(7,26,48,.12);
}
body.ad-advice-page .article-hero--editorial .article-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  align-items:start!important;
}
body.ad-advice-page .article-hero--editorial .article-hero-grid>div:first-child{
  width:min(100%,980px);
  padding-bottom:38px;
}
body.ad-advice-page .article-hero--editorial .crumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 24px;
  color:#68737b;
  font-size:.72rem;
  font-weight:750;
  letter-spacing:.02em;
}
body.ad-advice-page .article-hero--editorial .crumb a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid rgba(7,26,48,.25);
}
body.ad-advice-page .article-hero--editorial .kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:.65rem;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:#8f6c3e;
}
body.ad-advice-page .article-hero--editorial .kicker:before{
  content:"";
  width:26px;
  height:1px;
  background:currentColor;
}
body.ad-advice-page .article-hero--editorial h1{
  max-width:1120px!important;
  margin:14px 0 18px!important;
  font-size:clamp(3rem,5.2vw,5.45rem)!important;
  line-height:.98!important;
  letter-spacing:-.055em!important;
  text-wrap:balance;
}
body.ad-advice-page .article-hero--editorial .article-dek{
  max-width:820px!important;
  margin:0!important;
  font-size:clamp(1.03rem,1.35vw,1.22rem)!important;
  line-height:1.72!important;
  color:#4f5b63!important;
}
body.ad-advice-page .article-hero--editorial .article-meta{
  display:flex!important;
  gap:0!important;
  flex-wrap:wrap!important;
  margin:28px 0 0!important;
  padding:15px 0!important;
  border-top:1px solid rgba(7,26,48,.13);
  border-bottom:1px solid rgba(7,26,48,.13);
  color:#65717a!important;
  font-size:.66rem!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
body.ad-advice-page .article-hero--editorial .article-meta span{
  padding:0 18px;
  border-left:1px solid rgba(7,26,48,.15);
}
body.ad-advice-page .article-hero--editorial .article-meta span:first-child{
  padding-left:0;
  border-left:0;
}
body.ad-advice-page .article-hero--editorial figure{
  width:100%!important;
  min-height:0!important;
  aspect-ratio:16/7!important;
  margin:0!important;
  border-radius:18px 18px 0 0!important;
  overflow:hidden!important;
  background:#d9d9d5!important;
}
body.ad-advice-page .article-hero--editorial figure img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  object-fit:cover!important;
}

.article-jumpbar,.case-jumpbar{
  position:sticky;
  top:78px;
  z-index:30;
  border-bottom:1px solid rgba(7,26,48,.12);
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.article-jumpbar .wrap,.case-jumpbar .gv-wrap{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:48px;
  overflow-x:auto;
  scrollbar-width:none;
}
.article-jumpbar .wrap::-webkit-scrollbar,.case-jumpbar .gv-wrap::-webkit-scrollbar{display:none}
.article-jumpbar a,.case-jumpbar a{
  flex:0 0 auto;
  padding:9px 12px;
  border-radius:999px;
  color:#34414a;
  text-decoration:none;
  font-size:.7rem;
  font-weight:800;
  white-space:nowrap;
}
.article-jumpbar a:hover,.case-jumpbar a:hover{background:#F7F5F0;color:#071A30}

body.ad-advice-page .article-main{padding-top:62px!important}
body.ad-advice-page .article-layout{grid-template-columns:minmax(0,760px) 280px!important;gap:76px!important}
body.ad-advice-page .article-copy{font-size:1.04rem!important;line-height:1.9!important}
body.ad-advice-page .article-copy p{max-width:72ch}
body.ad-advice-page .article-toc{
  padding:24px 26px!important;
  border-radius:12px!important;
  background:#F7F5F0!important;
  box-shadow:none!important;
}
body.ad-advice-page .article-side{
  top:150px!important;
  padding:18px 0 0!important;
}
body.ad-advice-page .article-side>a{
  padding:12px 4px!important;
  font-size:.86rem!important;
}

/* --- Visual shelves: related advice and real projects are recognisable at a glance. --- */
body.ad-advice-page .editorial-projects,
body.ad-advice-page .editorial-related-advice,
body.ad-case-page .case-more{
  padding:72px 0!important;
  border-top:1px solid rgba(7,26,48,.12)!important;
  background:#F7F5F0!important;
}
body.ad-advice-page .editorial-related-advice{background:#fff!important}
body.ad-advice-page .editorial-projects .related-head,
body.ad-advice-page .editorial-related-advice .related-head,
body.ad-case-page .case-more__head{
  display:flex!important;
  align-items:end!important;
  justify-content:space-between!important;
  gap:32px!important;
  margin:0 0 26px!important;
}
body.ad-case-page .case-more__head>div>span{
  display:block;
  color:#9a774b;
  font-size:.64rem;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
body.ad-advice-page .editorial-projects .related-head h2,
body.ad-advice-page .editorial-related-advice .related-head h2,
body.ad-case-page .case-more__head h2{
  margin:8px 0 0!important;
  max-width:800px;
  font-size:clamp(2.25rem,4vw,3.8rem)!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
}
body.ad-case-page .case-more__head>a,
body.ad-advice-page .editorial-projects .page-link,
body.ad-advice-page .editorial-related-advice .page-link{
  flex:0 0 auto;
  color:inherit;
  font-size:.74rem;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:4px;
}
.editorial-nav-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.editorial-nav-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(7,26,48,.13);
  border-radius:14px;
  background:#fff;
  color:#071A30;
  text-decoration:none;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.editorial-nav-card:hover{
  transform:translateY(-3px);
  border-color:rgba(154,119,75,.45);
  box-shadow:0 14px 34px rgba(7,26,48,.08);
}
.editorial-nav-card__image{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#ddd;
}
.editorial-nav-card__image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}
.editorial-nav-card:hover .editorial-nav-card__image img{transform:scale(1.025)}
.editorial-nav-card__copy{display:flex;flex:1;flex-direction:column;padding:18px 18px 20px}
.editorial-nav-card__meta{
  color:#956f3e;
  font-size:.62rem;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.editorial-nav-card__copy strong{
  display:block;
  margin:8px 0 18px;
  font-size:1.18rem;
  line-height:1.18;
  letter-spacing:-.025em;
}
.editorial-nav-card__copy b{margin-top:auto;font-size:.72rem}

/* Upgrade existing related-advice cards without duplicating their copy. */
body.ad-advice-page .editorial-related-advice .related-grid,
body.ad-case-page .ad-context__grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
body.ad-case-page .ad-context__grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.ad-advice-page .editorial-related-advice .related-card,
body.ad-case-page .ad-context__card{
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(7,26,48,.13)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.ad-advice-page .editorial-related-advice .related-card:hover,
body.ad-case-page .ad-context__card:hover{
  transform:translateY(-3px)!important;
  border-color:rgba(154,119,75,.45)!important;
  box-shadow:0 14px 34px rgba(7,26,48,.08)!important;
}
.editorial-related-thumb{
  display:block!important;
  width:100%!important;
  aspect-ratio:16/10!important;
  overflow:hidden!important;
  background:#ddd!important;
}
.editorial-related-thumb img{display:block;width:100%;height:100%;object-fit:cover}
body.ad-advice-page .editorial-related-advice .related-card>span:not(.editorial-related-thumb),
body.ad-advice-page .editorial-related-advice .related-card>h3,
body.ad-advice-page .editorial-related-advice .related-card>b,
body.ad-case-page .ad-context__card>span:not(.editorial-related-thumb),
body.ad-case-page .ad-context__card>h3,
body.ad-case-page .ad-context__card>p,
body.ad-case-page .ad-context__card>b{margin-left:18px!important;margin-right:18px!important}
body.ad-advice-page .editorial-related-advice .related-card>span:not(.editorial-related-thumb),
body.ad-case-page .ad-context__card>span:not(.editorial-related-thumb){margin-top:18px!important}
body.ad-advice-page .editorial-related-advice .related-card>h3,
body.ad-case-page .ad-context__card>h3{margin-top:8px!important;margin-bottom:10px!important;font-size:1.18rem!important;line-height:1.18!important}
body.ad-advice-page .editorial-related-advice .related-card>b,
body.ad-case-page .ad-context__card>b{margin-top:auto!important;margin-bottom:18px!important;padding-top:12px!important;font-size:.72rem!important}
body.ad-case-page .ad-context__card>p{font-size:.78rem!important;line-height:1.55!important;color:#66717a!important}

body.ad-case-page .case-more{background:#F7F5F0!important}
body.ad-case-page .ad-context{scroll-margin-top:140px}
body.ad-case-page .case-more{scroll-margin-top:140px}

@media(max-width:980px){
  body.ad-advice-page .article-layout{grid-template-columns:1fr!important;gap:44px!important}
  body.ad-advice-page .article-side{position:static!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
  body.ad-advice-page .article-side h2,body.ad-advice-page .article-side .side-cta{grid-column:1/-1}
  .editorial-nav-grid,
  body.ad-advice-page .editorial-related-advice .related-grid,
  body.ad-case-page .ad-context__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:700px){
  body.ad-advice-page .article-hero.article-hero--editorial{padding-top:52px!important}
  body.ad-advice-page .article-hero--editorial .article-hero-grid>div:first-child{padding-bottom:26px}
  body.ad-advice-page .article-hero--editorial h1{font-size:clamp(2.55rem,12vw,4rem)!important;line-height:1!important}
  body.ad-advice-page .article-hero--editorial .article-dek{font-size:1rem!important;line-height:1.65!important}
  body.ad-advice-page .article-hero--editorial .article-meta{gap:8px 0!important;padding:13px 0!important}
  body.ad-advice-page .article-hero--editorial .article-meta span{padding:0 10px!important}
  body.ad-advice-page .article-hero--editorial .article-meta span:first-child{padding-left:0!important}
  body.ad-advice-page .article-hero--editorial figure{aspect-ratio:4/3!important;border-radius:12px 12px 0 0!important}
  .article-jumpbar,.case-jumpbar{top:66px}
  .article-jumpbar .wrap,.case-jumpbar .gv-wrap{min-height:46px}
  body.ad-advice-page .article-main{padding-top:46px!important}
  body.ad-advice-page .article-side{display:block}
  body.ad-advice-page .editorial-projects,
  body.ad-advice-page .editorial-related-advice,
  body.ad-case-page .case-more{padding:56px 0!important}
  body.ad-advice-page .editorial-projects .related-head,
  body.ad-advice-page .editorial-related-advice .related-head,
  body.ad-case-page .case-more__head{display:block!important;margin-bottom:22px!important}
  body.ad-case-page .case-more__head>a,
  body.ad-advice-page .editorial-projects .page-link,
  body.ad-advice-page .editorial-related-advice .page-link{display:inline-block;margin-top:18px}
  .editorial-nav-grid,
  body.ad-advice-page .editorial-related-advice .related-grid,
  body.ad-case-page .ad-context__grid{
    display:flex!important;
    grid-template-columns:none!important;
    gap:12px!important;
    overflow-x:auto!important;
    scroll-snap-type:x mandatory!important;
    scrollbar-width:none!important;
    padding-bottom:6px!important;
  }
  .editorial-nav-grid::-webkit-scrollbar,
  body.ad-advice-page .editorial-related-advice .related-grid::-webkit-scrollbar,
  body.ad-case-page .ad-context__grid::-webkit-scrollbar{display:none}
  .editorial-nav-card,
  body.ad-advice-page .editorial-related-advice .related-card,
  body.ad-case-page .ad-context__card{
    flex:0 0 84%!important;
    max-width:84%!important;
    scroll-snap-align:start!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .editorial-nav-card,.editorial-nav-card__image img,
  body.ad-advice-page .editorial-related-advice .related-card,
  body.ad-case-page .ad-context__card{transition:none!important}
}
