/*
 * SM theme — front-end styles.
 * Colours come from theme.json presets, overridden at runtime by the
 * Appearance → SM Theme colour scheme (see inc/assets.php).
 */

:root {
	--sm-primary: var(--wp--preset--color--accent-1);
	--sm-tag: var(--wp--preset--color--accent-2);
	--sm-rose: var(--wp--preset--color--accent-3);
	--sm-link: var(--wp--preset--color--accent-4);
	--sm-surface: var(--wp--preset--color--accent-5);
	--sm-line: var(--wp--preset--color--accent-6);
	--sm-text: var(--wp--preset--color--contrast);
	--sm-base: var(--wp--preset--color--base);
	--sm-muted: #5b5f86;
	--sm-placeholder: #dcdde8;
	--sm-serif: var(--wp--preset--font-family--sabon-next);
	--sm-display: var(--wp--preset--font-family--kagnue);
	--sm-mono: var(--wp--preset--font-family--special-elite);
	--sm-script: var(--wp--preset--font-family--ferments);
	--sm-sans: var(--wp--preset--font-family--manrope);
	--sm-radius-s: 12px;
	--sm-radius-m: 16px;
	--sm-radius-l: 24px;
	--sm-pill: 999px;
	--sm-gap: clamp(20px, 3vw, 32px);
	--sm-c1: var(--sm-primary);
	--sm-c2: var(--sm-link);
	--sm-c3: #4864a8;
	--sm-c4: #b88a00;
	--sm-on-primary: #ffffff;
	--sm-on-tag: #202124;
	--sm-on-newsletter: #ffffff;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; }

.sm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Header ---------- */
.sm-header { background: var(--sm-base); }
.sm-header__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sm-gap); padding: clamp(10px, 1.4vw, 14px) 0; }
.sm-header__brand .wp-block-site-title { margin: 0; }
.sm-header__brand .wp-block-site-title, .sm-footer__brand .wp-block-site-title { white-space: nowrap; }
.sm-header__brand .wp-block-site-title a { display: inline-block; text-decoration: none; }
.sm-header__brand { gap: 14px; align-items: center; }
.sm-header__brand .wp-block-site-logo, .sm-footer__brand .wp-block-site-logo { line-height: 0; flex: none; }
.sm-header__brand .wp-block-site-logo img, .sm-footer__brand .wp-block-site-logo img { height: auto; display: block; }
.sm-footer__brand { display: block; }
.sm-footer__lockup { display: flex; align-items: center; gap: 14px; }
.sm-footer__brand .wp-block-site-title { margin: 0; }
.sm-header__utility .wp-block-navigation { font-family: var(--sm-serif); font-size: 1.125rem; gap: clamp(16px, 3vw, 44px); }
.sm-header__utility .wp-block-navigation a { color: var(--sm-text); text-decoration: none; }
.sm-header__utility .wp-block-navigation a:hover { color: var(--sm-primary); }

.sm-catbar { background: var(--sm-primary); color: var(--sm-on-primary); }
.sm-catbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.sm-catbar .wp-block-navigation { font-family: var(--sm-serif); font-weight: 700; font-size: 1rem; gap: clamp(14px, 2.4vw, 32px); }
.sm-catbar .wp-block-navigation a { color: var(--sm-on-primary); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.sm-catbar .wp-block-navigation a:hover,
.sm-catbar .wp-block-navigation .current-menu-item > a { border-bottom-color: currentColor; }
.sm-catbar .wp-block-navigation__responsive-container-open,
.sm-catbar .wp-block-navigation__responsive-container-close { color: inherit; }
.sm-catbar .wp-block-navigation__responsive-container.is-menu-open { background: var(--sm-primary); color: var(--sm-on-primary); padding: 24px; }
.sm-catbar .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.25rem; }

.sm-search-toggle { appearance: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; display: inline-flex; border-radius: 50%; }
.sm-search-toggle:hover, .sm-search-toggle:focus-visible { background: rgba(255,255,255,.18); outline: 0; }
.sm-search-toggle svg { width: 22px; height: 22px; }
.sm-search-panel { background: var(--sm-surface); }
.sm-search-panel[hidden] { display: none; }
.sm-search-panel .wp-block-search { max-width: 760px; margin: 0 auto; padding: 18px 0; }
.sm-search-panel .wp-block-search__input { border: 1px solid var(--sm-line); border-radius: var(--sm-radius-s); padding: 12px 16px; font-family: var(--sm-sans); }
.sm-search-panel .wp-block-search__button { background: var(--sm-primary); color: var(--sm-on-primary); border: 0; border-radius: var(--sm-radius-s); }

/* ---------- Tags, cards, section headings ---------- */
.sm-tag,
.is-style-sm-tag a,
.wp-block-post-terms.is-style-sm-tag a {
	display: inline-block; background: var(--sm-tag); color: var(--sm-on-tag) !important;
	font-family: var(--sm-serif); font-weight: 700; font-size: .8125rem; line-height: 1;
	padding: 6px 10px; text-decoration: none !important; border-radius: 2px;
}
.sm-tag:hover { filter: brightness(.95); }

.sm-section-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.sm-section-heading__title { font-family: var(--sm-serif); font-weight: 400; font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin: 0; line-height: 1.1; white-space: nowrap; }
.sm-section-heading__title--small { font-size: 1.0625rem; font-weight: 700; }
.sm-section-heading__title a { color: inherit; text-decoration: none; }
.sm-section-heading__rule { flex: 1 1 auto; height: 2px; background: var(--sm-line); position: relative; min-width: 40px; }
.sm-section-heading__rule::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 28px; background: var(--sm-primary); }
.sm-section-heading__all { font-family: var(--sm-sans); font-size: .6875rem; color: var(--sm-text); text-decoration: none; white-space: nowrap; }
.sm-section-heading__all:hover { color: var(--sm-primary); }

