/* The learning library shares the site's blue palette and local imagery. */
.hfd-video-library{--video-ink:#173e4e;--video-muted:#5b7480;--video-blue:#247e9e;--video-line:#d3e3e9;--video-paper:#edf5f7;--video-accent:#429cbf;max-width:1180px;margin:64px auto 80px;padding:0 24px;color:var(--video-ink);font-family:inherit;line-height:1.55}
.hfd-video-library *{box-sizing:border-box}
.hfd-video-library [hidden]{display:none!important}
.hfd-video-library :is(h1,h2,h3){color:var(--video-ink)!important;font-style:normal!important;font-weight:700!important;line-height:1.16}
.hfd-video-library h1{font-size:clamp(36px,4.6vw,60px)!important;margin:0 0 22px;max-width:820px}
.hfd-video-library h2{font-size:clamp(27px,3vw,38px)!important;margin:0 0 12px}
.hfd-video-library h3{font-size:22px!important;margin:0 0 12px}
.hfd-video-library p{margin:0 0 16px;color:var(--video-muted)}
.hfd-video-library a{color:var(--video-blue)}
.hfd-video-library a:focus-visible,.hfd-video-library button:focus-visible,.hfd-video-library input:focus-visible,.hfd-video-library summary:focus-visible{outline:3px solid var(--video-blue);outline-offset:4px}
.hfd-video-library .hfd-video-intro{position:relative;overflow:hidden;background:linear-gradient(115deg,#eaf5f8 0%,#f5f9fc 100%);border:1px solid var(--video-line);border-radius:24px;padding:clamp(28px,4vw,52px);margin-bottom:30px}
.hfd-video-library .hfd-video-intro::after{content:"";position:absolute;right:-95px;top:-95px;width:250px;height:250px;border:36px solid #8ec2d01c;border-radius:50%;pointer-events:none}
.hfd-video-library .hfd-video-intro>.eyebrow,.hfd-video-library .hfd-video-eyebrow{font-size:13px;letter-spacing:.15em;text-transform:uppercase;color:var(--video-blue);font-weight:700;margin:0 0 16px}
.hfd-video-library .hfd-video-intro>.lead{max-width:800px;font-size:clamp(18px,1.8vw,22px);margin:0}
.hfd-video-library .hfd-video-intro a{display:inline-block;margin-top:18px;font-weight:700;text-underline-offset:5px}
.hfd-video-library .hfd-video-paths{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}
.hfd-video-library .hfd-video-paths button{flex:1 1 180px;min-height:58px;padding:14px 18px;border:1px solid var(--video-line);border-radius:10px;background:#fff;color:var(--video-ink);font:inherit;font-size:16px;font-weight:700;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.hfd-video-library .hfd-video-paths button[aria-pressed=true]{background:var(--video-ink);border-color:var(--video-ink);color:#fff;box-shadow:inset 0 -4px var(--video-accent)}
.hfd-video-library .hfd-video-paths button:hover{border-color:var(--video-blue)}
.hfd-video-library .hfd-video-search{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 36px}
.hfd-video-library .hfd-video-search label{flex:1;max-width:620px;font-size:14px;color:var(--video-muted);font-weight:600}
.hfd-video-library .hfd-video-search input{display:block;width:100%;min-height:49px;margin-top:7px;padding:12px 16px;border:1px solid var(--video-line);border-radius:8px;background:#fff;color:var(--video-ink);font:inherit;font-size:17px}
.hfd-video-library [data-hfd-video-count]{white-space:nowrap;color:var(--video-muted);font-size:15px;padding-bottom:11px}
.hfd-video-library [data-hfd-video-group]{margin:0 0 48px;scroll-margin-top:140px}
.hfd-video-library [data-hfd-video-group]>header{margin:0 0 23px;max-width:840px}
.hfd-video-library [data-hfd-video-group]>header>p{margin:0}
.hfd-video-library .hfd-video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.hfd-video-library .hfd-video-card{display:flex;flex-direction:column;min-width:0;margin:0;border:1px solid var(--video-line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 6px 22px #173e4e08;transition:transform .18s,box-shadow .18s}
.hfd-video-library .hfd-video-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #173e4e13}
.hfd-video-library .hfd-video-card>img,.hfd-video-library .hfd-video-card-media{display:block;aspect-ratio:16/9;width:100%;object-fit:cover;background:#dcecf1;margin:0}
.hfd-video-library .hfd-video-card-media{position:relative;overflow:hidden}
.hfd-video-library .hfd-video-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.hfd-video-library .hfd-video-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:55px;height:55px;border-radius:50%;background:#173e4ee8;color:#fff;font-size:22px;box-shadow:0 4px 18px #0003;pointer-events:none}
.hfd-video-library .hfd-video-card-body{display:flex;flex:1;flex-direction:column;align-items:start;padding:23px}
.hfd-video-library .hfd-video-tag{display:inline-flex;align-items:center;gap:7px;color:var(--video-blue);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:12px}
.hfd-video-library .hfd-video-tag::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--video-blue)}
.hfd-video-library .hfd-video-card-body p{font-size:16px;line-height:1.55;margin-bottom:21px}
.hfd-video-library [data-hfd-video-open]:not(.hfd-video-card-media){display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid var(--video-blue);border-radius:6px;background:var(--video-blue);color:#fff!important;text-decoration:none;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.hfd-video-library .hfd-video-card-body>[data-hfd-video-open]{margin-top:auto}
.hfd-video-library [data-hfd-video-open]:not(.hfd-video-card-media):hover{background:#195f79;border-color:#195f79}
.hfd-video-library .hfd-video-note{font-size:14px;line-height:1.6;color:var(--video-muted);margin-top:15px}
.hfd-video-library [data-hfd-video-empty]{padding:26px;border:1px dashed #9abac7;border-radius:10px;background:var(--video-paper)}
.hfd-video-library #video-fragen{scroll-margin-top:140px;margin-top:64px;background:var(--video-paper);border:1px solid var(--video-line);border-radius:18px;padding:clamp(24px,3.5vw,42px)}
.hfd-video-library #video-fragen>p{max-width:760px;margin-bottom:25px}
.hfd-video-library .hfd-video-qa details{border-bottom:1px solid #c7dce5;padding:0;margin:0}
.hfd-video-library .hfd-video-qa details:first-child{border-top:1px solid #c7dce5}
.hfd-video-library .hfd-video-qa summary{position:relative;display:block;list-style:none;padding:22px 42px 22px 0;color:var(--video-ink);font-size:clamp(18px,1.9vw,22px);font-weight:700;line-height:1.4;cursor:pointer}
.hfd-video-library .hfd-video-qa summary::-webkit-details-marker{display:none}
.hfd-video-library .hfd-video-qa summary::after{content:"+";position:absolute;right:0;top:22px;width:26px;height:26px;border-radius:50%;background:#fff;color:var(--video-blue);text-align:center;line-height:26px;font-size:24px;font-weight:400}
.hfd-video-library .hfd-video-qa details[open]>summary::after{content:"−"}
.hfd-video-library .hfd-video-qa details>div{padding:0 35px 24px 0;max-width:850px}
.hfd-video-library .hfd-video-qa details>div>p{color:#425f6d;font-size:17px;line-height:1.65}
.hfd-video-library .hfd-video-qa [data-hfd-video-open]{margin:4px 0 0}
.hfd-video-library .hfd-video-footer{margin-top:36px;padding:24px 0;border-top:1px solid var(--video-line)}
.hfd-video-library .hfd-video-dialog{position:fixed;width:min(1040px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 48px);overflow:auto;border:0;border-radius:16px;padding:26px;background:#fff;color:var(--video-ink);box-shadow:0 24px 90px #0005}
.hfd-video-library .hfd-video-dialog::backdrop{background:#0b2635c9;backdrop-filter:blur(3px)}
.hfd-video-library .hfd-video-dialog [data-hfd-video-title]{font-size:clamp(21px,2.2vw,29px)!important;padding-right:50px;margin:2px 0 23px}
.hfd-video-library .hfd-video-dialog [data-hfd-video-close]{position:absolute;top:17px;right:17px;width:43px;height:43px;min-width:43px;padding:0;border:1px solid var(--video-line);border-radius:50%;background:#eef5f7;color:var(--video-ink);font-size:28px;line-height:1;cursor:pointer}
.hfd-video-library .hfd-video-dialog [data-hfd-video-player]>iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.hfd-video-library .hfd-video-dialog .hfd-external-live>iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.hfd-video-library .hfd-video-dialog [data-hfd-video-youtube]{display:inline-block;margin-top:19px;font-size:15px;text-underline-offset:4px}
body.hfd-video-modal-open{overflow:hidden}
@media(max-width:1000px){.hfd-video-library .hfd-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hfd-video-library{margin-top:44px}.hfd-video-library .hfd-video-paths button{flex-basis:calc(50% - 10px)}}
@media(max-width:620px){.hfd-video-library{padding:0 18px;margin:30px auto 50px}.hfd-video-library .hfd-video-intro{border-radius:16px;padding:27px 24px}.hfd-video-library .hfd-video-grid{grid-template-columns:1fr;gap:20px}.hfd-video-library .hfd-video-search{align-items:start;flex-direction:column;gap:9px;margin-bottom:29px}.hfd-video-library .hfd-video-search label{width:100%;max-width:none}.hfd-video-library [data-hfd-video-count]{padding-bottom:0}.hfd-video-library .hfd-video-card-body{padding:23px}.hfd-video-library .hfd-video-paths{gap:8px}.hfd-video-library .hfd-video-paths button{padding:12px 11px;min-height:51px;font-size:14px}.hfd-video-library [data-hfd-video-group]{margin-bottom:36px;scroll-margin-top:115px}.hfd-video-library #video-fragen{margin-top:42px;padding:24px 22px;scroll-margin-top:115px}.hfd-video-library .hfd-video-qa summary{padding-top:20px;padding-bottom:20px}.hfd-video-library .hfd-video-qa details>div{padding-right:0}.hfd-video-library .hfd-video-dialog{width:calc(100vw - 20px);padding:22px 16px;border-radius:12px;max-height:calc(100dvh - 24px)}.hfd-video-library .hfd-video-dialog [data-hfd-video-close]{top:12px;right:12px}.hfd-video-library .hfd-video-dialog [data-hfd-video-title]{padding-right:47px;font-size:21px!important}}
@media(prefers-reduced-motion:reduce){.hfd-video-library .hfd-video-card,.hfd-video-library .hfd-video-paths button{transition:none}.hfd-video-library .hfd-video-card:hover{transform:none}}
@media print{.hfd-video-library .hfd-video-paths,.hfd-video-library .hfd-video-search,.hfd-video-library .hfd-video-dialog,.hfd-video-library [data-hfd-video-open]:not(.hfd-video-card-media){display:none!important}.hfd-video-library .hfd-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hfd-video-library .hfd-video-card{break-inside:avoid;box-shadow:none}.hfd-video-library .hfd-video-intro{background:#fff}.hfd-video-library{margin:0;padding:0}}

.hfd-video-library .hfd-video-next { padding:28px; background:var(--video-paper); border:1px solid var(--video-line); border-radius:14px; }
.hfd-video-library .hfd-video-next a { display:inline-block; margin:8px 24px 0 0; font-weight:600; text-underline-offset:5px; }
.hfd-video-library .hfd-video-qa-source { font-size:14px!important; }

.hfd-video-library .hfd-video-cover-word { display:grid; place-items:center; height:100%; font-weight:700; color:var(--video-blue); }

/* Outrank the historic body-level H1 rules only inside this learning library. */
body.hirondelle-design-2026 .hfd-video-library :is(h1,h2,h3){font-family:"Myriad Pro Regular",Arial,sans-serif!important;color:var(--video-ink)!important;font-style:normal!important;font-weight:700!important;text-transform:none!important;letter-spacing:-.02em;line-height:1.16}
body.hirondelle-design-2026 .hfd-video-library h1{font-size:60px!important;font-size:clamp(36px,4.6vw,60px)!important;border:0!important;padding:0!important;margin:0 0 22px!important}
.hfd-video-library .hfd-video-card-body .hfd-video-tag{font-size:12px!important;line-height:1.4;min-height:2.8em;margin:0 0 12px;align-items:flex-start}

/* Travel films sit below the learning paths; the larger archive has its own page. */
.hfd-video-library .hfd-video-travel{padding:30px;border:1px solid var(--video-line);border-radius:20px;background:linear-gradient(125deg,#eaf5f8,var(--video-paper))}
.hfd-video-library .hfd-video-travel>header{max-width:840px}
.hfd-video-library .hfd-video-travel .hfd-video-grid{gap:18px}
.hfd-video-library .hfd-video-travel .hfd-video-card-body{padding:20px}
.hfd-video-library .hfd-video-archive-teaser{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px;background:#173e4e;border-radius:18px;margin:8px 0 44px}
body.hirondelle-design-2026 .hfd-video-library .hfd-video-archive-teaser h2,.hfd-video-library .hfd-video-archive-teaser p{color:#fff!important}
.hfd-video-library .hfd-video-archive-teaser .hfd-video-eyebrow{color:#d3eaf3!important}
.hfd-video-library .hfd-video-archive-teaser p:last-child{margin-bottom:0;max-width:730px}
.hfd-video-library .hfd-video-archive-teaser>a{flex:0 0 auto;display:inline-flex;align-items:center;gap:20px;min-height:48px;padding:12px 18px;border:1px solid #d3eaf3;border-radius:8px;background:#d3eaf3;color:#173e4e!important;text-decoration:none;font-weight:700}
.hfd-video-library .hfd-video-back{display:inline-block;margin:0 0 22px;font-weight:700;text-underline-offset:5px}
.hfd-video-library .hfd-video-more{text-align:center;margin:0 0 38px}
.hfd-video-library [data-hfd-video-more]{min-height:48px;padding:12px 24px;border:1px solid var(--video-blue);border-radius:8px;background:var(--video-blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.hfd-video-library .hfd-video-selected{padding:26px;background:var(--video-paper);border:1px solid var(--video-line);border-radius:16px;margin:0 0 30px;scroll-margin-top:150px}
.hfd-video-library .hfd-video-selected>iframe,.hfd-video-library .hfd-video-selected .hfd-external-live>iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.hfd-video-library .hfd-video-selected>p:last-child{margin:18px 0 0}
.hfd-video-library--archive .hfd-video-paths button{flex-basis:170px}
.hfd-video-library--archive [data-hfd-video-count]{white-space:normal;text-align:right}
@media(max-width:1100px){.hfd-video-library .hfd-video-archive-teaser{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.hfd-video-library .hfd-video-travel{padding:22px 16px;border-radius:16px}.hfd-video-library .hfd-video-archive-teaser{padding:26px 24px;gap:20px}.hfd-video-library .hfd-video-archive-teaser>a{width:100%;justify-content:space-between}.hfd-video-library--archive [data-hfd-video-count]{text-align:left}.hfd-video-library .hfd-video-selected{padding:20px 16px;scroll-margin-top:115px}}
