/* NZDF public site (WebBase pages). Carried over from the standalone .NET 10 site (site.css + inner.css) - see docs/xsite-handoff.md. */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Raleway:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --navy: #003a5d;
  --navy-dark: #002537;
  --teal: #5ac6cc;
  --text: #777777;
  --heading: #333333;
  --line: #e4e4e4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Lato, system-ui, "Segoe UI", sans-serif; font-size: 16px; line-height: 26px; color: var(--text); background: #fff; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1202px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, h6 { font-family: Raleway, system-ui, sans-serif; color: var(--heading); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-block; font-family: Raleway, system-ui, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; padding: 12px 24px; border-radius: 3px; color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); transition: background-color .2s, color .2s; }
.btn-lg { padding: 16px 28px; font-weight: 600; }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: #fff; color: var(--navy); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #fff; color: var(--teal); }
.btn-white { background: #fff; color: #888; font-weight: 700; letter-spacing: 1px; padding: 14px 28px; }
.btn-white:hover { background: #333; color: #fff; }

/* ── Top bar + header ────────────────────────────────────── */
.topbar { background: var(--navy); font-family: Raleway, system-ui, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--teal); text-decoration: none; }
.topbar a:hover { color: #fff; }

.header { border-bottom: 0; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { display: block; height: 52px; width: auto; }
.nzdf-menu { display: flex; align-items: center; gap: 22px; font-family: Raleway, system-ui, sans-serif; font-size: 14px; }
.nzdf-menu > a:not(.btn) { color: var(--text); text-decoration: none; }
.nzdf-menu > a:not(.btn):hover, .nzdf-menu > a.active { color: var(--navy); }
.btn-conf { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; padding: 14px 22px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; font-size: 22px; line-height: 1; padding: 6px 10px; color: var(--navy); cursor: pointer; }

/* ── Hero (wide screens): two tinted halves over one photo, cut-out man in the middle ── */
.hero { position: relative; height: clamp(440px, 40vw, 800px); overflow: hidden; background: var(--navy) url(/icons/nzdf-drill-bg.jpg) center / cover; }
.hero::before, .hero::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; }
.hero::before { left: 0; background: rgba(90, 198, 204, 0.78); }
.hero::after { right: 0; background: rgba(0, 58, 93, 0.84); }
.hero-man { position: absolute; z-index: 2; left: 50%; top: 3.2vw; width: clamp(300px, 43.5vw, 880px); max-width: none; transform: translateX(-50%); }
.hero-half { position: absolute; z-index: 3; top: 24%; }
.hero-left { left: 19%; }
.hero-right { right: 19%; text-align: right; }
.hero .kicker { font-family: Lato, system-ui, sans-serif; font-weight: 700; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.3; }
.hero-left .kicker { color: var(--navy); }
.hero-right .kicker { color: var(--teal); }
.hero h2 { font-weight: 900; text-transform: uppercase; color: #fff; font-size: clamp(30px, 3.2vw, 64px); line-height: 1.05; margin: 6px 0 30px; }

/* Entrance: the man fades in, then each side's text slides up. CSS only; skipped for reduced-motion users. */
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-man { animation: hero-fade 1s ease-out both; }
  .hero-half { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-left { animation-delay: .3s; }
  .hero-right { animation-delay: .5s; }
}

/* Narrow screens: the old site swaps the hero for two stacked coloured bands */
.bands { display: none; }
.band { padding: 30px 16px 30px; text-align: center; }
.band-teal { background: var(--teal); }
.band-navy { background: var(--navy); }
.band .kicker { font-family: Lato, system-ui, sans-serif; font-weight: 700; font-size: 16px; }
.band-teal .kicker { color: var(--navy); }
.band-navy .kicker { color: var(--teal); }
.band h2 { font-weight: 900; text-transform: uppercase; color: #fff; font-size: 30px; line-height: 1.1; margin: 4px 0 18px; }

/* ── Sections ────────────────────────────────────────────── */
.section-title { font-weight: 400; font-size: 42px; line-height: 52px; }
.rule { width: 120px; height: 3px; background: var(--teal); margin: 8px 0 28px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.about { padding: 70px 0 50px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid p { padding-right: 70px; margin-bottom: 26px; }
.carousel { position: relative; }
.carousel img { display: block; width: 100%; }
.carousel img[hidden] { display: none; } /* author display:block would otherwise beat the UA [hidden] rule */
.carousel button { position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 36px; border: 0; background: #f0f0f0;
  color: #888; font-size: 22px; line-height: 1; cursor: pointer; }
.car-prev { left: -32px; }
.car-next { right: -32px; }

.strip { background: linear-gradient(100deg, var(--navy), var(--teal)); padding: 24px 16px; text-align: center; }

.benefits { padding: 90px 0 70px; }
.benefits-intro { font-family: Raleway, system-ui, sans-serif; font-size: 20px; line-height: 32px; text-align: center; max-width: 700px; margin: 0 auto 50px; }
.benefit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.badge { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal)); border: 5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.badge:hover { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.badge svg { width: 24px; height: 24px; fill: #fff; }
/* Hover "glint" - the old theme's .hover-glint, copied from its stylesheet: a translucent white band, scaled and rotated 60deg,
   parked above the circle and slid down across it when the whole box (not just the circle) is hovered. */
.badge { position: relative; overflow: hidden; }
.badge::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: rgba(255, 255, 255, 0.5); opacity: 0.5;
  transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 60deg) translate3d(0, -110%, 0); transition: transform 0.9s cubic-bezier(.2, 1, .22, 1); pointer-events: none; }
.box:hover .badge::after, .badge:hover::after { transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 60deg) translate3d(0, 180%, 0); }
@media (prefers-reduced-motion: reduce) { .badge::after { transition: none; } }
.benefit h3 { font-weight: 700; font-size: 16px; line-height: 26px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.benefit p { font-size: 13px; line-height: 20px; }

/* ── Footer ──────────────────────────────────────────────── */
.nzdf-footer { background: var(--navy); color: #bebebf; font-size: 14px; line-height: 24px; }
.nzdf-footer a { color: #fff; }
.nzdf-footer .ico { display: inline-block; vertical-align: -5px; margin-right: 8px; color: var(--teal); }
.nzdf-footer .ico svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 80px; padding-bottom: 50px; }
.footer-logo { display: block; width: 135px; margin-bottom: 18px; }
.nzdf-footer h6 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 26px; position: relative; }
.nzdf-footer h6::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 45px; height: 2px; background: var(--teal); }
.footer-base { border-top: 2px solid var(--teal); padding-top: 18px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.5px; }
.footer-base a { text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .hero { display: none; }
  .bands { display: block; }
  .menu-toggle { display: block; }
  .nzdf-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12); padding: 8px 16px 16px; }
  .nzdf-menu.open { display: flex; }
  .nzdf-menu > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .btn-conf { margin-top: 14px; text-align: center; }
  .topbar .container { justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .about-grid p { padding-right: 0; }
  .about .rule { margin-left: auto; margin-right: auto; }
  .car-prev { left: 0; }
  .car-next { right: 0; }
}
@media (max-width: 800px) {
  .benefit-cols, .footer-cols { grid-template-columns: 1fr; }
  .section-title { font-size: 32px; line-height: 40px; }
}

/* Inner (content) pages: title band, converted-page building blocks, forms, gallery, conference. */

.nzdf-menu > a:not(.btn).active { box-shadow: inset 0 -3px 0 var(--teal); padding: 27px 0 24px; color: var(--navy); }
.pagetitle { background: #f5f5f5; border-bottom: 1px solid #ececec; }
.pagetitle h1 { font-size: 16px; line-height: 1.2; font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; color: #666; padding: 31px 0 29px; }
.page-content { padding-top: 56px; padding-bottom: 70px; }
.block { margin-bottom: 36px; }
.block > *:last-child, .col > *:last-child { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: 50px; margin-bottom: 36px; align-items: start; }
.page-content h2.section-title { font-size: 36px; line-height: 46px; margin-bottom: 4px; }
.page-content h3 { font-size: 22px; line-height: 30px; font-weight: 500; margin: 0 0 10px; }
.page-content h3.small { font-size: 16px !important; line-height: 26px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.page-content h4 { font-family: Raleway, system-ui, sans-serif; color: var(--heading); font-weight: 500; margin-bottom: 10px; }
.page-content p, .page-content ul, .page-content ol { margin-bottom: 14px; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--navy); }
.page-content a:hover { color: var(--teal); }
.page-content a.btn { color: #fff; text-decoration: none; }
.page-content a.btn:hover { color: var(--teal); }
.page-content a.btn-navy:hover { color: var(--navy); }
.page-content strong { color: #555; }
.lead { font-family: Raleway, system-ui, sans-serif; font-size: 20px; line-height: 32px; }
.center { text-align: center; }
.rule.center { margin-left: auto; margin-right: auto; }
.page-content figure { margin: 0 0 16px; }
.page-content figcaption { font-size: 12px; color: #999; margin-top: 4px; }

.boxes { display: grid; gap: 40px; margin-bottom: 20px; }
.boxes-2 { grid-template-columns: repeat(2, 1fr); }
.boxes-3 { grid-template-columns: repeat(3, 1fr); }
.box { padding: 0 8px; }
.boxes-2 > .box + .box, .boxes-3 > .box + .box { border-left: 1px solid #d6d6d6; padding-left: 40px; margin-left: -20px; }
.box .badge { margin: 0 auto 14px; display: flex; }
.boxes-2 .box { text-align: center; }

.accordion details { border: 1px solid var(--line); border-radius: 3px; margin-bottom: 8px; }
.accordion summary { cursor: pointer; padding: 12px 40px 12px 16px; font-family: Raleway, system-ui, sans-serif; font-weight: 700; font-size: 14px; line-height: 24px; color: #333; list-style: none; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 16px; color: var(--teal); font-size: 20px; line-height: 24px; }
.accordion details[open] summary { color: var(--navy); }
.accordion details[open] summary::after { content: "\2212"; }
.accordion details > :not(summary) { padding: 0 16px; }
.accordion details > ul { padding-left: 38px; }
.accordion details > :last-child { margin-bottom: 14px; }

.notice { background: #f5f5f5; border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 3px; }
.notice.ok { border-color: #3a9a5b; background: #eef8f1; color: #24633b; }
.notice.err { border-color: #c0392b; background: #fdf0ee; color: #8a2a20; }

/* forms */
.form { max-width: 640px; margin: 0 auto 30px; }
.cols .form { margin: 0 0 30px; max-width: none; }
.form-title { font-size: 26px; line-height: 34px; font-weight: 400; margin-bottom: 18px; }
.form h3 { margin-top: 24px; }
.field { margin-bottom: 14px; border: 0; }
.field label, .field legend { display: block; font-size: 14px; color: #555; margin-bottom: 4px; padding: 0; }
.req { color: #c0392b; }
.field input[type=text], .field input[type=email], .field input[type=date], .field input[type=number], .field textarea {
  width: 100%; font: inherit; color: #444; padding: 10px 12px; border: 1px solid #ccc; border-radius: 3px; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.field [aria-invalid=true] { border-color: #c0392b; }
.field-err { color: #c0392b; font-size: 13px; margin: -8px 0 12px; }
.choice { display: block; font-size: 14px; margin-bottom: 6px; cursor: pointer; }
.choice input { margin-right: 8px; }
.choice[hidden] { display: none; } /* .choice sets display:block, which would beat the UA [hidden] rule */
.form-note { font-size: 13px; color: #888; }
/* big tap-friendly buttons that set a radio (the radio is visually hidden but still the control, so it works without script) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }   /* minmax(0,..): equal widths whatever the label length */
/* .tiles .tile, not .tile: the earlier rule ".field label { display: block; margin-bottom: 4px }" is more specific than a lone .tile
   and was winning, so the label stayed block and the span never filled the row height. */
.tiles .tile { position: relative; display: flex; margin: 0; cursor: pointer; }   /* flex so the span fills the grid row's height: equal heights */
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tiles .tile span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 10px 12px; font-size: 15px; font-weight: 600; color: #555; background: #fff; border: 2px solid #ccc; border-radius: 3px; }
.tile:hover span { border-color: var(--teal); }
.tile input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.tile input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.form .btn { border: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* gallery */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 36px; }
.chip { font: 700 11px/1 Raleway, system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #888; background: #fff; border: 1px solid #e4e4e4; padding: 10px 14px; cursor: pointer; border-radius: 2px; }
.chip:hover { color: var(--navy); }
.chip.active { background: #6f9bef; border-color: #6f9bef; color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.gallery-grid a { display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 3px; background: #eee; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.gallery-grid a[hidden] { display: none; } /* display:block above would otherwise beat the UA [hidden] rule */
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.lightbox { inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; /* explicit centring: the UA's auto-margin centring misbehaves with the global reset */ border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { display: block; max-width: 94vw; max-height: 90vh; }
.lightbox button { position: absolute; top: -34px; right: 0; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }

/* conference */
.countdown { display: flex; gap: 12px; margin: 10px 0 24px; }
.countdown div { min-width: 78px; text-align: center; padding: 10px 6px; border: 1px solid var(--teal); border-radius: 5px; color: var(--navy); }
.countdown b { display: block; font: 600 22px/1.2 Raleway, system-ui, sans-serif; }
.countdown span { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.map { width: 100%; height: 380px; border: 0; border-radius: 3px; }
.map-link { font-size: 13px; margin-top: 6px; }

@media (max-width: 1199px) {
  .nzdf-menu > a:not(.btn).active { box-shadow: none; padding: 12px 0; }
}
@media (max-width: 800px) {
  .cols, .boxes-2, .boxes-3 { grid-template-columns: 1fr; gap: 28px; }
  .boxes-2 > .box + .box, .boxes-3 > .box + .box { border-left: 0; padding-left: 8px; margin-left: 0; border-top: 1px solid #d6d6d6; padding-top: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .page-content { padding-top: 36px; }
  .page-content h2.section-title { font-size: 28px; line-height: 36px; }
}

/* Neutralise shared XBase rules (xbase.css / defaultV3.css load on every page and also hit these elements) */
h1, h2 { margin: 0; }                  /* xbase.css: h1, h2 { margin: .2em } */
a { text-decoration: underline; }      /* xbase.css: a { text-decoration: none } - the original site underlines content links */
.btn:hover, .topbar a:hover, .nzdf-menu a:hover, .logo:hover, .badge:hover, .footer-base a:hover { text-decoration: none; }

/* Top bar + header stay at the top of the window while scrolling (wrapper written by NzdfHeaderRenderer) */
.nzdf-sticky { position: sticky; top: 0; z-index: 100; }

/* Photo gallery (X.WebBase GalleryPage, /css/webbase-gallery.css loads before this file) - same look as the content pages */
.wbgal-head { background: #f5f5f5; border-bottom: 1px solid #ececec; }
.wbgal-head h1 { font-size: 16px; line-height: 1.2; font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase; color: #666; padding: 31px 0 29px; }
.wbgal-wrap { max-width: 1202px; }
.wbgal-body { padding-top: 56px; padding-bottom: 70px; }
.wbgal-chips { margin-bottom: 36px; }
.wbgal-chip { font-family: Raleway, system-ui, sans-serif; font-weight: 700; font-size: 11px; line-height: 1; color: #888; border-color: #e4e4e4; }
.wbgal-chip:hover { color: var(--navy); }
.wbgal-chip.active { background: #6f9bef; border-color: #6f9bef; color: #fff; }
.wbgal-grid { gap: 40px; }
@media (max-width: 800px) { .wbgal-grid { gap: 16px; } .wbgal-body { padding-top: 36px; } }

/* Main-menu dropdowns (NavBarItem sub-menu items). Items without sub-items stay plain links; one with sub-items is a .nzdf-dd wrapper. */
.nzdf-menu > .nzdf-dd { position: relative; align-self: stretch; display: flex; align-items: center; }
.nzdf-menu > .nzdf-dd > a { color: var(--text); text-decoration: none; }
.nzdf-menu > .nzdf-dd > a:hover, .nzdf-menu > .nzdf-dd > a.active { color: var(--navy); }
.nzdf-menu > .nzdf-dd > a.active { box-shadow: inset 0 -3px 0 var(--teal); padding: 27px 0 24px; }
.nzdf-sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 210px; background: #fff; border-top: 3px solid var(--teal);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); padding: 6px 0; z-index: 20; }
.nzdf-dd:hover .nzdf-sub, .nzdf-dd:focus-within .nzdf-sub { display: block; }
.nzdf-sub a { display: block; padding: 10px 18px; color: var(--text); text-decoration: none; white-space: nowrap; }
.nzdf-sub a:hover, .nzdf-sub a.active { color: var(--navy); background: #f5f5f5; }

@media (max-width: 1199px) {
  .nzdf-menu > .nzdf-dd { align-self: auto; display: block; border-bottom: 1px solid var(--line); }
  .nzdf-menu > .nzdf-dd > a { display: block; padding: 12px 0; }
  .nzdf-menu > .nzdf-dd > a.active { box-shadow: none; padding: 12px 0; }
  .nzdf-sub { display: block; position: static; box-shadow: none; border-top: 0; min-width: 0; padding: 0 0 8px 16px; }
  .nzdf-sub a { padding: 8px 0; white-space: normal; }
  .nzdf-sub a:hover, .nzdf-sub a.active { background: none; }
}

/* Find-a-driller directory (NzdfDirectory) - all class names start dir- (checked clear of xbase/defaultV3/ListAndDetailUI/drillers/webbase css). */
.dir-filters { display: grid; gap: 14px; margin-bottom: 28px; }
.dir-search, .dir-place { width: 100%; max-width: 520px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--heading); }
.dir-sectors { border: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.dir-sectors legend { font-family: Raleway, system-ui, sans-serif; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.dir-sector { cursor: pointer; font-size: 15px; }
.dir-sector input { margin-right: 4px; }
.dir-count { font-size: 14px; color: #999; }
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.dir-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 3px; padding: 20px 22px; background: #fff; }
.dir-card[hidden], .dir-none[hidden] { display: none; }
.dir-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 4px; }
.dir-loc { font-size: 14px; color: #999; margin-bottom: 10px; }
.dir-addr { font-size: 14px; color: #666; margin-bottom: 10px; }
.dir-loc + .dir-addr { margin-top: -6px; }
.dir-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.dir-tags li { font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 12px; background: #eef6f7; color: var(--navy); }
.dir-contact { list-style: none; font-size: 15px; }
.dir-contact li + li { margin-top: 8px; }
.dir-contact span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-right: 4px; }
.dir-contact em { color: #999; font-style: normal; font-size: 14px; }
.dir-contact a { color: var(--navy); }
.dir-none { margin-top: 20px; }