.sm-card { display: flex; flex-direction: column; gap: 12px; }
.sm-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: var(--sm-placeholder); }
.sm-card__media img, .sm-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; }
.sm-card__placeholder { background: var(--sm-placeholder); }
.sm-card__title { font-family: var(--sm-serif); font-weight: 400; font-size: 1.0625rem; line-height: 1.45; margin: 0; }
.sm-card__title a { color: var(--sm-link); text-decoration: none; }
.sm-card__title a:hover { color: var(--sm-primary); }
.sm-card__excerpt { margin: 0; font-size: .9rem; color: var(--sm-muted); }
.sm-card--side .sm-card__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.sm-grid { display: grid; gap: var(--sm-gap); }
.sm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .sm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sm-grid--3 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.sm-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-block: clamp(24px, 3vw, 40px) 0; padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--sm-line); align-items: stretch; }
.sm-hero__lead { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sm-hero__main { position: relative; flex: 1; border-radius: var(--sm-radius-l); overflow: hidden; background: var(--sm-link); min-height: 440px; isolation: isolate; }
.sm-hero__media { position: absolute; inset: 0; display: block; }
.sm-hero__media img, .sm-hero__media .sm-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform .6s ease; }
.sm-hero__main:hover .sm-hero__media img { transform: scale(1.03); }
.sm-hero__overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: clamp(22px, 3vw, 36px); color: #fff; background: linear-gradient(180deg, rgba(20, 18, 70, 0) 40%, rgba(20, 18, 70, .6) 72%, rgba(14, 12, 52, .92) 100%); pointer-events: none; }
.sm-hero__overlay a { pointer-events: auto; }
.sm-hero__overlay::after { content: ""; order: -1; display: none; }
.sm-hero .sm-tag { position: relative; z-index: 3; }
.sm-hero__title { position: relative; margin: 0; padding-top: 16px; max-width: 26ch; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.18; text-wrap: balance; }
.sm-hero__title::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--sm-primary); }
.sm-hero__title a { color: #fff; text-decoration: none; }
.sm-hero__title a::after { content: ""; position: absolute; inset: -400px 0 -40px -40px; z-index: 2; pointer-events: auto; }
.sm-hero__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.sm-hero__credit { margin: 0; text-align: right; font-size: .75rem; color: var(--sm-muted); }

.sm-hero__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sm-hero__item { flex: 1; display: grid; grid-template-columns: minmax(112px, 38%) minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--sm-line); }
.sm-hero__item:first-child { border-top: 0; padding-top: 0; }
.sm-hero__item:last-child { padding-bottom: 0; }
.sm-hero__thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--sm-radius-s); overflow: hidden; background: var(--sm-placeholder); }
.sm-hero__thumb img, .sm-hero__thumb .sm-card__placeholder { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; padding: 0; transition: transform .4s ease; }
.sm-hero__item:hover .sm-hero__thumb img { transform: scale(1.05); }
.sm-hero__thumb .sm-card__placeholder-label { display: none; }
.sm-hero__item-title { font-family: var(--sm-serif); font-size: 1.125rem; line-height: 1.32; color: var(--sm-link); text-decoration: none; text-wrap: pretty; }
.sm-hero__item-title:hover { color: var(--sm-primary); }
@media (max-width: 900px) { .sm-hero { grid-template-columns: 1fr; } .sm-hero__main { min-height: 360px; } .sm-hero__item { flex: none; padding: 14px 0; } .sm-hero__item:first-child { padding-top: 14px; } }
@media (max-width: 480px) { .sm-hero__item { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; } .sm-hero__main { min-height: 320px; } }

/* ---------- Homepage sections ---------- */
.sm-sections { display: grid; grid-template-columns: repeat(var(--sm-columns, 3), minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) var(--sm-gap); margin-block: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .sm-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sm-sections { grid-template-columns: 1fr; } }
.sm-sections__item > .sm-card + .sm-card { margin-top: 20px; }

/* ---------- Archives ---------- */
.sm-archive-title { font-family: var(--sm-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.5rem); margin: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 36px); }
.sm-archive .wp-block-post-template { gap: clamp(32px, 4vw, 48px) var(--sm-gap); }
.sm-archive .wp-block-post-featured-image { aspect-ratio: 16 / 10; background: var(--sm-placeholder); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.sm-archive .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
.sm-archive .wp-block-post-title { font-family: var(--sm-serif); font-weight: 400; font-size: 1.0625rem; line-height: 1.45; margin: 0; }
.sm-archive .wp-block-post-title a { color: var(--sm-link); text-decoration: none; }
.sm-archive .wp-block-post-title a:hover { color: var(--sm-primary); }
.sm-archive .wp-block-post-excerpt { font-size: .9rem; color: var(--sm-muted); }
.sm-archive .wp-block-query-pagination { margin-top: clamp(28px, 4vw, 48px); font-family: var(--sm-sans); font-size: .9rem; }
.sm-archive .wp-block-query-pagination a { text-decoration: none; color: var(--sm-text); }
.sm-archive .wp-block-query-pagination .current { color: var(--sm-primary); font-weight: 700; }

/* ---------- Single ---------- */
.sm-single { margin-top: clamp(28px, 4vw, 48px); }
.sm-single .wp-block-post-terms.is-style-sm-tag { margin-bottom: 12px; }
.sm-single .wp-block-post-title { font-family: var(--sm-serif); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; color: var(--sm-link); margin: 0 0 clamp(20px, 3vw, 32px); }
.sm-single .wp-block-post-featured-image { background: var(--sm-placeholder); border-radius: 2px; overflow: hidden; margin-bottom: clamp(24px, 4vw, 40px); }
.sm-single .wp-block-post-featured-image figcaption { font-size: .8rem; color: var(--sm-muted); margin-top: 8px; }
.sm-single .sm-byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--sm-muted); margin-bottom: clamp(20px, 3vw, 32px); }
.sm-single .sm-byline a { color: inherit; }
.sm-single .wp-block-post-content { font-size: 1.0625rem; line-height: 1.75; }
.sm-single .wp-block-post-content h2, .sm-single .wp-block-post-content h3 { font-family: var(--sm-sans); font-weight: 700; margin-top: 1.6em; }
.sm-single .wp-block-post-content h2 { font-size: 1.375rem; }
.sm-single .wp-block-post-content h3 { font-size: 1.125rem; }
.sm-single .wp-block-post-content blockquote,
.sm-single .wp-block-post-content .wp-block-pullquote { border-left: 4px solid var(--sm-primary); background: var(--sm-surface); border-radius: var(--sm-radius-m); padding: 1.5rem 1.75rem; margin: 2rem 0; font-family: var(--sm-serif); font-style: italic; font-size: 1.125rem; }
.sm-single .wp-block-post-content blockquote p:last-child { margin-bottom: 0; }
.sm-single .wp-block-post-content blockquote cite { font-style: normal; font-family: var(--sm-sans); font-size: .85rem; color: var(--sm-muted); }
.sm-single .wp-block-post-content a { text-decoration: underline; text-underline-offset: .15em; }
.sm-single .wp-block-post-content figure img { border-radius: 2px; }
.sm-single .sm-post-footer { border-top: 1px solid var(--sm-line); margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.sm-single .wp-block-post-terms a { font-family: var(--sm-sans); font-size: .8125rem; color: var(--sm-muted); text-decoration: none; }
.sm-related { margin-top: clamp(40px, 6vw, 72px); }
.sm-related .sm-card__title { font-size: .9375rem; }

.sm-comments { margin-top: clamp(40px, 6vw, 72px); }
.sm-comments .wp-block-comments-title { font-family: var(--sm-serif); font-size: 1.375rem; }

/* ---------- Pages ---------- */
.sm-page-title { font-family: var(--sm-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.5rem); margin: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 36px); }
.sm-page-content { font-size: 1rem; line-height: 1.7; }
.sm-page-content .wp-block-image img, .is-style-sm-rounded img { border-radius: var(--sm-radius-l); }

