/* ==========================================================================
   Reading site — Telegraph-style layout.
   Fonts (css/fonts.css): Charis SIL (Charter design) for text,
   Fira Sans for title, headings, author line and captions.
   ========================================================================== */

:root {
  --text: rgba(0, 0, 0, 0.8);
  --muted: #79828b;
  --rule: #c9cdd1;
  --serif: "Charis SIL", Charter, "Bitstream Charter", Georgia, Cambria, "Times New Roman", serif;
  --sans: "Fira Sans", "Lucida Grande", Arial, sans-serif;
}

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: #fff;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 732px;
  margin: 0 auto;
  padding: 21px 0;
  width: 100%;
  box-sizing: border-box;
}

.article {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.58;
  color: var(--text);
  overflow-wrap: break-word;
}
.article ::selection { background: #dbdbdb; }

/* ---------- Header ---------- */
.article__title {
  font-family: var(--sans);
  font-weight: 700;
  font-style: normal;
  font-size: 32px;
  line-height: 34px;
  margin: 21px 21px 12px;
}

/* Optional subtitle (used on the Contact page) */
.article__subtitle {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin: -6px 21px 12px;
  color: rgba(0, 0, 0, 0.44);
}

.article__meta {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 18px;
  font-style: normal;
  color: var(--muted);
  margin: 12px 21px;
}
.article__meta a { color: var(--muted); border-bottom: 0; }
.article__meta .author + time::before { content: "•"; padding: 0 7px; }

/* ---------- Body ---------- */
.prose p { margin: 0 21px 12px; }

.prose h2,
.prose h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-style: normal;
  font-size: 28px;
  margin: 18px 21px 9px;
}
.prose h3 { font-size: 24px; margin: 18px 21px 7px; }

.prose blockquote {
  font-family: var(--serif);
  font-style: italic;
  margin: 18px 21px 16px 0;
  padding-left: 15px;
  border-left: 3px solid #000;
}
.prose blockquote p { margin: 0; }

.prose figure {
  margin: 0 21px 16px;
  padding: 0;
  text-align: center;
}
.prose figure img {
  max-width: 100%;
  max-height: 690px;
  height: auto;
  vertical-align: top;
}
.prose figcaption {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 18px;
  color: var(--muted);
  padding: 12px 21px 0;
}

.prose ul,
.prose ol { padding: 0; margin: 21px; list-style: none; counter-reset: list; }
.prose li { margin: 0 0 14px 30px; position: relative; }
.prose ul li::before { content: "•"; position: absolute; left: -30px; width: 30px; padding-right: 15px; box-sizing: border-box; text-align: right; }
.prose ol li::before { counter-increment: list; content: counter(list) "."; position: absolute; left: -30px; width: 30px; padding-right: 12px; box-sizing: border-box; text-align: right; }

.prose hr {
  width: 50%;
  margin: 30px auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

.prose strong { font-weight: 700; }

/* Simple data table (Cookie Policy) */
.prose table {
  width: calc(100% - 42px);
  margin: 0 21px 16px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
}
.prose th,
.prose td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid #e4e6e8;
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 700; }
.prose td:first-child { white-space: nowrap; font-family: Menlo, "Courier New", monospace; font-size: 14px; }

.article a[href] {
  color: inherit;
  text-decoration: none;
  border-bottom: 0.1em solid rgba(0, 0, 0, 0.7);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.44);
}

/* ---------- Discussion (Article 2) ---------- */
.discussion {
  margin: 54px 21px 0;
  padding-top: 22px;
  border-top: 1px solid #e4e6e8;
  font-family: var(--sans);
}
.discussion__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.discussion__heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}
.discussion__heading span {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}
.discussion__list { display: block; }
.discussion__comment {
  padding: 20px 0;
  border-bottom: 1px solid #eceeef;
}
.discussion__comment:last-child { border-bottom: 0; }
.discussion__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 21px;
  margin-bottom: 5px;
}
.discussion__name {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.discussion__date {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.discussion__name + .discussion__date::before {
  content: "•";
  padding-right: 8px;
  color: #b1b6bb;
}
.discussion__text {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.52;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.discussion__photo {
  display: block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  margin-top: 13px;
  border-radius: 2px;
}

.discussion__form {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid #e4e6e8;
}
.discussion__form h3 {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.35;
}
.discussion__form label {
  display: block;
  margin-bottom: 13px;
}
.discussion__form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.discussion__form input,
.discussion__form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #dfe2e4;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: 15px/1.45 var(--sans);
  outline: none;
}
.discussion__form input { height: 42px; padding: 0 11px; }
.discussion__form textarea { min-height: 92px; padding: 10px 11px; resize: vertical; }
.discussion__form input:focus,
.discussion__form textarea:focus { border-color: #90979e; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06); }
.discussion__form-footer { display: flex; align-items: center; gap: 12px; }
.discussion__form button {
  min-width: 126px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #24272a;
  color: #fff;
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}
.discussion__form button:hover { background: #000; }
.discussion__status { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Hide the browser's text fallback while Article 2 images are still loading. */
.page--reading img {
  color: transparent;
  font-size: 0;
}

@media (max-width: 540px) {
  .discussion__meta { flex-wrap: wrap; }
  .discussion__form-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.6); outline-offset: 2px; }

/* ---------- Secondary pages ---------- */
.back-link {
  display: inline-block;
  margin: 0 21px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 18px;
  color: var(--muted);
  text-decoration: none;
}
.article a.back-link { border-bottom: 0; color: var(--muted); }
.badge { display: none; }

.placeholder {
  padding: 0 4px;
  border-radius: 3px;
  background: #f2f2f2;
  font-family: var(--sans);
  font-size: 0.85em;
  color: #555;
}

.prose p.notice {
  padding: 10px 14px;
  background: #f5f5f5;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin: 48px 21px 0;
  padding-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 14px;
  white-space: nowrap;
}
.site-footer a:hover,
.site-footer a[aria-current="page"] { color: #000; }
/* old footer markup on the static legal pages */
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 14px; }
.site-footer ul a { margin-right: 0; }
.site-footer__note { display: none; }

@media print {
  .site-footer, .back-link { display: none; }
}
