/* ============================================================
   pbb.sh-style system: content lives on a white rounded card
   floating over a soft lavender page. System sans, compact 14px,
   violet accents, org chips with real logos, date-pill news.
   ============================================================ */

/* handwritten-kai face for the CJK name — LXGW WenKai TC, because the name
   is Traditional Chinese and pbb.sh's Ma Shan Zheng only covers Simplified
   (邱 rendered, 偉/誠 fell back to system sans — mixed faces) */
@import url("https://fonts.googleapis.com/css2?family=LXGW+WenKai+TC&display=swap");

:root {
  --pb-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --md-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    "PingFang TC", "Microsoft JhengHei", sans-serif;
  --md-code-font: var(--pb-mono);
}

/* ---------- light ---------- */
[data-md-color-scheme="default"] {
  --pb-page: #f3f1f8;
  --pb-card: #ffffff;
  --pb-ink: #2e2b3a;
  --pb-muted: #77738c;
  --pb-link: #7c5cd6;
  --pb-title: #4956b8;
  --pb-line: #e9e6f2;
  --pb-chip-bg: #eeebf6;
  --pb-shadow: 0 1px 2px rgba(46, 43, 58, 0.04), 0 16px 48px -20px rgba(46, 43, 58, 0.16);

  --md-default-bg-color: var(--pb-page);
  --md-default-fg-color: var(--pb-ink);
  --md-default-fg-color--light: var(--pb-muted);
  --md-default-fg-color--lighter: rgba(46, 43, 58, 0.32);
  --md-default-fg-color--lightest: rgba(46, 43, 58, 0.07);
  --md-typeset-color: var(--pb-ink);
  --md-typeset-a-color: var(--pb-link);
  --md-accent-fg-color: var(--pb-title);
  --md-primary-fg-color: var(--pb-page);
  --md-primary-fg-color--light: var(--pb-chip-bg);
  --md-primary-fg-color--dark: var(--pb-page);
  --md-primary-bg-color: var(--pb-ink);
  --md-primary-bg-color--light: var(--pb-muted);
  --md-code-bg-color: #f4f2f9;
  --md-code-fg-color: #5a4a8a;
  --md-typeset-table-color: var(--pb-line);
  --md-footer-bg-color: transparent;
  --md-footer-bg-color--dark: transparent;
  --md-footer-fg-color: var(--pb-muted);
  --md-footer-fg-color--light: var(--pb-muted);
  --md-footer-fg-color--lighter: var(--pb-muted);
}

/* ---------- dark ---------- */
[data-md-color-scheme="slate"] {
  --pb-page: #15131c;
  --pb-card: #1e1b28;
  --pb-ink: #dcd9e8;
  --pb-muted: #948fa8;
  --pb-link: #a78ff0;
  --pb-title: #8f9ce8;
  --pb-line: #322e42;
  --pb-chip-bg: #2a2638;
  --pb-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 16px 48px -20px rgba(0, 0, 0, 0.5);

  --md-default-bg-color: var(--pb-page);
  --md-default-fg-color: var(--pb-ink);
  --md-default-fg-color--light: var(--pb-muted);
  --md-default-fg-color--lighter: rgba(220, 217, 232, 0.32);
  --md-default-fg-color--lightest: rgba(220, 217, 232, 0.08);
  --md-typeset-color: var(--pb-ink);
  --md-typeset-a-color: var(--pb-link);
  --md-accent-fg-color: var(--pb-link);
  --md-primary-fg-color: var(--pb-page);
  --md-primary-fg-color--light: var(--pb-chip-bg);
  --md-primary-fg-color--dark: var(--pb-page);
  --md-primary-bg-color: var(--pb-ink);
  --md-primary-bg-color--light: var(--pb-muted);
  --md-code-bg-color: #262234;
  --md-code-fg-color: #c9bcf2;
  --md-typeset-table-color: var(--pb-line);
  --md-footer-bg-color: transparent;
  --md-footer-bg-color--dark: transparent;
  --md-footer-fg-color: var(--pb-muted);
  --md-footer-fg-color--light: var(--pb-muted);
  --md-footer-fg-color--lighter: var(--pb-muted);
}

/* ---------- chrome: header, tabs, search, footer ---------- */
/* pbb.sh has nothing above the card except a tiny theme button; the
   Material header (title/search/palette UI) is hidden entirely — its
   palette inputs stay in the DOM and .pb-theme-btn drives them */