.sm-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 64px); align-items: start; margin-block: clamp(40px, 6vw, 72px); }
.sm-about__text { color: var(--sm-muted); font-size: .95rem; line-height: 1.8; }
.sm-about__contact { border-top: 1px solid var(--sm-line); padding-top: 24px; margin-top: 24px; }
.sm-about__contact-label { font-size: .8rem; margin: 0 0 4px; color: var(--sm-text); }
.sm-about__phone { font-size: 1.375rem; margin: 0; font-weight: 500; }
.sm-about__phone a { color: var(--sm-text); text-decoration: none; }
.sm-about__collage { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto auto; gap: 16px; }
.sm-about__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--sm-radius-l); background: var(--sm-placeholder); }
.sm-about__collage figure { margin: 0; aspect-ratio: 4 / 3; background: var(--sm-placeholder); border-radius: var(--sm-radius-l); overflow: hidden; }
.sm-about__collage figure:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
@media (max-width: 820px) { .sm-about { grid-template-columns: 1fr; } }

.sm-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 820px) { .sm-contact { grid-template-columns: 1fr; } }
.sm-contact__aside { font-size: .9rem; color: var(--sm-muted); line-height: 1.7; }
.sm-contact__aside p { margin: 0 0 12px; }
.sm-contact__aside a { color: var(--sm-text); text-decoration: none; }
.sm-contact__follow { color: var(--sm-text); font-weight: 600; margin-top: 24px; }

