/* ==========================================================================
   HeyBro News — blog listing + article
   Header and footer are deliberately untouched.
   ========================================================================== */

:root {
  --hb-navy: #05334A;
  --hb-navy-deep: #04202E;
  --hb-red: #B40023;
  --hb-red-dark: #8D001B;
  --hb-cream: #FCF0D6;
  --hb-cream-deep: #EFE6CE;
  --hb-text-muted: #55646E;
  --hb-text-on-navy: #B7CBD8;
  --hb-hero-lede: #DCE6EC;
  --hb-ink: #2B3B45;
  --hb-body: #1B2A34;
  --hb-surface-grey: #F2F4F6;
  --hb-border-grey: #D8DEE3;
  --hb-line: #E4E8EB;
  --hb-muted-navy: #9FB4C1;
  --hb-font-display: Anton, 'Arial Narrow', sans-serif;
  --hb-font-body: Poppins, 'Segoe UI', Helvetica, Arial, sans-serif;
  --hb-shell: 1360px;
  --hb-measure: 860px;
}

.hb-ms {
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  font-size: 17px;
  display: inline-block;
  vertical-align: middle;
}

/* Astra prints its own page title; the hero carries the H1. */
.blog .ast-archive-description,
.archive .ast-archive-description,
.single-post .ast-single-post-order .entry-title,
.blog .entry-title,
.single-post .ast-archive-description {
  display: none !important;
}

.hb-shell {
  width: 100%;
  max-width: var(--hb-shell);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

.hb-measure {
  width: 100%;
  max-width: var(--hb-measure);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

/* Astra's separate-container card paints the palette's sky-blue slot; the
   news pages sit on white like the rest of the design. */
body.blog .ast-separate-container .ast-article-post,
body.blog .ast-separate-container .ast-article-single,
body.archive .ast-separate-container .ast-article-post,
body.single-post .ast-separate-container .ast-article-single,
body.blog .site-content,
body.archive .site-content,
body.single-post .site-content {
  background: #fff;
}

body.blog .ast-separate-container .ast-article-post,
body.archive .ast-separate-container .ast-article-post,
body.single-post .ast-separate-container .ast-article-single {
  padding: 0;
  border: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.hb-eyebrow {
  margin: 0;
  font-family: var(--hb-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hb-cream);
}

.hb-h1 {
  margin: 16px 0 0;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.hb-h2 {
  margin: 0;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000;
}

.hb-rule {
  width: 74px;
  height: 4px;
  background: var(--hb-red);
  margin-top: 10px;
}

.hb-news-meta {
  margin: 14px 0 0;
  font-family: var(--hb-font-body);
  font-size: 11.5px;
  font-weight: 300;
  color: var(--hb-text-muted);
}

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hb-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  padding: 15px 30px;
  cursor: pointer;
  transition: background-color .16s ease;
}

.hb-btn--primary { background: var(--hb-red); color: #fff; }
.hb-btn--primary:hover { background: var(--hb-red-dark); color: #fff; }

/* Media, with a labelled placeholder when a post has no featured image. */
.hb-news-media { width: 100%; overflow: hidden; background: var(--hb-surface-grey); }
.hb-news-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hb-news-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-news-media--empty span {
  font-family: var(--hb-font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-muted-navy);
  text-align: center;
  padding: 0 18px;
}

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

.hb-news-hero,
.hb-article-hero {
  position: relative;
  background: var(--hb-navy);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(44px, 5vw, 72px);
}

/* The design's hero clears the overlaying transparent header. Astra only
   applies that header on some views, so the offset follows its body class. */
body.ast-theme-transparent-header .hb-news-hero,
body.ast-theme-transparent-header .hb-article-hero {
  padding-block-start: calc(clamp(44px, 5vw, 72px) + 116px);
}

.hb-news-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,32,46,.93) 0%, rgba(4,32,46,.78) 45%, rgba(4,32,46,.55) 100%);
  pointer-events: none;
}

.hb-news-hero__inner,
.hb-article-hero__inner { position: relative; z-index: 1; }

.hb-news-hero__lede {
  margin: 22px 0 0;
  max-width: 600px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--hb-hero-lede);
  text-wrap: pretty;
}

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

.hb-featured {
  background: var(--hb-cream);
  padding-block: clamp(40px, 5vw, 60px);
}

.hb-featured__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 48px;
  align-items: center;
}

