/* Self-hosted Roboto (variable font, weight 100-900 in a single file per
   subset) - replaces the Google Fonts CDN link. Removes 2 external DNS/TLS
   round-trips and a render-blocking cross-origin stylesheet; only the 2
   unicode subsets this Vietnamese-language site actually needs are kept
   (~57KB total instead of Google's default ~9-subset delivery). */
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

:root {
  --icoe-text: #1f2937; /* primary content color */
  --icoe-muted: #475569;
  --icoe-accent: #0b4f7a; /* deep ocean / marine blue */
  --icoe-card: #fff;
  --icoe-shadow: 0 12px 30px rgb(9 30 66 / 6%);

  /* Design tokens (Phase 0 - foundation only, not yet applied to components) */

  /* Spacing scale (4px base grid) */
  --icoe-space-1: 4px;
  --icoe-space-2: 8px;
  --icoe-space-3: 12px;
  --icoe-space-4: 16px;
  --icoe-space-5: 20px;
  --icoe-space-6: 24px;
  --icoe-space-7: 32px;
  --icoe-space-8: 48px;

  /* Radius scale */
  --icoe-radius-sm: 8px;
  --icoe-radius-md: 12px;
  --icoe-radius-lg: 16px;
  --icoe-radius-xl: 20px;
  --icoe-radius-pill: 999px;

  /* Elevation scale */
  --icoe-shadow-sm: 0 10px 20px rgb(11 79 122 / 5%);
  --icoe-shadow-md: 0 14px 28px rgb(11 79 122 / 6%);
  --icoe-shadow-lg: 0 22px 45px rgb(11 79 122 / 12%);

  /* Typography scale */
  --icoe-font-size-xs: 13px;
  --icoe-font-size-sm: 14px;
  --icoe-font-size-base: 15px;
  --icoe-font-size-md: 16px;
  --icoe-font-size-lg: 18px;
  --icoe-font-size-xl: 26px;
  --icoe-font-size-2xl: 38px;
  --icoe-font-size-3xl: 54px;
  --icoe-line-height-tight: 1.1;
  --icoe-line-height-normal: 1.65;
  --icoe-line-height-loose: 1.85;

  /* Z-index scale */
  --icoe-z-header: 100;
  --icoe-z-dialog: 1000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--icoe-text);

  /* Safety net: no descendant should ever force a page-wide horizontal
     scrollbar. Elements that legitimately need horizontal scroll (e.g.
     .project-table-wrap) keep their own local overflow-x: auto. */
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  cursor: zoom-in;
}

img:hover {
  filter: saturate(1.03);
}

.site-shell {
  width: 100%;
  margin: 0 auto;
}

.container {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* header */
.hero-banner {
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;

  /* Matches the source banner.svg's real 2560x1373 canvas so the box never
     changes size while the image loads (no layout shift), on any screen. */
  aspect-ratio: 2560 / 1373;
  object-fit: cover;
}

.hero-content {
  color: var(--icoe-accent);
  text-align: center;
}

.hero-eyebrow {
  font-size: 26px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 600;
}

.hero-title {
  margin: 0 0 15px;
  font-size: 54px;
  line-height: 1.1;
  font-weight: 800;
}

.hero-title .accent {
  color: var(--icoe-accent);
}

.hero-subtitle {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.decision-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: rgb(11 79 122 / 8%);
  border: 1px solid rgb(11 79 122 / 15%);
  color: #0b4f7a;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.decision-ref:hover {
  background: #0b4f7a;
  color: #fff;
  border-color: #0b4f7a;
}

.page-content {
  display: grid;
  gap: 28px;
  padding: 28px 0 0;
}

.section {
  background: transparent;
  border: 0;
  padding: 6px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* .page-content is an implicit-column CSS grid: without this, a grid
     item's default min-width:auto lets its intrinsic content (e.g. the
     760px-wide project tables) force the whole track - and every other
     section sharing it - wider than the viewport. */
  min-width: 0;
  max-width: 100%;
}

.section-heading {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #000;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--icoe-muted);
  font-size: 15px;
  line-height: 1.8;
}

.section p,
.section li,
.intro-section .intro-panel p,
.info-card p,
.project-item p,
.equipment-card p,
.team-card p {
  margin: 0;
  color: #000;
  font-size: 15px;
  line-height: 1.8;
}


.intro-section p {
  max-width: 960px;
}

