/* Shared public website styles, loaded by the public master. */
:root {
    --da-blue: #417398;
    --da-orange: #f06e2a;
    --da-orange-text: #ac4615;
    --da-cream: #fcf9ef;
    --da-panel: #f0eee6;
    --da-slideshow: #eaf2f7;
}
div.quicknav { text-align: center; }
.home-introduction { padding: 4px 0 8px; text-align: left; }

.search-input { position: relative; }
.search-input input { padding-right: 48px; }
.search-input button {
    position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
    border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer;
}
.search-input button:focus-visible { outline: 2px solid #417398; outline-offset: -3px; }

/* master page search bar */
.mastersearch {
    position: relative;
    display: inline-block;
    width: 280px;
}
.mastersearch input[type=text] {
    background-color: #f1f1f1;
    width: 100%;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
}
.mastersearch-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 9999;
    top: 100%;
    left: 0;
    right: 0;
    text-align: left;
}
.mastersearch-items div {
    padding: 8px 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
    font-size: 14px;
}
.mastersearch-items div:hover {
    background-color: #e9e9e9;
}
.mastersearch-active {
    background-color: #417398 !important;
    color: #ffffff !important;
}

.master-search-bar { padding: 10px 12px; background-color: #fcf9ef; display: flex; align-items: center; justify-content: center; gap: 8px; }
.master-search-bar .mastersearch { min-width: 0; max-width: 280px; flex: 1 1 280px; }
.master-search-bar .button { padding: 8px 14px; flex-shrink: 0; }

@media (max-width: 600px) {
    .master-search-bar { gap: 0; }
    .master-search-bar .mastersearch { max-width: none; }
    .master-search-bar .button { margin: 0; padding: 8px 4px; }
    .mastersearch input[type=text] { font-size: 16px; padding: 8px; }
}

/* Reusable listing panel. The description deliberately sits outside both links. */
.da-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; grid-auto-rows: 1fr; }
.da-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px 24px 0 0; background: var(--da-panel); text-align: left; }
.da-panel .da-panel-main { display: block; color: var(--da-blue); font-weight: normal; }
.da-panel .da-panel-main:hover { background: transparent; color: var(--da-blue); }
.da-panel-image { display: flex; align-items: center; justify-content: center; height: 230px; background: var(--da-panel); overflow: hidden; }
.da-panel-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.da-panel-no-image { padding: 24px; text-align: center; }
.da-panel-heading { display: block; padding: 23px 24px 0; }
.da-panel-labels { display: block; font-size: 12px; font-weight: bold; line-height: 1.6; letter-spacing: .07em; margin-bottom: 8px; text-transform: uppercase; }
.da-panel h3 { font-size: 22px !important; line-height: 1.3 !important; font-weight: 600; margin: 0 0 6px; padding: 0; overflow-wrap: anywhere; }
.da-panel-subtitle { display: block; color: var(--da-orange-text); font-size: 16px; line-height: 1.6; }
.da-panel-meta { padding: 0 24px; }
.da-panel-subtitle:hover { background: transparent; color: var(--da-orange-text); text-decoration: underline; }
.da-panel-detail { display: block; font-size: 14px; margin-top: 4px; }
.da-panel-detail:hover { background: transparent; color: var(--da-blue); text-decoration: underline; }
.da-panel-main:hover h3, .da-panel-more:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Plain paragraphs inherit the master's colour, typeface, size and line height. */
.da-panel > p { margin: 14px 24px 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.da-panel .da-panel-more { align-self: flex-start; margin: auto 24px 23px; padding-top: 4px; font-size: 15px; line-height: 1.6; color: var(--da-blue); }
.da-panel .da-panel-more:hover { background: transparent; color: var(--da-blue); }
.da-panel a:focus-visible { outline: 3px solid var(--da-blue); outline-offset: -4px; }
.da-preview { max-width: 1280px; margin: 30px auto 56px; }
.da-preview .da-preview-note { font-size: 15px; line-height: 1.7; margin: 12px 0 28px; }
.da-preview-slides { margin-top: 64px; }

/* Slideshow degrades to a list of linked images without JavaScript. */
.da-slideshow { max-width: 760px; margin: 24px auto; position: relative; }
.da-slide { margin: 0; }
.da-slide[hidden], .da-slideshow-controls[hidden] { display: none !important; }
.da-slide a { display: block; }
.da-slide a:hover { background: transparent; }
.da-slide img { display: block; width: 100%; aspect-ratio: var(--da-slide-ratio, 605 / 434); object-fit: contain; background: var(--da-slideshow); border-radius: 22px 22px 0 0; }
.da-slide-caption { display: block; padding: 18px 24px; background: var(--da-slideshow); color: var(--da-blue); font-family: 'Lexend', sans-serif; font-size: 20px; }
.da-slideshow-controls { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 14px; }
.da-slideshow-controls button { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--da-slideshow); color: var(--da-blue); font: 30px/1 sans-serif; cursor: pointer; }
.da-slideshow-controls button:hover { background: #d9e8f2; }
.da-slideshow-controls span { font-size: 14px; }
.da-slideshow button:focus-visible, .da-slideshow a:focus-visible { outline: 3px solid var(--da-blue); outline-offset: 3px; }

/* Consent controls are shared by public and CMS masters. */
.da-cookie-banner[hidden] { display: none !important; }
.da-cookie-banner { position: fixed; z-index: 10000; left: 24px; bottom: 24px; width: min(720px, calc(100% - 48px)); padding: 24px; box-sizing: border-box; background: var(--da-cream); box-shadow: 0 6px 38px #203c4d38; border: 1px solid #bbcedb !important; border-radius: 16px; text-align: left; max-height: calc(100dvh - 48px); overflow-y: auto; }
.da-cookie-banner h2 { font-size: 22px !important; line-height: 1.3 !important; margin: 0 0 10px; padding: 0; }
.da-cookie-banner p { font-size: 14px; line-height: 1.7; margin: 0 0 16px; }
.da-cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; background: transparent; }
.da-cookie-actions button { flex: 1 1 180px; min-height: 44px; padding: 10px 16px; font: 600 14px/1.5 'Poppins', sans-serif; background: var(--da-blue); color: var(--da-cream); border-radius: 6px; cursor: pointer; }
.da-cookie-actions button:hover { background: #315b79; }
.da-cookie-banner a, .da-cookie-settings { text-decoration: underline; text-underline-offset: 3px; }
.da-cookie-settings { display: block; margin: 18px auto; padding: 10px; font: inherit; font-size: 14px; background: transparent; color: var(--da-blue); cursor: pointer; }
.da-cookie-banner button:focus-visible, .da-cookie-settings:focus-visible, .da-cookie-banner a:focus-visible { outline: 3px solid var(--da-blue); outline-offset: 3px; }
.da-cookie-status { text-align: center; font-size: 14px; }
.da-cookie-banner * { background-color: transparent; }
.da-cookie-banner .da-cookie-actions button { background-color: var(--da-blue); }
.da-cookie-banner .da-cookie-actions button:hover { background-color: #315b79; }
@media (max-width: 1000px) { .da-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 600px) {
    .da-panel-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 26px; }
    .da-panel-image { height: 230px; }
    .da-preview { margin-top: 20px; }
    .da-cookie-banner { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 20px; }
    .da-cookie-actions { gap: 8px; }
    .da-cookie-actions button { flex-basis: 100%; }
}
