/* The "what we found" pages. They are built from the home page's own parts (site.css): the report section,
   the four stacking photographs, the moving line, the ask section and the wordmark footer. This file only
   adds what those parts need to carry counts, plus the table, the divided bar and the list of pages. */
.ins { font-variant-numeric: tabular-nums; }
.ins a { text-underline-offset: .2em; }

/* ------------------------------------------------------------ the opening: one sheet, three short lines */
/* the longest line sets the size, so "101 websites." and "Bike rental shops." both fill the width without breaking */
.ins-hero .report__h { font-size: clamp(2.5rem, min(13.5vw, calc(172vw / var(--n, 13))), 15rem); }
.ins-hero .report__line { max-width: 17em; }
.ins-hero__meta { position: relative; z-index: 2; justify-self: start; margin-top: 1.1rem; background: var(--white); padding: .35em .7em .3em 0; font-size: .95rem; color: var(--ink-2); }
.ins-hero__meta a { color: var(--ink); text-decoration-thickness: 1.5px; }
.ins-hero__meta a:hover { text-decoration-thickness: 3px; }

/* ------------------------------------------------------------ the four photographs: one count each, in the largest type on the page */
.ins .look h2 { font: 800 clamp(3.2rem, 14.2vw, 17rem)/.8 var(--sans); font-stretch: 84%; letter-spacing: -.065em; word-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ins .look p { display: block; inline-size: fit-content; max-width: 24em; }
.ins .look .look__more { margin-top: .4rem; font-size: clamp(.98rem, 1.3vw, 1.2rem); font-weight: 500; letter-spacing: -.015em; max-width: 28em; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* the count rises into place as its photograph covers the one before */
    .ins .look h2 { animation: ins-rise linear both; animation-timeline: view(); animation-range: entry 20% entry 95%; }
    @keyframes ins-rise { from { translate: 0 .5em; opacity: .25; } }
  }
}

/* ------------------------------------------------------------ the moving line: the rules these pages keep */
.ins-band .band__row { gap: 0; animation: ins-run 46s linear infinite; }
.ins-band .band__row > div { display: flex; gap: .5em; padding-right: .5em; }
.ins-band .band__row span[aria-hidden] { opacity: .35; font-weight: 400; }
.ins-band:hover .band__row { animation-play-state: paused; }
@keyframes ins-run { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .ins-band .band__row { animation: none; } }

/* ------------------------------------------------------------ the body: table, divided bar, method */
.ins-body { padding: 0 var(--gutter); }
.ins-body > section { padding: clamp(4rem, 9vw, 9rem) 0; border-top: 1.5px solid var(--ink); }
.ins-body > section:first-child { border-top: 0; }
.ledger__h, .built__h, .method__h { font: 800 clamp(2.4rem, 7.6vw, 8rem)/.84 var(--sans); font-stretch: 86%; letter-spacing: -.055em; word-spacing: .1em; text-transform: uppercase; text-wrap: balance; max-width: 13em; margin-bottom: clamp(2rem, 5vw, 4.5rem); }

.ledger table { border-collapse: collapse; inline-size: 100%; table-layout: fixed; }
.ledger thead th { text-align: left; font: 600 .82rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding: 0 1.5rem .9rem 0; border-bottom: 1.5px solid var(--ink); }
.ledger thead th:first-child { inline-size: 40%; }
.ledger tbody th { text-align: left; font: 500 clamp(1.05rem, 1.5vw, 1.35rem)/1.2 var(--sans); letter-spacing: -.015em; padding: 1.25rem 1.5rem 1.25rem 0; vertical-align: top; text-wrap: balance; }
.ledger td { padding: 1.25rem 1.5rem 1.25rem 0; vertical-align: top; }
.ledger tbody tr { border-bottom: 1px solid var(--ghost); }
.ledger tbody tr:last-child { border-bottom: 1.5px solid var(--ink); }
.meter { display: block; block-size: 1rem; background: var(--ghost); margin: .25rem 0 .6rem; overflow: clip; }
.meter i { display: block; block-size: 100%; inline-size: calc(var(--v) * 1%); min-inline-size: 2px; background: var(--ink); transform-origin: 0 50%; }
.meter--all { background: none; box-shadow: inset 0 0 0 1.5px var(--ghost); }
.meter--all i { background: var(--ink-2); }
.ledger td b { font: 800 clamp(1.5rem, 2.6vw, 2.3rem)/1 var(--sans); font-stretch: 78%; letter-spacing: -.03em; margin-right: .5rem; }
.ledger td small { font-size: .92rem; color: var(--ink-2); white-space: nowrap; }
.ledger td:last-child b { color: var(--ink-2); }
.ledger__note { margin-top: 1.4rem; color: var(--ink-2); font-size: .95rem; max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .meter i { animation: ins-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes ins-grow { from { scale: 0 1; } }
  }
}

