/* ============================================================
   IICT-BAS — Department of Communication and Computer Systems
   Design system. Light/dark, responsive, no external requests.
   Palette keeps the institutional identity of the previous site:
   deep teal + cyan accents, light surfaces, BAS blue links.
   ============================================================ */

:root {
  --teal-900: #07322f;
  --teal-800: #0a4a45;
  --teal-700: #0c5f58;
  --teal-600: #0f7a70;
  --teal-500: #16957f;
  --teal-300: #6bc4bf;
  --teal-100: #d8efec;
  --teal-50:  #eef8f7;
  --cyan-100: #d1f6fc;
  --cyan-50:  #eafafd;

  --page-bg: var(--cyan-50);
  --surface: #ffffff;
  --surface-2: var(--teal-50);
  --ink: #12312e;
  --ink-2: #3d5a57;
  --ink-3: #5f7a77;
  --line: #c9e3e0;
  --primary: var(--teal-700);
  --primary-strong: var(--teal-800);
  --primary-contrast: #ffffff;
  --header-bg-1: var(--teal-800);
  --header-bg-2: var(--teal-600);
  --hero-bg-1: var(--teal-700);
  --hero-bg-2: #12857a;
  --footer-bg: var(--teal-900);
  --accent-soft: var(--teal-100);
  --shadow: 0 1px 2px rgba(7, 50, 47, .06), 0 8px 24px rgba(7, 50, 47, .08);
  --shadow-sm: 0 1px 2px rgba(7, 50, 47, .08);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --page-bg: #061f1d;
  --surface: #0c2b29;
  --surface-2: #0f3532;
  --ink: #e6f4f2;
  --ink-2: #b7d6d3;
  --ink-3: #8fb2af;
  --line: #1d4a46;
  --primary: #45b8ac;
  --primary-strong: #6bd0c4;
  --primary-contrast: #062421;
  --header-bg-1: #052220;
  --header-bg-2: #073a35;
  --hero-bg-1: #062a26;
  --hero-bg-2: #0a443e;
  --footer-bg: #041a18;
  --accent-soft: #0e3a36;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--surface); color: var(--ink);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  background: linear-gradient(135deg, var(--header-bg-1), var(--header-bg-2));
  color: #fff;
}

