﻿/* =========================================
   SMA GLOBAL DESIGN SYSTEM
   ========================================= */

:root {
    --sma-navy: #17354A;
    --sma-teal: #277C78;
    --sma-sage: #E8F0ED;
    --sma-cream: #F7F6F2;
    --sma-white: #FFFFFF;
    --sma-text: #263640;
    --sma-muted: #64737C;
    --sma-border: #DCE4E2;

    --sma-font-body: Arial, Helvetica, sans-serif;
    --sma-font-heading: Arial, Helvetica, sans-serif;

    --sma-container: 1200px;
    --sma-reading-width: 760px;

    --sma-radius-small: 6px;
    --sma-radius: 12px;
    --sma-radius-large: 20px;

    --sma-shadow: 0 8px 28px rgba(23, 53, 74, 0.08);

    --sma-space-1: 8px;
    --sma-space-2: 16px;
    --sma-space-3: 24px;
    --sma-space-4: 32px;
    --sma-space-5: 48px;
    --sma-space-6: 64px;
    --sma-space-7: 88px;
}

/* Reset and base */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sma-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sma-text);
    background: var(--sma-white);
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--sma-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--sma-navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--sma-teal);
    outline-offset: 3px;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--sma-space-2);
    color: var(--sma-navy);
    font-family: var(--sma-font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-top: 0;
    margin-bottom: var(--sma-space-2);
}

.sma-eyebrow {
    margin-bottom: 12px;
    color: var(--sma-teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Layout */

body:not(.home) .sma-main-content {
    padding-top: clamp(var(--sma-space-2), 3vw, var(--sma-space-4));
}

.sma-container {
    width: min(calc(100% - 40px), var(--sma-container));
    margin-right: auto;
    margin-left: auto;
}

.sma-reading-width {
    max-width: var(--sma-reading-width);
    margin-right: auto;
    margin-left: auto;
}

.sma-section {
    padding-top: var(--sma-space-7);
    padding-bottom: var(--sma-space-7);
}

.sma-section--sage {
    background: var(--sma-sage);
}

.sma-section--cream {
    background: var(--sma-cream);
}

.sma-section-heading {
    max-width: 720px;
    margin-bottom: var(--sma-space-5);
}

.sma-section-heading p {
    color: var(--sma-muted);
}

/* Buttons */

.sma-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--sma-teal);
    border-radius: 6px;
    background: var(--sma-teal);
    color: var(--sma-white);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease,
        transform 0.2s ease;
}

.sma-button:hover {
    border-color: var(--sma-navy);
    background: var(--sma-navy);
    color: var(--sma-white);
    text-decoration: none;
    transform: translateY(-1px);
}

.sma-button.sma-button--compact {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.875rem;
}

.sma-button--outline {
    border-color: var(--sma-white);
    background: transparent;
    color: var(--sma-white);
}

.sma-button--outline:hover {
    border-color: var(--sma-white);
    background: var(--sma-white);
    color: var(--sma-navy);
}

/* Cards */

.sma-card {
    overflow: hidden;
    border: 1px solid var(--sma-border);
    border-radius: var(--sma-radius);
    background: var(--sma-white);
    box-shadow: var(--sma-shadow);
}

.sma-card__body {
    padding: var(--sma-space-3);
}

.sma-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--sma-sage);
}

/* Content */

.sma-entry-content {
    max-width: var(--sma-reading-width);
    margin-right: auto;
    margin-left: auto;
}

.sma-entry-content img {
    border-radius: var(--sma-radius);
}

.sma-entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Accessibility */

.sma-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 12px 18px;
    background: var(--sma-white);
    color: var(--sma-navy);
}

.skip-link:focus {
    top: 16px;
}

/* Responsive behaviour */

@media (max-width: 768px) {
    :root {
        --sma-space-5: 36px;
        --sma-space-6: 48px;
        --sma-space-7: 60px;
    }

    .sma-container {
        width: min(calc(100% - 32px), var(--sma-container));
    }

    .sma-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================
   SMA NEWS ARTICLE TEMPLATE
   ========================================= */

.sma-article-container {
    max-width: 1100px;
    padding-top: 64px;
    padding-bottom: 80px;
}

.sma-article {
    max-width: 100%;
    margin: 0 auto;
}

.sma-article__header {
    max-width: 850px;
    margin: 0 auto 36px;
    text-align: center;
}

.sma-article__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
    color: #64737B;
    font-size: 0.9rem;
}

