:root {
    --dywn-bg: #03101d;
    --dywn-panel: #0a1724;
    --dywn-line: rgba(255,255,255,.14);
    --dywn-text: #f7f9fc;
    --dywn-muted: #aeb9c7;
    --dywn-blue: #315cff;
    --dywn-purple: #7c3aed;
    --dywn-red: #ef2b2b;
    --dywn-green: #22b968;
    --dywn-orange: #f2a900;
}

html.dywn-no-scroll { overflow: hidden; }

/* PAGE */
.dywn-shell,
.dywn-shell * { box-sizing: border-box; }

.dywn-shell {
    position: relative;
    width: 100%;
    min-height: 70vh;
    padding: 38px 32px 54px;
    overflow: hidden;
    color: var(--dywn-text);
    font-family: inherit;
    background:
        radial-gradient(circle at 48% 4%, rgba(42,70,155,.20), transparent 32%),
        linear-gradient(180deg,#071426 0%,#020d18 100%);
}

/* HEADER */
.dywn-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 36px;
    margin: 0 0 24px;
}
.dywn-head > div:first-child { max-width: 520px; }
.dywn-head h1 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: clamp(38px,4vw,58px) !important;
    line-height: 1 !important;
    letter-spacing: -.035em;
}
.dywn-head p {
    max-width: 510px;
    margin: 0 !important;
    color: var(--dywn-muted) !important;
    font-size: 15px;
    line-height: 1.55;
}
.dywn-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: min(100%,700px);
}
.dywn-search {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 470px;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--dywn-line);
    border-radius: 9px;
    background: rgba(5,15,27,.72);
}
.dywn-search input {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 14px !important;
}
.dywn-search input::placeholder { color: #8290a2; }
.dywn-filter-btn,
.dywn-load-more {
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 9px;
    background: rgba(8,17,29,.78);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.dywn-filter-btn:hover,.dywn-load-more:hover { background:#102236; }
.dywn-status {
    min-height: 18px;
    margin: -8px 0 8px;
    color: #718197;
    text-align: right;
    font-size: 12px;
}

/* DATE GROUPS */
.dywn-date-group { margin: 28px 0 0; }
.dywn-date-group > h2 {
    display: flex !important;
    align-items: center;
    gap: 11px;
    margin: 0 0 15px !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}
.dywn-date-group > h2 > span {
    display: block;
    width: 4px;
    height: 20px;
    border-radius: 4px;
    background: var(--dywn-blue);
}

/* 12 COLUMN EDITORIAL GRID */
.dywn-grid {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(12,minmax(0,1fr)) !important;
    grid-auto-flow: dense;
    gap: 18px !important;
    align-items: stretch;
}

/* CARD */
.dywn-card {
    position: relative !important;
    grid-column: span 4 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 350px;
    margin: 0 !important;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--dywn-line);
    border-radius: 13px;
    background: linear-gradient(145deg,#10243a,#06121f);
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
    color: #fff;
    transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.dywn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.28);
    box-shadow: 0 20px 45px rgba(0,0,0,.28);
}
.dywn-card--small { grid-column: span 3 !important; min-height: 320px; }
.dywn-card--standard { grid-column: span 4 !important; min-height: 360px; }
.dywn-card--wide { grid-column: span 8 !important; min-height: 315px; }
.dywn-card--featured { grid-column: span 6 !important; min-height: 520px; }

.dywn-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.dywn-card-media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    transition: transform .55s ease;
}
.dywn-card:hover .dywn-card-media img { transform: scale(1.045); }
.dywn-placeholder {
    background: radial-gradient(circle at 70% 20%,rgba(49,92,255,.28),transparent 40%),linear-gradient(145deg,#10243a,#06121f);
}
.dywn-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,rgba(2,8,15,.03) 15%,rgba(2,8,15,.20) 40%,rgba(2,8,15,.92) 82%,rgba(2,8,15,.98) 100%);
}
.dywn-card--featured .dywn-card-overlay {
    background: linear-gradient(180deg,rgba(2,8,15,.02) 20%,rgba(2,8,15,.22) 45%,rgba(2,8,15,.94) 88%);
}

.dywn-badge {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--dywn-blue);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.dywn-type-video .dywn-badge { background: var(--dywn-red); }
.dywn-type-article .dywn-badge,.dywn-type-press .dywn-badge { background: var(--dywn-purple); }
.dywn-type-company-news .dywn-badge,.dywn-type-news .dywn-badge { background: var(--dywn-orange); }

