/* ============================================================
   HALIZONA, /insights/ article pages
   Companion pages to the LinkedIn carousels. Built to be read by
   people and quoted by answer engines, so the structure is plain:
   question headings, a direct answer in the first sentence under
   each one, and a takeaways block that stands on its own.
   Tokens and shared furniture come from site.css.
   ============================================================ */

/* ---------- hero ---------- */
.ins-hero{
  position:relative;
  background:url("/assets/images/website-flat.jpg") center/cover var(--green);
  border-radius:0 0 36px 36px;
  padding:clamp(150px,18vh,210px) 0 clamp(64px,8vh,96px);
  overflow:hidden;
}
.ins-hero .wrap{max-width:1000px}
.ins-hero .eyebrow{color:var(--purple);margin-bottom:14px}
.ins-hero h1{
  font-size:clamp(2.1rem,5.4vw,4rem);
  color:var(--purple);text-transform:uppercase;letter-spacing:-.02em;line-height:1.06;
  max-width:16ch;
}
.ins-hero .standfirst{
  margin-top:22px;max-width:56ch;
  font-size:clamp(1.05rem,1.9vw,1.4rem);line-height:1.5;font-weight:600;
  color:var(--purple);
}
.ins-meta{
  margin-top:26px;display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;
  font-size:.85rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(48,0,96,.7);
}
.ins-dl{
  display:inline-flex;align-items:center;gap:.6rem;
  margin-top:26px;padding:.9rem 1.5rem;border-radius:999px;
  background:var(--purple);color:#fff;
  font-weight:800;letter-spacing:.05em;text-transform:uppercase;font-size:.9rem;
  transition:transform .25s var(--ease),background .25s;
}
.ins-dl:hover{background:var(--purple-deep);transform:translateY(-2px)}
.ins-dl svg{width:18px;height:18px}

/* ---------- article body ---------- */
.ins-body{padding:clamp(56px,7vh,88px) 0 clamp(72px,9vh,110px)}
.ins-body .wrap{max-width:860px}