.md-header { display: none !important; }
.pb-theme-btn {
  position: fixed;
  top: 0.55rem;
  right: 0.8rem;
  z-index: 60;
  border: none;
  background: transparent;
  padding: 0.3rem;
  border-radius: 50%;
  color: var(--pb-muted);
  cursor: pointer;
  line-height: 0;
}
.pb-theme-btn:hover { background: var(--pb-chip-bg); color: var(--pb-ink); }
.pb-theme-btn .twemoji { width: 1rem; height: 1rem; }
[data-md-color-scheme="default"] .pb-theme-moon { display: none; }
[data-md-color-scheme="slate"] .pb-theme-sun { display: none; }
/* pbb.sh has no full-width tab bar under the header — nav pills live
   inside the content pane's title row (.pb-nav-row) instead */
.md-tabs { display: none; }

/* pbb page-nav-row: title left, pills right, one sticky row that stays
   below the site header while the page scrolls */
.pb-nav-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.6rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--pb-card);
  padding: 0.35rem 0 0.45rem;
  margin-bottom: 0.6rem;
}
/* the anchor is the flex child, so it carries the no-shrink — without it
   the title breaks mid-word ("Abo/ut") once the pills fill the row */
.pb-nav-row .pb-page-title-link,
.pb-nav-row .pb-page-title { flex: 0 0 auto; }
/* it's an h1 inside .md-typeset, so it inherits the size and the
   gradient ::after bar; only the flow margins need resetting here */
.md-typeset .pb-nav-row .pb-page-title { margin: 0; }
.md-typeset .pb-page-title-link,
.md-typeset .pb-page-title-link:hover { color: inherit; text-decoration: none !important; }
.pb-nav-tabs {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
  /* min-width: 0 lets overflow-x actually engage inside the flex row —
     without it the pills' min-content width propagates up and stretches
     the whole card past the viewport on phones */
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pb-nav-tabs::-webkit-scrollbar { display: none; }
.pb-nav-link {
  padding: 0.26rem 0.48rem;
  border-radius: 14px;
  font-size: 0.62rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--pb-muted);
  transition: background 0.2s, color 0.2s;
}
.pb-nav-link:hover { background: var(--pb-chip-bg); color: var(--pb-ink); text-decoration: none !important; }
.pb-nav-link.active { background: var(--pb-chip-bg); color: var(--pb-link); }

/* the row renders the title, so hide the markdown h1 duplicate
   (every page has exactly one content h1) */
.pb-main h1:not(.pb-page-title) { display: none; }

/* pbb-style switching via native cross-document view transitions:
   the clicked nav pill (given the pb-title name by pb-filter.js at
   click time) morphs into the next page's big title, the sidebar and
   tab row keep their own stable snapshots, and the rest crossfades.
   Browsers without the API just do a normal fast navigation. */
@view-transition { navigation: auto; }
.pb-page-title { view-transition-name: pb-title; }
.pb-side { view-transition-name: pb-side; }
.pb-nav-tabs { view-transition-name: pb-tabs; }
::view-transition-group(pb-title) {
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
}
::view-transition-old(pb-title),
::view-transition-new(pb-title) { animation-duration: 0.18s; }
::view-transition-old(pb-side),
::view-transition-new(pb-side),
::view-transition-old(pb-tabs),
::view-transition-new(pb-tabs) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
.md-search__form, .md-search__form:hover { background: var(--pb-chip-bg); }
.md-search__input::placeholder { color: var(--pb-muted); }
.md-footer { border-top: none; }
.md-footer-meta { background: transparent; }
.md-copyright { font-size: 0.58rem; }

/* every page's content sits on the card; nav lives in the top tabs,
   so the primary sidebar only steals width — drop it site-wide */
.md-sidebar--primary { display: none; }
.md-grid { max-width: 64rem; }
.md-content__inner {
  background: var(--pb-card);
  border-radius: 20px;
  padding: 1.7rem 2.4rem 2.2rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--pb-shadow);
}
.md-content__inner:before { display: none; }
@media (max-width: 48em) {
  .md-content__inner { padding: 1rem 1rem 1.4rem; border-radius: 14px; }
}

/* pbb.sh has no right-rail ToC — drop it site-wide (important beats
   Material's wide-screen :not([hidden]) rule) */
.md-sidebar--secondary { display: none !important; }

