/* Article layer for strategemco.com. Loads after strategem-search.css and only
   adds what long-form reading needs: a narrower measure, smaller subheads, and
   the blocks the search pages do not have (steps, callout, table, article cards). */

.breadcrumb {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* WCAG 2.5.8: these render 17px tall unpadded, under the 24px minimum. Padding on an
   inline box grows the hit area without changing the line box. */
.breadcrumb a {
  padding-block: 0.3rem;
  text-underline-offset: 0.2em;
}

.breadcrumb span {
  padding-inline: 0.45rem;
  color: var(--line-strong);
}

.article-hero {
  padding-block: clamp(2.6rem, 5vw, 4.4rem) clamp(2rem, 4vw, 3.2rem);
}

.article-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
}

.article-hero .hero-lede {
  max-width: 660px;
  margin-bottom: 0;
}

.article-meta {
  margin: 1.6rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Panel labels inside a two-panel diagram. strategem-search.css hides .model-note at
   640px, which is fine for incidental notes but would strip the labels that tell a
   reader which half is which, so those use this class instead. */
.model-panel {
  fill: #625f58;
  font-family: "Geist", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-figure {
  max-width: 620px;
  margin-block: clamp(2.4rem, 5vw, 3.4rem);
}

.article-body {
  max-width: var(--measure);
  padding-block: clamp(2.6rem, 5vw, 4rem);
}

.article-body > h2 {
  margin-top: clamp(2.8rem, 5vw, 3.8rem);
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.article-body > h2:first-child {
  margin-top: 0;
}

.article-body > p {
  margin-bottom: 1.35rem;
  font-size: 1.06rem;
  line-height: 1.68;
}

.article-body a {
  text-decoration-color: var(--orange-ink);
  text-underline-offset: 0.18em;
}

.tldr {
  margin-block: 0 clamp(2rem, 4vw, 3rem);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.tldr h2 {
  margin-bottom: 1rem;
  color: var(--orange-ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tldr ul,
.article-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tldr li,
.article-checklist li {
  position: relative;
  padding-left: 1.5rem;
}

.tldr li + li,
.article-checklist li + li {
  margin-top: 0.7rem;
}

.tldr li::before,
.article-checklist li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--orange-ink);
}

.article-checklist {
  margin-block: 1.8rem 2.4rem;
}

.article-steps {
  margin-block: 1.8rem 2.4rem;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.article-steps li {
  position: relative;
  padding: 0.9rem 0 0.9rem 3.1rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.article-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.article-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0.9rem;
  left: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 650;
}

.callout {
  margin-block: 2.2rem;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--orange-ink);
  background: var(--orange-soft);
}

.callout p {
  margin-bottom: 0;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
}

.example-block {
  margin-block: 2.2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.example-block p:last-child {
  margin-bottom: 0;
}

.example-block .equation {
  margin-block: 1rem;
  border-color: var(--line);
  background: var(--cream);
  color: var(--ink);
}

.example-block .equation strong {
  color: var(--orange-ink);
}

.table-hint {
  display: none;
  margin-block: 1.4rem 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.table-wrap {
  margin-block: 1.4rem 2.4rem;
  overflow-x: auto;
}

.table-wrap:focus-visible {
  outline: 2px solid var(--orange-focus);
  outline-offset: 3px;
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table caption {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  border-bottom: 1px solid var(--line-strong);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-table tbody th {
  width: 26%;
  font-weight: 620;
}

/* One card should not sit in a full section's worth of air. */
.section-list {
  padding-block: 0 clamp(2.4rem, 5vw, 4rem);
}

.sources {
  padding-block: 0 clamp(3rem, 6vw, 4.5rem);
}

.sources h2 {
  margin-bottom: 0.5rem;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sources-note {
  max-width: var(--measure);
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.sources-list {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: source;
  list-style: none;
  font-size: 0.88rem;
}

.sources-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
  counter-increment: source;
}

.sources-list li::before {
  content: counter(source) ".";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sources-list a {
  text-decoration-color: var(--orange-ink);
  text-underline-offset: 0.18em;
}

.sources-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.article-list {
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  background: var(--paper);
}

.article-card h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-card h2 a {
  text-decoration: none;
}

.article-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-card p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .model-panel {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0;
  }

  .table-hint {
    display: block;
  }

  .table-wrap {
    margin-top: 0;
  }

  .compare-table {
    min-width: 540px;
  }

  .article-body > p {
    font-size: 1.02rem;
  }
}
