/* Plogbook Documentation
   Layered on top of Bootstrap 5. The palette is lifted from the app itself:
   --bs-primary #071E55 and the --pc-* greys come from Plogbook's
   public/application/css/style-preset.css, so the docs and the product read as
   one system. */

:root {
  --pb-navy:            #071E55;
  --pb-navy-800:        #0b2a6f;
  --pb-navy-rgb:        7, 30, 85;
  --pb-heading:         #1d2630;
  --pb-body:            #5b6b79;
  --pb-muted:           #8996a4;
  --pb-line:            #dbe0e5;
  --pb-line-soft:       #eef1f4;
  --pb-surface:         #ffffff;
  --pb-surface-sunk:    #f8fafb;
  --pb-active:          #f3f5f7;

  --pb-members:         #0d6efd;
  --pb-instructors:     #2ca87f;
  --pb-admins:          #e58a00;

  --pb-radius:          10px;
  --pb-radius-lg:       14px;
  --pb-sidebar-w:       270px;
  --pb-toc-w:           210px;

  --pb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --pb-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas,
             monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--pb-font);
  color: var(--pb-body);
  background: var(--pb-surface);
  font-size: 0.975rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .pb-h { color: var(--pb-heading); font-weight: 600; letter-spacing: -0.015em; }

a { color: var(--pb-navy); text-decoration-color: rgba(var(--pb-navy-rgb), 0.28); text-underline-offset: 2px; }
a:hover { color: #0a2a75; }

/* ---------------------------------------------------------------- masthead */

.pb-masthead {
  background: var(--pb-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pb-masthead a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.pb-masthead a:hover { color: #fff; }

.pb-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.05rem; color: #fff !important; }
.pb-brand__logo { height: 27px; width: auto; display: block; }
/* No icon-only logo on the CDN, so phones crop the wordmark to its cloud mark
   (the first ~225px of the 1073px-wide image). The full wordmark pushes the
   header past a 390px screen. */
@media (max-width: 575.98px) {
  .pb-brand__logo { width: 36px; object-fit: cover; object-position: left center; }
}
.pb-brand__sub {
  font-weight: 400; color: rgba(255, 255, 255, 0.55);
  padding-left: 0.6rem; border-left: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 1.1;
}

.pb-masthead__nav { display: flex; gap: 1.5rem; align-items: center; font-size: 0.9rem; }
.pb-masthead__nav .active { color: #fff; font-weight: 500; }

/* ------------------------------------------------------------------ layout */

.pb-shell { display: grid; grid-template-columns: var(--pb-sidebar-w) minmax(0, 1fr); gap: 0; align-items: start; }
.pb-shell--with-toc { grid-template-columns: var(--pb-sidebar-w) minmax(0, 1fr) var(--pb-toc-w); }

.pb-sidebar {
  position: sticky; top: 61px; align-self: start;
  height: calc(100vh - 61px); overflow-y: auto;
  border-right: 1px solid var(--pb-line-soft);
  padding: 1.75rem 1.25rem 3rem;
  background: var(--pb-surface-sunk);
}
.pb-main { padding: 2.25rem 2.75rem 5rem; min-width: 0; }
.pb-toc {
  position: sticky; top: 61px; align-self: start;
  max-height: calc(100vh - 61px); overflow-y: auto;
  padding: 2.25rem 1.25rem 3rem 0.5rem; font-size: 0.85rem;
}

/* ------------------------------------------------------------- sidebar nav */

.pb-nav__caption {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--pb-muted); font-weight: 600; margin: 1.6rem 0 0.5rem 0.65rem;
}
.pb-nav__caption:first-child { margin-top: 0; }

.pb-nav__link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.42rem 0.65rem; border-radius: 8px;
  color: var(--pb-body); text-decoration: none; font-size: 0.9rem;
  border-left: 2px solid transparent;
}
.pb-nav__link:hover { background: var(--pb-active); color: var(--pb-heading); }
.pb-nav__link.is-current {
  background: #fff; color: var(--pb-navy); font-weight: 600;
  box-shadow: 0 1px 2px rgba(29, 38, 48, 0.06);
  border-left-color: var(--pb-navy);
}
.pb-nav__link i { font-size: 1rem; color: var(--pb-muted); }
.pb-nav__link.is-current i { color: var(--pb-navy); }

/* -------------------------------------------------------- audience badging */

.pb-aud {
  display: inline-flex; align-items: center; gap: 0.32rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.16rem 0.5rem; border-radius: 999px; text-decoration: none;
  border: 1px solid currentColor; background: #fff;
}
.pb-aud--members     { color: var(--pb-members); }
.pb-aud--instructors { color: var(--pb-instructors); }
.pb-aud--admins      { color: var(--pb-admins); }
.pb-aud:hover { filter: brightness(0.9); }
.pb-aud__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------------------ article body */

.pb-article { max-width: 46rem; }
.pb-article__kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pb-muted); }
.pb-article h1 { font-size: 2.05rem; margin: 0.35rem 0 0.6rem; }
.pb-article__lede { font-size: 1.1rem; line-height: 1.6; color: var(--pb-body); }
.pb-article__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1rem; }

