:root {
    --page: #f7f7f8;
    --surface: #ffffff;
    --surface-soft: #f1f1f3;
    --surface-muted: #eaeaed;
    --text: #111114;
    --text-soft: #565865;
    --text-faint: #8b8d97;
    --border: #dedee3;
    --border-strong: #cdced5;
    --accent: #635bff;
    --accent-soft: #f0efff;
    --success: #18794e;
    --success-soft: #e9f8f0;
    --warning: #996c00;
    --warning-soft: #fff6d8;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --header-height: 76px;
    --page-width: 1200px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 5px rgba(16, 24, 40, 0.04);
    --shadow-card: 0 12px 34px rgba(16, 24, 40, 0.055);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--page);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: #d9d6ff;
    color: var(--text);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.top-rule {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    height: 5px;
    background: #19363d;
}

.page-shell,
.header-inner,
.mega-inner,
.footer-inner,
.footer-bottom {
    width: min(calc(100% - 48px), var(--page-width));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.01);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    align-items: center;
    gap: 24px;
}

.brand {
    width: fit-content;
    color: #0b0b0d;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-item {
    display: contents;
}

.nav-link {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 11px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 550;
    transition:
        color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible{
    color: var(--text);
    background: #efeff1;
}

.nav-link.is-active {
    color: var(--text);
    background: #efeff1;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 20, 0.02);
}

.nav-link-simple.is-active {
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--text);
    border-radius: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-button,
.header-user {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.header-button:hover,
.header-user:hover {
    border-color: #b7b8c0;
    background: #fbfbfc;
    transform: translateY(-1px);
}

.header-button-muted {
    min-height: 38px;
    padding-inline: 13px;
    color: var(--text-soft);
    box-shadow: none;
}

.header-user {
    border: 0;
    box-shadow: none;
    background: transparent;
    color: var(--text-soft);
}

.mobile-menu-button {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: var(--surface);
}

.mobile-menu-button span {
    width: 17px;
    height: 1.5px;
    display: block;
    background: var(--text);
    transition: transform var(--transition);
}

/* Flash messages */
.flash-stack {
    position: fixed;
    top: calc(var(--header-height) + 18px);
    right: 22px;
    z-index: 150;
    width: min(390px, calc(100% - 44px));
    display: grid;
    gap: 10px;
}

.flash-message {
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    font-size: 14px;
}

.flash-message button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: 20px;
    line-height: 1;
}

.flash-success {
    border-color: #b8e1c9;
    background: var(--success-soft);
}

.flash-error {
    border-color: #f1c2be;
    background: var(--danger-soft);
}

/* Main page */
.site-main {
    min-height: 70vh;
}

.page-hero {
    padding-top: 92px;
    padding-bottom: 66px;
}

.compact-hero {
    padding-top: 70px;
    padding-bottom: 44px;
}

.page-kicker,
.card-kicker {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(42px, 5.1vw, 66px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.page-hero h1 span,
.page-hero h1 strong {
    display: block;
}

.page-hero h1 span {
    color: #555967;
    font-weight: 500;
}

.page-hero h1 strong {
    color: #070709;
    font-weight: 600;
}

.hero-support {
    max-width: 900px;
    margin-top: 44px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 38px;
}

.hero-support > p {
    max-width: 620px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.text-link,
.card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.text-link svg,
.card-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition);
}

.text-link:hover svg,
.content-card:hover .card-action svg {
    transform: translateX(3px);
}

.page-toolbar {
    min-height: 70px;
    padding-block: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid var(--border);
}

.filter-tabs {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.filter-button:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.filter-button.is-selected {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.toolbar-action,
.search-control {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.toolbar-action {
    padding: 0 17px;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
}

.toolbar-action svg,
.search-control svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-control {
    width: 242px;
    padding: 0 8px 0 14px;
    gap: 8px;
}

.search-control input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.search-control kbd {
    min-width: 27px;
    height: 27px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f3f3f5;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 11px;
}

.section-space {
    padding-top: 58px;
    padding-bottom: 74px;
}

.section-heading {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading > p {
    max-width: 510px;
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.surface-card,
.content-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
    gap: 28px;
}

.profile-card {
    min-height: 430px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.profile-card-copy {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-card-copy h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 550;
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.profile-card-copy > p:last-child {
    max-width: 590px;
    margin: 28px 0 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.profile-card-visual {
    min-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
    background: #fafafa;
}

.profile-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-facts {
    padding: 38px;
}

.quick-facts dl {
    margin: 0;
}

.quick-facts dl div {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.quick-facts dt {
    margin-bottom: 5px;
    color: var(--text-soft);
    font-size: 12px;
}

.quick-facts dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.content-card-grid {
    display: grid;
    gap: 28px;
}

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.career-grid {
    max-width: 920px;
}

.career-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.career-card .card-image {
    height: auto;
    min-height: 340px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
}

.career-card .card-body {
    min-height: 0;
    align-self: center;
    padding: 42px;
}

.content-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.content-card:hover {
    border-color: #c7c8cf;
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.075);
    transform: translateY(-3px);
}

.content-card[hidden] {
    display: none !important;
}

.card-image {
    height: 265px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.content-card:hover .card-image img {
    transform: scale(1.018);
}

.card-body {
    min-height: 225px;
    padding: 29px 30px 31px;
}

.card-meta,
.card-topline {
    color: var(--text-soft);
    font-size: 13px;
}

.card-meta {
    margin: 0 0 18px;
}

.card-topline {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-body h2,
.card-body h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.card-body > p:not(.card-meta):not(.card-subtitle) {
    margin: 14px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.card-subtitle {
    margin: 8px 0 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.card-action {
    margin-top: 24px;
    color: var(--accent);
    font-size: 13px;
}

.card-full-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.project-card .card-action {
    position: relative;
    z-index: 4;
}

.project-card .card-body {
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.project-details {
    margin: auto 0 0;
    padding-top: 22px;
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.project-details div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
}

.project-details dt,
.project-details dd {
    margin: 0;
}

.project-details dt {
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-details dd {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.role-section {
    padding-bottom: 110px;
}

.role-panel {
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 70px;
}

.role-panel h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 550;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.role-copy > p {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.role-actions,
.form-actions,
.calendar-toolbar-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.primary-button {
    border: 1px solid var(--text);
    background: var(--text);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.primary-button:hover {
    background: #29292e;
    transform: translateY(-1px);
}

.secondary-button {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.secondary-button:hover {
    border-color: #b7b8c0;
    background: #fbfbfc;
    transform: translateY(-1px);
}

.danger-button {
    border: 1px solid #e5b5b0;
    background: var(--danger-soft);
    color: var(--danger);
}

.icon-button {
    width: 42px;
    padding: 0;
    border: 1px solid var(--border-strong);
    background: var(--surface);
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-filter-state {
    min-height: 180px;
    padding: 36px;
    display: none;
    place-items: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-soft);
    text-align: center;
}

.empty-filter-state.is-visible {
    display: grid;
}

.empty-filter-state p {
    margin: 0;
}

/* Forms */
.form-page {
    min-height: calc(100vh - var(--header-height));
    padding-top: 88px;
    padding-bottom: 110px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(380px, 0.72fr);
    align-items: start;
    gap: 90px;
}

.wide-form-page {
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
}

.management-form-page {
    min-height: auto;
    padding-bottom: 40px;
}

.form-page-intro {
    position: sticky;
    top: calc(var(--header-height) + 36px);
}

.form-page-intro h1,
.form-page-intro h2 {
    margin: 0;
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 550;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.form-page-intro h2 {
    font-size: clamp(32px, 3.5vw, 48px);
}

.form-page-intro > p:last-child {
    max-width: 520px;
    margin: 25px 0 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.form-card {
    padding: 36px;
}

.form-heading {
    margin-bottom: 28px;
}

.form-heading h2 {
    margin: 0;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.event-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.field > span {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    outline: 0;
    background: var(--surface);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.field small {
    color: var(--text-soft);
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

/* Calendar */
.calendar-toolbar {
    align-items: center;
}

.calendar-toolbar-actions {
    margin-top: 0;
    justify-content: flex-end;
}

.calendar-summary {
    padding-top: 52px;
}

.event-summary-card {
    min-height: 190px;
    padding: 26px;
}

.event-summary-card h3 {
    margin: 18px 0 0;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.25;
}

.event-summary-card p {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.event-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.event-links a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.calendar-main {
    overflow-x: auto;
}

.calendar-weekdays,
.calendar-grid {
    min-width: 900px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--surface-soft);
}

.calendar-weekdays div {
    padding: 13px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.calendar-grid {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--border);
    gap: 1px;
}

.calendar-day {
    min-height: 152px;
    padding: 10px;
    background: var(--surface);
}

.calendar-day.outside-month {
    background: #fafafa;
    color: var(--text-faint);
}

.calendar-day.is-today > header span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
}

.calendar-day header {
    min-height: 29px;
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    font-weight: 600;
}

.calendar-day-events {
    display: grid;
    gap: 6px;
}

.calendar-event {
    padding: 8px;
    overflow: hidden;
    border-left: 3px solid #a8a9b0;
    border-radius: 6px;
    background: #f4f4f5;
}

.calendar-event time,
.calendar-event strong,
.calendar-event span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event time {
    color: var(--text-soft);
    font-size: 10px;
}

.calendar-event strong {
    margin-top: 2px;
    font-size: 11px;
    white-space: nowrap;
}

.calendar-event span {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 9px;
    white-space: nowrap;
}

.priority-important {
    border-left-color: #c58a00 !important;
}

.priority-mandatory {
    border-left-color: var(--danger) !important;
}

.week-grid {
    min-width: 980px;
    display: grid;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--border);
    gap: 1px;
}

.week-column {
    min-height: 430px;
    background: var(--surface);
}

.week-column > header {
    padding: 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.week-column > header span {
    color: var(--text-soft);
    font-size: 12px;
}

.week-column > header strong {
    font-size: 24px;
}

.week-events {
    padding: 10px;
    display: grid;
    gap: 8px;
}

.calendar-no-events {
    color: var(--text-faint);
    font-size: 12px;
}

.cancelled-section {
    padding-top: 30px;
}

.management-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.management-row {
    min-height: 128px;
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
}

.management-row:last-child {
    border-bottom: 0;
}

.management-row h2,
.management-row h3 {
    margin: 12px 0 0;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.management-row p {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.management-row small {
    color: var(--text-soft);
}

.management-row-actions,
.status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.status-pill {
    min-height: 24px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
}

.status-published {
    border-color: #b8e1c9;
    background: var(--success-soft);
    color: var(--success);
}

.status-pending {
    border-color: #ecd68d;
    background: var(--warning-soft);
    color: var(--warning);
}

.status-cancelled {
    border-color: #f1c2be;
    background: var(--danger-soft);
    color: var(--danger);
}

/* Footer */
.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    padding: 58px 0 52px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    gap: 70px;
}

.brand-footer {
    display: block;
    margin-bottom: 20px;
}

.footer-inner p {
    max-width: 470px;
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 11px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-soft);
    font-size: 14px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--text);
}

.footer-contact span {
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 650;
}

.footer-bottom {
    padding: 19px 0 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 12px;
}

.error-page {
    min-height: 65vh;
}

/* Reveal */
.javascript-enabled .page-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 580ms ease,
        transform 580ms ease;
}

.javascript-enabled .page-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet */
@media (max-width: 1050px) {
    .header-inner {
        grid-template-columns: 170px minmax(0, 1fr) 170px;
    }

    .desktop-nav {
        gap: 2px;
    }

    .nav-link {
        padding-inline: 11px;
    }

    .mega-inner {
        grid-template-columns: 1fr 1fr;
    }

    .mega-feature-card {
        display: none;
    }

    .three-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .quick-facts dl {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 28px;
    }

    .role-panel {
        gap: 40px;
    }

    .form-page {
        gap: 50px;
    }

    .calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-toolbar-actions {
        justify-content: flex-start;
    }
}

/* Mobile */
@media (max-width: 780px) {
    :root {
        --header-height: 68px;
    }

    .page-shell,
    .header-inner,
    .footer-inner,
    .footer-bottom {
        width: min(calc(100% - 36px), var(--page-width));
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .brand {
        font-size: 23px;
    }

    .desktop-nav,
    .header-actions > .header-button,
    .header-actions > .header-user,
    .header-actions > form {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
    }

    .mobile-menu-button[aria-expanded="true"] span:first-child {
        transform: translateY(3px) rotate(45deg);
    }

    .mobile-menu-button[aria-expanded="true"] span:last-child {
        transform: translateY(-3px) rotate(-45deg);
    }

    .page-hero {
        padding-top: 66px;
        padding-bottom: 46px;
    }

    .compact-hero {
        padding-top: 54px;
    }

    .page-hero h1 {
        font-size: clamp(39px, 11.5vw, 54px);
    }

    .hero-support {
        margin-top: 30px;
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-support > p {
        font-size: 15px;
    }

    .page-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding-block: 14px;
    }

    .filter-tabs {
        width: calc(100vw - 18px);
        margin-right: -18px;
        padding-right: 18px;
    }

    .search-control {
        width: 100%;
    }

    .toolbar-action {
        width: fit-content;
    }

    .section-space {
        padding-top: 42px;
        padding-bottom: 56px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .three-column {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .career-card {
        grid-template-columns: 1fr;
    }

    .career-card .card-image {
        height: 240px;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .career-card .card-body {
        padding: 28px 25px;
    }

    .profile-card-copy {
        padding: 34px 26px;
        order: 2;
    }

    .profile-card-visual {
        min-height: 250px;
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }

    .quick-facts {
        padding: 28px;
    }

    .quick-facts dl {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 240px;
    }

    .card-body {
        min-height: 0;
        padding: 25px;
    }

    .project-card .card-body {
        min-height: 0;
    }

    .role-panel {
        padding: 30px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .form-page,
    .wide-form-page {
        min-height: auto;
        padding-top: 56px;
        padding-bottom: 70px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .form-page-intro {
        position: static;
    }

    .form-card {
        padding: 26px;
    }

    .event-editor {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .calendar-toolbar-actions {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .calendar-today {
        display: none;
    }

    .management-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .management-row-actions {
        width: 100%;
    }

    .footer-inner {
        padding-block: 44px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-shell,
    .header-inner,
    .footer-inner,
    .footer-bottom {
        width: min(calc(100% - 28px), var(--page-width));
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .filter-button {
        min-height: 40px;
        padding-inline: 13px;
    }

    .quick-facts dl {
        display: block;
    }

    .flash-stack {
        right: 14px;
        width: calc(100% - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .top-rule,
    .site-header,
    .site-footer,
    .page-toolbar,
    .flash-stack {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page-shell {
        width: 100%;
    }

    .content-card,
    .surface-card,
    .management-list {
        box-shadow: none;
    }
}
