/*
 * The page builder's reference bands.
 *
 * Loaded on every page, after apiit.css and mediaquery.css, so it builds on
 * the site rather than fighting it. Everything here is a band the builder
 * can place that the site had no shared stylesheet for: the event intro,
 * the picture tiles, the info cards, the offer band, the link cards, the
 * save-the-date card, the quote cards, the pathway steps and the two-colour
 * band. The rules are lifted from public/assets/css/open-day.css and
 * public/assets/css/alsinc.css - the pages those bands were first built on -
 * and renamed with a blk_ prefix so a band placed anywhere matches the one
 * on the page it came from.
 *
 * Anything the site already has (buttons, headings, the four red squares,
 * the form controls) is used as it is and is NOT restyled here.
 *
 * apiit.css sets p { font-size: 14px !important } for the whole site, so no
 * copy wrapper here sets a size: an editor's paragraphs read at 14px in these
 * bands exactly as they do on every other page.
 *
 * Lists are always two class names deep (.blk_chips li.blk_chip): apiit.css
 * has `.container ul li { display: list-item; list-style-type: disc;
 * margin-bottom: 20px }` for editor-written prose, which beats one class.
 */
:root {
    --blk-red: #C40000;
    --blk-navy: #002366;
    --blk-teal: #00B1A5;
    --blk-ink: #212529;
    --blk-muted: #5b6570;
    --blk-rule: #e3e6ea;
    --blk-radius: 6px;
}

/* An anchor wrapping a button, which is how every call to action on this
   site is written. inline-block so two sit side by side and the link is
   exactly the size of the button rather than the width of the row. */
.blk_btn_link {
    display: inline-block;
    text-decoration: none;
}

/* ------------------------------------------------------------ centred */
.blk_centre {
    text-align: center;
}
.blk_centre p {
    margin-left: auto;
    margin-right: auto;
    max-width: 76ch;
}
.blk_centre .blk_pills {
    justify-content: center;
}
.blk_centre_btn .custom_white_btn,
.blk_centre_btn .custom_black_btn {
    margin-left: auto;
    margin-right: auto;
}

/* A small teal line above a heading ("Your journey"). */
.blk_eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blk-teal);
    margin-bottom: 8px;
}

/* ------------------------------------------------------------- pills */
.blk_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.blk_pills li.blk_pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin-bottom: 0;
    padding: 7px 15px;
    border: 1px solid rgba(0, 35, 102, 0.16);
    border-radius: 999px;
    background: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--blk-navy);
    box-shadow: 0 2px 10px rgba(0, 35, 102, 0.05);
}
.blk_pills li.blk_pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blk-red);
}

/* -------------------------------------------------------- event intro */
.blk_event .heading {
    font-size: 52px;
    line-height: 58px;
    margin-bottom: 18px;
}
.blk_event_intro {
    margin-bottom: 30px;
}
.blk_event_intro p:last-child {
    margin-bottom: 0;
}
.blk_event_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}
/* The campaign artwork. Portrait, so it is capped rather than stretched. */
.blk_poster {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-left: auto;
    border-radius: var(--blk-radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
/* Date, time and place, as chips under the buttons. */
.blk_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.blk_chips li.blk_chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    padding: 9px 20px 9px 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    color: var(--blk-navy);
}
.blk_chips li.blk_chip::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blk-red);
}

/* ------------------------------------------------------ picture tiles */
.blk_tiles_intro {
    max-width: 56ch;
}
.blk_tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--blk-radius);
    background: #ffffff;
    border: 1px solid var(--blk-rule);
    min-height: 300px;
    height: 100%;
}
.blk_tile_no {
    position: absolute;
    top: 10px;
    left: 16px;
    z-index: 2;
    font-size: 46px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 35, 102, 0.55);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.45);
}
.blk_tile:not(.blk_tile_plain) .blk_tile_no {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.blk_tile_img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blk_tile:hover .blk_tile_img {
    transform: scale(1.06);
}
.blk_tile_body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
}
.blk_tile_body .sub_main_heading {
    font-size: 22px;
    line-height: 24px;
    margin: 0;
    color: #ffffff;
}
.blk_tile_copy {
    color: rgba(255, 255, 255, 0.86);
    margin-top: 6px;
    font-size: 14px;
    line-height: 20px;
}
/* A tile with no picture: the words are the tile. */
.blk_tile_plain {
    display: flex;
    align-items: flex-end;
    min-height: 220px;
}
.blk_tile_plain .blk_tile_body {
    position: static;
    width: 100%;
    background: none;
}
.blk_tile_plain .blk_tile_body .sub_main_heading {
    color: var(--blk-navy);
}
.blk_tile_plain .blk_tile_copy {
    color: var(--blk-muted);
}
/* The description lifts on hover where there is a pointer, and is simply
   shown where there is not - a phone has no hover. */