.pb-prose h2 {
  font-size: 1.35rem; margin: 2.75rem 0 0.85rem;
  padding-top: 1.5rem; border-top: 1px solid var(--pb-line-soft);
}
.pb-prose h3 { font-size: 1.08rem; margin: 1.9rem 0 0.6rem; }
.pb-prose p  { margin-bottom: 1rem; }
.pb-prose ul, .pb-prose ol { margin-bottom: 1rem; padding-left: 1.2rem; }
.pb-prose li { margin-bottom: 0.4rem; }
.pb-prose li::marker { color: var(--pb-muted); }
.pb-prose strong { color: var(--pb-heading); font-weight: 600; }

.pb-prose code {
  font-family: var(--pb-mono); font-size: 0.855em;
  background: var(--pb-active); color: #1f3d7a;
  padding: 0.12em 0.36em; border-radius: 5px;
}

/* A control the reader has to find on screen — a button, a tab, a menu item. */
.pb-ui {
  font-weight: 600; color: var(--pb-heading);
  background: var(--pb-active); border: 1px solid var(--pb-line);
  padding: 0.05em 0.4em; border-radius: 6px; font-size: 0.88em;
  white-space: nowrap;
}

.pb-prose table { width: 100%; margin-bottom: 1.25rem; font-size: 0.9rem; border-collapse: separate; border-spacing: 0; }
.pb-prose thead th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--pb-muted); font-weight: 600;
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--pb-line);
}
.pb-prose tbody td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--pb-line-soft); vertical-align: top; }
.pb-prose tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------- callouts */

