/*
Theme Name: ILSD Academic
Theme URI: https://example.invalid/ilsd-academic
Author: ILSD website team (Member 2)
Description: Institutional theme for the Institute of Library Science and Documentation — University of Algiers 2. Arabic (RTL) first, French and English (LTR) via Polylang. Navy, white, warm off-white and antique gold. Requires the ILSD Core plugin.
Version: 2.1.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ilsd
Tags: rtl-language-support, education, accessibility-ready, custom-logo, translation-ready
*/

/* ===== Fonts (bundled, SIL OFL 1.1) ===== */
@font-face { font-family: "ILSD Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/plex-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "ILSD Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/plex-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "ILSD Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/plex-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "ILSD Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/plex-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "ILSD Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/plex-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "ILSD Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/plex-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "ILSD Kufi"; font-weight: 600; font-display: swap; src: url(assets/fonts/kufi-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "ILSD Kufi"; font-weight: 700; font-display: swap; src: url(assets/fonts/kufi-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "ILSD Kufi"; font-weight: 600; font-display: swap; src: url(assets/fonts/plex-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "ILSD Kufi"; font-weight: 700; font-display: swap; src: url(assets/fonts/plex-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }

/* ===== Tokens ===== */
:root {
	--navy: #0b2545;
	--navy-2: #13315c;
	--navy-3: #1d4475;
	--navy-tint: #eaeff6;
	--gold: #b08d3c;
	--gold-text: #7a5f22;     /* gold-family text on light backgrounds (AA) */
	--gold-light: #d4b068;    /* on navy */
	--gold-tint: #f4ecd9;
	--white: #ffffff;
	--cream: #f7f3ea;
	--cream-2: #efe8da;
	--text: #1a2433;
	--gray: #5b6573;
	--border: #dde1e6;
	--success: #1e6b3a;
	--danger: #a4262c;
	--font: "ILSD Sans", "Segoe UI", Tahoma, Arial, sans-serif;
	--font-head: "ILSD Kufi", "ILSD Sans", "Segoe UI", Tahoma, sans-serif;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(11, 37, 69, .06);
	--shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 8px 24px rgba(11, 37, 69, .07);
	--shadow-lg: 0 2px 6px rgba(11, 37, 69, .08), 0 18px 44px rgba(11, 37, 69, .14);
	--container: 1200px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--fs-sm: .875rem;
	--fs-base: 1.0625rem;
	--fs-lg: 1.1875rem;
	--fs-h3: 1.25rem;
	--fs-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--fs-h1: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.8; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
[dir="ltr"] body { line-height: 1.65; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.45; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -120px; z-index: 2000; background: var(--gold-light); color: var(--navy); padding: .6rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.site-main { animation: ilsd-in .35s var(--ease) both; }
@keyframes ilsd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
[dir="ltr"] .flip-ltr { transform: scaleX(-1); }

/* ===== Buttons & inputs ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem 1.35rem; border-radius: var(--radius-sm); border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-3); color: var(--white); }
.btn--gold { background: var(--gold-light); color: var(--navy); }
.btn--gold:hover { background: #e0c180; color: var(--navy); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn.is-loading { opacity: .75; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: ilsd-spin .7s linear infinite; }
@keyframes ilsd-spin { to { transform: rotate(360deg); } }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], select, textarea {
	width: 100%; min-height: 46px; padding: .55rem .9rem; font: inherit; color: var(--text); background: var(--white);
	border: 1px solid #b8c1cc; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(176, 141, 60, .3); }
textarea { min-height: 160px; resize: vertical; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }

/* ===== Header: institutional identity ===== */
.site-header { position: relative; z-index: 100; background: var(--white); }
.brandbar { border-bottom: 1px solid var(--border); }
.brandbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; min-width: 0; }
.brand__mark { width: 72px; height: 72px; flex: none; }
.brand__mark svg, .brand__mark img { width: 100%; height: 100%; display: block; }
.brand__mark img { object-fit: contain; }
.brand__text { display: flex; flex-direction: column; min-width: 0; padding-inline-start: 1rem; border-inline-start: 3px solid var(--gold); }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: clamp(1.15rem, .9rem + 1.1vw, 1.7rem); line-height: 1.35; margin: 0; }
.brand__uni { font-family: var(--font-head); font-weight: 600; color: var(--gold-text); font-size: clamp(.9rem, .8rem + .4vw, 1.08rem); line-height: 1.4; margin-top: .15rem; }
[dir="ltr"] .brand__name { font-size: clamp(1.05rem, .85rem + .9vw, 1.5rem); }
.header-tools { display: flex; align-items: center; gap: .75rem; flex: none; }
.lang-switch { display: flex; gap: .25rem; margin: 0; padding: .25rem; list-style: none; background: var(--cream); border-radius: 999px; }
.lang-switch a { display: block; padding: .25rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.lang-switch a:hover { background: var(--white); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--white); }
.icon-btn { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--navy); cursor: pointer; padding: 0; transition: background .2s; }
.icon-btn:hover { background: var(--navy-tint); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Navigation bar */
.navbar { background: var(--navy); }
.navbar .container { display: flex; align-items: stretch; justify-content: space-between; min-height: 56px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex-wrap: nowrap; width: 100%; justify-content: space-between; }
.nav > li { position: relative; display: flex; }
.nav > li > a, .nav__toggle { display: flex; align-items: center; gap: .35rem; padding: 0 .7rem; color: #e6ecf4; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; border: 0; background: none; font-family: inherit; cursor: pointer; position: relative; }
.nav > li > a::after, .nav__toggle::after { content: ""; position: absolute; inset-inline: .7rem; bottom: 0; height: 3px; background: var(--gold-light); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s var(--ease); }
.nav > li > a:hover, .nav__toggle:hover, .nav > li.is-current > a, .nav > li.is-current > .nav__group > a { color: var(--white); }
.nav > li > a:hover::after, .nav > li.is-current > a::after, .nav > li.is-current .nav__group > a::after { transform: scaleX(1); }
[dir="ltr"] .nav > li > a, [dir="ltr"] .nav__toggle { font-size: .84rem; padding: 0 .4rem; }
[dir="ltr"] .nav > li > a::after { inset-inline: .4rem; }
.nav__group { display: flex; align-items: stretch; }
.nav__group > a { display: flex; align-items: center; padding-inline: .7rem .2rem; color: #e6ecf4; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; position: relative; }
.nav__group > a::after { content: ""; position: absolute; inset-inline: .7rem .2rem; bottom: 0; height: 3px; background: var(--gold-light); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__group > a:hover { color: var(--white); }
.nav__group > a:hover::after { transform: scaleX(1); }
[dir="ltr"] .nav__group > a { font-size: .84rem; padding-inline: .4rem .15rem; }
[dir="ltr"] .nav__toggle { padding-inline: .1rem .4rem; }
[dir="ltr"] .hero__title { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.6rem); }
.nav__toggle { padding-inline: .2rem .6rem; }
.nav__toggle::after { display: none; }
.nav__toggle svg { width: 14px; height: 14px; fill: currentColor; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; inset-inline-start: 0; min-width: 320px; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); padding: .6rem; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 50; }
.has-dropdown:hover .dropdown, .has-dropdown.is-open .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-radius: var(--radius-sm); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--cream); }
.dropdown .ico { width: 34px; height: 34px; flex: none; border-radius: 8px; background: var(--navy-tint); display: grid; place-items: center; }
.dropdown .ico svg { width: 18px; height: 18px; fill: var(--navy); }
.dropdown li:first-child a { background: var(--navy); color: var(--white); margin-bottom: .35rem; }
.dropdown li:first-child .ico { background: rgba(255, 255, 255, .12); }
.dropdown li:first-child .ico svg { fill: var(--gold-light); }
.menu-toggle { display: none; }
.header-search { background: var(--cream); border-bottom: 1px solid var(--border); }
.header-search[hidden] { display: none; }
.header-search .container { padding-block: 1rem; }
.search-form { display: flex; gap: .5rem; max-width: 720px; }
.search-form label { flex: 1; }

@media (max-width: 1240px) {
	.menu-toggle { display: inline-flex; width: auto; padding: 0 .9rem; border-radius: 999px; gap: .4rem; font: inherit; font-weight: 600; font-size: .92rem; }
	.navbar { display: none; }
	.navbar.is-open { display: block; }
	.navbar .container { width: 100%; }
	.nav { flex-direction: column; padding: .5rem 0 1rem; }
	.nav > li { flex-direction: column; }
	.nav > li > a, .nav__group > a { padding: .85rem 1.25rem; font-size: 1rem; }
	.nav > li > a::after, .nav__group > a::after { display: none; }
	.nav > li.is-current > a, .nav > li.is-current .nav__group > a { color: var(--gold-light); }
	.nav__group { justify-content: space-between; }
	.nav__toggle { padding: 0 1.25rem; }
	.dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; border: 0; background: var(--navy-2); display: none; min-width: 0; padding: .25rem .75rem .75rem; }
	.has-dropdown.is-open .dropdown { display: block; }
	.has-dropdown:hover .dropdown { display: none; }
	.has-dropdown.is-open:hover .dropdown { display: block; }
	.dropdown a { color: #e6ecf4; }
	.dropdown a:hover { background: rgba(255, 255, 255, .06); }
	.dropdown .ico { background: rgba(255, 255, 255, .08); }
	.dropdown .ico svg { fill: var(--gold-light); }
}
@media (max-width: 720px) {
	.brandbar .container { min-height: 84px; gap: .75rem; }
	.brand { gap: .7rem; }
	.brand__mark { width: 52px; height: 52px; }
	.brand__text { padding-inline-start: .7rem; border-inline-start-width: 2px; }
	.lang-switch { display: none; }
	.menu-toggle .label { display: none; }
	.menu-toggle { width: 46px; padding: 0; }
	.mobile-lang { display: flex !important; }
}
@media (max-width: 480px) {
	.brandbar .container { gap: .5rem; }
	.brand__mark { width: 44px; height: 44px; }
	.brand__name { font-size: .98rem; line-height: 1.45; }
	.brand__uni { font-size: .82rem; }
	.header-tools { gap: .35rem; }
	.icon-btn, .menu-toggle { width: 42px !important; height: 42px; }
	.help-fab { width: 48px; height: 48px; right: .9rem; bottom: .9rem; }
	.site-footer { padding-bottom: 4rem; }
}
.mobile-lang { display: none; justify-content: center; gap: .5rem; padding: .5rem 1rem 1rem; list-style: none; margin: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.mobile-lang a { color: #e6ecf4; text-decoration: none; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: .9rem; }
.mobile-lang a[aria-current="true"] { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }

/* ===== Page hero (inner pages) ===== */
.page-hero { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath fill='none' stroke='%23d4b068' stroke-opacity='.10' stroke-width='1' d='M28 6l6.4 15.6L50 28l-15.6 6.4L28 50l-6.4-15.6L6 28l15.6-6.4z'/%3E%3C/svg%3E"); color: #d9e1ec; padding: 2.4rem 0 2.2rem; }
.page-hero h1 { color: var(--white); margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem); }
.page-hero p { margin: .5rem 0 0; color: #c9d4e3; max-width: 760px; }
.breadcrumbs { font-size: var(--fs-sm); margin-bottom: .6rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; }
.breadcrumbs li + li::before { content: "/"; margin-inline: .45rem; color: var(--gold-light); opacity: .7; }
.breadcrumbs a { color: #dfe7f1; text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs [aria-current] { color: var(--gold-light); }

/* ===== Layout helpers ===== */
.site-main { padding: 2.75rem 0 4rem; }
.site-main--flush { padding: 0; }
.section { padding: 4.25rem 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: 3rem 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--gold-text); font-size: .95rem; margin-bottom: .35rem; }
.section__kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section__lead { color: var(--gray); margin: .4rem 0 0; max-width: 640px; }
.more-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.more-link svg { width: 16px; height: 16px; fill: currentColor; }
.prose { max-width: 820px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-inline-start: 4px solid var(--gold); background: var(--cream); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .8rem; text-align: start; }
.prose th { background: var(--navy-tint); color: var(--navy); }
.card-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Placeholders / translation pending ===== */
.ilsd-placeholder { background: repeating-linear-gradient(-45deg, #fffaf0, #fffaf0 10px, #fbf3e1 10px, #fbf3e1 20px); border: 2px dashed var(--gold); border-radius: var(--radius-sm); padding: .75rem 1rem; color: #6a4f0f; font-size: .95rem; }
span.ilsd-placeholder { display: inline; padding: .05rem .4rem; border-width: 1px; font-size: .9em; }
.ilsd-translation-pending, .pending-banner { background: var(--navy-tint); border-inline-start: 4px solid var(--navy-3); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--navy); font-size: .95rem; }
.pending-banner { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.pending-banner strong { font-weight: 700; }

/* ===== Cards ===== */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd5dc; }
.card__media { aspect-ratio: 16 / 9; background: var(--navy-tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__title { font-size: 1.1rem; margin: 0; line-height: 1.5; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__meta { color: var(--gray); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.card__text { margin: 0; color: #3a4556; font-size: .97rem; }
.card__foot { margin-top: auto; padding-top: .5rem; }
.badge { display: inline-flex; align-items: center; padding: .1rem .65rem; border-radius: 999px; background: var(--navy-tint); color: var(--navy); font-size: .8rem; font-weight: 600; line-height: 1.8; }
.badge--gold { background: var(--gold-tint); color: var(--gold-text); }
.empty { text-align: center; padding: 2.25rem 1.5rem; background: var(--white); border: 1px dashed #b8c1cc; border-radius: var(--radius); color: var(--gray); }
.empty svg { width: 40px; height: 40px; fill: #b8c1cc; margin-bottom: .5rem; }
.empty p { margin: 0 0 .5rem; }

/* ===== HOMEPAGE ===== */
.hero { position: relative; background: var(--navy); color: #d9e1ec; overflow: hidden; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: clamp(3rem, 6vw, 5.25rem); }
.hero__kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold-light); font-weight: 600; font-size: .98rem; margin-bottom: 1rem; }
.hero__kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold-light); }
.hero__title { color: var(--white); font-size: clamp(1.9rem, 1.3rem + 2.3vw, 3.05rem); line-height: 1.35; margin-bottom: 1.1rem; }
.hero__title em { font-style: normal; color: var(--gold-light); }
.hero__lead { font-size: 1.12rem; color: #c9d4e3; max-width: 600px; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__search { margin-top: 2.2rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 1rem; max-width: 600px; }
.hero__search label { display: block; color: var(--gold-light); font-weight: 600; font-size: .92rem; margin-bottom: .5rem; }
.hero__search form { display: flex; gap: .5rem; }
.hero__search input { border-color: transparent; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; display: block; }
.hero__art-img { width: 100%; height: auto; display: block; aspect-ratio: 560 / 460; object-fit: cover; border-radius: var(--radius); box-shadow: 0 22px 50px rgba(0, 0, 0, .28); }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .hero__art { max-width: 520px; margin-inline: auto; order: -1; } }
@media (max-width: 600px) { .hero__art { display: none; } }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pillar__ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.pillar__ico svg { width: 24px; height: 24px; fill: var(--gold-light); }
.pillar h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.pillar p { margin: 0; color: var(--gray); font-size: .95rem; line-height: 1.7; }

.program-card { position: relative; padding: 1.75rem 1.6rem 1.6rem; border-top: 4px solid var(--navy); }
.program-card:nth-child(2) { border-top-color: var(--navy-3); }
.program-card:nth-child(3) { border-top-color: var(--gold); }
.program-card__level { font-family: var(--font-head); font-size: 1.55rem; color: var(--navy); margin: 0 0 .3rem; }
.program-card__facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.program-card ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .35rem; }
.program-card li { display: flex; gap: .55rem; align-items: baseline; color: #3a4556; font-size: .96rem; line-height: 1.6; }
.program-card li::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg) translateY(-2px); background: var(--gold); }
.program-card--static:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }

.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.res-tile { display: flex; flex-direction: column; gap: .7rem; padding: 1.3rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); text-decoration: none; color: var(--navy); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.res-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); color: var(--navy); }
.res-tile__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-tint); display: grid; place-items: center; }
.res-tile__ico svg { width: 24px; height: 24px; fill: var(--navy); }
.res-tile strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.res-tile span { color: var(--gray); font-size: .9rem; }
.res-tile--feature { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; background: var(--navy); border-color: var(--navy); color: var(--white); justify-content: space-between; padding: 1.8rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath fill='none' stroke='%23d4b068' stroke-opacity='.12' stroke-width='1' d='M28 6l6.4 15.6L50 28l-15.6 6.4L28 50l-6.4-15.6L6 28l15.6-6.4z'/%3E%3C/svg%3E"); }
.res-tile--feature:hover { color: var(--white); border-color: var(--gold-light); }
.res-tile--feature .res-tile__ico { background: rgba(255, 255, 255, .1); width: 58px; height: 58px; }
.res-tile--feature .res-tile__ico svg { fill: var(--gold-light); width: 30px; height: 30px; }
.res-tile--feature strong { font-size: 1.6rem; color: var(--white); }
.res-tile--feature span { color: #c9d4e3; font-size: 1rem; }
.res-tile--feature .btn { flex: none; color: var(--navy); font-size: 1rem; }
.res-tile__body { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.res-tile--feature .res-tile__count { color: var(--gold-light); font-size: .92rem; margin-top: .25rem; }
@media (max-width: 960px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .res-grid { grid-template-columns: 1fr; } .res-tile--feature { flex-direction: column; align-items: flex-start; } }

.events-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event-row { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.event-row.is-past { opacity: .8; }
.event-date { flex: none; width: 78px; text-align: center; background: var(--navy); color: var(--white); border-radius: var(--radius-sm); padding: .5rem .25rem; line-height: 1.25; }
.event-date b { display: block; font-size: 1.7rem; color: var(--gold-light); font-family: var(--font-head); }
.event-date span { font-size: .82rem; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; counter-reset: fact; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact { position: relative; padding: 1.25rem 1.35rem 1.1rem; padding-inline-start: 3.6rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: fact; }
.fact::before { content: counter(fact); position: absolute; inset-inline-start: 1.1rem; top: 1.2rem; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.fact p { margin: 0 0 .5rem; color: var(--text); }
.fact small { color: var(--gray); display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.fact small a { color: var(--gold-text); font-weight: 600; }
.fact em { font-style: normal; color: var(--gray); font-size: .82rem; }

/* ===== Programs tabs ===== */
.tabs { display: flex; gap: .5rem; padding: .4rem; background: var(--cream); border-radius: 999px; width: max-content; max-width: 100%; margin: 0 auto 2.5rem; overflow-x: auto; }
.tab { border: 0; background: transparent; font: inherit; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); padding: .65rem 1.75rem; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { background: rgba(11, 37, 69, .06); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: ilsd-in .3s var(--ease) both; }
.cycle-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.cycle-head h2 { margin: 0; }
.year { position: relative; margin-bottom: 2rem; padding: 1.6rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.year__title { display: flex; align-items: center; gap: .8rem; font-size: 1.25rem; margin-bottom: 1.25rem; }
.year__num { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.sub-title { font-family: var(--font-head); font-weight: 700; font-size: .98rem; color: var(--gold-text); margin: 0 0 .75rem; }
.specs { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } }
.spec { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--cream-2); }
.spec__n { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-text); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.spec strong { display: block; color: var(--navy); line-height: 1.55; font-weight: 700; }
.spec p { margin: .35rem 0 0; font-size: .92rem; color: var(--gray); }
.semesters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
@media (max-width: 760px) { .semesters { grid-template-columns: 1fr; } }
.semester { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); }
.semester summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; font-weight: 700; color: var(--navy); min-height: 48px; }
.semester summary::-webkit-details-marker { display: none; }
.semester summary::after { content: "+"; font-size: 1.35rem; color: var(--gold); line-height: 1; }
.semester[open] summary::after { content: "−"; }
.semester[open] summary { border-bottom: 1px solid var(--border); }
.semester__body { padding: .9rem 1.1rem 1.1rem; }
.semester__body p { margin: 0; color: var(--gray); font-size: .94rem; }
.courses { width: 100%; border-collapse: collapse; font-size: .95rem; }
.courses th, .courses td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); text-align: start; }
.courses th { color: var(--gray); font-weight: 600; font-size: .85rem; }
.cycle-note { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--navy-tint); border-radius: var(--radius-sm); color: var(--navy); margin-top: 1.25rem; }
.cycle-note svg { width: 22px; height: 22px; flex: none; fill: var(--navy-3); margin-top: .2rem; }

/* ===== Digital library ===== */
.lib-head { background: var(--cream); border-bottom: 1px solid var(--cream-2); }
.lib-head .container { padding-block: 1.75rem 0; }
.lib-title { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.lib-title__ico { width: 54px; height: 54px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; flex: none; }
.lib-title__ico svg { width: 28px; height: 28px; fill: var(--gold-light); }
.lib-title h2 { margin: 0; font-size: 1.6rem; }
.lib-title p { margin: 0; color: var(--gray); }
.lib-search { display: flex; gap: .6rem; background: var(--white); padding: .5rem; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--border); max-width: 860px; }
.lib-search input { border: 0; border-radius: 999px; min-height: 50px; font-size: 1.05rem; padding-inline: 1.2rem; box-shadow: none !important; }
.lib-search .btn { border-radius: 999px; min-height: 50px; padding-inline: 1.6rem; }
.lib-tabs { display: flex; gap: .25rem; margin-top: 1.5rem; overflow-x: auto; list-style: none; padding: 0; }
.lib-tabs a { display: block; padding: .75rem 1.2rem; text-decoration: none; color: var(--navy); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.lib-tabs a:hover { color: var(--navy-3); }
.lib-tabs a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy); }
.lib-tabs .count { display: inline-block; min-width: 24px; padding: 0 .4rem; margin-inline-start: .35rem; border-radius: 999px; background: var(--white); font-size: .78rem; text-align: center; color: var(--gray); }
.lib-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .lib-layout { grid-template-columns: 1fr; } }
.filters { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 1rem; }
.filters h3 { font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.filters h3 svg { width: 18px; height: 18px; fill: var(--gold); }
.filters label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .9rem; }
.filters label select, .filters label input { margin-top: .3rem; font-weight: 400; }
.filters .btn { width: 100%; margin-top: .25rem; }
.filters .reset { display: block; text-align: center; margin-top: .75rem; font-size: .9rem; }
.lib-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; color: var(--gray); font-size: .95rem; }
.lib-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lib-layout .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lib-grid--docs, .lib-layout .lib-grid--docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lib-layout .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lib-grid--docs, .lib-layout .lib-grid--docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lib-grid, .lib-layout .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lib-grid--docs, .lib-layout .lib-grid--docs { grid-template-columns: 1fr; } }
.book { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.book__cover { aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--navy-tint); box-shadow: var(--shadow); position: relative; transition: transform .25s var(--ease), box-shadow .25s; }
[dir="rtl"] .book__cover { border-radius: 10px 4px 4px 10px; }
.book:hover .book__cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book__title { font-weight: 700; color: var(--navy); margin: .8rem 0 .15rem; line-height: 1.5; font-size: 1rem; }
.book__meta { color: var(--gray); font-size: .88rem; }
.cover-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: linear-gradient(160deg, #f3efe6, #e9e3d6); color: #9b8f78; }
.cover-ph::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 10px; width: 2px; background: rgba(176, 141, 60, .35); }
.cover-ph svg { width: 42px; height: 42px; fill: #c4b48f; }
.cover-ph span { font-size: .78rem; font-weight: 600; text-align: center; padding: 0 .5rem; }
.book--empty .book__title, .doc--empty .doc__title { height: .9rem; width: 80%; background: #ece7dc; border-radius: 4px; }
.book--empty .book__meta, .doc--empty .doc__meta { height: .7rem; width: 50%; background: #f1ede4; border-radius: 4px; margin-top: .45rem; }
.book--empty .book__cover { box-shadow: none; border: 1px dashed #d8cfbb; }
.doc { display: flex; gap: 1rem; padding: 1.1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; transition: box-shadow .25s, border-color .25s; }
.doc:hover { box-shadow: var(--shadow); border-color: #cfd5dc; }
.doc__ico { width: 52px; height: 64px; flex: none; border-radius: 6px; background: var(--navy-tint); display: grid; place-items: center; position: relative; }
.doc__ico svg { width: 26px; height: 26px; fill: var(--navy-3); }
.doc__ico b { position: absolute; bottom: 4px; font-size: .62rem; color: var(--navy-3); letter-spacing: .04em; }
.doc__title { font-weight: 700; color: var(--navy); line-height: 1.5; margin: 0 0 .2rem; }
.doc__meta { color: var(--gray); font-size: .88rem; }
.doc--empty { border-style: dashed; }
.doc--empty .doc__ico { background: #f3efe6; }
.doc--empty .doc__ico svg { fill: #c4b48f; }
.doc--empty > div:last-child { flex: 1; }
.lib-section { margin-bottom: 3rem; }
.lib-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.lib-section__head h3 { margin: 0; font-size: 1.2rem; }
.lib-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
@media (max-width: 640px) { .lib-stats { grid-template-columns: 1fr; } }
.lib-stat { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--navy); }
.lib-stat:hover { border-color: var(--gold); }
.lib-stat b { font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: var(--navy); }
.lib-stat span { color: var(--gray); font-size: .95rem; }
.lib-stat__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; }
.lib-stat__ico svg { width: 22px; height: 22px; fill: var(--gold); }
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); text-decoration: none; color: var(--navy); transition: border-color .2s, transform .2s var(--ease); }
.cat-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--navy); }
.cat-card__ico { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.cat-card__ico svg { width: 22px; height: 22px; fill: var(--gold-light); }
.cat-card strong { display: block; font-weight: 700; line-height: 1.45; }
.cat-card span { font-size: .85rem; color: var(--gray); }
.item-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .item-layout { grid-template-columns: 1fr; } .item-layout .book__cover { max-width: 220px; } }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0 0 1.75rem; padding: 1.25rem 1.4rem; background: var(--cream); border-radius: var(--radius-sm); border-inline-start: 4px solid var(--gold); }
.meta-list dt { font-weight: 700; color: var(--navy); }
.meta-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .meta-list { grid-template-columns: 1fr; } .meta-list dd { margin-bottom: .45rem; } }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-block; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--white); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .88rem; transition: background .2s, color .2s; }
.chip:hover, .chip.is-active, .chip[aria-current="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.download { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.5rem 0; }

/* ===== Services ===== */
.service { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; }
.service__aud { display: flex; flex-wrap: wrap; gap: .35rem; }
.service dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .25rem 0 0; font-size: .92rem; }
.service dt { color: var(--gray); }
.service dd { margin: 0; }