.ins-body h2{
  font-size:clamp(1.5rem,3vw,2.2rem);
  margin:clamp(44px,5vh,64px) 0 .7rem;
  letter-spacing:-.02em;
}
.ins-body h2:first-of-type{margin-top:0}
.ins-body h3{font-size:clamp(1.15rem,2vw,1.45rem);margin:2rem 0 .5rem}
.ins-body p{font-size:1.08rem;line-height:1.65;margin-bottom:1.1rem;color:#3d2a58}
.ins-body p strong,.ins-body li strong{color:var(--purple);font-weight:800}
.ins-body a:not(.ins-dl):not(.btn){
  color:var(--green-deep);font-weight:700;
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px;
}

/* The shared scorecard prompt sits INSIDE .ins-body on these pages, and the
   prose rules above outrank the component's own colours in site.css by source
   order alone. Its paragraph rendered #3d2a58 on the purple-deep panel,
   measured live 27 Aug 2026. Re-assert the component contract here, scoped,
   so article prose keeps its colours and the panel keeps its own. */
.ins-body .scorecard-cta h2{font-size:clamp(1.5rem,2.6vw,2rem);margin:.35rem 0 0}
.ins-body .scorecard-cta p{color:rgba(255,255,255,.85);margin:.7rem 0 0}

/* the block answer engines lift */
.takeaways{
  background:var(--bg-alt);
  border:2px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(28px,4vw,44px);
  margin-bottom:clamp(40px,5vh,60px);
}
.takeaways h2{margin:0 0 1.1rem;font-size:clamp(1.25rem,2.2vw,1.6rem)}
.takeaways ul{display:flex;flex-direction:column;gap:.9rem}
.takeaways li{
  display:flex;gap:.9rem;align-items:flex-start;
  font-size:1.06rem;line-height:1.55;color:#3d2a58;
}
.takeaways li svg{
  width:22px;height:22px;flex:0 0 auto;margin-top:.25rem;color:var(--green-deep);
}

/* fact list under a question */
.ins-list{display:flex;flex-direction:column;gap:.7rem;margin:0 0 1.3rem}
.ins-list li{
  display:flex;gap:.8rem;align-items:flex-start;
  font-size:1.06rem;line-height:1.55;color:#3d2a58;
}
.ins-list li::before{
  content:"";flex:0 0 auto;width:9px;height:9px;border-radius:50%;
  background:var(--green);margin-top:.62rem;
}

/* named result, the quotable unit */
.ins-result{
  display:flex;gap:1rem;align-items:flex-start;
  background:var(--purple);color:#fff;border-radius:var(--radius);
  padding:1.3rem 1.5rem;margin:1.4rem 0 1.6rem;
}
.ins-result svg{width:26px;height:26px;flex:0 0 auto;color:var(--green);margin-top:.2rem}
.ins-result p{margin:0;color:#fff;font-size:1.06rem;line-height:1.5}
.ins-result b{color:var(--green)}

/* client block on the case-study page */
.ins-client{
  border-top:2px solid var(--line);
  padding-top:clamp(30px,4vh,44px);
  margin-top:clamp(38px,5vh,58px);
}
.ins-client:first-of-type{border-top:0;padding-top:0;margin-top:0}
.ins-client .kicker{
  display:inline-block;margin-bottom:.6rem;
  font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-deep);
}
.ins-client h2{margin-top:0}
.ins-client figure{margin:1.2rem 0 1.4rem;border-radius:var(--radius);overflow:hidden}
.ins-client figure img{width:100%;height:auto;display:block}

/* summary table */
.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.ins-table-wrap{overflow-x:auto;margin:1.4rem 0 1.8rem}
.ins-table{border-collapse:collapse;width:100%;min-width:560px;font-size:1rem}
.ins-table th,.ins-table td{
  text-align:left;padding:.85rem 1rem;border-bottom:1px solid var(--line);
  vertical-align:top;line-height:1.45;
}
.ins-table thead th{
  background:var(--bg-alt);color:var(--purple);
  font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
}
.ins-table td:first-child{font-weight:800;color:var(--purple);white-space:nowrap}

/* pull quote */
.ins-quote{
  background:var(--bg-alt);border-radius:var(--radius-lg);
  padding:clamp(26px,3.5vw,38px);margin:1.6rem 0 1.8rem;
}
.ins-quote .stars{color:#f5b425;letter-spacing:3px;display:block;margin-bottom:.7rem}
.ins-quote p{font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.4;font-weight:700;color:var(--purple);margin-bottom:.9rem}
.ins-quote cite{font-style:normal;font-weight:800;color:var(--green-deep);font-size:.95rem}
.ins-quote cite span{display:block;font-weight:600;color:rgba(48,0,96,.6);margin-top:.1rem}

/* about-the-source box, grounds the entity for answer engines */
.ins-about{
  border:2px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(26px,3.5vw,40px);margin-top:clamp(48px,6vh,72px);
}
.ins-about h2{margin-top:0}
.ins-about dl{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1.2rem;margin-top:1.1rem;font-size:1rem}
.ins-about dt{font-weight:800;color:var(--purple);white-space:nowrap}
.ins-about dd{color:#3d2a58}

/* next / prev insight links */
.ins-more{margin-top:clamp(44px,5vh,64px)}
.ins-more h2{margin-top:0}
.ins-more-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-top:1.2rem}
.ins-more-grid a{
  display:block;padding:1.2rem 1.4rem;border-radius:var(--radius);
  border:2px solid var(--line);background:var(--white);
  font-weight:800;color:var(--purple);line-height:1.35;
  transition:border-color .25s,transform .25s var(--ease);
  text-decoration:none !important;
}
.ins-more-grid a:hover{border-color:var(--green);transform:translateY(-3px)}
.ins-more-grid a span{
  display:block;font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-deep);margin-bottom:.4rem;
}

@media (max-width:640px){
  .ins-hero{border-radius:0 0 24px 24px}
  .ins-about dl{grid-template-columns:1fr;gap:.15rem 0}
  .ins-about dd{margin-bottom:.6rem}
}

/* ------------------------------------------------------------
   SHARED CHROME, RESPONSIVE. Duplicated on purpose, do not delete.

   site.css carries how the header and footer LOOK but almost none of
   how they RESPOND: it holds only two media queries. Every breakpoint
   that collapses the nav to a hamburger and stacks the footer lives in
   each page's own CSS file.

   This file was missing them entirely, so all three live insights pages
   rendered their full desktop nav on a phone and scrolled sideways
   (measured 808px wide inside a 390px viewport on halizona.com,
   5 Aug 2026). Added the same block the other page files carry.
   ------------------------------------------------------------ */
/* 1280, not 1200: with Insights and Community added the row squashes the
   logo and wraps the CTA between about 1200 and 1250. Collapse earlier. */
@media (max-width:1439px){
  .nav-links{display:none}
  /* 3 columns, not 2. With .nav-links hidden the row is brand | Get in touch |
     hamburger. At 2 columns the hamburger was pushed onto a second row, which
     it has been doing on the live site at every width from 721 to 1200. */
  .nav{grid-template-columns:auto 1fr auto}
  .oc-btn{grid-column:3}
}
@media (max-width:980px){
  .foot-grid{grid-template-columns:1fr}
  .foot-cols{grid-template-columns:1fr 1fr}
  .foot-form{margin-top:-60px}
}
@media (max-width:720px){
  body{font-size:16px}
  .oc-btn{width:44px;height:44px}
  .section{padding:68px 0}
  .nav-git{display:none}
  .foot-cols{grid-template-columns:1fr}
  .foot-form{margin-top:-104px}
  .foot-tagline{font-size:2.5rem}
}

/* ---------- insights index: the article cards ----------
   Only used by /insights/. The article pages themselves use .ins-more-grid
   for their footer links, which is deliberately lighter than these. */
/* The article pages clamp .ins-body .wrap to an 860px reading column. That is
   right for prose and wrong for a three-card grid, which lands as 2 + 1. The
   index page carries .is-index on its wrap to opt back out to the full width. */
.ins-body .wrap.is-index{max-width:var(--maxw)}

/* latest-article strip above the cards: same card language, laid flat.
   Links off-site (LinkedIn), which is why it sits apart from the grid
   rather than posing as a fourth on-site article. */
.ins-latest{
  display:flex;align-items:center;justify-content:space-between;gap:18px 28px;
  background:var(--white);border:2px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(18px,2.4vw,26px) clamp(22px,3vw,34px);
  margin-bottom:clamp(16px,2.2vw,24px);
  text-decoration:none !important;
  transition:border-color .25s,transform .25s var(--ease),box-shadow .25s;
}
.ins-latest:hover{border-color:var(--green);transform:translateY(-3px);box-shadow:var(--shadow-md)}
.ins-latest p{margin:0;font-size:1.02rem;line-height:1.5;color:var(--slate)}
.ins-latest p strong{color:var(--purple);font-weight:800}
.ins-latest .go{
  flex:none;font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--purple);display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap;
}
.ins-latest .go::after{content:"→";transition:transform .25s var(--ease)}
.ins-latest:hover .go::after{transform:translateX(4px)}
@media (max-width:640px){
  .ins-latest{flex-direction:column;align-items:flex-start}
}