/* ---------- typography ---------- */
.md-typeset { font-size: 0.74rem; line-height: 1.78; }
.md-typeset h1 { font-size: 1.55rem; font-weight: 600; color: var(--pb-ink); margin-bottom: 1em; }
.md-typeset h2 { font-size: 0.95rem; font-weight: 700; color: var(--pb-ink); margin: 1.6em 0 0.7em; }
.md-typeset h3 { font-size: 0.8rem; font-weight: 700; margin: 1.2em 0 0.3em; }
.md-typeset h1::after,
.md-typeset h2::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.28rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pb-link) 0 55%, #58a6de 55% 100%);
}
.md-typeset a { text-decoration: none; font-weight: 500; }
.md-typeset a:hover { text-decoration: underline; text-underline-offset: 3px; }
.md-typeset p > em:only-child { color: var(--pb-muted); font-size: 0.9em; }

.md-typeset .admonition, .md-typeset details {
  background: var(--pb-chip-bg);
  border: 1px solid var(--pb-line);
  box-shadow: none;
  border-radius: 10px;
  font-size: 0.62rem;
}
.md-typeset .admonition-title { background: transparent !important; }
.md-typeset table:not([class]) {
  border: 1px solid var(--pb-line);
  border-radius: 10px;
  font-size: 0.66rem;
}
.md-typeset table:not([class]) th {
  background: var(--pb-chip-bg);
  color: var(--pb-muted);
  font-weight: 600;
}
.md-typeset .md-button, .md-typeset .md-button--primary {
  background: var(--pb-title);
  color: var(--pb-card);
  border: none;
  border-radius: 8px;
  font-weight: 600;
}
.md-typeset .md-button:hover, .md-typeset .md-button--primary:hover {
  background: var(--pb-link);
  color: #fff;
}

/* ============================================================
   Global profile sidebar + content pane (rendered from
   overrides/main.html on every page, pbb.sh-style)
   ============================================================ */

.pb-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}
@media (max-width: 56em) {
  /* minmax(0,1fr), not 1fr: plain 1fr respects min-content, so any wide
     child (nav row, tables) would blow the column past the phone viewport */
  .pb-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
}

/* sidebar */
.pb-side { text-align: center; position: sticky; top: 4rem; }
@media (max-width: 56em) { .pb-side { position: static; } }
.pb-side img.pb-avatar {
  width: 168px;
  border-radius: 26%;
  display: block;
  margin: 0.4rem auto 0;
}
.pb-name {
  font-size: 1.3rem;
  font-weight: 200;
  letter-spacing: 2px;
  margin: 0.9rem 0 0.1rem;
  color: var(--pb-ink);
}
.pb-name b { font-weight: 600; letter-spacing: 0; }
.pb-cjk {
  color: var(--pb-ink);
  font-family: "LXGW WenKai TC", cursive;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem;
  text-indent: 0.08em;
}
.pb-icons { display: flex; justify-content: center; gap: 0.75em; margin: 0 0 0.4rem; }
.pb-icons a { color: var(--pb-ink); opacity: 0.75; }
.pb-icons a:hover { color: var(--pb-link); opacity: 1; text-decoration: none; }
.pb-icons .twemoji { width: 1.05em; height: 1.05em; }
.pb-loc { color: var(--pb-muted); font-size: 0.62rem; margin: 0.5rem 0 0; }
.pb-quote {
  color: var(--pb-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.3px;
  margin: 1rem 0 0;
}
.pb-quote::before, .pb-quote::after {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 0;
  color: var(--pb-link);
  opacity: 0.6;
  font-style: normal;
  vertical-align: -0.25em;
}
.pb-quote::before { content: "\201C\2002"; }
.pb-quote::after { content: "\2002\201D"; }

/* org chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  padding: 0 0.45em;
  border-radius: 0.45em;
  background: var(--pb-chip-bg);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: baseline;
}
.chip img { width: 0.95em; height: 0.95em; border-radius: 2px; margin: 0 !important; }
.chip-teal { color: #0e8a8d; }
.chip-navy { color: #44566c; }
.chip-blue { color: #3268b0; }
.chip-red { color: #c04b3d; }
.chip-orange { color: #d1531f; }
.chip-green { color: #57810a; }
.chip-purple { color: #7d5bd0; }
[data-md-color-scheme="slate"] .chip-teal { color: #4cc4c7; }
[data-md-color-scheme="slate"] .chip-navy { color: #9db4cc; }
[data-md-color-scheme="slate"] .chip-blue { color: #7fb0e8; }
[data-md-color-scheme="slate"] .chip-red { color: #ef8d80; }
[data-md-color-scheme="slate"] .chip-orange { color: #f0956a; }
[data-md-color-scheme="slate"] .chip-green { color: #a8cf5a; }
[data-md-color-scheme="slate"] .chip-purple { color: #b49af0; }

/* news */
.pb-news {
  max-height: 15.5rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--pb-line) transparent;
}
.pb-news dl {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  column-gap: 0.9em;
  row-gap: 0.55em;
  margin: 0;
}
.pb-news dt {
  font-family: var(--pb-mono);
  font-size: 0.56rem;
  font-weight: 400;
  color: var(--pb-muted);
  background: var(--pb-chip-bg);
  border-radius: 0.4em;
  padding: 0.12em 0;
  text-align: center;
  height: fit-content;
  margin-top: 0.22em;
}
.pb-news dd { margin: 0; }

