:root {
  font: 16px/1.55 "Segoe UI", Arial, sans-serif;
  color: #18243a;
  background: #f5f6f8;
  --ink: #18243a;
  --muted: #516074;
  --dark: #172641;
  --accent: #274469;
  --line: #d7dfe8;
  --accent-soft: #e5edf8;
  --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, select, input { min-height: 44px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ae4f12; outline-offset: 4px; }
.skip { position: absolute; z-index: 3; top: -100px; left: 1rem; padding: .75rem; background: white; }
.skip:focus { top: .5rem; }

.preview {
  background: var(--dark);
  color: white;
  padding: 6px max(22px, calc((100% - 1280px) / 2));
  font-size: .8rem;
  font-weight: 700;
}
.preview span { margin-left: 12px; font-weight: 400; }
.masthead, main, footer { width: min(1280px, 100% - 56px); margin-inline: auto; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 19px;
  margin-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 650; line-height: 1.25; }
.brand small { display: block; color: var(--muted); margin-top: 4px; font-size: .83rem; font-weight: 450; }
.brandmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: .08em;
  text-decoration: none;
}
.brandmark span { font-size: .58rem; letter-spacing: .15em; }
.masthead nav { display: flex; align-items: center; gap: 22px; }
.masthead nav a { text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 650; }
.masthead nav a:hover { text-decoration: underline; }
.masthead nav form { margin: 0; }

