.cap-footnotes > article {
  display: grid;
  align-content: start;
  gap: clamp(.85rem, 1.1vw, 1.5rem);
  min-width: 0;
}

.feature-example {
  --ex-panel: #222225;
  --ex-pane: #29292c;
  --ex-inset: #303034;
  --ex-edge: rgb(255 255 255 / .115);
  --ex-text: #edecee;
  --ex-muted: #b6b6bd;
  --ex-track: rgb(255 255 255 / .07);
  --ex-good: #91d9b3;
  --ex-bad: #c77c84;
  --ex-mid: #e2b775;
  color: var(--ex-text);
  font: 500 clamp(13px, .78vw + 2px, 19px)/1.38 var(--type-body, Geologica, sans-serif);
  container-type: inline-size;
  text-align: start;
  letter-spacing: normal;
  min-width: 0;
}

:root[data-theme="light"] .feature-example {
  --ex-panel: #fff;
  --ex-pane: #f5f7f9;
  --ex-inset: #e7edf2;
  --ex-edge: rgb(38 57 77 / .15);
  --ex-text: var(--light-ink, #172235);
  --ex-muted: var(--light-muted, #49596d);
  --ex-track: #e6ebee;
  --ex-good: #256d51;
  --ex-bad: #aa4956;
  --ex-mid: #85571c;
}

.feature-example svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.example-guide-link {
  justify-self: start;
  color: var(--rank-soft);
  font: 470 clamp(.83rem, .73rem + .3vw, 1.12rem)/1.4 var(--type-body);
  text-decoration-color: var(--rank-hair);
  text-underline-offset: .23em;
}
.example-guide-link:hover, .example-guide-link:focus-visible { color: var(--rank-text); }

/* Folder rows and their split progress track follow the cabinet's history view. */
.example-folder, .example-ad-campaign, .example-browser, .example-phone {
  border: 1px solid var(--ex-edge);
  background: var(--ex-panel);
  border-radius: 1.3em;
}
.example-folder { overflow: hidden; }
.example-folder > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .38em 1em;
  align-items: center;
  padding: 1em 1.12em;
  list-style: none;
  cursor: pointer;
}
.example-folder > summary::-webkit-details-marker { display: none; }
.example-folder > summary:focus-visible { outline-offset: -3px; }
.example-folder-title, .example-folder-meta { display: flex; align-items: center; gap: .45em; }
.example-folder-title { font-size: 1.16em; font-weight: 700; }
.example-folder-title svg { flex: none; width: 1em; height: 1em; color: var(--ex-muted); }
.example-folder-title small {
  padding: .15em .47em;
  background: var(--ex-inset);
  color: var(--ex-muted);
  border-radius: .45em;
  font-size: .74em;
}
.example-folder-chevron { width: 1.1em; height: 1.1em; color: var(--ex-muted); }
.example-folder[open] .example-folder-chevron { transform: rotate(180deg); }
.example-folder-meta { grid-column: 1 / -1; justify-content: space-between; color: var(--ex-muted); font-size: .85em; }
.example-folder:not([open]) .example-folder-meta > span { display: none; }
.feature-example .example-folder ol {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0 1.12em .7em;
  counter-reset: query;
}
.example-folder li {
  display: grid;
  grid-template-columns: 1.25em minmax(0,1fr) auto;
  align-items: baseline;
  gap: .3em .45em;
  padding: .49em 0;
  border-top: 1px solid var(--ex-edge);
  counter-increment: query;
}
.example-folder li::before {
  content: counter(query);
  align-self: center;
  text-align: center;
  border-radius: .28em;
  background: var(--ex-inset);
  color: var(--ex-muted);
  font-size: .8em;
}
.example-folder li > b { color: var(--ex-good); font-variant-numeric: tabular-nums; }
.example-folder li.example-folder-mid > b { color: var(--ex-mid); }
.example-folder li > i {
  grid-column: 2 / -1;
  height: .42em;
  padding: 1px;
  border-radius: 99px;
  background: var(--ex-track);
}
.example-folder li > i::before {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, var(--ex-good) var(--success), var(--ex-bad) var(--success));
}