/* selected-work cards */
.pb-pub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 0.7rem 0;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.pb-pub:hover { box-shadow: 0 10px 30px -16px rgba(46, 43, 58, 0.3); border-color: var(--pb-link); }
.pb-pub-title { font-weight: 700; color: var(--pb-title); margin: 0 0 0.15rem; }
.pb-pub-title a { color: inherit; font-weight: inherit; }
.pb-pub-meta { color: var(--pb-muted); font-size: 0.62rem; margin: 0 0 0.3rem; }
.pb-pub-meta b { color: var(--pb-ink); font-weight: 600; }
.pb-pub img { width: 118px; border-radius: 8px; display: block; margin: 0 !important; }
@media (max-width: 40em) {
  .pb-pub { grid-template-columns: 1fr; }
  .pb-pub img { width: 100%; }
}
.pb-tag {
  display: inline-block;
  font-size: 0.54rem;
  font-weight: 600;
  border-radius: 0.4em;
  padding: 0.05em 0.55em;
  margin-right: 0.3em;
}
.pb-tag-green { background: #e8f5d8; color: #57810a; }
.pb-tag-red { background: #fdeae6; color: #c04b3d; }
.pb-tag-blue { background: #e3eefc; color: #3268b0; }
.pb-tag-purple { background: #ece5fb; color: #7d5bd0; }
[data-md-color-scheme="slate"] .pb-tag-green { background: #2c3a1a; color: #a8cf5a; }
[data-md-color-scheme="slate"] .pb-tag-red { background: #45231e; color: #ef8d80; }
[data-md-color-scheme="slate"] .pb-tag-blue { background: #1d2c44; color: #7fb0e8; }
[data-md-color-scheme="slate"] .pb-tag-purple { background: #2f2547; color: #b49af0; }

/* experiences: pbb.sh timeline — vertical rail on the left, 28px logo
   (or emoji) dots that punch through the line, compact title/org/date */
.pb-timeline { position: relative; }
.pb-timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--pb-line);
}
.md-typeset .pb-tl-item { display: flex; gap: 1rem; padding: 0.45rem 0; position: relative; }
.pb-tl-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: var(--pb-card);
  box-shadow: 0 0 0 4px var(--pb-card);
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
}
.pb-tl-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pb-tl-body { flex: 1; min-width: 0; margin-top: -2px; }
.md-typeset .pb-tl-body > p { margin: 0.5em 0; }
.md-typeset .pb-tl-body .pb-tl-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pb-ink);
  line-height: 1.35;
}
.md-typeset .pb-tl-body .pb-tl-org { margin: 0; font-size: 0.66rem; color: var(--pb-muted); }
.md-typeset .pb-tl-body .pb-tl-date { margin: 0 0 0.35em; font-size: 0.6rem; color: var(--pb-muted); opacity: 0.85; }
.md-typeset .pb-tl-body ul { margin: 0.4em 0; }

/* blog index: pbb.sh post-grid — responsive auto-fill cards, whole card
   clickable, title + colored tags + excerpt + mono date */
.pb-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.md-typeset a.pb-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  color: inherit;
  font-weight: 400;
  transition: box-shadow 0.2s, transform 0.2s;
}
.md-typeset a.pb-post-card:hover {
  text-decoration: none;
  box-shadow: var(--pb-shadow);
  transform: translateY(-2px);
}
.pb-post-card .pb-post-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pb-title);
  line-height: 1.4;
}
.pb-post-card .pb-post-tags { margin: 0; line-height: 1; }
.pb-post-card .pb-post-excerpt {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.55;
  color: var(--pb-muted);
}
.pb-post-card .pb-post-date {
  margin: 0.2rem 0 0;
  margin-top: auto;
  padding-top: 0.3rem;
  font-family: var(--pb-mono);
  font-size: 0.54rem;
  color: var(--pb-muted);
}

