/* ANC website — design tokens */
:root {
  --blue: #1a3fae;
  --blue-700: #132f86;
  --blue-900: #0b1c52;
  --gold: #e8a913;
  --gold-600: #c98f05;
  --ink: #142037;
  --ink-2: #44516b;
  --line: #dfe4ee;
  --paper: #f4f6fb;
  --white: #ffffff;
  --ok: #17794a;
  --err: #b42318;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 28, 82, .06), 0 8px 24px rgba(11, 28, 82, .07);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 860px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* icons (CSS masks, CSP-safe) */
.ico, .remit__ico { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -.15em; }
.ico-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.ico-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.2L20 7H4zm-8-3.4V17h16V8.8l-8 5.2z'/%3E%3C/svg%3E"); }
.ico-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 0 1 6.3 12.9l5.4 5.4-1.4 1.4-5.4-5.4A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E"); }
.ico-tower { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 9a2 2 0 0 1 1 3.7L17 22h-2.2l-.9-2h-3.8l-.9 2H7l4-9.3A2 2 0 0 1 12 9zm1.1 9L12 15.4 10.9 18zM6.3 4.9l1.4 1.4a6 6 0 0 0 0 8.5l-1.4 1.4a8 8 0 0 1 0-11.3zm11.4 0a8 8 0 0 1 0 11.3l-1.4-1.4a6 6 0 0 0 0-8.5zM3.5 2.1l1.4 1.4a10 10 0 0 0 0 14.1l-1.4 1.4a12 12 0 0 1 0-16.9zm17 0a12 12 0 0 1 0 16.9l-1.4-1.4a10 10 0 0 0 0-14.1z'/%3E%3C/svg%3E"); }
.ico-wave { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12c2-4 4-4 5 0s3 4 5 0 3-4 5 0 3 4 5 0' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ico-tv { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v9h16V8zM8 2l4 3 4-3 1 1.4L13.7 6h-3.4L7 3.4zM7 21h10v1H7z'/%3E%3C/svg%3E"); }
.ico-globe { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm2.9 11H9.1c.2 3 1.4 6 2.9 7 1.5-1 2.7-4 2.9-7zm5 0h-3c-.1 2.4-.8 4.8-1.8 6.4A8 8 0 0 0 19.9 13zM7.1 13h-3a8 8 0 0 0 4.8 6.4C7.9 17.8 7.2 15.4 7.1 13zM8.9 4.6A8 8 0 0 0 4.1 11h3c.1-2.4.8-4.8 1.8-6.4zM12 4c-1.5 1-2.7 4-2.9 7h5.8c-.2-3-1.4-6-2.9-7zm3.1.6c1 1.6 1.7 4 1.8 6.4h3a8 8 0 0 0-4.8-6.4z'/%3E%3C/svg%3E"); }

/* top bar */
.topbar { background: var(--blue-900); color: #cdd6f2; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.topbar__item { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a.topbar__item:hover { color: var(--white); }
.topbar__spacer { flex: 1; }
.topbar__cta { color: var(--gold) !important; font-weight: 600; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand img { width: min(520px, 62vw); height: auto; }
.header-search { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.header-search input { border: 0; background: transparent; padding: 9px 14px; width: 210px; font: inherit; font-size: .9rem; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search:focus-within { outline: 3px solid var(--gold); outline-offset: 1px; }
.header-search button { border: 0; background: var(--blue); color: var(--white); padding: 0 14px; cursor: pointer; font-size: 1rem; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { top: -7px; left: 0; right: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* navigation */
.primary-nav { background: var(--blue); }
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__link { display: block; padding: 14px 16px; color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer; }
.depth-0 > .menu__link:hover, .depth-0 > .menu__link[aria-current="page"], .depth-0:focus-within > .menu__link { background: var(--blue-700); color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); }
.sub-toggle { background: none; border: 0; color: var(--white); cursor: pointer; padding: 0 8px 0 0; margin-left: -10px; font-size: .8rem; height: 44px; }
.submenu { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; border-top: 3px solid var(--gold); }
.submenu .submenu { top: -11px; left: 100%; border-radius: var(--radius-sm); }
.has-sub:hover > .submenu, .has-sub.is-open > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu .menu__item { width: 100%; justify-content: space-between; }
.submenu .menu__link { color: var(--ink); font-weight: 500; padding: 9px 12px; border-radius: 6px; flex: 1; }
.submenu .menu__link:hover, .submenu .menu__item:focus-within > .menu__link { background: var(--paper); color: var(--blue); }
.submenu .sub-toggle { color: var(--ink-2); margin: 0; transform: rotate(-90deg); }
.menu__link--label { cursor: default; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--ghost { border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--blue-900); }
.btn--gold:hover { background: var(--gold-600); color: var(--blue-900); }
.btn--small { padding: 6px 14px; font-size: .85rem; background: var(--paper); color: var(--blue); border-color: var(--line); }
.btn--small:hover { background: var(--blue); color: var(--white); }
.btn--block { width: 100%; }
.chip { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); background: #e8edfb; padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.chip--lg { font-size: .85rem; padding: 7px 16px; text-transform: none; letter-spacing: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.chip--lg.is-active, .chip--lg:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.chip--light { background: rgba(255, 255, 255, .15); color: var(--white); }
.badge { display: inline-block; font-size: .68rem; font-weight: 800; color: var(--white); background: #c0392b; padding: 2px 6px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.eyebrow { color: var(--gold-600); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin: 0 0 12px; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* hero slider */
.hero { background: linear-gradient(180deg, var(--paper), var(--white)); padding: 26px 0 8px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); aspect-ratio: 1216 / 408; }
.slider__track { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11, 28, 82, .72); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.slider__btn:hover { background: var(--blue); }
.slider__btn--prev { left: 14px; }
.slider__btn--next { right: 14px; }
.slider__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 2; flex-wrap: wrap; padding: 0 60px; }
.slider__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(11, 28, 82, .3); cursor: pointer; }
.slider__dots button[aria-selected="true"] { background: var(--gold); width: 24px; border-radius: 999px; }
.no-js .slide { position: static; opacity: 1; }

/* intro */
.intro { padding: 56px 0; }
.intro__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.intro__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--blue-900); }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.intro__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.remit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.remit li { background: var(--paper); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); }
.remit strong { color: var(--blue-900); }
.remit li > span:last-child { color: var(--ink-2); font-size: .9rem; }
.remit__ico { width: 34px; height: 34px; color: var(--blue); margin-bottom: 8px; }

/* services tiles */
.services { padding: 56px 0; background: var(--blue-900); color: var(--white); }
.services .section-title { color: var(--white); }
.section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--blue-900); }
.section-title--sm { font-size: 1.3rem; margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #d6ddf5; text-decoration: none; transition: background .15s, transform .15s, border-color .15s; }
.tile strong { color: var(--white); font-size: 1.1rem; }
.tile__k { color: var(--gold); font-weight: 800; font-size: .85rem; letter-spacing: .1em; }
.tile:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); transform: translateY(-2px); color: var(--white); }

/* news */
.news { padding: 64px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-grid > .card--large { grid-column: span 2; grid-row: span 2; }
.news-grid--list { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.news-grid--three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--paper); overflow: hidden; }
.card--large .card__media { aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 2rem; letter-spacing: .2em; color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, var(--blue), var(--blue-900)); }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.card__title { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.card--large .card__title { font-size: 1.45rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--blue); }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* split panels */
.split { padding: 0 0 64px; }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.list a:hover { color: var(--blue); }
.list time, .list .muted { white-space: nowrap; font-size: .85rem; color: var(--ink-2); }
.list--docs li { flex-direction: column; gap: 2px; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--blue) 0%, var(--blue-900) 100%); color: var(--white); padding: 44px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #cdd6f2; }

/* inner pages */
.page-hero { background: linear-gradient(110deg, var(--blue-900), var(--blue)); color: var(--white); padding: 40px 0 44px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(232, 169, 19, .18); }
.page-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 6px 0 0; max-width: 900px; }
.page-hero--post h1 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.crumbs { font-size: .85rem; color: #b7c3ea; }
.crumbs a { color: #dfe6fb; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.lead--light { color: #d6ddf5; margin: 10px 0 0; max-width: 760px; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 0; color: #d6ddf5; font-size: .9rem; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-h { font-size: 1.05rem; color: var(--blue-900); margin-bottom: 10px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side-links li:last-child a { border: 0; }
.side-links a:hover { color: var(--blue); }

/* prose (imported content) */
.prose { font-size: 1.02rem; overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1.05em; }
.prose h2, .prose h3, .prose h4 { color: var(--blue-900); margin-top: 1.6em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; height: auto; }
.prose a { word-break: break-word; }
.prose a[href$=".pdf"]::before { content: "PDF"; font-size: .65rem; font-weight: 800; color: var(--white); background: #c0392b; padding: 2px 5px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100% !important; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.prose tr:first-child td { background: var(--paper); font-weight: 600; }
.prose td p { margin: 0 0 .3em; }
.prose blockquote { border-left: 4px solid var(--gold); margin: 1em 0; padding: .4em 1.2em; background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose--sm { font-size: .92rem; }
.child-pages { list-style: none; padding: 0; display: grid; gap: 8px; }
.post { padding-top: 32px; padding-bottom: 48px; }
.post__figure { margin: 0 0 28px; }
.post__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; color: var(--ink); font-weight: 600; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.post-nav a:hover { border-color: var(--blue); color: var(--blue); }
.post-nav small { color: var(--ink-2); font-weight: 500; }
.post-nav__next { text-align: right; grid-column: 2; }
.related { background: var(--paper); padding: 48px 0 56px; }
.related .section-title { margin-bottom: 20px; }

/* filters, pagination */
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 28px 0 20px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 36px 0 64px; }
.pagination a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.pagination a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* documents */
.doc-filter { display: flex; gap: 10px; flex-wrap: wrap; padding: 28px 0 18px; }
.doc-filter input, .doc-filter select, .big-search input { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.doc-filter input { flex: 1; min-width: 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.doc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc-table th { text-align: left; background: var(--paper); padding: 12px 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.doc-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.doc-table td:nth-child(3), .doc-table td:nth-child(4) { white-space: nowrap; }

/* search */
.big-search { display: flex; gap: 10px; margin-top: 18px; max-width: 640px; }
.big-search input { flex: 1; }
.search-results { padding-top: 32px; padding-bottom: 64px; }
.search-results .section-title { margin: 24px 0 8px; }

/* forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
.form { display: flex; flex-direction: column; gap: 4px; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(26, 63, 174, .25); border-color: var(--blue); }
.field--error input, .field--error textarea, .field--error select { border-color: var(--err); }
.field__error { color: var(--err); font-size: .85rem; margin: 0; }
.req { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.contact-card address { font-style: normal; margin-bottom: 12px; }
.messages { padding-top: 16px; }
.msg { padding: 12px 16px; border-radius: 10px; margin: 0 0 8px; font-weight: 500; }
.msg--success { background: #e7f6ee; color: var(--ok); border: 1px solid #b7e4cb; }
.msg--error { background: #fdecea; color: var(--err); border: 1px solid #f5c2bd; }
.error-page { padding: 72px 20px 96px; }

/* footer */
.site-footer { background: #08143d; color: #b7c3ea; padding: 56px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { width: 56px; height: 56px; margin-bottom: 12px; }
.footer-name { color: var(--white); font-weight: 700; margin: 0 0 4px; }
.site-footer .muted { color: #8f9cc8; }
.footer-h { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer address { font-style: normal; }
.site-footer a { color: #dfe6fb; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 20px; padding-bottom: 24px; font-size: .82rem; color: #8f9cc8; }

/* responsive */
@media (max-width: 1024px) {
  .header-search input { width: 150px; }
  .news-grid, .news-grid--list { grid-template-columns: repeat(2, 1fr); }
  .news-grid > .card--large { grid-column: span 2; grid-row: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .content-layout, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-search { display: none; }
  .primary-nav { display: none; max-height: calc(100vh - 80px); overflow-y: auto; }
  .primary-nav.is-open { display: block; }
  .menu { flex-direction: column; padding: 8px 0 14px; }
  .menu__item { flex-wrap: wrap; }
  .menu__link { flex: 1; }
  .sub-toggle { width: 48px; margin: 0; padding: 0; font-size: 1rem; }
  .submenu, .submenu .submenu { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(0, 0, 0, .15); border-radius: 8px; padding: 4px 4px 4px 14px; min-width: 0; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: none; }
  .has-sub.is-open > .submenu { display: block; }
  .submenu .menu__link { color: var(--white); }
  .submenu .menu__link:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
  .submenu .sub-toggle { color: var(--white); transform: none; }
  .intro__grid, .split__grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar__item:not(.topbar__cta) { display: none; }
  .topbar__spacer { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 78vw; }
  .news-grid, .news-grid--list, .news-grid--three, .tiles, .remit, .form-row--2, .footer-grid { grid-template-columns: 1fr; }
  .news-grid > .card--large { grid-column: auto; }
  .card--large .card__title { font-size: 1.2rem; }
  .slider__btn { width: 34px; height: 34px; font-size: 1.2rem; }
  .slider__dots { display: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { grid-column: auto; text-align: left; }
  .big-search { flex-direction: column; }
}

/* table cells: never split words mid-word */
.prose td, .prose th { overflow-wrap: normal; word-break: normal; hyphens: manual; min-width: 7ch; }
@media (max-width: 600px) { .slider__btn { display: none; } }
.nav-search { display: none; }
@media (max-width: 860px) {
  .nav-search { display: flex; gap: 8px; padding: 0 0 18px; }
  .nav-search input { flex: 1; font: inherit; padding: 10px 14px; border-radius: 10px; border: 0; }
}

/* =====================================================================
   v2 — classic ANC look: white header, tais band, News & Updates list
   ===================================================================== */
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/roboto-condensed-latin-400-normal.1c36c62fd135.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("../fonts/roboto-condensed-latin-700-normal.d7fa0ca17dfd.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-500-normal.8af401f8e32b.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-600-normal.3ab06adc1658.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.e1b3b5908c9c.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.de69cf9e514d.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --font: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-cond: "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Roboto Condensed", "Arial Narrow", sans-serif;
  --link-blue: #1a6fc4;
  --anc-red: #e74c3c; --anc-yellow: #f5c518; --anc-sky: #3a9ad9;
}
body { font-family: var(--font); }
h1, h2, h3, .section-title, .intro__title, .page-hero h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: .005em; }

/* --- Top bar (light, like the original site) --- */
.topbar { background: #fff; color: #6b6b6b; border-bottom: 1px solid #e6e6e6; font-family: var(--font-cond); font-size: .98rem; }
.topbar__inner { min-height: 52px; gap: 26px; }
.topbar__item { color: #6b6b6b; }
.topbar a.topbar__item:hover { color: var(--blue); }
.topbar .ico { color: #7a7a7a; }
.topbar__search { display: flex; align-items: center; border: 1px solid #e3e3e3; border-radius: 999px; overflow: hidden; background: #fafafa; }
.topbar__search input { border: 0; background: transparent; padding: 6px 12px; width: 150px; font: inherit; font-size: .9rem; color: var(--ink); }
.topbar__search input:focus { outline: none; }
.topbar__search:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.topbar__search button { border: 0; background: transparent; color: #6b6b6b; padding: 0 12px; cursor: pointer; }
.topbar__social { color: #6b6b6b; font-size: 1.15rem; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background .2s, color .2s; }
.topbar__social:hover { background: var(--blue); color: #fff; }
.ico-fax { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.2L20 7H4zm-8-3.4V17h16V8.8l-8 5.2z'/%3E%3C/svg%3E"); }
.ico-facebook { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8V6.2c0-.8.2-1.2 1.4-1.2H17V2h-2.6C11.3 2 10.3 3.5 10.3 6v2H8v3h2.3v11H14V11h2.6l.4-3z'/%3E%3C/svg%3E"); }
.ico-at { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 5 18.7l-1-1.7A8 8 0 1 1 20 12v1.2a1.8 1.8 0 0 1-3.6 0V7.5h-2v.9A5 5 0 1 0 15 16a3.8 3.8 0 0 0 7-2.8V12A10 10 0 0 0 12 2zm0 13a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E"); }

/* --- Header: logo left, menu right --- */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 0; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.site-header__inner { padding-top: 14px; padding-bottom: 14px; gap: 24px; align-items: center; flex-wrap: wrap; }
.brand img { width: clamp(300px, 34vw, 470px); }
.primary-nav { display: block; background: transparent; margin-left: auto; }
.menu { gap: 4px 6px; justify-content: flex-end; }
.depth-0 > .menu__link, .depth-0 > .menu__link--label {
  color: #141414; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 1.06rem;
  letter-spacing: .01em; padding: 12px 10px 10px; position: relative; background: none;
}
.depth-0 > .menu__link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.depth-0 > .menu__link:hover, .depth-0:focus-within > .menu__link, .depth-0 > .menu__link[aria-current="page"] { background: none; color: var(--blue); box-shadow: none; }
.depth-0 > .menu__link:hover::after, .depth-0 > .menu__link[aria-current="page"]::after, .depth-0.is-current > .menu__link::after { transform: scaleX(1); }
.depth-0 > .sub-toggle { color: #141414; margin-left: -8px; padding: 0 6px; font-size: .75rem; height: 40px; }
.depth-0.has-sub > .sub-toggle span { display: inline-block; transition: transform .2s; }
.depth-0.has-sub:hover > .sub-toggle span, .depth-0.has-sub.is-open > .sub-toggle span { transform: rotate(180deg); }
.depth-0 > .submenu { top: calc(100% + 6px); border-top: 3px solid var(--blue); border-radius: 0 0 10px 10px; }
.submenu .menu__link { font-family: var(--font-cond); font-size: 1rem; }
.header-search, .site-header__inner > .header-search { display: none; }

/* --- Tais band with animated network --- */
.tais-band { position: relative; height: 40px; background: #fff url("../img/tais.259c876c4510.webp") repeat-x left bottom / auto 22px; border-top: 1px solid #ececec; overflow: hidden; }
.tais-band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: linear-gradient(90deg, transparent, rgba(26,63,174,.25), transparent); }
.tais-band__net { position: absolute; inset: 0 0 18px 0; width: 100%; height: calc(100% - 18px); }
.tais-band { animation: tais-slide 60s linear infinite; }
@keyframes tais-slide { from { background-position: 0 bottom; } to { background-position: -1100px bottom; } }

/* --- Preloader: three-colour ring --- */
.preloader { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: #f2f2f2; transition: opacity .4s ease, visibility .4s; }
.js .preloader { display: grid; animation: preloader-failsafe .4s ease 4s forwards; }
.preloader.is-done { opacity: 0; visibility: hidden; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader__ring { animation: ring-spin 1.4s linear infinite; }
.arc { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 62 189.3; }
.arc--red { stroke: var(--anc-red); stroke-dashoffset: 0; }
.arc--gold { stroke: var(--anc-yellow); stroke-dashoffset: -84; }
.arc--blue { stroke: var(--anc-sky); stroke-dashoffset: -168; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* --- News & Updates list (original site style) --- */
.news-updates { padding: 56px 0 64px; background: #f5f5f5; }
.news-updates__title { font-family: var(--font-display); color: var(--blue-700); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.news-updates .section-head { margin-bottom: 14px; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; padding: 10px 0 24px; border-top: 4px solid var(--link-blue); }
.news-item__thumb { display: block; background: #fff; padding: 5px; border: 1px solid #dcdcdc; box-shadow: 0 14px 12px -12px rgba(0,0,0,.45); align-self: start; transition: transform .3s ease, box-shadow .3s ease; }
.news-item__thumb img, .news-item__placeholder { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; display: block; }
.news-item__placeholder { background: var(--blue) url("../img/icon-192.7133a94eab1b.png") center / 40% no-repeat; }
.news-item:hover .news-item__thumb { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 20px 16px -12px rgba(0,0,0,.45); }
.news-item__title { font-family: var(--font); font-weight: 400; font-size: 1.35rem; margin: 2px 0 10px; line-height: 1.3; }
.news-item__title a { color: var(--link-blue); text-decoration: none; }
.news-item__title a:hover { text-decoration: underline; }
.news-item__date { color: #a3a3a3; margin: 0 0 12px; font-size: .95rem; }
.news-item__excerpt { margin: 0; font-size: 1.12rem; line-height: 1.75; color: #222; }
.news-item__more { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.2rem; color: var(--link-blue); text-decoration: none; border-bottom: 1px solid currentColor; padding: 0 3px; white-space: nowrap; }
.news-item__more:hover { color: var(--blue-900); }
.news-list + .pagination { padding-top: 24px; }

/* --- Scroll reveal animations --- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .news-item.reveal .news-item__thumb { transform: translateX(-18px); opacity: 0; transition: transform .8s ease .12s, opacity .8s ease .12s; }
.js .news-item.reveal.is-visible .news-item__thumb { transform: none; opacity: 1; }
.js .reveal-group > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: .12s; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-group > *, .js .news-item.reveal .news-item__thumb { opacity: 1; transform: none; }
  .tais-band { animation: none; }
  .preloader__ring { animation: none; }
}

/* --- Responsive for the new header --- */
@media (max-width: 1180px) {
  .primary-nav { width: 100%; margin-left: 0; }
  .menu { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .topbar__item:not(:first-child) { display: none; }
  .topbar__search input { width: 110px; }
  .site-header__inner { flex-wrap: nowrap; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue-900); padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .primary-nav.is-open { display: block; }
  .site-header { position: sticky; }
  .site-header__inner { position: relative; }
  .depth-0 > .menu__link, .depth-0 > .menu__link--label { color: #fff; }
  .depth-0 > .sub-toggle { color: #fff; }
  .depth-0 > .menu__link::after { display: none; }
  .brand img { width: min(72vw, 360px); }
  .news-item { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .news-item__title { font-size: 1.08rem; }
  .news-item__excerpt { font-size: 1rem; }
}
@media (max-width: 600px) {
  .topbar__inner { gap: 12px; }
  .news-item__excerpt { display: none; }
}

/* v2 tweaks: wider header row so logo + menu fit on one line */
.topbar .wrap, .site-header .wrap { max-width: 1480px; }
.brand img { width: clamp(280px, 25vw, 430px); }
.depth-0 > .menu__link, .depth-0 > .menu__link--label { font-size: 1.02rem; padding-left: 9px; padding-right: 9px; }
.preloader__ring { width: 120px; height: 120px; }
/* the header scrolls away with the page; only the slim menu bar is not needed sticky */
.site-header { position: relative; }
/* dropdowns must sit above the tais band */
.site-header__inner { position: relative; z-index: 5; }
.tais-band { z-index: 1; }
.submenu { z-index: 60; }
@media (max-width: 860px) { .topbar .topbar__item:first-child { display: inline-flex; } }

/* Events pages: photo digest grid (images from ANC's Flickr albums) */
.content-layout--wide { grid-template-columns: minmax(0, 1fr); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; margin: 28px 0 10px; }
.event-card { margin: 0; display: flex; flex-direction: column; }
.event-card__photo { background: #000; aspect-ratio: 450 / 330; display: grid; place-items: center; overflow: hidden; border-radius: 2px; box-shadow: 0 10px 18px -12px rgba(0,0,0,.5); }
.event-card__photo a { display: block; width: 100%; height: 100%; }
.event-card__photo img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; transition: transform .5s ease; }
.event-card:hover .event-card__photo img { transform: scale(1.04); }
.event-card__text { margin-top: 14px; font-size: 1.02rem; line-height: 1.75; text-align: justify; hyphens: auto; color: #222; }
.event-card__text p { margin: 0 0 .5em; }
.event-pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 36px 0 10px; }
.event-pager a { min-width: 42px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.event-pager a[aria-current="page"], .event-pager a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 1024px) { .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .event-grid { grid-template-columns: 1fr; } .event-card__text { text-align: left; } }

/* v3: proportions like the original site — big logo, compact text */
.topbar { font-size: .84rem; }
.topbar__inner { min-height: 40px; gap: 22px; }
.topbar .ico { font-size: .9em; }
.topbar__search input { padding: 4px 10px; width: 140px; font-size: .82rem; }
.topbar__social { width: 28px; height: 28px; font-size: .95rem; }
.site-header__inner { padding-top: 10px; padding-bottom: 10px; }
.brand img { width: clamp(300px, 40vw, 760px); }
.depth-0 > .menu__link, .depth-0 > .menu__link--label { font-size: .9rem; padding: 10px 8px 8px; letter-spacing: .02em; }
.depth-0 > .menu__link::after { left: 8px; right: 8px; bottom: 0; height: 3px; }
.depth-0 > .sub-toggle { font-size: .62rem; margin-left: -6px; padding: 0 4px; height: 34px; }
.submenu .menu__link { font-size: .92rem; }
.menu { gap: 2px 4px; }
/* faster loading ring */
.preloader__ring { width: 84px; height: 84px; animation-duration: .75s; }
.preloader { transition: opacity .25s ease, visibility .25s; }
.js .preloader { animation: preloader-failsafe .25s ease 1.5s forwards; }
@media (max-width: 1180px) { .brand img { width: clamp(300px, 52vw, 620px); } }
@media (max-width: 860px) { .brand img { width: min(74vw, 380px); } }

/* ===== Language switcher ===== */
.lang-switch { display: inline-flex; gap: 4px; align-items: center; }
.lang-switch__item { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; color: #6b6b6b; text-decoration: none; font-size: .78rem; font-weight: 700; border: 1px solid transparent; }
.lang-switch__item img { width: 20px; height: 13px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-switch__item:hover { border-color: #dcdcdc; color: var(--blue); }
.lang-switch__item.is-active { background: #eef2fc; color: var(--blue); border-color: #d6def5; }
.lang-note { background: #fff8e6; border: 1px solid #f3dfa4; color: #6b5200; border-radius: 10px; padding: 10px 14px; font-size: .92rem; margin: 0 0 18px; }
.lang-pill { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .05em; background: #eef2fc; color: var(--blue); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 860px) { .lang-switch__item span { display: none; } .lang-switch__item { padding: 3px 4px; } }

/* ===== ANC Assistant chat ===== */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 120; font-family: var(--font); }
.chat__launcher { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--blue); color: #fff; padding: 12px 18px 12px 14px; border-radius: 999px; font: inherit; font-weight: 700; box-shadow: 0 10px 28px rgba(11,28,82,.35); transition: transform .2s, background .2s; }
.chat__launcher:hover { background: var(--blue-700); transform: translateY(-2px); }
.chat__launcher-ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.chat.is-open .chat__launcher { display: none; }
.chat__panel { width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(11,28,82,.35); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e3e8f2; animation: chat-in .22s ease; }
.chat__panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(110deg, var(--blue-900), var(--blue)); color: #fff; position: relative; }
.chat__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: url("../img/tais.259c876c4510.webp") repeat-x left center / auto 6px; opacity: .9; }
.chat__head img { border-radius: 50%; background: #fff; }
.chat__head h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.chat__head p { margin: 0; font-size: .75rem; color: #cdd6f2; }
.chat__close { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat__close:hover { background: rgba(255,255,255,.25); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f6f8fc; }
.chat__msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.chat__msg p { margin: 0 0 6px; } .chat__msg p:last-child { margin: 0; }
.chat__msg--bot { background: #fff; border: 1px solid #e3e8f2; border-top-left-radius: 4px; align-self: flex-start; color: #1f2a44; }
.chat__msg--me { background: var(--blue); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.chat__msg.is-thinking { color: #6b7791; font-style: italic; }
.chat__intro { font-weight: 700; margin-top: 4px !important; }
.chat__links { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.chat__links li { display: flex; flex-direction: column; background: #f3f6fd; border-radius: 8px; padding: 7px 9px; }
.chat__links a { font-weight: 600; text-decoration: none; color: var(--blue); }
.chat__links a:hover { text-decoration: underline; }
.chat__kind { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a94ad; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: #fff; border-top: 1px solid #eef1f7; }
.chat__chips button { border: 1px solid #d6def5; background: #f5f7fd; color: var(--blue); font: inherit; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.chat__chips button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.chat__form { display: flex; gap: 8px; padding: 10px 14px; background: #fff; }
.chat__form input[type=text] { flex: 1; font: inherit; font-size: .93rem; padding: 10px 12px; border: 1px solid #d5dcea; border-radius: 10px; }
.chat__form input[type=text]:focus { outline: 3px solid rgba(26,63,174,.2); border-color: var(--blue); }
.chat__form button { border: 0; background: var(--gold); color: var(--blue-900); width: 44px; border-radius: 10px; cursor: pointer; font-size: 1.05rem; }
.chat__form button:hover { background: var(--gold-600); }
.chat__note { margin: 0; padding: 0 14px 12px; font-size: .7rem; color: #8a94ad; background: #fff; }
@media (max-width: 600px) { .chat { right: 12px; bottom: 12px; } .chat__launcher-text { display: none; } .chat__launcher { padding: 14px; } }
@media print { .chat { display: none; } }
