/* Styles for page content blocks. Loaded on the site AND inside the editor,
   so what you see while editing matches the live page. */

/* ---------- Layout of top-level blocks (front end) ---------- */
.entry-content > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1280px; }
.entry-content > .alignfull { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.ukm-main--page .entry-content > *:not(.alignfull):not(.alignwide) { padding-left: 24px; padding-right: 24px; max-width: 1168px; }
.ukm-main--page .entry-content > *:not(.alignfull):first-child { margin-top: clamp(40px, 6vw, 72px); }
.ukm-main--page .entry-content > *:not(.alignfull):last-child { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Sections ---------- */
.wp-block-group.ukm-section { padding: clamp(56px, 8vw, 104px) 24px; margin-top: 0; margin-bottom: 0; position: relative; }
.wp-block-group.is-style-ukm-mist { background: #F4F6FA; }
.wp-block-group.is-style-ukm-navy { background: #0B2545; color: #D5DEEA; overflow: hidden; }
.wp-block-group.is-style-ukm-navy::after { content: ""; position: absolute; right: -60px; bottom: -140px; width: 420px; height: 560px; background: url(../img/hand-white-gold.svg) no-repeat center / contain; opacity: .07; pointer-events: none; }
.wp-block-group.is-style-ukm-navy > * { position: relative; z-index: 1; }
.is-style-ukm-navy h1, .is-style-ukm-navy h2, .is-style-ukm-navy h3, .is-style-ukm-navy h4 { color: #fff; }
.is-style-ukm-navy a:not(.wp-block-button__link) { color: #EBD38E; }
.is-style-ukm-navy .is-style-ukm-eyebrow { color: #EBD38E; }
.is-style-ukm-navy .is-style-ukm-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #D5DEEA; }
.is-style-ukm-navy .is-style-ukm-check li::before { background: #C9A54C; }

/* ---------- Typography helpers ---------- */
.is-style-ukm-eyebrow { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 0.72rem !important; letter-spacing: 0.22em; text-transform: uppercase; color: #8C6A1F; margin-bottom: 0.9rem !important; display: flex; align-items: center; gap: 12px; }
.is-style-ukm-eyebrow::before { content: ""; flex: none; width: 34px; height: 2px; background: #C9A54C; }
.is-style-ukm-lead { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.6; color: #3A4A5C; max-width: 46em; }
.is-style-ukm-navy .is-style-ukm-lead { color: #D5DEEA; }
.ukm-section h2 { text-transform: uppercase; margin-top: 0; }
.ukm-narrow { max-width: 760px !important; }
.ukm-center { text-align: center; }
.ukm-center .is-style-ukm-eyebrow { justify-content: center; }
.ukm-center .is-style-ukm-lead { margin-left: auto; margin-right: auto; }
.ukm-center .wp-block-buttons { justify-content: center; }

/* Yellow "edit me" notes: visible reminders to replace draft text. Delete the block when done. */
.ukm-todo { background: #FFF6D6; border-left: 4px solid #F4C20D; padding: 12px 16px; font-size: 0.9rem; color: #5B4A00; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background .2s, color .2s, border-color .2s; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #EBD38E; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #0B2545; border: 2px solid #0B2545; padding: calc(1rem - 2px) calc(1.75rem - 2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #0B2545; color: #fff; }
.is-style-ukm-navy .wp-block-button.is-style-outline .wp-block-button__link, .wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.6); }
.is-style-ukm-navy .wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: #0B2545; border-color: #fff; }

/* ---------- Hero (Cover block) ---------- */
.wp-block-cover.ukm-hero { padding: clamp(64px, 9vw, 120px) 24px; align-items: center; overflow: hidden; }
.wp-block-cover.ukm-hero .wp-block-cover__background { background-image: linear-gradient(100deg, #071A33 0%, rgba(11,37,69,.94) 46%, rgba(29,78,137,.6) 100%); }
.wp-block-cover.ukm-hero::after { content: ""; position: absolute; right: 4%; top: 50%; transform: translateY(-46%); width: min(34vw, 430px); aspect-ratio: 424 / 560; background: url(../img/hand-white-gold.svg) no-repeat center / contain; opacity: .95; z-index: 1; pointer-events: none; }
.wp-block-cover.ukm-hero .wp-block-cover__inner-container { max-width: 1120px; width: 100%; margin: 0 auto; }
.ukm-hero h1 { color: #fff; max-width: 13em; margin: 0 0 1.4rem; text-transform: uppercase; font-size: clamp(2.3rem, 5.6vw, 4.3rem); line-height: 1.04; }
.ukm-hero h1 em, .ukm-hero h1 mark { font-style: normal; color: #EBD38E; background: none; }
.ukm-hero .is-style-ukm-eyebrow { color: #EBD38E; }
.ukm-hero .is-style-ukm-lead { color: #D5DEEA; max-width: 34em; margin-bottom: 2rem; }
@media (max-width: 900px) { .wp-block-cover.ukm-hero::after { opacity: .12; width: 300px; right: -40px; } }

/* ---------- Cards ---------- */
.wp-block-group.is-style-ukm-card { background: #fff; border: 1px solid #DDE3EC; border-top: 3px solid #C9A54C; padding: 30px 28px 32px; height: 100%; transition: transform .2s, box-shadow .2s; }
.wp-block-group.is-style-ukm-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,37,69,.10); }
.is-style-ukm-card h3 { margin: 0 0 0.6rem; }
.is-style-ukm-card p { margin: 0 0 0.8rem; font-size: 0.98rem; color: #3A4A5C; }
.is-style-ukm-navy .is-style-ukm-card p { color: #D5DEEA; }
.is-style-ukm-card > *:last-child { margin-bottom: 0; }
.ukm-grid.wp-block-columns { gap: 28px; margin-top: 2.5rem; margin-bottom: 0; }
.ukm-grid.wp-block-columns + .ukm-grid.wp-block-columns { margin-top: 28px; }

/* Numbered cards (principles, steps). Numbers are automatic. */
.ukm-numbered { counter-reset: ukm; }
.ukm-numbered .is-style-ukm-card { position: relative; padding-top: 74px; }
.ukm-numbered .is-style-ukm-card::before { counter-increment: ukm; content: counter(ukm, decimal-leading-zero); position: absolute; top: 22px; left: 28px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; color: #C9A54C; letter-spacing: -0.02em; }

/* Stat / pillar strip */
.ukm-pillars.wp-block-columns { gap: 0; margin: 0; border: 1px solid #DDE3EC; background: #fff; box-shadow: 0 24px 60px rgba(11,37,69,.10); }
.ukm-pillars > .wp-block-column { padding: 34px 32px; border-left: 1px solid #DDE3EC; }
.ukm-pillars > .wp-block-column:first-child { border-left: 0; }
.ukm-pillars h3 { text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.12em; margin: 0 0 0.5rem; }
.ukm-pillars p { margin: 0; font-size: 0.97rem; color: #3A4A5C; }
.wp-block-group.ukm-section.ukm-pull-up { padding-top: 0; padding-bottom: 0; margin-top: -56px; z-index: 3; }
@media (max-width: 781px) { .ukm-pillars > .wp-block-column { border-left: 0; border-top: 1px solid #DDE3EC; } .ukm-pillars > .wp-block-column:first-child { border-top: 0; } }

/* ---------- Images ---------- */
.wp-block-image.ukm-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wp-block-image.ukm-photo { position: relative; margin: 0; }
.wp-block-image.ukm-photo::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 46%; border-left: 3px solid #C9A54C; border-bottom: 3px solid #C9A54C; pointer-events: none; }
.ukm-split.wp-block-columns { gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: 0; }

/* ---------- Specialists ---------- */
.ukm-person .wp-block-image { margin: 0 0 18px; }
.ukm-person .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ukm-person h3 { margin: 0 0 4px; font-size: 1.12rem; }
.ukm-person .ukm-role { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8C6A1F; margin: 0 0 10px; }
.ukm-person p { font-size: 0.93rem; color: #3A4A5C; margin: 0 0 8px; }
.ukm-person { border-bottom: 1px solid #DDE3EC; padding-bottom: 18px; height: 100%; }

/* ---------- Quote / message ---------- */
.wp-block-quote { border: 0; border-left: 3px solid #C9A54C; margin: 0; padding: 4px 0 4px 28px; }
.wp-block-quote p { font-family: Newsreader, Georgia, serif; font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.4; color: #0B2545; margin: 0 0 1rem; }
.is-style-ukm-navy .wp-block-quote p { color: #fff; }
.wp-block-quote cite { font-family: Montserrat, sans-serif; font-style: normal; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8C6A1F; }
.is-style-ukm-navy .wp-block-quote cite { color: #EBD38E; }

/* ---------- Timeline ---------- */
.ukm-timeline { border-left: 2px solid #DDE3EC; margin-left: 8px; padding-left: 0; margin-top: 2.5rem; }
.ukm-timeline > .wp-block-group { position: relative; padding: 0 0 34px 34px; margin: 0; }
.ukm-timeline > .wp-block-group::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #C9A54C; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #C9A54C; }
.is-style-ukm-mist .ukm-timeline > .wp-block-group::before { box-shadow: 0 0 0 4px #F4F6FA, 0 0 0 5px #C9A54C; }
.ukm-timeline .ukm-year { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.5rem; color: #0B2545; line-height: 1; margin: 0 0 6px; }
.ukm-timeline h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ukm-timeline p:not(.ukm-year) { margin: 0; color: #3A4A5C; max-width: 44em; }

/* ---------- Lists ---------- */
ul.is-style-ukm-check { list-style: none; padding-left: 0; }
ul.is-style-ukm-check li { position: relative; padding-left: 26px; margin-bottom: 0.55rem; }
ul.is-style-ukm-check li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: #C9A54C; }
.ukm-facts { border-top: 1px solid #DDE3EC; margin-top: 2rem; }
.ukm-facts > .wp-block-columns { margin: 0; padding: 16px 0; border-bottom: 1px solid #DDE3EC; gap: 24px; }
.ukm-facts > .wp-block-columns p { margin: 0; }
.ukm-facts .ukm-label { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8C6A1F; padding-top: 4px; }

/* ---------- Details (FAQ) ---------- */
.wp-block-details { border-bottom: 1px solid #DDE3EC; padding: 18px 0; margin: 0; }
.wp-block-details summary { cursor: pointer; font-family: Montserrat, sans-serif; font-weight: 700; color: #0B2545; font-size: 1.02rem; }
.wp-block-details summary::marker { color: #C9A54C; }
.wp-block-details p { margin: 12px 0 0; color: #3A4A5C; }

/* ---------- Latest posts on home ---------- */
.wp-block-latest-posts.ukm-news-grid { gap: 28px; padding: 0; margin-top: 2.5rem; }
.wp-block-latest-posts.ukm-news-grid li { background: #fff; border: 1px solid #DDE3EC; border-top: 3px solid #C9A54C; padding: 26px 26px 28px; margin: 0; }
.wp-block-latest-posts.ukm-news-grid.columns-3 li { width: auto; flex: 1 1 280px; }
.wp-block-latest-posts.ukm-news-grid .wp-block-latest-posts__featured-image { margin: -26px -26px 20px; }
.wp-block-latest-posts.ukm-news-grid .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.wp-block-latest-posts.ukm-news-grid .wp-block-latest-posts__post-title { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: #0B2545; text-decoration: none; display: block; }
.wp-block-latest-posts.ukm-news-grid .wp-block-latest-posts__post-date { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8C6A1F; margin: 10px 0; }
.wp-block-latest-posts.ukm-news-grid .wp-block-latest-posts__post-excerpt { font-size: 0.96rem; color: #3A4A5C; margin: 0; }

/* ---------- Map ---------- */
.ukm-map iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.85); }

/* ---------- Separator ---------- */
.wp-block-separator { border: 0; border-top: 1px solid #DDE3EC; opacity: 1; }

/* ---------- Alignment fixes ---------- */
.is-style-ukm-lead { max-width: none; }
.ukm-section > .is-style-ukm-lead { padding-right: 26%; }
.wp-block-column > .is-style-ukm-lead, .ukm-center .is-style-ukm-lead { max-width: 46em; }
@media (max-width: 781px) { .ukm-section > .is-style-ukm-lead { padding-right: 0; } }
.ukm-section .wp-block-buttons { margin-top: 1.9rem; }
.is-style-ukm-card .wp-block-buttons { margin-top: 1.2rem; }
.wp-block-cover.ukm-hero .wp-block-cover__inner-container > * { max-width: min(100%, 700px); margin-left: 0; margin-right: auto; }
.wp-block-cover.ukm-hero::after { width: min(30vw, 380px); right: max(3%, calc((100vw - 1240px) / 2)); }
@media (max-width: 900px) { .wp-block-cover.ukm-hero::after { opacity: .12; width: 300px; right: -40px; } }
.wp-block-group.is-style-ukm-card { height: auto; }
.ukm-grid .wp-block-group.is-style-ukm-card { height: 100%; }
.wp-block-column > .is-style-ukm-card + .is-style-ukm-card { margin-top: 20px; }

/* =====================================================================
   v1.1 plain style: sentence-case headings, flat colours, no ornaments.
   ===================================================================== */
.ukm-section h2, .ukm-hero h1 { text-transform: none; letter-spacing: -0.01em; }
.wp-block-group.ukm-section { padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); }
.is-style-ukm-eyebrow { font-size: 0.85rem !important; letter-spacing: 0.04em; font-weight: 600; text-transform: none; margin-bottom: 0.5rem !important; }
.is-style-ukm-eyebrow::before { display: none; }
.wp-block-group.is-style-ukm-navy::after { display: none; }
.wp-block-cover.ukm-hero { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.wp-block-cover.ukm-hero .wp-block-cover__background { background-image: none; }
.wp-block-cover.ukm-hero::after { width: min(22vw, 260px); }
.ukm-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; font-weight: 700; }
.wp-block-group.is-style-ukm-card { border: 1px solid #DDE3EC; border-radius: 6px; padding: 26px 26px 28px; transition: none; }
.wp-block-group.is-style-ukm-card:hover { transform: none; box-shadow: none; }
.ukm-numbered .is-style-ukm-card { padding-top: 62px; }
.ukm-numbered .is-style-ukm-card::before { content: counter(ukm) "."; font-size: 1.25rem; font-weight: 700; color: #1D4E89; top: 26px; left: 26px; }
.ukm-pillars.wp-block-columns { box-shadow: none; border-radius: 6px; }
.ukm-pillars h3 { text-transform: none; letter-spacing: 0; font-size: 1.15rem; }
.wp-block-group.ukm-section.ukm-pull-up { margin-top: 0; padding-top: clamp(32px, 4vw, 48px); }
.wp-block-image.ukm-photo::after { display: none; }
.wp-block-image.ukm-photo img, .ukm-person .wp-block-image img { border-radius: 6px; }
.ukm-person .ukm-role, .ukm-facts .ukm-label { text-transform: none; letter-spacing: 0; font-size: 0.88rem; font-weight: 600; }
.wp-block-quote cite { text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 600; }
.wp-block-quote p { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.ukm-timeline > .wp-block-group::before { box-shadow: none; width: 12px; height: 12px; left: -7px; top: 7px; background: #1D4E89; }
.is-style-ukm-mist .ukm-timeline > .wp-block-group::before { box-shadow: none; }
.ukm-timeline .ukm-year { font-size: 1.15rem; font-weight: 700; }
.wp-block-latest-posts.ukm-news-grid li { border: 1px solid #DDE3EC; border-radius: 6px; }
.wp-block-latest-posts.ukm-news-grid .wp-block-latest-posts__post-title { font-weight: 700; }
.wp-block-latest-posts.ukm-news-grid .wp-block-latest-posts__post-date { text-transform: none; letter-spacing: 0; font-size: 0.85rem; font-weight: 500; color: #3A4A5C; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1.5px; padding: calc(0.8rem - 1.5px) calc(1.4rem - 1.5px); }
.is-style-ukm-lead { max-width: var(--wp--style--global--content-size, 1120px); }
.wp-block-column > .is-style-ukm-lead, .ukm-center .is-style-ukm-lead { max-width: 46em; }
.is-style-ukm-navy h3 + .wp-block-quote { margin-top: 1rem; }
