/* Shared reading layout for the investigation and its supporting pages. */
.view {
  --reading-width: 72ch;
  --card-gap: clamp(.9rem, 2vw, 1.6rem);
  --card-pad: clamp(1.1rem, 2vw, 1.85rem);
  --article-columns: minmax(0, 1fr) minmax(0, 2.25fr);
  --article-gap: clamp(2rem, 4vw, 4rem);
  --surface: #faf8f2;
  --rule: #cacec3;
  --caption: #465852;
}
.view .band {
  padding-block: clamp(2.4rem, 4.7vw, 4.35rem);
}
.view .band .wrap.narrow {
  width: 100%;
  max-width: 1320px;
}
.view .band .wrap > :is(.ph1, .ph2),
#view-law .wrap > section > .ph2 {
  width: 100%;
  max-width: none;
  margin: 0 0 .4em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.view .band .ph1, #view-home #bag-weight .ph1 {
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
}
.view .band .ph2 {
  font-size: clamp(1.82rem, 3.5vw, 3rem);
}
.view .band .kicker {
  color: #8f432d;
  font: 500 .78rem/1.4 var(--mono);
  letter-spacing: .12em;
  margin: 0 0 .8rem;
}
.view .wrap > :is(p:not(.hb), ul, blockquote),
#view-law .wrap > div > p {
  max-width: var(--reading-width);
}
.view .band p:not(.hb, .note, .kicker, .atlas-coverage),
.view .band li {
  line-height: 1.58;
}
.view .band .lede {
  color: var(--ink-soft);
  font-size: clamp(1.07rem, 1.45vw, 1.29rem);
}
.view .band p.note, .view .band .note a {
  color: var(--caption);
  font-size: .91rem;
  line-height: 1.5;
}
.view .band .hb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin: 1.25rem 0 0;
}
.view .band .hb .btn {
  min-height: 46px;
  padding: .58rem 1.05rem;
  border-radius: 5px;
  font: 600 1rem/1.35 var(--sans);
  text-align: center;
  justify-content: center;
  overflow-wrap: anywhere;
}
.view .band .btn.ghost {
  color: var(--ink);
  background: transparent;
  border: 1.5px solid currentColor;
}
.view .band .btn.ghost:hover {
  background: var(--paper-deep);
}
.view :is(a, button, summary, input, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
#view-home .band details {
  max-width: var(--reading-width);
  margin-block: 1rem;
}
#view-home .band summary, .view .interest-card summary {
  cursor: pointer;
  padding-block: .55rem;
}
#view-home .hero {
  padding-block: clamp(1.75rem, 3.8vw, 3.75rem);
}
#view-home .hero .hw {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4.8vw, 4.5rem);
  align-items: center;
}
#view-home .hero .ht { max-width: 67ch; }
#view-home .hero h1 { max-width: 20ch; margin-bottom: .37em; }
#view-home .hero .shift-question { margin: .9em 0 .35em; }
#view-home .hero .hi {
  height: auto;
  min-height: 0;
  max-height: none;
}
#view-home .hero .heroimg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(37vw, 28rem);
  object-fit: contain;
}
#view-home .hero .hb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 1.35rem;
}
#view-home .hero .btn {
  min-height: 46px;
  padding: .58rem 1.05rem;
  border-radius: 5px;
  font: 600 1rem/1.35 var(--sans);
  text-align: center;
}
#view-home .hero .btn.ghost { border: 1.5px solid #d8ded5; color: #faf8f2; }
#view-home .hero .btn.ghost:hover { background: #f3f0e8; color: #1d302e; }
#view-home .hero a:focus-visible { outline-color: #f3d49d; }
.view .source-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: baseline;
  color: var(--caption);
  font-size: .91rem;
}
.view .source-links a { text-underline-offset: .18em; }