.sma-article__published {
    margin: 0 0 22px;
    color: #64737B;
    font-size: 0.9rem;
}

.sma-article__category {
    padding: 7px 13px;
    border-radius: 30px;
    background: #E8F0ED;
    color: #277C78;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sma-article__title {
    margin: 0 0 22px;
    color: #17354A;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.sma-article__excerpt {
    max-width: 760px;
    margin: 0 auto 22px;
    color: #52636C;
    font-size: 1.2rem;
    line-height: 1.7;
}

.sma-article__excerpt p {
    margin: 0;
}

.sma-article__author {
    color: #64737B;
    font-size: 0.9rem;
    font-weight: 600;
}

.sma-article__featured-image {
    width: 100%;
    max-height: 560px;
    margin: 0 auto 48px;
    overflow: hidden;
    border-radius: 14px;
    background: #E8F0ED;
}

.sma-article__featured-image img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.sma-article__body {
    max-width: 780px;
    margin: 0 auto;
    color: #263640;
    font-size: 1.08rem;
    line-height: 1.85;
}

.sma-article__body h2,
.sma-article__body h3 {
    margin-top: 2em;
    margin-bottom: 0.7em;
    color: #17354A;
    line-height: 1.3;
}

.sma-article__body p {
    margin-bottom: 1.5em;
}

.sma-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.sma-article__body a {
    color: #277C78;
    font-weight: 600;
}

.sma-speaker-article .sma-article__featured-image {
    width: min(100%, 320px);
    max-height: none;
    margin-bottom: 32px;
    background: transparent;
}

.sma-speaker-article .sma-article__featured-image img {
    height: auto;
    max-height: none;
}

.sma-speaker-article .sma-article__body a.sma-button {
    color: var(--sma-white);
}

.sma-article__footer {
    max-width: 780px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(23, 53, 74, 0.15);
}

.sma-article__share h2 {
    margin: 0 0 18px;
    color: #17354A;
    font-size: 1.2rem;
}

.sma-article__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sma-article__share h2 {
    flex-basis: 100%;
}

.sma-article__share :is(a, button) {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sma-navy);
    cursor: pointer;
}

.sma-article__share button[hidden] {
    display: none;
}

.sma-article__share :is(a, button):hover,
.sma-article__share :is(a, button):focus-visible {
    background: var(--sma-sage);
}

.sma-article__share svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sma-article__navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(23, 53, 74, 0.12);
}

.sma-article__navigation a {
    color: #17354A;
    font-weight: 700;
    text-decoration: none;
}

.sma-article__navigation a:hover {
    color: #277C78;
}

@media (max-width: 600px) {
    .sma-article-container {
        padding-top: 36px;
        padding-bottom: 50px;
    }

    .sma-article__title {
        font-size: 2.1rem;
    }

    .sma-article__excerpt {
        font-size: 1.05rem;
    }

    .sma-article__featured-image {
        margin-bottom: 32px;
        border-radius: 8px;
    }

    .sma-article__body {
        font-size: 1rem;
    }

    .sma-article__navigation {
        flex-direction: column;
        gap: 18px;
    }
}

/* =========================================
   SMA NEWS & MEMBER STORIES ARCHIVE
========================================= */

