/* Styles for the What we know pages. Served from this origin, because the
   site's content policy allows no inline styles. */

.wwk-map { width: 100%; height: auto; display: block; }
.wwk-map .wwk-context path { fill: #f2f2e6; stroke: #e0e1d0; stroke-width: .6; }
.wwk-map .wwk-territory path { fill: #dfe4cd; stroke: #b9c0a3; stroke-width: .7; cursor: pointer; }
.wwk-map .wwk-territory:hover path,
.wwk-map .wwk-territory:focus-visible path,
.wwk-map .wwk-territory.is-active path { fill: #d2553a; stroke: #a8412c; }
.wwk-map .wwk-place-label { font: 12px system-ui, sans-serif; fill: #244734; pointer-events: none; }
.wwk-map .wwk-empty circle { fill: #8a9a86; cursor: pointer; }
.wwk-map .wwk-territory:focus-visible { outline: 2px solid #244734; outline-offset: 2px; }

.wwk-map-popup { position: relative; margin-top: -2.4rem; padding: 1rem 1.25rem;
  max-width: 34rem; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid #d2553a; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(24, 60, 47, .08); }
.wwk-map-popup p { margin: .3rem 0 0; }
.wwk-map-popup p:first-child { margin-top: 0; }
.wwk-map-cards .food-offer.is-highlighted { border-color: #d2553a;
  box-shadow: 0 0 0 2px rgba(210, 85, 58, .18); }

.wwk-sources { padding-left: 1.4rem; }
.wwk-sources li + li { margin-top: 1rem; }
.wwk-ref { text-decoration: none; color: #b8442c; font-weight: 600; }
.wwk-ref:hover { text-decoration: underline; }

/* The entry charts. Same drawing as the /why/ pages — one horizontal bar per
   row, a printed value at the end of each bar, and no colour-only meaning — so
   a reader who has seen one chart on this site can read the others. */
.wwk-figure { margin: 26px 0 6px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); padding: 22px 24px; }
.wwk-figure h3 { font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: -.4px; margin: 0; }
.wwk-figure svg { width: 100%; max-width: 100%; height: auto; margin-top: 18px; }
.wwk-figure .chart-bar { fill: #9aa87c; }
.wwk-figure .chart-bar-lead { fill: var(--coral); }
.wwk-figure .chart-track { fill: var(--lime); }
.wwk-figure .chart-label { font-family: var(--sans); font-size: 13px; fill: var(--forest); }
.wwk-figure .chart-value { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.wwk-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 14px;
  line-height: 1.6; }

@media (max-width: 640px) {
  .wwk-figure { padding: 18px 16px; }
  .wwk-figure h3 { font-size: 19px; }
}

/* The page's own contents. This entry runs to about eleven thousand words
   across eight sections, which is long enough that a reader needs to see the
   shape before starting and to get back to the top of it afterwards. */
.wwk-contents { margin: 1.4rem 0 2rem; padding: 1.4rem 1.6rem 1.2rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); }
.wwk-contents .eyebrow { color: var(--muted); }
.wwk-contents-list { list-style: none; margin: .9rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .1rem 1.8rem; counter-reset: none; }
.wwk-contents-list li { border-top: 1px solid var(--line); }
.wwk-contents-list a { display: flex; gap: .7rem; align-items: baseline;
  padding: .55rem 0; text-decoration: none; font-size: 14px; line-height: 1.35; }
.wwk-contents-list a:hover { text-decoration: underline;
  text-underline-offset: 3px; }
.wwk-contents-number { flex: none; min-width: 1.4rem; color: var(--coral-text);
  font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 700; }
.wwk-contents-also { margin-top: 1.1rem; font-size: 12px; letter-spacing: 1.4px;
  text-transform: uppercase; font-weight: 700; color: var(--muted); }
.wwk-contents-short { grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: .5rem; }
.wwk-contents-short a { color: var(--muted); }
.wwk-back { margin-top: 1.6rem; font-size: 12px; }
.wwk-back a { color: var(--muted); text-decoration: none; }
.wwk-back a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .wwk-contents { padding: 1.1rem 1.1rem .95rem; margin: 1.1rem 0 1.6rem; }
  .wwk-contents-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wwk-contents-short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 44 pixels is the smallest a thumb reliably hits. */
  .wwk-contents-list a { font-size: 15px; padding: .7rem 0; min-height: 44px;
    align-items: center; }
  /* Comfortable tap targets: 44 pixels is the smallest a thumb reliably hits. */
  .wwk-back a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* A long entry is read one section at a time. The hub lists the sections and
   says what each is for; every section page carries the same list, with where
   the reader is marked, so the entry still reads as one thing. */
.wwk-splitnote { margin-top: 1.1rem; font-size: 14px; color: var(--muted); }
.wwk-contents-parts { grid-template-columns: minmax(0, 1fr); }
.wwk-contents-parts a { align-items: flex-start; }
.wwk-contents-summary { display: block; margin-top: .2rem; font-size: 13px;
  color: var(--muted); line-height: 1.45; }
.wwk-partnav { margin: 1.2rem 0 .4rem; padding: 1rem 1.2rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); }
.wwk-partnav .eyebrow { color: var(--muted); text-transform: none;
  letter-spacing: 0; font-size: 13px; font-weight: 600; }
.wwk-partnav-list { list-style: none; margin: .5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.wwk-partnav-list li { font-size: 13px; }
.wwk-partnav-list a, .wwk-partnav-list span[aria-current] { display: inline-flex;
  gap: .4rem; align-items: baseline; padding: .35rem 0; text-decoration: none;
  color: var(--muted); }
.wwk-partnav-list .is-current a, .wwk-partnav-list .is-current span {
  color: var(--forest); font-weight: 600; }
.wwk-partnav-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wwk-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; margin: 2.2rem 0 1rem; }
.wwk-pager a { display: block; padding: 1rem 1.2rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-size: 15px; line-height: 1.35; }
.wwk-pager a:hover { border-color: var(--coral); }
.wwk-pager a span { display: block; font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 700; color: var(--muted);
  margin-bottom: .3rem; }
.wwk-pager-next { text-align: right; }

@media (max-width: 760px) {
  .wwk-partnav { padding: .9rem 1rem; }
  .wwk-partnav-list { display: block; }
  .wwk-partnav-list li + li { border-top: 1px solid var(--line); }
  .wwk-partnav-list a, .wwk-partnav-list span[aria-current] { min-height: 44px;
    align-items: center; width: 100%; }
  .wwk-pager { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .wwk-pager-next { text-align: left; }
  .wwk-pager a { min-height: 56px; }
}