.view .reading-cards, #view-law :is(.grid2, .cards3) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  align-items: stretch;
  gap: var(--card-gap);
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
}
#view-law .cards3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.view .reading-card, #view-law .card.pad, #view-law .grid2 > div:not(.card) {
  min-width: 0;
  height: auto;
  padding: var(--card-pad);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
  box-shadow: none;
}
.view .reading-card h3, #view-law .grid2 h3, #view-law .card.pad h3,
#view-evidence .wrap > h3 {
  margin: 0 0 .55em;
  color: var(--ink);
  font: 500 clamp(1.5rem, 2vw, 1.95rem)/1.13 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.view .reading-card :is(p, ul), #view-law :is(.grid2, .cols3) p {
  max-width: var(--reading-width);
  margin: .6em 0;
}
.view .reading-card :last-child, #view-law .card.pad > :last-child {
  margin-bottom: 0;
}
.view .reading-card .note, .view .reading-card .note a {
  color: var(--caption);
}
.view .reading-card .note {
  margin-top: 1rem;
}
.view .reading-card a:not(.btn) {
  overflow-wrap: anywhere;
  text-underline-offset: .17em;
}
.view .band .interest-card {
  max-width: 76ch;
  margin-top: 1.25rem;
  padding: .65rem var(--card-pad);
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--surface);
}
#view-method .band + .band { padding-top: 0; }
#view-law .wrap > section, #view-evidence .wrap > .hb + h3 {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
#view-law .grid2:has(#lawbars) { align-items: start; }
#view-law #lawbars {max-height:30rem;overflow:auto;scrollbar-gutter:stable}
#view-law :is(.bars, .rows) { font-variant-numeric: tabular-nums; }
#view-law .rows .rw, #view-law .bars .bar {
  grid-template-columns: minmax(7ch, 1.2fr) minmax(2rem, 1fr) 4.3em;
  gap: .6rem;
}
#view-law .bars button.bar {
  min-height: 36px;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}
#view-law .bars .bar, #view-law .bars .bv, #view-law .rows .rw { font-size: .94rem; }
#view-law .bars .bt { height: .75rem; }
#view-law .bars .bt.mk { height: 1.7rem; }
#view-law .bars .mk .lab { color: #83361e; font-size: .86rem; }
#bag-size-tables .table-cards > section + section { margin: 0; }
#bag-size-tables .table-scroll {
  margin: 1.1rem 0;
  max-width: 100%;
  overflow-x: auto;
}
#bag-size-tables table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  line-height: 1.4;
}
#bag-size-tables caption {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}
#bag-size-tables :is(th, td) {
  padding: .64rem .5rem;
  border-bottom: 1px solid var(--rule);
}
#bag-size-tables thead th {
  background: #e9e8de;
  color: var(--ink);
  font-size: .89rem;
}
@media (min-width: 68rem) {
  #view-law .cards3:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.5rem) {
  #view-home .hero .hw { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  #view-home .hero .heroimg { max-height: clamp(11.5rem, 42vw, 18rem); }
  .view .reading-cards, #view-law :is(.grid2, .cards3) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 35rem) {
  .view .band { padding-inline: 1rem; }
  #bag-size-tables :is(th, td) { padding-inline: .35rem; }
  #view-law .bars button.bar { min-height: 44px; }
  #view-map #country-search .search-line { flex-wrap: wrap; }
  #view-map #country-search input { flex-basis: 12ch; }
}