.sm-contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.sm-contact-form__grid .is-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .sm-contact-form__grid { grid-template-columns: 1fr; } }
.sm-contact-form input, .sm-contact-form textarea, .sm-contact-form select {
	width: 100%; border: 1px solid var(--sm-primary); border-radius: var(--sm-radius-s); background: var(--sm-base);
	padding: 12px 14px; font: inherit; font-size: .9375rem; color: var(--sm-text);
}
.sm-contact-form input::placeholder, .sm-contact-form textarea::placeholder { color: #9a9a9a; }
.sm-contact-form input:focus, .sm-contact-form textarea:focus, .sm-contact-form select:focus { outline: 2px solid var(--sm-link); outline-offset: 1px; }
.sm-contact-form__submit { background: var(--sm-primary); color: var(--sm-on-primary); border: 0; border-radius: var(--sm-radius-s); padding: 12px 24px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.sm-contact-form__submit:hover { background: var(--sm-text); color: #fff; }
.sm-contact-form .is-invalid { outline: 2px solid var(--sm-primary); }

.sm-form__message { margin: 12px 0 0; font-size: .9rem; min-height: 1.4em; }
.sm-form__message.is-error { color: var(--sm-primary); }
.sm-form__message.is-success { color: var(--sm-text); font-weight: 600; }
.sm-ajax-form.is-sending { opacity: .6; pointer-events: none; }

/* Donate */
.sm-donate-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; margin-block: clamp(40px, 6vw, 72px); }
@media (max-width: 820px) { .sm-donate-page { grid-template-columns: 1fr; } }
.sm-donate-page__visual { border-radius: var(--sm-radius-l); min-height: 420px; background: linear-gradient(180deg, #9b4b4b 0%, #a37a7a 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; position: relative; overflow: hidden; }
.sm-donate-page__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.sm-donate-page__visual-text { position: relative; font-family: var(--sm-sans); font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.sm-donate-page__visual-text::before { content: "✱"; display: block; font-size: 1.5rem; margin-bottom: 20px; }
.sm-donate-page__title { font-family: var(--sm-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.5rem); margin: 0 0 8px; }
.sm-donate-page__intro { color: var(--sm-muted); font-size: .9rem; margin: 0 0 20px; }
.sm-donate__group { border: 0; padding: 0; margin: 0 0 18px; }
.sm-donate__group > label, .sm-donate__group legend { display: block; font-size: .9375rem; font-weight: 500; margin-bottom: 8px; }
.sm-donate select { width: 100%; padding: 10px 14px; border: 1px solid var(--sm-line); border-radius: var(--sm-radius-s); background: var(--sm-surface); font: inherit; }
.sm-donate__amounts { display: flex; flex-direction: column; gap: 8px; }
.sm-radio { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; cursor: pointer; }
.sm-radio input { accent-color: var(--sm-primary); width: 16px; height: 16px; margin: 0; }
.sm-radio--custom span { font-size: .75rem; color: var(--sm-primary); text-decoration: underline; }
.sm-donate__custom { width: 160px; padding: 8px 12px; border: 1px solid var(--sm-line); border-radius: var(--sm-radius-s); font: inherit; }
.sm-donate__freq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-pill { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--sm-surface); border-radius: var(--sm-radius-s); cursor: pointer; font-size: .9375rem; }
.sm-pill:has(input:checked) { background: #e5e5e5; }
.sm-pill input { accent-color: var(--sm-primary); margin: 0; }
.sm-donate__note { font-size: .75rem; color: var(--sm-muted); margin: 0 0 24px; }
.sm-donate__actions { display: flex; gap: 16px; }
.sm-donate__actions > * { flex: 1; text-align: center; }
.sm-donate__actions .wp-element-button { display: inline-block; text-decoration: none; cursor: pointer; border: 0; font: inherit; font-weight: 500; font-size: .9375rem; padding: 12px 20px; border-radius: var(--sm-radius-s); background: var(--sm-primary); color: var(--sm-on-primary); }
.is-style-sm-outline.wp-element-button, .is-style-sm-outline .wp-element-button { background: transparent !important; color: var(--sm-primary) !important; border: 1px solid var(--sm-primary) !important; }

/* Legal page with sticky side nav */
.sm-legal { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 720px) { .sm-legal { grid-template-columns: 1fr; } }
.sm-legal__nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.sm-legal__nav a { display: block; background: var(--sm-placeholder); color: var(--sm-text); text-decoration: none; font-size: .8rem; padding: 8px 14px; border-radius: 999px; text-align: center; }
.sm-legal__nav a:hover, .sm-legal__nav a.is-current { background: var(--sm-tag); color: var(--sm-on-tag); }
@media (max-width: 720px) { .sm-legal__nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.sm-legal__content { font-size: .9rem; line-height: 1.55; }

/* ---------- Newsletter ---------- */
.sm-newsletter { background: var(--sm-rose); color: var(--sm-on-newsletter); border-radius: var(--sm-radius-l); padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 48px); margin-block: clamp(40px, 6vw, 80px); text-align: center; }
.sm-newsletter__heading { font-family: var(--sm-sans); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 24px; color: inherit; }
.sm-newsletter__form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto; }
.sm-newsletter__form input[type="text"], .sm-newsletter__form input[type="email"] { width: 100%; border: 0; border-radius: 999px; padding: 15px 22px; font: inherit; font-size: .9375rem; background: var(--sm-base); color: var(--sm-text); }
.sm-newsletter__submit { align-self: center; background: var(--sm-tag); color: var(--sm-on-tag); border: 0; border-radius: 999px; padding: 14px 44px; font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer; margin-top: 6px; }
.sm-newsletter__submit:hover { background: var(--sm-base); color: var(--sm-text); }
.sm-newsletter .sm-form__message.is-success { color: inherit; }

/* ---------- Footer ---------- */
.sm-footer { margin-top: clamp(40px, 6vw, 80px); }
.sm-footer__top { background: var(--sm-surface); padding-block: clamp(28px, 4vw, 48px); }
.sm-footer__search { margin: 0 0 clamp(24px, 3vw, 40px); }
.sm-footer__search .wp-block-search__inside-wrapper { background: var(--sm-base); border: 1px solid var(--sm-line); border-radius: var(--sm-radius-s); padding: 4px; }
.sm-footer__search .wp-block-search__input { border: 0; background: transparent; font-size: 1.0625rem; padding: 12px 16px; color: var(--sm-text); }
.sm-footer__search .wp-block-search__input:focus { outline: 0; }
.sm-footer__search .wp-block-search__button { background: transparent; color: var(--sm-text); border: 0; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8125rem; padding: 12px 18px; cursor: pointer; }
.sm-footer__search .wp-block-search__button::after { content: " \2192"; }
.sm-footer__search .wp-block-search__button:hover { color: var(--sm-primary); }

.sm-fcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 960px) { .sm-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sm-fcols { grid-template-columns: 1fr; } }
.sm-fcol__title { font-family: var(--sm-mono); font-weight: 400; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--sm-primary); line-height: 1.2; }
.sm-fcol__title a { color: var(--sm-text); text-decoration: none; }
.sm-fcol__title a:hover { color: var(--sm-primary); }
.sm-fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sm-fcol li a { font-size: .875rem; line-height: 1.4; color: var(--sm-link); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-fcol li a:hover { color: var(--sm-primary); }
.sm-fcta { display: inline-block; margin-top: 18px; padding: 10px 20px; background: var(--sm-primary); color: var(--sm-on-primary); border-radius: var(--sm-radius-s); font-weight: 600; font-size: .875rem; text-decoration: none; }
.sm-fcta:hover { background: var(--sm-text); color: #fff; }

.sm-footer__base { background: var(--sm-link); color: #fff; padding-block: clamp(28px, 4vw, 48px) 22px; }
.sm-footer__base a { color: #fff; }
.sm-footer__base-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 820px) { .sm-footer__base-inner { grid-template-columns: 1fr; } }
.sm-footer__lockup { display: flex; align-items: center; gap: 16px; }
.sm-footer__logo { background: #fff; border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; flex: none; }
.sm-footer__logo .wp-block-site-logo { line-height: 0; }
.sm-footer__base .wp-block-site-title, .sm-footer__base .wp-block-site-title a { color: #fff; margin: 0; }
.sm-footer__tagline { margin: 14px 0 0; max-width: 40ch; text-wrap: balance; font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.8); }
.sm-footer__links { margin-top: 18px; }
.sm-footer__links .wp-block-navigation { gap: 6px 0; font-size: .8125rem; }
.sm-footer__links .wp-block-navigation-item { display: inline-flex; align-items: center; }
.sm-footer__links .wp-block-navigation-item + .wp-block-navigation-item::before { content: ""; width: 1px; height: 12px; background: rgba(255,255,255,.4); margin: 0 12px; }
.sm-footer__links .wp-block-navigation a { color: #fff; text-decoration: none; }
.sm-footer__links .wp-block-navigation a:hover { text-decoration: underline; }
.sm-footer__contact { display: grid; gap: 6px; justify-items: end; text-align: right; }
@media (max-width: 820px) { .sm-footer__contact { justify-items: start; text-align: left; } }
.sm-footer__contact .sm-social { justify-content: flex-end; margin-bottom: 18px; }
@media (max-width: 820px) { .sm-footer__contact .sm-social { justify-content: flex-start; } }
.sm-footer__base .sm-social a { background: #fff; color: var(--sm-link); border: 0; border-radius: 50%; width: 42px; height: 42px; }
.sm-footer__base .sm-social a:hover { background: var(--sm-tag); color: var(--sm-on-tag); }
.sm-footer__ask { font-family: var(--sm-serif); font-weight: 700; font-size: 1.25rem; margin: 0; color: #fff; }
.sm-footer__ask-text { margin: 0 0 10px; font-size: .875rem; color: rgba(255,255,255,.85); }
.sm-footer__btn .wp-block-button__link { background: #fff; color: var(--sm-link); border-radius: var(--sm-radius-s); padding: 12px 22px; font-weight: 700; font-size: .875rem; text-decoration: none; }
.sm-footer__btn .wp-block-button__link:hover { background: var(--sm-tag); color: var(--sm-on-tag); }
.sm-footer__copy { margin-top: clamp(24px, 3vw, 36px); padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); font-size: .75rem; font-family: var(--sm-mono); letter-spacing: .02em; color: rgba(255,255,255,.75); }
.sm-footer__copy p { margin: 0; }

.sm-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sm-social a { display: inline-flex; align-items: center; justify-content: center; color: var(--sm-text); text-decoration: none; width: calc(var(--sm-social-size, 18px) + 10px); height: calc(var(--sm-social-size, 18px) + 10px); transition: color .15s ease, background .15s ease; }
.sm-social a:hover { color: var(--sm-primary); }
.sm-social svg { width: var(--sm-social-size, 18px); height: var(--sm-social-size, 18px); fill: currentColor; }
.sm-social--boxed a { border: 1px solid currentColor; border-radius: 4px; }
.sm-social--round a { border: 1px solid currentColor; border-radius: 50%; }
.sm-social-wrap { display: flex; flex-direction: column; gap: 10px; }
.sm-social__label { font-size: .875rem; font-weight: 600; }

.sm-totop { position: fixed; right: 20px; bottom: 24px; z-index: 50; width: 36px; height: 36px; border-radius: var(--sm-radius-s); background: var(--sm-primary); color: var(--sm-on-primary); border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.15); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.sm-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sm-totop svg { width: 14px; height: 14px; }

/* ---------- Reading progress bar ---------- */
.sm-progress { position: fixed; left: 0; right: 0; z-index: 9999; height: var(--sm-progress-height, 4px); background: transparent; pointer-events: none; }
.sm-progress--top { top: 0; }
.sm-progress--bottom { bottom: 0; }
.sm-progress__bar { display: block; height: 100%; width: 0; background: var(--sm-progress-color, var(--sm-primary)); transition: width .08s linear; }
.admin-bar .sm-progress--top { top: var(--wp-admin--admin-bar--height, 32px); }

/* ---------- Lightbox tweaks ---------- */
.lightbox .lb-image { border-radius: 2px; }
.lb-data .lb-caption { font-family: var(--sm-sans); }

/* ---------- 404 / search ---------- */
.sm-404 { text-align: center; padding-block: clamp(48px, 8vw, 120px); }
.sm-404 h1 { font-family: var(--sm-serif); font-size: clamp(3rem, 8vw, 6rem); margin: 0 0 12px; color: var(--sm-primary); }
.sm-search-page .wp-block-search { margin-bottom: clamp(24px, 4vw, 40px); }
.sm-search-page .wp-block-search__input { border: 1px solid var(--sm-line); border-radius: var(--sm-radius-s); padding: 12px 16px; }
.sm-search-page .wp-block-search__button { background: var(--sm-primary); color: var(--sm-on-primary); border: 0; border-radius: var(--sm-radius-s); }

/* Block style: rose panel group */
.is-style-sm-panel { background: var(--sm-rose); color: var(--sm-on-newsletter); border-radius: var(--sm-radius-l); padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 48px); }
.is-style-sm-section-heading { display: flex; align-items: center; gap: 14px; font-family: var(--sm-serif); font-weight: 400; }
.is-style-sm-section-heading::after { content: ""; flex: 1 1 auto; height: 2px; background: linear-gradient(90deg, var(--sm-primary) 0 28px, var(--sm-line) 28px); }

/* Utility */
.sm-constrain { max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto; padding-inline: var(--wp--style--root--padding-left, 20px); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Shape: rounded corners and pills ---------- */
.sm-tag, .is-style-sm-tag a, .wp-block-post-terms.is-style-sm-tag a { border-radius: var(--sm-pill); padding: 6px 14px; }
.sm-card__media, .sm-archive .wp-block-post-featured-image, .sm-single .wp-block-post-featured-image,
.sm-single .wp-block-post-content figure img, .sm-hero__main { border-radius: var(--sm-radius-l); }
.sm-card__media, .sm-archive .wp-block-post-featured-image { border-radius: var(--sm-radius-m); }

.sm-catbar__inner { padding-block: 10px; }
.sm-catbar .wp-block-navigation { gap: 6px; }
.sm-catbar .wp-block-navigation a { padding: 8px 16px; border: 0; border-radius: var(--sm-pill); transition: background .15s ease; }
.sm-catbar .wp-block-navigation a:hover,
.sm-catbar .wp-block-navigation .current-menu-item > a { background: rgba(255,255,255,.2); border: 0; }
.sm-search-toggle { background: rgba(255,255,255,.14); padding: 10px; }

.sm-section-heading__rule, .sm-section-heading__rule::before { border-radius: var(--sm-pill); }
.sm-section-heading__all { border: 1px solid var(--sm-line); border-radius: var(--sm-pill); padding: 4px 12px; }
.sm-section-heading__all:hover { border-color: var(--sm-primary); }

.sm-search-panel .wp-block-search__input, .sm-search-page .wp-block-search__input,
.sm-search-panel .wp-block-search__button, .sm-search-page .wp-block-search__button { border-radius: var(--sm-pill); }
.sm-search-panel .wp-block-search__inside-wrapper, .sm-search-page .wp-block-search__inside-wrapper { border-radius: var(--sm-pill); }

.sm-contact-form input, .sm-contact-form select { border-radius: var(--sm-pill); padding-inline: 20px; }
.sm-contact-form textarea { border-radius: var(--sm-radius-l); padding: 14px 20px; }
.sm-contact-form__submit { border-radius: var(--sm-pill); padding: 13px 32px; }

.sm-donate select, .sm-donate__custom { border-radius: var(--sm-pill); padding-inline: 18px; }
.sm-pill { border-radius: var(--sm-pill); padding-inline: 18px; }
.sm-donate__actions .wp-element-button { border-radius: var(--sm-pill); }
.sm-donate-page__visual { border-radius: var(--sm-radius-l); }
.wp-element-button, .wp-block-button__link { border-radius: var(--sm-pill); }

.sm-single .wp-block-post-content blockquote,
.sm-single .wp-block-post-content .wp-block-pullquote { border-radius: var(--sm-radius-l); }
.sm-single .wp-block-post-terms:not(.is-style-sm-tag) a { border: 1px solid var(--sm-line); border-radius: var(--sm-pill); padding: 4px 12px; }

.sm-archive .wp-block-query-pagination-numbers a, .sm-archive .wp-block-query-pagination-numbers .current,
.sm-archive .wp-block-query-pagination-previous, .sm-archive .wp-block-query-pagination-next { border-radius: var(--sm-pill); padding: 6px 14px; border: 1px solid var(--sm-line); }
.sm-archive .wp-block-query-pagination-numbers .current { background: var(--sm-primary); color: var(--sm-on-primary); border-color: var(--sm-primary); }

.sm-social--boxed a { border-radius: 10px; }
.sm-totop { border-radius: 50%; width: 40px; height: 40px; }
.sm-newsletter { border-radius: 32px; }
.is-style-sm-rounded img, .sm-about__collage img, .sm-about__collage figure { border-radius: var(--sm-radius-l); }
.sm-progress__bar { border-radius: 0 var(--sm-pill) var(--sm-pill) 0; }
.lightbox .lb-image { border-radius: var(--sm-radius-s); }

/* ---------- Homepage intro ---------- */
.sm-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(16px, 4vw, 64px); row-gap: 14px; align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.sm-intro::before { content: ""; grid-column: 1 / -1; width: 28px; height: 2px; background: var(--sm-primary); margin: 0; }
.sm-intro__tagline { margin: 0; font-family: var(--sm-display); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.2; color: var(--sm-text); text-wrap: balance; }
.sm-intro__body { margin: 0; }
.sm-intro__text { margin: 0 0 10px; font-size: 1rem; line-height: 1.75; color: var(--sm-text); }
.sm-intro__text strong { font-family: var(--sm-serif); font-weight: 700; color: var(--sm-link); }
.sm-intro__more { margin: 0; font-size: .875rem; }
.sm-intro__more a { color: var(--sm-link); text-decoration: none; border-bottom: 1px solid var(--sm-line); padding-bottom: 1px; }
.sm-intro__more a:hover { color: var(--sm-primary); border-bottom-color: var(--sm-primary); }
.sm-intro + .sm-hero { margin-top: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) { .sm-intro { grid-template-columns: 1fr; } }

/* ---------- Font roles ---------- */
/* Sabon Next LT: editorial serif (headlines, nav, quotes). Kagnue: display. Special Elite: press labels. Ferments: script accent. */
.wp-block-site-title, .sm-section-heading__title:not(.sm-section-heading__title--small), .sm-archive-title, .sm-page-title,
.sm-hero__title, .sm-donate-page__title, .sm-404 h1, .wp-block-query-title { font-family: var(--sm-display); font-weight: 400; font-synthesis: none; }
.wp-block-site-title { letter-spacing: .02em; font-size: 1.5rem; }
.sm-tag, .is-style-sm-tag a, .wp-block-post-terms.is-style-sm-tag a,
.sm-section-heading__all, .sm-byline, .sm-byline *, .sm-post-footer .wp-block-post-date, .sm-footer__bottom p, .sm-footer__heading {
	font-family: var(--sm-mono); font-weight: 400; font-synthesis: none; letter-spacing: .02em;
}
.sm-tag, .is-style-sm-tag a { font-size: .75rem; }
.sm-footer__heading { font-size: .8125rem; }
.sm-donate-page__visual-text, .wp-block-quote cite, .wp-block-pullquote cite { font-family: var(--sm-script); font-weight: 400; font-style: normal; font-synthesis: none; }
.sm-donate-page__visual-text { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; }

/* ---------- Fallback image, reading time, share ---------- */
.sm-card__placeholder { display: flex; align-items: center; justify-content: center; min-height: 100%; aspect-ratio: 16 / 10; width: 100%; background: linear-gradient(135deg, var(--sm-link) 0%, var(--sm-primary) 100%); color: #fff; text-align: center; padding: 16px; box-sizing: border-box; }
.sm-card__placeholder-label { font-family: var(--sm-display); font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; opacity: .92; }
.sm-reading-time { font-family: var(--sm-mono); font-size: .8125rem; color: var(--sm-muted); }
.sm-reading-time::before { content: "·"; margin-right: 12px; }
.sm-share { display: flex; align-items: center; gap: 14px; margin-top: clamp(20px, 3vw, 32px); }
.sm-share__label { font-family: var(--sm-mono); font-size: .8125rem; color: var(--sm-muted); }
.sm-share__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.sm-share__list a, .sm-share__copy { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--sm-line); border-radius: 10px; background: transparent; color: var(--sm-text); cursor: pointer; padding: 0; transition: color .15s ease, border-color .15s ease; }
.sm-share__list a:hover, .sm-share__copy:hover { color: var(--sm-primary); border-color: var(--sm-primary); }
.sm-share__list svg { width: 17px; height: 17px; fill: currentColor; }
.sm-share__copy svg { fill: none; }
.sm-share__status { font-size: .8125rem; color: var(--sm-muted); }
.sm-hero__main .sm-card__placeholder-label { display: none; }

/* ---------- Homepage with sidebar ---------- */
.sm-home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sm-home__main { min-width: 0; }
.sm-home .sm-sections { margin-block: clamp(28px, 4vw, 48px) 0; }
.sm-home__aside { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 48px); position: sticky; top: 24px; }
@media (max-width: 900px) { .sm-home { grid-template-columns: 1fr; } .sm-home__aside { position: static; margin-top: 0; } }

/* Coloured dot per category */
.sm-section-heading.has-dot .sm-section-heading__title::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--sm-cat, var(--sm-primary)); margin-right: .45em; vertical-align: .12em; }

/* Aside modules */
.sm-module { background: var(--sm-base); border: 1px solid var(--sm-line); border-radius: var(--sm-radius-m); padding: 20px 22px 8px; }
.sm-module__title { font-family: var(--sm-mono); font-weight: 400; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; padding-left: 12px; border-left: 3px solid var(--sm-primary); line-height: 1.2; }
.sm-pick-list, .sm-topic-list { list-style: none; margin: 0; padding: 0; }
.sm-pick { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--sm-line); }
.sm-pick:first-child { border-top: 0; }
.sm-pick__cat { font-family: var(--sm-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-cat, var(--sm-primary)); text-decoration: none; }
.sm-pick__title { font-family: var(--sm-serif); font-size: 1.0625rem; line-height: 1.35; color: var(--sm-link); text-decoration: none; }
.sm-pick__title:hover { color: var(--sm-primary); }
.sm-pick__date { font-family: var(--sm-mono); font-size: .75rem; color: var(--sm-muted); }
.sm-topic-list li { border-top: 1px solid var(--sm-line); }
.sm-topic-list li:first-child { border-top: 0; }
.sm-topic-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--sm-link); font-weight: 600; font-size: .9375rem; }
.sm-topic-list a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sm-cat, var(--sm-primary)); flex: none; }
.sm-topic__name { flex: 1; }
.sm-topic-list a:hover .sm-topic__name { color: var(--sm-primary); }
.sm-topic__count { font-family: var(--sm-mono); font-size: .75rem; min-width: 28px; text-align: center; padding: 3px 8px; border-radius: 8px; background: var(--sm-surface); color: var(--sm-muted); }

/* Header tools */
.sm-catbar__tools { display: flex; align-items: center; gap: 8px; }

/* Most read: ranked list */
.sm-rank-list { list-style: none; margin: 0; padding: 0; }
.sm-rank { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--sm-line); }
.sm-rank:first-child { border-top: 0; }
.sm-rank__num { font-family: var(--sm-display); font-size: 2rem; line-height: .9; color: var(--sm-primary); font-synthesis: none; }
.sm-rank__body { display: grid; gap: 4px; min-width: 0; }
.sm-rank__cat { font-family: var(--sm-mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sm-cat, var(--sm-primary)); }
.sm-rank__title { font-family: var(--sm-serif); font-size: 1.0625rem; line-height: 1.3; color: var(--sm-link); text-decoration: none; }
.sm-rank__title:hover { color: var(--sm-primary); }