@media (hover: hover) and (pointer: fine) {
    .blk_tile:not(.blk_tile_plain) .blk_tile_copy {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
    }
    .blk_tile:not(.blk_tile_plain):hover .blk_tile_copy,
    .blk_tile:not(.blk_tile_plain):focus-within .blk_tile_copy {
        max-height: 160px;
        opacity: 1;
        margin-top: 6px;
    }
}

/* --------------------------------------------------------- info cards */
.blk_info_card {
    padding: 26px 24px;
    border: 1px solid var(--blk-rule);
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blk_info_card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(0, 35, 102, 0.12);
}
.blk_info_card.is-red_top {
    border-top: 4px solid var(--blk-red);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 35, 102, 0.06);
}
.blk_info_card.is-teal_top {
    border-top: 3px solid var(--blk-teal);
}
.blk_info_rule {
    display: block;
    width: 42px;
    height: 4px;
    background: var(--blk-red);
    margin-bottom: 16px;
}
.blk_info_label {
    display: block;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--blk-red);
    margin-bottom: 8px;
}
/* Navy explicitly: on a navy band the wrapper prints white, and these cards
   are white. */
.blk_info_card .sub_main_heading {
    font-size: 24px;
    line-height: 26px;
    margin-top: 0;
    color: var(--blk-navy);
}
.blk_info_copy {
    color: var(--blk-muted);
    font-size: 14px;
    line-height: 20px;
}

/* --------------------------------------------------------- offer band */
.blk_offer_label {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 14px;
}
/* A div, not a p: apiit.css sets every p to 14px with !important. */
.blk_offer_figure {
    font-size: 130px;
    line-height: 0.95;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}
.blk_offer_headline {
    margin: 6px 0 14px;
}
.blk_offer_terms {
    color: rgba(255, 255, 255, 0.86);
    max-width: 52ch;
    font-size: 14px;
    line-height: 20px;
}
/* The call to action, on white: a button on a red ground is either red on
   red or a second colour fighting it. */
.blk_offer_card {
    background: #ffffff;
    color: var(--blk-ink);
    border-radius: var(--blk-radius);
    padding: 30px 28px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}
.blk_offer_card .sub_main_heading {
    margin: 0;
    color: var(--blk-navy);
}
.blk_offer_card_line {
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blk-muted);
}

/* --------------------------------------------------------- link cards */
.blk_links_intro {
    margin-bottom: 20px;
}
.blk_link {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--blk-rule);
    border-radius: var(--blk-radius);
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.blk_link:hover,
a.blk_link:focus-visible {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(0, 35, 102, 0.14);
}
a.blk_link:focus-visible {
    outline: 3px solid var(--blk-navy);
    outline-offset: 2px;
}
.blk_link_img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}
/* One red square, the site's own mark at the size the four are drawn. */
.blk_link::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--blk-red);
}
.blk_link_body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 34px 20px 18px;
}
.blk_link_text {
    min-width: 0;
}
.blk_link_title {
    display: block;
    font-size: 21px;
    line-height: 24px;
    margin: 0;
    text-transform: uppercase;
    color: var(--blk-navy);
}
.blk_link_desc {
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--blk-ink);
}
/* The arrow: a red tile with a white diagonal, drawn rather than typed. */
.blk_link_arrow {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--blk-red);
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.blk_link_arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #ffffff;
    transform: translate(-50%, -50%) rotate(-45deg);
}
.blk_link_arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    transform: translate(-3px, -6px);
}
a.blk_link:hover .blk_link_arrow,
a.blk_link:focus-visible .blk_link_arrow {
    transform: translate(3px, -3px);
    background: var(--blk-navy);
}

