/* ---------- Header ---------- */
.site-header { background: var(--ph-navy); color: var(--ph-white); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.site-header__logo { display: grid; place-items: center; width: 80px; height: 80px; background: var(--ph-ink); border-radius: var(--ph-radius-sm); flex-shrink: 0; }
.site-header__logo img { width: 56px; }

.site-nav__list, .site-nav__sub { list-style: none; margin: 0; padding: 0; }
.site-nav__list { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .9rem; letter-spacing: .03em; color: var(--ph-white); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ph-gold); }
.has-sub { position: relative; }
.site-nav__sub {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 220px;
  background: var(--ph-navy); border-radius: 0 0 var(--ph-radius-md) var(--ph-radius-md); padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav__sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
.site-nav__sub a { display: block; padding: 7px 18px; font-size: .8rem; }
.has-sub:hover > .site-nav__sub, .has-sub:focus-within > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; color: var(--ph-white); font: 600 .75rem var(--ph-font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 10px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header__inner { min-height: 72px; }
  .site-header__logo { width: 60px; height: 60px; }
  .site-header__logo img { width: 42px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ph-navy); padding: 8px var(--ph-gutter) 24px; display: none; border-top: 1px solid rgba(255,255,255,.08); }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list > li > a { display: block; padding: 12px 0; font-size: 1rem; }
  .site-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; padding: 0 0 8px 12px; min-width: 0; }
  .site-nav__sub::before { display: none; }
  .site-nav__sub a { padding: 6px 0; font-size: .9rem; color: #C9CFD6; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ph-navy); color: #C9CFD6; font-size: .9rem; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-block: 56px 40px; }
.site-footer__brand { display: grid; gap: 16px; align-content: start; }
.site-footer__brand img { width: 84px; }
.site-footer__brand p { max-width: 30ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer__nav h2 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ph-gold); margin-bottom: 12px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ph-white); text-decoration: none; }
.site-footer a:hover { color: var(--ph-gold); }
.site-footer__base { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px 28px; font-size: .8rem; color: #8B95A1; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* ---------- Hero banner ---------- */
.hero-banner { background: var(--ph-navy); color: var(--ph-white); border-radius: var(--ph-radius-md); padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px); display: flex; align-items: center; justify-content: center; gap: clamp(24px, 6vw, 64px); flex-wrap: wrap; }
.hero-banner__logo { width: clamp(110px, 16vw, 150px); }
.hero-banner__tagline { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 2.1; text-align: center; }
.hero-banner__tagline b { color: var(--ph-gold); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.card { background: var(--ph-white); border-radius: var(--ph-radius-md); box-shadow: var(--ph-shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 1px 20px 24px -8px rgba(0,0,0,.14); }
.card__media { display: block; aspect-ratio: 5 / 3; background: var(--ph-navy); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: var(--ph-navy) url("/assets/img/logo-colour.svg") center / 64px no-repeat; }
.card__body { padding: 16px 18px 20px; display: grid; gap: 6px; align-content: start; }
.card__cat { font-size: .8rem; font-weight: 600; color: var(--ph-slate); text-decoration: none; }
.card__cat:hover { color: var(--ph-ink); }
.card__title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.card__title a { text-decoration: none; color: var(--ph-charcoal); }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__date { font-size: .75rem; color: var(--ph-slate); }

/* Featured (first post on the home page) */
.feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); background: var(--ph-white); border-radius: var(--ph-radius-md); box-shadow: var(--ph-shadow-card); overflow: hidden; }
.feature__media { aspect-ratio: 16 / 10; background: var(--ph-navy); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px; align-content: center; }
.feature__title { font-size: clamp(1.4rem, 3vw, 2rem); }
.feature__title a { text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature__desc { color: var(--ph-slate); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--ph-radius-sm); border: 0; font: 600 .75rem var(--ph-font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: filter .18s, background .18s; }
.btn--primary { background: var(--ph-ink); color: var(--ph-white); }
.btn--primary:hover { filter: brightness(1.8); }
.btn--gold { background: var(--ph-gold); color: var(--ph-ink); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; color: var(--ph-gold); box-shadow: inset 0 0 0 1.5px var(--ph-gold); }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }
.pager__status { align-self: center; font-size: .85rem; color: var(--ph-slate); }

/* ---------- Page head (listing pages) ---------- */
.page-head { margin-bottom: 40px; }
.page-head__title { font-family: var(--ph-font-display); font-weight: 400; font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: .95; text-transform: uppercase; margin-top: 8px; }
.page-head__intro { margin-top: 12px; max-width: 60ch; color: var(--ph-slate); font-size: 1.1rem; }

/* ---------- Post ---------- */
.post__header { max-width: 820px; margin: 0 auto 32px; text-align: center; }
.post__cat { font-size: .85rem; font-weight: 600; color: var(--ph-slate); text-decoration: none; }
.post__title { font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 700; margin-top: 8px; }
.post__meta { margin-top: 12px; font-size: .85rem; color: var(--ph-slate); }
.post__hero { margin: 0 auto 40px; max-width: 1024px; }
.post__hero img { width: 100%; border-radius: var(--ph-radius-md); aspect-ratio: 16 / 9; object-fit: cover; }
.post__footer { max-width: var(--ph-measure); margin: 48px auto 0; }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post__tags a { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--ph-line); text-decoration: none; }
.post__tags a:hover { border-color: var(--ph-ink); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 56px; }
.post-nav__link { display: grid; gap: 4px; padding: 20px; border-radius: var(--ph-radius-md); background: var(--ph-mist); text-decoration: none; font-weight: 600; line-height: 1.35; }
.post-nav__link span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ph-slate); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__link:hover { background: #E8E9EA; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--next { grid-column: 1; } }
.related .section-title { margin-bottom: 24px; }

/* ---------- Podcast series ---------- */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.series { background: var(--ph-navy); color: var(--ph-white); border-radius: var(--ph-radius-md); padding: 28px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; min-height: 280px; transition: transform .2s; }
.series:hover { transform: translateY(-2px); }
.series img { width: 52px; }
.series__title { font-family: var(--ph-font-display); font-size: 2.6rem; line-height: .9; margin-top: auto; font-weight: 400; }
.series__title em { font-style: normal; color: var(--ph-gold); }
.series p { color: #C9CFD6; font-size: .9rem; }
