/*
Theme Name: SMA Theme
Text Domain: sma-theme
Version: 1.0.0
Requires PHP: 8.3
*/

/*
 * Metric-matched local fallbacks keep text geometry stable while Barlow
 * (font-display: swap) loads, so the font swap does not shift the layout.
 * Overrides are derived from the Barlow, Arial and Roboto font tables.
 */
@font-face {
  font-family: "Barlow Fallback";
  font-weight: 100 500;
  src: local("Arial"), local("ArialMT");
  size-adjust: 97.5%;
  ascent-override: 102.56%;
  descent-override: 20.51%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Barlow Fallback";
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 92.35%;
  ascent-override: 108.28%;
  descent-override: 21.66%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Barlow Fallback Roboto";
  font-weight: 100 500;
  src: local("Roboto"), local("Roboto-Regular");
  size-adjust: 97.06%;
  ascent-override: 103.03%;
  descent-override: 20.61%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Barlow Fallback Roboto";
  font-weight: 600 900;
  src: local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 98.12%;
  ascent-override: 101.92%;
  descent-override: 20.38%;
  line-gap-override: 0%;
}

:root {
  /* Type scale (design system). Fluid between phone (390px) and desktop
     (1440px); rem keeps the visitor's browser text-size setting in force.
     Mapped to components in src/design/type.css only.
     Headings: h1 / h2 / h3 / h4. Text: lead / body / small. */
  --sma-text-h1: clamp(2.625rem, 2.2536rem + 1.5238vw, 3.625rem);
  --sma-text-h2: clamp(2.125rem, 1.8rem + 1.3333vw, 3rem);
  --sma-text-h3: clamp(1.875rem, 1.6429rem + 0.9524vw, 2.5rem);
  --sma-text-h4: clamp(1.5rem, 1.4071rem + 0.381vw, 1.75rem);
  --sma-text-lead: clamp(1.125rem, 1.0786rem + 0.1905vw, 1.25rem);
  --sma-text-body: clamp(1rem, 0.9768rem + 0.0952vw, 1.0625rem);
  --sma-text-small: clamp(0.875rem, 0.8518rem + 0.0952vw, 0.9375rem);
  --sma-leading-heading: 1.06;
  --sma-leading-title: 1.15;
  --sma-leading-text: 1.6;
  --sma-leading-small: 1.5;
  /* Line length: comfortable reading measure for running text. */
  --sma-measure: 68ch;
  --sma-measure-lead: 60ch;
  --sma-growth-orange: #f7941d;
  --sma-opportunity-yellow: #f1c319;
  --sma-connectivity-blue: #9ccce0;
  --sma-stability-navy: #37648e;
  --sma-balanced-gray: #6d6e71;
  --sma-structural-gray: #414042;
  --sma-white: #fff;
  --sma-orange-1: #faa634;
  --sma-orange-2: #fdba4d;
  --sma-orange-3: #ffcd67;
  --sma-orange-4: #ffe17f;
  --sma-yellow-1: #f5c836;
  --sma-yellow-2: #f8d251;
  --sma-yellow-3: #ffdd50;
  --sma-yellow-4: #ffe681;
  --sma-blue-light-1: #a6d3e6;
  --sma-blue-light-2: #aed9eb;
  --sma-blue-light-3: #bbdfef;
  --sma-blue-light-4: #c8e6f3;
  --sma-navy-1: #3d729c;
  --sma-navy-2: #497aa3;
  --sma-navy-3: #5e8db4;
  --sma-navy-4: #5f8eb6;
  --sma-gray-balanced-1: #808285;
  --sma-gray-balanced-2: #939598;
  --sma-gray-balanced-3: #a7a9ac;
  --sma-gray-balanced-4: #bcbec0;
  --sma-gray-structural-1: #58595b;
  --sma-gray-structural-2: #6d6e71;
  --sma-gray-structural-3: #808285;
  --sma-gray-structural-4: #939598;
  --sma-font-sans: "Barlow", "Barlow Fallback", "Barlow Fallback Roboto", system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
  --sma-container-max: 1480px;
  --sma-reading-max: 760px;
  --sma-header-height: 86px;
  --sma-radius: 8px;
  --sma-shadow: 0 18px 50px rgb(55 100 142 / 10%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--sma-header-height) + 20px); }
