:root {
  --ishtp-bg: #fafaf8;
  --ishtp-surface: #ffffff;
  --ishtp-text: #2c3e50;
  --ishtp-muted: #5c6b7a;
  --ishtp-accent: #4a7c9e;
  --ishtp-sage: #6b8f71;
  --ishtp-border: #e4ebe8;
  --ishtp-radius: 12px;
  --ishtp-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-heading: "Libre Baskerville", Georgia, serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ishtp-text);
  background: var(--ishtp-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--ishtp-text);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

a {
  color: var(--ishtp-accent);
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  background: var(--ishtp-surface);
  border-bottom: 1px solid var(--ishtp-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.06);
}

.site-header--magazine {
  border-bottom-color: #d7e6ef;
}

.site-header .container {
  position: relative;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.5rem;
}

.site-branding {
  flex: 1;
  min-width: 0;
}

.site-logo-link,
.custom-logo-link {
  display: inline-block;
  line-height: 1;
}

.site-logo,
.custom-logo-link img,
img.custom-logo,
img.site-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 70px;
  width: auto !important;
  height: auto !important;
  max-width: min(380px, 78vw);
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ishtp-border);
  background: var(--ishtp-surface);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0 0.85rem;
  border-top: 1px solid var(--ishtp-border);
}

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

.primary-nav__list a {
  text-decoration: none;
  color: var(--ishtp-text);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
  color: var(--ishtp-accent);
}

.magazine-subnav {
  background: #eef5f2;
  border-top: 1px solid var(--ishtp-border);
}

.magazine-subnav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0.65rem 0;
}

.magazine-subnav__list a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ishtp-sage);
}

.hero {
  background: linear-gradient(135deg, #eef5fa 0%, #f7faf8 45%, var(--ishtp-bg) 100%);
  padding: 3.75rem 0 3.25rem;
  border-bottom: 1px solid var(--ishtp-border);
}

.hero__brand {
  margin-bottom: 1rem;
}

.hero__logo {
  display: block !important;
  max-height: 80px;
  width: auto !important;
  height: auto !important;
  max-width: min(420px, 92vw);
  object-fit: contain;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--ishtp-muted);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 0 1rem;
}

.hero__text {
  max-width: 60ch;
  color: var(--ishtp-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ishtp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.ishtp-btn--primary {
  background: var(--ishtp-accent);
  color: #fff;
}

.ishtp-btn--secondary {
  background: #fff;
  color: var(--ishtp-accent);
  border-color: #c8dbe8;
}

.ishtp-btn--cta {
  background: var(--ishtp-sage);
  color: #fff;
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.55rem 0.95rem;
  flex-shrink: 0;
}

.section {
  padding: 2.5rem 0;
}

.section--muted {
  background: #f3f6f4;
}

.section-title {
  font-family: var(--font-heading);
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--ishtp-surface);
  border: 1px solid var(--ishtp-border);
  border-radius: var(--ishtp-radius);
  padding: 1.25rem;
  box-shadow: var(--ishtp-shadow);
}

.card__title {
  margin-top: 0;
  font-size: 1.1rem;
}

.card__excerpt {
  color: var(--ishtp-muted);
}

.icon-card {
  background: #fff;
  border: 1px solid var(--ishtp-border);
  border-radius: var(--ishtp-radius);
  padding: 1rem;
  min-height: 96px;
}

.icon-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.content-area {
  padding: 2rem 0 3rem;
}

.entry-title {
  font-family: var(--font-heading);
}

.lead {
  font-size: 1.1rem;
  color: var(--ishtp-muted);
}

.checklist {
  padding-left: 1.2rem;
}

.ishtp-form-card {
  max-width: 720px;
}

.ishtp-form-title {
  font-family: var(--font-heading);
}

.ishtp-form-intro {
  color: var(--ishtp-muted);
}

.ishtp-field {
  margin-bottom: 0.85rem;
}

.ishtp-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ishtp-field input,
.ishtp-field textarea,
.ishtp-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--ishtp-border);
  border-radius: 8px;
  font: inherit;
}

.ishtp-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.ishtp-form-notice {
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.ishtp-form-notice--success {
  background: #e8f5ec;
  border: 1px solid #b9dcc4;
}

.ishtp-form-notice--error {
  background: #fdeeee;
  border: 1px solid #efb6b6;
}

.article-layout .article-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.article-meta {
  color: var(--ishtp-muted);
}

.article-author-box {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ishtp-border);
}

.site-footer {
  background: #243445;
  color: #e9eef3;
  margin-top: 2rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.footer-title {
  font-family: var(--font-heading);
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem;
  z-index: 200;
}

@media (max-width: 960px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    background: #fff;
    border-bottom: 1px solid var(--ishtp-border);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    z-index: 20;
    box-shadow: var(--ishtp-shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav__list {
    flex-direction: column;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.entry-content .ishtp-guiding-path {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--ishtp-secondary);
  background: rgba(107, 143, 113, 0.08);
}

.entry-content .ishtp-guiding-path p {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.programme-archive-section {
  margin-top: 2.5rem;
}

.programme-archive-section h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.programme-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ishtp-accent);
  background: rgba(74, 124, 158, 0.12);
  border-radius: 4px;
}

.programme-register {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ishtp-border);
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .site-logo {
    max-height: 44px;
  }
}