.intro-section .intro-panel {
  background: #f7fbff;
  border-left: 4px solid var(--icoe-accent);
  border-radius: 12px;
  padding: 32px 32px 28px;
  box-shadow: 0 18px 42px rgb(11 79 122 / 8%);
}

.intro-section .intro-panel p {
  margin: 0 0 18px;
  color: var(--icoe-text);
  font-size: 14px;
  line-height: 1.85;
  text-align: justify;
}

.intro-section .intro-panel p:last-child {
  margin-bottom: 0;
}

.info-grid,
.equipment-grid,
.team-grid {
  display: grid;
  gap: 12px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.equipment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
}

.info-card,
.project-item,
.equipment-card,
.team-card {
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 14px 0;
}

.info-card {
  background: #fff;
  border: 1px solid rgb(11 79 122 / 12%);
  box-shadow: 0 14px 28px rgb(11 79 122 / 6%);
  padding: 24px 22px;
}

.info-card h3 {
  margin: 0 0 12px;
  color: var(--icoe-accent);
  font-size: 18px;
  font-weight: 800;
}

.info-card p {
  margin: 0 0 16px;
  color: #17233f;
  text-align: justify;
}

/* Shared button system: one visual language for every call-to-action on the
   site instead of ad-hoc one-off link styles. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--icoe-radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--icoe-accent);
  color: #fff;
  box-shadow: var(--icoe-shadow-md);
}

.btn--primary:hover {
  box-shadow: var(--icoe-shadow-lg);
}

.btn--ghost {
  background: rgb(11 79 122 / 8%);
  border-color: rgb(11 79 122 / 20%);
  color: var(--icoe-accent);
}

.btn--ghost:hover {
  background: rgb(11 79 122 / 14%);
}

.show-more-btn {
  margin-top: 20px;
}

/* "Xem thêm" truncation: show the first N items by default, reveal the
   rest by adding .is-expanded (see src/scripts/show-more.js) on click.
   Using :not(.is-expanded) instead of an .is-expanded override rule means
   the reveal needs no specificity fight / !important - the hiding rule
   just stops matching once the class is present. */
#equipment-grid:not(.is-expanded) > .equipment-card:nth-child(n + 9) {
  display: none;
}

#publications-table:not(.is-expanded) tbody tr:nth-child(n + 6),
[id^="project-table-"]:not(.is-expanded) tbody tr:nth-child(n + 6) {
  display: none;
}

#activity-gallery-grid:not(.is-expanded) > .image-card:nth-child(n + 5) {
  display: none;
}

@media (width <= 560px) {
  #equipment-grid:not(.is-expanded) > .equipment-card:nth-child(n + 5) {
    display: none;
  }

  #publications-table:not(.is-expanded) tbody tr:nth-child(n + 4),
  [id^="project-table-"]:not(.is-expanded) tbody tr:nth-child(n + 4) {
    display: none;
  }
}

.project-item h3,
.equipment-card h3,
.team-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--icoe-text);
  font-weight: 700;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  justify-items: center;
}

.research-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgb(11 79 122 / 12%);
  border-color: rgb(11 79 122 / 22%);
}

#projects .section-heading {
  max-width: 980px;
}

.project-tables {
  width: 100%;
  display: grid;
  gap: 22px;
}

.project-table-block {
  width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 14px;
}

.project-table-title {
  margin: 0 0 14px;
  color: var(--icoe-accent);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}

.project-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.project-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.65;
  color: var(--icoe-text);
}

.project-table th,
.project-table td {
  border: 1px solid rgb(11 79 122 / 16%);
  padding: 10px 12px;
  vertical-align: top;
}