.pb-note {
  display: flex; gap: 0.85rem; padding: 0.95rem 1.1rem; margin: 1.5rem 0;
  border-radius: var(--pb-radius); border: 1px solid var(--pb-line);
  border-left: 3px solid var(--pb-navy); background: var(--pb-surface-sunk);
  font-size: 0.925rem;
}
.pb-note > i { font-size: 1.05rem; color: var(--pb-navy); margin-top: 0.1rem; }
.pb-note p:last-child { margin-bottom: 0; }
.pb-note__title { font-weight: 600; color: var(--pb-heading); display: block; margin-bottom: 0.15rem; }
.pb-note--warn { border-left-color: #dc3545; background: #fdf7f7; }
.pb-note--warn > i { color: #dc3545; }
.pb-note--tip  { border-left-color: var(--pb-instructors); background: #f5fbf9; }
.pb-note--tip  > i { color: var(--pb-instructors); }
.pb-note--admin { border-left-color: var(--pb-admins); background: #fffaf2; }
.pb-note--admin > i { color: var(--pb-admins); }

/* ------------------------------------------------------------- screenshots */

.pb-shot { margin: 1.75rem 0; }
.pb-shot img { width: 100%; border-radius: var(--pb-radius); border: 1px solid var(--pb-line); display: block; }
.pb-shot figcaption { font-size: 0.83rem; color: var(--pb-muted); margin-top: 0.55rem; }

/* Placeholder for a screenshot that has not been captured yet. Deliberately
   loud: it should be obvious in review that the slot is still empty. */
.pb-shot--pending .pb-shot__frame {
  border: 1.5px dashed #b9c4cf; border-radius: var(--pb-radius);
  background:
    repeating-linear-gradient(45deg, #fbfcfd 0 10px, #f4f7f9 10px 20px);
  padding: 2rem 1.5rem; text-align: center;
}
.pb-shot__badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9a6b00; background: #fff5e0; border: 1px solid #f0d9a8;
  padding: 0.18rem 0.55rem; border-radius: 999px;
}
.pb-shot__brief { margin: 0.75rem auto 0; max-width: 32rem; font-size: 0.9rem; color: var(--pb-body); }
.pb-shot__spec {
  margin-top: 0.7rem; font-family: var(--pb-mono); font-size: 0.76rem;
  color: var(--pb-muted); text-align: left; display: inline-block;
  background: #fff; border: 1px solid var(--pb-line-soft); border-radius: 8px;
  padding: 0.5rem 0.75rem; white-space: pre-line;
}

/* ------------------------------------------------------------- step lists */

.pb-steps { list-style: none; counter-reset: pb-step; padding-left: 0; margin: 1.4rem 0; }
.pb-steps > li { counter-increment: pb-step; position: relative; padding-left: 2.35rem; margin-bottom: 1.05rem; }
.pb-steps > li::before {
  content: counter(pb-step);
  position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--pb-navy); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  display: grid; place-items: center;
}

/* ------------------------------------------------------------- card grids */

.pb-cards { display: grid; gap: 1rem; }
.pb-cards--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.pb-card {
  display: block; text-decoration: none; background: #fff;
  border: 1px solid var(--pb-line); border-radius: var(--pb-radius-lg);
  padding: 1.15rem 1.25rem; height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pb-card:hover { border-color: #c2cdd8; box-shadow: 0 6px 18px rgba(29, 38, 48, 0.07); transform: translateY(-1px); }
.pb-card__title { color: var(--pb-heading); font-weight: 600; font-size: 1rem; margin-bottom: 0.3rem; }
.pb-card__desc { font-size: 0.875rem; color: var(--pb-body); margin-bottom: 0.75rem; }

/* ------------------------------------------------------------------- hero */

.pb-hero { background: var(--pb-navy); color: #fff; padding: 3.75rem 0 3.25rem; position: relative; overflow: hidden; }
.pb-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 300px at 78% -10%, rgba(13, 110, 253, 0.35), transparent 70%);
  pointer-events: none;
}
.pb-hero > * { position: relative; z-index: 1; }
.pb-hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.6rem; }
.pb-hero p { color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; max-width: 34rem; margin-bottom: 0; }

.pb-areacard {
  display: block; text-decoration: none; border-radius: var(--pb-radius-lg);
  background: #fff; border: 1px solid var(--pb-line); padding: 1.5rem;
  height: 100%; border-top: 3px solid var(--pb-area, var(--pb-navy));
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.pb-areacard:hover { box-shadow: 0 10px 26px rgba(29, 38, 48, 0.09); transform: translateY(-2px); }
.pb-areacard__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--pb-area) 12%, #fff);
  color: var(--pb-area); font-size: 1.3rem; margin-bottom: 0.9rem;
}
.pb-areacard__title { color: var(--pb-heading); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.25rem; }
.pb-areacard__count { font-size: 0.78rem; color: var(--pb-muted); }

/* -------------------------------------------------------------------- toc */

.pb-toc__caption { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--pb-muted); font-weight: 600; margin-bottom: 0.6rem; }
.pb-toc a { display: block; padding: 0.22rem 0 0.22rem 0.7rem; color: var(--pb-body); text-decoration: none; border-left: 2px solid var(--pb-line-soft); }
.pb-toc a:hover { color: var(--pb-navy); border-left-color: #b9c4cf; }
.pb-toc a.is-active { color: var(--pb-navy); font-weight: 600; border-left-color: var(--pb-navy); }
.pb-toc a.pb-toc--h3 { padding-left: 1.4rem; font-size: 0.82rem; }

/* ----------------------------------------------------------------- footer */

.pb-footer { border-top: 1px solid var(--pb-line-soft); background: var(--pb-surface-sunk); padding: 2rem 0; font-size: 0.86rem; color: var(--pb-muted); }
.pb-footer a { color: var(--pb-body); text-decoration: none; }
.pb-footer a:hover { color: var(--pb-navy); }

/* ------------------------------------------------------------ pager / misc */

.pb-pager { display: flex; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--pb-line-soft); }
.pb-pager a { flex: 1; text-decoration: none; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 0.8rem 1rem; }
.pb-pager a:hover { border-color: #c2cdd8; background: var(--pb-surface-sunk); }
.pb-pager__dir { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--pb-muted); }
.pb-pager__title { color: var(--pb-heading); font-weight: 600; font-size: 0.93rem; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1200px) {
  .pb-shell--with-toc { grid-template-columns: var(--pb-sidebar-w) minmax(0, 1fr); }
  .pb-toc { display: none; }
}

@media (max-width: 991.98px) {
  .pb-shell, .pb-shell--with-toc { grid-template-columns: minmax(0, 1fr); }
  .pb-sidebar {
    position: static; height: auto; border-right: 0;
    border-bottom: 1px solid var(--pb-line-soft); padding: 1rem;
  }
  .pb-main { padding: 1.5rem 1rem 3rem; }
  .pb-masthead__nav { gap: 1rem; font-size: 0.85rem; }
  .pb-hero { padding: 2.5rem 0 2.25rem; }
  .pb-hero h1 { font-size: 1.8rem; }
  .pb-pager { flex-direction: column; }
}

/* ------------------------------------------------------- plan-gated features */

/* A feature that is not on every subscription. Deliberately distinct from the
   callouts: this is not advice, it is "you may not have this at all". */
.pb-feat {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.85rem 1.1rem; margin: 1.5rem 0;
  border: 1px solid #e3d5f2; border-left: 3px solid #7048b6;
  border-radius: var(--pb-radius); background: #faf7fe;
  font-size: 0.9rem;
}
.pb-feat > i { color: #7048b6; font-size: 1.05rem; margin-top: 0.1rem; }
.pb-feat__title { display: block; font-weight: 600; color: #4c2f80; margin-bottom: 0.15rem; }
.pb-feat strong { color: #4c2f80; }

.pb-feat--inline {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin: 0; padding: 0.14rem 0.5rem; border-radius: 999px;
  border: 1px solid #ddcdf0; border-left-width: 1px; background: #faf7fe;
  color: #5a3a94; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap;
}
.pb-feat--inline > i { font-size: 0.85em; margin: 0; color: #7048b6; }

/* The same badges once account.js knows the reader's club. */
.pb-feat--on { border-color: #cde9dc; border-left-color: var(--pb-instructors); background: #f3fbf7; }
.pb-feat--on > i, .pb-feat--on .pb-feat__title, .pb-feat--on strong { color: #1d7a58; }
.pb-feat--inline.pb-feat--on { border-left-width: 1px; color: #1d7a58; }
.pb-feat--inline.pb-feat--on > i { color: var(--pb-instructors); }

/* Masthead account slot: Sign in, or the reader's club and switcher. */
.pb-account { display: flex; align-items: center; gap: 0.45rem; }
.pb-account[hidden] { display: none; }
.pb-account__club, .pb-account__signin { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.pb-account__name { color: rgba(255, 255, 255, 0.78); }
.pb-account__select {
  max-width: 13rem; padding: 0.2rem 1.6rem 0.2rem 0.55rem; font-size: 0.85rem;
  color: #fff; background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 6px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 0.45rem center; background-size: 10px 8px;
}
.pb-account__select option { color: var(--pb-heading); background: #fff; }

/* Your club page. */
.pb-club { max-width: 980px; }
.pb-club__h { font-size: 1.1rem; margin-bottom: 0.9rem; }
.pb-club__label { font-size: 0.82rem; color: var(--pb-muted); }
.pb-club__switch { display: flex; align-items: center; gap: 0.6rem; max-width: 22rem; }
.pb-club__roles { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.pb-club__tag {
  font-size: 0.72rem; font-weight: 600; padding: 0.12rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--pb-line); color: var(--pb-body);
}
.pb-club__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 1.5rem;
}
.pb-club__list[hidden] { display: none; }
.pb-club__row { display: flex; gap: 0.65rem; padding: 0.6rem 0; border-bottom: 1px solid var(--pb-line-soft); }
.pb-club__icon { font-size: 1.05rem; color: #7048b6; margin-top: 0.1rem; }
.pb-club__row.is-on .pb-club__icon { color: var(--pb-instructors); }
.pb-club__row.is-off .pb-club__icon { color: var(--pb-muted); }
.pb-club__name { font-weight: 500; color: var(--pb-heading); font-size: 0.92rem; }
.pb-club__row.is-off .pb-club__name { color: var(--pb-body); }
.pb-club__articles { font-size: 0.82rem; margin-top: 0.1rem; }
.pb-club__open { color: inherit; text-decoration: underline; }

/* Definition-style rows, for settings references. */
.pb-defs { margin: 1.4rem 0; }
.pb-defs__row { padding: 0.8rem 0; border-bottom: 1px solid var(--pb-line-soft); }
.pb-defs__row:last-child { border-bottom: 0; }
.pb-defs__term { font-weight: 600; color: var(--pb-heading); font-size: 0.93rem; }
.pb-defs__desc { font-size: 0.9rem; margin-top: 0.15rem; }

/* Role capability matrix. */
.pb-who { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 1.2rem 0; align-items: center; }
.pb-who__label { font-size: 0.78rem; color: var(--pb-muted); }

/* ----------------------------------------------------------------- search */

.pb-search { position: relative; flex: 0 1 300px; }
.pb-search__input {
  width: 100%; height: 34px; padding: 0 2rem 0 2.1rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px; color: #fff; font-size: 0.86rem; font-family: inherit;
}
.pb-search__input::placeholder { color: rgba(255, 255, 255, 0.45); }
.pb-search__input:focus {
  outline: none; background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}
.pb-search__icon {
  position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45); font-size: 0.95rem; pointer-events: none;
}
.pb-search__key {
  position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
  font-size: 0.68rem; color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px;
  padding: 0.05rem 0.3rem; pointer-events: none;
}
.pb-search__input:focus ~ .pb-search__key { display: none; }

.pb-results {
  position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
  background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-radius);
  box-shadow: 0 12px 34px rgba(29, 38, 48, 0.18);
  max-height: 68vh; overflow-y: auto; z-index: 1040; padding: 0.4rem;
  display: none;
}
.pb-results.is-open { display: block; }
.pb-results__empty { padding: 1.1rem; color: var(--pb-muted); font-size: 0.86rem; text-align: center; }

.pb-hit { display: block; padding: 0.55rem 0.65rem; border-radius: 8px; text-decoration: none; }
.pb-hit:hover, .pb-hit.is-active { background: var(--pb-active); }
.pb-hit__title { color: var(--pb-heading); font-weight: 600; font-size: 0.9rem; }
.pb-hit__section { font-size: 0.7rem; color: var(--pb-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pb-hit__snippet { font-size: 0.82rem; color: var(--pb-body); margin-top: 0.15rem; }
.pb-hit__snippet mark { background: #fff2c2; color: inherit; padding: 0 1px; border-radius: 2px; }

@media (max-width: 991.98px) {
  .pb-search { flex-basis: 150px; }
  .pb-search__key { display: none; }
  .pb-results { position: fixed; left: 0.75rem; right: 0.75rem; top: 62px; }
}

/* ------------------------------------------------------------ accessibility */

.pb-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1100;
  background: #fff; color: var(--pb-navy); font-weight: 600;
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.pb-skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--pb-members); outline-offset: 2px; border-radius: 4px; }
.pb-masthead :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pb-card, .pb-areacard { transition: none; }
  .pb-card:hover, .pb-areacard:hover { transform: none; }
}

/* -------------------------------------------------------------------- print */

@media print {
  .pb-masthead, .pb-sidebar, .pb-toc, .pb-footer, .pb-pager, .pb-search, .pb-skip { display: none !important; }

  .pb-shell, .pb-shell--with-toc { display: block; }
  .pb-main { padding: 0; }
  .pb-article { max-width: none; }

  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }

  /* An unexplained link is useless on paper — print the destination. */
  .pb-prose a[href^="/"]::after { content: " (plogbook docs" attr(href) ")"; font-size: 0.85em; color: #444; }
  .pb-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }

  .pb-prose h2, .pb-prose h3 { break-after: avoid; }
  .pb-note, .pb-feat, .pb-shot, table, .pb-defs__row { break-inside: avoid; }

  .pb-note, .pb-feat { border: 1px solid #999; background: #fff !important; }
  .pb-shot--pending .pb-shot__frame { border: 1px dashed #999; background: #fff; }
  .pb-shot img { max-height: 10cm; object-fit: contain; }
}