/* ---------- pbb-style interactive tag filters ---------- */
.pb-filters {
  position: relative;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  padding: 0.6rem 0.9rem 0.55rem;
  margin: 1rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45em;
}
.pb-filters::before {
  content: "Filters";
  position: absolute;
  top: -0.6em;
  left: 0.9rem;
  font-size: 0.56rem;
  color: var(--pb-muted);
  background: var(--pb-card);
  padding: 0 0.45em;
}
.pb-filters-label { font-size: 0.62rem; color: var(--pb-muted); margin-right: 0.2em; }
.pb-filters button {
  font: inherit;
  font-size: 0.56rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 0.5em;
  padding: 0.08em 0.65em;
  cursor: pointer;
  background: var(--pb-chip-bg);
  color: var(--pb-muted);
  transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.pb-filters button:hover { border-color: var(--pb-link); color: var(--pb-link); }
.pb-filters button.active { background: var(--pb-link); border-color: var(--pb-link); color: #fff; }
.pb-pub.pb-hidden { display: none; }

/* ============================================================
   Phone layout — pbb.sh's mobile treatment, measured off the
   live site: the tall centered sidebar collapses into a 129px
   horizontal profile strip (72x88 avatar left, name/socials/
   location right), a divider, then the page content — all in
   ONE card with a 6.4px gutter. Content starts around y=250
   instead of y=700, and the strip now renders on every page
   (pbb keeps its identity block everywhere).

   Must stay last in this file: it re-enables .pb-side on
   subpages, which an earlier rule of equal specificity hides.
   ============================================================ */
@media (max-width: 56em) {
  .md-grid { max-width: none; }
  .md-main__inner { margin-top: 0; }
  .md-content__inner {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    margin: 6.4px 6.4px 1rem;
  }
  .pb-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .pb-side,
  .pb-side:not(.pb-side--home) { display: grid; }
  .pb-side {
    position: static;
    text-align: left;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar social"
      "avatar loc";
    align-content: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pb-line);
  }
  .pb-side img.pb-avatar {
    grid-area: avatar;
    width: 72px;
    height: 88px;
    object-fit: cover;
    border-radius: 22px;
    margin: 0;
    align-self: center;
  }
  /* "Wei-Cheng Chiu 邱偉誠" on one line: the CJK name rides along as
     ::after so the grid keeps three clean rows, and nowrap guarantees
     it never breaks across lines the way a 22px name did */
  /* pbb's exact 20px/15px name pair from 390px up (iPhone 12-16, most
     Androids). "Wei-Cheng Chiu 邱偉誠" is longer than pbb's name, so
     below that it scales down just enough to clear the theme button
     instead of sliding underneath it. */
  .pb-name {
    grid-area: name;
    font-size: clamp(15px, 5.13vw, 20px);
    font-weight: 200;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin: 0;
    padding-right: 26px;
    white-space: nowrap;
  }
  .pb-name::after {
    content: "邱偉誠";
    font-family: "LXGW WenKai TC", cursive;
    font-size: clamp(11px, 3.85vw, 15px);
    font-weight: 400;
    margin-left: 5px;
  }
  .pb-cjk { display: none; }
  .pb-icons {
    grid-area: social;
    justify-content: flex-start;
    gap: 1em;
    margin: 5px 0 0;
  }
  .pb-icons .twemoji { width: 1.2em; height: 1.2em; }
  .pb-loc { grid-area: loc; margin: 5px 0 0; font-size: 12px; }
  .pb-quote { display: none; }
  /* pbb puts the theme toggle in the name row; absolute against the
     card beats fixed, so it scrolls away with the strip */
  .pb-theme-btn { position: absolute; top: 20px; right: 14px; }

  .pb-main { padding: 14px 20px 22px; }
  .pb-nav-row { background: var(--pb-card); padding-top: 2px; }

  /* pbb's phone type scale: 15px body, 22.4px page title, and pills
     with real touch padding instead of the 12px desktop chips */
  .md-typeset { font-size: 15px; line-height: 1.6; }
  .md-typeset .pb-page-title { font-size: 22.4px; }
  .md-typeset h2 { font-size: 18px; }
  .md-typeset h3 { font-size: 16px; }
  .pb-nav-link { font-size: 14px; padding: 6.4px 12.8px; border-radius: 16px; }
  .chip { font-size: 14px; }
}
/* very narrow legacy phones (~320px): the vw slope alone still collides */
@media (max-width: 21em) {
  .pb-name { font-size: 15px; }
  .pb-name::after { font-size: 11px; }
}
