/* LifeOS guide/product pages — article styling ONLY. Shares landing/styles.css
   (loaded first) for every token, the header, the buttons, the FAQ
   <details>/<summary> pattern and the footer; this file adds nothing that
   duplicates a rule already there and introduces no new colour tokens — only
   existing --tokens from styles.css are used. Added 2026-09-29 for the
   distribution build (the guide and product pages under landing/pages/). */

.breadcrumbs{
  padding-block: var(--space-5) 0;
}

/* Shared 720px content measure, matching .guide-hero's own cap, for elements
   that need the same left/right edge as the H1 but sit outside the hero:
   the breadcrumbs above it and the numbered steps below it. Without this,
   .wrap's own 1040px cap put the steps on a different edge than the H1. */
.guide-wrap{
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.breadcrumbs ol{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  font-size: .875rem;
  color: var(--ink-faint);
}

.breadcrumbs li:not(:last-child)::after{
  content: "/";
  margin-inline-start: var(--space-2);
  color: var(--hairline-strong);
}

.breadcrumbs a{
  text-decoration: none;
  color: var(--ink-muted);
}

.breadcrumbs a:hover{ color: var(--accent); }

.breadcrumbs li{ display: inline-flex; gap: var(--space-2); }

.guide{
  padding-block: var(--space-8) var(--space-20);
}

.guide-hero{
  max-width: 720px;
  padding-block-end: var(--space-8);
}

.guide-hero h1{
  margin-block: var(--space-2) var(--space-4);
}

/* Readable line length for long-form article text, distinct from the home
   page's centred narrow sections. */
.guide-section{
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--space-8);
  padding-inline: var(--space-5);
  border-block-start: 1px solid var(--hairline);
}

.guide-section:first-of-type{ border-block-start: none; }

.guide-section h2{
  margin-block-end: var(--space-3);
}

.guide-section p{ max-width: 68ch; }

.guide-section p + p{ margin-block-start: var(--space-3); }

/* The numbered method itself, when a section is a step rather than a
   paragraph — reuses .explain-list's counter-driven marker from styles.css
   in spirit but as an ordered list of full sections. */
.step-list{
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list > li{
  counter-increment: step;
  position: relative;
  padding-inline-start: var(--space-10);
  padding-block: var(--space-3);
}

.step-list > li::before{
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: var(--space-3);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bill tracker template: a real table that scrolls horizontally on a phone
   instead of squeezing ten columns into 320px. */
.table-wrap{
  overflow-x: auto;
  margin-block: var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.guide-table{
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: .875rem;
}

.guide-table th,
.guide-table td{
  padding: var(--space-2) var(--space-3);
  text-align: start;
  border-block-end: 1px solid var(--hairline);
  white-space: nowrap;
}

.guide-table thead th{
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--ink-muted);
}

.guide-table tbody tr:last-child td{ border-block-end: none; }

/* "How LifeOS handles this" / availability callouts — the one place a guide
   page uses --accent-soft as a background, same restrained-accent rule as
   the rest of the site (styles.css's own comment: "one accent used
   sparingly"). */
.status-callout{
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: none;
}

.status-callout h2{ color: var(--accent-strong); }

.status-callout p{ color: var(--ink); }

.guide-links{
  max-width: 720px;
  margin-inline: auto;
  padding-block-start: var(--space-8);
  padding-inline: var(--space-5);
  color: var(--ink-muted);
}

.footer-guides{
  font-size: .875rem;
  color: var(--ink-muted);
}

.footer-guides a{
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px){
  .guide{ padding-block: var(--space-6) var(--space-16); }
  .status-callout{ padding: var(--space-4); }
}

/* The coloured card sits ON the text column, not on the section box.
   .guide-section is a 720px box whose text starts one gutter inside it, so
   a card filling that box stuck out a gutter either side of the column on
   desktop and crept inside the page gutter around 770px. Sizing the card
   to the column (720 minus two gutters) and centring it, with the gutter
   as the floor on narrow screens, lines its edges up with the H1 at every
   width. The doubled class outranks .guide-section by specificity, not by
   file order - an equal-specificity rule losing on order was the bug. */
.guide-section.status-callout{
  max-width: calc(720px - 2 * var(--space-5));
  margin-inline: max(var(--space-5), calc(50% - 360px + var(--space-5)));
}