.field-atlas {--accent:#963d25;--paper-deep:#e6e0d4;--focus:#0b4f8a;color-scheme:light;background:#f3f0e8;color:#1d302e;--ink:#1d302e;--paper:#f3f0e8;--muted:#465b54;--rule:#b6b8aa}
.field-atlas main.wrap {width:min(92%,1320px)}
.field-atlas .introduction {max-width:none}
.field-atlas h1 {max-width:none;font-size:clamp(2.65rem,5.25vw,4.6rem);letter-spacing:-.04em}
.field-atlas #explore-map-title {font-size:clamp(2.05rem,4.2vw,3.15rem)}
.field-atlas .map-actions {display:flex;flex-wrap:wrap;gap:.65rem}
.field-atlas .button {min-height:48px;padding:.6rem 1.15rem;border:2px solid #c8371e;background:#c8371e;border-radius:6px}
.field-atlas .button:hover {border-color:#a52c17;background:#a52c17}
.field-atlas .button.secondary {border-color:var(--ink);color:var(--ink);background:transparent}
.field-atlas .button.secondary:hover {background:#e6e0d4}

.field-atlas .notes {
  border:1px solid var(--rule);border-radius:6px;background:#faf8f2;padding:clamp(1rem,2vw,1.65rem);
}
.field-atlas .controls {border:0;padding-top:.3rem}
.field-atlas .map-tools button {min-height:44px}
.field-atlas .ref-foot {display:block;padding:0}

#view-home .hero-guidance {margin:1rem 0;padding:.75rem 0;gap:.65rem}
#view-home .hero-guidance a {color:#f6e5ca;font-weight:650;text-underline-offset:.18em}
#view-home .hero-guidance a:hover {color:#fff}
#view-home .hero-guidance strong,#view-home .hero .hs strong {white-space:nowrap}
#bag-weight .handling-context {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--card-gap);align-items:stretch;margin-block:1.4rem 0}
#bag-weight .handling-context article {min-width:0;padding:clamp(1.1rem,2vw,1.8rem);border:1px solid #ad5847;border-radius:6px;background:var(--surface)}
#bag-weight .handling-context h3 {font:500 clamp(1.45rem,2.2vw,2rem)/1.15 var(--serif);letter-spacing:-.025em;margin:0 0 .55em}
#bag-weight .handling-context p {max-width:65ch;margin:0}
#view-home .trade-note {margin-top:var(--card-gap);padding:var(--card-pad);border-radius:6px;background:#eee4d7;color:var(--ink)}
#view-home .trade-note h3 {margin:0 0 .42em;font:500 clamp(1.3rem,1.7vw,1.6rem)/1.15 var(--serif)}
#view-home .trade-note > p:not(.hb) {margin:0;max-width:76ch}
#view-home .trade-note .hb {margin-top:.85rem}
#view-map .map-record-actions {display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.35rem;margin-block:1.25rem}
#view-map .map-record-actions .source-links {margin:0}
@media(max-width:47.5rem) {
  #bag-weight .handling-context {grid-template-columns:minmax(0,1fr);gap:.85rem}
}
@media(max-width:30rem) {
  #view-home .hero .hb {display:grid;grid-template-columns:minmax(0,1fr)}
  #view-home .hero .hb .btn {width:100%;justify-content:center}
}

/* Keep the account, methodology and study plan readable as a sequence. */
:is(#view-law, #view-brief, #view-about, #view-method) .band .page-title {
  max-inline-size: 32ch;
}
:is(#view-about, #view-method, #view-brief) .reading-cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
:is(#view-about, #view-method, #view-brief) .reading-card {
  padding: clamp(1.3rem, 2.4vw, 2.15rem) 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}
:is(#view-about, #view-method) .reading-card h3 {
  margin-bottom: .45em;
}
#view-brief .reading-card .handling-photo {
  max-width: 34rem;
  margin: 0 0 1.25rem;
}
#view-brief .reading-card details {
  max-width: var(--reading-width);
  border-top: 1px solid var(--rule);
}
#view-brief .reading-card details:first-of-type {
  margin-top: 1.15rem;
}
#view-brief .reading-card details > summary {
  padding-block: .7rem;
  cursor: pointer;
  font-weight: 600;
}
#view-brief .reading-card details[open] > :last-child {
  margin-bottom: 1rem;
}
#view-brief .reading-cards + p {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}
:is(#view-home, #view-brief) figure figcaption {
  max-width: 70ch;
  margin-top: .6rem;
  color: var(--caption);
  font-size: .9375rem;
  line-height: 1.45;
}
:is(#view-brief, #view-method) .interest-card > summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
:is(#view-brief, #view-method) .interest-card > summary::after {
  float: none;
  flex: none;
}
@media (min-width: 48rem) {
  :is(#view-about, #view-method) .reading-card,
  #view-brief .reading-card {
    display: grid;
    grid-template-columns: var(--article-columns);
    gap: 0 var(--article-gap);
    align-items: start;
  }
  :is(#view-about, #view-method) .reading-card > * {
    grid-column: 2;
  }
  :is(#view-about, #view-method) .reading-card > h3 {
    grid-area: 1 / 1;
    margin: 0;
  }
  :is(#view-about, #view-method) .reading-card > :nth-child(2) {
    margin-top: 0;
  }
  #view-brief .reading-card .handling-photo {
    margin: 0;
  }
}
@media (max-width: 35rem) {
  #view-home .hero {
    padding-inline: 1rem;
  }
  :is(#view-home, #view-law, #view-evidence, #view-about, #view-brief, #view-method) .band .hb {
    align-items: stretch;
  }
  :is(#view-home, #view-law, #view-evidence, #view-about, #view-brief, #view-method) .band .hb > .btn {
    width: 100%;
  }
}