/* one bar, divided by who has to install the updates */
.split { display: flex; block-size: clamp(4.5rem, 11vw, 9rem); }
.split__seg { display: flex; align-items: flex-end; min-inline-size: 2.6rem; padding: .5rem .7rem; overflow: clip; }
.split__seg b { font: 800 clamp(1.6rem, 5vw, 4.6rem)/.8 var(--sans); font-stretch: 78%; letter-spacing: -.04em; }
.split__seg--hosted { background: var(--ink); color: var(--white); }
.split__seg--owner { background: var(--label); color: var(--ink); }
.split__seg--other { background: var(--ghost); color: var(--ink); }
.split__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.split__col h3 { display: flex; align-items: baseline; gap: .55rem; font: 700 clamp(1.15rem, 1.7vw, 1.5rem)/1.15 var(--sans); letter-spacing: -.02em; }
.split__col h3::before { content: ""; flex: none; inline-size: .8rem; block-size: .8rem; background: var(--ink); translate: 0 .04em; }
.split__col--owner h3::before { background: var(--label); box-shadow: 0 0 0 1.5px var(--ink); }
.split__col--other h3::before { background: var(--ghost); }
.split__col p { color: var(--ink-2); margin-top: .5rem; max-width: 34ch; }
.split__col ul { margin-top: 1rem; border-top: 1.5px solid var(--ink); }
.split__col li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--ghost); }
.split__col li b { font-weight: 700; }

.method ul { columns: 2; column-gap: clamp(2rem, 6vw, 6rem); max-width: 86rem; }
.method li { break-inside: avoid; padding: 0 0 1.1rem 1.4rem; position: relative; line-height: 1.5; max-width: 60ch; }
.method li::before { content: ""; position: absolute; left: 0; top: .68em; inline-size: .6rem; block-size: 1.5px; background: var(--ink); }

/* ------------------------------------------------------------ ask: the home page's own closing, pointing back to its form */
.ins-ask { display: grid; justify-items: start; gap: clamp(1.2rem, 2.5vw, 2rem); border-top: 1.5px solid var(--ink); }
.ins-ask__p { font: italic 400 clamp(1.4rem, 3.2vw, 2.8rem)/1.15 var(--serif); letter-spacing: -.02em; max-width: 22em; }
.ins-ask .pill { background: var(--label); color: var(--ink); }
.ins-ask .pill:hover { background: var(--ink); color: var(--white); }

/* ------------------------------------------------------------ the list page: every place and trade, as large as the page allows */
.places h2 { font: 600 .82rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .9rem; border-bottom: 1.5px solid var(--ink); }
.places a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .16em .08em .1em 0; border-bottom: 1px solid var(--ghost); text-decoration: none;
  font: 800 clamp(2.3rem, 8.4vw, 9rem)/.9 var(--sans); font-stretch: 84%; letter-spacing: -.06em; text-transform: uppercase; transition: background-color .2s, padding .35s var(--ease); }
.places a b { flex: none; font: 500 clamp(.95rem, 1.5vw, 1.3rem)/1 var(--sans); font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); }
.places a:hover, .places a:focus-visible { background: var(--label); padding-left: .18em; }
.places a:hover b, .places a:focus-visible b { color: var(--ink); }
.places a:focus-visible { outline-offset: -3px; }

.ins .foot__links { display: flex; }
.ins .foot__links a { margin-right: .2rem; }