.sma-news-intro {
    background: var(--sma-cream, #F7F6F2);
    padding: 76px 0 64px;
}

.sma-news-intro .sma-section-eyebrow {
    display: block;
    color: var(--sma-teal, #277C78);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sma-news-intro h1 {
    color: var(--sma-navy, #17354A);
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    line-height: 1.12;
    max-width: 760px;
    margin: 0 0 18px;
}

.sma-news-intro p {
    color: var(--sma-text, #263640);
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0;
}

.sma-news-listing {
    padding: 54px 0 84px;
}

.sma-news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 38px;
    border-bottom: 1px solid rgba(23, 53, 74, 0.14);
    padding-bottom: 20px;
}

.sma-news-filters a {
    display: inline-flex;
    align-items: center;
    padding: 10px 19px;
    border: 1px solid rgba(23, 53, 74, 0.2);
    border-radius: 30px;
    color: var(--sma-navy, #17354A);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sma-news-filters a:hover,
.sma-news-filters a.is-active {
    background: var(--sma-navy, #17354A);
    border-color: var(--sma-navy, #17354A);
    color: #fff;
}

.sma-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

.sma-news-card {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(23, 53, 74, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(23, 53, 74, 0.045);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sma-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(23, 53, 74, 0.1);
}

.sma-news-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sma-sage, #E8F0ED);
}

.sma-news-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sma-news-card:hover .sma-news-card__image img {
    transform: scale(1.035);
}

.sma-news-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 190px;
    padding: 24px;
    color: var(--sma-navy, #17354A);
    font-weight: 700;
    text-align: center;
}

.sma-news-card__content {
    padding: 25px 25px 28px;
}

.sma-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 13px;
    margin-bottom: 15px;
    color: #69777D;
    font-size: 0.8rem;
}

.sma-news-card__category {
    color: var(--sma-teal, #277C78);
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.sma-news-card__content h2 {
    color: var(--sma-navy, #17354A);
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0 0 12px;
}

.sma-news-card__content h2 a {
    color: inherit;
    text-decoration: none;
}

.sma-news-card__content h2 a:hover {
    color: var(--sma-teal, #277C78);
}

.sma-news-card__content p {
    color: var(--sma-text, #263640);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0 0 20px;
}

.sma-news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sma-teal, #277C78);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.sma-news-card__link:hover {
    color: var(--sma-navy, #17354A);
}

.sma-news-empty {
    padding: 55px 25px;
    background: var(--sma-cream, #F7F6F2);
    text-align: center;
    border-radius: 8px;
}

.sma-news-empty h2 {
    color: var(--sma-navy, #17354A);
}

.sma-news-pagination {
    margin-top: 48px;
}

.sma-news-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sma-news-pagination a,
.sma-news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid rgba(23, 53, 74, 0.18);
    border-radius: 5px;
    color: var(--sma-navy, #17354A);
    text-decoration: none;
}

.sma-news-pagination .current,
.sma-news-pagination a:hover {
    background: var(--sma-navy, #17354A);
    border-color: var(--sma-navy, #17354A);
    color: #fff;
}

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

@media (max-width: 600px) {
    .sma-news-intro {
        padding: 55px 0 45px;
    }

    .sma-news-listing {
        padding: 38px 0 60px;
    }

    .sma-news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sma-news-filters {
        gap: 8px;
        margin-bottom: 28px;
    }

    .sma-news-filters a {
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .sma-news-card__content {
        padding: 21px;
    }
}


/* =========================================
   SMA MEMBER STORIES
========================================= */

.sma-member-story {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sma-member-story__header {
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.sma-member-story__label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 15px;
    border-radius: 30px;
    background: var(--sma-sage, #E8F0ED);
    color: var(--sma-teal, #277C78);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sma-member-story__title {
    margin: 0 0 18px;
    color: var(--sma-navy, #17354A);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.12;
}

.sma-member-story__intro {
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--sma-text, #263640);
    font-size: 1.2rem;
    line-height: 1.7;
}

.sma-member-story__header time {
    display: block;
    color: #718087;
    font-size: 0.9rem;
}

.sma-member-story__portrait {
    max-width: 760px;
    margin: 0 auto 48px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sma-sage, #E8F0ED);
}

.sma-member-story__portrait img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
}

.sma-member-story__body {
    max-width: 760px;
    margin: 0 auto;
    color: var(--sma-text, #263640);
    font-size: 1.08rem;
    line-height: 1.85;
}

.sma-member-story__body h2,
.sma-member-story__body h3 {
    margin-top: 2em;
    margin-bottom: 0.7em;
    color: var(--sma-navy, #17354A);
    line-height: 1.3;
}

.sma-member-story__body p {
    margin-bottom: 1.4em;
}

.sma-member-story__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .sma-member-story__header {
        margin-bottom: 28px;
    }

    .sma-member-story__portrait {
        margin-bottom: 32px;
        border-radius: 8px;
    }

    .sma-member-story__body {
        font-size: 1rem;
    }
}