.example-ads {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
}
.example-ad-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--ex-edge);
  border-radius: 99px;
  background: var(--ex-panel);
}
.example-ad-tabs::before {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc((100% - 9px) / 2);
  border-radius: 99px;
  background: var(--ex-inset);
  pointer-events: none;
  content: "";
}
.example-ad-tabs:has(input[value="after"]:checked)::before { transform: translateX(calc(100% + 3px)); }
.example-ad-tabs label { position: relative; display: grid; min-width: 0; cursor: pointer; }
.example-ad-tabs input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.example-ad-tabs label > span {
  display: grid;
  place-items: center;
  min-height: 2.5em;
  padding: .25em .35em;
  text-align: center;
  color: var(--ex-muted);
  border-radius: 99px;
  font-weight: 650;
  font-size: .91em;
}
.example-ad-tabs input:checked + span { color: var(--ex-text); }
.example-ad-tabs input:focus-visible + span { outline: 2px solid currentColor; outline-offset: -2px; }
.example-ad-campaign { margin-top: .55em; padding: 1.1em; }
.example-ad-title { display: flex; align-items: center; gap: .8em; }
.example-ad-title strong, .example-ad-title small { display: block; }
.example-ad-title strong { font-size: 1.15em; }
.example-ad-title small { margin-top: .15em; font-size: .89em; color: var(--ex-muted); }
.example-ad-icon {
  display: grid;
  place-items: center;
  width: 2.7em;
  aspect-ratio: 1;
  border-radius: .82em;
  background: color-mix(in srgb, var(--ex-mid) 12%, var(--ex-panel));
  color: var(--ex-mid);
}
.example-ad-icon svg { width: 1.5em; height: 1.5em; }
.example-ad-status {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1em;
  margin-top: 1.1em;
  padding-top: .8em;
  border-top: 1px solid var(--ex-edge);
  color: var(--ex-muted);
}
.example-ad-status b {
  grid-area: 1 / 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .25em .65em;
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 12%, var(--ex-panel));
  font-weight: 650;
}
.example-ad-status svg { width: 1em; height: 1em; stroke-width: 2; }
.example-ad-paused { color: var(--ex-mid); }
.example-ad-active { color: var(--ex-good); }
.example-ad-status .example-ad-active,
.example-ads:has(input[value="after"]:checked) .example-ad-paused { display: none; }
.example-ads:has(input[value="after"]:checked) .example-ad-active { display: inline-flex; }

/* The same Timer entry at cabinet and Mini App sizes. */
.example-devices {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 0 19% 1.6em 0;
}
.example-browser, .example-phone {
  overflow: hidden;
  background: var(--ex-panel);
  box-shadow: 0 .6em 1.6em rgb(0 0 0 / .12);
}
.example-browser-head, .example-browser-head > span, .example-phone-head, .example-device-section {
  display: flex;
  align-items: center;
}
.example-browser-head {
  gap: 1em;
  padding: .62em 1em;
  background: var(--ex-pane);
  border-bottom: 1px solid var(--ex-edge);
  color: var(--ex-muted);
  font-size: .85em;
}
.example-browser-head > span { gap: .3em; }
.example-browser-head svg, .example-phone-head svg, .example-device-section svg { width: 1.12em; height: 1.12em; }
.example-browser-dots i { width: .42em; height: .42em; background: var(--ex-muted); border-radius: 100%; opacity: .62; }
.example-browser-body { padding: 1em 12% 1em .9em; }
.example-device-section { gap: .4em; font-size: 1.04em; font-weight: 720; }
.example-device-task {
  display: grid;
  gap: .5em;
  margin-top: .7em;
  padding: .67em .75em;
  border-radius: .65em;
  border: 1px solid color-mix(in srgb, var(--ex-mid) 26%, transparent);
  background: linear-gradient(112deg, color-mix(in srgb, var(--ex-mid) 12%, var(--ex-pane)), var(--ex-pane) 72%);
}
.example-device-task strong { font-size: .94em; line-height: 1.2; }
.example-device-task > span { color: var(--ex-muted); font-size: .86em; }
.example-device-task b { color: var(--ex-mid); padding-left: .25em; font-variant-numeric: tabular-nums; }
.example-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  max-width: 11em;
  padding: .45em .52em .72em;
  border-radius: 1.15em;
  box-shadow: -.4em .35em 1em rgb(0 0 0 / .17), 0 0 0 .17em var(--ex-panel);
}
.example-phone-speaker { display: block; width: 24%; height: .17em; border-radius: .8em; margin: 0 auto .55em; background: var(--ex-edge); }
.example-phone-head { justify-content: center; gap: .24em; margin-bottom: .78em; font-size: .76em; font-weight: 650; }
.example-phone-head svg { fill: currentColor; stroke: none; }
.example-phone .example-device-section { font-size: .82em; }
.example-phone .example-device-task { font-size: .8em; margin-top: .48em; padding: .65em .45em; }

@media (min-width: 39.01rem) and (max-width: 59.99rem) {
  .cap-footnotes { grid-template-columns: minmax(0,1fr); }
  .cap-footnotes > article {
    grid-template-columns: minmax(0,.8fr) minmax(0,1.4fr);
    gap: .7rem 2rem;
  }
  .cap-footnotes .feature-example { grid-area: 1 / 2 / span 2; }
  .cap-footnotes .example-guide-link { align-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  :root:not(.is-lite) .example-ad-tabs::before { transition: transform .31s cubic-bezier(.22,.78,.2,1); }
  :root:not(.is-lite) .example-ad-tabs label > span { transition: color .2s; }
  :root:not(.is-lite) .example-ad-status b { transition: opacity .18s, translate .22s ease-out, visibility 0s; }
  :root:not(.is-lite) .example-ads:not(:has(input[value="after"]:checked)) .example-ad-active,
  :root:not(.is-lite) .example-ads:has(input[value="after"]:checked) .example-ad-paused {
    display: inline-flex;
    opacity: 0;
    translate: 0 -5px;
    visibility: hidden;
    transition-delay: 0s, 0s, .18s;
  }
}
@media (pointer: coarse) {
  .example-ad-tabs label > span { min-height: 44px; }
}
@media (forced-colors: active) {
  .example-ad-tabs input:checked + span { outline: 2px solid SelectedItem; }
}
