/* ─────────────────────────────────────────────
   Time to Read — content pages (tools & guides)
   Loaded after styles.css on /tools/* and /guides/*
   ───────────────────────────────────────────── */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 48px 40px;
}

/* Breadcrumb */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  color: #94A3B8;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }

/* Header */
.article-header h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.article-intro {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 18px;
}
.byline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* Quick answer */
.quick-answer {
  background: #EEF3FD;
  border: 1px solid #D6E2FB;
  border-radius: 18px;
  padding: 22px 26px;
  margin: 0 0 48px;
}
.qa-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.qa-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

/* Body */
.article-body h2,
.article-section h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 56px 0 16px;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin: 32px 0 10px;
  scroll-margin-top: 100px;
}
.article-body p,
.article-body li {
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
}
.article-body p { margin-bottom: 16px; }
.article-body ul,
.article-body ol {
  list-style: none;
  margin: 0 0 20px;
}
.article-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.article-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(37, 98, 234, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body strong { font-weight: 500; color: var(--text); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 480px;
}
.table-wrap th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: #F8FAFC;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.table-wrap td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tr:target td { background: #EEF3FD; }

/* App CTA */
.cta-card {
  margin: 64px 0 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.cta-card img { width: 64px; height: 64px; border-radius: 50%; }
.cta-card h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}
.cta-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
}
.cta-card .cta-small {
  font-size: 13px;
  margin: 14px 0 0;
}

/* FAQ (re-uses .faq-list / .faq-item from styles.css) */
.article-section { margin-top: 64px; }
.article-section .faq-answer p + p { margin-top: 10px; }

/* Related */
.related-list {
  display: grid;
  gap: 12px;
}
.related-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.15s;
}
.related-card::after { content: '→'; color: var(--blue); }
.related-card:hover { border-color: var(--blue); transform: translateY(-1px); }

/* Sources */
.sources {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sources h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.sources ol { padding-left: 18px; }
.sources li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 6px;
}
.sources a { color: var(--muted); text-underline-offset: 2px; }
.sources a:hover { color: var(--blue); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── READING TIME CALCULATOR ─── */
.calc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin: 0 0 40px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
.calc fieldset { border: 0; margin: 0 0 22px; min-width: 0; }
.calc-label,
.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.optional { font-weight: 400; color: var(--muted); }

.segmented {
  position: relative;
  display: inline-flex;
  background: var(--bg);
  border-radius: 100px;
  padding: 4px;
}
.segmented input,
.chips input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.segmented label {
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.segmented input:checked + label {
  background: var(--card);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chips input:checked + label {
  border-color: var(--blue);
  background: #EEF3FD;
  color: var(--blue);
  font-weight: 500;
}
.segmented input:focus-visible + label,
.chips input:focus-visible + label {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 22px;
}
.calc-field[hidden] { display: none; }
.calc-custom { margin-top: 14px; max-width: 220px; }

.calc input[type="number"],
.calc input[type="date"] {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 98, 234, 0.15);
}
.calc-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
}

.calc-results {
  background: var(--bg);
  border-radius: 18px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}
.result[hidden] { display: none; }
.result-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.result-value {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  line-height: 1.15;
  color: var(--text);
}
.result-main .result-value { color: var(--blue); }
.result-basis {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}
.calc-privacy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* ─── HUB PAGES ─── */
.hub-list { display: grid; gap: 16px; }
.hub-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 28px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.hub-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.hub-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.hub-card h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hub-card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.hub-card .hub-meta { font-size: 12px; line-height: 1.4; color: var(--blue); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .article { padding: 100px 20px 32px; }
  .article-intro { font-size: 17px; }
  .article-body p,
  .article-body li { font-size: 16px; }
  .quick-answer { padding: 18px 20px; }
  .qa-text { font-size: 16px; }
  .calc { padding: 22px 18px; border-radius: 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; padding: 18px 20px; }
  .result-value { font-size: 26px; }
  .cta-card { grid-template-columns: 1fr; padding: 26px 22px; gap: 16px; }
  .cta-card img { width: 52px; height: 52px; }
  .hub-card { padding: 22px; }
}

/* ─── COMPARISON PAGES (/compare/*) ─── */
.disclosure {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed #CBD5E1;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 18px;
}
/* breaks out of the 760px text column on wide screens so all columns fit */
.table-wrap.table-compare {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 48px));
}
.table-compare table {
  min-width: 920px;
  font-size: 14px;
}
@media (max-width: 900px) {
  .table-wrap.table-compare { width: calc(100vw - 40px); }
}
.table-compare td,
.table-compare th { vertical-align: top; }
.table-compare th:first-child,
.table-compare td:first-child {
  position: sticky;
  left: 0;
  background: var(--card);
  font-weight: 500;
  color: var(--text);
  box-shadow: 1px 0 0 var(--border);
}
.table-compare th:first-child { background: #F8FAFC; }
.article-body h3 a {
  color: var(--text);
  text-decoration: none;
}
.article-body h3 a::after {
  content: ' ↗';
  font-size: 14px;
  color: var(--blue);
}
.article-body h3 a:hover { color: var(--blue); }

.table-hint { display: none; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 900px) { .table-hint { display: block; } }