.hero {
  --accent: #006568;
  --accent-soft: #d6f1e6;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .75fr);
  align-items: center;
  gap: clamp(24px, 6vw, 92px);
  padding: clamp(28px, 5vw, 68px);
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background: radial-gradient(ellipse at 88% 12%, #247066 0%, transparent 55%), linear-gradient(118deg, #10282f, #124748);
}
.eyebrow { margin: 0 0 14px; color: #bce9d5; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); letter-spacing: -.065em; line-height: 1; font-weight: 740; }
.hero-description { max-width: 48ch; margin: 17px 0 23px; color: #d8ebe8; }
.search-panel label { display: block; margin-bottom: 8px; font-weight: 650; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 5px 5px 5px 16px; border-radius: 11px; background: white; }
.search-field:focus-within { outline: 3px solid #9de8cb; outline-offset: 3px; }
.search-field input { border: 0; outline: 0; flex: 1; min-width: 0; color: var(--ink); padding: 7px 0; background: transparent; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field button { border: 0; border-radius: 7px; padding: 6px 16px; background: var(--accent); color: white; font-weight: 650; }
.search-icon { width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid var(--accent); border-radius: 50%; position: relative; margin-right: 3px; }
.search-icon::after { content: ""; width: 7px; height: 2px; background: var(--accent); position: absolute; left: 9px; top: 11px; transform: rotate(45deg); }
.quick-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; font-size: .8rem; }
.quick-searches span { color: #d8ebe8; margin-right: 3px; }
.quick-searches button { color: white; background: #ffffff13; border: 1px solid #ffffff5c; border-radius: 99px; padding: 4px 10px; min-height: 36px; }
.quick-searches button:hover { background: #ffffff2b; }

.featured {
  min-width: 0;
  padding: 12px;
  border-radius: 17px;
  border: 1px solid #ffffff4b;
  background: #122f34;
  box-shadow: 0 18px 36px #08252770;
}
.featured .video-preview { border-radius: 9px; }
.featured-copy { padding: 13px 7px 5px; }
.featured-copy .eyebrow { margin-bottom: 3px; }
.featured-copy h2 { font-size: 1.28rem; line-height: 1.22; margin: 0 0 10px; }
.featured-copy .watch { width: fit-content; color: var(--accent-soft); border-color: #8dc8b8; padding: 5px 13px; }
.featured-copy .watch:hover { color: var(--dark); background: var(--accent-soft); }

.browse, .library { margin-top: 32px; scroll-margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-heading h2, .editorial h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; line-height: 1.15; }
.section-heading p { margin: 0; color: var(--muted); font-size: .91rem; white-space: nowrap; }
.app-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.app-button { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 14px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; text-align: left; line-height: 1.2; font-weight: 650; }
.app-button:hover, .app-button[aria-pressed="true"] { background: #eaf0f8; border-color: var(--accent); }
.app-button small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; margin-top: 5px; }
.app-icon { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 7px; background: #edf0f4; color: #314762; font-weight: 750; }
.app-icon img { display: block; width: 24px; height: 24px; object-fit: contain; }
.app-button .app-icon { flex-basis: 40px; width: 40px; height: 40px; }
.app-button .app-icon img { width: 29px; height: 29px; }
.word .app-icon { background: #e9effc; color: #214a9e; }
.powerpoint .app-icon { background: #fcece7; color: #9e3e26; }
.outlook .app-icon { background: #e4f1fa; color: #00558b; }
.adp .app-icon { background: white; color: #ae2329; }
.adp .app-icon img { width: 31px; }

.editorial { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr); gap: 14px; margin-top: 26px; }
.start-panel, .picks-panel { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px; }
.start-panel { background: #eef1f6; }
.start-panel p, .picks-panel p { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }
.picks-panel { background: white; }
#picks-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 13px; margin-top: 8px; }
.pick { display: flex; gap: 9px; align-items: flex-start; padding-top: 9px; }
.pick a { color: var(--ink); font-size: .87rem; font-weight: 670; line-height: 1.2; text-underline-offset: 3px; }
.pick small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.2; }

.library { margin-top: 38px; }
.library h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
.filters { display: flex; align-items: end; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: #edf0f4; margin-bottom: 18px; }
.filters > div { width: min(100%, 235px); }
.filters label { display: block; margin-bottom: 4px; font-size: .83rem; font-weight: 650; }
.filters select { width: 100%; border: 1px solid #8a99ad; border-radius: 7px; background: white; color: var(--ink); padding: 6px 9px; }
.text-button { border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.filters .text-button { margin-left: auto; font-size: .85rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 2px solid #8b9aaf;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 0 #d7dfe8, 0 9px 18px #15263f0c;
}
.card:hover, .card:focus-within {
  border-color: #476384;
  box-shadow: 0 4px 0 #bac9db, 0 10px 22px #15263f17;
}
.video-preview { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e9eef6, #aebfd5); }
.video-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-preview > .app-icon { width: 65px; height: 65px; }
.video-preview > .app-icon img { width: 44px; height: 44px; }
.card > .video-preview {
  margin: 10px 10px 0;
  border: 1px solid #c0cada;
  border-radius: 9px;
}
.preview-time { position: absolute; z-index: 2; right: 9px; bottom: 9px; padding: 3px 8px; border-radius: 5px; background: var(--dark); color: white; font-size: .77rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.card-top { display: flex; align-items: center; gap: 9px; padding: 13px 16px 0; color: var(--ink); font-size: .78rem; font-weight: 650; }
.card-top .level { margin-left: auto; padding: 3px 8px; background: #edf0f5; color: #3d5069; border-radius: 99px; font-size: .73rem; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 13px 16px 15px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.018em; line-height: 1.25; }
.card p { margin: 0 0 13px; font-size: .9rem; color: var(--muted); }
.card .meta { margin-top: auto; font-size: .79rem; font-weight: 650; color: var(--ink); }
.card .source { margin: 5px 0 0; color: var(--muted); font-size: .74rem; }
.card-action {
  padding: 12px 16px;
  border-top: 1px solid #d1dbe8;
  background: #edf1f6;
}
.watch { display: inline-flex; min-height: 44px; gap: 8px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #9eafc5; border-radius: 7px; font-size: .86rem; font-weight: 700; text-decoration: none; }
.watch::before { content: ""; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.watch:hover { background: var(--accent); color: white; border-color: var(--accent); }
.card-action .watch {
  width: 100%;
  min-height: 46px;
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-size: .92rem;
}
.card-action .watch:hover {
  background: #193456;
  border-color: #193456;
}
.empty { border: 1px dashed #a8b6c8; border-radius: 13px; padding: 30px; background: white; text-align: center; }
.empty h3 { margin: 0; }
.empty p { color: var(--muted); }
.primary { border: 0; border-radius: 7px; background: var(--accent); color: white; padding: 8px 14px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 20px; margin-top: 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-divider { padding-inline: 5px; }

@media (max-width: 1000px) {
  .app-buttons { grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); }
  #picks-list { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .masthead, main, footer { width: calc(100% - 32px); }
  .masthead { padding-block: 13px; align-items: flex-start; }
  .masthead nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
  .masthead nav a { font-size: .78rem; padding-block: 3px; }
  .brand { flex-shrink: 0; font-size: .83rem; }
  .brandmark { width: 45px; height: 46px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 24px; border-radius: 16px; }
  .featured { max-width: 400px; }
  .editorial { grid-template-columns: 1fr; }
}
@media (max-width: 515px) {
  .masthead nav { max-width: 94px; }
  .cards { grid-template-columns: 1fr; }
  .app-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-button { padding: 10px 9px; gap: 7px; font-size: .82rem; }
  .app-button .app-icon { flex-basis: 32px; width: 32px; height: 32px; }
  .app-button .app-icon img { width: 24px; height: 24px; }
  .filters { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .filters > div { width: 100%; }
  .filters .text-button { margin: 0; justify-self: start; padding-left: 0; }
  .search-field { padding-left: 11px; gap: 8px; }
  .search-field button { padding-inline: 8px; font-size: .85rem; }
  .preview span { display: block; margin-left: 0; }
}
