:root {
  --navy: #071d2d;
  --blue: #0b3656;
  --red: #cf1823;
  --red-dark: #a20e17;
  --ink: #102331;
  --muted: #647581;
  --line: #d7e0e5;
  --page: #f1f4f5;
  --white: #fff;
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", "Helvetica Neue", sans-serif;
  --max: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: var(--body); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #f2c94c; outline-offset: 3px; }

.site-header { min-height: 112px; padding: 18px max(32px, calc((100vw - var(--max)) / 2 + 32px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #fff; background: var(--navy); border-bottom: 5px solid var(--red); }
.brand { display: flex; align-items: center; gap: 15px; width: max-content; }
.brand img { width: 112px; max-height: 74px; object-fit: contain; }
.brand .una-logo { width: 114px; }
.brand span { width: 1px; height: 46px; background: rgba(255,255,255,.3); }
.header-title { display: grid; justify-items: center; line-height: 1; }
.header-title span { color: rgba(255,255,255,.63); text-transform: uppercase; font-size: .65rem; letter-spacing: .18em; font-weight: 800; }
.header-title strong { margin-top: 7px; font: 800 2rem var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.portal-link { justify-self: end; font-size: .8rem; font-weight: 800; }
.portal-link span { margin-left: 9px; color: var(--red); }

main { max-width: var(--max); margin: auto; padding: 0 32px 100px; }
.intro { padding: 85px 0 65px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.eyebrow { margin: 0 0 13px; color: var(--red); text-transform: uppercase; font-size: .68rem; font-weight: 900; letter-spacing: .17em; }
.intro h1 { margin: 0; font: 800 clamp(4rem, 6vw, 7rem)/.87 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.intro h1 em { color: var(--red); font-style: normal; }
.intro > p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.notice { min-height: 58px; padding: 14px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; color: #61292d; background: #fff3f3; border: 1px solid #efd0d2; font-size: .82rem; }
.notice strong { text-transform: uppercase; font-size: .67rem; letter-spacing: .12em; }
.notice span:last-child { color: #8b6669; white-space: nowrap; }

.filters { margin: 30px 0 22px; display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: 12px; }
.filters label { display: grid; gap: 7px; color: var(--muted); text-transform: uppercase; font-size: .61rem; font-weight: 850; letter-spacing: .1em; }
.filters input, .filters select { min-width: 0; height: 54px; padding: 0 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; }
.filters button { align-self: end; height: 54px; padding: 0 24px; border: 0; color: #fff; background: var(--red); font-weight: 800; }
.filters button:hover { background: var(--red-dark); }

.dashboard { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; background: #fff; border: 1px solid var(--line); }
.map-card { position: relative; min-width: 0; }
#map { height: 100%; min-height: 648px; background: #dfe8eb; }
.map-legend { position: absolute; z-index: 2; left: 18px; bottom: 18px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 13px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(7,29,45,.14); font-size: .66rem; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.map-legend .middle { background: #24739c; }
.map-legend .deep { background: #0b3656; }
.focus-card { position: relative; padding: 38px 34px; color: #fff; background: var(--navy); overflow: hidden; }
.focus-card::after { content: ""; position: absolute; right: -160px; bottom: -180px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.02); }
.focus-card > * { position: relative; z-index: 1; }
.focus-mag { display: flex; align-items: baseline; gap: 8px; color: var(--red); }
.focus-mag span { font-size: 1.2rem; font-weight: 900; }
.focus-mag strong { font: 800 6rem/.9 var(--display); }
.focus-card h2 { min-height: 62px; margin: 14px 0 28px; font-size: 1.3rem; line-height: 1.3; }
.focus-card dl { margin: 0; display: grid; gap: 17px; }
.focus-card dl div { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.16); }
.focus-card dt { color: rgba(255,255,255,.55); text-transform: uppercase; font-size: .6rem; letter-spacing: .1em; }
.focus-card dd { margin: 3px 0 0; font-size: .83rem; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 0; background: #fff; }
.stats div { min-height: 130px; padding: 27px 30px; display: grid; align-content: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats span { color: var(--muted); font-size: .76rem; }
.stats strong { color: var(--red); font: 800 2.9rem/1 var(--display); }

.catalog { margin-top: 65px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.catalog-head h2 { margin: 0; font: 800 2.7rem/.95 var(--display); text-transform: uppercase; }
.catalog-head > p { margin: 0; color: var(--muted); font-size: .8rem; }
.table-wrap { max-height: 650px; overflow: auto; border: 1px solid var(--line); border-top: 0; background: #fff; }
table { width: 100%; border-collapse: collapse; }
thead { position: sticky; z-index: 2; top: 0; color: #fff; background: var(--navy); }
th { padding: 15px 18px; text-align: left; text-transform: uppercase; font-size: .62rem; letter-spacing: .1em; }
td { padding: 17px 18px; border-bottom: 1px solid var(--line); font-size: .82rem; }
tbody tr { cursor: pointer; transition: background .18s; }
tbody tr:hover, tbody tr.selected { background: #fff1f1; }
td:nth-child(2) { color: var(--red); font: 800 1.4rem var(--display); }
td:nth-child(1), td:nth-child(4) { white-space: nowrap; }
.empty-row { padding: 50px; text-align: center; color: var(--muted); cursor: default; }
.load-more { width: 100%; min-height: 52px; border: 1px solid var(--line); border-top: 0; color: var(--blue); background: #fff; font-weight: 800; }
.load-more[hidden] { display: none; }

footer { min-height: 150px; padding: 35px max(32px, calc((100vw - var(--max)) / 2 + 32px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: rgba(255,255,255,.7); background: #04131f; font-size: .78rem; }
footer span { color: #fff; font-weight: 900; letter-spacing: .12em; }
footer a { justify-self: end; color: #fff; font-weight: 800; }
.loading { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(7,29,45,.92); font-weight: 800; letter-spacing: .08em; }
.loading[hidden] { display: none; }
.maplibregl-popup-content { padding: 10px 13px; color: var(--ink); font: 700 .76rem var(--body); border-radius: 0; box-shadow: 0 9px 30px rgba(7,29,45,.22); }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-title { display: none; }
  .filters { grid-template-columns: 1.7fr repeat(3, 1fr); }
  .filters button { grid-column: 1 / -1; }
  .dashboard { grid-template-columns: 1fr; }
  #map { height: 600px; min-height: 0; }
  .focus-card { min-height: 540px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 90px; padding: 14px 18px; }
  .brand img { width: 83px; }
  .brand .una-logo { width: 86px; }
  .portal-link { font-size: 0; }
  .portal-link span { font-size: 1rem; }
  main { padding: 0 16px 70px; }
  .intro { padding: 55px 0 38px; grid-template-columns: 1fr; gap: 28px; }
  .intro h1 { font-size: 3.7rem; }
  .notice { grid-template-columns: 1fr; gap: 5px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  #map { height: 470px; }
  .focus-card { padding: 30px 25px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .catalog-head { align-items: flex-start; flex-direction: column; }
  .table-wrap { max-height: 580px; }
  th:nth-child(5), td:nth-child(5) { display: none; }
  th, td { padding: 13px 10px; }
  footer { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  footer a { justify-self: center; }
}