@media (max-width: 52rem) {
  .ledger table, .ledger tbody, .ledger tr, .ledger tbody th, .ledger td { display: block; inline-size: auto; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger tbody tr { padding: 1.2rem 0; }
  .ledger tbody th { padding: 0 0 .8rem; }
  .ledger td { padding: 0 0 .7rem; }
  .ledger td::before { content: attr(data-label); display: block; font: 600 .75rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
  .split__cols { grid-template-columns: minmax(0, 1fr); }
  .method ul { columns: 1; }
}

.ins .mark { position: absolute; }   /* on these reading pages the wordmark stays with the opening and does not ride over the table */

/* ------------------------------------------------------------ the journal: an article is the report opening, a column of text, and the photographs between its parts */
.art-hero { min-height: 92svh; }
.art__h { position: relative; z-index: 2; color: var(--ink); max-width: 13em; text-wrap: balance;
  font: 800 clamp(2.3rem, 6.6vw, 7rem)/.95 var(--sans); font-stretch: 86%; letter-spacing: -.055em; word-spacing: .1em; text-transform: uppercase; }
/* a long title crosses the photograph, so each line carries its own strip of paper, like the line under it */
.art__h span { background: var(--white); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .16em 0 0; }
.art-hero .report__line { max-width: 22em; }
.art__sec { padding: clamp(3rem, 7vw, 6.5rem) var(--gutter) clamp(2.5rem, 6vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.2rem clamp(1.5rem, 5vw, 5rem); align-items: start; }
.art__sec h2 { font: 800 clamp(1.9rem, 4.4vw, 4rem)/.92 var(--sans); font-stretch: 86%; letter-spacing: -.045em; text-wrap: balance; max-width: 12em; grid-row: 1 / span 9; position: sticky; top: calc(var(--gutter) + 3.6rem); }
.art__sec p { grid-column: 2; max-width: 34em; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.55; text-wrap: pretty; }
.art__sec p + p { margin-top: -.1rem; }
.art__sec + .art__sec { border-top: 1.5px solid var(--ink); }
.art__close p { font: italic 400 clamp(1.35rem, 2.6vw, 2.2rem)/1.22 var(--serif); letter-spacing: -.015em; max-width: 26em; }
/* a photograph between two parts: the same card as on the home page, standing still */
.ins .art-fig { position: relative; margin: 0; block-size: min(88svh, 60rem); min-block-size: 26rem; }
.ins .art-fig strong { display: block; font: 800 clamp(3.2rem, 14.2vw, 17rem)/.8 var(--sans); font-stretch: 84%; letter-spacing: -.065em; word-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ins .art-fig strong { animation: ins-rise linear both; animation-timeline: view(); animation-range: entry 10% cover 38%; }
    .ins .art-fig img { animation: art-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; scale: 1.12; }
    @keyframes art-drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
  }
}
.faq dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.faq dt { font: 700 clamp(1.2rem, 1.9vw, 1.6rem)/1.12 var(--sans); letter-spacing: -.025em; text-wrap: balance; padding-top: 1rem; border-top: 1.5px solid var(--ink); }
.faq dd { margin: .8rem 0 0; color: var(--ink-2); line-height: 1.55; max-width: 38ch; }
/* the list of articles */
.arts h2 { font: 600 .82rem/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .9rem; border-bottom: 1.5px solid var(--ink); }
.arts a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .6rem 2rem; padding: .5em .1em .42em 0; border-bottom: 1px solid var(--ghost); text-decoration: none;
  font: 800 clamp(1.7rem, 5vw, 5.2rem)/.9 var(--sans); font-stretch: 86%; letter-spacing: -.05em; text-transform: uppercase; text-wrap: balance; transition: background-color .2s, padding .35s var(--ease); }
.arts a b { font: 500 clamp(.9rem, 1.2vw, 1.05rem)/1.2 var(--sans); font-stretch: 100%; letter-spacing: 0; text-transform: none; color: var(--ink-2); white-space: nowrap; padding-bottom: .5em; }
.arts a:hover, .arts a:focus-visible { background: var(--label); padding-left: .2em; }
.arts a:hover b, .arts a:focus-visible b { color: var(--ink); }
.arts a:focus-visible { outline-offset: -3px; }
@media (max-width: 52rem) {
  .art__sec { grid-template-columns: minmax(0, 1fr); }
  .art__sec h2 { position: static; grid-row: auto; }
  .art__sec p { grid-column: 1; }
  .faq dl { grid-template-columns: minmax(0, 1fr); }
  .arts a { grid-template-columns: minmax(0, 1fr); }
  .arts a b { padding-bottom: 0; }
}

/* a stock photograph chosen for one article (scout/photos.py): any picture may arrive here, so the lower half is darkened
   for the white count, and the photographer is named on the picture */
.ins .art-fig--photo::after { content: ""; position: absolute; inset: 28% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / .58) 50%, rgb(0 0 0 / .8)); }   /* strong enough for a picture on a white ground */
.ins .art-fig--photo strong { text-shadow: 0 .02em .12em rgb(0 0 0 / .35); }
.art-fig__by { display: block; margin-top: .9rem; font-size: .82rem; letter-spacing: .01em; color: rgb(255 255 255 / .86); }
.art-fig__by a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.art-fig__by a:hover, .art-fig__by a:focus-visible { color: #fff; text-decoration-thickness: 2px; }