/* ------------------------------------------------- video in text+image */
.blk_video_frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px 0 20px 0;
    overflow: hidden;
    background: #000000;
}
.blk_video_frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------------------------- arched picture */
.blk_arch {
    border-radius: 999px 999px 0 0;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* ------------------------------------------------------ save the date */
.blk_where_card {
    background: var(--blk-navy);
    border-radius: 20px 0 20px 0;
    padding: 34px 32px;
    color: #ffffff;
}
.blk_where_date {
    font-size: 42px;
    line-height: 48px;
    text-transform: none;
    margin: 6px 0 4px;
}
.blk_where_list {
    margin: 18px 0 26px;
}
.blk_where_row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.blk_where_row:last-child {
    border-bottom: 0;
}
.blk_where_row dt {
    font-size: 20px;
    line-height: 26px;
    font-weight: 500;
    color: #ffffff;
}
.blk_where_row dd {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.72);
}
.blk_where_row dt a {
    color: #ffffff;
    text-decoration: none;
}
.blk_where_row dt a:hover {
    color: var(--blk-teal);
}
.blk_map {
    position: relative;
    height: 100%;
    min-height: 420px;
    border-radius: 20px 0 20px 0;
    overflow: hidden;
}
.blk_map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.blk_where_img {
    border-radius: 20px 0 20px 0;
    object-fit: cover;
    max-height: 420px;
}

/* --------------------------------------------------- registration form */
/* The form partial (include/open-day-registration-form) keeps its Open Day
   class names; these are its rules from open-day.css, so the form reads the
   same wherever the block places it. On /open-day both files load and the
   rules are identical. */
.open_day_register {
    padding: 70px 0;
    background: #f6f7f9;
}
.open_day_register_intro {
    color: var(--blk-muted);
}
.open_day_register_points ul {
    margin: 22px 0 0;
    padding: 0;
}
.open_day_register_points ul li {
    position: relative;
    display: block;
    list-style: none;
    margin-bottom: 14px;
    padding-left: 32px;
}
.open_day_register_points ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 7px;
    height: 12px;
    border: solid var(--blk-red);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.open_day_register_call {
    margin-top: 26px;
    padding: 18px 22px;
    border: 1px solid var(--blk-rule);
    border-radius: 20px 0 20px 0;
    background: #ffffff;
}
.open_day_register_call strong {
    display: block;
    color: var(--blk-navy);
    margin-bottom: 4px;
}
.open_day_register_call a {
    font-weight: 600;
    color: var(--blk-red);
    text-decoration: none;
}
.open_day_register_call a:hover {
    text-decoration: underline;
}
.open_day_form_card {
    background: #ffffff;
    border-radius: 20px 0 20px 0;
    padding: 34px 32px 30px;
    box-shadow: 0 18px 44px rgba(0, 35, 102, 0.10);
}
.open_day_form_heading {
    text-transform: none;
    font-size: 26px;
    line-height: 32px;
    color: var(--blk-navy);
    margin: 0 0 6px;
}
.open_day_form_note {
    color: var(--blk-muted);
    margin-bottom: 24px;
}
.open_day_register .form-control,
.open_day_register .form-select {
    padding: 12px 14px;
    border-radius: 0;
}
.open_day_register .form-control:focus,
.open_day_register .form-select:focus {
    border-color: var(--blk-navy);
    box-shadow: 0 0 0 0.18rem rgba(0, 35, 102, 0.12);
}
.open_day_register .is-invalid {
    border-color: var(--blk-red);
}
.open_day_register .form-label {
    font-size: 14px;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}
.open_day_register .form-check-input:checked {
    background-color: var(--blk-navy);
    border-color: var(--blk-navy);
}