.project-table th {
  background: #f0f7fc;
  color: var(--icoe-accent);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.project-table td:first-child,
.project-table th:first-child {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}

.research-projects td:nth-child(4),
.research-projects th:nth-child(4) {
  width: 130px;
  text-align: center;
  white-space: nowrap;
}

.research-projects td:nth-child(2) {
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.research-projects td:nth-child(3),
.research-projects th:nth-child(3) {
  width: 130px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.project-table tbody tr:nth-child(even) {
  background: #fafcff;
}

.project-table tbody tr:hover {
  background: rgb(11 79 122 / 4%);
}

.publication-table td:nth-child(4),
.publication-table th:nth-child(4) {
  width: 250px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.publication-table td:nth-child(2),
.publication-table th:nth-child(2) {
  width: 100px;
  text-align: center;
  white-space: nowrap;
}

.publication-table td:nth-child(3),
.publication-table th:nth-child(3) {
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.image-collection {
  width: 100%;
  display: grid;
  gap: 24px;
}

.image-group {
  width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.image-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgb(11 79 122 / 12%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgb(11 79 122 / 5%);
}

.image-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f8fbff;
}

.image-card figcaption {
  padding: 10px 12px 12px;
  color: var(--icoe-text);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  word-break: break-word;
}

.image-group--featured .image-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-group--featured .image-card img {
  height: 210px;
}

.image-group--standard .image-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-group--standard .image-card img {
  height: 220px;
}

#organization .section-heading {
  max-width: 820px;
}

.section-subtitle {
  margin: 0;
  color: var(--icoe-muted);
  font-size: 15px;
  line-height: 1.8;
}

.org-tree {
  width: 100%;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.org-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.org-root,
.org-node {
  width: 100%;
}

.org-root {
  max-width: 720px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border: 1px solid rgb(11 79 122 / 16%);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 18px 36px rgb(11 79 122 / 8%);
  position: relative;
}

.org-root::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, rgb(11 79 122 / 50%), rgb(11 79 122 / 0%));
}

.org-node {
  background: #fff;
  border: 1px solid rgb(11 79 122 / 12%);
  border-radius: 12px;
  padding: 22px 22px 20px;
  box-shadow: 0 14px 28px rgb(11 79 122 / 6%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.org-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgb(11 79 122 / 12%);
  border-color: rgb(11 79 122 / 22%);
}

.org-root h3,
.org-node h3 {
  margin: 0 0 10px;
  color: var(--icoe-accent);
  font-size: 18px;
  line-height: 1.35;
}

.org-root p,
.org-node p {
  color: var(--icoe-text);
  font-size: 14px;
  line-height: 1.8;
}

.org-branches .org-node {
  position: relative;
}

.project-list {
  display: grid;
  gap: 10px;
}

.equipment-card img,
.team-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.team-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  background: #fff;
  border: 1px solid rgb(11 79 122 / 12%);
  box-shadow: 0 14px 28px rgb(11 79 122 / 6%);
  padding: 18px 18px 16px;
}

.team-card img {
  width: 112px;
  margin-bottom: 0;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.team-card > div {
  min-width: 0;
}

.team-role {
  margin: 0 0 6px;
  color: var(--icoe-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-specialty,
.team-email {
  margin: 0 0 6px;
  color: var(--icoe-text);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.team-email {
  margin-bottom: 0;
}

.team-email a {
  color: var(--icoe-accent);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.team-email a:hover {
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.gallery-card {
  overflow: hidden;
  border-radius: 12px;
  border: 0;
  background: transparent;
}

.gallery-card--wide {
  grid-column: span 2;
}

.image-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: inherit;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}

/* Image sizing (height, object-fit, etc.) for team/equipment/gallery photos
   is already fully handled by the existing `.team-card img`, `.equipment-card
   img`, `.image-card img` (and its first-child/last-child group variants)
   selectors below - those still match through the .image-zoom-trigger button
   wrapper via normal descendant matching, so no separate sizing rule is
   needed here. */

.team-card .image-zoom-trigger {
  width: 112px;
  flex-shrink: 0;
}

/* Stand-in for team members without a real photo yet - same box as the
   real avatar (.team-card img: 112x160, see below) so the card layout is
   identical either way. */
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--icoe-accent) 0%, #145d92 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.gallery-card img {
  width: 100%;
}

.image-dialog {
  width: min(92vw, 1100px);
  border: 0;
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 32px 80px rgb(0 0 0 / 28%);
}

.image-dialog::backdrop {
  background: rgb(7 15 25 / 72%);
  backdrop-filter: blur(3px);
}

.image-dialog__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgb(11 79 122 / 10%);
  color: var(--icoe-accent);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.image-dialog__img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  background: #f8fbff;
}

.image-dialog__caption {
  margin: 12px 6px 0;
  color: var(--icoe-text);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.image-lightbox {
  width: min(92vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 20px;
  padding: 16px 16px 14px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 32px 80px rgb(0 0 0 / 30%);

  /* Explicit fixed + inset:0 + margin:auto reinforces native <dialog>
     centering. An author `position` override (e.g. relative) defeats the
     browser's own top-layer centering and lets the box fall back to its
     in-flow position at the end of <body>. */
  position: fixed;
  inset: 0;
  margin: auto;
}

/* `display: flex` above is unconditional so it wins the cascade over the
   browser's own `dialog:not([open]) { display: none }` UA rule. Without
   this override the dialog stays visible (just without the modal backdrop)
   after being closed. */
.image-lightbox:not([open]) {
  display: none;
}

.image-lightbox::backdrop {
  background: rgb(7 15 25 / 78%);
  backdrop-filter: blur(4px);
}

.image-lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgb(11 79 122 / 12%);
  color: var(--icoe-accent);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f8fbff;
}

.image-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  cursor: grab;
}

.image-lightbox__img.team-image {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.image-lightbox__viewport:active .image-lightbox__img {
  cursor: grabbing;
}

.image-lightbox__caption {
  margin: 12px 6px 0;
  color: var(--icoe-text);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  word-break: break-word;
}

/* site header / navigation */
html {
  scroll-behavior: smooth;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: var(--icoe-z-dialog);
  padding: 10px 16px;
  background: var(--icoe-accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s ease;
}

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

/* One consistent, visible focus ring for every interactive element site-wide
   (nav links, image zoom buttons, back-to-top, lightbox close, decision/PDF
   links, mailto links...) instead of relying on each browser's inconsistent
   default outline. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--icoe-accent);
  outline-offset: 2px;
}

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

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--icoe-z-header);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--icoe-accent);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 12px 24px rgb(9 30 66 / 20%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-footer {
  margin-top: 12px;
  background: var(--icoe-accent);
  color: #fff;
}

.site-footer-inner {
  width: min(100%, 1100px);
  margin-inline: auto;
  padding: 32px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.site-footer-name {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 16px;
}

.site-footer-parent {
  margin: 0;
  font-size: 14px;
  color: rgb(255 255 255 / 80%);
}

.site-footer-contact p {
  margin: 0;
  font-size: 14px;
  color: rgb(255 255 255 / 90%);
}

.site-footer-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-contact a:hover {
  text-decoration: underline;
}

.site-footer-copyright {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid rgb(255 255 255 / 15%);
  text-align: center;
  font-size: 13px;
  color: rgb(255 255 255 / 75%);
}

/* Tablet: keep info/team as 2 columns and equipment as 3 columns rather
   than collapsing straight to 1 - there's still room for them at this
   width, full collapse only happens at the mobile breakpoint below. */
@media (width <= 1100px) {
  .org-branches {
    grid-template-columns: 1fr;
  }

  .equipment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width <= 560px) {
  .site-footer-inner {
    flex-direction: column;
  }

  .site-shell {
    width: 100%;
  }

  .hero {
    padding: 24px 0 32px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card--wide {
    grid-column: span 1;
  }

  .info-grid,
  .equipment-grid,
  .team-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .image-grid,
  .image-group--featured .image-grid,
  .image-group--standard .image-grid {
    grid-template-columns: 1fr;
  }

  .image-card img,
  .image-group--featured .image-card img,
  .image-group--standard .image-card img {
    height: 240px;
  }

  .org-root::after,
  .org-branches .org-node::before,
  .org-branches .org-node::after {
    display: none;
  }

  .section {
    padding: 16px 0 4px;
  }

  .project-table-block {
    padding: 0;
  }
}

/* Small phones: turn each data row into a labelled card instead of forcing
   a horizontally-scrollable table. Each <td> gets its column header back
   via `data-label` (set in the template) rendered through ::before. */
@media (width <= 480px) {
  .project-table-wrap {
    overflow-x: visible;
  }

  .project-table {
    min-width: 0;
    table-layout: auto;
  }

  .project-table thead {
    display: none;
  }

  .project-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid rgb(11 79 122 / 16%);
    border-radius: 10px;
    overflow: hidden;
  }

  .project-table tbody tr:nth-child(even) {
    background: #fafcff;
  }

  .project-table tbody td {
    display: flex;
    gap: 10px;
    width: 100% !important;
    max-width: none;
    border: 0;
    border-bottom: 1px solid rgb(11 79 122 / 10%);
    padding: 8px 10px;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word;
  }

  .project-table tbody td:last-child {
    border-bottom: 0;
  }

  .project-table tbody td::before {
    content: attr(data-label);
    flex-shrink: 0;
    width: 42%;
    color: var(--icoe-accent);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
}