.site-header-inner {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { text-decoration: none; color: #fff; }

.brand-logo {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .3rem .5rem;
  box-shadow: var(--shadow-sm);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.brand-dept { font-size: .8rem; color: var(--teal-300); font-weight: 600; }
[data-theme="dark"] .brand-dept { color: var(--teal-300); }

.site-header-side {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.bas-link {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .3rem .45rem;
  box-shadow: var(--shadow-sm);
  line-height: 0;
  flex: none;
}
.bas-link:hover { text-decoration: none; opacity: .9; }
.bas-logo { width: 86px; height: 38px; object-fit: contain; display: block; }
@media (max-width: 720px) { .bas-logo { width: 64px; height: 28px; } }

.site-tools { display: flex; align-items: center; gap: .5rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .08);
}
.lang-switch:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  text-decoration: none;
}
.lang-switch span[aria-hidden] { font-weight: 800; letter-spacing: .03em; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .18); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.site-nav .container,
.site-nav > * { }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: .85rem 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.nav-list a {
  display: block;
  padding: .8rem .95rem;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover {
  color: var(--primary-strong);
  background: var(--surface-2);
  text-decoration: none;
}
.nav-list a.active {
  color: var(--primary-strong);
  border-bottom-color: var(--primary);
}

@media (max-width: 720px) {
  .site-header-inner { padding: .75rem 0; }
    .bas-link { max-width: none; }
  .nav-toggle { display: flex; width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
  .nav-list { display: none; flex-direction: column; padding-bottom: .5rem; }
  .site-nav[data-open="true"] .nav-list { display: flex; }
  .nav-list a { border-bottom: 0; border-left: 3px solid transparent; padding: .7rem .2rem; }
  .nav-list a.active { border-left-color: var(--primary); }
}

/* ---------- header search ---------- */
.search-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.search-toggle:hover { background: rgba(255, 255, 255, .18); }

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 50, 47, .45);
  backdrop-filter: blur(3px);
  padding: 6vh 1rem 1rem;
  overflow-y: auto;
}
.search-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.search-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.search-head-icon { color: var(--ink-3); flex: none; }
#search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  padding: .3rem 0;
}
.search-esc {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .15rem .45rem;
  background: var(--surface-2);
}
.search-status {
  font-size: .82rem;
  color: var(--ink-3);
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.search-results { max-height: 60vh; overflow-y: auto; }
.search-result {
  display: block;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: var(--accent-soft); text-decoration: none; }
.search-result-head { display: flex; align-items: baseline; gap: .5rem; }
.search-result-title { font-weight: 700; font-size: .98rem; color: var(--primary-strong); }
.search-result-badge {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .05rem .45rem;
  color: var(--ink-3);
  flex: none;
}
.search-result-url {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--ink-3);
  margin-top: .1rem;
}
.search-result-snippet {
  display: block;
  font-size: .88rem;
  color: var(--ink-2);
  margin-top: .35rem;
  line-height: 1.5;
}
.search-results mark {
  background: #ffe98a;
  color: inherit;
  border-radius: 3px;
  padding: 0 .1rem;
}
[data-theme="dark"] .search-results mark { background: #7a6420; color: #fff; }
body.search-open { overflow: hidden; }

/* ---------- page hero ---------- */

.page-hero {
  background: linear-gradient(120deg, var(--hero-bg-1), var(--hero-bg-2));
  color: #fff;
  padding: 2.2rem 0 2rem;
  margin-bottom: 2rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin: 0 0 .5rem;
  padding: 0;
  font-size: .82rem;
  color: var(--teal-300);
}
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .7; }
.breadcrumb a { color: var(--teal-300); }
.breadcrumb a:hover { color: #fff; }
[data-theme="dark"] .breadcrumb, [data-theme="dark"] .breadcrumb a { color: var(--teal-300); }

.page-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.page-hero p { margin: .45rem 0 0; color: var(--teal-100); font-size: 1.02rem; max-width: 70ch; }
[data-theme="dark"] .page-hero p { color: var(--ink-2); }

/* ---------- content prose ---------- */

.content { padding-bottom: 3rem; }
.content > h2, .content h2 { margin-top: 2.2rem; }

.content h2 {
  font-size: 1.28rem;
  color: var(--primary-strong);
  border-bottom: 2px solid var(--line);
  padding-bottom: .3rem;
  margin: 2.4rem 0 .9rem;
}
.content h3 { font-size: 1.06rem; margin: 1.6rem 0 .5rem; color: var(--ink); }
.content h4 { font-size: .98rem; margin: 1.2rem 0 .4rem; color: var(--ink-2); }

.content p { margin: .8rem 0; }

.content ul, .content ol { margin: .8rem 0 .8rem 1.4rem; padding: 0; }
.content li { margin: .35rem 0; }
.content ul { list-style: disc; }
.content ul ul { list-style: circle; }

.content blockquote {
  margin: 1.2rem 0;
  padding: .8rem 1.1rem;
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}

hr { border: 0; height: 1px; background: var(--line); margin: 2rem 0; }

.content img[align="right"], .content figure { margin: 0 0 1rem; }

/* legacy inline images inside content */
.content img {
  border-radius: var(--radius-sm);
}
figure.framed, .framed {
  background: var(--surface);
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
figcaption, .framed figcaption {
  font-size: .85rem;
  color: var(--ink-3);
  padding: .5rem .3rem .1rem;
  text-align: center;
}

/* ---------- data tables (publications, staff, elibrary) ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .92rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: table;
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: .55rem .7rem;
  vertical-align: top;
  text-align: left;
}

.data-table thead th, .data-table tr:first-child th {
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) { background: var(--surface-2); }
.data-table tbody tr:hover { background: var(--accent-soft); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0; border-radius: var(--radius); }
.table-scroll .data-table { margin: 0; }

@media (max-width: 640px) {
  .data-table { font-size: .85rem; }
}

/* ---------- home page ---------- */

.hero-home {
  background: linear-gradient(135deg, rgba(12, 95, 88, .96), rgba(18, 133, 122, .9));
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2.4rem;
}
[data-theme="dark"] .hero-home { background: linear-gradient(135deg, #062a26, #0a443e); }
.hero-home .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.hero-home h1 { font-size: clamp(1.7rem, 1.3rem + 2.2vw, 2.5rem); margin: 0 0 1rem; line-height: 1.15; letter-spacing: -.02em; }
.hero-home p { font-size: 1.05rem; color: var(--teal-100); margin: .6rem 0; }
[data-theme="dark"] .hero-home p { color: var(--ink-2); }
.hero-home .framed { border: 0; }
@media (max-width: 860px) {
  .hero-home .container { grid-template-columns: 1fr; }
  .hero-home .framed { max-width: 480px; }
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 2.6rem 0 1.2rem;
}
.section-title h2 { margin: 0; border: 0; padding: 0; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin: 1.2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 1.05rem; color: var(--primary-strong); }
.card-icon {
  width: 32px; height: 32px;
  color: var(--primary);
  flex: none;
}
.card p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.card .card-link { margin-top: auto; font-weight: 600; font-size: .9rem; }

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}
.notice p { margin: .3rem 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: 999px;
  padding: .55rem 1.15rem;
  font-weight: 600;
  font-size: .92rem;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--primary-strong); color: var(--primary-contrast); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--primary-strong);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--accent-soft); }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

/* ---------- contacts ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { margin-top: 0; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--ink-3); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .9rem; }
.contact-card dd { margin: .15rem 0 0; }

.map-embed {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  filter: saturate(.92);
}
.map-photo { margin: 1rem 0 0; }

/* raw HTML tables from the visual editor get the data-table look */
.content table:not([class]) { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .92rem; }
.content table:not([class]) th, .content table:not([class]) td { border: 1px solid var(--line); padding: .55rem .7rem; vertical-align: top; }
.content table:not([class]) tr:first-child th { background: var(--primary); color: var(--primary-contrast); }
.content table:not([class]) tbody tr:nth-child(even) { background: var(--surface-2); }
.map-photo img { height: 220px; object-fit: cover; width: 100%; }
[data-theme="dark"] .map-embed { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.map-credit { font-size: .8rem; color: var(--ink-3); margin-top: .4rem; }

/* ---------- links page ---------- */

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.link-cards ul { list-style: none; margin: 0; padding: 0; }
.link-cards li { margin: 0; border-bottom: 1px solid var(--line); }
.link-cards li:last-child { border-bottom: 0; }
.link-cards a { display: block; padding: .5rem .1rem; font-weight: 500; }
.link-cards a::before { content: "›"; color: var(--primary); margin-right: .55rem; font-weight: 700; }

/* ---------- modal (contact success) ---------- */
.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(7, 50, 47, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.2rem 1.8rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.modal-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}
.modal-title { margin: 0 0 .5rem; font-size: 1.25rem; color: var(--ink); border: 0; padding: 0; }
.modal-text { margin: 0 0 1.4rem; color: var(--ink-2); font-size: .95rem; }
body.modal-open { overflow: hidden; }

/* ---------- contact form ---------- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: var(--shadow-sm);
  margin: 1.2rem 0 2rem;
  max-width: 720px;
}
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 720px) { .cf-grid { grid-template-columns: 1fr; } }
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .65rem .8rem;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}
.contact-form textarea:focus { border-color: var(--primary); outline: none; }
.cf-captcha {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.cf-captcha img {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #eef8f7;
  cursor: pointer;
  height: 56px;
}
.cf-captcha-side { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; }
.cf-captcha-side .admin-field { min-width: 160px; margin-bottom: 0; }
.contact-status {
  display: none;
  font-size: .9rem;
  margin: .8rem 0 0;
}
.contact-status.show { display: block; }
.contact-status.ok { color: var(--primary-strong); }
.contact-status.err { color: #b3261e; }
.cf-note { font-size: .82rem; color: var(--ink-3); margin: .8rem 0 0; }

/* ---------- seminars ---------- */

.seminar-list { list-style: none; margin: 1.2rem 0; padding: 0; }
.seminar-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
}
.seminar-date { font-weight: 700; color: var(--primary-strong); font-size: .9rem; }

/* ---------- history timeline ---------- */

.timeline { list-style: none; margin: 1.4rem 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.8rem;
  margin: 0;
}
.timeline li::before {
  content: "";
  position: absolute; left: 2px; top: .45rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.timeline b, .timeline strong { color: var(--primary-strong); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--teal-100);
  margin-top: auto;
}
[data-theme="dark"] .site-footer { color: var(--ink-2); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 2.4rem 0 1.6rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

.site-footer h2, .footer-heading { font-size: .95rem; color: #fff; margin: 0 0 .7rem; font-weight: 700; }
[data-theme="dark"] .site-footer h2 { color: var(--ink); }
.site-footer p { margin: .25rem 0; font-size: .88rem; }
.footer-dept { color: var(--teal-300); font-weight: 600; }
.site-footer a { color: var(--teal-100); }
[data-theme="dark"] .site-footer a { color: var(--primary-strong); }
.site-footer a:hover { color: #fff; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: .3rem 0; font-size: .88rem; }
.footer-links a { display: inline-block; padding: .1rem 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 1rem 0 1.4rem;
  font-size: .8rem;
  color: var(--teal-300);
}
.footer-bottom p { margin: 0; }
[data-theme="dark"] .footer-bottom { color: var(--ink-3); border-top-color: var(--line); }

/* ---------- utilities ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: .1rem .6rem;
  font-size: .78rem;
  font-weight: 700;
}

.text-note { color: var(--ink-3); font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-nav, .site-footer, .breadcrumb { display: none; }
  body { background: #fff; color: #000; }
  .page-hero { background: #fff; color: #000; padding: 0; }
  .page-hero p, .breadcrumb ol, .breadcrumb a { color: #000; }
  a { color: #000; text-decoration: underline; }
}
