body:has(.public-video-page) {
    background: #f5f7f9;
}

body:has(.public-video-page) .auth-shell {
    width: min(100%, 600px);
    max-width: none;
    padding: 14px 10px 118px;
}

body:has(.public-video-page) .auth-brand {
    padding: 6px 6px 18px;
}

body:has(.public-video-page) .auth-footer {
    display: none;
}

.public-video-page {
    --video-red: #ef3f42;
    --video-red-dark: #c9262b;
    --video-ink: #17211c;
    --video-muted: #66736c;
    --video-line: #dce6e1;
    display: grid;
    color: var(--video-ink);
    gap: 14px;
}

.public-video-hero,
.public-video-section,
.public-video-search,
.public-video-today {
    border: 1px solid var(--video-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(27 59 44 / 7%);
}

.public-video-hero {
    padding: 20px 17px;
    border-left: 4px solid var(--video-red);
}

.public-video-kicker {
    margin: 0 0 5px;
    color: var(--video-red-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.public-video-hero h1 {
    margin: 0;
    color: #101b16;
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.public-video-hero > p:last-child {
    margin: 11px 0 0;
    color: var(--video-muted);
    font-size: 14px;
    line-height: 1.65;
}

.public-video-today {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 12px 14px;
    gap: 2px 9px;
}

.public-video-today > span {
    grid-row: 1 / 3;
    font-size: 21px;
}

.public-video-today p,
.public-video-today small {
    margin: 0;
}

.public-video-today p {
    font-size: 13px;
}

.public-video-today strong {
    color: var(--video-red-dark);
}

.public-video-today small {
    color: var(--video-muted);
    font-size: 11px;
}

.public-video-feedback {
    padding: 12px 14px;
    border: 1px solid rgb(217 52 58 / 24%);
    border-radius: 14px;
    color: #b4232a;
    background: #fff5f5;
    font-size: 13px;
}

.public-video-feedback p {
    margin: 0;
}

.public-video-feedback p + p {
    margin-top: 5px;
}

.public-video-search {
    padding: 13px;
}

.public-video-search > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.public-video-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
}

.public-video-search input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d4dfda;
    border-radius: 14px;
    outline: none;
    background: #fbfcfc;
}

.public-video-search input:focus {
    border-color: var(--video-red);
    box-shadow: 0 0 0 3px rgb(239 63 66 / 11%);
}

.public-video-search button {
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--video-red);
    cursor: pointer;
    font-size: 25px;
    font-weight: 900;
}

.public-video-section {
    padding: 16px;
}

.public-video-section__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 13px;
    gap: 10px;
}

.public-video-section__heading h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.public-video-section__heading > a {
    flex: 0 0 auto;
    color: #087b45;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.public-video-featured {
    overflow: hidden;
    border: 1px solid #e1e7e4;
    border-radius: 17px;
    background: #fff;
}

.public-video-featured__label {
    padding: 9px 12px;
    color: var(--video-red-dark);
    background: #fff4f3;
    font-size: 12px;
    font-weight: 900;
}

.public-video-featured__media,
.public-video-result-card__media,
.public-video-mini-card__media {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: linear-gradient(145deg, #203129, #0c1712);
    text-decoration: none;
}

.public-video-featured__media {
    aspect-ratio: 16 / 9;
}

.public-video-featured__media img,
.public-video-result-card__media img,
.public-video-mini-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.public-video-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #315243, #13241c);
    font-size: 42px;
}

.public-video-play {
    position: absolute;
    display: grid;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid rgb(255 255 255 / 86%);
    border-radius: 50%;
    color: #fff;
    background: rgb(0 0 0 / 55%);
    font-size: 14px;
    transform: translate(-50%, -50%);
}

.public-video-play--large {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.public-video-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--video-red);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.public-video-badge--media {
    position: absolute;
    top: 9px;
    left: 9px;
}

.public-video-featured__body {
    padding: 14px;
}