body { margin: 0; color: var(--sma-structural-gray); background: var(--sma-white); font-family: var(--sma-font-sans); font-size: var(--sma-text-body); line-height: var(--sma-leading-text); }
body.sma-menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sma-stability-navy); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--sma-growth-orange); outline-offset: 4px; }
.screen-reader-text { position: absolute !important; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sma-skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; transform: translateY(-160%); padding: 10px 16px; color: var(--sma-white); background: var(--sma-structural-gray); }
.sma-skip-link:focus { transform: none; }
.sma-container { width: min(calc(100% - 40px), var(--sma-container-max)); margin-inline: auto; }
.sma-reading { width: min(calc(100% - 40px), var(--sma-reading-max)); margin-inline: auto; }
.sma-main { min-height: 70vh; }
.sma-main:focus { outline: 0; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--sma-structural-gray); font-weight: 600; }
p { margin: 0 0 1.2em; }
.sma-eyebrow { margin-bottom: 12px; color: var(--sma-stability-navy); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }



.sma-button--light { border-color: var(--sma-white); color: var(--sma-structural-gray); background: var(--sma-white); }
.sma-button--accent { border-color: var(--sma-opportunity-yellow); color: var(--sma-structural-gray); background: var(--sma-opportunity-yellow); }

.sma-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sma-actions--compact { margin-top: auto; }
.sma-text-link { display: inline-flex; align-items: center; gap: 16px; padding-block: 8px; border-bottom: 1px solid currentColor; color: var(--sma-stability-navy); font-size: 16px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.sma-text-link .icon { transition: transform .25s; }
.sma-text-link:hover .icon { transform: translateX(4px); }
.sma-pending-label { display: inline-block; padding: 6px 10px; border: 1px dashed currentcolor; border-radius: 6px; font-size: .82rem; }

.sma-quick-actions { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid rgb(255 255 255 / 35%); }
.sma-quick-actions a { display: flex; min-height: 44px; justify-content: space-between; align-items: center; border-bottom: 1px solid rgb(255 255 255 / 35%); color: var(--sma-white); font-size: .9rem; font-weight: 500; text-decoration: none; }
.sma-academy-layout .sma-hero__statement { font-size: clamp(1.125rem, 1.5vw, 1.35rem); font-weight: 400; }
.sma-academy-layout .sma-objectives { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sma-academy-layout .sma-objectives li { align-items: flex-start; flex-direction: column; }
.sma-objectives p { margin: 0; font-weight: 400; }
.sma-section-action { margin-top: 32px; margin-bottom: 0; }
.sma-section--glance { background: var(--sma-connectivity-blue); }
.sma-section--glance .sma-eyebrow, .sma-section--glance .sma-button--secondary { color: var(--sma-structural-gray); }
.sma-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; }
.sma-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-block: 16px; border-top: 1px solid var(--sma-stability-navy); }
.sma-metrics dt { font-weight: 500; }
.sma-metrics dd { margin: 0; color: var(--sma-stability-navy); font-size: clamp(2.75rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.2; }
.sma-review-note { margin-top: 24px; font-size: .9rem; }
.sma-opportunity-example { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 40px; margin-bottom: 40px; padding: 32px; border: 1px solid var(--sma-connectivity-blue); border-radius: var(--sma-radius); background: var(--sma-white); }
.sma-opportunity-example__date strong { display: block; margin-block: 16px; color: var(--sma-stability-navy); font-size: 1.5rem; line-height: 1.25; }
.sma-section--network { border-block: 1px solid var(--sma-blue-light-4); }
.sma-network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sma-network-logo, .sma-network-placeholder { display: flex; min-height: 120px; justify-content: center; align-items: center; padding: 24px; border: 1px solid rgb(65 64 66 / 15%); border-radius: 8px; background: var(--sma-white); }
.sma-network-logo img { max-width: 180px; max-height: 80px; object-fit: contain; }
.sma-network-placeholder { color: var(--sma-balanced-gray); font-size: .9rem; text-align: center; }
.sma-contact-paths { margin: 24px 0; padding-left: 20px; }
.sma-event-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 32px; }
.sma-event-filters label { display: flex; flex: 1 1 180px; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.sma-event-filters select { appearance: none; width: 100%; min-width: 0; min-height: 48px; padding: 11px 44px 11px 16px; border: 1px solid var(--sma-stability-navy); border-radius: 12px; color: var(--sma-structural-gray); background-color: var(--sma-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%2337648E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sma-event-filters select:hover { background-color: var(--sma-white); }
.sma-event-filters select:focus-visible { background-color: var(--sma-white); }
.sma-event-filters option { color: var(--sma-structural-gray); background: var(--sma-white); }
@media (forced-colors: active) {
  .sma-event-filters select { appearance: auto; background-image: none; }
}
.sma-prose .wp-block-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sma-prose .wp-block-gallery figure { margin: 0; }
.sma-prose .wp-block-gallery img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .sma-metrics, .sma-academy-layout .sma-objectives { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sma-opportunity-example { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
}
@media (max-width: 767px) {
  .sma-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sma-academy-layout .sma-objectives { grid-template-columns: 1fr; }
  .sma-metrics { gap: 24px; }
  .sma-network-placeholder { min-height: 100px; padding: 12px; }
}
.sma-logo { display: inline-flex; flex: 0 0 auto; color: inherit; text-decoration: none; }
.sma-logo__image { width: auto; height: 68px; }

.sma-hero { overflow: hidden; color: var(--sma-white); background: var(--sma-stability-navy); }
.sma-hero__grid { display: grid; min-height: min(780px, calc(100vh - var(--sma-header-height))); grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: clamp(36px, 7vw, 96px); padding-block: clamp(64px, 9vw, 120px); }
.sma-hero h1, .sma-hero .sma-eyebrow { color: var(--sma-white); }
.sma-hero__statement { max-width: 620px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; }
.sma-hero .sma-button:not(.sma-button--light) { border-color: var(--sma-growth-orange); color: var(--sma-structural-gray); background: var(--sma-growth-orange); }
.sma-hero .sma-button:not(.sma-button--light):hover { border-color: var(--sma-white); color: var(--sma-structural-gray); background: var(--sma-white); }
.sma-hero__media { position: relative; }
.sma-hero__media::before { position: absolute; inset: -16px 16px 16px -16px; border: 2px solid var(--sma-connectivity-blue); border-radius: var(--sma-radius); content: ""; }
.sma-hero__image, .sma-identity-placeholder { position: relative; width: 100%; min-height: 460px; border-radius: var(--sma-radius); object-fit: cover; }
.sma-identity-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; overflow: hidden; padding: 48px; color: var(--sma-structural-gray); background: var(--sma-connectivity-blue); text-align: center; }
.sma-identity-placeholder__logo .sma-logo__image { width: min(100%, 320px); height: auto; }
.sma-identity-placeholder__label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sma-section { padding-block: clamp(64px, 8vw, 112px); }
.sma-section:nth-of-type(even) { border-block: 1px solid var(--sma-blue-light-4); }
.sma-section-heading { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sma-objectives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; }
.sma-objectives li { display: flex; min-height: 120px; flex-direction: column; justify-content: space-between; padding: 24px; border-top: 4px solid var(--sma-growth-orange); background: var(--sma-white); font-weight: 500; }
.sma-objectives span { color: var(--sma-balanced-gray); font-size: .82rem; }
.sma-learning-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sma-learning-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 28px; padding-right: 76px; border: 1px solid var(--sma-blue-light-4); border-radius: 8px; background: var(--sma-white); }
.sma-learning-card h3 { margin: 0; letter-spacing: -.02em; }
.sma-learning-card p { margin: 0; }
.sma-learning-card h3 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sma-learning-card:has(a):hover { background: var(--sma-blue-light-4); }
.sma-learning-card:focus-within { outline: 3px solid var(--sma-stability-navy); outline-offset: 3px; }
.sma-learning-card .icon { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); }






.sma-lms { padding-block: clamp(48px, 6vw, 80px); color: var(--sma-white); background: var(--sma-stability-navy); }
.sma-lms__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.sma-lms h2, .sma-lms .sma-eyebrow { color: var(--sma-white); }
.sma-content__body > .sma-lms { width: min(1480px, calc(100% - var(--gutter)*2)); margin: 48px auto; padding: clamp(28px, 4vw, 56px); border-radius: 8px; }
.sma-content__body > .sma-lms .sma-container { width: 100%; }
.sma-content__body > .sma-lms h2 { margin-block: 16px 24px; }
.sma-content__body > .sma-lms p { max-width: 760px; }
.sma-lms .sma-eyebrow { text-transform: none; }
.sma-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sma-card { display: flex; overflow: hidden; min-width: 0; flex-direction: column; border: 1px solid var(--line, var(--sma-blue-light-4)); border-radius: 8px; background: var(--sma-white); }
.sma-card__media { display: block; overflow: hidden; }
.sma-card__media--zoom img { transform: scale(1.25); }
.sma-card__image, .sma-card__media > img, .sma-card__media > .sma-media-fallback, .sma-card > .sma-media-fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sma-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; }
.sma-card__body > :is(h3,p,blockquote) { margin: 0; }
.sma-card__body h3 { letter-spacing: -.025em; }
.sma-card__body h3 a { color: inherit; text-decoration: none; }
.sma-card__body h3 a:hover { color: var(--sma-stability-navy); }
.sma-card__body > .sma-text-link { margin-top: auto; }
.sma-card--story .sma-eyebrow { padding: 7px 12px; border-radius: 999px; background: var(--sma-blue-light-4); color: var(--sma-structural-gray); font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .1em; }
.sma-card__meta, .sma-detail__meta { color: var(--sma-balanced-gray); font-size: .85rem; }
.sma-media-fallback { display: grid; place-items: center; color: var(--sma-stability-navy); background: linear-gradient(135deg, var(--sma-blue-light-4), var(--sma-white)); font-weight: 700; letter-spacing: .1em; }
.sma-event-list { display: grid; gap: 16px; }
.sma-inline-error { margin: 16px 0; border-left: 4px solid var(--sma-growth-orange); padding: 12px 16px; background: #fff; color: var(--sma-structural-gray); }
.sma-inline-error button { margin-left: 8px; border: 0; padding: 0; background: transparent; color: var(--sma-stability-navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sma-event-card { display: grid; grid-template-columns: 230px 1fr; overflow: visible; border: 1px solid rgb(65 64 66 / 12%); border-radius: var(--sma-radius); background: var(--sma-white); }
.sma-event-card__date { padding: 28px; color: var(--sma-white); background: var(--sma-stability-navy); font-weight: 700; }
.sma-event-card__body { padding: 28px; }
.sma-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.sma-status::before { width: 9px; height: 9px; border: 2px solid currentcolor; border-radius: 50%; content: ""; }
/* Brand Book colors only: the label carries the state; the filled marker distinguishes it. */
.sma-status--cancelled, .sma-status--postponed { color: var(--sma-structural-gray); }
.sma-status--cancelled::before { background: currentcolor; }
.sma-status--postponed::before { border-color: var(--sma-growth-orange); background: var(--sma-growth-orange); }
.sma-view-controls { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.sma-period-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sma-period-controls a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line, var(--sma-blue-light-4)); border-radius: 2px; font-size: 16px; font-weight: 600; text-decoration: none; }
.sma-period-controls a[aria-current="page"] { color: var(--sma-white); background: var(--sma-stability-navy); }
.sma-view-control { min-height: 44px; padding: 8px 18px; border: 1px solid var(--sma-stability-navy); color: var(--sma-stability-navy); background: var(--sma-white); font-size: 16px; font-weight: 600; }
.sma-view-control:first-child { border-radius: 999px 0 0 999px; }
.sma-view-control:last-child { border-radius: 0 999px 999px 0; }
.sma-view-control[aria-pressed="true"] { color: var(--sma-white); background: var(--sma-stability-navy); }
.sma-event-calendar { margin-bottom: 32px; }
.sma-event-calendar { min-width: 0; --fc-border-color: var(--line, var(--sma-blue-light-4)); --fc-today-bg-color: var(--sma-blue-light-4); --fc-button-bg-color: var(--sma-stability-navy); --fc-button-border-color: var(--sma-stability-navy); --fc-button-hover-bg-color: var(--sma-structural-gray); --fc-button-hover-border-color: var(--sma-structural-gray); --fc-button-active-bg-color: var(--sma-structural-gray); --fc-button-active-border-color: var(--sma-structural-gray); }
.sma-event-calendar:empty { display: none; }
.sma-section--events.is-calendar-view .sma-event-calendar { display: flex; }
@media (min-width: 768px) {
  .sma-section--events.is-calendar-view .sma-event-calendar { height: 640px; }
}
.sma-section--events.is-calendar-view .sma-event-list { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); }
.sma-section--events:not(.is-calendar-view) .sma-event-calendar { display: none; }
.sma-section--events:not(.is-calendar-view) .sma-calendar-empty { display: none; }
.sma-calendar-empty { padding: 24px; margin-bottom: 32px; border: 1px solid var(--sma-connectivity-blue); border-radius: var(--sma-radius); background: var(--sma-white); text-align: center; }
.sma-calendar-empty p { margin-inline: auto; }
.fc .fc-button { min-height: 44px; font-family: inherit; font-weight: 500; }
.sma-event-calendar .fc-daygrid-event { min-height: 44px; overflow: hidden; padding: 5px 6px; white-space: normal; }
.sma-calendar-chip { display: block; min-width: 0; width: 100%; line-height: 1.3; }
.sma-calendar-chip__time { display: block; overflow: hidden; font-size: .72rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sma-calendar-chip__title { display: block; overflow: hidden; font-size: .85rem; white-space: nowrap; text-overflow: ellipsis; }
.sma-event-preview { position: fixed; z-index: 90; width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - var(--sma-header-height) - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--sma-connectivity-blue); border-radius: var(--sma-radius); color: var(--sma-structural-gray); background: var(--sma-white); box-shadow: var(--sma-shadow); }
.sma-event-preview h3 { padding-right: 32px; margin-bottom: 16px; }
.sma-event-preview p { margin-bottom: 12px; }
.sma-event-preview__close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--sma-stability-navy); background: var(--sma-white); font-size: 1.5rem; cursor: pointer; }
.fc .fc-button-primary { border-color: var(--sma-stability-navy); background: var(--sma-stability-navy); }
.fc .fc-event { border-color: var(--sma-stability-navy); background: var(--sma-stability-navy); }
.fc .fc-day-other .fc-daygrid-day-top { opacity: 1; }
.fc .fc-day-other .fc-daygrid-day-number { color: var(--sma-balanced-gray); opacity: 1; }
.sma-calendar-save { position: relative; }
.sma-calendar-save__menu { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px; border: 1px solid rgb(65 64 66 / 18%); border-radius: 10px; background: var(--sma-white); box-shadow: var(--sma-shadow); }
.sma-calendar-save__menu a { display: block; padding: 10px 12px; }
.sma-contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; }
.sma-contact-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--sma-radius); color: var(--sma-white); background: var(--sma-stability-navy); font-style: normal; }
.sma-content__heading { padding-block: clamp(48px, 6vw, 88px) 40px; border-bottom: 1px solid var(--line, var(--sma-blue-light-4)); }
.sma-content__heading h1 { margin: 0; max-width: 1040px; letter-spacing: -.042em; }
.sma-content__body { padding-block: 48px 80px; }
.sma-content__body > :where(:not(.sma-section):not(.sma-lms)) { width: min(var(--sma-reading-max), calc(100% - var(--gutter)*2)); margin-inline: auto; }
.sma-content__body > .wp-block-image, .sma-content__body > .wp-block-gallery { width: min(1060px, calc(100% - var(--gutter)*2)); max-width: none; }
.sma-content__body > .wp-block-image:first-child { margin-top: 0; margin-bottom: 56px; }
.sma-content__body > .wp-block-image img { width: 100%; border-radius: 8px; }
.sma-content__body > .sma-section { padding-block: 56px; }
.sma-content__body > .sma-section:first-child { padding-top: 0; }
.sma-content .sma-section-heading { max-width: 900px; margin-bottom: 40px; }
.sma-content .sma-section-heading h2 { margin-bottom: 20px; }
.sma-content .sma-section-heading > p:last-child { color: var(--sma-balanced-gray); }
.sma-featured-story { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-bottom: 24px; }
.sma-featured-story__media { min-width: 0; }
.sma-featured-story__media > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sma-opportunity-card { grid-template-columns: 1fr 1.4fr; }
.sma-opportunity-card__media { min-width: 0; background: var(--sma-connectivity-blue); }
.sma-opportunity-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sma-opportunity-card__media .sma-media-fallback { height: 100%; min-height: 240px; }
.sma-story-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.sma-story-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line, var(--sma-blue-light-4)); border-radius: 2px; font-size: 16px; font-weight: 600; text-decoration: none; }
.sma-story-filters a[aria-current="page"] { background: var(--sma-stability-navy); color: white; }
.sma-partner-directory, .sma-contact-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; }
.sma-partner-directory li { padding: 28px; border: 1px solid var(--line, var(--sma-blue-light-4)); border-radius: 8px; background: var(--sma-white); }
.sma-contact-topics .sma-card { border: 1px solid var(--sma-blue-light-4); background: var(--sma-white); }
.sma-contact-topics .sma-card__body { min-height: 190px; justify-content: space-between; }
.sma-contact-topics { margin-bottom: 32px; }
.sma-partner-directory img { width: 100%; height: 96px; object-fit: contain; margin-bottom: 16px; }
.sma-video { margin: 0; }
.sma-video__stage { position: relative; aspect-ratio: 16 / 9; background: var(--sma-structural-gray); }
.sma-video__stage video { width: 100%; height: 100%; }
.sma-video__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: transparent; }
.sma-video__play img { width: 100%; height: 100%; object-fit: cover; }
.sma-video__play span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 16px 24px; background: var(--sma-stability-navy); color: white; }
.sma-video summary { min-height: 44px; cursor: pointer; }
.sma-event-filters select, .sma-network-logo, .sma-calendar-save__menu { border-radius: 8px; }
.sma-view-control:first-child { border-radius: 2px 0 0 2px; }
.sma-view-control:last-child { border-radius: 0 2px 2px 0; }
@media (max-width: 900px) { .sma-contact-topics, .sma-partner-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .sma-featured-story, .sma-contact-topics, .sma-partner-directory { grid-template-columns: 1fr; } .sma-content__heading { padding-top: 40px; } }
.sma-contact-card a { color: var(--sma-white); }
.sma-empty-state { padding: 24px; border-left: 4px solid var(--sma-connectivity-blue); background: var(--sma-white); }