.dywn-date-box {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 54px;
    padding: 7px;
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    color: #07111d;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.dywn-date-box-month { font-size: 9px;line-height:1;font-weight:800; }
.dywn-date-box-day { margin-top:3px;font-size:21px;line-height:1;font-weight:800; }

.dywn-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: inherit;
    height: 100%;
    padding: 22px;
    pointer-events: none;
}
.dywn-card--featured .dywn-card-content { padding: 28px; }
.dywn-kicker {
    margin: 0 0 8px;
    color: #ffd13d;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .04em;
}
.dywn-card h3 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: clamp(21px,1.65vw,30px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.dywn-card--small h3 { font-size: 20px !important; }
.dywn-card--featured h3 { max-width: 90%;font-size: clamp(32px,3vw,47px) !important; }
.dywn-meta {
    display: flex;
    gap: 12px;
    margin: 0 0 10px;
    color: #d2d9e2;
    font-size: 13px;
}
.dywn-card-desc {
    display: -webkit-box;
    max-width: 680px;
    margin: 0 0 14px !important;
    overflow: hidden;
    color: #c1ccd8 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.dywn-card--small .dywn-card-desc { -webkit-line-clamp: 2; }
.dywn-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #72a0ff;
    font-size: 14px;
    font-weight: 700;
}
.dywn-type-video .dywn-card-cta { color:#ff5353; }
.dywn-type-article .dywn-card-cta,.dywn-type-press .dywn-card-cta { color:#c568ff; }
.dywn-type-company-news .dywn-card-cta,.dywn-type-news .dywn-card-cta { color:#ffc329; }
.dywn-card-link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 8 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    text-decoration: none !important;
}


/* =========================================================
   ADAPTIVE DATE-GROUP LAYOUT
   Auto-sized cards respond to the number of items on a date.
   Manual card-size selections still take priority.
   ========================================================= */

.dywn-card--auto-single {
    grid-column: span 8 !important;
    min-height: 390px;
}

.dywn-card--auto-half {
    grid-column: span 6 !important;
    min-height: 390px;
}

.dywn-card--auto-third {
    grid-column: span 4 !important;
    min-height: 360px;
}

.dywn-card--auto-wide {
    grid-column: span 8 !important;
    min-height: 400px;
}

/* Give sparse, wider cards a more editorial text measure. */
.dywn-card--auto-single .dywn-card-content,
.dywn-card--auto-wide .dywn-card-content,
.dywn-card--wide .dywn-card-content {
    max-width: 72%;
}

.dywn-card--auto-single h3,
.dywn-card--auto-wide h3 {
    font-size: clamp(28px, 2.2vw, 38px) !important;
    max-width: 760px;
}

/* Stronger lateral fade on wide editorial cards improves text readability. */
.dywn-card--auto-single .dywn-card-overlay,
.dywn-card--auto-wide .dywn-card-overlay,
.dywn-card--wide .dywn-card-overlay {
    background:
        linear-gradient(90deg, rgba(2,9,17,.88) 0%, rgba(2,9,17,.56) 48%, rgba(2,9,17,.08) 78%),
        linear-gradient(180deg, rgba(2,9,17,.03) 20%, rgba(2,9,17,.30) 58%, rgba(2,9,17,.88) 100%);
}

/* FILTER DRAWER */
.dywn-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,.52);
    opacity: 0;
    transition: opacity .22s ease;
}
.dywn-backdrop.is-open { opacity: 1; }
.dywn-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    width: min(390px,92vw);
    padding: 26px;
    overflow-y: auto;
    border-left: 1px solid var(--dywn-line);
    background: linear-gradient(180deg,#0c1825,#07111c);
    color: #fff;
    transform: translateX(102%);
    box-shadow: -20px 0 60px rgba(0,0,0,.35);
    transition: transform .28s ease;
}
.dywn-drawer.is-open { transform: translateX(0); }
.dywn-drawer-head { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px; }
.dywn-drawer-head h2 { margin:0 !important;color:#fff !important;font-size:20px !important; }
.dywn-drawer-head button { border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer; }
.dywn-filter-section { padding:20px 0;border-top:1px solid var(--dywn-line); }
.dywn-filter-section h3 { margin:0 0 13px !important;color:#fff !important;font-size:12px !important; }
.dywn-filter-section label { display:flex;align-items:center;gap:9px;padding:7px 0;color:#dce4ed;font-size:14px; }
.dywn-filter-section select { width:100%;padding:10px;border:1px solid var(--dywn-line);border-radius:7px;background:#0b1927;color:#fff; }
.dywn-drawer-actions { display:grid;gap:10px;margin-top:20px; }
.dywn-drawer-actions button { min-height:44px;border-radius:7px;cursor:pointer; }
#dywn-apply { border:0;background:var(--dywn-blue);color:#fff; }
#dywn-reset { border:1px solid var(--dywn-line);background:transparent;color:#8eb1ff; }

.dywn-load-wrap { display:flex;justify-content:center;margin-top:28px; }
.dywn-load-more { min-width:150px; }
.dywn-empty { padding:60px 20px;border:1px dashed var(--dywn-line);border-radius:12px;color:var(--dywn-muted);text-align:center; }

/* TABLET */
@media (max-width: 1100px) {
    .dywn-head { flex-direction:column;gap:20px; }
    .dywn-tools { width:100%;justify-content:flex-start; }
    .dywn-search { max-width:none; }
    .dywn-card,.dywn-card--standard,.dywn-card--small,.dywn-card--auto-third { grid-column:span 6 !important; }
    .dywn-card--wide,.dywn-card--featured,.dywn-card--auto-single,.dywn-card--auto-wide { grid-column:span 12 !important; }
    .dywn-card--auto-half { grid-column:span 6 !important; }
}

/* MOBILE */
@media (max-width: 700px) {
    .dywn-shell { padding:26px 16px 40px; }
    .dywn-head h1 { font-size:36px !important; }
    .dywn-tools { flex-direction:column;align-items:stretch; }
    .dywn-search,.dywn-filter-btn { width:100%;max-width:none; }
    .dywn-status { margin-top:0; }
    .dywn-grid { grid-template-columns:1fr !important;gap:15px !important; }
    .dywn-card,.dywn-card--small,.dywn-card--standard,.dywn-card--wide,.dywn-card--featured,.dywn-card--auto-single,.dywn-card--auto-half,.dywn-card--auto-third,.dywn-card--auto-wide {
        grid-column:1 / -1 !important;
        min-height:390px;
    }
    .dywn-card--featured { min-height:460px; }
    .dywn-card h3,.dywn-card--featured h3 { font-size:27px !important; }
    .dywn-card-content,.dywn-card--featured .dywn-card-content { padding:20px; }
    .dywn-card--auto-single .dywn-card-content,.dywn-card--auto-wide .dywn-card-content,.dywn-card--wide .dywn-card-content { max-width:100%; }
}

/* =========================================================
   V4 POLISH — sparse date groups
   ========================================================= */
.dywn-card--auto-single {
    grid-column: span 9 !important;
    min-height: 310px !important;
}
.dywn-card--auto-single .dywn-card-content {
    max-width: 66%;
    padding: 26px;
}
.dywn-card--auto-single h3 {
    font-size: clamp(27px, 2.15vw, 37px) !important;
    line-height: 1.06 !important;
}
.dywn-card--auto-single .dywn-card-desc {
    max-width: 620px;
}
.dywn-type-video .dywn-card-media::before {
    content: "▶";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 42px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 11px;
    background: rgba(239,43,43,.94);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    opacity: .94;
    transition: transform .25s ease, opacity .25s ease;
}
.dywn-type-video:hover .dywn-card-media::before {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
}
@media (max-width: 1100px) {
    .dywn-card--auto-single { grid-column: span 12 !important; }
}
@media (max-width: 700px) {
    .dywn-card--auto-single { min-height: 390px !important; }
    .dywn-card--auto-single .dywn-card-content { max-width: 100%; padding: 20px; }
}

/* =========================================================
   V5 — CLEAN EDITORIAL CARDS
   Standard cards separate imagery from text for readability.
   Only featured cards keep the full-image overlay treatment.
   ========================================================= */

/* Standard / automatic cards become image + content-panel cards. */
.dywn-card:not(.dywn-card--featured) {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
    background: #0a1724;
}

.dywn-card:not(.dywn-card--featured) .dywn-card-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 210px;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #10243a, #08131f);
}

.dywn-card:not(.dywn-card--featured) .dywn-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The image itself stays clean. A subtle fade helps badges/date only. */
.dywn-card:not(.dywn-card--featured) .dywn-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2,9,17,.06) 45%, rgba(2,9,17,.30) 100%);
}

.dywn-card:not(.dywn-card--featured) .dywn-card-overlay {
    display: none;
}

.dywn-card:not(.dywn-card--featured) .dywn-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: none !important;
    min-height: 185px;
    height: auto;
    padding: 20px 21px 21px;
    background: linear-gradient(180deg, #0d1b2a 0%, #091521 100%);
}

.dywn-card:not(.dywn-card--featured) h3 {
    margin: 0 0 9px !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1.16 !important;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.dywn-card:not(.dywn-card--featured) .dywn-meta {
    order: -1;
    margin: 0 0 9px;
    color: #8fa0b3;
    font-size: 12px;
}

.dywn-card:not(.dywn-card--featured) .dywn-card-desc {
    margin: 0 0 15px !important;
    color: #b9c5d1 !important;
    font-size: 13.5px !important;
    line-height: 1.52 !important;
    -webkit-line-clamp: 3;
}

.dywn-card:not(.dywn-card--featured) .dywn-card-cta {
    margin-top: auto;
    padding-top: 3px;
    font-size: 13px;
}

/* Keep labels crisp on photography. */
.dywn-card:not(.dywn-card--featured) .dywn-badge,
.dywn-card:not(.dywn-card--featured) .dywn-date-box {
    z-index: 5;
}

/* Slightly more compact date marker for regular cards. */
.dywn-card:not(.dywn-card--featured) .dywn-date-box {
    min-width: 44px;
    min-height: 49px;
    top: 12px;
    right: 12px;
}
.dywn-card:not(.dywn-card--featured) .dywn-date-box-day { font-size: 19px; }
.dywn-card:not(.dywn-card--featured) .dywn-badge { top: 12px; left: 12px; }

/* Sparse days: large enough to feel intentional, not giant. */
.dywn-card--auto-single {
    grid-column: span 7 !important;
}
.dywn-card--auto-single .dywn-card-media {
    height: 270px !important;
}
.dywn-card--auto-single .dywn-card-content {
    min-height: 178px !important;
    padding: 21px 23px 22px !important;
}
.dywn-card--auto-single h3 {
    max-width: 720px;
    font-size: clamp(23px, 1.8vw, 30px) !important;
}

/* Two-column cards. */
.dywn-card--auto-half .dywn-card-media,
.dywn-card--wide .dywn-card-media,
.dywn-card--auto-wide .dywn-card-media {
    height: 245px !important;
}

/* Three-column cards mirror the clean reference layout. */
.dywn-card--auto-third .dywn-card-media,
.dywn-card--standard .dywn-card-media,
.dywn-card--small .dywn-card-media {
    height: 185px !important;
}

.dywn-card--auto-third .dywn-card-content,
.dywn-card--standard .dywn-card-content,
.dywn-card--small .dywn-card-content {
    min-height: 190px !important;
}

/* Videos: play control lives on the image, not over the text. */
.dywn-type-video:not(.dywn-card--featured) .dywn-card-media::before {
    z-index: 4;
    width: 54px;
    height: 38px;
    border-radius: 9px;
}

/* Featured cards retain the dramatic overlay/hero styling. */
.dywn-card--featured {
    min-height: 500px;
}
.dywn-card--featured .dywn-card-overlay {
    background:
        linear-gradient(180deg, rgba(2,9,17,.04) 24%, rgba(2,9,17,.36) 56%, rgba(2,9,17,.96) 100%);
}
.dywn-card--featured .dywn-card-desc {
    max-width: 640px;
    color: #d3dbe4 !important;
}

/* A little more separation between date groups in the clean layout. */
.dywn-date-group {
    margin-bottom: 30px;
}

@media (max-width: 1100px) {
    .dywn-card--auto-single {
        grid-column: span 9 !important;
    }

    .dywn-card--auto-single .dywn-card-media {
        height: 250px !important;
    }
}

@media (max-width: 780px) {
    .dywn-card--auto-single,
    .dywn-card--auto-half,
    .dywn-card--auto-third,
    .dywn-card--auto-wide,
    .dywn-card--standard,
    .dywn-card--small,
    .dywn-card--wide {
        grid-column: 1 / -1 !important;
    }

    .dywn-card:not(.dywn-card--featured) .dywn-card-media,
    .dywn-card--auto-single .dywn-card-media,
    .dywn-card--auto-half .dywn-card-media,
    .dywn-card--auto-third .dywn-card-media,
    .dywn-card--auto-wide .dywn-card-media,
    .dywn-card--wide .dywn-card-media {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .dywn-card:not(.dywn-card--featured) .dywn-card-content {
        min-height: 175px !important;
    }
}


/* =========================================================
   V6 — EDITORIAL GROUPING
   Latest is a composed board; older content is grouped by month.
   Exact dates remain visible on every card badge.
   ========================================================= */

.dywn-editorial-group {
    margin-top: 34px;
    margin-bottom: 42px;
}

.dywn-editorial-group > h2 {
    margin-bottom: 18px;
}

.dywn-group--latest .dywn-grid {
    grid-auto-flow: dense;
}

/* Automatic hero for the newest item. */
.dywn-group--latest .dywn-card--featured {
    grid-column: span 6 !important;
    grid-row: span 2;
    min-height: 500px;
}

/* The rest of Latest forms a compact editorial board around the hero. */
.dywn-group--latest .dywn-card--auto-third,
.dywn-group--latest .dywn-card--standard {
    grid-column: span 3 !important;
}

.dywn-group--latest .dywn-card--auto-half {
    grid-column: span 6 !important;
}

/* Monthly groups are intentionally denser than the old one-date-per-row view. */
.dywn-group--month .dywn-grid {
    grid-auto-flow: dense;
}

@media (max-width: 1100px) {
    .dywn-group--latest .dywn-card--featured {
        grid-column: span 12 !important;
        grid-row: auto;
    }

    .dywn-group--latest .dywn-card--auto-third,
    .dywn-group--latest .dywn-card--standard {
        grid-column: span 6 !important;
    }
}

@media (max-width: 780px) {
    .dywn-group--latest .dywn-card--featured,
    .dywn-group--latest .dywn-card--auto-third,
    .dywn-group--latest .dywn-card--standard,
    .dywn-group--latest .dywn-card--auto-half {
        grid-column: 1 / -1 !important;
        grid-row: auto;
    }

    .dywn-editorial-group {
        margin-bottom: 32px;
    }
}


/* =========================================================
   V7 — POLISH PASS
   Quick filters, calmer hero proportions and adaptive sparse months.
   ========================================================= */

/* Quick content-type pills below the header. */
.dywn-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2px 0 18px;
}

.dywn-quick-filter {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(8,17,29,.58);
    color: #d9e2ec;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.dywn-quick-filter:hover {
    border-color: rgba(255,255,255,.32);
    color: #fff;
    transform: translateY(-1px);
}

.dywn-quick-filter.is-active {
    border-color: #315cff;
    background: #315cff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(49,92,255,.22);
}

/* Latest hero: still dominant, but less vertically overwhelming. */
.dywn-group--latest .dywn-card--featured {
    min-height: 455px !important;
}

.dywn-group--latest .dywn-card--featured .dywn-card-media img {
    object-position: 50% 50% !important;
}

.dywn-group--latest .dywn-card--featured .dywn-card-content {
    padding: 26px;
}

.dywn-group--latest .dywn-card--featured h3 {
    font-size: clamp(29px,2.45vw,42px) !important;
    max-width: 94%;
}

/* Supporting cards in Latest should align as a deliberate board. */
.dywn-group--latest .dywn-card:not(.dywn-card--featured) .dywn-card-media {
    height: 168px !important;
}

.dywn-group--latest .dywn-card:not(.dywn-card--featured) .dywn-card-content {
    min-height: 210px !important;
}

.dywn-group--latest .dywn-card:not(.dywn-card--featured) h3 {
    font-size: 20px !important;
    line-height: 1.14 !important;
}

/* One-item months become compact horizontal editorial cards. */
.dywn-group--single .dywn-grid {
    display: block !important;
}

.dywn-group--single .dywn-card:not(.dywn-card--featured) {
    display: grid !important;
    grid-template-columns: minmax(300px, 46%) 1fr;
    width: min(100%, 940px) !important;
    min-height: 275px !important;
}

.dywn-group--single .dywn-card:not(.dywn-card--featured) .dywn-card-media {
    position: relative;
    width: 100%;
    height: 100% !important;
    min-height: 275px;
}

.dywn-group--single .dywn-card:not(.dywn-card--featured) .dywn-card-content {
    min-height: 275px !important;
    padding: 26px 28px !important;
    justify-content: center;
}

.dywn-group--single .dywn-card:not(.dywn-card--featured) h3 {
    font-size: clamp(23px,1.65vw,31px) !important;
}

.dywn-group--single .dywn-card:not(.dywn-card--featured) .dywn-card-desc {
    -webkit-line-clamp: 4;
    max-width: 560px;
}

/* Two-item months use two confident half-width cards. */
.dywn-group--two .dywn-card[data-card-size="auto"] {
    grid-column: span 6 !important;
}

.dywn-group--two .dywn-card:not(.dywn-card--featured) .dywn-card-media {
    height: 220px !important;
}

/* Monthly sections are a little tighter after the editorial board. */
.dywn-group--month {
    margin-top: 30px;
    margin-bottom: 36px;
}

@media (max-width: 1100px) {
    .dywn-group--single .dywn-card:not(.dywn-card--featured) {
        width: 100% !important;
        grid-template-columns: minmax(260px, 42%) 1fr;
    }
}

@media (max-width: 760px) {
    .dywn-quick-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .dywn-quick-filters::-webkit-scrollbar {
        display: none;
    }

    .dywn-quick-filter {
        flex: 0 0 auto;
    }

    .dywn-group--latest .dywn-card--featured {
        min-height: 430px !important;
    }

    .dywn-group--single .dywn-card:not(.dywn-card--featured) {
        display: flex !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .dywn-group--single .dywn-card:not(.dywn-card--featured) .dywn-card-media {
        height: auto !important;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .dywn-group--single .dywn-card:not(.dywn-card--featured) .dywn-card-content {
        min-height: 175px !important;
        padding: 20px !important;
        justify-content: flex-start;
    }
}


/* =========================================================
   V8 — FINAL LATEST COMPOSITION
   Five items only: 6-column hero + four 3-column support cards.
   The sixth result now falls naturally into its month group.
   ========================================================= */

.dywn-group--latest .dywn-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 18px;
    align-items: stretch;
}

.dywn-group--latest .dywn-card--featured {
    grid-column: span 6 !important;
    grid-row: span 2 !important;
    min-height: 0 !important;
}

.dywn-group--latest .dywn-card--featured .dywn-card-media img {
    object-fit: cover !important;
    object-position: center center !important;
    transform: none;
}

.dywn-group--latest .dywn-card--featured:hover .dywn-card-media img {
    transform: scale(1.018);
}

.dywn-group--latest .dywn-card:not(.dywn-card--featured) {
    grid-column: span 3 !important;
    min-height: 0 !important;
}

.dywn-group--latest .dywn-card:not(.dywn-card--featured) .dywn-card-media {
    height: 156px !important;
}

.dywn-group--latest .dywn-card:not(.dywn-card--featured) .dywn-card-content {
    min-height: 190px !important;
    padding: 17px 18px 18px !important;
}

.dywn-group--latest .dywn-card:not(.dywn-card--featured) h3 {
    margin-bottom: 8px !important;
    font-size: 19px !important;
    line-height: 1.13 !important;
}

.dywn-group--latest .dywn-card:not(.dywn-card--featured) .dywn-card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 1100px) {
    .dywn-group--latest .dywn-card--featured {
        grid-column: span 12 !important;
        grid-row: auto !important;
        min-height: 460px !important;
    }

    .dywn-group--latest .dywn-card:not(.dywn-card--featured) {
        grid-column: span 6 !important;
    }
}

@media (max-width: 700px) {
    .dywn-group--latest .dywn-card--featured,
    .dywn-group--latest .dywn-card:not(.dywn-card--featured) {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .dywn-group--latest .dywn-card--featured {
        min-height: 430px !important;
    }
}


/* =========================================================
   V9 — TODAY BOARD + DEEP NAVY WAVE BACKGROUND
   Keeps V8's five-card editorial composition while giving
   the page the cleaner dark/navy atmosphere from the final
   approved visual direction.
   ========================================================= */

.dywn-shell {
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 10%, rgba(18, 91, 255, .16), transparent 26%),
        radial-gradient(circle at 18% 2%, rgba(14, 54, 112, .13), transparent 28%),
        linear-gradient(180deg, #03101d 0%, #020b14 48%, #020a12 100%);
}

/* Dotted digital-wave field in the top-right of the page. */
.dywn-shell::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -60px;
    right: -7%;
    width: min(78%, 1180px);
    height: 390px;
    pointer-events: none;
    opacity: .72;
    transform: rotate(-5deg) skewX(-8deg);
    transform-origin: 70% 20%;
    background-image:
        radial-gradient(circle, rgba(56, 117, 255, .88) 0 1.15px, transparent 1.35px),
        radial-gradient(circle, rgba(58, 137, 255, .34) 0 1px, transparent 1.2px);
    background-position: 0 0, 5px 5px;
    background-size: 11px 11px;
    -webkit-mask-image:
        radial-gradient(ellipse 88% 58% at 77% 38%, #000 4%, rgba(0,0,0,.92) 32%, rgba(0,0,0,.45) 51%, transparent 70%);
    mask-image:
        radial-gradient(ellipse 88% 58% at 77% 38%, #000 4%, rgba(0,0,0,.92) 32%, rgba(0,0,0,.45) 51%, transparent 70%);
}

.dywn-shell::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 28px;
    right: 3%;
    width: 52%;
    height: 215px;
    pointer-events: none;
    opacity: .52;
    filter: blur(26px);
    background:
        radial-gradient(ellipse at 66% 45%, rgba(25, 105, 255, .20), transparent 58%);
}

/* Keep all real interface elements above the decorative wave. */
.dywn-shell > * {
    position: relative;
    z-index: 1;
}

/* Slightly more breathing room between the controls and Today board. */
.dywn-quick-filters {
    margin-bottom: 18px;
}

.dywn-status {
    position: relative;
    z-index: 2;
}

.dywn-group--today {
    margin-top: 12px;
}

.dywn-group--today > h2 {
    margin-bottom: 17px !important;
    font-size: 21px !important;
    letter-spacing: -.015em;
}

/* Today hero: refined proportion and darker lower panel for readability. */
.dywn-group--today .dywn-card--featured {
    border-color: rgba(255,255,255,.18);
    box-shadow: 0 18px 46px rgba(0,0,0,.24);
}

.dywn-group--today .dywn-card--featured .dywn-card-overlay {
    background:
        linear-gradient(180deg,
            rgba(2,8,15,.00) 18%,
            rgba(2,8,15,.10) 43%,
            rgba(2,8,15,.72) 70%,
            rgba(2,8,15,.97) 100%);
}

.dywn-group--today .dywn-card--featured .dywn-kicker {
    color: #ffd33d;
    text-transform: uppercase;
}

/* Supporting Today cards get a slightly richer panel to match the mockup. */
.dywn-group--today .dywn-card:not(.dywn-card--featured) {
    background: linear-gradient(180deg, #0a1a2a 0%, #071522 100%);
    border-color: rgba(255,255,255,.16);
}

.dywn-group--today .dywn-card:not(.dywn-card--featured):hover {
    border-color: rgba(86,137,255,.45);
}

@media (max-width: 900px) {
    .dywn-shell::before {
        right: -24%;
        width: 110%;
        opacity: .48;
    }
}

@media (max-width: 700px) {
    .dywn-shell::before,
    .dywn-shell::after {
        opacity: .28;
    }

    .dywn-group--today > h2 {
        font-size: 18px !important;
    }
}

/* =========================================================
   V10 — FULL-WIDTH TODAY HERO + VIEWPORT FILTER DRAWER
   ========================================================= */

/* Calmer, richer background. The decorative wave is subtle and contained. */
.dywn-shell {
    background:
        radial-gradient(900px 420px at 86% 3%, rgba(26, 87, 214, .12), transparent 58%),
        radial-gradient(720px 420px at 16% 0%, rgba(7, 45, 98, .16), transparent 66%),
        linear-gradient(180deg, #04101c 0%, #020b14 48%, #020a12 100%) !important;
}

.dywn-shell::before {
    top: -10px !important;
    right: -4% !important;
    width: min(58%, 900px) !important;
    height: 250px !important;
    opacity: .24 !important;
    transform: rotate(-4deg) !important;
    background-image:
        repeating-radial-gradient(ellipse at 78% 46%,
            transparent 0 12px,
            rgba(55, 122, 255, .45) 13px,
            transparent 14px 22px) !important;
    -webkit-mask-image: radial-gradient(ellipse 72% 58% at 78% 42%, #000 0 36%, rgba(0,0,0,.55) 52%, transparent 72%) !important;
    mask-image: radial-gradient(ellipse 72% 58% at 78% 42%, #000 0 36%, rgba(0,0,0,.55) 52%, transparent 72%) !important;
}

.dywn-shell::after {
    top: 5px !important;
    right: 1% !important;
    width: 48% !important;
    height: 190px !important;
    opacity: .34 !important;
    filter: blur(34px) !important;
}

/* TODAY composition: one cinematic full-width lead card, four cards below. */
.dywn-group--today .dywn-grid,
.dywn-group--latest .dywn-grid {
    grid-template-columns: repeat(12, minmax(0,1fr)) !important;
    grid-auto-flow: dense;
}

.dywn-group--today .dywn-card--featured,
.dywn-group--latest .dywn-card--featured {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 430px !important;
    max-height: none !important;
}

.dywn-group--today .dywn-card--featured .dywn-card-media img,
.dywn-group--latest .dywn-card--featured .dywn-card-media img {
    object-position: center 48% !important;
}

.dywn-group--today .dywn-card--featured .dywn-card-content,
.dywn-group--latest .dywn-card--featured .dywn-card-content {
    padding: 30px 34px !important;
    max-width: 760px;
}

.dywn-group--today .dywn-card--featured h3,
.dywn-group--latest .dywn-card--featured h3 {
    font-size: clamp(31px, 3.2vw, 48px) !important;
    max-width: 720px !important;
}

.dywn-group--today .dywn-card:not(.dywn-card--featured),
.dywn-group--latest .dywn-card:not(.dywn-card--featured) {
    grid-column: span 3 !important;
    min-height: 355px !important;
}

.dywn-group--today .dywn-card:not(.dywn-card--featured) .dywn-card-media,
.dywn-group--latest .dywn-card:not(.dywn-card--featured) .dywn-card-media {
    height: 165px !important;
}

.dywn-group--today .dywn-card:not(.dywn-card--featured) .dywn-card-content,
.dywn-group--latest .dywn-card:not(.dywn-card--featured) .dywn-card-content {
    min-height: 190px !important;
}

/* Theme-proof overlay drawer: it is moved to <body> by V10 JS. */
body > .dywn-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    background: rgba(0, 7, 15, .64) !important;
    backdrop-filter: blur(3px);
}

body > .dywn-backdrop[hidden] { display: none !important; }

body > .dywn-drawer {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    left: auto !important;
    z-index: 2147483001 !important;
    width: min(360px, calc(100vw - 36px)) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg,#0b1724 0%,#07131f 100%) !important;
    box-shadow: -18px 24px 70px rgba(0,0,0,.5) !important;
    transform: translateX(calc(100% + 32px)) !important;
}

body > .dywn-drawer.is-open {
    transform: translateX(0) !important;
}

body > .dywn-drawer .dywn-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 !important;
    padding: 20px 20px 17px !important;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(10,23,36,.96);
    backdrop-filter: blur(12px);
}

body > .dywn-drawer .dywn-drawer-head h2 {
    font-size: 18px !important;
    letter-spacing: -.01em;
}

body > .dywn-drawer .dywn-drawer-head button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 8px;
    font-size: 23px;
}

body > .dywn-drawer .dywn-filter-section {
    margin: 0 18px;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255,255,255,.09) !important;
}

body > .dywn-drawer .dywn-filter-section:first-of-type {
    border-top: 0 !important;
}

body > .dywn-drawer .dywn-filter-section h3 {
    margin-bottom: 11px !important;
    color: #dce6f3 !important;
    font-size: 11px !important;
    letter-spacing: .06em;
}

/* All Types behaves as the drawer's neutral state. */
.dywn-filter-all {
    width: 100%;
    min-height: 40px;
    margin: 0 0 5px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #e7edf6;
    text-align: left;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.dywn-filter-all:hover,
.dywn-filter-all.is-active {
    background: linear-gradient(90deg, rgba(49,92,255,.22), rgba(49,92,255,.05));
    color: #fff;
}

.dywn-filter-all.is-active::after {
    content: "✓";
    float: right;
    color: #4e7cff;
    font-weight: 800;
}

body > .dywn-drawer .dywn-filter-section label {
    min-height: 38px;
    margin: 1px 0;
    padding: 0 10px !important;
    border-radius: 8px;
    color: #dce4ed !important;
    cursor: pointer;
    transition: background .15s ease;
}

body > .dywn-drawer .dywn-filter-section label:hover {
    background: rgba(255,255,255,.045);
}

body > .dywn-drawer input[type="checkbox"],
body > .dywn-drawer input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: #315cff;
    flex: 0 0 16px;
}

body > .dywn-drawer .dywn-filter-section select {
    min-height: 42px;
    padding: 0 12px !important;
    border-color: rgba(255,255,255,.12) !important;
    background: #0b1a29 !important;
}

body > .dywn-drawer .dywn-drawer-actions {
    position: sticky;
    bottom: 0;
    margin: 0 !important;
    padding: 16px 18px 18px;
    background: linear-gradient(180deg,rgba(7,19,31,.84),#07131f 28%);
}

body > .dywn-drawer #dywn-apply {
    background: #315cff !important;
    color: #fff !important;
    border: 0 !important;
}

@media (max-width: 1050px) {
    .dywn-group--today .dywn-card:not(.dywn-card--featured),
    .dywn-group--latest .dywn-card:not(.dywn-card--featured) {
        grid-column: span 6 !important;
    }
}

@media (max-width: 700px) {
    .dywn-group--today .dywn-card--featured,
    .dywn-group--latest .dywn-card--featured,
    .dywn-group--today .dywn-card:not(.dywn-card--featured),
    .dywn-group--latest .dywn-card:not(.dywn-card--featured) {
        grid-column: 1 / -1 !important;
    }
    .dywn-group--today .dywn-card--featured,
    .dywn-group--latest .dywn-card--featured {
        min-height: 410px !important;
    }
    body > .dywn-drawer {
        top: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: calc(100vw - 16px) !important;
    }
}
\n\n/* =========================================================\n   V11 — HIGH-RES HERO + FINAL VISUAL POLISH\n   ========================================================= */\n\n/* Keep the hero cinematic without enlarging a low-resolution derivative.\n   V11 feeds the original/full image to featured cards from WordPress. */\n.dywn-group--today .dywn-card--featured .dywn-card-media img,\n.dywn-group--latest .dywn-card--featured .dywn-card-media img {\n    width: 100% !important;\n    height: 100% !important;\n    object-fit: cover !important;\n    object-position: center 50% !important;\n    transform: none !important;\n    image-rendering: auto !important;\n}\n\n.dywn-group--today .dywn-card--featured:hover .dywn-card-media img,\n.dywn-group--latest .dywn-card--featured:hover .dywn-card-media img {\n    transform: scale(1.012) !important;\n}\n\n/* Slightly more premium hero proportions and cleaner text area. */\n.dywn-group--today .dywn-card--featured,\n.dywn-group--latest .dywn-card--featured {\n    min-height: 445px !important;\n}\n\n.dywn-group--today .dywn-card--featured .dywn-card-overlay,\n.dywn-group--latest .dywn-card--featured .dywn-card-overlay {\n    background:\n        linear-gradient(90deg, rgba(2,10,19,.28) 0%, rgba(2,10,19,.08) 55%, rgba(2,10,19,.02) 100%),\n        linear-gradient(180deg, rgba(2,10,19,.02) 25%, rgba(2,10,19,.35) 58%, rgba(2,10,19,.96) 100%) !important;\n}\n\n.dywn-group--today .dywn-card--featured .dywn-card-content,\n.dywn-group--latest .dywn-card--featured .dywn-card-content {\n    max-width: 820px !important;\n    padding: 34px 38px !important;\n}\n\n.dywn-group--today .dywn-card--featured .dywn-card-desc,\n.dywn-group--latest .dywn-card--featured .dywn-card-desc {\n    max-width: 620px !important;\n    line-height: 1.55 !important;\n}\n\n/* Small card polish: consistent title rhythm and less visual noise. */\n.dywn-group--today .dywn-card:not(.dywn-card--featured) h3,\n.dywn-group--latest .dywn-card:not(.dywn-card--featured) h3 {\n    line-height: 1.16 !important;\n    text-wrap: balance;\n}\n\n.dywn-card:not(.dywn-card--featured) .dywn-card-desc {\n    color: rgba(225,232,240,.72) !important;\n}\n\n.dywn-card {\n    box-shadow: 0 12px 32px rgba(0,0,0,.16) !important;\n}\n\n.dywn-card:hover {\n    box-shadow: 0 18px 42px rgba(0,0,0,.24) !important;\n}\n\n@media (max-width: 700px) {\n    .dywn-group--today .dywn-card--featured,\n    .dywn-group--latest .dywn-card--featured {\n        min-height: 430px !important;\n    }\n\n    .dywn-group--today .dywn-card--featured .dywn-card-content,\n    .dywn-group--latest .dywn-card--featured .dywn-card-content {\n        padding: 24px !important;\n    }\n}\n

/* =========================================================
   V13 — FULL PAGE INTEGRATION
   The shortcode page receives body.dywn-full-page automatically.
   This keeps the normal Digital Yacht header/footer but removes
   the theme's white content gutters around the What's New area.
   ========================================================= */

body.dywn-full-page .cs-site-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #020b14 !important;
}

body.dywn-full-page .cs-site-content > .cs-container,
body.dywn-full-page .cs-main-content,
body.dywn-full-page .cs-content-area,
body.dywn-full-page .cs-entry__wrap,
body.dywn-full-page .cs-entry__container,
body.dywn-full-page .cs-entry__content-wrap,
body.dywn-full-page .cs-entry__content-container,
body.dywn-full-page .entry-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove empty Gutenberg spacer/paragraph output around the shortcode. */
body.dywn-full-page .entry-content > p:empty,
body.dywn-full-page .entry-content > p:has(> br:only-child) {
    display: none !important;
}

/* Let the background reach both viewport edges while the cards keep
   their own internal max width/padding. */
body.dywn-full-page .dywn-shell {
    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
    min-height: 100vh;
}

/* The theme can inject a max-width on entry content. Do not let it clip
   the full-bleed shell. */
body.dywn-full-page .cs-entry__content,
body.dywn-full-page .entry-content {
    overflow: visible !important;
}

@media (max-width: 782px) {
    body.dywn-full-page .dywn-shell {
        width: 100vw;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
}

/* =========================================================
   V15 — DEDICATED WHAT'S NEW PAGE TEMPLATE
   The normal theme header/footer stay untouched.
   ========================================================= */

body.dywn-page-template {
    background: #020c15;
}

body.dywn-page-template .dywn-template-main {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    background: #020c15;
}

body.dywn-page-template .dywn-template-main > .dywn-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}


/* =========================================================
   V16 — SEAMLESS TEMPLATE BACKGROUND + FINAL SPACING POLISH
   The dedicated page template now uses one continuous dark canvas.
   The What's New shell is transparent; only a soft blue glow decorates
   the top content area, so there is no visible rectangular transition.
   ========================================================= */

body.dywn-page-template,
body.dywn-page-template #page,
body.dywn-page-template .cs-site,
body.dywn-page-template .cs-site-inner,
body.dywn-page-template .dywn-template-main {
    background: #020c15 !important;
}

body.dywn-page-template .dywn-template-main {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* The shell itself no longer paints a separate navy rectangle. */
body.dywn-page-template .dywn-template-main > .dywn-shell {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    isolation: isolate;
}

/* Replace the previous patterned field with one restrained blue glow. */
body.dywn-page-template .dywn-shell::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -35px !important;
    right: -2% !important;
    width: min(72vw, 1180px) !important;
    height: 500px !important;
    opacity: 1 !important;
    pointer-events: none;
    transform: none !important;
    filter: none !important;
    background: radial-gradient(
        ellipse at 78% 8%,
        rgba(32, 92, 210, .15) 0%,
        rgba(22, 71, 164, .08) 30%,
        rgba(2, 12, 21, 0) 68%
    ) !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

body.dywn-page-template .dywn-shell::after {
    content: none !important;
    display: none !important;
}

/* Keep all actual interface content above the decorative glow. */
body.dywn-page-template .dywn-shell > * {
    position: relative;
    z-index: 1;
}

/* A consistent editorial width keeps the feed aligned on very wide screens. */
body.dywn-page-template .dywn-head,
body.dywn-page-template .dywn-quick-filters,
body.dywn-page-template .dywn-status,
body.dywn-page-template #dywn-results,
body.dywn-page-template .dywn-load-wrap {
    width: 100%;
    max-width: 1660px;
    margin-left: auto;
    margin-right: auto;
}

/* Tighten the transition below the theme header without overlapping it. */
body.dywn-page-template .dywn-shell {
    padding-top: 30px !important;
    padding-bottom: 58px !important;
}

body.dywn-page-template .dywn-head {
    margin-bottom: 22px !important;
}

/* The top area should feel integrated rather than boxed-in. */
body.dywn-page-template .dywn-search,
body.dywn-page-template .dywn-filter-btn {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 1100px) {
    body.dywn-page-template .dywn-head,
    body.dywn-page-template .dywn-quick-filters,
    body.dywn-page-template .dywn-status,
    body.dywn-page-template #dywn-results,
    body.dywn-page-template .dywn-load-wrap {
        max-width: none;
    }
}

@media (max-width: 700px) {
    body.dywn-page-template .dywn-shell {
        padding-top: 22px !important;
        padding-bottom: 42px !important;
    }

    body.dywn-page-template .dywn-shell::before {
        top: -10px !important;
        right: -30% !important;
        width: 130vw !important;
        height: 360px !important;
        opacity: .72 !important;
    }
}
\n\n/* =========================================================\n   V17 — CONTROL POLISH + CUSTOM DATE RANGE\n   ========================================================= */\n\n/* Search is a primary control: give it more visual weight. */\nbody.dywn-page-template .dywn-tools {\n    width: min(100%, 900px);\n    gap: 18px;\n}\n\nbody.dywn-page-template .dywn-search {\n    max-width: 680px;\n    min-height: 62px;\n    padding: 0 20px;\n    border-radius: 12px;\n}\n\nbody.dywn-page-template .dywn-search input {\n    font-size: 18px !important;\n}\n\nbody.dywn-page-template .dywn-search input::placeholder {\n    color: #91a0b4;\n}\n\n/* Fix the cramped icon/label treatment on Filters & Sort. */\nbody.dywn-page-template .dywn-filter-btn {\n    min-height: 62px;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    gap: 12px !important;\n    padding: 0 24px;\n    white-space: nowrap;\n}\n\nbody.dywn-page-template .dywn-filter-btn strong {\n    font-weight: 650;\n}\n\n/* Long featured headlines should remain editorial, not overpower the hero. */\nbody.dywn-page-template .dywn-group--today .dywn-card--featured h3,\nbody.dywn-page-template .dywn-group--latest .dywn-card--featured h3 {\n    max-width: 980px !important;\n    font-size: clamp(34px, 3.15vw, 56px) !important;\n    line-height: 1.08 !important;\n    letter-spacing: -0.025em;\n    text-wrap: balance;\n}\n\n/* Custom date range controls in the fixed drawer. */\nbody > .dywn-drawer .dywn-date-range {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 10px;\n    margin-top: 14px;\n}\n\nbody > .dywn-drawer .dywn-date-field {\n    display: grid !important;\n    gap: 7px !important;\n    align-items: initial !important;\n    padding: 0 !important;\n}\n\nbody > .dywn-drawer .dywn-date-field > span {\n    color: #8fa0b4;\n    font-size: 11px;\n    font-weight: 700;\n    text-transform: uppercase;\n    letter-spacing: .04em;\n}\n\nbody > .dywn-drawer .dywn-date-field input[type="date"] {\n    width: 100%;\n    min-width: 0;\n    height: 42px;\n    padding: 0 10px;\n    border: 1px solid rgba(255,255,255,.14);\n    border-radius: 7px;\n    background: #081522;\n    color: #f7f9fc;\n    color-scheme: dark;\n    font: inherit;\n    font-size: 12px;\n}\n\nbody > .dywn-drawer .dywn-date-field input[type="date"]:focus {\n    outline: none;\n    border-color: #315cff;\n    box-shadow: 0 0 0 3px rgba(49,92,255,.14);\n}\n\n@media (max-width: 1100px) {\n    body.dywn-page-template .dywn-tools {\n        width: 100%;\n    }\n    body.dywn-page-template .dywn-search {\n        max-width: none;\n    }\n}\n\n@media (max-width: 700px) {\n    body.dywn-page-template .dywn-search,\n    body.dywn-page-template .dywn-filter-btn {\n        min-height: 54px;\n    }\n    body.dywn-page-template .dywn-search input {\n        font-size: 16px !important;\n    }\n    body.dywn-page-template .dywn-group--today .dywn-card--featured h3,\n    body.dywn-page-template .dywn-group--latest .dywn-card--featured h3 {\n        font-size: clamp(28px, 8vw, 38px) !important;\n        max-width: 100% !important;\n    }\n}\n

/* =========================================================
   V18 — SEARCH / FILTER ALIGNMENT + DATE RANGE POLISH
   ========================================================= */

body.dywn-page-template .dywn-tools {
    align-items: stretch;
    gap: 16px;
}

body.dywn-page-template .dywn-search,
body.dywn-page-template .dywn-filter-btn {
    height: 64px !important;
    min-height: 64px !important;
    box-sizing: border-box;
    border-radius: 12px;
}

body.dywn-page-template .dywn-search {
    position: relative;
    max-width: 720px;
    padding: 0 58px 0 22px;
}

body.dywn-page-template .dywn-search input {
    height: 100% !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

body.dywn-page-template .dywn-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: #f7f9fc;
    pointer-events: none;
}

body.dywn-page-template .dywn-search-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.dywn-page-template .dywn-filter-btn {
    padding: 0 26px !important;
    gap: 12px !important;
    line-height: 1 !important;
}

/* Hide the custom range until Custom date range is selected. */
body > .dywn-drawer .dywn-date-range[hidden] {
    display: none !important;
}

body > .dywn-drawer .dywn-date-range {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 10px 0 2px 34px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

body > .dywn-drawer .dywn-date-field {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}

body > .dywn-drawer .dywn-date-field > span {
    color: #aeb9c7;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

body > .dywn-drawer .dywn-date-field input[type="date"] {
    appearance: auto;
    -webkit-appearance: none;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 38px 0 12px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    border-radius: 8px !important;
    background-color: #081522 !important;
    color: #f7f9fc !important;
    color-scheme: dark;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1 !important;
}

body > .dywn-drawer .dywn-date-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: .9;
    cursor: pointer;
    filter: invert(1);
}

body > .dywn-drawer .dywn-date-field input[type="date"]:focus {
    outline: none !important;
    border-color: #315cff !important;
    box-shadow: 0 0 0 3px rgba(49,92,255,.14) !important;
}
/* Date fields — lighter surface in dark mode */
body.dywn-theme-dark input[type="date"] {
    background: #dce5ee !important;
    color: #101827 !important;
    border: 1px solid #738399 !important;
    color-scheme: light !important;
}

body.dywn-theme-dark input[type="date"]:hover {
    background: #a2a2a2 !important;
    border-color: #94a3b8 !important;
}

body.dywn-theme-dark input[type="date"]:focus {
    background: #f1f5f9 !important;
    border-color: #4f7cff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.18) !important;
}
@media (max-width: 700px) {
    body.dywn-page-template .dywn-search,
    body.dywn-page-template .dywn-filter-btn {
        height: 56px !important;
        min-height: 56px !important;
    }

    body.dywn-page-template .dywn-search {
        padding-right: 50px;
    }

    body.dywn-page-template .dywn-search-icon {
        right: 16px;
        width: 22px;
        height: 22px;
    }

    body > .dywn-drawer .dywn-date-range {
        margin-left: 0;
    }
}

/* =========================================================
   V19 — FEATURED TITLE + CALENDAR ICON + SEARCH SPACING
   ========================================================= */

/* Keep the search flush with the tools row (user-approved adjustment). */
body.dywn-page-template .dywn-search {
    margin-bottom: 0 !important;
}

/* Featured hero only: keep long editorial headlines under control. */
body.dywn-page-template .dywn-group--today .dywn-card--featured h3,
body.dywn-page-template .dywn-group--latest .dywn-card--featured h3 {
    max-width: 900px !important;
    font-size: clamp(30px, 2.35vw, 46px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em !important;
    text-wrap: balance;
}

/* Make the native calendar picker icon clearly visible on dark inputs. */
body > .dywn-drawer .dywn-date-field input[type="date"] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    color-scheme: dark !important;
}

body > .dywn-drawer .dywn-date-field input[type="date"]::-webkit-calendar-picker-indicator {
    display: block !important;
    opacity: 1 !important;
    filter: invert(1) brightness(1.8) !important;
    cursor: pointer !important;
}

@media (max-width: 700px) {
    body.dywn-page-template .dywn-group--today .dywn-card--featured h3,
    body.dywn-page-template .dywn-group--latest .dywn-card--featured h3 {
        font-size: clamp(26px, 7vw, 36px) !important;
        max-width: 100% !important;
    }
}


/* =========================================================
   V20 — CAARDS THEME MODE INTEGRATION
   Uses the site's existing light/dark mode switch. The JS watches
   Caards' scheme state and applies dywn-theme-light / dywn-theme-dark
   to <body>. No second switch is added by this plugin.
   ========================================================= */

/* DARK MODE — current V19 design remains the canonical dark palette. */
body.dywn-page-template.dywn-theme-dark,
body.dywn-page-template.dywn-theme-dark #page,
body.dywn-page-template.dywn-theme-dark .cs-site,
body.dywn-page-template.dywn-theme-dark .cs-site-inner,
body.dywn-page-template.dywn-theme-dark .dywn-template-main {
    background: #020c15 !important;
}

/* LIGHT MODE — a deliberate editorial light theme, not a simple inversion. */
body.dywn-page-template.dywn-theme-light,
body.dywn-page-template.dywn-theme-light #page,
body.dywn-page-template.dywn-theme-light .cs-site,
body.dywn-page-template.dywn-theme-light .cs-site-inner,
body.dywn-page-template.dywn-theme-light .dywn-template-main {
    background: #f4f7fb !important;
    color: #132033 !important;
}

body.dywn-page-template.dywn-theme-light .dywn-template-main > .dywn-shell {
    color: #132033 !important;
    background: transparent !important;
}

/* Keep the blue brand atmosphere, but make it soft enough for light mode. */
body.dywn-page-template.dywn-theme-light .dywn-shell::before {
    background: radial-gradient(
        ellipse at 78% 8%,
        rgba(49, 92, 255, .105) 0%,
        rgba(82, 126, 221, .055) 34%,
        rgba(244, 247, 251, 0) 70%
    ) !important;
}

/* Page heading and supporting copy. */
body.dywn-page-template.dywn-theme-light .dywn-head h1,
body.dywn-page-template.dywn-theme-light .dywn-date-group > h2 {
    color: #101a2a !important;
}

body.dywn-page-template.dywn-theme-light .dywn-head p {
    color: #637083 !important;
}

body.dywn-page-template.dywn-theme-light .dywn-status {
    color: #76859a !important;
}

/* Search + Filters & Sort controls. */
body.dywn-page-template.dywn-theme-light .dywn-search,
body.dywn-page-template.dywn-theme-light .dywn-filter-btn,
body.dywn-page-template.dywn-theme-light .dywn-load-more {
    border-color: #d2dae5 !important;
    background: rgba(255, 255, 255, .88) !important;
    color: #152236 !important;
    box-shadow: 0 7px 24px rgba(30, 49, 74, .055);
}

body.dywn-page-template.dywn-theme-light .dywn-search input {
    color: #152236 !important;
}

body.dywn-page-template.dywn-theme-light .dywn-search input::placeholder {
    color: #77869a !important;
}

body.dywn-page-template.dywn-theme-light .dywn-search-icon {
    color: #26364c !important;
}

body.dywn-page-template.dywn-theme-light .dywn-filter-btn:hover,
body.dywn-page-template.dywn-theme-light .dywn-load-more:hover {
    background: #ffffff !important;
    border-color: #aeb9c8 !important;
}

/* Quick filters. */
body.dywn-page-template.dywn-theme-light .dywn-quick-filter {
    border-color: #d3dce8 !important;
    background: rgba(255, 255, 255, .76) !important;
    color: #2d3b4f !important;
    box-shadow: 0 4px 16px rgba(28, 47, 71, .035);
}

body.dywn-page-template.dywn-theme-light .dywn-quick-filter:hover {
    border-color: #aab8ca !important;
    background: #fff !important;
    color: #111c2c !important;
}

body.dywn-page-template.dywn-theme-light .dywn-quick-filter.is-active {
    border-color: #315cff !important;
    background: #315cff !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(49, 92, 255, .18) !important;
}

/* Standard cards become crisp editorial panels in light mode.
   The featured hero intentionally remains photographic/dark for contrast. */
body.dywn-page-template.dywn-theme-light .dywn-card:not(.dywn-card--featured) {
    border-color: #d8e0e9 !important;
    background: #ffffff !important;
    color: #172236 !important;
    box-shadow: 0 10px 28px rgba(27, 46, 69, .07) !important;
}

body.dywn-page-template.dywn-theme-light .dywn-card:not(.dywn-card--featured):hover {
    border-color: #bdc9d7 !important;
    box-shadow: 0 17px 38px rgba(27, 46, 69, .11) !important;
}

body.dywn-page-template.dywn-theme-light .dywn-card:not(.dywn-card--featured) .dywn-card-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

body.dywn-page-template.dywn-theme-light .dywn-card:not(.dywn-card--featured) h3 {
    color: #121d2e !important;
}

body.dywn-page-template.dywn-theme-light .dywn-card:not(.dywn-card--featured) .dywn-meta {
    color: #708096 !important;
}

body.dywn-page-template.dywn-theme-light .dywn-card:not(.dywn-card--featured) .dywn-card-desc {
    color: #586779 !important;
}

/* Featured cards retain white copy over photography in both schemes. */
body.dywn-page-template.dywn-theme-light .dywn-card--featured,
body.dywn-page-template.dywn-theme-light .dywn-card--featured h3 {
    color: #fff !important;
}

body.dywn-page-template.dywn-theme-light .dywn-card--featured .dywn-card-desc {
    color: #d9e1ea !important;
}

/* Empty state. */
body.dywn-page-template.dywn-theme-light .dywn-empty {
    border-color: #cfd8e3 !important;
    color: #65758a !important;
    background: rgba(255, 255, 255, .55);
}

/* Drawer is appended directly to <body>, so theme it from the body state. */
body.dywn-theme-light > .dywn-backdrop {
    background: rgba(25, 39, 58, .34) !important;
    backdrop-filter: blur(4px);
}

body.dywn-theme-light > .dywn-drawer {
    border-color: #d7dfe9 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
    color: #142136 !important;
    box-shadow: -18px 24px 70px rgba(31, 48, 69, .18) !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-drawer-head {
    border-bottom-color: #e1e6ed !important;
    background: rgba(255, 255, 255, .96) !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-drawer-head h2,
body.dywn-theme-light > .dywn-drawer .dywn-drawer-head button,
body.dywn-theme-light > .dywn-drawer .dywn-filter-section h3 {
    color: #172438 !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-filter-section {
    border-top-color: #e3e8ef !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-filter-section label,
body.dywn-theme-light > .dywn-drawer .dywn-filter-all {
    color: #2c3a4e !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-filter-section label:hover,
body.dywn-theme-light > .dywn-drawer .dywn-filter-all:hover {
    background: #eef3f9 !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-filter-all.is-active {
    background: linear-gradient(90deg, rgba(49,92,255,.12), rgba(49,92,255,.025)) !important;
    color: #18263b !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-filter-section select,
body.dywn-theme-light > .dywn-drawer .dywn-date-field input[type="date"] {
    border-color: #d5dde8 !important;
    background: #ffffff !important;
    color: #172438 !important;
    color-scheme: light !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-date-field > span {
    color: #65758a !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-date-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none !important;
    opacity: .78 !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-date-range {
    border-color: #dfe5ed !important;
    background: #f3f6fa !important;
}

body.dywn-theme-light > .dywn-drawer .dywn-drawer-actions {
    background: linear-gradient(180deg, rgba(248,250,252,.84), #f7f9fc 28%) !important;
    border-top: 1px solid #e3e8ef;
}

body.dywn-theme-light > .dywn-drawer #dywn-reset {
    border-color: #d4dce7 !important;
    background: #ffffff !important;
    color: #315cff !important;
}

/* Avoid an abrupt theme change: only color properties animate. */
body.dywn-page-template .dywn-template-main,
body.dywn-page-template .dywn-shell,
body.dywn-page-template .dywn-search,
body.dywn-page-template .dywn-filter-btn,
body.dywn-page-template .dywn-quick-filter,
body.dywn-page-template .dywn-card:not(.dywn-card--featured),
body > .dywn-drawer {
    transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}


/* =========================================================
   V25 — CLEAN MONTH HEADER + INLINE VIEW ALL
   Keeps each month editorial by showing five cards initially,
   while exposing the exact filtered total on the right.
   ========================================================= */

.dywn-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}

.dywn-month-head > h2 {
    display: flex !important;
    align-items: center;
    gap: 11px;
    margin: 0 !important;
    color: var(--dywn-text) !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.dywn-month-head > h2 > span {
    display: block;
    width: 4px;
    height: 20px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--dywn-blue);
}

.dywn-month-toggle {
    flex: 0 0 auto;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #7ea2ff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition: color .18s ease, opacity .18s ease;
}

.dywn-month-toggle:hover {
    color: #a9bfff;
}

.dywn-month-toggle:disabled {
    opacity: .5;
    cursor: wait;
}

.dywn-month-toggle[hidden] {
    display: none !important;
}

.dywn-month-extra-hidden {
    display: none !important;
}

body.dywn-theme-light .dywn-month-toggle {
    color: #315cff;
}

body.dywn-theme-light .dywn-month-toggle:hover {
    color: #2449d8;
}

@media (max-width: 700px) {
    .dywn-month-head {
        gap: 12px;
        margin-bottom: 15px;
    }

    .dywn-month-head > h2 {
        font-size: 18px !important;
    }

    .dywn-month-toggle {
        font-size: 12px;
        white-space: nowrap;
    }
}


/* =========================================================
   V26 — LIGHT MONTH HEADING FIX
   The month title moved inside .dywn-month-head in V25, so it
   needs its own light-theme selector rather than inheriting the
   older direct-child heading rule.
   ========================================================= */
body.dywn-page-template.dywn-theme-light .dywn-month-head > h2,
body.dywn-theme-light .dywn-month-head > h2 {
    color: #111827 !important;
}

/* V26.2 — Product News content type has been retired. Hide stale cached UI markup defensively. */
.dywn-quick-filter[data-type="product-news"],
.dywn-filter-section label:has(input[name="dywn-type"][value="product-news"]) {
    display: none !important;
}

/* =========================================================
   V26.3 — MONTH TOGGLE HOVER
   Keep the month action as a clean text link. Caards/global
   button hover styles must not turn it into a filled button.
   ========================================================= */
.dywn-month-toggle,
.dywn-month-toggle:hover,
.dywn-month-toggle:focus,
.dywn-month-toggle:active {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    padding: 5px 0 !important;
}

.dywn-month-toggle:hover {
    color: #a9bfff !important;
    opacity: .82;
}

body.dywn-theme-light .dywn-month-toggle {
    color: #315cff !important;
}

body.dywn-theme-light .dywn-month-toggle:hover {
    color: #2449d8 !important;
    opacity: .78;
}

.dywn-month-toggle:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 4px;
}

/* =========================================================
   V27 — WHAT'S ON SIMPLIFICATION
   ========================================================= */
body.dywn-page-template .dywn-head,
.dywn-head {
    display: block !important;
    margin-bottom: 34px !important;
}

.dywn-head > div:first-child {
    max-width: none !important;
}

.dywn-head h1 {
    margin-bottom: 0 !important;
}

/* V27 has no search, quick filters, filter drawer, status count or month expanders. */
.dywn-tools,
.dywn-quick-filters,
.dywn-status,
.dywn-backdrop,
.dywn-drawer,
.dywn-month-toggle {
    display: none !important;
}

/* Manual What's On single page */
.dywn-single-main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 90px;
}

.dywn-single-article {
    max-width: 980px;
    margin: 0 auto;
}

.dywn-single-header {
    max-width: 900px;
    margin-bottom: 30px;
}

.dywn-single-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: #5b35f5;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.dywn-single-header h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.dywn-single-date {
    opacity: .65;
    font-size: 15px;
}

.dywn-single-featured {
    margin: 36px 0 46px;
    border-radius: 16px;
    overflow: hidden;
}

.dywn-single-featured img {
    display: block;
    width: 100%;
    height: auto;
}

.dywn-single-content {
    max-width: 780px;
    font-size: 18px;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .dywn-single-main {
        width: min(100% - 24px, 1120px);
        padding-top: 38px;
    }
    .dywn-single-header h1 {
        font-size: clamp(34px, 10vw, 48px);
    }
    .dywn-single-featured {
        margin: 26px 0 34px;
        border-radius: 12px;
    }
}

/* =========================================================
   V27.2 — REMOVE WHAT'S ON DECORATIVE PAGE BACKGROUND
   Let the Caards page background show through naturally.
   ========================================================= */
body.dywn-page-template .dywn-shell,
body.dywn-page-template.dywn-theme-light .dywn-shell,
body.dywn-page-template.dywn-theme-dark .dywn-shell {
    background: transparent !important;
    background-image: none !important;
}

body.dywn-page-template .dywn-shell::before,
body.dywn-page-template .dywn-shell::after {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
}


/* =========================================================
   V27.7 — MANUAL ITEM SINGLE PAGE
   Wider featured image + direct return to What's On.
   ========================================================= */
body.dywn-single-page .dywn-single-main {
    width: min(1600px, calc(100% - 80px));
}

body.dywn-single-page .dywn-single-article {
    max-width: none;
    width: 100%;
}

body.dywn-single-page .dywn-single-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 28px;
    color: #315cff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: opacity .18s ease;
}

body.dywn-single-page .dywn-single-back:hover,
body.dywn-single-page .dywn-single-back:focus {
    color: #315cff;
    opacity: .68;
    background: transparent !important;
    text-decoration: none !important;
}

body.dywn-single-page .dywn-single-header {
    max-width: 1050px;
}

body.dywn-single-page .dywn-single-featured {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body.dywn-single-page .dywn-single-featured img {
    width: 100%;
    max-width: none;
    height: auto;
}

body.dywn-single-page .dywn-single-content {
    max-width: 900px;
}

@media (max-width: 900px) {
    body.dywn-single-page .dywn-single-main {
        width: min(100% - 32px, 1600px);
    }
}

@media (max-width: 700px) {
    body.dywn-single-page .dywn-single-main {
        width: min(100% - 24px, 1600px);
    }

    body.dywn-single-page .dywn-single-back {
        margin-bottom: 22px;
    }
}

/* =========================================================
   V28 — UPCOMING / PREVIOUS EVENT TIMELINE
   ========================================================= */
.dywn-v28 .dywn-v28-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 34px;
    align-items: start;
}

.dywn-v28 .dywn-view-stage {
    min-width: 0;
    overflow: hidden;
    transition: height .34s ease;
}

.dywn-v28 .dywn-view-stage.dywn-stage-no-transition {
    transition: none !important;
}

.dywn-v28 .dywn-view-track {
    display: flex;
    width: 200%;
    transform: translateX(0);
    transition: transform .58s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.dywn-v28 .dywn-view-track.is-previous {
    transform: translateX(-50%);
}

.dywn-v28 .dywn-view-panel {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    padding-right: 2px;
}

.dywn-v28 .dywn-today-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    color: #101827 !important;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.15;
    font-weight: 750;
}

.dywn-v28 .dywn-today-title > span {
    display: block;
    width: 4px;
    height: 28px;
    border-radius: 999px;
    background: #315cff;
    flex: 0 0 auto;
}

.dywn-v28 .dywn-view-nav {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 48px;
    z-index: 4;
}

.dywn-v28 .dywn-view-nav-btn,
.dywn-v28 .dywn-view-nav-btn:hover,
.dywn-v28 .dywn-view-nav-btn:focus {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #738095 !important;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none !important;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
}

.dywn-v28 .dywn-view-nav-btn.is-active {
    color: #315cff !important;
}

.dywn-v28 .dywn-view-nav-btn span {
    display: inline-block;
    transition: transform .22s ease;
}

.dywn-v28 .dywn-view-nav-btn[data-view-target="upcoming"]:hover span,
.dywn-v28 .dywn-view-nav-btn[data-view-target="upcoming"]:focus span {
    transform: translateX(6px);
}

.dywn-v28 .dywn-view-nav-btn[data-view-target="previous"]:hover span,
.dywn-v28 .dywn-view-nav-btn[data-view-target="previous"]:focus span {
    transform: translateX(-6px);
}

.dywn-v28 .dywn-view-panel .dywn-date-group:first-child {
    margin-top: 0;
}

body.dywn-theme-dark .dywn-v28 .dywn-today-title {
    color: #f4f7fb !important;
}

body.dywn-theme-dark .dywn-v28 .dywn-view-nav-btn,
body.dywn-theme-dark .dywn-v28 .dywn-view-nav-btn:hover,
body.dywn-theme-dark .dywn-v28 .dywn-view-nav-btn:focus {
    color: #9aa9bd !important;
}

body.dywn-theme-dark .dywn-v28 .dywn-view-nav-btn.is-active {
    color: #7fa1ff !important;
}

.dywn-v28 .dywn-older-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0 4px;
}

.dywn-v28 .dywn-load-older,
.dywn-v28 .dywn-load-older:hover,
.dywn-v28 .dywn-load-older:focus {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #315cff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
}

.dywn-v28 .dywn-load-older span {
    display: inline-block;
    transition: transform .22s ease;
}

.dywn-v28 .dywn-load-older:hover span,
.dywn-v28 .dywn-load-older:focus span {
    transform: translateY(4px);
}

body.dywn-theme-dark .dywn-v28 .dywn-load-older,
body.dywn-theme-dark .dywn-v28 .dywn-load-older:hover,
body.dywn-theme-dark .dywn-v28 .dywn-load-older:focus {
    color: #7fa1ff !important;
}

@media (max-width: 900px) {
    .dywn-v28 .dywn-v28-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .dywn-v28 .dywn-view-nav {
        position: static;
        order: -1;
        width: 100%;
        padding: 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .dywn-v28 .dywn-view-nav-btn,
    .dywn-v28 .dywn-view-nav-btn:hover,
    .dywn-v28 .dywn-view-nav-btn:focus {
        min-height: 42px;
        font-size: 15px;
    }

    .dywn-v28 .dywn-view-stage {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dywn-v28 .dywn-view-track,
    .dywn-v28 .dywn-view-nav-btn span {
        transition: none !important;
    }
}