.public-video-featured__body h3,
.public-video-result-card__body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.public-video-featured__body > p {
    display: -webkit-box;
    margin: 8px 0;
    overflow: hidden;
    color: var(--video-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 13px;
    color: var(--video-muted);
    font-size: 11px;
}

.public-video-primary-action {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border-radius: 12px;
    color: #fff;
    background: var(--video-red);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.public-video-environments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 13px;
    gap: 10px;
}

.public-video-environment {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 146px;
    flex-direction: column;
    padding: 14px 12px;
    border: 1px solid #dce6e1;
    border-radius: 16px;
    color: #18241e;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgb(20 58 40 / 6%);
}

.public-video-environment--natural {
    background: linear-gradient(145deg, #fff, #f2fbf5);
}

.public-video-environment--service {
    background: linear-gradient(145deg, #fff, #f3f8ff);
}

.public-video-environment__icon {
    margin-bottom: 8px;
    font-size: 24px;
}

.public-video-environment strong {
    font-size: 14px;
    line-height: 1.3;
}

.public-video-environment small {
    margin-top: 5px;
    color: #087b45;
    font-size: 11px;
    font-weight: 800;
}

.public-video-environment em {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--video-muted);
    font-size: 10px;
    font-style: normal;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-video-environment > span:last-child {
    position: absolute;
    right: 11px;
    bottom: 10px;
    color: var(--video-red);
    font-weight: 900;
}

.public-video-rail {
    display: grid;
    grid-auto-columns: minmax(148px, 42%);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 2px 1px 8px;
    gap: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.public-video-mini-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e8e4;
    border-radius: 14px;
    color: var(--video-ink);
    background: #fff;
    text-decoration: none;
    scroll-snap-align: start;
}

.public-video-mini-card__media {
    aspect-ratio: 16 / 10;
}

.public-video-mini-card strong,
.public-video-mini-card > small {
    margin-right: 9px;
    margin-left: 9px;
}

.public-video-mini-card strong {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-video-mini-card > small {
    margin-top: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    color: var(--video-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-video-popular-list,
.public-video-result-list {
    display: grid;
    gap: 10px;
}

.public-video-popular {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 60px;
    padding: 9px 11px;
    border: 1px solid #e0e8e4;
    border-radius: 14px;
    color: var(--video-ink);
    text-decoration: none;
    gap: 9px;
}

.public-video-popular__rank {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    color: var(--video-red-dark);
    background: #fff1f0;
    font-size: 12px;
    font-weight: 900;
}

.public-video-popular strong,
.public-video-popular small {
    display: block;
}

.public-video-popular strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-video-popular small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--video-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-video-result-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dfe7e3;
    border-radius: 15px;
    background: #fff;
}

.public-video-result-card__media {
    min-height: 132px;
}

.public-video-result-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 11px;
}

.public-video-result-card__body h3 {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-video-result-card__body p,
.public-video-result-card__body small {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--video-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-video-result-card__body > a {
    margin-top: auto;
    padding-top: 7px;
    color: #087b45;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.public-video-empty {
    display: grid;
    justify-items: center;
    padding: 24px 16px;
    border: 1px dashed #cbdcd3;
    border-radius: 15px;
    color: var(--video-muted);
    text-align: center;
    gap: 6px;
}

.public-video-empty > span {
    font-size: 30px;
}

.public-video-empty strong {
    color: #273a31;
    font-size: 13px;
}

.public-video-empty p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
}

.public-video-empty--compact {
    padding: 17px;
}

.public-video-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 8px;
    font-size: 11px;
}

.public-video-pagination a {
    color: #087b45;
    font-weight: 800;
    text-decoration: none;
}

.public-video-pagination span {
    color: var(--video-muted);
}

.public-video-page a:active,
.public-video-page button:active {
    opacity: .7;
}

@media (min-width: 640px) {
    body:has(.public-video-page) .auth-shell {
        justify-content: flex-start;
        padding-top: 28px;
    }
}

@media (max-width: 380px) {
    .public-video-result-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }
}

/* DMC 7.2D3 Member Video entry */
.public-video-member-entry {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #8bd8b1;
    border-radius: 16px;
    color: #075f39;
    background: linear-gradient(135deg, #effcf5, #fff);
    box-shadow: 0 9px 24px rgb(27 89 56 / 8%);
    gap: 10px;
    text-decoration: none;
}
.public-video-member-entry > span:first-child { font-size: 24px; }
.public-video-member-entry strong, .public-video-member-entry small { display: block; }
.public-video-member-entry strong { font-size: 14px; }
.public-video-member-entry small { margin-top: 3px; color: #64756c; font-size: 11px; }

/* DMC 7.2D6 topic navigation */
.public-video-section__heading h2 {
    text-wrap: balance;
}

/* DMC 7.2E2 mobile featured width containment */
@media (max-width: 639px) {
    body:has(.public-video-page) .auth-shell {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100vw;
        overflow-x: clip;
    }

    .public-video-page,
    .public-video-page > *,
    .public-video-section,
    .public-video-featured,
    .public-video-featured__media,
    .public-video-featured__body,
    .public-video-environments {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    .public-video-page,
    .public-video-page > *,
    .public-video-section,
    .public-video-featured,
    .public-video-featured__media,
    .public-video-featured__body,
    .public-video-environments {
        width: 100%;
    }

    .public-video-page {
        overflow-x: clip;
    }

    .public-video-featured__media img {
        min-width: 0;
        max-width: 100%;
    }

    .public-video-featured__body h3,
    .public-video-featured__body p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* DMC 9.6D - desktop Practical Video */
.public-video-desktop-intro,
.public-video-desktop-tools,
.public-video-desktop-grid {
    display: contents;
}

@media (min-width: 1024px) {
    body:has(.public-video-page) {
        background:
            radial-gradient(circle at 12% 4%, rgb(239 63 66 / 9%), transparent 28rem),
            radial-gradient(circle at 88% 18%, rgb(9 158 88 / 9%), transparent 25rem),
            linear-gradient(180deg, #f6faf8 0%, #edf3f0 100%);
    }

    body:has(.public-video-page) .auth-shell {
        width: min(1180px, calc(100% - 48px));
        max-width: none;
        padding: 28px 0 116px;
        justify-content: flex-start;
    }

    body:has(.public-video-page) .auth-brand {
        width: 100%;
        margin-bottom: 22px;
        padding: 10px 6px 20px;
    }

    .public-video-page {
        width: 100%;
        min-width: 0;
        gap: 20px;
    }

    .public-video-desktop-intro {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
        align-items: stretch;
        gap: 18px;
    }

    .public-video-hero {
        display: grid;
        min-height: 320px;
        align-content: center;
        padding: 38px 42px;
        border-left-width: 5px;
        border-radius: 27px;
        background:
            linear-gradient(125deg, rgb(255 255 255 / 98%), rgb(255 246 245 / 96%));
        box-shadow: 0 19px 46px rgb(76 31 32 / 10%);
    }

    .public-video-hero h1 {
        max-width: 720px;
        font-size: clamp(40px, 4vw, 58px);
        line-height: 1.04;
    }

    .public-video-hero > p:last-child {
        max-width: 690px;
        margin-top: 16px;
        font-size: 15px;
    }

    .public-video-desktop-tools {
        display: grid;
        align-content: start;
        gap: 12px;
    }

    .public-video-member-entry,
    .public-video-today,
    .public-video-search {
        border-radius: 20px;
        box-shadow: 0 13px 32px rgb(27 59 44 / 8%);
    }

    .public-video-member-entry {
        min-height: 82px;
        padding: 16px 18px;
    }

    .public-video-member-entry > span:first-child { font-size: 30px; }
    .public-video-member-entry strong { font-size: 15px; }

    .public-video-today {
        min-height: 82px;
        padding: 16px 18px;
    }

    .public-video-today > span { font-size: 27px; }
    .public-video-today p { font-size: 14px; }

    .public-video-search {
        display: grid;
        min-height: 116px;
        align-content: center;
        padding: 18px;
    }

    .public-video-feedback { margin: 0; }

    .public-video-results {
        padding: 26px;
        border-radius: 25px;
    }

    .public-video-result-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .public-video-result-card {
        grid-template-columns: 1fr;
        align-content: start;
        border-radius: 18px;
    }

    .public-video-result-card__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .public-video-result-card__body {
        min-height: 170px;
        padding: 16px;
    }

    .public-video-result-card__body h3 { font-size: 17px; }

    .public-video-desktop-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: start;
        gap: 18px;
    }

    .public-video-desktop-grid > .public-video-section {
        min-width: 0;
        padding: 25px;
        border-radius: 25px;
        box-shadow: 0 16px 40px rgb(27 59 44 / 8%);
    }

    .public-video-choice {
        grid-column: 1 / span 8;
        grid-row: 1;
    }

    .public-video-popular-section {
        grid-column: 9 / -1;
        grid-row: 1;
    }

    .public-video-latest {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .public-video-featured {
        border-radius: 21px;
    }

    .public-video-featured__media {
        aspect-ratio: 16 / 8.6;
    }

    .public-video-featured__body {
        padding: 22px;
    }

    .public-video-featured__body h3 {
        font-size: 25px;
        line-height: 1.2;
    }

    .public-video-featured__body > p {
        max-width: 680px;
        font-size: 14px;
    }

    .public-video-primary-action {
        width: fit-content;
        min-width: 154px;
        padding-inline: 20px;
    }

    .public-video-environments {
        margin-top: 16px;
        gap: 12px;
    }

    .public-video-environment {
        min-height: 138px;
        padding: 16px;
        border-radius: 18px;
    }

    .public-video-popular-list { gap: 10px; }

    .public-video-popular {
        min-height: 72px;
        padding: 12px;
        border-radius: 16px;
    }

    .public-video-popular strong {
        font-size: 13px;
        line-height: 1.35;
        white-space: normal;
    }

    .public-video-rail {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
        gap: 14px;
        scroll-snap-type: none;
    }

    .public-video-mini-card {
        border-radius: 18px;
    }

    .public-video-mini-card__media {
        aspect-ratio: 16 / 9;
    }

    .public-video-mini-card strong {
        margin: 12px 12px 0;
        font-size: 14px;
    }

    .public-video-mini-card > small {
        margin: 7px 12px 13px;
        font-size: 10px;
    }
}
/* End DMC 9.6D */

/* DMC 9.7A - grouped Practical Video topics */
.public-video-topic-map {
    scroll-margin-top: 16px;
    padding: 17px;
    border: 1px solid #cfe3d9;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgb(8 159 86 / 8%), transparent 16rem),
        #fbfffd;
    box-shadow: 0 12px 30px rgb(27 59 44 / 7%);
}

.public-video-topic-map__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.public-video-topic-map__heading h2 {
    margin: 0;
    color: #10241a;
    font-size: 21px;
    line-height: 1.2;
}

.public-video-topic-map__heading > a {
    flex: none;
    color: #07894d;
    font-size: 11px;
    font-weight: 850;
}

.public-video-topic-tabs {
    display: flex;
    max-width: 100%;
    margin-top: 15px;
    padding-bottom: 9px;
    overflow-x: auto;
    gap: 7px;
    scrollbar-width: none;
}

.public-video-topic-tabs::-webkit-scrollbar { display: none; }

.public-video-topic-tabs a,
.public-video-topic-chips a {
    flex: none;
    border: 1px solid #c9dfd4;
    color: #234b39;
    background: #fff;
    font-weight: 850;
    text-decoration: none;
}

.public-video-topic-tabs a {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 11px;
}

.public-video-topic-tabs a.is-active {
    border-color: #079f56;
    color: #fff;
    background: #079f56;
    box-shadow: 0 7px 16px rgb(7 159 86 / 17%);
}

.public-video-topic-panel {
    margin-top: 3px;
    padding-top: 14px;
    border-top: 1px solid #d8e7df;
}

.public-video-topic-panel h3 {
    margin: 0 0 11px;
    color: #52675d;
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.public-video-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-video-topic-chips a {
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
}

.public-video-topic-chips a:hover,
.public-video-topic-chips a.is-active {
    border-color: #079f56;
    color: #067844;
    background: #eaf9f1;
}

@media (min-width: 1024px) {
    .public-video-topic-map {
        padding: 27px 29px;
        border-radius: 25px;
        box-shadow: 0 16px 40px rgb(27 59 44 / 8%);
    }

    .public-video-topic-map__heading h2 { font-size: 27px; }

    .public-video-topic-tabs {
        flex-wrap: wrap;
        overflow: visible;
        gap: 9px;
    }

    .public-video-topic-tabs a {
        padding: 10px 15px;
        font-size: 12px;
    }

    .public-video-topic-panel { padding-top: 18px; }

    .public-video-topic-chips { gap: 10px; }

    .public-video-topic-chips a {
        padding: 10px 16px;
        font-size: 14px;
    }
}
/* End DMC 9.7A */

/* DMC 9.13A - relationship and province Video scopes */
.public-video-scope-tabs {
    display: flex;
    gap: .55rem;
    margin: 1rem 0;
    padding: .35rem;
    overflow-x: auto;
    border: 1px solid rgba(0, 114, 78, .14);
    border-radius: 999px;
    background: rgba(239, 249, 245, .92);
}
.public-video-scope-tabs a {
    flex: 0 0 auto;
    padding: .68rem .95rem;
    border-radius: 999px;
    color: #315b50;
    font-weight: 800;
    text-decoration: none;
}
.public-video-scope-tabs a.is-active {
    color: #fff;
    background: #007b55;
    box-shadow: 0 6px 16px rgba(0, 123, 85, .2);
}