/* pdrOS guide: big readable type, pdrOS colours, no developer-docs chrome. */
:root,
[data-md-color-scheme="default"],
[data-md-color-primary="custom"] {
  --md-text-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --md-code-font: Consolas, "SFMono-Regular", Menlo, monospace;
  --md-primary-fg-color: #201c24;        /* the pdrOS sidebar colour: header */
  --md-primary-fg-color--light: #2d2832;
  --md-primary-fg-color--dark: #16131a;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255,255,255,.72);
  --md-accent-fg-color: #ee964b;         /* the orange of the Support Ticket button */
  --md-accent-fg-color--transparent: rgba(238,150,75,.12);
  --md-typeset-a-color: #1a56c4;
  --md-default-fg-color: #1d1d1f;
  --md-footer-bg-color: #201c24;
  --md-footer-bg-color--dark: #16131a;
  --pdros-orange: #ee964b;
  --pdros-cream: #fef6ef;
  --pdros-line: #d9dde3;
}

/* Type: 19 px body on a 20 px root, 70-character lines. */
.md-typeset { font-size: .95rem; line-height: 1.6; }
.md-typeset h1 { font-weight: 700; color: #1d1d1f; margin-bottom: .6em; font-size: 1.9em; line-height: 1.2; }
.md-typeset h2 { font-weight: 700; font-size: 1.4em; margin-top: 1.8em; }
.md-typeset h3 { font-weight: 700; font-size: 1.15em; }
.md-typeset h1 + p { color: #555a63; font-size: .92em; margin-top: -.3em; }   /* the Answers line */
.md-typeset ol li, .md-typeset ul li { margin-bottom: .45em; }
.md-typeset ol > li::marker { font-weight: 700; color: #1a56c4; }
.md-typeset strong { font-weight: 700; }
.md-typeset a { text-decoration: underline; text-underline-offset: .15em; }
.md-typeset table:not([class]) { font-size: .85em; }
.md-typeset table:not([class]) th { background: #f3f4f6; }
.md-typeset blockquote { border-left: .25rem solid var(--pdros-orange); color: inherit; background: var(--pdros-cream); padding: .6em 1em; }
.md-typeset details { font-size: .92em; }
.md-content__inner { padding-bottom: 2rem; }

/* Screenshots: full column width, bordered, click to zoom, caption under. */
.md-typeset figure.shot { margin: 1.4em 0 1.8em; width: 100%; text-align: left; }
.md-typeset figure.shot p { margin: 0; }
.md-typeset figure.shot img { display: block; width: auto; max-width: 100%; max-height: 30rem; height: auto; border: 1px solid var(--pdros-line); border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); cursor: zoom-in; }
.md-typeset figure.shot figcaption { font-style: normal; font-size: .85em; color: #555a63; margin: .5em 0 0; max-width: none; text-align: left; }
.md-typeset figure.shot figcaption::before { content: "Picture: "; font-weight: 700; color: #1d1d1f; }

/* Header: the pdrOS logo, no title text next to it on desktop (the logo carries it). */
.md-header__button.md-logo img { height: 1.6rem; width: auto; }
.md-header__title { font-weight: 600; }
.md-search__input { font-size: .85rem; }
[data-md-toggle=search]:checked ~ .md-header .md-search__input::placeholder { color: #666; }

/* The top bar. */
.md-banner { background: var(--pdros-cream); color: #1d1d1f; font-size: .78rem; }
.md-banner .md-banner__inner { margin: .5rem auto; }
.md-banner a { color: #1a56c4; text-decoration: underline; font-weight: 600; }

/* Sidebar: chapter names bold, pages normal, bigger touch targets. */
.md-nav { font-size: .78rem; }
.md-nav__item--section > .md-nav__link, .md-nav__item--nested > .md-nav__link { font-weight: 700; }
.md-nav__link { margin-top: .55em; }
.md-nav__title { font-size: .8rem; }

/* Home page: the support strip. */
.md-typeset section.help { background: var(--pdros-cream); border: 1px solid #f1d9c2; border-radius: 12px; padding: 1.2rem 1.4rem 1.1rem; margin: 1.2rem 0 2rem; }
.md-typeset section.help h2 { margin-top: 0; }
.help-chat { margin: 0 0 1rem; }
.help-chat chat-widget { display: block; }
.md-typeset p.help-note { font-size: .9em; color: #3d4047; }
.md-typeset p.help-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: .4rem 0 0; }
.md-typeset a.btn { display: inline-block; background: var(--pdros-orange); color: #fff !important; font-weight: 700; text-decoration: none;
  padding: .75rem 1.6rem; border-radius: 6px; font-size: .95em; min-width: 11rem; text-align: center; }
.md-typeset a.btn:hover { background: #e2873a; }
.md-typeset a.btn.btn-2 { background: #fff; color: #c4681a !important; border: 2px solid var(--pdros-orange); }

/* Home page: the nine-first list as numbered cards. */
.md-typeset ol.nine { list-style: none; margin: 0; padding: 0; counter-reset: nine; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.md-typeset ol.nine li { counter-increment: nine; margin: 0; background: #fff; border: 1px solid var(--pdros-line); border-radius: 10px; padding: .8rem .9rem .8rem 3rem; position: relative; min-height: 3.6rem; display: flex; align-items: flex-start; }
.md-typeset ol.nine li::before { content: counter(nine); position: absolute; left: .8rem; top: .75rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: #1a56c4; color: #fff; font-weight: 700; font-size: .85em; display: flex; align-items: center; justify-content: center; }
.md-typeset ol.nine li a { text-decoration: none; font-weight: 600; }
.md-typeset ol.nine li a:hover { text-decoration: underline; }

/* The line under every article. */
.page-help { font-size: .82rem; color: #555a63; border-top: 1px solid var(--pdros-line); margin-top: 2.5rem; padding-top: 1rem; }

/* Phone width. */
@media screen and (max-width: 44.9375em) {
  .md-typeset { font-size: .9rem; }
  .md-typeset h1 { font-size: 1.6em; }
  .md-typeset a.btn { width: 100%; }
}

/* Home page: the phone box with the QR square. */
.md-typeset .phone-box { display: flex; gap: 1.2rem; align-items: center; border: 1px solid var(--pdros-line); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; background: #fff; }
.md-typeset .phone-box img { flex: 0 0 auto; width: 132px; height: 132px; image-rendering: pixelated; }
.md-typeset .phone-box > div p:last-child { margin-bottom: 0; }
@media screen and (max-width: 44.9375em) { .md-typeset .phone-box { flex-direction: column; align-items: flex-start; } }