/* Header: Donate as a solid button */
.sm-header__utility .wp-block-navigation li:last-child a { background: var(--sm-primary); color: var(--sm-on-primary); padding: 9px 20px; border-radius: var(--sm-radius-s); font-family: var(--sm-sans); font-weight: 600; font-size: .9375rem; }
.sm-header__utility .wp-block-navigation li:last-child a:hover { background: var(--sm-text); color: #fff; }

/* ---------- Live-render fixes ---------- */
.sm-page, .sm-archive { padding-top: clamp(24px, 3.5vw, 44px); }
.sm-contact-form input, .sm-contact-form textarea, .sm-contact-form select, .sm-newsletter__form input { box-sizing: border-box; min-width: 0; }

/* One clean border on search fields */
.sm-search-page .wp-block-search__inside-wrapper, .sm-404 .wp-block-search__inside-wrapper, .sm-search-panel .wp-block-search__inside-wrapper { border: 1px solid var(--sm-line); border-radius: var(--sm-pill); padding: 4px; background: var(--sm-base); }
.sm-search-page .wp-block-search__input, .sm-404 .wp-block-search__input, .sm-search-panel .wp-block-search__input { border: 0; background: transparent; padding-inline: 20px; }
.sm-search-page .wp-block-search__input:focus, .sm-404 .wp-block-search__input:focus { outline: 0; }
.sm-404 .wp-block-search { max-width: 560px; margin-inline: auto; }
.sm-404 .wp-block-search__button, .sm-search-page .wp-block-search__button { background: var(--sm-primary); color: var(--sm-on-primary); border: 0; border-radius: var(--sm-pill); padding: 10px 24px; font-weight: 600; }

/* About: tile collage in the logo's colours */
.sm-about__collage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(48px, 6vw, 72px); gap: 14px; }
.sm-about__tile { border-radius: var(--sm-radius-l); min-height: 0; }
.sm-about__tile--navy { grid-column: 3 / 7; grid-row: 1 / 4; background: var(--sm-link); }
.sm-about__tile--yellow { grid-column: 1 / 3; grid-row: 2 / 5; background: var(--sm-tag); }
.sm-about__tile--red { grid-column: 3 / 6; grid-row: 4 / 8; background: var(--sm-primary); }
.sm-about__tile--blue { grid-column: 1 / 3; grid-row: 5 / 9; background: linear-gradient(180deg, var(--sm-link), var(--sm-c3)); }

