/* Shared visual system. Page-specific geometry remains in main.css. */
:root {
  --site-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --frame: #6378cf;
  --page: var(--frame);
  --surface: #fff;
  --surface-soft: #f6f7fa;
  --surface-tint: #f0f3f8;
  --ink: #202b40;
  --ink-soft: #465268;
  --muted: #657086;
  --muted-2: #707a8e;
  --line: #dce1e9;
  --line-soft: #ebedf2;
  --blue: #435fa8;
  --blue-dark: #304983;
  --blue-deep: #243962;
  --blue-soft: #eff3fb;
  --green: #286858;
  --green-soft: #eff6f3;
  --amber: #805b20;
  --amber-soft: #faf5e9;
  --coral: #a64639;
  --coral-soft: #fcf1ee;
  --radius: 12px;
  --control-radius: 8px;
  --control-height: 44px;
  --control-padding-x: 16px;
  --control-ease: 160ms ease;
  --shadow: none;
  --shadow-soft: none;
  --content: 1440px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --page-gutter: 48px;
  --heading-1: clamp(1.75rem, 2.8vw, 2.5rem);
  --heading-2: clamp(1.25rem, 1.6vw, 1.5rem);
}
body { background: var(--frame); font-size: 16px; line-height: 1.6; }
[hidden] { display: none !important; }
:where(h1, h2, h3, p, li, dd, a) { overflow-wrap: anywhere; }
h1,
h2,
h3,
h4 { font-weight: 650; line-height: 1.3; }
h1 { font-size: var(--heading-1); letter-spacing: -.025em; }
h2 { font-size: var(--heading-2); letter-spacing: -.015em; }
h3 { font-size: 1.125rem; }
button,
a,
summary { -webkit-tap-highlight-color: transparent; }
:is(button, a, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
:is(section, article, details, [id]) { scroll-margin-top: 104px; }
.visually-hidden,
.health-tabs > input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 16px; background: white; color: var(--blue-dark); }
.skip-link:focus { top: 8px; }
/* Frame, navigation and controls */
.container,
.container.special {
  width: min(var(--content), calc(100% - 32px));
  min-height: calc(100vh - 192px);
  margin: 0 auto 24px !important;
  padding: var(--page-gutter);
  border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: none;
}
.site-header { position: sticky; top: 0; background: var(--frame); border: 0; backdrop-filter: none; }
.header-inner,
.foot { width: min(var(--content), calc(100% - 32px)); padding-inline: var(--page-gutter); }
.header-inner { min-height: 88px; gap: 24px; }
.brand-logo { height: 64px; }
.site-header .brand-logo { filter: none; }
.nav-desktop { gap: 4px; }
.nav-link { min-height: 44px; padding: 0 12px; border-radius: var(--control-radius); font-size: 15px; font-weight: 550; color: #fff; }
.nav-link:hover,
.has-dropdown:focus-within > .nav-link { background: #536abd; color: #fff; }
.nav-link:focus-visible,
.btn-login:focus-visible,
.burger:focus-visible { outline-color: white; }
.btn-login,
.burger { min-height: 44px; border: 1px solid #c1c9ec; border-radius: var(--control-radius); background: transparent; color: white; font-size: 15px; font-weight: 550; }
.btn-login:hover,
.burger:hover { background: white; color: var(--blue-dark); border-color: white; }
.has-dropdown .dropdown { padding: 8px; box-shadow: 0 4px 12px #202b4014; }
.has-dropdown .dropdown a { padding: 12px; font-weight: 500; }
.nav-mobile-inner { width: 100%; padding: 16px 24px; }
footer { background: transparent; border: 0; }
.foot { min-height: 72px; padding-block: 16px; color: #fff; font-size: 13px; }
.foot a { color: inherit; }
:is(.button-link, .section-action-link, .event-row__link, .mp-doc-link, .contact-appeal-link, .about-actions a, .meriya-apply a, button[type="submit"], form button) {
  min-height: var(--control-height); border-radius: var(--control-radius); font-weight: 600; box-shadow: none;
}
.scroll-top { border-radius: var(--radius); }
/* One internal page opening: title, optional lead, content. */
.section-header,
.page-head,
.tk-head,
.history-hero,
.faq-hero,
.mp-intro .md,
.meriya-intro > div:first-child {
  display: block; margin: 0 0 var(--space-6); padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
:is(.section-header, .page-head, .tk-head, .history-hero, .faq-hero, .mp-intro .md, .meriya-intro) h1 {
  margin: 0; max-width: none; color: var(--ink); font-size: var(--heading-1);
  font-weight: 650; line-height: 1.25; letter-spacing: -.025em; text-wrap: initial;
}
:is(.section-header, .page-head, .tk-head, .history-hero, .faq-hero, .mp-intro .md, .meriya-intro) p:not(.page-kicker):not(.about-kicker) {
  max-width: none; margin: 12px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6;
}
.page-kicker,
.about-kicker,
.faq-kicker { color: var(--muted); font-size: .8125rem; font-weight: 550; text-transform: none; letter-spacing: 0; }
.section-actions { margin-top: 16px; }
:is(.mp-page, .meriya-page, .faq-page, .health-page, .tk-page, .about-structure, .commissions-page, .documents-page) { gap: var(--space-6); }
:is(.mp-page, .meriya-page, .faq-page, .health-page, .tk-page, .about-structure) > :is(.page-head, .faq-hero, .mp-intro, .tk-head, .meriya-intro) { margin-bottom: 0; }
.mp-intro .md { margin-bottom: 0; }
:is(.mp-section-head, .faq-section-head, .documents-section__head, .commission-group__head, .tk-section-head, .meriya-section-head) h2 { margin: 0; font-size: var(--heading-2); font-weight: 650; }
:is(.mp-section-head, .faq-section-head, .tk-section-head, .meriya-section-head) p { margin: 8px 0 0; font-size: 1rem; color: var(--ink-soft); }
/* Dividers clarify accordion boundaries; ordinary lists use spacing. */
.faq-list,
.mp-category-list,
.social-category-list,
.commission-list,
.documents-list {
  border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none;
}
.faq-item,
.mp-category,
.social-category,
.commission-item {
  margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none;
}
:is(.faq-item, .mp-category, .social-category, .commission-item, .document-item) + :is(.faq-item, .mp-category, .social-category, .commission-item, .document-item) { border-top: 0; }
.faq-question,
.mp-category-question,
.social-category summary,
.commission-item summary {
  min-height: 52px; padding: 14px 12px; font-size: 1rem; font-weight: 550; line-height: 1.5;
  color: var(--ink); border-radius: 0; background: transparent; transition: background var(--control-ease);
}
:is(.faq-question, .mp-category-question, .social-category summary, .commission-item summary):hover { background: var(--surface-soft); }
.faq-question[aria-expanded="true"],
.mp-category-question[aria-expanded="true"],
.social-category[open] summary,
.commission-item[open] summary { background: var(--blue-soft); color: var(--blue-dark); }
.faq-chev { flex: 0 0 16px; font-size: 0; width: 16px; height: 16px; display: grid; place-items: center; transition: transform var(--control-ease); }
.faq-chev::after { content: ""; display: block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.faq-answer { padding: 16px 12px 24px; }
.social-category > div { padding: 16px 12px 24px; }
.social-category summary::-webkit-details-marker { display: none; }
.social-category dl.social-category-data { display: grid; grid-template-columns: 1fr; padding: 0; margin: 0; gap: 16px; }
.social-category dl.social-category-data div { padding: 0; border: 0; }
.social-category dl.social-category-data dt { margin-bottom: 4px; }
.social-category dl.social-category-data dd { margin: 0; }
.social-prepare-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--ink-soft); }
.social-norms { font-size: .875rem; line-height: 1.6; }
.faq-nav,
.tk-nav { gap: 4px 24px; padding: 0; border: 0; }
.faq-nav a,
.tk-nav a {
  min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--blue); font-size: .9375rem; font-weight: 550;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line);
}
.faq-nav a:hover,
.tk-nav a:hover { background: transparent; text-decoration-color: currentColor; }
.faq-section-head { margin-bottom: 8px; }
.document-item { margin: 0; padding: 10px 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.document-item h3 { font-size: 1rem; font-weight: 550; line-height: 1.5; }
.document-item__main { min-width: 0; flex: 1; }
.document-title-link { display: block; color: var(--blue-dark); padding-right: 32px; position: relative; }
.document-arrow { position: absolute; right: 4px; font-size: 1.125rem; }
.document-item__meta { margin-top: 4px; font-size: .8125rem; }
/* Financial support: official numbered list is the primary content. */
.support-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-bottom: 1px solid var(--line); }
.support-nav a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 12px 0 16px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-weight: 550; color: var(--ink-soft); text-decoration: none; }
.support-nav a span { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.support-nav a[aria-current] { color: var(--blue-dark); border-bottom-color: var(--blue); }
.support-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.mp-layout,
.meriya-layout { grid-template-columns: minmax(0, 1fr) 256px; gap: var(--space-12); }
.mp-main,
.meriya-main { gap: var(--space-6); }
.mp-section { gap: var(--space-4); }
.mp-category-group { gap: 12px; }
.mp-category-group + .mp-category-group { margin-top: 8px; }
.mp-category { border-bottom-color: var(--line-soft); }
.mp-group-head h3 { color: var(--ink-soft); font-size: 1rem; font-weight: 600; }
.mp-category-question { grid-template-columns: minmax(0, 1fr) 16px; gap: 16px; align-items: start; }
.mp-category-heading { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
.mp-category-number { color: var(--muted); font-size: .875rem; font-weight: 500; padding-top: 2px; font-variant-numeric: tabular-nums; text-align: left; }
.mp-category-copy { display: grid; gap: 4px; min-width: 0; }
.mp-category-title { font-weight: 550; line-height: 1.5; }
.mp-category-summary { color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.5; }
.mp-category-period::before { content: " · "; }
.mp-category-preview { padding: 4px 0 0; }
.mp-category-answer:not([hidden]) { display: grid; padding: 16px 32px 20px 56px; gap: 16px; }
.mp-category-details { grid-template-columns: 1fr; gap: 16px; }
.mp-category-details div { padding: 0; border: 0; }
.mp-category-details dt { margin-bottom: 4px; }
.mp-category-details dd { font-weight: 500; }
.mp-formula { font-size: .875rem; line-height: 1.6; }
.mp-documents h4 { font-size: .875rem; font-weight: 550; color: var(--muted); }
.mp-documents li + li { margin-top: 8px; }
.mp-aside,
.meriya-aside { position: static; top: auto; gap: 24px; padding-left: 24px; border-left: 1px solid var(--line); }
.mp-panel,
.meriya-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mp-panel h2,
.meriya-panel h2 { font-size: 1rem; font-weight: 650; margin-bottom: 16px; }
.mp-panel p,
.meriya-panel p { font-size: .875rem; line-height: 1.6; }
.mp-facts { gap: 16px; }
.mp-facts div { grid-template-columns: 1fr; gap: 4px; }
.mp-facts dd { font-size: .9375rem; font-weight: 550; }
.mp-current-status { border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 0 0 0 12px; background: transparent; color: var(--ink-soft) !important; }
.mp-panel .mp-doc-link { display: inline-block; padding: 8px 0; margin-top: 8px; min-height: 0; border: 0; border-radius: 0; color: var(--blue); background: transparent; font-size: .875rem; text-decoration: underline; }
.mp-calculation { border: 0; padding: 0; color: var(--muted); font-size: .875rem; }
.mp-calculation summary { cursor: pointer; padding: 4px 0 12px; }
.mp-calculation .mp-facts { margin-top: 8px; }
.mp-info-box,
.meriya-doc-summary,
.meriya-apply,
.tk-info-grid article { border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.mp-info-grid,
.tk-info-grid { gap: 32px; }
.mp-info-accent { color: var(--ink-soft) !important; }
.meriya-condition-grid { border: 0; border-radius: 0; }
.meriya-amount { background: var(--surface-soft); border: 0; padding: 24px; }
.meriya-category { border-radius: var(--control-radius); font-weight: 500; }
.tk-services span { background: transparent; border-radius: var(--radius); font-weight: 500; }
/* Home keeps its photograph; practical navigation leads the remaining page. */
.about-page { gap: 24px; }
.official-hero {
  min-height: 500px; padding: 40px; grid-template-columns: minmax(0, 1fr) 220px; align-items: end; gap: 48px; border: 0; border-radius: var(--radius);
  background: linear-gradient(90deg, #101b30cc, #101b3080), url("/static/img/home-hero.jpg") center / cover no-repeat;
  color: #fff;
}
.official-hero::after { display: none; }
.official-hero h1 { max-width: 800px; font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.12; font-weight: 600; letter-spacing: -.035em; text-wrap: initial; color: #fff; }
.official-hero .about-hero__content > p:not(.about-kicker) { max-width: 68ch; margin-top: 24px; font-size: 1rem; line-height: 1.6; color: #fff; }
.official-hero .about-actions a { background: white; color: var(--ink); border-color: white; }
.official-hero .about-actions a:nth-child(n + 2) { background: transparent; color: white; }
.official-hero .about-actions a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.official-hero__facts { display: grid; gap: 24px; padding: 0 0 0 24px; border-left: 1px solid #ffffff66; background: transparent; }
.official-hero__facts div { display: grid; gap: 8px; }
.official-hero__facts strong { color: #fff; font-size: 2rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.official-hero__facts span { color: #fff; font-size: .875rem; line-height: 1.4; }
.home-info { display: grid; gap: 16px; padding: 0; border: 0; background: transparent; }
.home-info > h2 { margin: 0; }
.home-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
.home-info-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-content: start; gap: 12px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; text-decoration: none; }
.home-info-card::after { content: none; }
.home-info-card__text { display: grid; gap: 4px; min-width: 0; }
.home-section-icon { display: block; width: 24px; height: 24px; margin-top: 2px; color: var(--blue); flex-shrink: 0; }
.home-info-card span { font-size: 1.0625rem; font-weight: 600; color: var(--blue-dark); }
.home-info-card p { margin: 0; color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
.home-info-card:hover { background: transparent; text-decoration: none; transform: none; }
.home-info-card:is(:hover, :focus-visible) .home-info-card__text > span { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.home-about { display: grid; gap: 16px; margin-top: 8px; }
.home-about > h2 { margin: 0; }
.about-statement { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 0; padding: 0; border: 0; }
.home-about .about-statement article { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-about .about-statement h3 { margin: 0 0 10px; font-size: 1.125rem; font-weight: 550; }
.about-statement p { margin: 0; font-size: .875rem; color: var(--ink-soft); }
/* Health uses ordinary sections and native, keyboard-operable season radios. */
.health-page,
.health-tabs,
.health-section { display: grid; gap: 24px; }
.health-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.health-summary article { padding: 0; border: 0; background: transparent; }
.health-summary span { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.health-summary p,
.health-camp p,
.health-section__head p,
.health-selection p,
.health-note p { margin: 0; color: var(--ink-soft); }
.health-tab-buttons { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.health-tab-buttons label { display: flex; align-items: center; padding: 12px 0; margin-bottom: -1px; min-height: 48px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--ink-soft); font-weight: 550; }
#health-winter:checked ~ .health-tab-buttons label[for="health-winter"],
#health-summer:checked ~ .health-tab-buttons label[for="health-summer"] { border-bottom-color: var(--blue); color: var(--blue-dark); }
#health-winter:focus-visible ~ .health-tab-buttons label[for="health-winter"],
#health-summer:focus-visible ~ .health-tab-buttons label[for="health-summer"] { outline: 3px solid var(--blue); outline-offset: 3px; }
.health-tab-panel { display: none; gap: 24px; }
#health-winter:checked ~ .health-tab-panel--winter,
#health-summer:checked ~ .health-tab-panel--summer { display: grid; }
.health-section__head h2 { margin: 0 0 12px; font-size: var(--heading-2); }
.health-camps,
.health-summer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.health-camp { display: block; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.health-camp__tag { color: var(--muted); font-size: .8125rem; }
.health-camp h3 { margin: 4px 0 12px; }
.health-camp ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); }
.health-camp li + li { margin-top: 8px; }
.health-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.health-selection h3 { margin: 0 0 8px; }
.health-note { border-left: 2px solid var(--line); padding: 0 0 0 16px; }
.health-note p { margin-top: 8px; }
/* Tables, contact data and images retain the formats their content needs. */
.table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.clean-table th,
.clean-table td { padding: 16px 12px; font-size: .9375rem; }
.clean-table thead th { text-transform: none; font-size: .8125rem; font-weight: 550; background: var(--surface-soft); }
.clean-table .person-name { font-size: .9375rem; font-weight: 500; }
.icon-links { justify-content: flex-start; }
.icon-btn { border-radius: var(--control-radius); }
.contacts-layout { gap: 48px; }
.contacts-main { gap: 24px; }
.contact-card,
.map-frame { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.contact-card-title { font-size: 1.25rem; font-weight: 600; }
.contact-grid { border: 0; }
.contact-row { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding-block: 8px; border: 0; }
.contact-row .value { font-size: 1rem; font-weight: 500; min-width: 0; }
.social-links { gap: 0; }
.social-link { padding: 8px 0; border: 0; border-radius: 0; background: transparent; }
.social-link__icon { border-radius: var(--radius); background: var(--surface-soft); }
.map-frame__head { padding: 0 0 16px; }
.map-frame__embed { overflow: hidden; border-radius: var(--radius); }
.upcoming-card { border-radius: var(--radius); box-shadow: none; }
.upcoming-card__content h2 { color: #fff; }
.commission-item__meta { border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; }
.commissions-overview { border: 0; border-radius: 0; }
.commissions-overview a { padding: 12px 16px; background: transparent; }
.person-card { box-shadow: none; }
@media (max-width: 1180px) {
:root { --page-gutter: 32px; }
.nav-desktop { display: none; }
.burger { display: inline-flex; }
.header-inner { justify-content: space-between; }
.official-hero { gap: 32px; padding: 32px; }

}
@media (max-width: 960px) {
.mp-layout,
.meriya-layout { grid-template-columns: 1fr; gap: 32px; }
.mp-aside,
.meriya-aside { grid-template-columns: 1fr 1fr; border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
.official-hero { grid-template-columns: 1fr; }
.official-hero__facts { grid-template-columns: repeat(3, 1fr); padding: 24px 0 0; border: 0; border-top: 1px solid #ffffff66; }
.health-summary { grid-template-columns: 1fr; gap: 16px; }
.health-summary article { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
.contacts-layout { grid-template-columns: 1fr; }

}
@media (max-width: 720px) {
:root { --page-gutter: 24px; }
.site-header { position: static; }
.header-inner { min-height: 80px; padding-inline: 8px; gap: 12px; }
.brand-logo { height: 56px; }
.header-actions { gap: 8px; }
.btn-login { font-size: .8125rem; padding-inline: 12px; }
.container,
.container.special { width: calc(100% - 16px); padding: 32px var(--page-gutter); }
.foot { width: calc(100% - 16px); padding-inline: 16px; gap: 8px; }
.support-nav { grid-template-columns: 1fr; gap: 0; border: 0; }
.support-nav a { padding: 10px 0; margin: 0; border-bottom: 2px solid transparent; }
.support-nav a[aria-current] { border-bottom: 2px solid var(--blue); }
.mp-aside,
.meriya-aside { grid-template-columns: 1fr; }
.mp-category-question { padding: 12px 4px; gap: 12px; }
.mp-category-heading { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.mp-category-answer:not([hidden]) { padding: 16px 4px 24px 36px; }
.mp-category-summary { font-size: .8125rem; }
.mp-layout,
.meriya-layout { gap: 32px; }
.official-hero { margin: -8px; padding: 24px; min-height: 0; gap: 32px; }
.official-hero h1 { font-size: clamp(1.75rem, 6.8vw, 2.5rem); }
.official-hero .about-hero__content > p:not(.about-kicker) { font-size: .9375rem; }
.official-hero__facts { gap: 16px; }
.official-hero__facts strong { font-size: clamp(1rem, 5vw, 1.375rem); }
.official-hero__facts span { font-size: .75rem; }
.about-actions { gap: 8px; margin-top: 24px; }
.about-actions a { font-size: .875rem; padding-inline: 12px; }
.home-info-grid,
.about-statement { grid-template-columns: 1fr; gap: 12px; }
.about-statement { gap: 24px; }
.health-camps,
.health-summer-grid { grid-template-columns: 1fr; gap: 16px; }
.health-camp { padding: 20px; }
.health-selection { grid-template-columns: 1fr; gap: 24px; }
.health-summary article { display: block; }
.health-tab-buttons { gap: 16px; }
.health-tab-buttons label { font-size: .875rem; }
.rwd-table tr { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding-block: 16px; }
.rwd-table td,
.rwd-table tr:last-child td { border: 0; padding: 8px 0; }
.rwd-table td::before { opacity: 1; font-weight: 500; font-size: .8125rem; }
.document-item { flex-direction: row; align-items: start; }
.commission-item__meta { border: 0; padding: 0; }
.contacts-layout { gap: 32px; }

}
@media (max-width: 380px) {
:root { --page-gutter: 16px; }
.official-hero { padding: 20px; }
.official-hero__facts { gap: 12px; }
.official-hero__facts strong { font-size: 1rem; }

}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*,
*::before,
*::after { animation: none !important; transition: none !important; }

}
/* Event information: labelled facts instead of indistinguishable badges. */
.event-facts { display: grid; gap: 12px; margin: 16px 0 0; }
.event-facts > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.event-facts dt { color: var(--muted); font-size: .875rem; font-weight: 400; }
.event-facts dd { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.event-facts__time { display: block; color: var(--ink-soft); }
.event-detail-head { padding: 0; border: 0; background: transparent; gap: 28px; margin-bottom: 28px; }
.event-detail-cover { border: 0; border-radius: 12px; }
.event-detail-summary { gap: 6px; }
.event-card .event-facts { gap: 8px; }
.event-card .event-facts dd { font-size: .925rem; }
.event-recap { margin-top: 32px; }
.event-recap .event-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.event-recap .event-gallery a { display: block; min-width: 0; }
.event-recap .event-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.event-album-link { font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 700px) {
.event-detail-head { grid-template-columns: minmax(0, 1fr); }
.event-facts > div { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
.event-recap .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
/* Targeted page adjustments. */
.history-content > p:first-of-type { max-width: none; }
.event-back-link { margin-bottom: 20px; }
.contacts-main .social-link__icon { margin-left: 5px; }
@media (max-width: 640px) {
.events-list .event-card__cover:not(.event-card__cover--empty) {
    height: auto; min-height: 0; aspect-ratio: auto;
  }
.events-list .event-card__cover img { display: block; height: auto; object-fit: contain; }

}
/* Center incomplete rows while preserving the normal event card width. */
.upcoming-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.upcoming-grid > .upcoming-card { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; }
@media (max-width: 1080px) {
.upcoming-grid > .upcoming-card { flex-basis: calc((100% - 16px) / 2); }

}
@media (max-width: 820px) {
.upcoming-grid > .upcoming-card { flex-basis: 100%; }

}
@media (min-width: 701px) and (max-width: 1080px) {
.home-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 700px) {
.home-info-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.home-about .about-statement { grid-template-columns: minmax(0, 1fr); gap: 24px; }

}
/* Keep leadership portraits at three-column width and center incomplete rows. */
.about-structure { align-content: start; }
.about-structure .leaders-grid > .person-card { height: auto; min-height: 0; }
.about-structure > .leaders-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; align-content: flex-start; gap: 18px; }
.about-structure > .leaders-grid > .person-card { flex: 0 0 calc((100% - 36px) / 3); min-width: 0; }
@media (max-width: 700px) {
.about-structure > .leaders-grid > .person-card { flex-basis: calc((100% - 18px) / 2); }

}
@media (max-width: 480px) {
.about-structure > .leaders-grid > .person-card { flex-basis: 100%; }

}

/* Editable catalogue cards. */
.our-events-editor { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; grid-column:1 / -1; }
.our-event-editor { min-width:0; align-self:start; }
.our-event-preview { display:block; width:calc(100% + 36px); max-width:none; height:330px; object-fit:cover; object-position:center; border-radius:var(--radius); margin:-18px -18px 0; }
.our-event-preview[hidden] { display:none; }
.our-event-order { display:flex; align-items:center; gap:8px; }
.our-event-order span { margin-right:auto; }
.our-event-order button { min-width:40px; }
.our-event-editor summary { cursor:pointer; margin-bottom:12px; }
.our-event-editor .admin-content-form { display:grid; grid-template-columns:1fr; }

@media (max-width:1080px) { .our-events-editor { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:820px) { .our-events-editor { grid-template-columns:minmax(0,1fr); } }

/* Forms containing a standalone action must not look like input panels. */
form.action-form {
  display:inline-flex; gap:0; width:auto; max-width:none; margin:0; padding:0;
  border:0; border-radius:0; background:transparent; box-shadow:none;
}

/* Cabinet conversations: shared task and appeal layout, scoped to the cabinet. */
.lk-item-card.lk-conversation {
  display: block;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  min-width: 0;
  scroll-margin-top: 24px;
}
.lk-conversation-heading { display: grid; gap: 10px; min-width: 0; }
.lk-conversation .lk-conversation-title { font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.lk-conversation-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.lk-conversation .lk-conversation-meta span { display: inline-flex; align-items: center; }
.lk-conversation .lk-conversation-date { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.lk-conversation .lk-status { padding: 4px 9px; border-radius: 6px; background: var(--surface-tint); color: var(--ink-soft); font-size: .76rem; font-weight: 650; line-height: 1.4; }
.lk-conversation .lk-status--done,
.lk-conversation .lk-status--answered { color: var(--green); background: var(--green-soft); }
.lk-conversation .lk-status--new,
.lk-conversation .lk-status--in_progress { color: var(--blue-dark); background: var(--blue-soft); }
.lk-conversation .lk-status--overdue,
.lk-conversation .lk-status--declined { color: var(--coral); background: var(--coral-soft); }
.lk-conversation .lk-appeal-details { margin-top: 14px; }
.lk-conversation .lk-appeal-details > summary { width: fit-content; padding: 4px 0; font-size: .88rem; font-weight: 650; line-height: 1.5; }
.lk-conversation .lk-appeal-details > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.lk-conversation .appeal-thread { margin-top: 18px; gap: 12px; }
.lk-conversation .appeal-message { padding: 10px 0; border: 0; border-radius: 0; background: transparent; gap: 6px; min-width: 0; }
.lk-conversation .appeal-message--admin,
.lk-conversation .appeal-message--team { background: transparent; }
.lk-conversation .appeal-message > strong { font-size: .88rem; font-weight: 650; }
.lk-conversation .appeal-message > span { font-size: .78rem; line-height: 1.5; }
.lk-conversation .appeal-text { margin: 6px 0 0; font-size: .92rem; line-height: 1.65; overflow-wrap: anywhere; }
.lk-conversation .appeal-message a { overflow-wrap: anywhere; font-size: .88rem; }
.lk-conversation .lk-response-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; width: 100%; max-width: none; margin: 24px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.lk-response-heading { display: grid; gap: 5px; }
.lk-response-heading h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.lk-response-heading p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.lk-response-form label { display: grid; gap: 8px; margin: 0; min-width: 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.lk-response-form label small { color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.5; }
.lk-response-form .lk-response-status { width: min(100%, 280px); }
.lk-response-form textarea { display: block; width: 100%; min-height: 112px; resize: vertical; line-height: 1.6; box-sizing: border-box; }
.lk-response-form select { min-height: 44px; width: 100%; }
.lk-response-footer { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.lk-response-file { flex: 1 1 260px; max-width: 420px; }
.lk-response-form input[type="file"] { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 8px; font-size: .8rem; font-weight: 400; box-sizing: border-box; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.lk-response-form input[type="file"]::file-selector-button { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); padding: 7px 10px; margin-right: 10px; cursor: pointer; }
.lk-response-form button[type="submit"] { width: auto; min-height: 44px; margin: 0; flex: 0 0 auto; }
.lk-response-footer--actions { justify-content: flex-end; }
@media (max-width: 600px) {
  .lk-item-card.lk-conversation { padding: 18px 0; }
  .lk-conversation-meta { gap: 8px; }
  .lk-conversation .lk-conversation-date { flex-basis: 100%; }
  .lk-conversation .appeal-message { padding: 10px 0; }
  .lk-conversation .lk-response-form { gap: 16px; padding-top: 20px; margin-top: 20px; }
  .lk-response-form .lk-response-status { width: 100%; }
  .lk-response-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lk-response-file { max-width: none; }
  .lk-response-form button[type="submit"] { width: 100%; }
}

/* Conversations are rows, with composing moved to a native modal. */
.lk-section.lk-conversations-section { padding: 8px 0; border: 0; border-radius: 0; background: transparent; }
.lk-conversations-section .lk-section__head { margin-bottom: 0; flex-wrap: wrap; }
.lk-conversations-section .lk-item-list { gap: 0; }
.lk-conversation-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
button.lk-text-action { padding: 4px 0; min-height: 36px; background: transparent; border: 0; box-shadow: none; color: var(--blue-dark); font-weight: 650; }
.lk-dialog { box-sizing: border-box; width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.lk-dialog::backdrop { background: rgb(20 29 48 / 48%); }
body:has(.lk-dialog[open]) { overflow: hidden; }
.lk-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.lk-dialog-head > div { min-width: 0; }
.lk-dialog-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.lk-dialog-head p, .lk-dialog-hint { margin: 6px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.lk-dialog-close { flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0; border: 0; background: var(--surface-soft); color: var(--ink); box-shadow: none; font-size: 24px; line-height: 1; }
.lk-dialog .lk-response-form, .lk-dialog .appeal-form { display: grid; gap: 18px; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.lk-dialog .appeal-form label:not(.ui-check) { display: grid; gap: 8px; min-width: 0; }
.lk-dialog .appeal-form .ui-check { display: flex; align-items: flex-start; gap: 10px; }
.lk-dialog .appeal-form input[type="checkbox"] { width: auto; margin-top: 4px; }
.lk-dialog .appeal-form textarea { min-height: 140px; }
.lk-dialog .appeal-form p, .lk-dialog .appeal-form small { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.lk-dialog input, .lk-dialog textarea, .lk-dialog select { box-sizing: border-box; max-width: 100%; min-width: 0; }
@media (max-width: 600px) {
  .lk-dialog { width: calc(100vw - 24px); padding: 20px 16px; max-height: calc(100dvh - 24px); }
  .lk-dialog-head h2 { font-size: 1.1rem; }
  .lk-dialog .lk-response-form { margin: 0; padding: 0; }
}

.lk-layout.lk-layout--wide { grid-template-columns: minmax(0, 1fr); }

.lk-workspace-link { display: flex; margin: 0 0 24px; }
