/* Water Resources Research Lab | UF/IFAS
   Follows the University of Florida web identity: IBM Plex Sans,
   UF Blue #0021A5 and UF Orange #FA4616 used as solid colors. */

:root {
  --uf-blue: #0021A5;
  --uf-blue-hover: #001a85;
  --uf-orange: #FA4616;
  --uf-orange-hover: #d93a10;
  --uf-dark: #002657;
  --ink: #343741;
  --ink-strong: #1f2228;
  --muted: #5d6270;
  --line: #d9dce3;
  --light: #F5F5F5;
  --blue-tint: #eef1fb;
  --green: #22884C;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 20px rgba(0, 33, 165, .07);
  --wrap: 1240px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; flex: none; }
a { color: var(--uf-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--uf-orange-hover); }
h1, h2, h3, h4 { color: var(--ink-strong); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--uf-orange); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 960px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--uf-orange); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: #fff; margin-bottom: 1em; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--uf-orange); }
.eyebrow.dark { color: var(--uf-blue); }
.lead { font-size: 1.15rem; line-height: 1.6; color: #e6eaf8; max-width: 62ch; }
.lead-dark { font-size: 1.1rem; color: var(--ink); max-width: 68ch; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent; font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-orange { background: var(--uf-orange); color: #fff; }
.btn-orange:hover { background: var(--uf-orange-hover); color: #fff; }
.btn-blue { background: var(--uf-blue); color: #fff; }
.btn-blue:hover { background: var(--uf-blue-hover); color: #fff; }
.btn-white { background: #fff; color: var(--uf-blue); }
.btn-white:hover { background: var(--blue-tint); color: var(--uf-blue); }
.btn-outline { border-color: var(--uf-blue); color: var(--uf-blue); background: #fff; }
.btn-outline:hover { background: var(--uf-blue); color: #fff; }

/* Utility bar + masthead + navigation */
.utility { background: var(--uf-dark); color: #fff; font-size: .82rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility-admin { opacity: .85; }
.masthead { background: #fff; }
.masthead-inner { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.ufifas img { width: 171px; height: auto; }
.masthead-rule { width: 1px; align-self: stretch; margin: 20px 0; background: var(--line); }
.lab { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-strong); margin-right: auto; min-width: 0; }
.lab img { width: 54px; height: 54px; }
.lab-text { display: flex; flex-direction: column; line-height: 1.2; }
.lab-name { font-size: 1.32rem; font-weight: 700; color: var(--uf-blue); letter-spacing: -.01em; }
.lab-sub { font-size: .9rem; color: var(--muted); }
.lab:hover .lab-name { color: var(--uf-blue); }
.mainnav { position: sticky; top: 0; z-index: 40; background: var(--uf-blue); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.mainnav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 15px 17px; color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem; }
.mainnav a:hover { background: var(--uf-blue-hover); color: #fff; }
.mainnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; background: var(--uf-orange); }
.mainnav .nav-tools { font-weight: 700; }
.nav-badge { background: var(--uf-orange); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 7px; line-height: 1.4; }
.nav-toggle { display: none; align-items: center; gap: 8px; border: 2px solid var(--uf-blue); background: #fff; color: var(--uf-blue); border-radius: var(--radius); padding: 8px 12px; font: 600 .95rem var(--font); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Tools hero (home) */
.tools-hero { background: var(--uf-blue); color: #fff; padding: 38px 0 0; }
.tools-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.3vw, 2.7rem); max-width: 30ch; margin-bottom: .3em; }
.tools-hero .eyebrow { margin-bottom: .7em; }
.tools-hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.tools-hero-head .lead { margin-bottom: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: -64px; position: relative; }
.tool-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 20, 80, .18); overflow: hidden; display: flex; flex-direction: column; border-top: 5px solid var(--uf-orange); }
.tool-media { display: block; aspect-ratio: 16 / 9; background: var(--uf-dark); overflow: hidden; }
.tool-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tool-card:hover .tool-media img { transform: scale(1.03); }
.tool-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; font-size: .8rem; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .76rem; letter-spacing: .02em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { background: #e5f4eb; color: #17693a; }
.status-testing { background: #fff0e9; color: #b4360d; }
.status-software { background: var(--blue-tint); color: var(--uf-blue); }
.status-signin { background: #eceef2; color: #4a4f5c; }
.tool-cat { color: var(--muted); font-weight: 500; }
.tool-name { font-size: 1.35rem; margin-bottom: .3em; }
.tool-name a { color: var(--ink-strong); text-decoration: none; }
.tool-name a:hover { color: var(--uf-blue); }
.tool-tagline { color: var(--ink); margin-bottom: .8em; }
.tool-tagline.lg { font-size: 1.15rem; }
.tool-metric { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink-strong); background: var(--light); border-left: 3px solid var(--uf-orange); padding: 9px 12px; margin-top: auto; }
.tool-metric svg { color: var(--green); margin-top: 3px; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.more-tools { background: var(--light); padding: 104px 0 40px; }
.tool-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
@media (min-width: 961px) { .tool-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool-mini { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tool-mini-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: var(--uf-dark); }
.tool-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.tool-mini h3 { font-size: 1.08rem; margin-bottom: .25em; }
.tool-mini h3 a { color: var(--ink-strong); text-decoration: none; }
.tool-mini h3 a:hover { color: var(--uf-blue); }
.tool-mini p { margin: 0; font-size: .93rem; }
.tool-mini .tool-meta { margin-bottom: 6px; }
.tool-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--uf-blue); color: #fff; font-size: 2.4rem; font-weight: 700; }
.tools-hero + .section { padding-top: 120px; }

/* Sections */
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section.tight { padding-top: 44px; }
.section.alt { background: var(--light); }
.section-head { margin-bottom: 30px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.banner { background: var(--uf-blue); color: #fff; padding: clamp(44px, 6vw, 72px) 0; border-bottom: 5px solid var(--uf-orange); }
.banner h1 { color: #fff; margin-bottom: .3em; }
.banner .lead { margin: 0; }

.about { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 28px 0 0; }
.stats div { border-left: 4px solid var(--uf-orange); padding-left: 14px; }
.stats dt { font-size: 2.3rem; font-weight: 700; color: var(--uf-blue); line-height: 1.1; }
.stats dd { margin: 0; color: var(--muted); font-size: .95rem; }
.pi-card-mini { display: grid; grid-template-columns: 120px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--uf-blue); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pi-card-mini img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.pi-card-mini h3 { margin-bottom: .2em; }
.pi-card-mini .eyebrow { margin-bottom: .5em; }
.pi-card-mini .eyebrow::before { display: none; }
.pi-card-mini p { margin-bottom: .45em; font-size: .95rem; }
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.area { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--uf-blue); border-radius: var(--radius); padding: 22px 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.area:hover { border-top-color: var(--uf-orange); box-shadow: var(--shadow); color: var(--ink); }
.area h3 { font-size: 1.08rem; }
.area p { font-size: .93rem; color: var(--muted); flex: 1; }
.area .link-arrow { color: var(--uf-blue); font-size: .9rem; }

.news-social { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid.two { grid-template-columns: repeat(2, 1fr); }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-media img, .news-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
.news-ph { display: grid; place-items: center; background: var(--blue-tint); }
.news-body { padding: 18px 20px 20px; }
.news-body h3 { font-size: 1.1rem; }
.news-body h3 a { color: var(--ink-strong); text-decoration: none; }
.news-body h3 a:hover { color: var(--uf-blue); }
.news-body p { font-size: .95rem; }
.date { color: var(--uf-blue); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5em; }
.news-list { display: grid; gap: 22px; }
.news-list .news-card { flex-direction: row; }
.news-list .news-media { flex: 0 0 260px; }
.news-list .news-media img, .news-list .news-ph { height: 100%; aspect-ratio: auto; min-height: 190px; }
.social-col { display: grid; gap: 16px; }
.social-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--uf-blue); border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; }
.social-card img { border-radius: 2px; margin-bottom: 10px; max-height: 220px; width: 100%; object-fit: cover; }
.social-card p { margin-bottom: .6em; }
.social-head { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); }
.social-platform { font-weight: 700; color: var(--uf-blue); text-transform: uppercase; letter-spacing: .08em; }
.social-linkedin { border-left-color: #0a66c2; }
.social-x { border-left-color: #111; }
.social-youtube { border-left-color: #c4302b; }

.careers-band { background: var(--uf-orange); color: #fff; padding: 46px 0; }
.careers-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.careers-band h2 { color: #fff; margin-bottom: .25em; }
.careers-band p { margin: 0; color: #fff; max-width: 70ch; font-size: 1.2rem; font-weight: 600; }
.careers-band .btn-white { color: var(--uf-orange-hover); }

.callout-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.callout-row h2 { font-size: 1.5rem; margin-bottom: .2em; }
.callout-row p { margin: 0; color: var(--muted); }

/* Chips */
.chips ul, ul.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; }
.chips a, .chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font: 500 .9rem var(--font); color: var(--ink-strong); cursor: pointer; }
.chips a:hover, .chip-btn:hover { border-color: var(--uf-blue); color: var(--uf-blue); }
.chip-btn[aria-pressed="true"] { background: var(--uf-blue); border-color: var(--uf-blue); color: #fff; }
.chip-btn span { opacity: .7; font-size: .82rem; }

/* Tools page */
.tool-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.tool-detail:first-of-type { border-top: 0; padding-top: 8px; }
.tool-detail.flip .tool-detail-media { order: 2; }
.tool-detail-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 5px solid var(--uf-orange); background: var(--uf-dark); aspect-ratio: 16 / 10; }
.tool-detail-media img, .tool-detail-media .tool-ph { width: 100%; height: 100%; object-fit: cover; }
.tool-detail h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .25em; }
ul.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
ul.checks li { display: flex; gap: 10px; align-items: flex-start; }
ul.checks svg { color: var(--green); width: 20px; height: 20px; margin-top: 3px; }

/* Research */
.project { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project.flip .project-media { order: 2; }
.project-media { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.project-media img { margin: 0 auto; max-height: 460px; width: auto; }
.subtitle { color: var(--muted); font-size: 1.05rem; font-style: italic; }
.badge { display: inline-block; background: var(--blue-tint); color: var(--uf-blue); font-weight: 600; font-size: .78rem; padding: 4px 11px; border-radius: 999px; margin-bottom: .9em; }

/* People */
.pi-feature { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; padding-bottom: 52px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.pi-feature img { width: 280px; height: 280px; object-fit: cover; border-radius: var(--radius); border-bottom: 5px solid var(--uf-orange); }
.role { color: var(--uf-blue); font-weight: 600; margin-bottom: .5em; }
.people-group { margin-bottom: 48px; }
.people-group > h2 { font-size: 1.45rem; padding-bottom: 10px; border-bottom: 3px solid var(--uf-orange); display: inline-block; margin-bottom: 26px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.person img, .person-ph { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.person-ph { display: grid; place-items: center; background: var(--uf-blue); color: #fff; font-size: 2.6rem; font-weight: 600; }
.person h3 { font-size: 1.12rem; margin-bottom: .2em; }
.person-desc { font-size: .92rem; }
.interests { font-size: .92rem; text-align: left; color: var(--ink); }
.person .interests { flex: 1; }
.interests span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.person .pills { justify-content: center; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid #c3cbe6; font-size: .8rem; font-weight: 500; text-decoration: none; color: var(--uf-blue); background: #fff; }
.pill:hover { background: var(--uf-blue); border-color: var(--uf-blue); color: #fff; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--uf-blue); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }

/* Publications */
.pub-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { flex: 1 1 320px; }
.search input { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid #b9bfcc; border-radius: var(--radius); }
.search input:focus { outline: 3px solid rgba(0, 33, 165, .25); border-color: var(--uf-blue); }
.filters { margin-bottom: 10px !important; }
.years ul { margin: 14px 0 32px; }
.years a { padding: 5px 12px; font-size: .85rem; }
.pub-year { margin-bottom: 34px; scroll-margin-top: 80px; }
.pub-year h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--uf-blue); padding-bottom: 8px; }
.count { font-size: .8rem; background: var(--blue-tint); color: var(--uf-blue); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
ol.pubs { margin: 0; padding-left: 1.4em; }
ol.pubs li { margin-bottom: 14px; padding-left: 4px; font-size: .97rem; }
ol.pubs strong { color: var(--ink-strong); }
.doi { font-size: .86rem; word-break: break-all; }
.kind { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #fff0e9; color: #b4360d; vertical-align: 1px; }
.kind-chapter, .kind-conference { background: var(--blue-tint); color: var(--uf-blue); }

/* Careers */
.job { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--uf-orange); border-radius: var(--radius); padding: 28px; margin-bottom: 26px; scroll-margin-top: 80px; }
.job-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.job h2 { font-size: 1.5rem; }
.job-facts { display: grid; gap: 8px; margin: 0; min-width: 180px; }
.job-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.job-facts dd { margin: 0; font-weight: 600; color: var(--ink-strong); }
.empty-state { background: var(--light); border-left: 5px solid var(--uf-blue); padding: 30px 32px; border-radius: var(--radius); }

/* Outreach, contact */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; margin-bottom: 36px; }
.callout { background: var(--blue-tint); border-left: 5px solid var(--uf-blue); padding: 24px 26px; border-radius: var(--radius); }
.callout p { margin: 0; }
.gallery { display: grid; gap: 14px; }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.course { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.course h4 { margin-top: 1.2em; color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--uf-blue); border-radius: var(--radius); padding: 26px; }
.contact-card h2 { font-size: 1.25rem; }

/* Footer */
.footer { background: var(--uf-dark); color: #d5dbeb; font-size: .93rem; }
.footer a { color: #fff; }
.footer a:hover { color: #fff; text-decoration-color: var(--uf-orange); }
.footer h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .9em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-sig { width: 200px; margin-bottom: 18px; }
.footer-lab { color: #fff; font-weight: 600; margin-bottom: .2em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-base { background: #001b3e; font-size: .85rem; }
.footer-base-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 18px; }
.footer-base p { margin: 0; }

/* Grid items may shrink below their content's natural width (large images, long DOIs). */
.tool-grid > *, .tool-mini-grid > *, .area-grid > *, .news-grid > *, .people-grid > *, .contact-grid > *,
.tool-detail > *, .project > *, .about > *, .news-social > *, .two-col > *, .course > *, .footer-grid > *,
.pi-feature > *, .pi-card-mini > *, .tool-mini > *, .gallery > *, .masthead-inner > * { min-width: 0; }
html, body { overflow-x: clip; }

/* Responsive */
@media (max-width: 1100px) {
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mainnav a { padding: 14px 12px; font-size: .94rem; }
}
@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .mainnav { display: none; position: static; }
  .js .mainnav.open { display: block; }
  .js .mainnav ul { flex-direction: column; padding: 6px 0 12px; }
  .js .mainnav a { padding: 13px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .js .mainnav a[aria-current="page"]::after { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .masthead-rule, .ufifas { display: none; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-detail, .project, .pi-feature, .about, .two-col, .course, .news-social { grid-template-columns: 1fr; }
  .tool-detail.flip .tool-detail-media, .project.flip .project-media { order: 0; }
  .tools-hero-head { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .tool-grid, .news-grid, .news-grid.two, .area-grid, .gallery.three, .footer-grid { grid-template-columns: 1fr; }
  .tool-grid { margin-bottom: -40px; }
  .more-tools { padding-top: 76px; }
  .tools-hero + .section { padding-top: 96px; }
  .tool-mini { grid-template-columns: 110px 1fr; }
  .masthead-inner { min-height: 76px; gap: 12px; }
  .lab img { width: 44px; height: 44px; }
  .lab-name { font-size: 1.05rem; }
  .lab-sub { display: none; }
  .nav-toggle-label { display: none; }
  .pi-feature img { width: 200px; height: 200px; }
  .pi-card-mini { grid-template-columns: 1fr; }
  .news-list .news-card { flex-direction: column; }
  .news-list .news-media { flex: none; }
  .news-list .news-media img, .news-list .news-ph { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
  .table th, .table td { padding: 10px 12px; }
}
@media print {
  .utility, .mainnav, .footer, .careers-band, .pub-tools, .chips, .nav-toggle { display: none !important; }
  .tools-hero, .banner { background: none; color: var(--ink); }
  .tools-hero h1, .banner h1 { color: var(--ink-strong); }
}
