/* --- hero --- */
.pg-hero { margin: 0 0 40px; }
.pg-hero img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 10px;
}
.pg-hero figcaption {
  margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--quiet);
}
.pg-credit { display: block; margin-top: 5px; font-size: 11.5px; color: var(--line-dark); }

/* Server-rendered content pages. Independent of the workbench stylesheet:
   these pages are read, not operated. */

:root {
  --bg: #fcfcfc; --paper: #ffffff; --ink: #1a1a1a; --black: #111111;
  --muted: #555555; --quiet: #999999; --soft: #fafafa; --soft-2: #f4f4f6;
  --line: #e5e5e5; --line-dark: #cccccc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.68;
}

/* --- header --- */
.pg-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.pg-brand {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.pg-cta {
  display: inline-block; padding: 8px 16px; border-radius: 6px;
  background: var(--black); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 500;
}
.pg-cta:hover { opacity: 0.85; }

/* --- article --- */
.pg-main { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }

.pg-kicker {
  font-size: 11px; letter-spacing: 0.14em; color: var(--quiet);
  font-weight: 600; margin: 0 0 18px;
}
.pg-main h1 {
  font-size: 40px; line-height: 1.14; letter-spacing: -0.028em;
  font-weight: 600; margin: 0 0 22px;
}
.pg-standfirst {
  font-size: 19px; line-height: 1.6; color: var(--ink);
  margin: 0 0 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.pg-standfirst strong { font-weight: 600; }
.pg-updated {
  font-size: 12px; color: var(--quiet); margin: 0 0 44px;
}

.pg-main h2 {
  font-size: 25px; line-height: 1.28; letter-spacing: -0.018em;
  font-weight: 600; margin: 52px 0 16px;
}
.pg-main h3 {
  font-size: 16px; font-weight: 600; margin: 30px 0 10px;
}
.pg-main p { font-size: 16.5px; color: var(--muted); margin: 0 0 17px; }
.pg-main strong { color: var(--ink); font-weight: 600; }
.pg-main ul { margin: 0 0 17px; padding-left: 20px; }
.pg-main li { font-size: 16.5px; color: var(--muted); margin-bottom: 9px; }

/* --- tables --- */
.pg-table-wrap { overflow-x: auto; margin: 24px 0 26px; }
.pg-main table {
  width: 100%; border-collapse: collapse; min-width: 520px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.pg-main th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; font-weight: 600;
  color: var(--quiet); padding: 13px 16px; border-bottom: 1px solid var(--line);
  text-transform: uppercase; white-space: nowrap;
}
.pg-main td {
  font-size: 15px; color: var(--muted); padding: 14px 16px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.pg-main tbody tr:last-child td { border-bottom: none; }
.pg-main tr.pg-total td { background: var(--soft-2); color: var(--ink); }

/* --- two-column list --- */
.pg-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin: 26px 0 8px; padding: 26px 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.pg-cols h3 { margin-top: 0; }
.pg-cols ul { margin-bottom: 0; }
.pg-cols li { font-size: 14.5px; }

/* --- faq --- */
.pg-faq { margin-top: 60px; padding-top: 12px; border-top: 1px solid var(--line); }
.pg-faq h2 { margin-top: 34px; }
.pg-qa { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pg-qa h3 { margin: 0 0 8px; font-size: 16.5px; }
.pg-qa p { margin: 0; font-size: 15.5px; }

/* --- footer --- */
.pg-foot { background: var(--soft); border-top: 1px solid var(--line); }
.pg-foot-wrap {
  max-width: 760px; margin: 0 auto; padding: 52px 24px 64px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
}
.pg-foot-brand { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.pg-foot p { font-size: 13.5px; color: var(--muted); margin: 0 0 20px; max-width: 340px; }
.pg-foot h4 {
  margin: 0 0 12px; font-size: 10px; letter-spacing: 0.1em;
  color: var(--quiet); font-weight: 600;
}
.pg-foot nav a {
  display: block; font-size: 13.5px; color: var(--muted);
  text-decoration: none; margin-bottom: 9px;
}
.pg-foot nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .pg-top { padding: 0 18px; }
  .pg-main { padding: 40px 18px 64px; }
  .pg-main h1 { font-size: 30px; }
  .pg-main h2 { font-size: 21px; }
  .pg-standfirst { font-size: 17px; }
  .pg-cols { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .pg-foot-wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 18px 48px; }
}

/* --- before / after figure --- */
.pg-figure { margin: 30px 0 26px; }
.pg-ba {
  display: grid; grid-template-columns: 427fr 600fr; gap: 20px;
  align-items: end;
}
.pg-ba img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.pg-ba figcaption {
  margin-top: 11px; font-size: 12.5px; color: var(--quiet); line-height: 1.55;
}
.pg-ba figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .pg-ba { grid-template-columns: 1fr; gap: 26px; }
}

/* --- hero --- */
.pg-hero { margin: 0 0 40px; }
.pg-hero-pair {
  display: grid; grid-template-columns: auto 28px auto;
  gap: 0 16px; align-items: center; justify-content: center;
  padding: 26px 24px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
.pg-hero-item { max-width: 250px; }
.pg-hero-item img {
  display: block; width: 100%; height: auto;
  border-radius: 6px; border: 1px solid var(--line);
}
.pg-hero-arrow { color: var(--line-dark); font-size: 20px; text-align: center; }
.pg-hero-label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-top: 11px;
}
.pg-hero-label span { font-size: 11.5px; color: var(--quiet); letter-spacing: 0.02em; }
.pg-hero-label b { font-size: 13px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.pg-hero figcaption {
  margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--quiet);
}
@media (max-width: 560px) {
  .pg-hero-pair { grid-template-columns: 1fr; gap: 18px; }
  .pg-hero-arrow { transform: rotate(90deg); }
  .pg-hero-item { max-width: 100%; }
}
