.feature-trail { display:flex; align-items:baseline; flex-wrap:wrap; gap:.55rem; margin:0 0 18px; font-size:.82rem; font-weight:600; line-height:1.5; }
.feature-trail a { color:#9fe8ce; text-decoration:none; text-underline-offset:.2em; }
.feature-trail a:hover, .feature-trail a:focus-visible { color:white; text-decoration:underline; }
.feature-trail > span { color:#a4b8b1; }
.feature-page main { background:var(--page); color:var(--text); }
.feature-width { width:min(1140px, calc(100% - 48px)); margin-inline:auto; }
.feature-hero-art { display:grid; place-items:center; }
.feature-hero-art a { max-width:100%; cursor:zoom-in; border-radius:12px; }
.feature-hero-image { display:block; max-width:100%; max-height:335px; width:auto; height:auto; margin-inline:auto; border-radius:10px; filter:drop-shadow(0 15px 18px #0005); }
.feature-hero .site-button span { margin-left:6px; }
.feature-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:30px 0; border-bottom:1px solid var(--line); }
.feature-topics { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.feature-topics a, .feature-related a { text-decoration:none; color:var(--text); border:1px solid var(--line); background:var(--panel); }
.feature-topics a { border-radius:99px; padding:9px 17px; font-size:.86rem; font-weight:500; }
.feature-group { padding:46px 0 10px; scroll-margin-top:24px; }
.feature-group:last-child { padding-bottom:72px; }
.feature-group h2, .feature-related h2 { margin:0 0 24px; font-size:clamp(1.6rem,3vw,2.45rem); line-height:1.15; letter-spacing:-.045em; font-weight:600; }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.feature-card { display:flex; flex-direction:column; overflow:hidden; text-decoration:none; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:18px; }
.feature-thumb { aspect-ratio:1.95; display:grid; place-items:center; overflow:hidden; padding:12px; background:var(--surface-deep); }
.feature-thumb img { width:100%; height:100%; min-height:0; object-fit:contain; }
.feature-thumb-art { padding:0; background:#14242b; }
.feature-card-copy { padding:19px 20px 22px; }
.feature-card h3 { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin:0; font-size:1.14rem; line-height:1.3; letter-spacing:-.025em; font-weight:600; }
.feature-arrow { color:var(--footer-link); flex:none; font-size:1.1em; }
.feature-card p { margin:9px 0 0; color:var(--muted); line-height:1.65; font-size:.89rem; }
.feature-page main a:focus-visible { outline:3px solid var(--footer-link); outline-offset:3px; }
.feature-card:hover, .feature-related a:hover, .feature-topics a:hover { border-color:var(--footer-link); }
.feature-story { padding:clamp(38px,5vw,70px) 0; scroll-margin:24px; }
.feature-story h2 { margin:0 0 18px; font-size:clamp(1.7rem,3vw,2.5rem); line-height:1.15; letter-spacing:-.04em; }
.feature-story p { max-width:76ch; margin:0 0 14px; color:var(--muted); line-height:1.8; }
.feature-story p:last-child { margin-bottom:0; }
.feature-reading { margin-top:24px; border-top:1px solid var(--line); padding-top:clamp(20px,3vw,36px); }
.feature-reading-copy, .feature-reading-illustrated { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,4vw,60px); }
.feature-reading-illustrated { align-items:start; }
.feature-reading-illustrated .feature-reading-copy { grid-template-columns:1fr; gap:24px; }
.feature-reading-topic h3 { margin:0 0 10px; font-size:clamp(1.2rem,2vw,1.55rem); line-height:1.22; letter-spacing:-.025em; }
.feature-reading-topic p, .feature-reading-topic li { line-height:1.65; }
.feature-reading-topic ol { margin:0 0 10px; padding-inline-start:1.35em; }
.feature-reading-topic li { padding-inline-start:.25em; margin-block:.3em; }
.feature-reading-topic li::marker { font-weight:600; color:var(--footer-link); }
.feature-story-image { display:grid; place-items:center; padding:16px; background:var(--surface-deep); border-radius:16px; cursor:zoom-in; }
.feature-story-image img { display:block; max-width:100%; max-height:360px; border-radius:8px; }
.feature-walkthrough {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(28px,5vw,76px);
  margin-top:clamp(28px,4vw,54px);
  padding-top:clamp(28px,4vw,54px);
  border-top:1px solid var(--line);
}
.feature-walkthrough h3 { margin:0 0 12px; font-size:clamp(1.35rem,2.7vw,2rem); letter-spacing:-.035em; line-height:1.16; }
.feature-walkthrough p { line-height:1.65; }
.feature-walkthrough ol { padding-inline-start:1.6em; margin:18px 0 0; }
.feature-walkthrough li { padding-inline-start:.4em; margin-block:10px; line-height:1.6; }
.feature-walkthrough li::marker { color:var(--footer-link); font-weight:700; }
.feature-walkthrough-image {
  display:grid; place-items:center; padding:clamp(16px,2.5vw,32px); border-radius:18px;
  background:linear-gradient(140deg,var(--surface-deep),var(--surface-raised));
  border:1px solid var(--line); cursor:zoom-in;
}
.feature-walkthrough-image img { width:100%; display:block; border-radius:12px; box-shadow:0 8px 24px #0002; }
@media(min-width:761px) {
  .feature-walkthrough:nth-of-type(even) .feature-walkthrough-image { grid-area:1 / 1; }
}
@media(max-width:760px) {
  .feature-walkthrough { grid-template-columns:minmax(0,1fr); gap:14px; }
}
.feature-related { border-top:1px solid var(--line); padding:34px 0 60px; }
.feature-related h2 { font-size:1.4rem; margin:0 0 16px; }
.feature-related > div { display:flex; flex-wrap:wrap; gap:10px; }
.feature-related a { display:inline-flex; gap:14px; align-items:center; padding:12px 16px; border-radius:10px; font-size:.92rem; font-weight:500; }
@media(max-width:850px) {
  .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

}
@media(max-width:680px) {
  .feature-width { width:calc(100% - 36px); }
  .feature-hero-image { max-height:245px; }
  .feature-toolbar { align-items:flex-start; gap:8px; padding:20px 0; }
  .feature-topics { gap:7px; }
  .feature-topics a { font-size:.78rem; padding:8px 11px; }
  .feature-group { padding-top:32px; }
  .feature-grid { gap:14px; }
  .feature-reading, .feature-reading-copy { grid-template-columns:minmax(0,1fr); gap:20px; }
}
@media(max-width:480px) {
  .feature-grid { grid-template-columns:minmax(0,1fr); }
  .feature-thumb { aspect-ratio:2.2; }
}

.feature-lightbox {
  position:fixed; inset:0; margin:0; width:100%; height:100%; max-width:none; max-height:none;
  box-sizing:border-box; border:0; background:transparent; color:white;
  padding:calc(60px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
}
.feature-lightbox[open] { display:grid; place-items:center; }
.feature-lightbox::backdrop { background:rgb(6 13 15 / 94%); }
html:has(.feature-lightbox[open]) { overflow:hidden; }
.feature-lightbox-controls { position:absolute; top:calc(8px + env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); margin:0; }
.feature-lightbox-close {
  display:grid; place-items:center; width:44px; height:44px; padding:0;
  border-radius:50%; border:1px solid #a5b5ad; color:white; background:#24322f;
  font:normal 30px/1 system-ui,sans-serif; cursor:pointer;
}
.feature-lightbox-close:focus-visible { outline:3px solid #8fe9ca; outline-offset:2px; }
.feature-lightbox-frame { position:relative; width:fit-content; max-width:100%; }
.feature-lightbox-frame img {
  display:block; width:auto; height:auto; max-width:100%;
  max-height:calc(100vh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height:calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
.feature-lightbox-frame .feature-image-close {
  /* All six GIF editor captures place their 48px close control 31px from the top and right at 720px wide. */
  position:absolute; top:3.65%; right:4.3%; width:6.7%; aspect-ratio:1; padding:0;
  border:0; border-radius:20%; background:transparent; cursor:pointer;
}
.feature-image-close::after { content:""; position:absolute; inset:-7px; }

.feature-view-switch:not([hidden]) { display:flex; flex:none; gap:2px; padding:3px; border:1px solid var(--line); border-radius:28px; background:var(--panel); }
.feature-view-switch button { display:grid; place-items:center; width:36px; height:36px; padding:8px; border:0; border-radius:50%; color:var(--muted); background:transparent; cursor:pointer; }
.feature-view-switch button[aria-pressed="true"] { background:#383838; color:#fff; }
:root[data-appearance="dark"] .feature-view-switch button[aria-pressed="true"] { background:#dedede; color:#202020; }
.feature-view-switch button:focus-visible { outline:2px solid var(--text); outline-offset:1px; }
.feature-view-switch svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
.feature-grid { list-style:none; padding:0; margin:0; }
.feature-grid > li { min-width:0; }
.feature-grid .feature-card { height:100%; }
[data-view="list"] .feature-group { padding:28px 0 0; }
[data-view="list"] .feature-group:last-child { padding-bottom:48px; }
[data-view="list"] .feature-group h2 { font-size:clamp(1.35rem,2.4vw,1.75rem); margin-bottom:12px; }
[data-view="list"] .feature-grid { display:block; }
[data-view="list"] .feature-card {
  flex-direction:row; gap:12px; align-items:center; padding:4px 8px; min-height:44px;
  border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent;
}
[data-view="list"] .feature-card:hover { background:var(--surface-raised); }
[data-view="list"] .feature-thumb { flex:0 0 44px; height:36px; padding:2px; aspect-ratio:auto; border-radius:5px; }
[data-view="list"] .feature-card-copy { flex:1; padding:0; }
[data-view="list"] .feature-card h3 { align-items:center; font-size:1rem; font-weight:500; }
[data-view="list"] .feature-card p { display:none; }
@media(max-width:480px) {
  .feature-view-switch button { width:38px; height:38px; }
}
@media(max-width:700px) {
  .feature-hero.connections-hero { grid-template-columns:minmax(0,1fr); }
  .site-page.feature-page .feature-hero h1 { overflow-wrap:anywhere; hyphens:auto; }
}