.sma-detail { padding-block: clamp(48px, 6vw, 88px); }
.sma-detail h1 { margin-bottom: 24px; letter-spacing: -.042em; }
.sma-detail .sma-actions { margin-block: 28px; }
.sma-detail > .sma-reading > p { margin-bottom: 24px; }
.sma-back-link { margin-bottom: 32px; }
.sma-detail__hero { margin: 40px 0; }
.sma-detail__hero img { width: 100%; border-radius: var(--sma-radius); }
.sma-prose > * { max-width: 100%; }


.sma-prose .wp-block-table { overflow-x: auto; max-width: 100%; }
.sma-prose .wp-block-table table { width: 100%; }
.sma-event-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0; }
.sma-event-summary p { display: flex; min-width: 0; flex-direction: column; gap: 8px; margin: 0; padding: 20px 0; border-top: 1px solid var(--line, var(--sma-blue-light-4)); }
.sma-event-summary strong { color: var(--sma-balanced-gray); font-weight: 600; }
.sma-route-loading { cursor: progress; }
/* Blur the viewport backdrop, not an ancestor of fixed bridge/popup layers.
 * An ancestor filter would turn their viewport into the entire page height. */
.sma-route-waiting .sma-main::after { position: fixed; z-index: 50; inset: 0; pointer-events: none; -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); animation: sma-route-wait-in 120ms ease-out; content: ""; }
@keyframes sma-route-wait-in { from { opacity: 0; } to { opacity: 1; } }
.sma-route-progress { position: fixed; z-index: 101; inset-inline: 0; top: var(--sma-header-height); height: 3px; background: rgb(247 148 29 / 15%); pointer-events: none; }
.sma-route-progress::before { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 8px 18px; border: 1px solid var(--sma-blue-light-4); border-radius: 24px; background: var(--sma-white); color: var(--sma-stability-navy); font-size: 16px; content: attr(data-label); }
.sma-route-progress::after { display: block; width: 35%; height: 100%; background: var(--sma-growth-orange); animation: sma-route-progress 1.1s ease-in-out infinite; content: ""; }
@keyframes sma-route-progress { from { transform: translateX(0); } to { transform: translateX(185%); } }
.sma-route-transition { view-transition-name: none; }
/* The browser's full-viewport snapshot layer must never swallow a new click. */
.sma-route-transition::view-transition { pointer-events: none; }
.sma-route-transition .sma-main { view-transition-name: sma-content; }
/* The header is identical across routes and painted above the content (z-index), so its own
 * group keeps it steady instead of letting the content snapshot (hero gradient) cover it. */