/* -------------------------------------------------------- quote cards */
.blk_quote {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 35, 102, 0.1);
    border-radius: 14px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 35, 102, 0.06);
}
.blk_quote_mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.4rem;
    line-height: 0.6;
    color: var(--blk-teal);
    opacity: 0.35;
    margin-bottom: 0.3rem;
}
.blk_quote_body {
    color: #333333;
    margin-bottom: 1rem;
}
.blk_quote_pull {
    font-weight: 700;
    color: var(--blk-navy);
    margin-bottom: 1.1rem;
}
.blk_quote_who {
    margin-top: auto;
}
.blk_quote_name {
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
    color: var(--blk-navy);
    margin: 0;
}
.blk_quote_inst {
    color: #666666;
    margin: 0.15rem 0 0;
}
.blk_quote_badge {
    display: inline-block;
    margin-top: 0.7rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(196, 0, 0, 0.08);
    color: var(--blk-red);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ------------------------------------------------------ pathway steps */
.blk_step {
    padding: 26px 24px;
    border: 1px solid var(--blk-rule);
    background: #ffffff;
    color: var(--blk-ink);
}
.blk_step.is-first {
    background: var(--blk-red);
    border-color: var(--blk-red);
    color: #ffffff;
}
.blk_step.is-last {
    background: #eef8f6;
    border-color: #b9e3dd;
}
.blk_step_label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blk-red);
    margin-bottom: 8px;
}
.blk_step.is-first .blk_step_label {
    color: rgba(255, 255, 255, 0.85);
}
.blk_step.is-last .blk_step_label {
    color: var(--blk-teal);
}
.blk_step_title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--blk-navy);
}
.blk_step.is-first .blk_step_title {
    color: #ffffff;
}
.blk_step_copy {
    font-size: 14px;
    line-height: 20px;
    color: var(--blk-muted);
}
.blk_step.is-first .blk_step_copy {
    color: rgba(255, 255, 255, 0.9);
}
.blk_steps_note {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid #d6e2f5;
    background: #eef3fb;
    font-size: 14px;
    line-height: 20px;
    color: var(--blk-ink);
}
.blk_steps_note::before {
    content: "\2192";
    margin-right: 10px;
    color: var(--blk-navy);
}

/* ---------------------------------------------------- two-colour band */
.blk_split {
    display: flex;
    flex-wrap: wrap;
}
.blk_split_half {
    flex: 1 1 50%;
    min-width: 300px;
    padding: 70px 40px;
    color: #ffffff;
}
.blk_split_inner {
    max-width: 600px;
}
.blk_split_half.is-left .blk_split_inner {
    margin-left: auto;
}
.blk_split_half.is-right .blk_split_inner {
    margin-right: auto;
}
.blk_split .heading {
    font-size: 52px;
    line-height: 58px;
}
.blk_split p:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------- call to action split */
.blk_cta_split {
    padding: 48px 40px;
    margin: 0;
}
.blk_cta_split .heading {
    margin-bottom: 10px;
}
.blk_cta_split .custom_white_btn,
.blk_cta_split .custom_black_btn {
    display: inline-flex;
}

/* ------------------------------------------------------ mosaic gallery */
.blk_mosaic .blk_g {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 214px;
    background-size: cover;
    background-position: center;
}
.blk_mosaic .blk_g_tall {
    min-height: 460px;
}

/* --------------------------------------------------------- responsive */
@media (max-width: 991px) {
    .blk_event .heading,
    .blk_split .heading {
        font-size: 32px;
        line-height: 38px;
    }
    .blk_poster {
        margin: 30px auto 0;
    }
    .blk_offer_figure {
        font-size: 96px;
    }
    .blk_split_half {
        padding: 50px 24px;
    }
}
@media (max-width: 767px) {
    .blk_event_actions .blk_btn_link,
    .blk_event_actions .custom_white_btn,
    .blk_event_actions .custom_black_btn {
        width: 100%;
        justify-content: center;
    }
    .blk_chips {
        flex-direction: column;
    }
    .blk_chips li.blk_chip {
        width: 100%;
    }
    .blk_map {
        min-height: 300px;
    }
    .blk_mosaic .blk_g_tall {
        min-height: 240px;
    }
    .blk_cta_split {
        padding: 32px 20px;
    }
    .blk_cta_split .text-lg-end {
        margin-top: 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .blk_tile_img,
    .blk_info_card,
    .blk_link,
    .blk_link_arrow {
        transition: none;
    }
}