.hb-featured__media { flex: 1 1 420px; min-width: 280px; max-width: 620px; }
.hb-featured__media .hb-news-media { background: var(--hb-cream-deep); }
.hb-featured__copy { flex: 1 1 340px; min-width: 0; max-width: 460px; }

.hb-featured__kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hb-red);
}

.hb-featured__title {
  margin: 14px 0 0;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.hb-featured__title a { color: #000; text-decoration: none; }
.hb-featured__title a:hover { color: var(--hb-red); }

.hb-featured__excerpt {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--hb-ink);
  text-wrap: pretty;
}

.hb-featured .hb-btn { margin-top: 24px; }

/* --------------------------------------------------------------------------
   Listing grid
   -------------------------------------------------------------------------- */

.hb-news-list {
  background: #fff;
  padding-block: clamp(44px, 5vw, 66px);
}

.hb-news-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hb-chip {
  border: 1px solid var(--hb-border-grey);
  background: #fff;
  color: var(--hb-navy);
  padding: 10px 18px;
  font-family: var(--hb-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all .16s ease;
}

.hb-chip:hover { border-color: var(--hb-navy); color: var(--hb-red); }
.hb-chip.is-current { border-color: var(--hb-navy); background: var(--hb-navy); color: #fff; }

.hb-news-grid {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.hb-news-grid--three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.hb-news-card {
  background: #fff;
  border: 1px solid var(--hb-line);
  border-top: 3px solid var(--hb-line);
  margin: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hb-news-card:hover {
  border-top-color: var(--hb-red);
  box-shadow: 0 16px 34px rgba(4, 32, 46, .12);
  transform: translateY(-3px);
}

.hb-news-card > a { display: block; color: #000; text-decoration: none; }
.hb-news-card__body { padding: 24px 26px 28px; }

.hb-news-card__cat {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hb-red);
}

.hb-news-card__title {
  margin: 12px 0 0;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.hb-news-empty {
  margin: 30px 0 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--hb-text-muted);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

.hb-article-crumbs {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hb-text-on-navy);
}

.hb-article-crumbs a { color: var(--hb-cream); text-decoration: none; }
.hb-article-crumbs a:hover { color: #fff; }

.hb-article-title {
  margin: 18px 0 0;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: pretty;
}

.hb-article-standfirst {
  margin: 22px 0 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--hb-hero-lede);
  text-wrap: pretty;
}

.hb-article-byline {
  margin: 24px 0 0;
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--hb-text-on-navy);
}

.hb-article-shot {
  background: var(--hb-cream);
  padding-block: clamp(28px, 3.5vw, 44px);
}

.hb-article-shot__inner {
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

.hb-article-shot .hb-news-media { background: var(--hb-cream-deep); }

/* Article body: Astra renders the_content inside .entry-content. */
body.single-post .entry-content {
  width: 100%;
  max-width: var(--hb-measure);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

body.single-post .entry-content > p {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--hb-body);
  text-wrap: pretty;
}

body.single-post .entry-content > h2 {
  margin: 36px 0 16px;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000;
}

body.single-post .entry-content > h3 {
  margin: 28px 0 12px;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
}

body.single-post .entry-content blockquote {
  margin: 32px 0;
  padding: 26px 30px;
  background: var(--hb-cream);
  border-left: 4px solid var(--hb-red);
}

body.single-post .entry-content blockquote p {
  margin: 0;
  font-family: var(--hb-font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--hb-navy);
}

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 0 0 18px 1.2em;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--hb-body);
}

body.single-post .entry-content img { height: auto; }

/* Share row */
.hb-share { background: #fff; }

.hb-share__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--hb-line);
}

.hb-share__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-navy);
}

.hb-share__links { display: flex; gap: 10px; }

.hb-share__links a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--hb-border-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hb-navy);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all .16s ease;
}