/* Evidence page */
#view-evidence .ev-hero, #view-evidence .ev-next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
#view-evidence .ev-hero h1 {
  margin: 0 0 .35em;
  max-width: 20ch;
  font: 500 clamp(2.4rem, 4.5vw, 4.4rem)/1.04 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
#view-evidence .ev-hero .lede { max-width: 58ch; }
#view-evidence .ev-links { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; max-width: none; margin-block: 1.2rem .25rem; }
#view-evidence :is(.ev-question,.ev-study-outline) {
  padding: clamp(1.25rem, 2.4vw, 2.25rem);
  border-inline-start: 3px solid var(--accent, #8f432d);
  background: var(--paper-deep);
}
#view-evidence :is(.ev-question h2,.ev-rows h3,.ev-study-outline h3) {
  margin: 0;
  font: 500 clamp(1.48rem, 2.3vw, 2.05rem)/1.12 var(--serif);
  letter-spacing: -.025em;
}
#view-evidence .ev-invitation { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.6rem; }
#view-evidence .ev-invitation p { margin: 0; max-width: 80ch; }
#view-evidence .ev-text-link { padding: .6rem .25rem; }
#view-evidence .ev-rows { margin-top: 1.4rem; border-top: 1px solid var(--rule); }
#view-evidence .ev-rows article { display: grid; grid-template-columns: var(--article-columns); gap: var(--article-gap); padding-block: 1.35rem; border-bottom: 1px solid var(--rule); }
#view-evidence .ev-rows p { margin: 0; max-width: 75ch; }
#view-evidence .ev-rows .note { margin-block-start: .55rem; }
#view-evidence .ev-rows .note a, #view-evidence .ev-studies .note a { color: inherit; }
#view-evidence .ev-disclosure { margin-block: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
#view-evidence .ev-disclosure summary { min-height: 44px; padding-block: .6rem; cursor: pointer; font-weight: 600; }
#view-evidence .ev-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 55rem; border-block: 1px solid var(--rule); margin-block: 1.2rem; }
#view-evidence .ev-counts p { margin: 0; padding: 1rem .5rem 1rem 0; }
#view-evidence .ev-counts p + p { padding-inline-start: clamp(1rem, 3vw, 2.5rem); border-inline-start: 1px solid var(--rule); }
#view-evidence .ev-counts strong { display: block; font: 500 clamp(2rem, 4vw, 3.5rem)/1.15 var(--serif); color: var(--accent, #8f432d); }
#view-evidence .ev-next { background: var(--paper-deep); }
#view-evidence .ev-study-outline { background: var(--paper); }
#view-evidence :is(.ev-question,.ev-study-outline) > :last-child { margin-bottom: 0; }
#view-evidence details .table-scroll { overflow-x: auto; max-width: 100%; }
@media (max-width: 47.99rem) {
  #view-evidence .ev-hero, #view-evidence .ev-next-grid, #view-evidence .ev-rows article { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  #view-evidence .ev-hero, #view-evidence .ev-next-grid { gap: 1.35rem; }
}