.ins-index{display:grid;gap:clamp(16px,2.2vw,24px);grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.ins-card{
  display:flex;flex-direction:column;
  background:var(--white);border:2px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(24px,3vw,34px);text-decoration:none !important;
  transition:border-color .25s,transform .25s var(--ease),box-shadow .25s;
}
.ins-card:hover{border-color:var(--green);transform:translateY(-4px);box-shadow:var(--shadow-md)}
.ins-card .k{
  font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-deep);margin-bottom:.6rem;
}
.ins-card h2{
  font-size:clamp(1.15rem,1.9vw,1.45rem);line-height:1.2;letter-spacing:-.015em;
  color:var(--purple);margin:0 0 .7rem;
}
.ins-card p{color:var(--slate);font-size:.96rem;line-height:1.55;margin:0 0 1.2rem;flex:1}
.ins-card .go{
  font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--purple);display:inline-flex;align-items:center;gap:.45rem;
}
.ins-card .go::after{content:"→";transition:transform .25s var(--ease)}
.ins-card:hover .go::after{transform:translateX(4px)}

/* Yorkshire coffee study (insights/yorkshire-coffee-towns), 11 Nov 2026: the ranking table
   (moved here from an inline <style> in the page) and David's photos. Figures follow the
   case-study article figures: column width, var(--radius) corners, no shadow. */
/* 12 Nov 2026 rework for journalists: one ranking table with each town's highest-rated shop.
   Below 641px each row stacks into lines (town and average, county and shop count, the
   highest-rated shop) so a phone reads it without sideways scrolling. The markup carries
   explicit ARIA table roles, because changing a table's display drops its semantics in some
   screen readers. */
