.hf-carousel {
  container-type: inline-size;
  --pad:var(--feature-inset,clamp(17px,4.2cqw,38px));
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 19px;
  --hf-wash: light-dark(#e5f3ef,#27312c);
  --hf-edge: light-dark(#d1e7df,#2a4139);
  --hf-glow: light-dark(#d7ebe2,#38554b);
  color: light-dark(#253c33,#d7e2de);
  background:
    radial-gradient(ellipse at 96% 0%, var(--hf-glow), transparent 68%),
    linear-gradient(125deg, var(--site-surface), var(--site-paper) 50%, light-dark(#e9ebf4,#343c50));
  border: 1px solid light-dark(#d5e1d9,#303d34);
  box-shadow: 0 7px 24px rgb(29 62 44 / 5%);
}
.hf-carousel[data-theme="notebook"] {
  --hf-wash: light-dark(#f8eee3,#252f2a);
  --hf-edge: light-dark(#eddccc,#463524);
  --hf-glow: light-dark(#ede6f6,#4a445a);
}
.hf-carousel[data-theme="workbench"] {
  --hf-wash: light-dark(#eeedf5,#202a25);
  --hf-edge: light-dark(#dedce9,#2b2938);
  --hf-glow: light-dark(#dce7f5,#354d60);
}
.hf-carousel[hidden], .hf-carousel [hidden] { display: none; }
.leadgrid:has(.hf-carousel[hidden]) > .nasfeature, .leadgrid > .hf-carousel:only-child { grid-column: 1/-1; }
.hf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  grid-template-rows:minmax(0,1fr) 44px;
  gap:clamp(14px,2.3cqw,24px) clamp(14px,3.2cqw,30px);
  align-items: center;
  height: 100%;
  min-height:clamp(324px,42cqw,372px);
  padding: var(--pad);
  color: inherit;
}
.hf-copy { min-width:0; align-self:start; padding-top:clamp(3px,1.6cqw,14px); }
.hf-category { display: block; color: light-dark(#496657,#bac8c1); font-size: 12px; letter-spacing: .06em; }
.hf-copy h1 {
  font-size: clamp(28px, 5.6cqw, 53px);
  letter-spacing: -.045em;
  line-height: 1.16;
  font-weight: 730;
  margin: 13px 0 10px;
  text-wrap: balance;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.hf-summary {
  font-size: 14px;
  line-height: 1.65;
  color: light-dark(#516459,#bac3bf);
  margin: 0;
  max-width: 25em;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.hf-stage {
  display:grid; place-items:center; position:relative; isolation:isolate;
  min-width:0; align-self:start;
  grid-template:minmax(0,1fr)/minmax(0,1fr);
  height:clamp(134px,27.5cqw,228px);
  padding:clamp(16px,3.25cqw,29px) clamp(7px,1.5cqw,14px) clamp(8px,1.5cqw,13px) 0;
}
.hf-stage::before {
  content:""; position:absolute; z-index:-1; inset:0 0 0 6%;
  border:1px solid var(--hf-edge); border-radius:54% 19% 14px 14px / 74% 25% 14px 14px;
  background:var(--hf-wash); pointer-events:none;
}
.hf-photo {
  display: block;
  inline-size:auto;block-size:auto;
  max-inline-size:100%;max-block-size:100%;
  min-inline-size:0;min-block-size:0;
  object-fit:contain;
  border-radius: 9px;
  border: 1px solid light-dark(#d7dfd9,#323a37);
  box-shadow: 0 6px 16px rgb(35 54 43 / 13%);
}
.hf-carousel[aria-roledescription] .hf-card { touch-action: pan-y pinch-zoom; }
.hf-card:has(.hf-stage[hidden]) { grid-template-columns: 1fr; }
.hf-read { display: inline-flex; gap: 9px; align-items: center; font-size: 14px; font-weight: 650; color: light-dark(#245841,#c7e0d5); }
.hf-read > span { transition: transform .18s ease; }
.hf-card:hover .hf-read > span { transform: translateX(3px); }
.hf-controls {
  position: absolute;
  right:var(--pad);
  bottom:var(--pad);
  display: flex;
  align-items: center;
  gap: 5px;
}
.hf-count { margin-right: 6px; font-size: 11px; letter-spacing: .12em; color: light-dark(#516459,#bac3bf); font-variant-numeric: tabular-nums; }
.hf-controls button {
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  background: light-dark(#f6faf7,#1b2520); color: light-dark(#355946,#c4d6cc);
  border: 1px solid light-dark(#b9cfc0,#415447); border-radius: 50%; cursor: pointer;
}
.hf-controls button:hover { background: light-dark(#e7f0e9,#242e29); }
.hf-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body[data-page] .hf-card:focus-visible { outline: 2px solid light-dark(#357652,#b3d2c1); outline-offset: -5px; border-radius: inherit; }
.hf-controls button:focus-visible { outline: 2px solid light-dark(#357652,#b3d2c1); outline-offset: 2px; }
.hf-announcement { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@container (max-width: 475px) {
  .hf-card { min-height: 300px; grid-template-columns: minmax(0, 1fr) minmax(0, .74fr); }
  .hf-summary { font-size: 12px; }
  .hf-category { font-size: 11px; }
  .hf-stage {height:140px;}
}
@media (prefers-reduced-motion: reduce) {
  .hf-read > span { transition: none; }
  .hf-card:hover .hf-read > span { transform: none; }
}

.home-topic-carousel {
  position:relative;min-width:0;min-height:100%;isolation:isolate;
  border-radius:19px;
}
.home-topic-carousel[hidden],.home-topic-carousel [hidden] {display:none}
.home .home-topic-carousel .nasfeature {
  height:100%;
  min-height:252px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto 1fr;
  place-items:stretch;
  place-content:stretch;
  padding:0;
  background:color-mix(in srgb,var(--site-surface) 76%,var(--site-tint));
  color:var(--site-ink);
  border-color:var(--site-line);
}
.home-topic-visual {min-width:0;overflow:hidden;background:var(--site-tint)}
.home-topic-carousel .home-topic-art {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:center;
}
.home-topic-carousel .home-topic-art[hidden] {display:none}
.home-topic-copy {
  display:grid;
  align-content:start;
  padding:17px var(--feature-inset) 53px;
  border-top:1px solid var(--site-line);
}
.home-topic-carousel .home-topic-copy :is(small,span) {color:var(--site-muted)}
.home-topic-copy small {font-size:12px}
.home-topic-copy strong {margin-block:4px 6px;font-size:clamp(24px,2.45vw,33px);line-height:1.18}
.home-topic-copy span {font-size:14px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.home-topic-controls {
  position:absolute;inset-inline:var(--feature-inset);inset-block-end:14px;
  display:flex;align-items:center;gap:1px;
}
.home-topic-controls button {
  display:grid;place-items:center;width:29px;height:30px;padding:0;
  border:0;border-radius:7px;background:transparent;cursor:pointer;
}
.home-topic-controls button::before {
  content:"";display:block;width:7px;height:7px;border-radius:5px;background:light-dark(#6e8a7d,#829b8e);
}
.home-topic-controls button[aria-pressed=true]::before {width:17px;background:var(--site-accent)}
.home-topic-controls button:hover {background:var(--interactive-tint)}
.home-topic-controls button:focus-visible {outline:2px solid var(--interactive-focus);outline-offset:0}
.leadgrid:has(>.home-topic-carousel[hidden]) {grid-template-columns:minmax(0,1fr)}
.leadgrid:has(>.hf-carousel[hidden])>.home-topic-carousel {grid-column:1/-1}