/* Donate visual: brand gradient and a larger script hashtag */
.sm-donate-page__visual { background: linear-gradient(160deg, var(--sm-link) 0%, var(--sm-primary) 100%); }
.sm-donate-page__visual .sm-donate-page__visual-text { font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1.05; margin: 0; }
.sm-donate-page__visual .sm-donate-page__visual-text::before { content: "✱"; display: block; font-family: var(--sm-sans); font-size: 1.75rem; margin-bottom: 18px; opacity: .85; }

/* ---------- 404 ---------- */
.sm-404__code { font-family: var(--sm-display); font-size: clamp(5rem, 16vw, 11rem); line-height: .9; margin: 0 0 8px; color: var(--sm-primary); position: relative; display: inline-block; font-synthesis: none; }
.sm-404__code::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -6px; height: 8px; border-radius: 8px; background: var(--sm-tag); z-index: -1; }
.sm-404__title { font-family: var(--sm-display); font-weight: 400; font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 18px 0 14px; line-height: 1.15; }
.sm-404__text { max-width: 54ch; margin: 0 auto 26px; font-size: 1.0625rem; color: var(--sm-muted); }
.sm-404 .wp-block-search { margin-bottom: 20px; }
.sm-404__home .wp-block-button__link { background: var(--sm-primary); color: var(--sm-on-primary); padding: 12px 28px; font-weight: 600; }
.sm-404__note { margin-top: 26px; font-family: var(--sm-mono); font-size: .75rem; letter-spacing: .04em; color: var(--sm-muted); }

