/*
 * Prize Winners UK, layout supplement v1.1.0.
 * Loaded after style.css by the theme enqueue guard (the optional
 * extra stylesheet). Base sheet v1.3.0 owns the full centring: the
 * column centres as a block through the printed pw-content-sheet
 * wrapper and every public line of text centres with the body
 * alignment. This file keeps only the pieces the base sheet does
 * not carry: the comparison table note, the calc holder paragraph
 * the browser auto-closes, the calc label column and result line
 * layout, the input widths, the board wrapper rule the base sheet
 * defers to this file, and two centred reinforcements: the list
 * markers stay inside so a wrapped line centres under the text,
 * and a wrapper-level centring guard, extended to the printed
 * content sheet, so no host wrapper rule can re-align the sheet
 * text. The left-edge reinforcements retired with the v1.1.1
 * left ruling, withdrawn in v1.3.0. House style keeps past tense
 * in code prose.
 */

/* Centred reinforcements: the list markers stay inside so a
   wrapped line centres under the text, and the content wrappers
   restate the page alignment above any host wrapper rule. */
.pw-public ul,
.pw-public ol {
  padding-left: 0;
  list-style-position: inside;
}

.pw-public .pw-content-sheet,
.pw-public .pw-sheet,
.pw-public .entry-content {
  text-align: center;
}

/* Board wrapper: the section element the board plugin prints around
   the leaderboard rows. The rule gives an anchor jump to the board
   block breathing room under the header and gives the wrapper one
   owned declaration, so no renderer class sits outside the sheets. */
.pw-public .pw-board {
  scroll-margin-top: 6rem;
}

/* Comparison table note: muted small print under the table wrap. */
.pw-public .pw-tablenote {
  margin: 1.2rem 0 0;
  color: var(--pw-muted);
  font-size: 0.85rem;
}

/* Calc holder: the fragment wraps the shortcode in a p, the browser
   closes that p before the section, leaving an empty paragraph. Take
   the box away so the sheet rhythm owns the spacing. */
.pw-public p.pw-calchold {
  margin: 0;
  display: contents;
}

/* Calc internals: the plugin prints its own table, label column and
   result lines. Since v1.1.0 the calc joins the centred page: each
   ledger line is one centred key and value pair, and the values
   keep their tabular edge alignment as objects. */
.pw-public .pw-calc th,
.pw-public .pw-calc td {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.5rem;
}

.pw-public .pw-calc th {
  width: 46%;
  color: var(--pw-ivory);
  font-family: var(--pw-mono);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}

.pw-public .pw-calc input {
  width: 11rem;
  text-align: center;
  max-width: 100%;
}

.pw-public .pw-calc .pw-calc-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--pw-rule);
}

.pw-public .pw-calc .pw-calc-line:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.pw-public .pw-calc .pw-calc-key {
  color: var(--pw-muted);
  font-family: var(--pw-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.pw-public .pw-calc .pw-calc-val {
  color: var(--pw-lime);
  font-family: var(--pw-mono);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}