.ins-table.ins-rank{min-width:0}
.ins-rank small{display:block;font-weight:500;color:var(--slate);font-size:.82rem;line-height:1.35;margin-top:.2rem}
.ins-rank tbody th{color:var(--purple);font-weight:800;white-space:nowrap}
.ins-rank .c-rank{width:4.2rem}
.ins-rank .c-shops,.ins-rank .c-avg{text-align:right}
.ins-rank tbody .c-shops,.ins-rank tbody .c-avg{white-space:nowrap}
.ins-rank tbody .c-avg{font-weight:800;color:var(--purple)}
.ins-rank tbody .c-best{min-width:13rem}
.ins-body .ins-table-note{font-size:.95rem;line-height:1.55;color:var(--slate)}
.ins-hero .ins-dl-note{margin-top:12px;font-size:.92rem;font-weight:600;line-height:1.45;color:var(--purple);max-width:56ch}
.ins-hero .ins-dl-note a{color:var(--purple);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px}
.ins-quote blockquote,.ins-quote figcaption{margin:0}
.ins-quote.is-statement p{font-size:clamp(1.05rem,1.7vw,1.22rem);line-height:1.5}
.ins-split .ins-quote{margin:1.2rem 0 1.4rem}   /* .ins-split figure{margin:0} would otherwise flatten it */
@media (max-width:640px){
  .ins-hero .ins-dl.is-long{border-radius:18px}   /* this label wraps on a phone; the shorter carousel buttons keep their pill */
  .ins-rank thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
  .ins-rank,.ins-rank tbody{display:block}
  .ins-rank tbody tr{display:grid;grid-template-columns:2.6rem minmax(0,1fr) auto;column-gap:.75rem;padding:.95rem 0;border-bottom:1px solid var(--line)}
  .ins-rank tbody th,.ins-rank tbody td{display:block;padding:0;border:0;white-space:normal}
  .ins-rank tbody .c-rank{grid-column:1;grid-row:1 / span 3;width:auto}
  .ins-rank tbody .c-town{grid-column:2;grid-row:1 / span 2}
  .ins-rank tbody .c-avg{grid-column:3;grid-row:1}
  .ins-rank tbody .c-shops{grid-column:3;grid-row:2;align-self:end;font-size:.82rem;font-weight:500;color:var(--slate)}
  .ins-rank tbody .c-shops::after{content:" independents"}
  .ins-rank tbody .c-avg::before{content:"Average ";font-size:.82rem;font-weight:500;color:var(--slate)}
  .ins-rank tbody .c-best{grid-column:2 / 4;grid-row:3;min-width:0;margin-top:.55rem;font-size:.95rem}
  .ins-rank tbody .c-best::before{content:"Highest rated: ";font-weight:700;color:var(--purple)}
}
.ins-photo{margin:0 0 clamp(32px,4vh,48px)}
/* 12 Nov 2026, David: the lead coffee photo sits beside the headline. From 900px the headline and
   photo share the top row and the standfirst and download run underneath; below that the photo
   drops under the header text, where it sat before, so the download stays near the top. */
.ins-hero.has-photo .wrap{max-width:1200px}
.ins-hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-areas:"head photo" "text text";column-gap:clamp(28px,4vw,56px);align-items:center}
.ins-hero-head{grid-area:head}
.ins-hero-photo{grid-area:photo;margin:0}
.ins-hero-photo img{display:block;width:100%;height:auto;border-radius:var(--radius)}
.ins-hero-text{grid-area:text}
@media (max-width:899px){
  .ins-hero-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "text" "photo"}
  .ins-hero-photo{margin-top:clamp(28px,6vw,40px)}
}
.ins-photo img,.ins-photo-pair img,.ins-split img{display:block;width:100%;height:auto;border-radius:var(--radius)}
.ins-photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:clamp(8px,1.6vw,14px);margin:2.2rem 0 0}
.ins-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:clamp(24px,4vw,48px);align-items:center;margin-top:clamp(44px,5vh,64px)}
.ins-split figure{margin:0}
.ins-split p:last-child{margin-bottom:0}
@media (max-width:759px){
  .ins-split{grid-template-columns:1fr}
  .ins-split figure{max-width:420px}
}