/* ---------- Footer polish ---------- */
.sm-footer { position: relative; }
.sm-footer__top { position: relative; padding-top: clamp(36px, 5vw, 60px); }
.sm-footer__top::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, var(--sm-link) 0 25%, var(--sm-tag) 25% 50%, var(--sm-primary) 50% 75%, var(--sm-c3) 75% 100%); }
.sm-fcol__title { border-bottom: 0; border-top: 3px solid var(--sm-cat, var(--sm-primary)); padding: 12px 0 0; margin-bottom: 16px; }
.sm-fcol li a { position: relative; padding-left: 14px; }
.sm-fcol li a::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 1px; background: var(--sm-cat, var(--sm-primary)); transform: rotate(45deg); }
.sm-footer__base { position: relative; overflow: hidden; padding-bottom: clamp(96px, 15vw, 190px); }
.sm-footer__base::after { content: "SUARA MALAYSIA"; position: absolute; left: 50%; bottom: -.18em; transform: translateX(-50%); font-family: "Kagnue Outline", var(--sm-display); font-size: clamp(3rem, 12.5vw, 11.5rem); line-height: 1; white-space: nowrap; color: rgba(255, 255, 255, .13); letter-spacing: .02em; pointer-events: none; user-select: none; }
.sm-footer__base-inner, .sm-footer__copy { position: relative; z-index: 1; }
.sm-footer__logo { box-shadow: 0 0 0 6px rgba(255, 255, 255, .14); }
.sm-footer__copy { border-top-color: rgba(255, 255, 255, .2); }
.sm-footer__base::after { font-size: clamp(2rem, 10.2vw, 9.25rem); }
.sm-404 .sm-404__title { color: var(--sm-text); font-size: clamp(1.5rem, 3.2vw, 2.25rem); margin: 22px 0 12px; }
@media (max-width: 560px) {
	.sm-footer__links .wp-block-navigation { column-gap: 18px; }
	.sm-footer__links .wp-block-navigation-item + .wp-block-navigation-item::before { display: none; }
}

