/* ==========================================================================
   Мандал Голомт ХХК — Дизайн систем (custom, framework-гүй, орчин үеийн CSS)
   ========================================================================== */

:root {
  /* Brand colors */
  --c-navy: #28457A;
  --c-navy-dark: #1B3057;
  --c-navy-50: #EEF1F7;
  --c-navy-100: #DCE3F0;
  --c-red: #BD2722;
  --c-orange: #D1501E;
  --c-gradient: linear-gradient(120deg, var(--c-red) 0%, var(--c-orange) 100%);
  --c-ink: #1A2233;
  --c-body: #3D4658;
  --c-muted: #6B7488;
  --c-line: #E3E7EF;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F6F8FB;
  --c-white: #ffffff;

  /* Type */
  --f-body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-display: "Fraunces", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;

  /* Spacing / radius / shadow */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgba(26,34,51,.06), 0 1px 2px rgba(26,34,51,.08);
  --shadow-md: 0 12px 28px -8px rgba(26,34,51,.18);
  --shadow-lg: 0 24px 56px -16px rgba(26,34,51,.28);
  --container: 1240px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--c-navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 108px); }
.section-alt { background: var(--c-bg-alt); }
.section-navy { background: var(--c-navy); color: #C9D4E8; }
.section-navy h2, .section-navy h3 { color: #fff; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.article-grid { grid-template-columns: 1fr; }
@media (min-width: 860px) { .article-grid { grid-template-columns: 2fr 1fr; } }
.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--c-gradient); border-radius: 2px; }
.section-navy .eyebrow { color: #FFB199; }

h2.h-lg { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
p.lede { font-size: 1.15rem; color: var(--c-muted); max-width: 62ch; }
.section-navy p.lede { color: #C9D4E8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn-outline:hover { background: var(--c-navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  height: var(--header-h);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; font-size: 1.28rem; color: var(--c-navy); }
.brand-logo { height: 44px; width: auto; display: block; flex: none; }
.brand-logo-footer { height: 40px; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; align-items: center; gap: 2px; }
.nav-desktop a {
  display: inline-block; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--c-navy);
  transition: background .15s ease, color .15s ease;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { background: var(--c-navy-50); color: var(--c-red); }
.header-cta { display: none; }
@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
}

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--c-line);
  background: #fff;
}
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--c-navy); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--c-line); font-weight: 700; font-size: .82rem; color: var(--c-navy); letter-spacing: .03em;
  transition: background .15s ease, border-color .15s ease;
}
.lang-switch:hover { background: var(--c-navy-50); border-color: var(--c-navy); }
.lang-switch svg { width: 16px; height: 16px; stroke: currentColor; flex: none; }
.nav-mobile .lang-switch { display: inline-flex; width: auto; margin-top: 14px; border-color: var(--c-line); }

