/* Per-brand score pages, /scores/<brand>.
   Extracted from the TD mockup so nine pages share one stylesheet rather than
   nine copies of the same rules. */

/* The masthead carries the whole verdict: who, what they scored, and the shape,
   so the number never appears without its form. */
/* Hero padding and the gap below it now come from styles.css, shared with every
   other page so the eyebrow line sits at one height across the site. */

/* Not .arrow-link: that class adds a trailing arrow of its own, which with a
   written one gave "← All scores →". */
.backlink {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; text-decoration: none;
  color: var(--ink-soft); margin-bottom: 2rem;
}
.backlink:hover { color: var(--accent); }

.brandhead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Logo, name, score and summary all start at the same left edge. Sitting the
   logo inline pushed the name in and left everything below it hanging. */
.brandhead__logo {
  display: block;
  width: 4.5rem; height: 4.5rem; border-radius: 10px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
  margin-bottom: 1.25rem;
}
/* Applied by logochip.js only when the mark would otherwise disappear into the
   paper. background-size insets the logo so the chip reads as a backing rather
   than a crop. */
.brandhead__logo--chip-dark,
.brandhead__logo--chip-light { background-size: 74%; }
.brandhead__logo--chip-dark { background-color: #2b2724; }
.brandhead__logo--chip-light { background-color: #ffffff; }

.brandhead h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.brandhead__sector {
  font-size: 0.8125rem; color: var(--ink-faint);
  margin: 0.35rem 0 0;
}
.brandhead__site {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.brandhead__site:hover { color: var(--accent); border-bottom-color: currentColor; }
.brandhead__site:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brandhead__verdict {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 1.75rem 0 1.5rem;
}
.verdict-line__n {
  font-family: var(--display); font-weight: 600; line-height: 0.85;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-variant-numeric: tabular-nums;
  color: var(--brand-colour, var(--ink));
}
.verdict-line__of { font-size: 1.0625rem; color: var(--ink-faint); }
.brandhead__lede { max-width: 32rem; font-size: 1.0625rem; color: var(--ink-soft); }

.brandhead__figure { margin: 0; }
.brandhead__figure figcaption {
  margin-top: 0.9rem; font-size: 0.75rem; color: var(--ink-faint); text-align: center;
}
@media (max-width: 52rem) {
  .brandhead__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* max-width without the auto margin left the chart hanging off the left edge
     on a phone, where it is the widest thing on the screen. */
  .brandhead__figure { order: 1; max-width: 17rem; margin-inline: auto; }
}

/* Dimensions. The meter is the score made visual, so the eye can run down the
   column and see the shape of the argument before reading a word of it. */
.dims { margin-top: 0; }
.dim {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.dim:last-of-type { border-bottom: 1px solid var(--rule); }
.dim__n {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); padding-top: 0.45rem;
}
.dim__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem 1rem; }
.dim__name { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.dim__score {
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  margin-left: auto; font-variant-numeric: tabular-nums;
}
.dim__of { font-size: 0.875rem; color: var(--ink-faint); }

.meter { display: flex; gap: 0.3rem; margin: 0.85rem 0 1rem; }
.meter i { height: 5px; flex: 1 1 0; border-radius: 999px; background: var(--rule); }
.meter i[data-on] { background: var(--brand-colour, var(--accent)); }

.dim__q { font-size: 0.875rem; color: var(--ink-faint); margin: 0 0 0.7rem; }
.dim__evidence { max-width: var(--measure); margin: 0; }
.dim__evidence strong { font-weight: 600; color: var(--ink); }

@media (max-width: 40rem) {
  .dim { grid-template-columns: 1fr; gap: 0.5rem; }
  .dim__n { padding-top: 0; }
}

/* The finding is the argument the five numbers add up to. It reads as prose,
   set apart by weight rather than by a box, so it does not compete with the
   revision note directly below it. */
.finding {
  margin-top: 3rem;
  max-width: var(--measure);
}
.finding__k {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.finding__k::after {
  content: ''; flex: 1 1 auto; height: 1px;
  background: var(--brand-colour, var(--accent));
  opacity: 0.45;
}
/* The verdict is restated here because by the time a reader reaches the finding
   they have scrolled five dimensions past the header, and the conclusion reads
   oddly without the number it concluded. Smaller than the header's, so it reads
   as a reminder rather than a second headline. */
.finding__verdict {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem !important;
}
.finding__n {
  font-family: var(--display); font-weight: 600; line-height: 1;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  color: var(--brand-colour, var(--ink));
}
.finding__of { font-size: 0.9375rem; color: var(--ink-faint); }

.finding p:not(.finding__k):not(.finding__verdict) {
  font-family: var(--display); font-size: 1.1875rem; line-height: 1.55; margin: 0;
}

/* Corrections belong on the record, not in a footnote. */
.revision {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-sunk);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.revision__k {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.6rem;
}
.revision p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }

.method {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1px; margin-top: 2.5rem;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden;
}
.method div { background: var(--paper); padding: 1.1rem 1.25rem; }
.method dt {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.35rem;
}
.method dd { margin: 0; font-size: 0.9375rem; }

/* One action, then two links. Three identical buttons read as a toolbar and
   leave nobody sure which is the thing to do. */
.brandnav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem 2rem; margin-top: 3rem;
}
.brandnav__links { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }

/* Sits under the method box, where someone checking how a score was produced is
   already looking, rather than in a footer nobody reads. */
.indep-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem; color: var(--ink-faint);
  max-width: var(--measure);
}