/* Compact header */
.sm-header .sm-catbar { margin-top: 0; }
.sm-header .sm-catbar__inner { padding-block: 4px; min-height: 52px; }
.sm-header__brand { gap: 12px; }
.sm-intro { margin-top: 0; padding-top: clamp(26px, 3.2vw, 40px); }
.sm-intro::before { margin-bottom: 2px; }
@media (max-width: 720px) {
	.sm-header__top { flex-wrap: nowrap; gap: 12px; padding-block: 10px; }
	.sm-header__brand { min-width: 0; gap: 10px; }
	.sm-header__brand .wp-block-site-logo img { width: 40px; height: auto; }
	.sm-header__brand .wp-block-site-title { font-size: 1.125rem; }
	.sm-header__utility .wp-block-navigation-item:not(:last-child) { display: none; }
	.sm-header__utility .wp-block-navigation li:last-child a { padding: 8px 16px; font-size: .875rem; }
}
@media (max-width: 360px) {
	.sm-header__brand .wp-block-site-logo img { width: 32px; }
	.sm-header__brand { gap: 8px; }
	.sm-header__brand .wp-block-site-title { font-size: .9375rem; letter-spacing: 0; }
	.sm-header__utility .wp-block-navigation li:last-child a { padding: 7px 12px; font-size: .8125rem; }
	.sm-header__top { gap: 8px; }
}
@media (max-width: 900px) { .sm-home { grid-template-columns: minmax(0, 1fr); } }
.sm-sections__item, .sm-home__main, .sm-home__aside { min-width: 0; }
@media (max-width: 560px) {
	.sm-section-heading { gap: 10px; }
	.sm-section-heading__title { white-space: normal; }
	.sm-section-heading__rule { min-width: 12px; }
}

/* ---------- Tablet (601px to 1100px) ---------- */
@media (min-width: 601px) and (max-width: 1100px) {
	/* Category bar: one scrollable row instead of wrapping */
	.sm-catbar__inner { flex-wrap: nowrap; }
	.sm-catbar__inner > .wp-block-navigation { min-width: 0; flex: 1 1 auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
	.sm-catbar .wp-block-navigation__container { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-right: 36px; }
	.sm-catbar .wp-block-navigation__container::-webkit-scrollbar { display: none; }
	.sm-catbar .wp-block-navigation-item { flex: none; }
	.sm-catbar .wp-block-navigation a { white-space: nowrap; padding: 8px 12px; }
	.sm-catbar__tools { flex: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
	/* Hero: lead on top, the four stories in a two-column grid underneath */
	.sm-hero__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.sm-hero__item { grid-template-columns: 112px minmax(0, 1fr); flex: none; padding: 16px 0; }
	.sm-hero__item:first-child, .sm-hero__item:nth-child(2) { border-top: 0; padding-top: 0; }
	.sm-hero__item:nth-child(n+3) { border-top: 1px solid var(--sm-line); }
	.sm-hero__item:last-child { padding-bottom: 0; }
	.sm-hero__item-title { font-size: 1rem; }
}
@media (max-width: 600px) {
	.sm-hero__item:first-child { padding-top: 0; }
}
@media (max-width: 900px) {
	.sm-section-heading { gap: 10px; }
	.sm-section-heading__title { white-space: normal; min-width: 0; }
	.sm-section-heading__rule { min-width: 12px; }
	.sm-section-heading__all { flex: none; }
}
@media (max-width: 820px) {
	.sm-donate-page__visual { min-height: 0; padding-block: 36px; }
	.sm-donate-page__visual .sm-donate-page__visual-text { font-size: clamp(2.25rem, 9vw, 3rem); }
}
