/* Guides (articles): the paper page from light.css, a sticky "On this page"
   list on the left, and a comfortable reading column. */

.guide-top { padding-bottom: 104px; }
.guide-top .crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 0.9rem; color: #B9D2D7; }
.guide-top .crumbs li + li::before { content: "›"; margin-right: 8px; color: #8FB0B6; }
.guide-top .crumbs a { color: #D2E6E9; text-decoration: none; }
.guide-top .crumbs a:hover { color: #fff; text-decoration: underline; }
.guide-top h1 { max-width: 20ch; margin-inline: auto; }
.guide-top p.meta { max-width: none; margin-top: 18px; font-size: 0.92rem; color: #B9D2D7; }

.article-layout {
  display: grid; grid-template-columns: 210px minmax(0, 700px); justify-content: center; gap: 72px;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 0;
}

/* The topic list */
.toc-side { position: relative; }
.toc-side nav { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow-y: auto; padding-bottom: 24px; }
.toc-h { margin: 0 0 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.toc-side ol, .toc-phone ol { list-style: none; margin: 0; padding: 0; }
.toc-side li a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px;
  border-left: 2px solid var(--hair); font-size: 0.9rem; line-height: 1.35;
  color: var(--text-faint); text-decoration: none; transition: color 0.2s, border-color 0.2s;
}
.toc-side li a:hover { color: var(--ink); }
.toc-side li a[aria-current="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--flow); }
.toc-phone { display: none; }

/* The article */
.article { min-width: 0; color: var(--text-soft); font-size: 1.06rem; line-height: 1.7; }
.article > * + * { margin-top: 1em; }
.article h2 {
  margin-top: 2.4em; scroll-margin-top: 104px;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem); line-height: 1.2; letter-spacing: -0.025em; color: var(--ink);
}
.article h3 { margin-top: 1.8em; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); }
.article h2 + p, .article h3 + p { margin-top: 0.6em; }
.article a { color: var(--petrol); text-underline-offset: 3px; }
.article strong { color: var(--ink); font-weight: 600; }
.article ul { padding-left: 1.2em; }
.article li + li { margin-top: 0.45em; }
.article li::marker { color: var(--flow); }
.article kbd {
  font: 600 0.85em var(--font); color: var(--ink); white-space: nowrap;
  padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid rgba(11, 27, 34, 0.18);
}
.article .path { color: var(--ink); font-weight: 500; }

.article ol.steps { list-style: none; counter-reset: step; padding: 0; }
.article ol.steps > li { counter-increment: step; position: relative; padding-left: 48px; }
.article ol.steps > li + li { margin-top: 1em; }
.article ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.88rem; font-weight: 600; color: var(--petrol); background: #fff; border: 1px solid rgba(11, 27, 34, 0.16);
}

.answer { padding: 22px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--hair); color: var(--ink); }
.answer p { margin: 0; }
.answer .answer-h { font-size: 0.82rem; font-weight: 600; color: var(--petrol); margin-bottom: 6px; }
.note { padding: 16px 20px; border-radius: 14px; background: rgba(14, 124, 134, 0.07); font-size: 0.98rem; }
.note p { margin: 0; }

.article table { width: 100%; border-collapse: collapse; font-size: 0.97rem; line-height: 1.5; }
.article th, .article td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--hair); }
.article th { color: var(--ink); font-weight: 600; }
.article td:first-child { color: var(--ink); }
.table-wrap { overflow-x: auto; }

/* A drawing of System Settings › Keyboard › Dictation */
.settings-mock { margin-top: 1.4em; border-radius: 16px; background: #fff; border: 1px solid var(--hair); overflow: hidden; font-size: 0.95rem; line-height: 1.4; }
.settings-mock .sm-title { padding: 12px 18px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--hair); background: #FBFAF7; }
.settings-mock .sm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; }
.settings-mock .sm-row + .sm-row { border-top: 1px solid var(--hair); }
.settings-mock .sm-row span:first-child { color: var(--ink); }
.settings-mock .sm-val { color: var(--text-faint); white-space: nowrap; }
.settings-mock .sm-toggle { width: 38px; height: 22px; border-radius: 999px; background: #34C759; position: relative; flex: none; }
.settings-mock .sm-toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.figcap { margin-top: 0.6em; font-size: 0.85rem; color: var(--text-faint); }

/* Octaflow, gently */
.aside-cta { margin-top: 1.6em; padding: 26px 28px; border-radius: 20px; background: var(--harbor); color: #C9DCE0; }
.aside-cta .cta-h { color: #fff; font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; }
.aside-cta p { margin: 0; }
.aside-cta .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.aside-cta .btn { min-height: 46px; padding: 0 22px; font-size: 0.95rem; }
.aside-cta a.cta-link { color: var(--lagoon); }

/* Questions */
.article .faq-doc details { border-top: 1px solid var(--hair); }
.article .faq-doc details:last-child { border-bottom: 1px solid var(--hair); }
.article .faq-doc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 2px; font-size: 1.04rem; font-weight: 600; color: var(--ink);
}
.article .faq-doc summary::-webkit-details-marker { display: none; }
.article .faq-doc summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; color: var(--text-faint); }
.article .faq-doc details[open] summary::after { content: "–"; }
.article .faq-doc details p { margin: 0 0 18px; }

/* Related and sources */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 1em; }
.related a { display: block; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--hair); text-decoration: none; transition: border-color 0.2s; }
.related a:hover { border-color: rgba(11, 27, 34, 0.3); }
.related b { display: block; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.related span { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--text-faint); line-height: 1.45; }
.sources { margin-top: 2.6em; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 0.9rem; color: var(--text-faint); }
.sources p { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.sources ul { margin: 0; padding-left: 1.1em; }
.sources a { color: var(--text-faint); }

/* The guides hub */
.hub { max-width: 860px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) 0; }
.hub h2 { font-size: 1.3rem; color: var(--ink); letter-spacing: -0.015em; margin: 0 0 16px; }
.hub h2:not(:first-child) { margin-top: 56px; }
.hub-list { display: grid; gap: 14px; }
.hub-list a { display: block; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--hair); text-decoration: none; transition: border-color 0.2s; }
.hub-list a:hover { border-color: rgba(11, 27, 34, 0.3); }
.hub-list b { display: block; color: var(--ink); font-size: 1.12rem; letter-spacing: -0.01em; }
.hub-list span { display: block; margin-top: 6px; color: var(--text-soft); line-height: 1.55; }
.hub-list small { display: block; margin-top: 10px; color: var(--text-faint); font-size: 0.85rem; }

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 700px); gap: 0; }
  .toc-side { display: none; }
  .toc-phone { display: block; margin: 0 0 1.6em; border-radius: 14px; background: #fff; border: 1px solid var(--hair); }
  .toc-phone summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
  .toc-phone ol { padding: 0 18px 14px; }
  .toc-phone li a { display: block; padding: 7px 0; color: var(--text-soft); text-decoration: none; font-size: 0.95rem; }
}
@media (max-width: 560px) {
  .article { font-size: 1.02rem; }
  .answer, .aside-cta { padding: 20px; }
  .article ol.steps > li { padding-left: 42px; }
}