.sma-route-transition .page-header { view-transition-name: sma-header; }
::view-transition-group(sma-header) { animation: none; }
::view-transition-old(sma-header) { animation: none; opacity: 0; }
::view-transition-new(sma-header) { animation: none; }
::view-transition-group(sma-content) { animation: none; }
::view-transition-old(sma-content) { animation: sma-route-out 180ms ease-out both; mix-blend-mode: normal; }
::view-transition-new(sma-content) { animation: sma-route-in 180ms ease-out both; mix-blend-mode: normal; }
@keyframes sma-route-out { to { opacity: 0; } }
@keyframes sma-route-in { from { opacity: 0; } to { opacity: 1; } }
.sma-logo--footer { margin-bottom: 16px; }
.sma-logo--footer .sma-logo__image { height: 86px; }
.sma-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-top: 48px; padding-block: 28px; border-top: 1px solid rgb(255 255 255 / 20%); }
.sma-partner-logo { max-width: 180px; max-height: 70px; object-fit: contain; }

@media (max-width: 900px) {
  .sma-hero__grid { grid-template-columns: 1fr; }
  .sma-hero__media { width: min(100%, 620px); }
  .sma-hero__image, .sma-identity-placeholder { min-height: 360px; }
  .sma-objectives, .sma-card-grid { grid-template-columns: repeat(2, 1fr); }
  .sma-contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  :root { --sma-header-height: 68px; }
  .sma-logo__image { height: 56px; }
  .sma-hero__grid { min-height: auto; padding-block: 56px; }
  .sma-hero__image, .sma-identity-placeholder { min-height: 280px; }
  .sma-section { padding-block: 64px; }
  .sma-objectives, .sma-learning-grid, .sma-card-grid { grid-template-columns: 1fr; }
  .sma-lms__inner { grid-template-columns: 1fr; gap: 24px; }
  .sma-learning-card { grid-template-columns: 1fr; gap: 12px; padding: 24px 60px 24px 24px; }
  .sma-learning-card .icon { right: 20px; }
  .sma-contact-topics .sma-card__body { min-height: 0; padding: 24px; }
  .sma-event-card { grid-template-columns: 1fr; }
  .sma-event-filters label { flex-basis: 100%; min-width: 0; }
  .sma-event-filters .sma-button { width: 100%; min-height: 48px; }
  .fc .fc-header-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .sma-event-calendar .fc-daygrid-event { padding: 4px 2px; }
  .sma-calendar-chip__title, .sma-calendar-chip__time { font-size: .68rem; }
  .fc .fc-col-header-cell-cushion { padding-inline: 2px; font-size: .8rem; }
  .sma-event-summary { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sma-route-waiting .sma-main::after { display: none; }
  .sma-route-progress::after { width: 100%; animation: none; }
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
