/* =========================================================
   Sasing — Program Studi Sastra Inggris, Unisma Bekasi
   Design tokens: navy (logo) + saffron (action) + teal (links)
   Type: Newsreader (display) / IBM Plex Sans (UI) / IBM Plex Mono (data)
   ========================================================= */

:root {
  /* color */
  --ink: #002147;
  --ink-2: #334b66;
  --ink-3: #6f7f8f;
  --paper: #f6f3ee;
  --surface: #ffffff;
  --line: #d9d6cf;
  --saffron: #c7673c;
  --saffron-soft: #f3e3da;
  --teal: #2f7c78;
  --teal-soft: #deece9;
  --shadow-1: 0 1px 2px rgba(0, 33, 71, 0.08);
  --shadow-2: 0 1px 2px rgba(0, 33, 71, 0.08), 0 8px 24px -16px rgba(0, 33, 71, 0.3);

  /* type */
  /* gh-font-* let the Ghost admin font picker override the theme defaults */
  --font-display: var(--gh-font-heading, Newsreader), Georgia, "Times New Roman", serif;
  --font-sans: var(--gh-font-body, "IBM Plex Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --wrap: 1140px;
  --wrap-narrow: 720px;
  --gutter: 24px;
  --radius: 6px;
  --header-h: 68px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #00366f; border-color: #00366f; color: var(--paper); }

.btn--accent { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.btn--accent:hover { background: #a9502d; border-color: #a9502d; color: #fff; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }

.btn--sm { font-size: 14px; padding: 10px 16px; }

/* ---------------- announcement ---------------- */

.gh-announcement {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-align: center;
  padding: 10px var(--gutter);
}
.gh-announcement a { color: var(--saffron); }

/* ---------------- site header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px -26px rgba(0, 33, 71, .45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); flex: 0 1 auto; }
.site-logo__image { display: block; width: auto; max-width: min(220px, 100%); max-height: 42px; object-fit: contain; object-position: left center; }
.site-logo__mark { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.site-logo__text { display: grid; min-width: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.05; }
.site-logo__text small { margin-top: 3px; overflow: hidden; color: var(--ink-3); font-family: var(--font-sans); font-size: 10px; font-weight: 500; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: block;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 4px;
}
.site-nav__link:hover { color: var(--ink); background: var(--teal-soft); }
.site-nav__link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }

.site-nav__cta { margin-left: 8px; }

.nav-toggle,
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.nav-toggle:hover,
.search-toggle:hover { background: var(--teal-soft); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 12px var(--gutter) 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav__cta { margin: 14px 0 0; }
  .site-nav__cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .site-header__inner { gap: 8px; }
  .site-logo { flex: 1 1 auto; }
  .site-logo__image { max-width: 145px; max-height: 40px; }
  .site-logo__text { font-size: 16px; }
  .site-logo__text small { display: none; }
  .nav-toggle, .search-toggle { flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .stat { margin: 0; padding: 14px 10px 14px 0; border-right: 0; }
}

/* sticky mobile action bar */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 700px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

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

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--teal-soft), transparent 65%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 68px;
}
.hero__inner--text { grid-template-columns: minmax(0, 1fr); }
.hero__inner--text > div:first-child { max-width: 760px; }
.hero__inner--with-image { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero__inner--with-image > div:first-child { max-width: 760px; }
.hero__rule { width: 56px; height: 4px; background: var(--saffron); margin-bottom: 24px; }
.hero__heading { font-size: clamp(32px, 4.6vw, 52px); max-width: 18ch; }
.hero__sub { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3;
  background: var(--teal-soft);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner--with-image .hero__figure { aspect-ratio: 16 / 7; width: 100%; }

/* Full-bleed landing treatment when Ghost provides a cover image. */
.hero--cover { background: var(--ink); border-bottom: 0; }
.hero--cover .hero__inner--with-image {
  display: block;
  min-height: min(720px, calc(100vh - var(--header-h)));
  padding: clamp(88px, 12vw, 148px) 0 clamp(64px, 9vw, 112px);
}
.hero--cover .hero__figure {
  position: absolute;
  z-index: 0;
  inset: 0 calc(50% - 50vw);
  width: 100vw;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  background: var(--ink);
}
.hero--cover .hero__figure img { object-position: center 52%; }
.hero--cover .hero__inner--with-image::after {
  position: absolute;
  z-index: 1;
  inset: 0 calc(50% - 50vw);
  display: block;
  background: linear-gradient(90deg, rgba(10, 25, 43, .94) 0%, rgba(10, 25, 43, .72) 46%, rgba(10, 25, 43, .18) 100%);
  content: "";
}
.hero--cover .hero__inner--with-image > div:first-child { position: relative; z-index: 2; max-width: 720px; }
.hero--cover .hero__rule { background: #df8a61; }
.hero--cover .hero__heading { max-width: 15ch; color: #fff; font-size: clamp(38px, 5.2vw, 68px); }
.hero--cover .hero__sub { color: rgba(255,255,255,.88); font-size: 18px; }
.hero--cover .btn--ghost { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); color: #fff; }
.hero--cover .btn--ghost:hover { border-color: #fff; background: #fff; color: var(--ink); }
.hero--cover .stats { border-color: rgba(255,255,255,.34); }
.hero--cover .stat { border-color: rgba(255,255,255,.28); }
.hero--cover .stat__value { color: #fff; }
.hero--cover .stat__label { color: rgba(255,255,255,.72); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.stat { padding: 18px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 44px; }
  .hero__figure { aspect-ratio: 16 / 10; }
  .hero__inner--with-image .hero__figure { aspect-ratio: 16 / 9; }
  .hero--cover .hero__inner--with-image { min-height: 680px; padding: 84px 0 64px; }
  .hero--cover .hero__inner--with-image::after { background: linear-gradient(90deg, rgba(10, 25, 43, .92), rgba(10, 25, 43, .58)); }
  .stat { padding-right: 20px; margin-right: 20px; }
}
@media (max-width: 640px) {
  .hero--cover .hero__inner--with-image { min-height: 700px; padding: 72px 0 52px; }
  .hero--cover .hero__heading { font-size: clamp(37px, 11vw, 52px); }
  .hero--cover .hero__inner--with-image::after { background: linear-gradient(180deg, rgba(10, 25, 43, .88), rgba(10, 25, 43, .56)); }
}

/* ---------------- generic section ---------------- */

.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section--tint { background: #edf2f3; }
.section__head { position: relative; max-width: 62ch; margin-bottom: 38px; padding-bottom: 18px; }
.section__head::after { position: absolute; bottom: 0; left: 0; width: 46px; height: 2px; background: var(--saffron); content: ""; }
.section__title { font-size: clamp(25px, 3.2vw, 34px); }
.section__desc { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.section__foot { margin-top: 32px; }

@media (max-width: 700px) { .section { padding: 48px 0; } }

/* ---------------- pillar cards (why here) ---------------- */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.section--tint .pillar { background: var(--ink); }
.pillar { border-top: 4px solid var(--saffron); border-radius: 10px; }
.pillar:nth-child(2) { background: var(--ink); border-color: var(--ink); border-top-color: var(--teal); }
.pillar:nth-child(3) { background: var(--ink); border-color: var(--ink); border-top-color: #8eb5d4; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 33, 71, .7); color: #fff; }
.pillar__title { color: #fff; font-size: 20px; margin-bottom: 8px; }
.pillar__body { font-size: 15px; color: rgba(255,255,255,.84); }
.pillar__proof {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--saffron);
}
.pillar:nth-child(2) .pillar__proof { color: #9fd4d0; }
.pillar:nth-child(3) .pillar__proof { color: #c4dced; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------------- careers ---------------- */

.careers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.career { background: #f8fafc; border: 1px solid #d4e0e9; border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 22px; }
.career:nth-child(2), .career:nth-child(5) { background: #f8fafc; border-color: #d4e0e9; border-top-color: var(--teal); }
.career:nth-child(3) { background: #f8fafc; border-color: #d4e0e9; border-top-color: var(--saffron); }
.section--tint .career, .section--tint .career:nth-child(2), .section--tint .career:nth-child(3), .section--tint .career:nth-child(5) { background: #fff; }
.career__role { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.career__note { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 860px) { .careers { grid-template-columns: 1fr; } }

/* ---------------- curriculum journey and pathways ---------------- */

.journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.journey__stage { background: #fff; border-top: 4px solid var(--ink); padding: 24px; }
.journey__stage:nth-child(2) { background: #fff; border-top-color: var(--teal); }
.journey__stage:nth-child(3) { background: #fff; border-top-color: var(--saffron); }
.journey__stage:nth-child(4) { background: #fff; border-top-color: #4f83ad; }
.journey__stage span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--saffron);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.journey__stage h3 { font-size: 20px; margin-bottom: 8px; }
.journey__stage p { font-size: 14.5px; color: var(--ink-2); }

.pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pathway {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.pathway__image { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 42%; }
.pathway:nth-child(2) .pathway__image { object-position: center 54%; }
.pathway__content { padding: 24px 28px 28px; }
.pathway:first-child { background: var(--ink); border-color: var(--ink); border-top-color: var(--saffron); }
.pathway:first-child h3, .pathway:first-child .pathway__content > p:last-child { color: #fff; }
.pathway:first-child .eyebrow { color: var(--saffron); }
.pathway:nth-child(2) { background: #f1f7f6; border-color: #c8dcda; }
.pathway .eyebrow { color: var(--teal); }
.pathway h3 { font-size: 24px; margin-bottom: 12px; }
.pathway__content > p:last-child { color: var(--ink-2); }

@media (max-width: 900px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .journey, .pathways { grid-template-columns: 1fr; }
}

/* ---------------- recognition and partner marks ---------------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
}
.partner-mark {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfd;
  color: var(--ink-2);
  text-decoration: none;
  box-shadow: var(--shadow-1);
}
.partner-mark { border-top: 4px solid var(--ink); }
.partner-mark:nth-child(2) { background: #f8fbfd; border-color: var(--line); border-top-color: var(--teal); }
.partner-mark:nth-child(3) { background: #f8fbfd; border-color: var(--line); border-top-color: var(--saffron); }
.partner-mark:hover { color: var(--ink); box-shadow: var(--shadow-2); }
.partner-mark strong { color: var(--ink); font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.1; text-align: center; }
.partner-mark span { color: var(--ink-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
@media (max-width: 640px) { .partner-grid { grid-template-columns: 1fr; } }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.fact {
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
}
.section--tint .fact { background: var(--paper); }
.fact b { color: var(--ink); }

.landing-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  align-items: stretch;
  gap: 40px;
}
#pendaftaran {
  background: var(--ink);
  border-bottom-color: rgba(255,255,255,.16);
}
#pendaftaran .eyebrow { color: var(--saffron); }
#pendaftaran .section__head::after { background: var(--saffron); }
#pendaftaran .section__title { color: #fff; }
#pendaftaran .section__desc { color: rgba(255,255,255,.84); }
#pendaftaran .fact {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
}
#pendaftaran .fact b { color: var(--saffron); }
#pendaftaran .btn--accent { color: var(--ink); }
#pendaftaran .btn--accent:hover { background: #fff; border-color: #fff; color: var(--ink); }
#pendaftaran .btn--ghost { border-color: rgba(255,255,255,.58); color: #fff; }
#pendaftaran .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.landing-cta__media {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.landing-cta__media img {
  width: 100%;
  height: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 760px) {
  .landing-cta__grid { grid-template-columns: 1fr; gap: 28px; }
  .landing-cta__media img { max-width: 460px; }
}

/* ---------------- post cards ---------------- */

.post-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .post-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-feed { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.section--tint .post-card { background: var(--paper); }
.post-card:hover { transform: translateY(-4px); border-color: #c8b5aa; box-shadow: 0 18px 38px -28px rgba(0,33,71,.6); }

.post-card__image-link { display: block; }
.post-card__image { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--teal-soft); }
.post-card__content { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-card__title { font-size: 21px; line-height: 1.22; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--saffron); }
.post-card__excerpt { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-clamp: 3; overflow: hidden; }
.post-card__meta {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--saffron-soft);
  color: var(--saffron);
  padding: 3px 8px;
  border-radius: 3px;
  text-decoration: none;
}
.tag-pill:hover { background: var(--saffron); color: #fff; }

/* tag filter row */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-filter a {
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
}
.tag-filter a:hover { border-color: var(--ink-3); color: var(--ink); }
.tag-filter a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

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

.article__meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 22px; display: flex; gap: 8px 18px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .045em; }

/* Static pages: institutional reference layout */
.article--page, .article--post { padding: 0 0 96px; }
.page-masthead {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.page-masthead::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(77,181,110,.2), transparent 32%), linear-gradient(115deg, transparent 58%, rgba(249,230,66,.09));
  content: "";
  pointer-events: none;
}
.page-masthead__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 330px;
}
.page-masthead--with-image .page-masthead__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); }
.page-masthead__copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 64px 72px 0; }
.page-masthead__copy .eyebrow { color: var(--saffron); }
.page-masthead__title { max-width: 14ch; margin-top: 14px; color: #fff; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; }
.page-masthead__summary { max-width: 55ch; margin-top: 22px; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.65; }
.page-masthead__image { position: relative; min-height: 330px; margin: 0; }
.page-masthead__image::after { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 32%); content: ""; }
.page-masthead__image img { width: 100%; height: 100%; object-fit: cover; }
.page-reading-area {
  padding: 72px 0 20px;
  background: var(--paper);
}
.content--page { position: relative; }
.content--page h2 { border-bottom-color: #bed3df; }

/* Posts: editorial story layout */
.post-masthead {
  position: relative;
  overflow: hidden;
  padding: 80px 0 78px;
  background: #f3f6f8;
  border-bottom: 1px solid var(--line);
}
.post-masthead::after {
  position: absolute;
  right: -8vw;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 72px solid rgba(0,33,71,.045);
  border-radius: 50%;
  content: "";
}
.post-masthead__inner { position: relative; z-index: 1; max-width: 940px; }
.post-masthead__title { max-width: 22ch; margin-top: 18px; color: var(--ink); font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: -.025em; }
.post-masthead__dek { max-width: 60ch; margin-top: 24px; color: var(--ink-2); font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.post-feature-wrap { position: relative; z-index: 2; max-width: none; margin-top: 0; padding: 0; }
.post-feature { margin: 0; }
.post-feature img { display: block; width: 100%; max-height: 620px; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 0; box-shadow: none; }
.post-feature figcaption { max-width: 840px; margin: 10px auto 0; padding: 0 var(--gutter); color: var(--ink-3); font-size: 13px; text-align: center; }
.content--post { margin-top: 66px; }
.article--post:not(.has-feature-image) .content--post { margin-top: 72px; }

@media (max-width: 800px) {
  .page-masthead--with-image .page-masthead__grid { grid-template-columns: 1fr; }
  .page-masthead__copy { padding: 56px 0 44px; }
  .page-masthead__image { min-height: 260px; margin: 0 calc(var(--gutter) * -1); }
  .page-masthead__image::after { background: linear-gradient(180deg, var(--ink), transparent 28%); }
  .page-reading-area { padding-top: 52px; background: transparent; }
  .post-masthead { padding: 58px 0 72px; }
  .post-feature img { min-height: 240px; aspect-ratio: 4 / 3; }
}

.content { color: #20374f; font-size: 18px; line-height: 1.82; }
.content--canvas {
  --content-width: min(var(--wrap-narrow), 100% - var(--gutter) * 2);
  --wide-width: minmax(0, calc((var(--wrap) - var(--wrap-narrow)) / 2));
  --full-width: minmax(var(--gutter), 1fr);
  display: grid;
  grid-template-columns:
    [full-start] var(--full-width)
    [wide-start] var(--wide-width)
    [content-start] var(--content-width) [content-end]
    var(--wide-width) [wide-end]
    var(--full-width) [full-end];
}
.content--canvas > * { grid-column: content; }
.content--canvas > .kg-width-wide,
.content--canvas > .kg-content-wide { grid-column: wide; }
.content--canvas > .kg-width-full { grid-column: full; }
.content--page {
  --content-width: min(880px, 100% - var(--gutter) * 2);
  --wide-width: minmax(0, calc((var(--wrap) - 880px) / 2));
}
.content--post {
  --content-width: min(840px, 100% - var(--gutter) * 2);
  --wide-width: minmax(0, calc((var(--wrap) - 840px) / 2));
}

/* Selectable layouts for both pages and posts */
.article--custom { padding: 0 0 104px; }
.custom-reading-area { padding-top: 72px; }

/* Reference: structured, institutional and useful for evergreen information. */
.reference-header { overflow: hidden; background: var(--ink); color: #fff; }
.reference-header__grid { display: grid; min-height: 390px; }
.reference-header--with-image .reference-header__grid { grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); }
.reference-header__copy { display: flex; flex-direction: column; justify-content: center; padding: 78px 72px 78px 0; }
.reference-header__copy .eyebrow { color: var(--saffron); }
.reference-header__title { max-width: 15ch; margin-top: 16px; color: #fff; font-size: clamp(42px, 5.5vw, 70px); line-height: 1.02; }
.reference-header__summary { max-width: 58ch; margin-top: 24px; color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.65; }
.reference-header__meta { color: rgba(255,255,255,.62); }
.reference-header__image { min-height: 390px; margin: 0; }
.reference-header__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.content--reference { --content-width: min(880px, 100% - var(--gutter) * 2); --wide-width: minmax(0, calc((var(--wrap) - 880px) / 2)); }

/* Editorial: expressive headline followed by an edge-to-edge visual. */
.editorial-header { padding: 88px 0 82px; background: #f3f6f8; border-bottom: 1px solid var(--line); }
.editorial-header__inner { max-width: 1080px; }
.editorial-header__title { max-width: 20ch; margin-top: 18px; font-size: clamp(46px, 7vw, 82px); line-height: .99; letter-spacing: -.03em; }
.editorial-header__dek { max-width: 62ch; margin-top: 26px; color: var(--ink-2); font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.48; }
.editorial-feature { margin: 0; }
.editorial-feature img { display: block; width: 100%; max-height: 680px; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 0; box-shadow: none; }
.editorial-feature figcaption, .minimal-feature figcaption { margin: 10px auto 0; padding: 0 var(--gutter); color: var(--ink-3); font-size: 13px; text-align: center; }
.content--editorial { --content-width: min(840px, 100% - var(--gutter) * 2); --wide-width: minmax(0, calc((var(--wrap) - 840px) / 2)); margin-top: 72px; }

/* Minimal: quiet, reading-first, with the image sitting directly on the page. */
.minimal-header { max-width: 920px; padding-top: 104px; padding-bottom: 58px; }
.minimal-header__context { color: var(--teal); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.minimal-header__title { max-width: 18ch; margin-top: 20px; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -.025em; }
.minimal-header__summary { max-width: 62ch; margin-top: 24px; color: var(--ink-2); font-size: 19px; line-height: 1.65; }
.minimal-header__meta { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.minimal-feature { max-width: 1180px; margin-top: 0; }
.minimal-feature img { display: block; width: 100%; max-height: 700px; object-fit: cover; border-radius: 0; box-shadow: none; }
.content--minimal { --content-width: min(820px, 100% - var(--gutter) * 2); --wide-width: minmax(0, calc((var(--wrap) - 820px) / 2)); margin-top: 68px; }

@media (max-width: 800px) {
  .reference-header--with-image .reference-header__grid { grid-template-columns: 1fr; }
  .reference-header__copy { padding: 58px 0 48px; }
  .reference-header__image { min-height: 260px; margin: 0 calc(var(--gutter) * -1); }
  .editorial-header { padding: 62px 0 66px; }
  .editorial-feature img { min-height: 250px; aspect-ratio: 4 / 3; }
  .minimal-header { padding-top: 68px; padding-bottom: 44px; }
  .minimal-feature { padding: 0; }
  .custom-reading-area, .content--editorial, .content--minimal { margin-top: 0; padding-top: 54px; }
}
.content > * + * { margin-top: 1.3em; }
.content h2 { padding-bottom: .35em; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 31px; margin-top: 2.15em; }
.content h3 { color: var(--ink); font-size: 23px; margin-top: 1.8em; }
.content a { color: var(--teal); }
.content ul, .content ol { padding-left: 1.3em; }
.content li + li { margin-top: 0.4em; }
.content blockquote {
  margin-left: 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--saffron);
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  color: var(--ink);
  background: #faf6f2;
  border-radius: 0 8px 8px 0;
  padding: 18px 24px;
}
.content img { border-radius: var(--radius); }
.content figcaption { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.content hr { border: 0; border-top: 1px solid var(--line); }
.content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.content th, .content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.content th { background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 500; }
.content pre { overflow-x: auto; background: var(--ink); color: var(--paper); padding: 16px 18px; border-radius: var(--radius); font-size: 14px; }
.content :not(pre) > code { font-family: var(--font-mono); font-size: 0.9em; background: var(--teal-soft); padding: 2px 5px; border-radius: 3px; }

.kg-width-wide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.content--canvas > .kg-width-wide,
.content--canvas > .kg-width-full { max-width: none; margin-left: 0; transform: none; }

/* ---------------- pagination ---------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--ink);
  color: #cdd6e4;
  padding: 56px 0 32px;
  font-size: 15px;
}
.site-footer__wordmark { display: grid; grid-template-columns: 32px 1fr; column-gap: 9px; align-items: center; color: #fff; }
.site-footer__wordmark > span { display: grid; grid-row: span 2; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-family: var(--font-mono); font-size: 10px; }
.site-footer__wordmark strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1; }
.site-footer__wordmark small { margin-top: 3px; color: #aab8cc; font-size: 10px; line-height: 1.2; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #df8a61; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8b9ab3;
  margin-bottom: 14px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__identity { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.site-footer__logo { display: inline-flex; align-items: center; max-width: 280px; padding: 8px 12px; border-radius: 4px; background: #fff; }
.site-footer__logo img { display: block; width: 100%; height: auto; max-height: 68px; object-fit: contain; }
.site-footer__logo--icon { width: 60px; height: 60px; padding: 5px; }
.site-footer__eyebrow { margin: 0 0 3px; color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.15; }
.site-footer__programme { margin: 0; color: #9fadc2; font-size: 12px; letter-spacing: .04em; }
.footer-note { font-size: 14px; color: #9fadc2; }
.footer-partners { margin-top: 24px; }
.footer-partners__label { display: block; margin-bottom: 10px; color: #8b9ab3; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer-partners__logos { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-partner { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: rgba(255,255,255,.95); }
.footer-partner img { display: block; width: 32px; height: 32px; object-fit: contain; }
.footer-partner--university { background: #fff; }
.footer-partner--university img { width: 29px; height: 29px; }
.footer-partner--university span { color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8b9ab3;
}

/* ---------------- error ---------------- */

.error-wrap { padding: 100px 0; text-align: center; }
.error-code { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.15em; color: var(--saffron); }
.error-title { font-size: clamp(30px, 5vw, 48px); margin: 14px 0 10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