/* ===== Faculty ===== */
.person { align-items: center; text-align: center; }
.person .card__body { align-items: center; }
.person__photo { width: 116px; height: 116px; border-radius: 50%; margin: 1.5rem auto 0; overflow: hidden; background: var(--navy-tint); display: grid; place-items: center; border: 3px solid var(--gold-tint); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo svg { width: 54px; height: 54px; fill: #a6b4c7; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 620px) { .form-cols { grid-template-columns: 1fr; } }
.form-row { margin: 0 0 1rem; }
.form-row > label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--navy); }
.form-check label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
.form-check input { margin-top: .45rem; }
.req { color: var(--danger); }
.form-hint { font-size: var(--fs-sm); color: var(--gray); }
.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; border-inline-start: 4px solid; }
.notice ul { margin: .25rem 0 0; }
.notice--success { background: #e8f4ec; border-color: var(--success); color: #134a28; }
.notice--error { background: #fbeaea; border-color: var(--danger); color: #6e1418; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; fill: var(--gold); flex: none; margin-top: .3rem; }
.contact-list strong { display: block; color: var(--navy); }

/* ===== Pagination ===== */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.25rem; }
.page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 .7rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); text-decoration: none; color: var(--navy); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-numbers.dots { border: 0; background: transparent; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c9d4e3; font-size: .95rem; border-top: 4px solid var(--gold); }
.site-footer a { color: #e6ecf4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1rem; }
.footer-brand svg, .footer-brand img { width: 56px; height: 56px; flex: none; }
.footer-brand strong { display: block; font-family: var(--font-head); color: var(--white); font-size: 1.1rem; line-height: 1.45; }
.footer-brand span { color: var(--gold-light); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: var(--fs-sm); }
.site-footer .ilsd-placeholder { background: rgba(212, 176, 104, .1); border-color: rgba(212, 176, 104, .55); color: #f0dfb5; }

/* ===== Floating FAQ / help widget ===== */
.help-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; display: inline-flex; align-items: center; gap: .55rem; padding: 0 1.15rem 0 .9rem; height: 54px; border-radius: 999px; border: 2px solid var(--gold-light); background: var(--navy); color: var(--white); font: inherit; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.help-fab:hover { background: var(--navy-3); transform: translateY(-2px); }
.help-fab svg { width: 24px; height: 24px; fill: var(--gold-light); }
.help-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 600px) { .help-fab { width: 54px; padding: 0; justify-content: center; } .help-fab .label { display: none; } }
.edit-site-fab { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 900; display: inline-flex; align-items: center; gap: .55rem; height: 54px; padding: 0 1.15rem; border-radius: 999px; border: 2px solid var(--navy); background: var(--gold); color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease), background .2s; }
.edit-site-fab:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); }
.edit-site-fab svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 600px) { .edit-site-fab { width: 54px; padding: 0; justify-content: center; } .edit-site-fab .label { display: none; } }
.help-panel { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 950; width: min(400px, calc(100vw - 2rem)); max-height: min(640px, calc(100vh - 2.5rem)); display: flex; flex-direction: column; background: var(--white); border-radius: 16px; box-shadow: 0 6px 18px rgba(11, 37, 69, .12), 0 28px 60px rgba(11, 37, 69, .22); overflow: hidden; transform-origin: bottom right; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.help-panel[data-open="false"] { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97); }
.help-panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 600px) { .help-panel { right: .75rem; left: .75rem; bottom: .75rem; width: auto; max-height: calc(100vh - 1.5rem); } }
.help-panel__head { background: var(--navy); color: var(--white); padding: 1rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.help-panel__head h2 { color: var(--white); font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.help-panel__head h2 svg { width: 22px; height: 22px; fill: var(--gold-light); }
.help-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.help-close:hover { background: rgba(255, 255, 255, .2); }
.help-close svg { width: 18px; height: 18px; fill: currentColor; }
.help-panel__search { padding: .9rem 1rem .6rem; border-bottom: 1px solid var(--border); background: var(--cream); }
.help-panel__search input { min-height: 42px; }
.help-cats { display: flex; gap: .35rem; overflow-x: auto; padding: .6rem 0 .2rem; list-style: none; margin: 0; }
.help-cats button { border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: .25rem .8rem; font: inherit; font-size: .82rem; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap; }
.help-cats button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.help-list { overflow-y: auto; padding: .75rem 1rem 1rem; flex: 1; }
.help-q { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .5rem; background: var(--white); }
.help-q summary { list-style: none; cursor: pointer; padding: .7rem .9rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.55; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; line-height: 1.2; flex: none; }
.help-q[open] summary::after { content: "−"; }
.help-q__a { padding: 0 .9rem .8rem; font-size: .93rem; color: #3a4556; }
.help-q__a > *:last-child { margin-bottom: 0; }
.help-q__cat { display: block; font-size: .75rem; color: var(--gold-text); font-weight: 600; margin-bottom: .1rem; }
.help-empty { text-align: center; color: var(--gray); padding: 1.5rem .5rem; font-size: .95rem; }
.help-contact { flex: none; border-top: 1px solid var(--border); }
.help-panel.is-contact-open .help-panel__search,
.help-panel.is-contact-open .help-list { display: none; }
.help-panel.is-contact-open .help-contact { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.help-panel.is-contact-open .help-contact__body { flex: 1; max-height: none; }
.help-contact__toggle { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 50px; padding: .65rem 1rem; border: 0; background: var(--navy-tint); color: var(--navy); font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.help-contact__toggle:hover { background: #dfe6f0; }
.help-contact__toggle svg { width: 20px; height: 20px; fill: var(--navy-3); flex: none; }
.help-contact__toggle[aria-expanded="true"] { background: var(--navy); color: var(--white); }
.help-contact__toggle[aria-expanded="true"] svg { fill: var(--gold-light); }
.help-contact__body { padding: .9rem 1rem 1rem; background: var(--cream); border-top: 1px solid var(--border); max-height: min(52vh, 380px); overflow-y: auto; }
.help-contact__intro { margin: 0 0 .75rem; font-size: .84rem; line-height: 1.6; color: var(--gray); }
.help-contact__form p { margin: 0 0 .7rem; }
.help-contact__form label { display: block; margin-bottom: .2rem; font-size: .82rem; font-weight: 600; color: var(--navy); }
.help-contact__form input[type="text"],
.help-contact__form input[type="email"],
.help-contact__form textarea { min-height: 40px; padding: .4rem .7rem; font-size: .92rem; }
.help-contact__form textarea { min-height: 84px; }
.help-contact__pair { display: flex; flex-wrap: wrap; gap: .75rem; }
.help-contact__pair p { flex: 1 1 140px; }
.help-contact__consent { font-size: .8rem; line-height: 1.5; }
.help-contact__consent label { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-weight: 400; color: var(--text); }
.help-contact__consent input { flex: none; margin-top: .25rem; }
.help-contact__send { width: 100%; min-height: 42px; }
.help-contact__status { margin: .7rem 0 0 !important; padding: .55rem .75rem; border-inline-start: 3px solid; border-radius: var(--radius-sm); font-size: .86rem; line-height: 1.55; }
.help-contact__status.is-success { background: #e8f4ec; border-color: var(--success); color: #134a28; }
.help-contact__status.is-error { background: #fbeaea; border-color: var(--danger); color: #6e1418; }
.help-contact__direct { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: .8rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--border); font-size: .82rem; color: var(--gray); }
.help-contact__direct > span { font-weight: 600; color: var(--navy); }
.help-contact__direct a { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; font-weight: 600; color: var(--navy-3); text-decoration: none; overflow-wrap: anywhere; }
.help-contact__direct a:hover { text-decoration: underline; }
.help-contact__direct svg { width: 16px; height: 16px; fill: var(--navy-3); flex: none; }
.help-panel__foot { border-top: 1px solid var(--border); padding: .55rem 1rem; text-align: center; font-size: .82rem; background: var(--white); }
.help-panel__foot a { font-weight: 600; color: var(--navy-3); }
body.help-open-mobile { overflow: hidden; }
@media (max-width: 600px) { .help-contact__body { max-height: 46vh; } }

/* ===== Editor alignment helpers ===== */
.alignwide { max-width: var(--container); }
.aligncenter { margin-inline: auto; display: block; }
.wp-block-image figcaption { color: var(--gray); font-size: var(--fs-sm); text-align: center; }

/* ===== Print ===== */
@media print {
	.navbar, .header-tools, .site-footer, .help-fab, .help-panel, .hero__art, .filters, .skip-link { display: none !important; }
	body { color: #000; }
	.page-hero { background: none; color: #000; padding: 0 0 1rem; }
	.page-hero h1 { color: #000; }
}
