/* V1 site shell: one Collective identity, real pages, and the native WordPress content flow. */
:root {
    --undt-navy: #174778;
    --undt-blue: #087ba2;
    --undt-red: #a52b25;
    --undt-line: #dce5ec;
    --undt-paper: #f5f8fa;
    --undt-soft-blue: #eef4f9;
    --undt-soft-sand: #f8f4ee;
    --undt-soft-sage: #f0f5f2;
}

html { scroll-padding-top: 24px; }
body { color: #273a4a; }
.private-link { color: var(--undt-red) !important; }
.private-link .icon { width: 17px; height: 17px; }

/* The logo, palette, photo and Collective hero remain the v17 assets. */
.v1-header { border-bottom: 0; background: #fff; }
.v1-header .header-top {
    min-height: 91px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.v1-header .brand { flex: 0 0 auto; display: flex; align-items: center; }
.v1-header .brand .custom-logo { width: 218px; max-width: 24vw; max-height: 74px; object-fit: contain; }
.v1-header .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.v1-header .header-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #dfe7ed;
    border-radius: 3px;
    color: #294b68;
    background: #fff;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}
.v1-header .header-contact { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.v1-header .header-member { border-color: #ecd9d7; background: #fffafa; }
.v1-header .header-member .icon { width: 16px; height: 16px; }
.v1-header .join-button { min-height: 42px; padding: 9px 17px; background: var(--undt-navy); border-color: var(--undt-navy); }
.v1-header .header-navigation {
    display: block;
    width: 100%;
    border-top: 1px solid var(--undt-line);
    background: #fff;
}
.v1-header .header-navigation-inner { display: block; }
.v1-header .header-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 25px;
    min-height: 55px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.v1-header .header-nav-list li { margin: 0; padding: 0; }
.v1-header .header-nav-list a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: #334e66;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}
.v1-header .header-nav-list a:hover,
.v1-header .header-nav-list a[aria-current="page"] { color: var(--undt-navy); text-decoration: underline; text-underline-offset: 5px; }
.v1-header .mobile-only-utility { display: none; }
.v1-header .menu-toggle { display: none; }

/* Page headings and Gutenberg content use the same quiet editorial frame. */
.content-page .page-intro { padding-top: 25px; padding-bottom: 40px; }
.content-page .page-intro h1 { max-width: 850px; color: #173d63; }
.content-page .entry-content > *:not(.alignfull):not(.alignwide) { margin-inline: auto; }
.content-page .entry-content > .wp-block-group:not(.alignfull):not(.alignwide) { max-width: var(--max, 1240px); }
.content-page .entry-content > .wp-block-group.section,
.content-page .entry-content > .wp-block-group.pale-section {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}
.content-page .entry-content > .wp-block-group.section > .wp-block-group.shell,
.content-page .entry-content > .wp-block-group.pale-section > .wp-block-group.shell { margin-inline: auto; }
.content-page .entry-content > .wp-block-paragraph:not(.alignfull):not(.alignwide),
.content-page .entry-content > .wp-block-heading:not(.alignfull):not(.alignwide),
.content-page .entry-content > .wp-block-list:not(.alignfull):not(.alignwide),
.content-page .entry-content > .wp-block-quote:not(.alignfull):not(.alignwide) {
    width: min(760px, calc(100% - 48px));
}
.content-page .entry-content > .wp-block-heading:not(.alignfull) { margin-top: 38px; }
.content-page .entry-content > .wp-block-heading + p { margin-top: 12px; }
.content-page .entry-content > .wp-block-buttons { width: min(760px, calc(100% - 48px)); margin: 28px auto; }
.entry-content .wp-block-image img { border-radius: 2px; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry-content .wp-block-table th,
.entry-content .wp-block-table td { padding: 14px 16px; border: 1px solid var(--undt-line); text-align: left; }
.entry-content .wp-block-table th { background: var(--undt-soft-blue); color: #173d63; }
.entry-content .wp-block-separator { max-width: 760px; border-color: var(--undt-line); }

/* Reusable, low-emphasis callouts and numbered steps. */
.undt-soft-panel {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #dbe6ef;
    border-left: 4px solid #e5a66a;
    background: var(--undt-soft-blue);
    color: #2b4052;
}
.undt-soft-panel > :last-child { margin-bottom: 0; }
.undt-soft-panel h2,
.undt-soft-panel h3 { color: #173d63; }
.undt-step-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-block: 30px;
}
.undt-step-card {
    min-width: 0;
    padding: 24px 23px;
    border: 1px solid #dfe7ed;
    border-top: 3px solid #8aa9c2;
    background: var(--undt-soft-blue);
}
.undt-step-card:nth-child(3n + 2) { border-top-color: #d0b58f; background: var(--undt-soft-sand); }
.undt-step-card:nth-child(3n + 3) { border-top-color: #8eafa0; background: var(--undt-soft-sage); }
.undt-step-number {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fff;
    color: #274f73;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.undt-step-card h2,
.undt-step-card h3 { margin-bottom: 12px; color: #173d63; font-size: 21px; line-height: 1.25; }
.undt-step-card p { margin-bottom: 0; color: #526576; font-size: 15px; line-height: 1.65; }

/* News, events, collection and article listings. */
.archive-page { padding-top: 10px; padding-bottom: 86px; }
.archive-heading { padding-bottom: 36px; }
.archive-heading h1 { color: #173d63; }
.archive-description { max-width: 740px; }
.post-list { display: grid; gap: 20px; max-width: 980px; }
.post-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.68fr) 1fr;
    gap: 26px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--undt-line);
    background: #fff;
}
.post-card-image { display: block; overflow: hidden; background: var(--undt-paper); }
.post-card-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card-copy h2 { margin-bottom: 12px; color: #173d63; font-size: 28px; line-height: 1.2; }
.post-card-copy h2 a { color: inherit; text-decoration: none; }
.post-card-copy h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-card-copy > p:not(.article-meta) { color: #526576; font-size: 15px; }
.article-meta { margin-bottom: 10px; color: #647789; font-size: 13px; }
.event-details { display: flex; flex-wrap: wrap; gap: 12px 30px; max-width: 920px; margin: 16px 0 0; padding: 16px 20px; border: 1px solid var(--undt-line); background: var(--undt-soft-blue); }
.event-details > div { min-width: 145px; }
.event-details dt { color: #526b80; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.event-details dd { margin: 4px 0 0; color: #294b68; font-size: 15px; }
.article-heading .article-featured-image { margin-top: 28px; max-width: 920px; }
.article-heading .article-featured-image img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body { max-width: 780px; padding-bottom: 80px; }
.article-body > * { max-width: 100%; }
.article-body h2 { margin-top: 42px; color: #173d63; font-size: clamp(28px, 3vw, 38px); }
.article-body h3 { margin-top: 30px; color: #173d63; font-size: 24px; }
.article-body ul,
.article-body ol { padding-left: 1.35em; }
.article-body li { padding-left: 5px; margin-block: 10px; }
.site-pagination,
.navigation.pagination { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px; }
.site-pagination .page-numbers,
.navigation.pagination .page-numbers { display: inline-grid; min-width: 42px; min-height: 42px; place-items: center; padding: 5px 12px; border: 1px solid var(--undt-line); color: var(--undt-navy); text-decoration: none; }
.site-pagination .current,
.navigation.pagination .current { background: var(--undt-navy); color: #fff; }
.empty-state { max-width: 760px; margin-block: 12px 50px; }
.not-found-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* Shared form treatment for core blocks, login and native form plugins. */
.entry-content form:not(.search-form) { color: #2b4052; }
.form-field { margin-bottom: 22px; }
.form-field label,
.entry-content form:not(.search-form) label { display: block; margin-bottom: 7px; color: #30485e; font-size: 14px; font-weight: 600; }
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.entry-content select,
.entry-content textarea,
.login-form input:not([type="checkbox"]):not([type="submit"]),
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #a7b9c7;
    border-radius: 2px;
    background: #fff;
    color: #273a4a;
}
.entry-content textarea,
.form-field textarea { min-height: 150px; resize: vertical; }
.entry-content input[type="checkbox"],
.entry-content input[type="radio"],
.form-field input[type="checkbox"],
.form-field input[type="radio"] { width: 20px; height: 20px; accent-color: var(--undt-blue); vertical-align: middle; }
.entry-content input[type="file"] { max-width: 100%; padding: 8px 0; }
.entry-content button[type="submit"],
.entry-content input[type="submit"],
.entry-content .wp-element-button,
.entry-content .wpcf7-submit,
.entry-content .wpforms-submit {
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--undt-navy);
    border-radius: 2px;
    background: var(--undt-navy);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.entry-content button[type="submit"]:hover,
.entry-content input[type="submit"]:hover,
.entry-content .wpcf7-submit:hover,
.entry-content .wpforms-submit:hover { background: #0f3559; }
.entry-content fieldset { margin: 0 0 22px; padding: 20px; border: 1px solid var(--undt-line); }
.entry-content legend { padding-inline: 8px; color: #173d63; font-weight: 600; }
.entry-content .notice,
.entry-content .form-message,
.entry-content .wpcf7-response-output,
.entry-content .wpforms-confirmation-container-full { padding: 16px 20px; border: 1px solid #dbe6ef; border-left: 4px solid #e5a66a; background: var(--undt-soft-blue); }
.entry-content .error,
.entry-content .wpcf7-not-valid-tip,
.entry-content .wpforms-error { color: #80201c; }
.entry-content .required,
.entry-content .required-field-message { color: var(--undt-red); }

/* The legacy V1 components remain available to the member-area and access templates. */
.login-layout { max-width: 1030px; }
.login-preview-entry { margin-top: 23px; padding: 17px 18px; border: 1px solid #dbe6ef; background: var(--undt-soft-blue); }
.login-preview-entry p { margin-bottom: 8px; color: #526576; font-size: 14px; }
.member-sidebar a.private-link,
.member-main a.private-link { color: var(--undt-red); }
.member-layout { align-items: start; }
.member-sidebar a[aria-current="page"] { background: var(--undt-soft-blue); color: var(--undt-navy); }
.member-box .private-link,
.private-edito a,
.undt-private-link { color: var(--undt-red); }
.dossier-layout { align-items: start; }
.dossier-body > :first-child { margin-top: 0; }
.dossier-body .contact-box,
.member-box { background-color: #f6f8fa; }

.v1-footer { padding-top: 46px; background: #f8fafb; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 38px; padding-bottom: 36px; }
.footer-identity .footer-logo { display: inline-flex; max-width: 210px; }
.footer-identity .footer-logo img { width: 100%; height: auto; }
.footer-identity p { max-width: 260px; margin: 16px 0 0; color: #5b6e7e; font-size: 14px; }
.v1-footer .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.v1-footer .footer-links h2 { margin: 6px 0 9px; color: #173d63; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.v1-footer .footer-links a { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; color: #53697b; font-size: 13px; text-decoration: none; }
.v1-footer .footer-links a:hover { color: var(--undt-navy); text-decoration: underline; text-underline-offset: 4px; }
.v1-footer .footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--undt-line); color: #6a7c8b; font-size: 12px; }

@media (max-width: 1100px) {
    .v1-header .header-top { gap: 16px; }
    .v1-header .brand .custom-logo { width: 190px; }
    .v1-header .header-actions { gap: 7px; }
    .v1-header .header-action { padding-inline: 9px; font-size: 12px; }
    .v1-header .header-nav-list { gap: 8px 16px; }
    .v1-header .header-nav-list a { font-size: 13px; }
    .footer-grid { gap: 24px; }
}

@media (max-width: 900px) {
    .v1-header .header-top { min-height: 78px; }
    .v1-header .brand .custom-logo { width: 180px; max-width: 40vw; max-height: 62px; }
    .v1-header .header-actions { margin-left: auto; }
    .v1-header .header-actions > :not(.header-contact) { display: none; }
    .v1-header .header-action.header-contact { min-height: 44px; padding-inline: 8px; font-size: 13px; }
    .v1-header .menu-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; padding: 8px 0 8px 10px; border: 0; background: transparent; color: var(--undt-navy); font-size: 14px; cursor: pointer; }
    .v1-header .menu-lines { display: block; width: 21px; height: 13px; border-block: 1.5px solid currentColor; }
    .v1-header .header-navigation { border-top: 1px solid var(--undt-line); }
    .v1-header .header-nav-list { display: grid; grid-template-columns: 1fr; gap: 0; min-height: 0; padding-block: 7px; }
    .v1-header .header-nav-list li { border-bottom: 1px solid #e8edf1; }
    .v1-header .header-nav-list li:last-child { border-bottom: 0; }
    .v1-header .header-nav-list a { display: flex; width: 100%; min-height: 48px; padding: 9px 4px; font-size: 15px; }
    .v1-header .mobile-only-utility { display: block; }
    .v1-header .mobile-only-utility .mobile-join { color: var(--undt-navy); font-weight: 700; }
    .v1-header .header-navigation { display: block; }
    html.js .v1-header .header-navigation { display: none; }
    html.js .v1-header .header-navigation.is-open { display: block; }
    html:not(.js) .v1-header .menu-toggle { display: none; }
    .undt-step-cards { grid-template-columns: 1fr; gap: 14px; }
    .undt-step-card { padding: 21px; }
    .login-layout { grid-template-columns: 1fr; gap: 35px; }
    .login-aside { padding-top: 0; }
    .member-layout,
    .dossier-layout { grid-template-columns: 1fr; gap: 28px; }
    .member-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; border-right: 0; border-bottom: 1px solid var(--undt-line); padding: 0 0 18px; }
    .member-sidebar .eyebrow,
    .member-sidebar .sidebar-foot { grid-column: 1 / -1; }
    .member-sidebar .sidebar-foot { margin-top: 7px; }
    .toc { position: static; padding-top: 0; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .v1-header .header-top { min-height: 72px; gap: 8px; }
    .v1-header .brand .custom-logo { width: 155px; max-width: 42vw; max-height: 56px; }
    .v1-header .header-actions { gap: 0; }
    .v1-header .header-action.header-contact { font-size: 12px; }
    .v1-header .menu-toggle { gap: 7px; font-size: 13px; }
    .page-intro { padding-bottom: 30px; }
    .content-page .page-intro h1 { font-size: clamp(38px, 10vw, 52px); }
    .content-page .entry-content > .wp-block-paragraph:not(.alignfull):not(.alignwide),
    .content-page .entry-content > .wp-block-heading:not(.alignfull):not(.alignwide),
    .content-page .entry-content > .wp-block-list:not(.alignfull):not(.alignwide),
    .content-page .entry-content > .wp-block-quote:not(.alignfull):not(.alignwide),
    .content-page .entry-content > .wp-block-buttons { width: calc(100% - 40px); }
    .post-card { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
    .post-card-image img { aspect-ratio: 16 / 9; }
    .post-card-copy h2 { font-size: 24px; }
    .archive-page { padding-bottom: 58px; }
    .article-heading .article-featured-image img { max-height: 330px; }
    .article-body { padding-bottom: 60px; }
    .member-sidebar { grid-template-columns: 1fr; }
    .member-bottom { grid-template-columns: 1fr; gap: 24px; }
    .dossier-grid { grid-template-columns: 1fr; }
    .form-bottom { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 27px 20px; }
    .footer-identity { grid-column: 1 / -1; }
    .footer-identity .footer-logo { max-width: 185px; }
    .v1-footer .footer-bottom { flex-direction: column; gap: 7px; }
}

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