/*
Theme Name: SIADO
Theme URI: https://siado.org/
Author: SIADO
Description: A lightweight, accessible institutional WordPress theme for SIADO.
Version: 1.0.3
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: siado-theme
*/

:root {
  --siado-ink: #142a3a;
  --siado-navy: #123750;
  --siado-red: #c7242c;
  --siado-red-dark: #a51b24;
  --siado-green: #2f765b;
  --siado-gold: #d3a642;
  --siado-paper: #f8f7f3;
  --siado-sand: #eeece5;
  --siado-muted: #5e6a70;
  --siado-line: #d8d9d5;
  --siado-white: #fff;
  --siado-shadow: 0 18px 50px rgba(20, 42, 58, .10);
  --siado-serif: Georgia, "Times New Roman", serif;
  --siado-sans: "Aptos", "Segoe UI", Arial, sans-serif;
  --siado-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  color: var(--siado-ink);
  background: var(--siado-white);
  font-family: var(--siado-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--siado-red-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--siado-navy); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--siado-gold); outline-offset: 3px; }
::selection { color: var(--siado-white); background: var(--siado-navy); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 1rem; left: 1rem; width: auto; height: auto;
  padding: .75rem 1rem; clip: auto; color: var(--siado-white);
  background: var(--siado-navy);
}
.wrap { width: min(calc(100% - 3rem), var(--siado-width)); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }
.section { padding: clamp(3.5rem, 7vw, 6.75rem) 0; }
.section--paper { background: var(--siado-paper); }
.section--navy { color: var(--siado-white); background: var(--siado-navy); }
.section--navy a { color: #fff; }
.section--compact { padding: 3rem 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1rem;
  color: var(--siado-red-dark); font-size: .77rem; font-weight: 800;
  letter-spacing: .14em; line-height: 1.3; text-transform: uppercase;
}
.eyebrow::before { display: block; width: 1.5rem; height: 2px; content: ""; background: currentColor; }
h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--siado-ink); line-height: 1.12; }
h1, h2 { font-family: var(--siado-serif); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.7rem); }
h3 { font-size: 1.32rem; font-weight: 750; letter-spacing: -.018em; }
h4 { font-size: 1.05rem; font-weight: 750; }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.4rem; }
.lead { max-width: 720px; color: #465863; font-size: clamp(1.12rem, 2vw, 1.32rem); line-height: 1.55; }
.muted { color: var(--siado-muted); }
.section-heading { max-width: 760px; margin-bottom: 2.4rem; }
.section-heading p:last-child { margin-bottom: 0; }

.button, a.button, button.button {
  display: inline-flex; min-height: 3.15rem; align-items: center; justify-content: center;
  gap: .6rem; border: 1px solid transparent; border-radius: 2px; padding: .8rem 1.2rem;
  color: var(--siado-white); background: var(--siado-red); font-size: .9rem;
  font-weight: 750; line-height: 1.2; text-decoration: none; transition: background .18s ease, transform .18s ease;
}
.button:hover, a.button:hover, button.button:hover { color: #fff; background: var(--siado-red-dark); transform: translateY(-1px); }
.button--outline, a.button--outline {
  border-color: rgba(255,255,255,.65); color: var(--siado-white); background: transparent;
}
.button--outline:hover, a.button--outline:hover { color: var(--siado-white); background: rgba(255,255,255,.12); }
.button--dark, a.button--dark { color: var(--siado-white); background: var(--siado-navy); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; text-decoration: none; }
.text-link::after { content: "→"; font-size: 1.2em; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* Header and accessible navigation */
.site-header { position: relative; z-index: 20; background: var(--siado-white); }
.header-contact { min-height: 2.7rem; color: var(--siado-white); background: var(--siado-red); font-size: .78rem; }
.header-contact__inner { display: flex; min-height: 2.7rem; align-items: center; justify-content: space-between; gap: 1rem; }
.header-contact__items { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.header-contact a { color: inherit; text-decoration: none; }
.header-contact a:hover { text-decoration: underline; }
.site-header__main { border-bottom: 1px solid rgba(20,42,58,.08); }
.site-header__inner { display: flex; min-height: 5.5rem; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--siado-ink); text-decoration: none; }
.brand__mark { width: 3.65rem; height: 3.65rem; overflow: hidden; flex: 0 0 auto; border: 1px solid rgba(20,42,58,.12); border-radius: 50%; background: #fff; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand__text { max-width: 13rem; font-size: .84rem; font-weight: 800; line-height: 1.2; letter-spacing: .015em; }
.primary-navigation { display: flex; align-items: center; gap: 1.65rem; }
.primary-navigation ul { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.65rem); margin: 0; padding: 0; list-style: none; }
.primary-navigation a { color: var(--siado-ink); font-size: .84rem; font-weight: 700; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current_page_item > a { color: var(--siado-red); }
.navigation-search { display: flex; width: 10.5rem; align-items: center; border-bottom: 1px solid var(--siado-line); }
.navigation-search input[type="search"] { min-width: 0; border: 0; padding: .45rem .1rem; font-size: .8rem; }
.navigation-search button { border: 0; padding: .35rem; color: var(--siado-red); background: transparent; font-size: .8rem; font-weight: 700; }
.menu-toggle { display: none; border: 1px solid var(--siado-line); border-radius: 2px; padding: .55rem .7rem; color: var(--siado-ink); background: #fff; font-weight: 700; }
.menu-toggle__bars { display: inline-block; margin-right: .4rem; }

/* Editorial home */
.home-hero { position: relative; overflow: hidden; color: #fff; background: var(--siado-navy); }
.home-hero::after { position: absolute; right: -6rem; bottom: -15rem; width: 35rem; height: 35rem; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.home-hero__inner { position: relative; z-index: 1; display: grid; min-height: 42rem; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(2rem, 5vw, 5.5rem); padding-top: 4rem; padding-bottom: 4rem; }
.home-hero h1 { max-width: 650px; color: #fff; }
.home-hero .eyebrow { color: #f3c365; }
.home-hero__copy { max-width: 540px; color: rgba(255,255,255,.86); font-size: 1.15rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.home-hero__visual { position: relative; min-height: 31rem; }
.home-hero__image { position: absolute; inset: 0 8% 7% 3%; overflow: hidden; border-radius: 50% 50% 0 0 / 44% 44% 0 0; background: #214b62; }
.home-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.home-hero__photo-note { position: absolute; right: 0; bottom: 0; max-width: 16rem; border-left: 4px solid var(--siado-gold); padding: 1rem 1.1rem; color: var(--siado-ink); background: var(--siado-white); font-size: .85rem; line-height: 1.45; box-shadow: var(--siado-shadow); }
.home-hero__photo-note strong { display: block; margin-bottom: .25rem; color: var(--siado-red); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.home-hero__seal { position: absolute; top: 1.5rem; left: 0; display: grid; width: 6.25rem; height: 6.25rem; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: var(--siado-red); font-family: var(--siado-serif); font-size: 1.25rem; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.intro-grid__aside { border-top: 3px solid var(--siado-red); padding-top: 1.3rem; }
.intro-grid__aside p { color: var(--siado-muted); }
.intro-grid blockquote { margin: 1.75rem 0 0; border-left: 3px solid var(--siado-gold); padding-left: 1.2rem; color: var(--siado-navy); font-family: var(--siado-serif); font-size: 1.35rem; }
.principles-strip { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.principles-strip span { border: 1px solid var(--siado-line); padding: .48rem .75rem; color: var(--siado-ink); background: #fff; font-size: .78rem; font-weight: 700; }
.feature-band { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--siado-paper); }
.feature-band__image { min-height: 27rem; }
.feature-band__image img { width: 100%; height: 100%; object-fit: cover; }
.feature-band__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5.5rem); }
.feature-band__body h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.theme-card-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.theme-card { display: flex; min-height: 16.5rem; flex-direction: column; justify-content: space-between; border-top: 3px solid var(--siado-red); padding: 1.5rem; background: var(--siado-paper); transition: background .18s ease, transform .18s ease; }
.theme-card:nth-child(3n + 2) { border-color: var(--siado-green); }
.theme-card:nth-child(3n) { border-color: var(--siado-gold); }
.theme-card:hover { background: #f1efe9; transform: translateY(-3px); }
.theme-card h3 { max-width: 18rem; margin-top: 2rem; font-family: var(--siado-serif); font-size: 1.6rem; font-weight: 500; }
.theme-card p { color: var(--siado-muted); }
.theme-card a { color: var(--siado-ink); text-decoration: none; }
.theme-card a:hover { color: var(--siado-red); }
.theme-card__number { color: var(--siado-red); font-family: var(--siado-serif); font-size: 1.05rem; }
.photo-ribbon { display: grid; grid-template-columns: 1.25fr .8fr .95fr; gap: .75rem; }
.photo-ribbon figure { position: relative; min-height: 17rem; overflow: hidden; margin: 0; background: var(--siado-sand); }
.photo-ribbon figure:first-child { min-height: 24rem; }
.photo-ribbon img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .4s ease; }
.photo-ribbon figure:hover img { transform: scale(1.025); }
.photo-ribbon figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: .8rem 1rem; color: #fff; background: linear-gradient(transparent, rgba(12,32,45,.78)); font-size: .8rem; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-left: 5px solid var(--siado-gold); padding: clamp(1.5rem, 4vw, 3rem); color: #fff; background: var(--siado-navy); }
.cta-panel h2 { margin-bottom: .5rem; color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.cta-panel p { max-width: 660px; margin-bottom: 0; color: rgba(255,255,255,.78); }

/* Archive, cards and content */
.page-hero { padding: clamp(3.5rem, 8vw, 7rem) 0 3rem; background: var(--siado-paper); }
.page-hero h1 { max-width: 850px; font-size: clamp(2.5rem, 6vw, 4.7rem); }
.page-hero__description { max-width: 740px; color: var(--siado-muted); font-size: 1.14rem; }
.siado-breadcrumbs { padding: 1.1rem 0 0; font-size: .78rem; }
.siado-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.siado-breadcrumbs li + li::before { margin-right: .55rem; color: #87949b; content: "/"; }
.siado-breadcrumbs a { color: var(--siado-muted); text-decoration: none; }
.siado-breadcrumbs [aria-current="page"] { color: var(--siado-ink); font-weight: 700; }
.archive-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin: 0 0 2rem; padding: 1rem; background: var(--siado-paper); }
.archive-toolbar label { display: grid; gap: .25rem; color: var(--siado-ink); font-size: .76rem; font-weight: 750; }
.archive-toolbar input, .archive-toolbar select { min-width: 11rem; min-height: 2.75rem; border: 1px solid var(--siado-line); border-radius: 0; padding: .55rem .65rem; color: var(--siado-ink); background: #fff; }
.archive-toolbar .button { min-height: 2.75rem; }
.content-card { min-width: 0; border-bottom: 1px solid var(--siado-line); background: #fff; }
.content-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--siado-paper); }
.content-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.content-card:hover .content-card__image img { transform: scale(1.025); }
.content-card__body { padding: 1.15rem 0 1.4rem; }
.content-card__meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-bottom: .65rem; color: var(--siado-muted); font-size: .76rem; }
.content-card h2, .content-card h3 { margin-bottom: .65rem; font-family: var(--siado-serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.content-card h2 a, .content-card h3 a { color: var(--siado-ink); text-decoration: none; }
.content-card h2 a:hover, .content-card h3 a:hover { color: var(--siado-red); }
.content-card p { color: var(--siado-muted); font-size: .93rem; }
.content-card__body > :last-child { margin-bottom: 0; }
.status-badge { display: inline-block; border: 1px solid var(--siado-line); padding: .15rem .5rem; color: var(--siado-ink); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.empty-state { border: 1px solid var(--siado-line); border-left: 4px solid var(--siado-gold); padding: 1.3rem 1.5rem; background: var(--siado-paper); }
.empty-state h2, .empty-state h3 { margin-bottom: .45rem; font-size: 1.35rem; }
.empty-state p:last-child { margin-bottom: 0; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 2.5rem; }
.pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pagination a.page-numbers, .pagination span.page-numbers { display: grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; border: 1px solid var(--siado-line); color: var(--siado-ink); text-decoration: none; }
.pagination .current, .pagination a:hover { color: #fff; background: var(--siado-navy); }

.siado-pattern-intro { padding: clamp(1.5rem, 4vw, 3rem); background: var(--siado-paper); border-left: 4px solid var(--siado-red); }
.siado-pattern-cta { padding: clamp(1.5rem, 4vw, 3rem); background: var(--siado-navy); color: #fff; }
.siado-pattern-cta h2 { color: #fff; }
.siado-pattern-cta .wp-block-button__link { background: var(--siado-red); color: #fff; border-radius: 2px; }
.siado-pattern-cta .wp-block-button__link:hover { background: var(--siado-red-dark); }
.siado-pattern-split { gap: clamp(1.5rem, 4vw, 4rem); }
.siado-pattern-split .wp-block-image img { width: 100%; height: auto; }

.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border: 1px solid var(--siado-line); text-align: left; }
.entry-content th { background: var(--siado-paper); }
.entry-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(2rem, 7vw, 6rem); }
.entry-content { font-size: 1.08rem; line-height: 1.78; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 2.5rem; }
.entry-content blockquote { margin: 2rem 0; border-left: 4px solid var(--siado-gold); padding: .5rem 0 .5rem 1.4rem; color: var(--siado-navy); font-family: var(--siado-serif); font-size: 1.4rem; }
.entry-content img { height: auto; }
.entry-content a { overflow-wrap: anywhere; }
.article-sidebar { border-top: 3px solid var(--siado-red); padding-top: 1.2rem; font-size: .9rem; }
.article-sidebar dl { margin: 0; }
.article-sidebar dt { margin-top: 1rem; color: var(--siado-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-sidebar dd { margin: .15rem 0 0; }
.single-hero-image { margin: 1rem 0 2.5rem; }
.single-hero-image img { width: 100%; max-height: 42rem; object-fit: cover; }
.article-title { max-width: 900px; }
.article-title h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.2rem 0; color: var(--siado-muted); font-size: .85rem; }
.share-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; border-top: 1px solid var(--siado-line); padding-top: 1rem; font-size: .85rem; }
.share-links a { font-weight: 700; }
.related-content { margin-top: 3.5rem; }
.document-download { display: inline-flex; gap: .7rem; align-items: center; margin: 1rem 0; border: 1px solid var(--siado-line); padding: 1rem 1.15rem; color: var(--siado-ink); background: var(--siado-paper); font-weight: 750; text-decoration: none; }
.document-download:hover { border-color: var(--siado-red); color: var(--siado-red); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.gallery-grid button { border: 0; padding: 0; background: none; text-align: left; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: .4rem 0; color: var(--siado-muted); font-size: .8rem; }
.siado-lightbox { width: min(92vw, 1000px); max-height: 92vh; border: 0; padding: 0; background: #111; color: #fff; }
.siado-lightbox::backdrop { background: rgba(0,0,0,.82); }
.siado-lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.siado-lightbox__close { float: right; border: 0; padding: .75rem 1rem; color: #fff; background: transparent; }
.siado-lightbox__caption { padding: .75rem 1rem; }

/* Forms and footer */
.siado-contact-form { max-width: 780px; }
.siado-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.siado-form-grid p { margin: 0 0 1rem; }
.siado-form-wide { grid-column: 1 / -1; }
.siado-contact-form label { display: block; margin-bottom: .35rem; font-size: .86rem; font-weight: 750; }
.siado-contact-form input:not([type="checkbox"]), .siado-contact-form textarea {
  display: block; width: 100%; min-height: 3rem; border: 1px solid #aeb8bb; border-radius: 0;
  padding: .7rem .75rem; color: var(--siado-ink); background: #fff;
}
.siado-contact-form textarea { min-height: 10rem; resize: vertical; }
.siado-consent label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; }
.siado-consent input { margin-top: .35rem; }
.siado-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.siado-form-notice { border-left: 4px solid var(--siado-green); padding: .9rem 1rem; background: var(--siado-paper); }
.siado-form-error { border-color: var(--siado-red); }
.site-footer { color: rgba(255,255,255,.82); background: #0d2637; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.site-footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 4rem 0 3rem; }
.site-footer__brand { max-width: 22rem; }
.site-footer__brand-name { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 800; }
.site-footer__brand-name img { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; background: #fff; }
.site-footer__brand p { margin-top: 1.2rem; color: rgba(255,255,255,.68); font-size: .92rem; }
.site-footer__column h2 { margin-bottom: 1rem; font-family: var(--siado-sans); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__column ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__column a { color: rgba(255,255,255,.78); font-size: .9rem; text-decoration: none; }
.site-footer__column a:hover { color: #fff; text-decoration: underline; }
.site-footer__contact p { margin-bottom: .4rem; overflow-wrap: anywhere; font-size: .9rem; }
.site-footer__socials { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.site-footer__socials a { display: inline-grid; min-width: 2.5rem; min-height: 2.5rem; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 1.2rem 0; font-size: .78rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: rgba(255,255,255,.85); }
.not-found { padding: 6rem 0; text-align: center; }
.not-found h1 { font-size: clamp(3.5rem, 12vw, 8rem); }
.not-found .search-form { display: flex; max-width: 34rem; margin: 1.5rem auto; }
.not-found input[type="search"] { width: 100%; min-width: 0; border: 1px solid var(--siado-line); padding: .8rem; }

@media (max-width: 1040px) {
  .primary-navigation { gap: .8rem; }
  .primary-navigation ul { gap: .75rem; }
  .primary-navigation a { font-size: .78rem; }
  .navigation-search { width: 8rem; }
  .home-hero__inner { min-height: 36rem; }
  .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer__contact { grid-column: 2 / 4; }
}
@media (max-width: 820px) {
  .wrap { width: min(calc(100% - 2rem), var(--siado-width)); }
  .header-contact__inner { justify-content: center; }
  .header-contact__items { justify-content: center; }
  .site-header__inner { min-height: 4.8rem; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .primary-navigation {
    position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch;
    border-top: 1px solid var(--siado-line); padding: 1rem; background: #fff; box-shadow: var(--siado-shadow);
  }
  .primary-navigation.is-open { display: flex; flex-direction: column; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation li { border-bottom: 1px solid var(--siado-line); }
  .primary-navigation a { display: block; padding: .7rem .4rem; font-size: .95rem; }
  .navigation-search { width: 100%; }
  .navigation-search input[type="search"] { flex: 1; }
  .home-hero__inner { grid-template-columns: 1fr 1fr; min-height: 32rem; }
  .home-hero__visual { min-height: 25rem; }
  .home-hero__seal { width: 4.8rem; height: 4.8rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-band { grid-template-columns: 1fr 1fr; }
  .theme-card-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
  .page-template-page-contact .article-sidebar { order: 0; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__contact { grid-column: auto; }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .header-contact { font-size: .72rem; }
  .header-contact__items { gap: .25rem .75rem; }
  .brand__mark { width: 3.1rem; height: 3.1rem; }
  .brand__text { max-width: 10rem; font-size: .76rem; }
  .home-hero__inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 3.3rem; padding-bottom: 3rem; }
  .home-hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .home-hero__visual { min-height: 20rem; }
  .home-hero__image { inset: 0 5% 8% 0; }
  .home-hero__photo-note { max-width: 13rem; font-size: .75rem; }
  .home-hero__seal { top: .5rem; left: auto; right: .5rem; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band__image { min-height: 18rem; }
  .feature-band__body { padding: 2rem 1.25rem; }
  .theme-card-grid, .card-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: 13rem; }
  .photo-ribbon { grid-template-columns: 1fr 1fr; }
  .photo-ribbon figure, .photo-ribbon figure:first-child { min-height: 13rem; }
  .photo-ribbon figure:first-child { grid-column: 1 / -1; min-height: 18rem; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .archive-toolbar { align-items: stretch; flex-direction: column; }
  .archive-toolbar label, .archive-toolbar input, .archive-toolbar select { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .siado-form-grid { grid-template-columns: 1fr; }
  .siado-form-wide { grid-column: auto; }
  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}