.hb-share__links a:hover { background: var(--hb-red); border-color: var(--hb-red); color: #fff; }
.hb-share__cta { margin-left: auto; padding: 14px 26px; font-size: 11px; }

/* Related */
.hb-related {
  background: var(--hb-cream);
  padding-block: clamp(40px, 5vw, 62px);
  margin-top: clamp(40px, 5vw, 64px);
}

.hb-related .hb-news-card { border-color: var(--hb-cream-deep); border-top-color: var(--hb-cream-deep); }
.hb-related .hb-news-media { background: var(--hb-cream-deep); }

/* Astra's own post navigation sits oddly against this layout. */
body.single-post .ast-single-post-navigation,
body.single-post .post-navigation { display: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hb-news-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
}

@media (max-width: 767px) {
  .hb-shell, .hb-measure, .hb-article-shot__inner { padding-inline: 20px; }

  .hb-news-grid,
  .hb-news-grid--three { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .hb-featured__inner { gap: 26px; }
  .hb-featured__copy { max-width: none; }

  .hb-news-chips { gap: 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .hb-news-chips::-webkit-scrollbar { display: none; }

  .hb-share__inner { gap: 16px; }
  .hb-share__cta { margin-left: 0; width: 100%; }

  body.single-post .entry-content > p,
  body.single-post .entry-content ul,
  body.single-post .entry-content ol { font-size: 14.5px; }
}

/* --------------------------------------------------------------------------
   Astra reconciliation
   .ast-separate-container sits on <body>, so it belongs in the body compound
   rather than being treated as an ancestor. The palette's white slot holds sky
   blue, which is what Astra's card would otherwise paint.
   -------------------------------------------------------------------------- */

body.ast-separate-container.single-post .ast-article-single,
body.ast-separate-container.blog .ast-article-post,
body.ast-separate-container.archive .ast-article-post,
body.ast-separate-container.single-post .comment-respond,
body.ast-separate-container.single-post .comments-area {
  background: #fff;
  border: none;
  box-shadow: none;
  padding-inline: 0;
}

body.ast-separate-container.single-post .site-content > .ast-container,
body.ast-separate-container.blog .site-content > .ast-container,
body.ast-separate-container.archive .site-content > .ast-container {
  max-width: 100%;
  padding-inline: 0;
}

/* The hero already carries the title, byline and category. */
body.single-post header.entry-header,
body.single-post .entry-title,
body.single-post .entry-meta,
body.single-post .ast-blog-meta-container {
  display: none !important;
}

/* Comments keep the design's measure. */
body.single-post .comments-area {
  width: 100%;
  max-width: var(--hb-measure);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

body.single-post .comments-title,
body.single-post .comment-reply-title {
  font-family: var(--hb-font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000;
}

body.blog .ast-article-post,
body.archive .ast-article-post { margin: 0; }

/* Comments are closed on articles; hide anything the theme still prints. */
body.single-post .comments-area,
body.single-post .comment-respond,
body.single-post #comments,
body.single-post .ast-comment-formwrap,
body.single-post .no-comments {
  display: none !important;
}

/* Cover image for the News hero: the News page's Featured Image, under the same
   navy gradient the About and Home heroes use. */
.hb-news-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hb-news-hero .hb-news-hero__overlay { z-index: 0; }

/* Match the About hero: the cover image shows clear, with no navy tint and no
   text-shadow; About's lede colour is used for parity. The article header keeps
   its navy because it has no image behind the (now transparent) overlay. */
.hb-news-hero .hb-news-hero__overlay { background: none; }
.hb-news-hero .hb-news-hero__lede { color: #EDF1F4; }

/* The cover photo stays untinted, but its left side is bright and busy, so the
   hero text carries a soft navy halo to stay legible. Only applied when a cover
   image is set; over plain navy it would be pointless. */
.hb-news-hero:has(.hb-news-hero__img) .hb-eyebrow,
.hb-news-hero:has(.hb-news-hero__img) .hb-h1 {
  text-shadow: 0 1px 2px rgba(4, 32, 46, .55), 0 2px 14px rgba(4, 32, 46, .5);
}

/* Smaller body text needs a firmer halo than the heading. */
.hb-news-hero:has(.hb-news-hero__img) .hb-news-hero__lede {
  text-shadow: 0 1px 3px rgba(4, 32, 46, .75), 0 0 16px rgba(4, 32, 46, .6);
}

/* A shadow alone could not hold the text over the bright left of the banner, so a
   light fade sits behind the text column only and is gone by the middle. The right
   half - laptop, mug, cap - stays fully clear. (0,3,0) beats the background:none above. */
.hb-news-hero:has(.hb-news-hero__img) .hb-news-hero__overlay {
  background: linear-gradient(90deg,
    rgba(4, 32, 46, .62) 0%,
    rgba(4, 32, 46, .48) 28%,
    rgba(4, 32, 46, .18) 44%,
    rgba(4, 32, 46, 0) 56%);
}

/* On phones the text spans the full width of a cropped, bright image. */
@media (max-width: 767px) {
  .hb-news-hero:has(.hb-news-hero__img) .hb-news-hero__overlay {
    background: rgba(4, 32, 46, .5);
  }
}