.nav-mobile {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 99;
  padding: 20px 24px 40px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-mobile a { display: block; padding: 14px 4px; font-size: 1.15rem; font-weight: 600; color: var(--c-navy); border-bottom: 1px solid var(--c-line); }
.nav-mobile .btn { margin-top: 20px; width: 100%; }

/* ---------- Hero (cinematic full-bleed) ---------- */
.hero-cine {
  position: relative; display: flex; align-items: center; color: #fff;
  min-height: clamp(540px, 78vh, 760px);
  margin-bottom: clamp(70px, 9vw, 108px);
}
.hero-cine-bg { position: absolute; inset: 0; z-index: 0; }
.hero-cine-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-cine-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(12,21,42,.97) 0%, rgba(14,25,49,.9) 32%, rgba(17,29,56,.6) 56%, rgba(19,32,61,.32) 76%, rgba(23,38,71,.58) 100%),
    linear-gradient(0deg, rgba(8,14,28,.55) 0%, transparent 34%);
}
.hero-cine::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 40%, transparent 65%);
  -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 40%, transparent 65%);
}
.hero-cine .container { position: relative; z-index: 2; padding-block: clamp(64px, 10vw, 96px) clamp(96px, 12vw, 132px); }
.hero-cine-content { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 7px 18px 7px 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .01em;
  margin-bottom: 24px; box-shadow: 0 8px 24px -12px rgba(0,0,0,.4);
}
.hero-badge img { width: 26px; height: 26px; border-radius: 50%; }
.hero-cine h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: .42em; max-width: 14ch; }
.hero-cine h1 em { font-style: normal; background: var(--c-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cine p.lede { color: #D3DBEC; max-width: 50ch; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-actions .btn-primary { display: inline-flex; align-items: center; gap: 8px; }
.hero-actions .btn-primary .arrow { width: 16px; height: 16px; transition: transform .18s ease; }
.hero-actions .btn-primary:hover .arrow { transform: translateX(3px); }

/* Floating stat strip, overlapping the hero's bottom edge */
.hero-stat-float {
  position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  width: min(calc(100% - 40px), 1100px);
  background: linear-gradient(120deg, #B23A1A 0%, var(--c-orange) 55%, #E17A3E 100%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 6px;
}
.hero-stat-float .stat-grid { gap: 0; }
.hero-stat-float .stat { background: transparent; border: none; border-radius: 16px; padding: 20px 24px; position: relative; }
.hero-stat-float .stat:hover { background: rgba(255,255,255,.12); transform: none; }
@media (min-width: 720px) {
  .hero-stat-float .stat:not(:nth-child(4n))::after {
    content: ""; position: absolute; right: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,.14);
  }
}
@media (max-width: 719px) {
  .hero-cine .container { padding-bottom: clamp(190px, 48vw, 230px); }
  .hero-stat-float { transform: translate(-50%, 34%); }
  .hero-stat-float .stat { padding: 16px 16px; }
  .hero-stat-float .stat:nth-child(odd)::after {
    content: ""; position: absolute; right: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,.14);
  }
  .hero-stat-float .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .hero-cine { margin-bottom: clamp(90px, 20vw, 120px); }
}

/* ---------- Stat / counters (also reused on About page over a navy section) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4,1fr); gap: 18px; } }
.stat {
  text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding: 20px 22px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.stat:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); transform: translateY(-2px); }
.stat .num { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; font-weight: 700; line-height: 1; }
.stat .num .suffix { background: var(--c-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: #A9B8D6; font-size: .86rem; margin-top: 8px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card .icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--c-navy-50);
}
.card .icon-wrap img { width: 30px; height: 30px; }
.card h3 { font-size: 1.24rem; margin-bottom: .4em; }
.card p { color: var(--c-muted); font-size: .96rem; margin-bottom: 1.1em; }
.card .link { font-weight: 700; font-size: .9rem; color: var(--c-red); display: inline-flex; align-items: center; gap: 6px; }
.card .link .arrow { transition: transform .15s ease; }
.card:hover .link .arrow { transform: translateX(4px); }

.division-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; min-height: 320px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md); transition: box-shadow .25s ease, transform .25s ease; }
.division-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.division-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.division-card:hover img.bg { transform: scale(1.07); }
.division-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,20,35,.92) 10%, rgba(15,20,35,.25) 65%, rgba(15,20,35,.05) 100%); z-index: 1; }
.division-card .body { position: relative; z-index: 2; padding: 28px; }
.division-card .tag { display: inline-block; background: var(--c-gradient); font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: .04em; }
.division-card h3 { color: #fff; margin-bottom: .3em; }
.division-card p { color: #DCE3F0; font-size: .92rem; margin-bottom: 14px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--c-line); }
@media (min-width: 860px) { .timeline::before { left: 50%; transform: translateX(-1px); } }
.timeline-item { position: relative; padding-left: 52px; margin-bottom: 34px; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.timeline-item.is-visible { opacity: 1; transform: translateY(0); }
.timeline-item::before {
  content: ""; position: absolute; left: 10px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-gradient); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-navy-100);
}
@media (min-width: 860px) {
  .timeline-item { width: 46%; padding-left: 0; padding-right: 40px; text-align: right; }
  .timeline-item::before { left: auto; right: -27px; }
  .timeline-item:nth-child(even) { margin-left: 54%; padding-right: 0; padding-left: 40px; text-align: left; }
  .timeline-item:nth-child(even)::before { right: auto; left: -27px; }
}
.timeline-year { font-family: var(--f-display); font-weight: 700; color: var(--c-red); font-size: 1.3rem; }
.timeline-item h4 { margin: 4px 0 6px; font-size: 1.05rem; }
.timeline-item p { color: var(--c-muted); font-size: .92rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy-dark); color: #B9C4DC; padding-block: 64px 28px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr .8fr .8fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #B9C4DC; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; font-size: .94rem; }
.footer-brand p { color: #93A2C2; font-size: .92rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; color: #7F8FB3; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .94rem; }
.contact-line svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: #FFB199; }

/* ---------- Breadcrumb / page header ---------- */
.page-hero {
  position: relative; overflow: hidden; padding-block: clamp(52px, 8vw, 84px); color: #fff;
  background: linear-gradient(150deg, #17284A 0%, #223C6C 55%, #2C4E8C 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .4; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,0) 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,0) 85%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .84rem; color: #A9B8D6; margin-bottom: 12px; }
.breadcrumb a { color: #fff; font-weight: 600; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .3em; }
.page-hero p.lede { color: #D3DBEC; margin-bottom: 0; }

/* ---------- Article: share + pagination ---------- */
.article-share { display: flex; align-items: center; gap: 14px; margin: 40px 0 0; flex-wrap: wrap; }
.article-share .label { font-weight: 700; color: var(--c-ink); font-size: .92rem; }
.share-row { display: flex; gap: 10px; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-navy-50); color: var(--c-navy); border: none; cursor: pointer; padding: 0;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover { background: var(--c-gradient); color: #fff; transform: translateY(-2px); }
.share-btn.is-copied { background: var(--c-orange); color: #fff; }

.article-pagination {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line);
}
.article-pagination .pager-link {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--c-line); min-width: 0; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.article-pagination .pager-link:hover { border-color: var(--c-orange); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.article-pagination .pager-link .dir {
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-orange);
  display: flex; align-items: center; gap: 6px;
}
.article-pagination .pager-link .dir svg { width: 14px; height: 14px; flex: none; }
.article-pagination .pager-link .ptitle {
  font-size: .92rem; color: var(--c-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-pagination .pager-link.next { text-align: right; }
.article-pagination .pager-link.next .dir { justify-content: flex-end; }
.article-pagination .pager-link-empty { border: none; }
.article-pagination .pager-all { align-self: center; white-space: nowrap; }
@media (max-width: 640px) {
  .article-pagination { grid-template-columns: 1fr; }
  .article-pagination .pager-all { order: -1; justify-self: center; }
  .article-pagination .pager-link.next { text-align: left; }
  .article-pagination .pager-link.next .dir { justify-content: flex-start; }
  .article-pagination .pager-link-empty { display: none; }
}

/* ---------- Utility ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--c-navy-50); color: var(--c-navy); font-weight: 700; font-size: .8rem; padding: 7px 14px; border-radius: 999px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.divider { height: 1px; background: var(--c-line); border: none; margin: 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--c-line); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--c-line); }
table.data th { background: var(--c-navy-50); color: var(--c-navy); font-family: var(--f-body); text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; }
table.data tr:last-child td { border-bottom: none; }

.license-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 720px) { .license-grid { grid-template-columns: repeat(4,1fr); } }
.license-thumb { border: 1px solid var(--c-line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.license-thumb img { aspect-ratio: 3/4; object-fit: cover; }
.license-thumb figcaption { padding: 10px 12px; font-size: .78rem; color: var(--c-muted); }

.news-card img { border-radius: var(--radius-md); aspect-ratio: 16/10; object-fit: cover; margin-bottom: 18px; }
.news-meta { font-size: .78rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

.job-card { border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: 26px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* ---------- Careers: job list + detail (master-detail) ---------- */
.careers-hint { color: var(--c-muted); margin-top: -8px; }

.careers-layout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 28px; align-items: start; }

.careers-list { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 96px; }
.careers-list-item {
  display: block; width: 100%; text-align: left; background: #fff; cursor: pointer;
  border: 1.5px solid var(--c-line); border-radius: var(--radius-md); padding: 15px 18px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.careers-list-item:hover { border-color: var(--c-orange); box-shadow: var(--shadow-sm); }
.careers-list-item.is-active { border-color: var(--c-orange); background: var(--c-navy-50); box-shadow: var(--shadow-sm); }
.careers-list-item .jli-title { display: block; font-weight: 700; color: var(--c-ink); font-size: 1rem; margin-top: 8px; }
.careers-list-item .jli-meta { display: block; font-size: .8rem; color: var(--c-muted); margin-top: 6px; }

.careers-detail-panel {
  border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: clamp(24px, 4vw, 38px);
  background: #fff; box-shadow: var(--shadow-sm);
}
.careers-detail-panel[hidden] { display: none; }
.careers-detail-panel h2 { margin-top: 14px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.careers-detail-panel .cdp-meta { font-size: .88rem; color: var(--c-muted); margin: 10px 0 0; }
.careers-detail-panel .job-desc { margin-top: 22px; color: var(--c-ink); line-height: 1.75; }
.careers-detail-panel .job-desc p { margin-bottom: 1em; }
.careers-detail-panel .btn { margin-top: 26px; }

@media (max-width: 860px) {
  .careers-layout { grid-template-columns: 1fr; }
  .careers-list { position: static; }
}

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-weight: 700; font-size: .88rem; color: var(--c-navy); }
.form-field input, .form-field textarea, .form-field select {
  border: 1.5px solid var(--c-line); border-radius: 12px; padding: 13px 16px; font: inherit; color: var(--c-ink);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--c-orange); box-shadow: 0 0 0 4px rgba(209,80,30,.12); outline: none; }
.form-note { font-size: .8rem; color: var(--c-muted); margin-top: -6px; }

.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--c-line); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.cta-band { background: var(--c-gradient); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 60px); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--c-navy); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }
