/* MUD design system — EXACT tokens pulled from the Figma design source via MCP
   (get_variable_defs + get_design_context on node 4:2, file 2KN4f6QWYkC7dqrz4Fx6Yg).
   Square-corner card language with top-accent borders; Onest typeface (OFL, vendored). */

@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-variable.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2039-203A;
}
@font-face {
  font-family: 'Onest';
  src: url('/fonts/onest-variable-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+0218-021B, U+1E00-1EFF; /* Romanian ș ț ă â î */
}

:root {
  /* brand */
  --mud-blue: #0058d2;            /* --color-background-brand-default */
  --mud-blue-active: #00357e;     /* blue-sky/800 */
  --mud-navy: #00295a;            /* blue-sky/900, brand tertiary */
  --mud-blue-100: #e8f0fb;        /* brand secondary bg */
  --mud-blue-200: #ccdef6;        /* blue-sky/200 */
  --mud-blue-300: #99bced;        /* blue-sky/300 */
  --mud-green: #006369;           /* forest-green/600 */
  --mud-green-700: #004f54;
  --mud-green-400: #66a1a5;
  --mud-green-100: #e8f1f1;
  /* neutrals */
  --mud-heading: #2c2c2c;         /* gray/800 */
  --mud-text: #565656;
  --mud-text-secondary: #383838;
  --mud-muted: #757575;
  --mud-muted-2: #767676;
  --mud-border: #b2b2b2;          /* border secondary — the workhorse border */
  --mud-border-light: #d9d9d9;
  --mud-hairline: #e6e6e6;
  --mud-bg: #ffffff;
  --mud-bg-secondary: #f5f5f5;
  --mud-font: 'Onest', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-family: var(--mud-font); color: var(--mud-text); }
body { margin: 0; background: var(--mud-bg); font-size: 16px; line-height: 24px; }
h1, h2, h3 { color: var(--mud-heading); margin: 0; }
a { color: var(--mud-blue); }
img { max-width: 100%; }

.container { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--mud-bg); padding: 8px; z-index: 100; }
:focus-visible { outline: 3px solid var(--mud-blue-active); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============ government bar ============ */
.gov-bar { background: var(--mud-bg); border-bottom: 1px solid var(--mud-border); }
.gov-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; }
.gov-bar__official { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.gov-bar__official img { width: 16px; height: 16px; }
.gov-bar__official strong { font-weight: 700; color: var(--mud-heading); }
.gov-bar__official span { color: var(--mud-text); }
.gov-bar__right { display: flex; align-items: center; gap: 8px; }
.gov-bar__right a { font-size: 14px; line-height: 20px; color: var(--mud-blue); text-decoration: none; padding: 0 12px; opacity: .85; }
.lang-switch { display: inline-flex; background: var(--mud-bg-secondary); border: 1px solid var(--mud-border); border-radius: 999px; padding: 1px; overflow: hidden; }
.lang-switch a { font-size: 12px; line-height: 20px; font-weight: 600; letter-spacing: .48px; padding: 1px 12px; border-radius: 999px; text-decoration: none; color: var(--mud-text); }
.lang-switch a.active { background: var(--mud-bg); color: var(--mud-navy); }

/* ============ header ============ */
.site-header { background: var(--mud-bg); border-bottom: 1px solid var(--mud-border); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { position: relative; width: 44px; height: 44px; background: var(--mud-blue); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: .32px; }
.brand__mark::after { content: ''; position: absolute; left: 32px; top: 32px; width: 18px; height: 18px; background: var(--mud-green); border: 4px solid #fff; }
.brand__word { font-size: 20px; line-height: 24px; font-weight: 700; color: var(--mud-heading); letter-spacing: -.2px; }
.site-nav { display: flex; flex: 1; height: 72px; }
.site-nav a { display: flex; align-items: flex-start; padding: 24px 8px 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--mud-text-secondary); text-decoration: none; position: relative; height: 100%; }
.site-nav a.active { color: var(--mud-blue); }
.site-nav a.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 4px; background: var(--mud-blue); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ============ buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--mud-blue); color: #fff; }
.btn--primary:hover { background: var(--mud-blue-active); }
.btn--outline { background: transparent; color: var(--mud-blue); border-color: var(--mud-blue); }
.btn--ghost { background: var(--mud-bg); color: var(--mud-heading); border-color: var(--mud-border-light); }
.btn--white { background: #fff; color: var(--mud-navy); }
.btn--md { padding: 13px 21px; font-size: 14px; line-height: 20px; }   /* h46 */
.btn--lg { padding: 17px 25px; font-size: 16px; line-height: 24px; }   /* h58 */
/* legacy aliases used by app pages */
.btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); padding: 17px 25px; font-size: 16px; line-height: 24px; }

/* ============ section header pattern ============ */
.eyebrow { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mud-blue); text-transform: uppercase; letter-spacing: 1.12px; margin: 0; }
.section-head { border-bottom: 1px solid var(--mud-border); padding-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head h2 { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.32px; margin-top: 8px; }
.section-head p { font-size: 16px; line-height: 24px; color: var(--mud-text); padding-top: 12px; margin: 0; max-width: 720px; }
.section-head .head-link { white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mud-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.section-body { padding-top: 40px; }

/* ============ cards (square, top-accent) ============ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.card { background: var(--mud-bg); border: 1px solid var(--mud-border); border-top-width: 3px; padding: 27px 25px 25px; display: flex; flex-direction: column; gap: 16px; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--mud-blue); }
.card h3 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.2px; padding-top: 4px; }
.card p { margin: 0; font-size: 14px; line-height: 22px; color: var(--mud-text); }
.card__foot { margin-top: auto; border-top: 1px solid var(--mud-border); padding-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__count { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--mud-blue); }
.card__arrow { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--mud-blue); color: var(--mud-blue); font-size: 16px; text-decoration: none; }
.badge { display: inline-flex; align-items: center; background: var(--mud-blue-100); color: var(--mud-blue-active); font-size: 12px; line-height: 16px; font-weight: 700; padding: 4px 12px; min-height: 24px; }
.badge--right { margin-left: auto; }

/* ============ hero ============ */
.hero { background: var(--mud-bg-secondary); border-bottom: 1px solid var(--mud-border); padding: 80px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background-image: linear-gradient(var(--mud-hairline) 1px, transparent 1px), linear-gradient(90deg, var(--mud-hairline) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 384px; gap: 48px; align-items: start; }
.hero__chip { display: inline-flex; align-items: center; gap: 8px; background: var(--mud-blue-100); padding: 8px 16px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mud-blue); text-transform: uppercase; letter-spacing: .56px; }
.hero h1 { font-size: 64px; line-height: 72px; font-weight: 700; letter-spacing: -1.28px; max-width: 560px; margin-top: 24px; }
.hero__lead { font-size: 18px; line-height: 28px; color: var(--mud-text); padding-top: 20px; max-width: 743px; margin: 0; }
.hero__actions { display: flex; gap: 12px; padding-top: 32px; flex-wrap: wrap; }
.hero__stats { display: flex; max-width: 680px; margin-top: 40px; border-top: 1px solid var(--mud-border); padding-top: 25px; }
.hero__stat { flex: 1; }
.hero__stat + .hero__stat { border-left: 1px solid var(--mud-border); padding-left: 21px; }
.hero__stat strong { display: block; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--mud-blue); }
.hero__stat span { display: block; font-size: 12px; line-height: 16px; color: var(--mud-text); padding-top: 4px; }
.hero-search { padding-top: 40px; max-width: 760px; }
.hero-search label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mud-heading); }
.hero-search__bar { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--mud-border-light); padding: 10px 10px 10px 22px; margin-top: 12px; }
.hero-search__bar input { flex: 1; border: 0; font: inherit; font-size: 16px; height: 28px; outline: none; color: var(--mud-heading); }
.hero-search__bar input::placeholder { color: var(--mud-muted-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.chip { background: #fff; border: 1px solid var(--mud-border); border-radius: 999px; padding: 9px 17px; font-size: 14px; line-height: 20px; color: var(--mud-text); text-decoration: none; }

/* sidebar account card */
.account-card { background: var(--mud-navy); border-top: 8px solid var(--mud-green); padding: 48px 40px 40px; color: #fff; }
.account-card h2 { color: #fff; font-size: 28px; line-height: 36px; font-weight: 700; padding-bottom: 12px; }
.account-card p { color: var(--mud-blue-200); font-size: 14px; line-height: 20px; margin: 0; padding-bottom: 24px; }
.account-card .btn { width: 100%; }
.account-card__or { display: flex; align-items: center; gap: 12px; padding: 20px 0; color: var(--mud-blue-200); font-size: 12px; line-height: 16px; }
.account-card__or::before, .account-card__or::after { content: ''; flex: 1; height: 1px; background: var(--mud-hairline); opacity: .3; }
.account-card__roles { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 25px; }
.account-card__roles h3 { color: var(--mud-blue-200); font-size: 14px; line-height: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: .84px; }
.account-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.account-card__chips span { background: var(--mud-blue-200); color: var(--mud-blue-active); font-size: 12px; line-height: 16px; font-weight: 500; padding: 4px 12px; }

/* ============ filter bar ============ */
.filter-bar { background: var(--mud-bg-secondary); border: 1px solid var(--mud-border); padding: 21px; margin-top: 40px; }
.filter-bar label { display: block; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--mud-text); margin-bottom: 8px; }
.filter-bar__row { display: flex; gap: 12px; }
.filter-bar__row input { flex: 1; background: #fff; border: 0; border-radius: 12px; height: 48px; padding: 12px 16px; font: inherit; font-size: 16px; }
.filter-bar__row input::placeholder { color: var(--mud-muted); }
.filter-bar__status { font-size: 14px; line-height: 20px; color: var(--mud-text); margin-top: 12px; }

/* ============ calendar lists ============ */
.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cal-card { background: #fff; border: 1px solid var(--mud-border); margin-top: 24px; }
.cal-card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--mud-border); padding: 20px 24px; }
.cal-card__head h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.cal-card__head a { font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.cal-item { display: flex; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--mud-border); text-decoration: none; color: inherit; }
.cal-item__date { width: 56px; flex-shrink: 0; background: var(--mud-blue-100); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.cal-item__date strong { font-size: 20px; line-height: 24px; font-weight: 700; color: var(--mud-blue-active); }
.cal-item__date span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--mud-blue-active); text-transform: uppercase; letter-spacing: .48px; }
.cal-item__cat { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--mud-green-700); text-transform: uppercase; letter-spacing: .48px; }
.cal-item__title { font-size: 16px; line-height: 24px; color: var(--mud-heading); margin: 2px 0; }
.cal-item__meta { display: flex; gap: 16px; font-size: 14px; line-height: 20px; color: var(--mud-text); flex-wrap: wrap; }
.cal-card__foot { background: var(--mud-bg-secondary); padding: 16px 24px; }
.cal-card__foot a { font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }

/* ============ events calendar page ============ */
.event-list > div + div .event-month { padding-top: 40px; }
.event-month { font-size: 13px; line-height: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--mud-muted-2); padding-bottom: 12px; }
.event-list .cal-card { margin-top: 0; }
.event-list .cal-item:last-child { border-bottom: none; }
.event-list .cal-item:hover { background: var(--mud-bg-secondary); }
.cal-item__main { flex: 1; min-width: 0; }
.event-chips { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.event-kind { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--mud-blue-active); background: var(--mud-blue-100); padding: 3px 10px; border-radius: 999px; letter-spacing: .24px; }
.event-kind--muted { color: var(--mud-text); background: var(--mud-bg-secondary); border: 1px solid var(--mud-border); }
.event-agenda { display: block; font-size: 14px; line-height: 21px; color: var(--mud-text); padding-top: 6px; max-width: 720px; }

/* ============ news ============ */
.news-card { background: #fff; border: 1px solid var(--mud-border); border-top-width: 4px; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--mud-blue); }
.news-card__img { height: 215px; background: var(--mud-blue-100) center / cover no-repeat; }
.news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.news-card__cat { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--mud-blue); text-transform: uppercase; letter-spacing: .6px; }
.news-card__title { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--mud-heading); letter-spacing: -.18px; }
.news-card__date { font-size: 12px; line-height: 16px; color: var(--mud-muted-2); padding-top: 8px; }

/* ============ CTA band ============ */
.cta-band { background: var(--mud-navy); border-radius: 24px; padding: 64px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.cta-band .eyebrow { color: var(--mud-blue-300); font-size: 16px; line-height: 24px; letter-spacing: 1.28px; }
.cta-band h2 { color: #fff; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.32px; padding-top: 32px; }
.cta-band p { color: var(--mud-blue-200); font-size: 16px; line-height: 24px; padding-top: 16px; margin: 0; }
.cta-band__actions { display: flex; gap: 12px; padding-top: 32px; flex-wrap: wrap; }
.cta-subscribe { background: var(--mud-blue-active); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 25px; }
.cta-subscribe h3 { color: var(--mud-blue-200); font-size: 16px; line-height: 24px; font-weight: 600; }
.cta-subscribe p { padding-top: 24px; }
.cta-subscribe__row { display: flex; gap: 8px; padding-top: 24px; }
.cta-subscribe__row input { flex: 1; background: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 13px 17px; font: inherit; font-size: 14px; }
.cta-subscribe__row input::placeholder { color: var(--mud-blue-300); }
.cta-subscribe small { display: block; color: var(--mud-blue-200); font-size: 13px; line-height: 20px; padding-top: 16px; }

/* ============ stat cards ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.stat-card { background: #fff; border: 1px solid var(--mud-border); border-top-width: 4px; padding: 36px 25px 33px; }
.stat-card strong { display: block; font-size: 40px; line-height: 48px; font-weight: 700; color: var(--mud-blue); letter-spacing: -.8px; }
.stat-card span { display: block; font-size: 14px; line-height: 20px; color: var(--mud-text); padding-top: 8px; }

/* ============ footer ============ */
.site-footer { background: #fff; border-top: 8px solid var(--mud-green); padding: 72px 0 32px; color: var(--mud-heading); }
.site-footer__grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr 1fr; gap: 40px; border-bottom: 1px solid var(--mud-border); padding-bottom: 49px; }
.site-footer h3 { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .96px; }
.site-footer nav a { display: block; font-size: 14px; line-height: 20px; color: var(--mud-heading); text-decoration: none; margin-top: 12px; }
.site-footer nav a:hover { color: var(--mud-blue); }
.footer-brand__mark { position: relative; width: 44px; height: 44px; background: #fff; border: 1px solid var(--mud-border); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; letter-spacing: .32px; }
/* green corner square overhangs the 44px box by 14px — margin reserves that space so it never covers the tagline */
.footer-brand__mark { margin-right: 14px; margin-bottom: 14px; }
.footer-brand__mark::after { content: ''; position: absolute; left: 32px; top: 32px; width: 18px; height: 18px; background: var(--mud-green); border: 4px solid var(--mud-border); }
.footer-brand__row { display: flex; align-items: center; gap: 12px; }
.footer-brand__word strong { display: block; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.2px; }
.footer-brand__word span { display: block; font-size: 12px; line-height: 16px; padding-top: 2px; }
.footer-brand p { font-size: 14px; line-height: 20px; margin: 20px 0 0; }
.footer-brand address { font-style: normal; font-size: 14px; line-height: 22px; margin-top: 20px; }
.footer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.footer-chips span { border: 1px solid var(--mud-border); border-radius: 4px; padding: 9px 13px; font-size: 12px; line-height: 16px; font-weight: 600; }
.eu-strip { display: flex; align-items: center; gap: 20px; border: 1px solid var(--mud-border); border-radius: 8px; padding: 21px 25px; margin-top: 40px; }
.eu-strip__flag { width: 52px; height: 36px; flex-shrink: 0; background: #003399; display: flex; align-items: center; justify-content: center; color: #ffcc00; font-size: 18px; }
.eu-strip p { font-size: 12px; line-height: 16px; margin: 0; max-width: 640px; }
.mud-attribution { font-size: 12px; line-height: 16px; padding-top: 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; font-size: 12px; line-height: 16px; }
.footer-bottom a { color: var(--mud-heading); text-decoration: none; margin-right: 20px; }

/* ============ misc / app ============ */
.empty-state { text-align: center; color: var(--mud-muted); padding: 48px; }
.lang-fallback { background: var(--mud-blue-100); color: var(--mud-navy); padding: 8px 16px; font-size: 14px; }
.muted { color: var(--mud-muted); font-size: 14px; }
.search-results { list-style: none; padding: 0; display: grid; gap: 12px; }
.pagination { display: flex; gap: 16px; justify-content: center; margin-top: 24px; }
.contact-form input, .contact-form textarea { width: 100%; max-width: 480px; padding: 12px 16px; border: 1px solid var(--mud-border-light); border-radius: 8px; font: inherit; }
.designer-table { border-collapse: collapse; }
.designer-table th, .designer-table td { border: 1px solid var(--mud-border-light); padding: 6px 10px; font-size: 14px; }
.sitemap { columns: 2; }
.content-page h1 { font-size: 32px; line-height: 40px; padding-bottom: 16px; }
.content-page > div { max-width: 800px; }
.content-page h2 { font-size: 22px; line-height: 30px; letter-spacing: -.22px; padding: 32px 0 8px; }
.content-page h3 { font-size: 17px; line-height: 25px; padding: 20px 0 4px; }
.content-page p { margin: 0; padding: 8px 0; }
.content-page ul, .content-page ol { margin: 0; padding: 8px 0 8px 24px; }
.content-page li { padding: 3px 0; }
.content-page table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; line-height: 21px; }
.content-page th, .content-page td { border: 1px solid var(--mud-border); padding: 10px 14px; text-align: left; vertical-align: top; }
.content-page th { background: var(--mud-bg-secondary); color: var(--mud-heading); font-weight: 600; }
.content-page a { color: var(--mud-blue); }

@media (max-width: 980px) {
  .hero__grid, .cta-band, .cal-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; line-height: 48px; letter-spacing: -.8px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }  /* mobile menu: burger pattern to be added with the mobile design frame */
  .section { padding: 48px 0; }
  .sitemap { columns: 1; }
}
