/* site.css, {{BRAND}} child theme v0.4.12.
   Loads after tokens.css and components.css and carries everything that used
   to live in the Customizer "Additional CSS" box, plus the new author, search,
   404, policy-page and mobile-table styles. Colours come only from the tokens,
   so light and dark both work. Class names starting hp- belong to the page
   components (home, hubs, author, search, 404) and are scoped by .hp.
   Order: 1 bridge, 2 header, 3 hero bands, 4 article, 5 cards, 6 home,
   7 hubs, 8 author, 9 search and 404, 10 policy pages, 11 author box and
   related, 12 footer, 13 floating UI, 14 motion and print. */

/* ===== 1. Kadence bridge: the Kadence palette follows the theme tokens ===== */
html:root {
  --global-palette1: var(--color-primary);
  --global-palette2: var(--color-accent);
  --global-palette3: var(--color-text);
  --global-palette4: var(--color-text);
  --global-palette5: var(--color-muted);
  --global-palette6: var(--color-border);
  --global-palette7: var(--color-answer);
  --global-palette8: var(--color-canvas);
  --global-palette9: var(--color-surface);
  --global-palette10: var(--color-raised);
  --global-palette11: var(--color-success);
  --global-palette12: var(--color-focus);
  --global-palette13: var(--color-error);
  --global-palette14: var(--color-warning);
  --global-palette-btn-bg: var(--color-primary);
  --global-palette-btn-bg-hover: var(--color-primary-hover);
  --global-palette-btn: var(--color-on-primary);
  --global-palette-btn-hover: var(--color-on-primary);
  --global-palette-highlight: var(--color-link);
  --global-palette-highlight-alt: var(--color-link);
  --global-palette-highlight-alt2: var(--color-text);
  --global-body-bg: var(--color-canvas);
  --global-content-bg: var(--color-surface);
  --phrase-pad: clamp(1rem, 4vw, 2rem);
  --phrase-icon-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
  --phrase-icon-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}
body,
.content-bg,
.entry,
.site-header,
#masthead,
.site-footer { color: var(--color-text); }
html:root body a:where(:not([class*="button"]):not(.wp-block-button__link):not(.kb-btn)) { color: var(--color-link); }
html:root body :is(.main-navigation, .header-navigation, .mobile-navigation, .site-branding, .phrase-card, .wp-block-latest-posts__post-title, .site-title) a:not([class*="button"]) { color: var(--color-text); }
html:root body :is(.main-navigation, .header-navigation) a:is(:hover, :focus-visible),
html:root body :is(.main-navigation, .header-navigation) .current-menu-item > a { color: var(--color-primary); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ===== 2. Header, navigation, theme toggle ===== */
.site-header,
.site-main-header-wrap .site-header-row-container-inner,
#masthead { background: var(--color-surface); }
.site-header { border-bottom: 1px solid var(--color-border); }
:is(.site-header, .site-footer) .site-container,
:is(.content-container, .hero-container).site-container { padding-inline: var(--phrase-pad); }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-weight: 500; }
.site-branding .site-title { font-size: clamp(1.1rem, 4.8vw, 1.5rem); white-space: nowrap; }
.site-branding a.brand { align-items: center; display: inline-flex; min-block-size: var(--target-min, 2.75rem); }

html:root body :is(summary, .phrase-theme-toggle, .phrase-theme-toggle span) { color: var(--color-text); }
.phrase-theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 0.5rem;
  line-height: 1;
  padding: 0.35rem 0.95rem 0.35rem 0.75rem;
}
.phrase-theme-toggle:hover { border-color: var(--color-primary); }
/* Kadence paints every <button> on :hover, :focus and :active with a filled
   background. The toggle keeps a light tint in all three states so the label
   never lands on a fill of the same lightness. */
html:root body .phrase-theme-toggle:hover,
html:root body .phrase-theme-toggle:focus,
html:root body .phrase-theme-toggle:active { background: var(--color-answer); }
html:root body .phrase-theme-toggle:hover,
html:root body .phrase-theme-toggle:hover span { color: var(--color-primary); }
/* The icon is drawn with a CSS mask, so it survives the HTML filter that
   Kadence applies to header elements (which removes inline SVG). */
.phrase-theme-toggle::before {
  background-color: currentColor;
  block-size: 1.1rem;
  content: "";
  flex: none;
  inline-size: 1.1rem;
  -webkit-mask: var(--phrase-icon-moon) center / contain no-repeat;
  mask: var(--phrase-icon-moon) center / contain no-repeat;
}
html[data-scheme="dark"] .phrase-theme-toggle::before {
  -webkit-mask-image: var(--phrase-icon-sun);
  mask-image: var(--phrase-icon-sun);
}
.phrase-theme-toggle__light { display: none; }
html[data-scheme="dark"] .phrase-theme-toggle__dark { display: none; }
html[data-scheme="dark"] .phrase-theme-toggle__light { display: inline; }

/* ===== 3. Hero bands (articles and policy pages), breadcrumbs, facts ===== */
.single-post .entry-hero.post-hero-section,
.page .entry-hero.page-hero-section {
  background: var(--color-raised);
  background-image: radial-gradient(52rem 22rem at 92% -30%, var(--color-answer), transparent 72%);
  border-bottom: 1px solid var(--color-border);
}
.single-post .entry-hero.post-hero-section .hero-section-overlay,
.page .entry-hero.page-hero-section .hero-section-overlay { background: transparent; }
.entry-hero .entry-header { min-height: 0; padding-block: clamp(1.8rem, 4vw, 3rem); }
.entry-hero .entry-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  max-inline-size: 22ch;
  text-wrap: balance;
}
.single-post .entry-hero .entry-title { max-inline-size: 26ch; }
.entry-hero .entry-meta { color: var(--color-muted); font-size: 0.95rem; }
.entry-hero .entry-meta a { align-items: center; display: inline-flex; font-weight: 700; min-block-size: 1.75rem; }

.entry-hero :is(.kadence-breadcrumbs, .rank-math-breadcrumb),
.phrase-breadcrumb { color: var(--color-muted); font-size: 0.9rem; margin: 0 0 1rem; }
.entry-hero .rank-math-breadcrumb p,
.phrase-breadcrumb p { margin: 0; max-inline-size: none; }
.entry-hero .rank-math-breadcrumb a,
.entry-hero .kadence-breadcrumbs a { color: var(--color-link); }
.rank-math-breadcrumb .separator,
.kadence-breadcrumbs .bc-delimiter { color: var(--color-muted); margin-inline: 0.45rem; }
.rank-math-breadcrumb .last,
.kadence-bread-current {
  display: inline-block;
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
.rank-math-breadcrumb p,
.kadence-breadcrumb-container { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.phrase-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}
.phrase-facts li {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 0.4rem;
  line-height: 1.2;
  margin: 0;
  max-inline-size: none;
  padding: 0.32rem 0.8rem 0.32rem 0.6rem;
}
.phrase-facts .phrase-icon { color: var(--color-primary); flex: none; }
.entry-content > .phrase-facts { margin: 0 0 1.5rem; padding: 0; }

/* ===== 4. Article layout, reading polish, contents rail, tables ===== */
.single-post .content-container.site-container { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.content-container .entry.single-entry { background: transparent; border: 0; box-shadow: none; margin-inline: 0; padding: 0; }
.entry-content-wrap { padding: 0; }
.entry-content h2 { border-bottom: 2px solid var(--color-border); margin-top: 2.6rem; padding-bottom: 0.45rem; }
.entry-content .phrase-summary h2 {
  border: 0;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
  padding: 0;
  text-transform: uppercase;
}
.entry-content table {
  border: 1px solid var(--color-border);
  border-collapse: separate;
  border-radius: 12px;
  border-spacing: 0;
  font-size: 0.98rem;
  overflow: hidden;
}
.entry-content th { background: var(--color-raised); text-align: left; }
.entry-content tbody tr:nth-child(even) td { background: var(--color-raised); }
.entry-content td,
.entry-content th { border-color: var(--color-border); padding: 0.7rem 0.9rem; }
.phrase-figure img { border: 1px solid var(--color-border); border-radius: 14px; }

/* Contents list: a closed card on phones and tablets, a quiet rail on desktop. */
.phrase-toc { background: var(--color-surface); }
body .phrase-toc.is-sticky { max-block-size: none; overflow: visible; position: static; }
html:root body .phrase-toc {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin-block: 1.5rem 2rem;
  padding: 0.15rem 1rem;
}
.phrase-toc summary {
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.phrase-toc[open] summary { margin-bottom: 0.4rem; }
.phrase-toc ol { display: grid; gap: 0.1rem; list-style: none; margin: 0 0 0.6rem; padding: 0; }
.phrase-toc li { margin: 0; }
html:root body .phrase-toc a {
  border-inline-start: 0;
  border-radius: 8px;
  color: var(--color-muted);
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  min-block-size: 0;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
}
html:root body .phrase-toc a:hover { background: var(--color-raised); color: var(--color-text); }
html:root body .phrase-toc a.is-active { background: var(--color-answer); color: var(--color-link); font-weight: 700; }

@media (min-width: 75rem) {
  body.single-post .content-container.site-container,
  body.single-post .hero-container.site-container { max-width: 1200px; }
  body.single-post .entry-content.single-content {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 44rem) 20rem;
    justify-content: space-between;
  }
  body.single-post .entry-content.single-content > * { grid-column: 1; margin-top: 0; min-width: 0; }
  body.single-post .entry-content.single-content > h2 { margin-top: 0.6rem; }
  body.single-post .entry-content.single-content > :is(.phrase-feedback, .phrase-profile-cards, .phrase-related, .phrase-ad-slot) { margin-top: 2.5rem; }
  body.single-post .entry-content.single-content > .phrase-toc {
    align-self: start;
    border: 0;
    border-inline-start: 2px solid var(--color-border);
    border-radius: 0;
    grid-column: 2;
    grid-row: 1 / span 200;
    margin: 0;
    max-block-size: calc(100vh - 3rem);
    overflow: auto;
    padding: 0 0 0 1.1rem;
    position: sticky;
    scrollbar-width: thin;
    top: 1.5rem;
  }
}

/* Tables: a card per row on narrow screens, once components.js has added the
   column titles. Without the script the table scrolls sideways instead. */
@media (max-width: 40rem) {
  .phrase-table-scroll { overflow: visible; }
  .phrase-table-scroll table.has-labels { border: 0; display: block; font-size: 0.98rem; min-inline-size: 0; }
  .phrase-table-scroll table.has-labels thead {
    block-size: 1px;
    clip: rect(0 0 0 0);
    inline-size: 1px;
    overflow: hidden;
    position: absolute;
  }
  .phrase-table-scroll table.has-labels tbody { display: grid; gap: 0.75rem; }
  .phrase-table-scroll table.has-labels tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    display: block;
    overflow: hidden;
  }
  .phrase-table-scroll table.has-labels td {
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 7rem minmax(0, 1fr);
    padding: 0.65rem 0.95rem;
  }
  .phrase-table-scroll table.has-labels td:last-child { border-bottom: 0; }
  .phrase-table-scroll table.has-labels td::before {
    color: var(--color-muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding-top: 0.25rem;
    text-transform: uppercase;
  }
  .phrase-table-scroll table.has-labels td:first-child {
    background: var(--color-raised) !important;
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
  }
  .phrase-table-scroll table.has-labels td:first-child::before { content: none; }
}

/* ===== 5. Page components: sections, buttons, chips, cards (scoped by .hp) ===== */
.hp { --hp-gap: clamp(1rem, 2.5vw, 1.75rem); }
.hp-wrap { margin-inline: auto; max-width: 1200px; padding-inline: clamp(1rem, 4vw, 2rem); }
.hp-wrap--narrow { max-width: 820px; }
.hp-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hp-section--tight { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.hp-section--tint { background: var(--color-raised); }
.hp .hp-eyebrow {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}
.hp h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); letter-spacing: -0.015em; line-height: 1.06; margin: 0 0 1.1rem; overflow-wrap: anywhere; text-wrap: balance; }
.hp h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; margin: 0 0 0.6rem; }
.hp h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 0.4rem; }
.hp p { margin: 0 0 1rem; }
.entry-content .hp h2,
.entry-content .hp h3 { border: 0; margin-top: 0; padding-bottom: 0; }
html:root body .hp :is(ul, ol) { margin-inline: 0; padding-inline: 0; }
.hp-head { margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); max-width: 46rem; }
.hp-head--row { align-items: baseline; display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; justify-content: space-between; max-width: none; }
.hp-head--row h2 { margin: 0; }
.hp .hp-head__count { color: var(--color-muted); font-size: 0.95rem; font-weight: 600; margin: 0; }
.hp .hp-sub { color: var(--color-muted); font-size: 1.1rem; }
.hp .hp-lead { color: var(--color-text); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 36rem; }

.hp-button,
.hp-button:visited {
  align-items: center;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  color: var(--color-on-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.hp-button:hover,
.hp-button:focus,
.hp-button:active {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-on-primary);
  transform: translateY(-1px);
}
.hp-button svg { flex: none; }
.hp-button--quiet,
.hp-button--quiet:visited { background: transparent; color: var(--color-primary); }
.hp-button--quiet:hover,
.hp-button--quiet:focus,
.hp-button--quiet:active { background: var(--color-answer); border-color: var(--color-primary); color: var(--color-primary); }

.hp-search { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 1.2rem; max-width: 36rem; }
.hp-search input[type="search"] {
  background: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  border-radius: 12px;
  color: var(--color-text);
  flex: 1 1 15rem;
  font-size: 1.05rem;
  min-height: 3.25rem;
  padding: 0.6rem 1rem;
}
.hp-search input[type="search"]::placeholder { color: var(--color-muted); opacity: 1; }
.hp .hp-chips-label { color: var(--color-muted); font-size: 0.85rem; font-weight: 700; margin: 0 0 0.5rem; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.hp-chips li { margin: 0; }
html:root body .hp a.hp-chip,
.hp span.hp-chip {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  color: var(--color-text);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.35rem 0.95rem;
  text-decoration: none;
}
html:root body .hp a.hp-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

.hp-grid { display: grid; gap: var(--hp-gap); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .hp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .hp-grid { grid-template-columns: repeat(3, 1fr); } }
.hp-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.18s, border-color 0.18s;
}
.hp-card:hover,
.hp-card:focus-within { border-color: var(--color-primary); transform: translateY(-3px); }
.hp-card__media { background: var(--color-answer); display: block; }
.hp-card__media img { aspect-ratio: 16 / 9; display: block; height: auto; object-fit: cover; width: 100%; }
.hp-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.15rem; padding: 1.1rem 1.3rem 1.4rem; }
.hp-card__body > p:not(.hp-tag) { color: var(--color-muted); margin: 0; }
.hp .hp-tag {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
.hp .hp-card__title { font-size: 1.18rem; }
.hp-card__title a::after { content: ""; inset: 0; position: absolute; }
html:root body .hp a.hp-link { color: var(--color-link); font-weight: 600; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
html:root body .hp .hp-card__title a.hp-link { color: var(--color-text); text-decoration: none; }
html:root body .hp .hp-card__title a.hp-link:hover { color: var(--color-primary); text-decoration: underline; }
.hp-card__go { color: var(--color-link); font-weight: 700; margin-top: 1rem; }
.hp-card--text .hp-card__body { padding-block: 1.3rem 1.5rem; }
@media (min-width: 48rem) {
  .hp-card--feature { flex-direction: row; grid-column: 1 / -1; }
  .hp-card--feature .hp-card__media { flex: 0 0 58%; }
  .hp-card--feature .hp-card__media picture { display: block; height: 100%; }
  .hp-card--feature .hp-card__media img { aspect-ratio: auto; height: 100%; }
  .hp-card--feature .hp-card__body { justify-content: center; padding: clamp(1.5rem, 3.2vw, 2.75rem); }
  .hp-card--feature .hp-card__title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
}

.hp-pagination { margin-top: 2rem; }
html:root body .hp-pagination .page-numbers {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  margin: 0 0.35rem 0.5rem 0;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.9rem;
  text-decoration: none;
}
html:root body .hp-pagination a.page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
html:root body .hp-pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
html:root body .hp-pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ===== 6. Home page sections ===== */
.home .content-container.site-container { max-width: none; padding: 0; }
.home .content-area { margin: 0; }
.home .entry.single-entry { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.home .entry-content { margin: 0; }
.home .entry-header,
.home .page-hero-section { display: none; }
.hp-hero {
  background: var(--color-canvas);
  background-image: radial-gradient(60rem 28rem at 85% -10%, var(--color-answer), transparent 70%);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hp-hero__grid { align-items: center; display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 64rem) { .hp-hero__grid { grid-template-columns: 1.08fr 0.92fr; } }
html:root body .hp a.hp-sample {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 24px 48px -24px rgb(28 26 23 / 0.35);
  color: var(--color-text);
  display: block;
  overflow: hidden;
  text-decoration: none;
  transform: rotate(1.2deg);
  transition: transform 0.2s;
}
html:root body .hp a.hp-sample:hover { transform: rotate(0) translateY(-3px); }
.hp-sample img { aspect-ratio: 16 / 9; display: block; height: auto; object-fit: cover; width: 100%; }
.hp-sample__body { background: var(--color-answer); border-left: 5px solid var(--color-primary); display: block; margin: 0; padding: 1.1rem 1.3rem 1.3rem; }
.hp-sample__label { color: var(--color-accent); display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; margin-bottom: 0.35rem; text-transform: uppercase; }
.hp-sample__text { color: var(--color-text); display: block; font-size: 1.05rem; line-height: 1.5; }
.hp-sample__more { color: var(--color-link); display: block; font-weight: 700; margin-top: 0.7rem; }

.hp-trust { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.hp-trust__list { display: grid; gap: 1.2rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 1.4rem 0; }
@media (min-width: 40rem) { .hp-trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .hp-trust__list { grid-template-columns: repeat(4, 1fr); } }
.hp-trust__list li { align-items: flex-start; color: var(--color-muted); display: flex; font-size: 0.98rem; gap: 0.8rem; line-height: 1.45; margin: 0; }
.hp-trust__list svg { color: var(--color-primary); flex: none; margin-top: 0.15rem; }
.hp-trust__list strong { color: var(--color-text); display: block; font-size: 1.02rem; }

.hp-cats { display: grid; gap: var(--hp-gap); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .hp-cats { grid-template-columns: 1fr 1fr; } }
html:root body .hp a.hp-cat {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s;
}
html:root body .hp a.hp-cat:hover { border-color: var(--color-primary); transform: translateY(-3px); }
.hp-cat--a { background: var(--color-answer); }
.hp-cat--b { background: var(--color-summary); }
.hp-cat__count { color: var(--color-accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.hp-cat__title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.15; }
.hp-cat__text { color: var(--color-text); font-size: 1.05rem; max-width: 30rem; }
.hp-cat__go { color: var(--color-link); font-weight: 700; margin-top: 0.6rem; }

.hp-steps { display: grid; gap: var(--hp-gap); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .hp-steps { grid-template-columns: repeat(3, 1fr); } }
.hp-steps li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; margin: 0; padding: 1.5rem; }
.hp-steps__n {
  align-items: center;
  background: var(--color-primary);
  block-size: 2.5rem;
  border-radius: 50%;
  color: var(--color-on-primary);
  display: inline-flex;
  font-weight: 800;
  inline-size: 2.5rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.hp-steps p { color: var(--color-muted); margin: 0; }

.hp-author { align-items: center; display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-inline: auto; max-width: 860px; }
@media (min-width: 40rem) { .hp-author { grid-template-columns: auto 1fr; } }
.hp-author__avatar {
  align-items: center;
  background: var(--color-primary);
  block-size: 6rem;
  border-radius: 50%;
  color: var(--color-on-primary);
  display: flex;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  inline-size: 6rem;
  justify-content: center;
}
.hp-author h2 { margin-bottom: 0.4rem; }

.hp-faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; margin: 0 0 0.75rem; padding: 0 1.2rem; }
.hp-faq summary { cursor: pointer; display: flex; font-weight: 700; gap: 1rem; justify-content: space-between; list-style: none; padding: 1rem 0; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { color: var(--color-primary); content: "+"; font-size: 1.4rem; line-height: 1; }
.hp-faq details[open] summary::after { content: "\2212"; }
.hp-faq details p { color: var(--color-muted); margin: 0 0 1.1rem; }

.hp-cta { background: var(--color-primary); color: var(--color-on-primary); padding-block: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.hp-cta h2,
.hp-cta p { color: var(--color-on-primary); }
.hp-cta p { margin-inline: auto; max-inline-size: 40rem; }
.hp-cta .hp-cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; max-inline-size: none; }
.hp-button--inverse,
.hp-button--inverse:visited { background: var(--color-on-primary); border-color: var(--color-on-primary); color: var(--color-primary); }
.hp-button--inverse:hover,
.hp-button--inverse:focus,
.hp-button--inverse:active { background: var(--color-on-primary); border-color: var(--color-on-primary); color: var(--color-primary-hover); }
.hp-button--ghost,
.hp-button--ghost:visited { background: transparent; border-color: var(--color-on-primary); color: var(--color-on-primary); }
.hp-button--ghost:hover,
.hp-button--ghost:focus,
.hp-button--ghost:active { background: transparent; border-color: var(--color-on-primary); color: var(--color-on-primary); text-decoration: underline; }

/* ===== 7. Hub pages and the parts the hubs, author, search and 404 pages share ===== */
.hp-crumbs {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 0.15rem 0.5rem;
  margin: 0 0 1.5rem;
}
.hp-crumbs a { align-items: center; display: inline-flex; min-height: 1.5rem; }
.hp-crumbs [aria-current] { color: var(--color-text); font-weight: 600; }
.hp-hero--hub {
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(2.5rem, 6vw, 4.25rem);
}
.hp-hero--hub .hp-hero__grid { align-items: start; }
@media (min-width: 64rem) { .hp-hero--hub .hp-hero__grid { grid-template-columns: 1.2fr 0.8fr; } }
.hp-hero--hub h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.hp-hero--hub .hp-sub { margin-bottom: 0; max-width: 36rem; }
.hp-hubmeta {
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 0.4rem 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.hp-hubmeta li { margin: 0; }
.hp-hubmeta strong { color: var(--color-text); }

.hp-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 1.9rem);
}
.hp .hp-panel__title {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
}
.hp-checks { display: grid; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.hp-checks li { display: grid; gap: 0.8rem; grid-template-columns: 1.5rem minmax(0, 1fr); line-height: 1.45; margin: 0; }
.hp-checks svg { block-size: 1.5rem; color: var(--color-primary); inline-size: 1.5rem; margin-top: 0.05rem; }
.hp-checks strong { color: var(--color-text); display: block; font-size: 1.02rem; }
.hp-checks span { color: var(--color-muted); display: block; font-size: 0.95rem; margin-top: 0.1rem; }

html:root body .hp a.hp-crosslink {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  color: var(--color-text);
  display: grid;
  gap: 0.4rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s;
}
html:root body .hp a.hp-crosslink:hover,
html:root body .hp a.hp-crosslink:focus-visible { border-color: var(--color-primary); transform: translateY(-2px); }
.hp-crosslink__label {
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hp-crosslink__title {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
}
.hp-crosslink__text { color: var(--color-muted); }
.hp-crosslink__text::after { color: var(--color-link); content: " \2192"; font-weight: 700; }
.hp .hp-hub__how { color: var(--color-muted); font-size: 0.95rem; margin: 1.5rem auto 0; max-inline-size: 44rem; text-align: center; }

/* ===== 8. Author page ===== */
.pa-hero .hp-hero__grid { gap: clamp(1.75rem, 4vw, 3rem); }
.pa-id { align-items: center; display: flex; gap: 1.1rem; margin: 0 0 1.4rem; }
.pa-id > div { min-width: 0; }
.pa-avatar {
  align-items: center;
  background: var(--color-primary);
  block-size: 5.5rem;
  border-radius: 50%;
  color: var(--color-on-primary);
  display: inline-flex;
  flex: none;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  inline-size: 5.5rem;
  justify-content: center;
  letter-spacing: 0.02em;
}
img.pa-avatar--photo { border: 3px solid var(--color-surface); box-shadow: 0 0 0 1px var(--color-border); object-fit: cover; }
.pa-id .hp-eyebrow { margin-bottom: 0.2rem; }
.pa-id h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0; }
.hp .pa-role { color: var(--color-muted); font-size: 1.05rem; margin: 0.35rem 0 0; }
.hp .pa-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }

.pa-dl { display: grid; margin: 0; }
.pa-dl > div {
  align-items: baseline;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.pa-dl > div:first-child { border-top: 0; padding-top: 0; }
.pa-dl dt { color: var(--color-muted); font-size: 0.95rem; margin: 0; }
.pa-dl dd { color: var(--color-text); font-variant-numeric: tabular-nums; font-weight: 700; margin: 0; text-align: end; }
.pa-dl > div:first-child dd { font-family: var(--font-serif); font-size: 2.25rem; line-height: 1; }

.pa-about { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .pa-about { align-items: start; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.pa-about__main { min-width: 0; }
.pa-prose { color: var(--color-text); font-size: 1.08rem; line-height: 1.7; max-width: 44rem; }
.pa-prose > :first-child { margin-top: 0; }
.pa-prose > :last-child { margin-bottom: 0; }
.pa-prose p { margin: 0 0 1.1rem; max-width: none; }
.hp .pa-subhead { font-size: 1.15rem; margin: 2.25rem 0 0.8rem; }
html:root body .hp .pa-list { display: grid; gap: 0.65rem; list-style: none; margin: 0; max-width: 44rem; padding: 0; }
.pa-list li { margin: 0; padding-inline-start: 1.5rem; position: relative; }
.pa-list li::before {
  background: var(--color-primary);
  block-size: 0.5rem;
  border-radius: 50%;
  content: "";
  inline-size: 0.5rem;
  inset-block-start: 0.7em;
  inset-inline-start: 0.1rem;
  position: absolute;
}
.pa-links { display: grid; gap: var(--hp-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.pa-disclosure { margin-top: var(--hp-gap); }
.hp .pa-contact { margin: 1.5rem 0 0; }

/* ===== 9. Search results and the 404 page ===== */
.hp-hero--search .hp-wrap,
.hp-hero--404 .hp-wrap { max-width: 56rem; }
.hp-hero--search .hp-search,
.hp-hero--404 .hp-search { max-width: 40rem; }
.hp-hero--search,
.hp-hero--404 { padding-block: clamp(1.5rem, 3.5vw, 2.5rem) clamp(2.5rem, 6vw, 4rem); }
.hp-panel.hp-empty { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); max-width: 46rem; }
.hp .hp-empty h2 { font-size: 1.45rem; margin-bottom: 1.1rem; }
.phrase-search-page__latest { margin-bottom: 1.25rem; }
.phrase-search-page__latest h2 { margin: 0; }

/* ===== 10. About and legal pages: contents rail (desktop), chip strip (phones and tablets) ===== */
.phrase-policy-nav { margin: 0 0 1.75rem; }
.phrase-policy-nav__scroll {
  align-items: center;
  display: flex;
  gap: 0.5rem 1.25rem;
  margin-inline: calc(var(--phrase-pad) * -1);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.25rem var(--phrase-pad);
  scrollbar-width: none;
  scroll-padding-inline: var(--phrase-pad);
}
.phrase-policy-nav__scroll::-webkit-scrollbar { display: none; }
.phrase-policy-nav__group { align-items: center; display: flex; flex: none; gap: 0.5rem; }
.phrase-policy-nav__title {
  color: var(--color-muted);
  flex: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}
.phrase-policy-nav ul { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.phrase-policy-nav li { flex: none; margin: 0; }
html:root body .phrase-policy-nav a {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  color: var(--color-text);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  text-decoration: none;
  white-space: nowrap;
}
html:root body .phrase-policy-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); }
html:root body .phrase-policy-nav a[aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.phrase-policy-nav__updated { color: var(--color-muted); font-size: 0.88rem; margin: 0.6rem 0 0; }
body.phrase-trust .entry-content > .phrase-policy-nav + p { font-size: 1.2rem; line-height: 1.55; }

@media (min-width: 64rem) {
  body.phrase-trust .content-container.site-container,
  body.phrase-trust .hero-container.site-container { max-width: 1200px; }
  body.phrase-trust .entry-content.single-content {
    align-items: start;
    display: grid;
    gap: 0 3rem;
    grid-template-columns: minmax(0, 44rem) 16rem;
    justify-content: space-between;
  }
  body.phrase-trust .entry-content.single-content > * { grid-column: 1; min-width: 0; }
  body.phrase-trust .entry-content.single-content > .phrase-policy-nav {
    border-inline-start: 2px solid var(--color-border);
    grid-column: 2;
    grid-row: 1 / span 200;
    margin: 0;
    max-block-size: calc(100vh - 8rem);
    overflow: auto;
    padding: 0 0 0 1.1rem;
    position: sticky;
    scrollbar-width: thin;
    top: 6rem;
  }
  .phrase-policy-nav__scroll {
    align-items: stretch;
    display: grid;
    gap: 1.4rem;
    margin: 0;
    overflow: visible;
    padding: 0;
  }
  .phrase-policy-nav__group { align-items: stretch; display: grid; gap: 0.3rem; }
  .phrase-policy-nav__title { padding-inline: 0.65rem; }
  .phrase-policy-nav ul { display: grid; gap: 0.1rem; }
  html:root body .phrase-policy-nav a {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--color-muted);
    display: flex;
    font-size: 0.93rem;
    line-height: 1.35;
    min-height: 2.5rem;
    padding: 0.5rem 0.65rem;
    white-space: normal;
  }
  html:root body .phrase-policy-nav a:hover { background: var(--color-raised); color: var(--color-text); }
  html:root body .phrase-policy-nav a[aria-current="page"] {
    background: var(--color-answer);
    color: var(--color-link);
    font-weight: 700;
  }
  .phrase-policy-nav__updated { border-top: 1px solid var(--color-border); margin-top: 1.25rem; padding: 0.9rem 0.65rem 0; }
}

/* ===== 11. Author box and related guides at the end of an article ===== */
.phrase-profile-cards { display: block; margin-block: 3rem 1rem; }
.phrase-profile-card {
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  display: grid;
  gap: 1rem 1.4rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}
.phrase-profile-card__avatar {
  block-size: 4.5rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  inline-size: 4.5rem;
}
.phrase-profile-card__main { min-width: 0; }
.entry-content .phrase-profile-card__name {
  border: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.15rem;
  padding: 0;
}
html:root body .phrase-profile-card__name a { color: var(--color-text); text-decoration: none; }
html:root body .phrase-profile-card__name a:hover { color: var(--color-primary); text-decoration: underline; }
.phrase-profile-card p { max-width: none; }
.phrase-profile-card__role { color: var(--color-muted); font-size: 0.95rem; margin: 0 0 0.7rem; }
.phrase-profile-card__bio { margin: 0 0 0.5rem; }
.phrase-profile-card .phrase-profile-card__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0.25rem 0 0; }
.phrase-profile-card__ext,
.phrase-profile-card__more { align-items: center; display: inline-flex; font-weight: 700; gap: 0.45rem; min-height: 2.75rem; }
.phrase-profile-card__ext .phrase-icon { flex: none; }
.phrase-profile-card__avatar--initials { color: var(--color-on-primary); }

.phrase-related { margin-block: 3rem 2rem; }
.entry-content .phrase-related > h2 { margin-top: 0; }
.phrase-related-grid { display: block; margin-block: 1.25rem 0; }
.phrase-related-grid .hp-grid { gap: 0.9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 36rem) { .phrase-related-grid .hp-grid { gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35.99rem) {
  .phrase-related-grid .hp-card { flex-direction: row; }
  .phrase-related-grid .hp-card__media { flex: 0 0 34%; }
  .phrase-related-grid .hp-card__media picture { display: block; height: 100%; }
  .phrase-related-grid .hp-card__media img { aspect-ratio: auto; height: 100%; }
  .phrase-related-grid .hp-card__body { justify-content: center; padding: 0.9rem 1rem; }
  .phrase-related-grid .hp-card__body > p:not(.hp-tag) { display: none; }
  .phrase-related-grid .hp .hp-card__title,
  .hp.phrase-related-grid .hp-card__title { font-size: 1.05rem; }
}
.phrase-ad-slot[data-ad-state="empty"] { display: none; }

/* ===== 12. Footer ===== */
.site-footer,
.site-middle-footer-wrap .site-footer-row-container-inner,
.site-bottom-footer-wrap .site-footer-row-container-inner { background: var(--color-raised); color: var(--color-text); }
.site-footer { border-top: 1px solid var(--color-border); }
.site-footer .footer-widget-area ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-widget-area li { margin: 0.55rem 0; }
html:root body .site-footer a:not([class*="button"]) { color: var(--color-text); }
html:root body .site-footer a:not([class*="button"]):hover { color: var(--color-primary); text-decoration: underline; }
.site-footer .footer-widget-area a { align-items: center; display: inline-flex; min-height: 1.5rem; }
.site-footer .phrase-footer-h {
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.site-footer .phrase-footer-brand { font-family: var(--font-serif); font-size: 1.55rem; margin: 0 0 0.5rem; }
.site-footer .phrase-footer-tag { font-size: 1.08rem; margin: 0 0 0.9rem; }
.site-footer .phrase-footer-note { color: var(--color-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; max-width: 25rem; }
.site-footer .site-middle-footer-inner-wrap {
  display: grid !important;
  gap: 2rem 3rem;
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.25rem);
}
@media (min-width: 40rem) { .site-footer .site-middle-footer-inner-wrap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .site-footer .site-middle-footer-inner-wrap { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .site-bottom-footer-inner-wrap { border-top: 1px solid var(--color-border); padding-block: 1.1rem; }
.site-footer .site-bottom-footer-inner-wrap .footer-html,
.site-footer .site-bottom-footer-inner-wrap .footer-html-inner,
.site-footer .site-bottom-footer-inner-wrap .footer-html-inner p {
  color: var(--color-muted);
  font-size: 0.92rem;
  justify-content: flex-start;
  margin: 0;
  text-align: left;
}
.site-footer .site-bottom-footer-inner-wrap .site-footer-section { justify-content: flex-start; }

/* ===== 13. Floating controls: reading progress, back to top, copy confirmation ===== */
.phrase-back-to-top {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 0.4rem;
  inset: auto 1rem 1rem auto;
  min-block-size: 2.75rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  position: fixed;
}
.phrase-back-to-top svg { flex: none; }
html:root body .phrase-back-to-top:hover,
html:root body .phrase-back-to-top:focus,
html:root body .phrase-back-to-top:active { background: var(--color-answer); border-color: var(--color-primary); color: var(--color-primary); }
@media (max-width: 47.99rem) {
  .phrase-back-to-top { inline-size: 2.75rem; justify-content: center; padding: 0; }
  .phrase-back-to-top__label { display: none; }
}
.phrase-copy-status { inset: auto 1rem 4.75rem auto; }
@media (max-width: 47.99rem) {
  .phrase-copy-status { inset: auto 1rem 4.75rem 1rem; margin-inline: auto; text-align: center; width: fit-content; }
}
.phrase-progress { block-size: 3px; }
.hp-cta :focus-visible { outline-color: var(--color-on-primary); }

/* ===== 15. In-article visuals: tables, cards, ladders, chats, emails ===== */
/* These replace the picture graphics of the first release. Everything is
   real text, so it stays sharp and readable on a phone, follows the light and
   dark themes, and can be found by search engines and screen readers. */
.entry-content figure.phrase-visual {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.entry-content .phrase-visual p { max-inline-size: none; }
.entry-content .phrase-visual > .phrase-visual__title {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.entry-content .phrase-visual > .phrase-visual__note {
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.45;
  margin: 1rem 0 0;
  text-align: left;
}
.entry-content .phrase-visual :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
.entry-content .phrase-visual li { margin: 0; max-inline-size: none; }

/* Table */
.phrase-visual .phrase-table-scroll { margin: 0; }
.phrase-visual table { background: var(--color-canvas); margin: 0; }
.phrase-visual thead th { background: var(--color-primary); color: var(--color-on-primary); }
.phrase-visual tbody th[scope="row"] { background: transparent; font-weight: 700; text-align: left; }
.phrase-visual tbody tr:nth-child(even) :is(th, td) { background: var(--color-raised); }
@media (max-width: 40rem) {
  .phrase-visual .phrase-table-scroll table.has-labels th[scope="row"] {
    background: var(--color-raised) !important;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
    font-size: 1.05rem;
    padding: 0.65rem 0.95rem;
  }
}

/* Cards: a coloured top edge, a short title, one or two lines of text */
.phrase-visual__cards { display: grid; gap: 0.85rem; grid-template-columns: minmax(0, 1fr); }
.phrase-visual__card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  border-top: 4px solid var(--color-primary);
  padding: 0.95rem 1.05rem 1.05rem;
}
.phrase-visual__card:nth-child(even) { border-top-color: var(--color-accent); }
.entry-content .phrase-visual__card p { margin: 0; }
.entry-content .phrase-visual__card .phrase-visual__card-title {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
@media (min-width: 36rem) {
  .phrase-visual__cards--2, .phrase-visual__cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .phrase-visual__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Ladder: ranked steps, the current phrase highlighted and labelled */
.pv-ladder { counter-reset: rung; display: grid; gap: 0.55rem; }
.pv-ladder__item {
  align-items: center;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  counter-increment: rung;
  display: grid;
  gap: 0.15rem 0.9rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.7rem 1rem;
}
.pv-ladder__num {
  align-items: center;
  block-size: 2rem;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  inline-size: 2rem;
  justify-content: center;
}
.pv-ladder__num::before { content: counter(rung); }
.entry-content .pv-ladder p { margin: 0; }
.entry-content .pv-ladder .pv-ladder__name { color: var(--color-text); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.entry-content .pv-ladder .pv-ladder__note { color: var(--color-muted); font-size: 0.93rem; line-height: 1.35; }
.pv-ladder__item.is-current { background: var(--color-answer); border-color: var(--color-primary); border-width: 2px; padding: calc(0.7rem - 1px) calc(1rem - 1px); }
.pv-ladder__item.is-current .pv-ladder__num { background: var(--color-primary); color: var(--color-on-primary); }
.pv-ladder__badge { color: var(--color-link); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 29.99rem) {
  .pv-ladder__item { grid-template-columns: auto minmax(0, 1fr); }
  .pv-ladder__badge { grid-column: 2; }
}

/* Chat bubbles and the phone frame */
.pv-chat { background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: 14px; display: grid; gap: 0.6rem; padding: 1rem; }
.entry-content .pv-chat__msg { border-radius: 16px; line-height: 1.45; margin: 0; max-inline-size: min(100%, 30rem); padding: 0.7rem 1rem; }
.pv-chat__msg--in { background: var(--color-raised); border-end-start-radius: 4px; justify-self: start; }
.pv-chat__msg--out { background: var(--color-answer); border-end-end-radius: 4px; justify-self: end; }
.pv-phone { background: var(--color-canvas); border: 8px solid var(--color-border-strong); border-radius: 32px; margin-inline: auto; max-inline-size: 22rem; overflow: hidden; }
.entry-content .pv-phone__bar { background: var(--color-raised); font-weight: 700; margin: 0; padding: 0.8rem 1rem; text-align: center; }
.pv-phone__body { display: grid; gap: 0.6rem; padding: 1rem; }
.pv-phone .pv-chat__msg--in { background: var(--color-answer); }

/* Email card */
.pv-email { background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; }
.entry-content .pv-email p { margin: 0; }
.entry-content .pv-email .pv-email__subject { background: var(--color-raised); border-bottom: 1px solid var(--color-border); font-weight: 700; padding: 0.8rem 1.05rem; }
.entry-content .pv-email .pv-email__line { padding: 0.7rem 1.05rem; }
.entry-content .pv-email .pv-email__line.is-key { background: var(--color-answer); border-inline-start: 4px solid var(--color-primary); color: var(--color-link); font-weight: 700; }

/* Checklist */
.pv-check { display: grid; gap: 0.65rem; }
.pv-check__item { align-items: start; background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: 12px; display: grid; gap: 0.9rem; grid-template-columns: auto minmax(0, 1fr); padding: 0.9rem 1.05rem; }
.pv-check__tick { align-items: center; background: var(--color-primary); block-size: 1.9rem; border-radius: 50%; color: var(--color-on-primary); display: inline-flex; inline-size: 1.9rem; justify-content: center; }
.pv-check__tick::before {
  background-color: currentColor;
  block-size: 1rem;
  content: "";
  inline-size: 1rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry-content .pv-check p { margin: 0; }
.entry-content .pv-check .pv-check__name { color: var(--color-text); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.15rem; }

/* Expansion: what an abbreviation stands for */
.pv-expansion { display: grid; gap: 0.6rem; justify-items: center; padding: 0.5rem 0 0.25rem; text-align: center; }
.entry-content .pv-expansion p { margin: 0; }
.entry-content .pv-expansion .pv-expansion__phrase { border: 2px solid var(--color-primary); border-radius: 999px; color: var(--color-primary); font-family: var(--font-serif); font-size: clamp(1.3rem, 4.2vw, 2rem); font-weight: 700; line-height: 1.2; padding: 0.75rem 1.6rem; text-wrap: balance; }
.entry-content .pv-expansion .pv-expansion__note { color: var(--color-muted); }
.pv-expansion__note::after { color: var(--color-muted); content: "\2193"; display: block; font-size: 1.5rem; line-height: 1.3; }
.entry-content .pv-expansion .pv-expansion__abbr { color: var(--color-text); font-family: var(--font-serif); font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: 0.22em; padding-inline-start: 0.22em; }

/* Split: one term, two jobs */
.pv-split { display: grid; gap: 0.85rem; }
.pv-split__term { align-content: center; background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: 12px; display: grid; padding: 1rem; text-align: center; }
.entry-content .pv-split__term p { margin: 0; }
.entry-content .pv-split__term .pv-split__word { color: var(--color-primary); font-family: var(--font-serif); font-size: 2rem; font-weight: 800; line-height: 1.1; }
@media (min-width: 40rem) { .pv-split { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); } }

@media (forced-colors: active) {
  .phrase-visual__card, .pv-ladder__item, .pv-chat, .pv-email, .pv-check__item, .pv-split__term { border: 1px solid CanvasText; }
  .pv-ladder__item.is-current { border: 3px solid Highlight; }
}

/* ===== 16. Round 2 refinements (v0.4.7) ===== */

/* Header on small laptops and tablets in landscape: the logo, four links and the
   theme button need about 1,000px, so between the Kadence mobile breakpoint and
   1,200px they are set a little smaller and the menu stays on one line. */
@media (min-width: 1025px) and (max-width: 1199px) {
  .site-branding .site-title { font-size: 1.25rem; }
  html:root body .main-navigation .primary-menu-container > ul > li.menu-item > a { font-size: 0.95rem; padding-inline: 0.45em; }
  .site-header .phrase-theme-toggle { padding: 0.35rem 0.8rem 0.35rem 0.65rem; }
}

/* Mobile menu panel. Kadence paints it near-black, and the link colours of this
   theme are dark in the light scheme, which made the menu unreadable. The panel
   now follows the theme tokens, so it is readable in both schemes. */
html:root body .popup-drawer-layout-sidepanel .drawer-inner { background: var(--color-surface); box-shadow: -14px 0 36px rgb(0 0 0 / 0.22); color: var(--color-text); }
html:root body .popup-drawer .menu-toggle-close { color: var(--color-text); }
html:root body .popup-drawer .mobile-navigation ul li { border-bottom: 1px solid var(--color-border); }
html:root body .popup-drawer .mobile-navigation ul li > a,
html:root body .popup-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a { font-size: 1.15rem; font-weight: 600; padding-block: 0.9rem; }
html:root body .popup-drawer .mobile-navigation ul li.current-menu-item > a,
html:root body .popup-drawer .mobile-navigation ul li.current-menu-item .drawer-nav-drop-wrap > a { box-shadow: inset 3px 0 0 var(--color-primary); color: var(--color-primary); padding-inline-start: 0.85rem; }
/* Search panel. Kadence styles the field through an id selector, so these rules use
   the same id to win. The field loses the offset white shadow and gets a plain
   rounded outline; keyboard focus is a solid white ring. */
html:root body #search-drawer .drawer-inner input.search-field {
  background: rgb(255 255 255 / 0.08);
  border: 2px solid rgb(255 255 255 / 0.7);
  border-radius: 14px;
  box-shadow: none;
  color: #fff;
  font-size: 1.2rem;
  padding: 1.1rem 4.5rem 1.1rem 1.25rem;
}
html:root body #search-drawer .drawer-inner input.search-field:focus { border-color: #fff; box-shadow: none; outline: 3px solid #fff; outline-offset: 3px; }
html:root body #search-drawer .drawer-inner input.search-field::placeholder { color: rgb(255 255 255 / 0.78); opacity: 1; }
html:root body #search-drawer .drawer-inner input.search-field::-webkit-search-cancel-button { cursor: pointer; filter: grayscale(1) brightness(2); }

/* Text fields: Kadence removes the outline from a focused field. The same ring as on
   links and buttons is put back, so every control shows keyboard focus the same way. */
html:root body :is(input, textarea, select):focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); }

/* Article top: tighter rhythm so the direct answer is on the first screen of a laptop or a phone. */
body.single-post .content-area { margin-top: 0; }
.single-post .content-container.site-container { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.entry-hero .entry-header { padding-block: clamp(1.25rem, 3vw, 2.25rem); }
.single .entry-hero .entry-meta { margin: 0.85rem 0 0; }
.entry-content > .phrase-facts { margin: 0 0 1rem; }

/* Dark scheme: the closing call-to-action band is a deep teal panel with a bright button,
   not a full-width slab of bright mint that glares at the end of a dark page. */
html[data-theme="dark"] .hp-cta { --cta-bg: #0d3b32; --cta-ink: #f5f0e6; --cta-accent: #5eead4; --cta-accent-ink: #0b1f1b; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hp-cta { --cta-bg: #0d3b32; --cta-ink: #f5f0e6; --cta-accent: #5eead4; --cta-accent-ink: #0b1f1b; }
}
html[data-theme="dark"] .hp-cta,
html[data-theme="dark"] .hp-cta h2,
html[data-theme="dark"] .hp-cta p { color: var(--cta-ink); }
html[data-theme="dark"] .hp-cta { background: var(--cta-bg); border-block: 1px solid #1d5c4e; }
html[data-theme="dark"] .hp-cta .hp-button--inverse,
html[data-theme="dark"] .hp-cta .hp-button--inverse:visited { background: var(--cta-accent); border-color: var(--cta-accent); color: var(--cta-accent-ink); }
html[data-theme="dark"] .hp-cta .hp-button--inverse:hover,
html[data-theme="dark"] .hp-cta .hp-button--inverse:focus,
html[data-theme="dark"] .hp-cta .hp-button--inverse:active { background: #99f6e4; border-color: #99f6e4; color: var(--cta-accent-ink); }
html[data-theme="dark"] .hp-cta .hp-button--ghost,
html[data-theme="dark"] .hp-cta .hp-button--ghost:visited,
html[data-theme="dark"] .hp-cta .hp-button--ghost:hover,
html[data-theme="dark"] .hp-cta .hp-button--ghost:focus,
html[data-theme="dark"] .hp-cta .hp-button--ghost:active { border-color: var(--cta-ink); color: var(--cta-ink); }
html[data-theme="dark"] .hp-cta :focus-visible { outline-color: var(--cta-ink); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hp-cta,
  html:not([data-theme="light"]) .hp-cta h2,
  html:not([data-theme="light"]) .hp-cta p { color: var(--cta-ink); }
  html:not([data-theme="light"]) .hp-cta { background: var(--cta-bg); border-block: 1px solid #1d5c4e; }
  html:not([data-theme="light"]) .hp-cta .hp-button--inverse,
  html:not([data-theme="light"]) .hp-cta .hp-button--inverse:visited { background: var(--cta-accent); border-color: var(--cta-accent); color: var(--cta-accent-ink); }
  html:not([data-theme="light"]) .hp-cta .hp-button--inverse:hover,
  html:not([data-theme="light"]) .hp-cta .hp-button--inverse:focus,
  html:not([data-theme="light"]) .hp-cta .hp-button--inverse:active { background: #99f6e4; border-color: #99f6e4; color: var(--cta-accent-ink); }
  html:not([data-theme="light"]) .hp-cta .hp-button--ghost,
  html:not([data-theme="light"]) .hp-cta .hp-button--ghost:visited,
  html:not([data-theme="light"]) .hp-cta .hp-button--ghost:hover,
  html:not([data-theme="light"]) .hp-cta .hp-button--ghost:focus,
  html:not([data-theme="light"]) .hp-cta .hp-button--ghost:active { border-color: var(--cta-ink); color: var(--cta-ink); }
  html:not([data-theme="light"]) .hp-cta :focus-visible { outline-color: var(--cta-ink); }
}

/* Dark scheme: bright illustrations are dimmed a little so they do not glare against the page. */
html[data-theme="dark"] :is(.entry-content, .hp) :is(figure, .hp-card__media, .hp-hero__visual) img { filter: brightness(0.9); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) :is(.entry-content, .hp) :is(figure, .hp-card__media, .hp-hero__visual) img { filter: brightness(0.9); }
}

/* Footer note: a link inside muted text is underlined, so it never relies on colour alone. */
html:root body .site-footer .phrase-footer-note a { color: var(--color-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
html:root body .site-footer .phrase-footer-note a:hover { color: var(--color-primary); text-decoration-thickness: 2px; }

/* Byline: on phones the two parts stack, so the dot divider never ends up alone at the end of a line. */
@media (max-width: 29.99rem) {
  .single .entry-hero .entry-meta.entry-meta-divider-dot { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .single .entry-hero .entry-meta.entry-meta-divider-dot .posted-by::after { display: none; }
}

/* Related guides: a card left alone in the last row spans the whole row. */
@media (min-width: 36rem) {
  .phrase-related-grid .hp-grid > .hp-card:last-child:nth-child(odd) { flex-direction: row; grid-column: 1 / -1; }
  .phrase-related-grid .hp-grid > .hp-card:last-child:nth-child(odd) .hp-card__media { flex: 0 0 38%; }
  .phrase-related-grid .hp-grid > .hp-card:last-child:nth-child(odd) .hp-card__media picture { display: block; height: 100%; }
  .phrase-related-grid .hp-grid > .hp-card:last-child:nth-child(odd) .hp-card__media img { aspect-ratio: auto; height: 100%; }
  .phrase-related-grid .hp-grid > .hp-card:last-child:nth-child(odd) .hp-card__body { justify-content: center; }
}

/* Hero: clear space between the intro text and the search box. */
html:root body .hp-hero .hp-sub + .hp-search,
html:root body .hp-hero .hp-lead + .hp-search { margin-top: 1.5rem; }

/* Hub hero: the jump links and the counts sit in one row under the intro and the
   "inside every guide" panel, so the first guide is reached sooner. */
.hp-hero--hub .hp-hero__grid { row-gap: 1.75rem; }
.hp-hero--hub .hp-hero__grid .hp-search { margin-bottom: 0; }
.hp-hero__foot { align-items: center; border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; padding-top: 1.25rem; }
.hp .hp-hero__foot .hp-chips-label { flex: none; margin: 0; }
.hp-hero__foot .hp-chips { flex: 1 1 18rem; }
.hp-hero__foot .hp-hubmeta { flex-basis: 100%; margin: 0.15rem 0 0; }
@media (max-width: 63.99rem) { .hp .hp-hero__foot .hp-chips-label { flex-basis: 100%; } }
@media (min-width: 64rem) { .hp .hp-hero__foot .hp-chips-label { align-self: flex-start; padding-top: 0.7rem; } }
@media (min-width: 64rem) {
  .hp-hero--hub .hp-hero__grid { column-gap: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); row-gap: 2.25rem; }
  .hp-hero--hub .hp-hero__grid > :first-child { grid-column: 1; grid-row: 1; }
  .hp-hero--hub .hp-hero__grid > .hp-panel { grid-column: 2; grid-row: 1; }
  .hp-hero--hub .hp-hero__foot { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 63.99rem) {
  .hp-hero--hub .hp-checks { gap: 1.1rem 1.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 39.99rem) {
  .hp-hero--hub .hp-panel { padding: 1.15rem 1.15rem 1.25rem; }
  .hp-hero--hub .hp-panel .hp-panel__title { margin-bottom: 0.85rem; }
  .hp-hero--hub .hp-checks { gap: 0.8rem 0.9rem; }
  .hp-hero--hub .hp-checks li { gap: 0.5rem; grid-template-columns: 1.25rem minmax(0, 1fr); }
  .hp-hero--hub .hp-checks svg { block-size: 1.25rem; inline-size: 1.25rem; }
  .hp-hero--hub .hp-checks strong { font-size: 0.95rem; line-height: 1.3; }
  /* The one-line explanations stay in the page for screen readers and search engines. */
  .hp-hero--hub .hp-checks span { block-size: 1px; clip-path: inset(50%); inline-size: 1px; margin: -1px; overflow: hidden; position: absolute; white-space: nowrap; }
}

/* ===== 16b. Skip link (v0.4.10) ===== */
/* Kadence and WordPress both paint .screen-reader-text:focus with stock colours
   (#21759b on #f1f1f1, 4.55:1: AA, not AAA). Those rules are more specific than the
   plain .skip-link rule in tokens.css, so the brand pair is set here. The skip link is
   the first thing a keyboard user sees on every page. */
html:root body .skip-link:focus,
html:root body .skip-link.screen-reader-text:focus {
  background: var(--color-primary);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-card);
  color: var(--color-on-primary);
  font-weight: 700;
}

/* ===== 16c. Search drawer (v0.4.10) ===== */
/* The drawer panel is dark in both themes (rgba(9,12,16,.97)) and the field text is white,
   but Kadence colours the search icon with palette 6 (#4a443b in the dark theme: 1.7:1) and,
   on hover, with palette 4 (#1c1a17 in the light theme: invisible on the dark panel).
   Fixed light colours fix both themes. */
html:root body #search-drawer .drawer-inner .search-form .kadence-search-icon-wrap { color: rgb(255 255 255 / 0.82); }
html:root body #search-drawer .drawer-inner .search-form .search-submit:hover ~ .kadence-search-icon-wrap,
html:root body #search-drawer .drawer-inner .search-form .search-submit:focus ~ .kadence-search-icon-wrap,
html:root body #search-drawer .drawer-inner .search-form .search-submit:active ~ .kadence-search-icon-wrap { color: #ffffff; }

/* ===== 13b. Team: one live list for every place that shows people ===== */
/* The list is printed by [phrase_team] (inc/team.php). It works for one author or fifty:
   "list" is one row each, for the narrow text pages; "grid" is cards, for the home page and
   the author page. The name is the link to the author page and its hit area covers the card. */
.phrase-team { margin-block: 1.5rem; }
html:root body .phrase-team .phrase-team__list { display: grid; gap: clamp(0.9rem, 2.2vw, 1.25rem); list-style: none; margin: 0; padding: 0; }
.phrase-team__list { grid-template-columns: minmax(0, 1fr); }
html:root body .phrase-team .phrase-team__item { margin: 0; padding: 0; }
.phrase-team__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  column-gap: 1rem;
  display: grid;
  grid-template-areas: "avatar id" "bio bio" "meta meta";
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: clamp(1.1rem, 2.6vw, 1.5rem);
  position: relative;
  transition: border-color 0.18s;
}
.phrase-team__card:hover,
.phrase-team__card:focus-within { border-color: var(--color-primary); }
.phrase-team__avatar {
  align-items: center;
  background: var(--color-primary);
  block-size: 4.5rem;
  border-radius: 50%;
  color: var(--color-on-primary);
  display: inline-flex;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  grid-area: avatar;
  inline-size: 4.5rem;
  justify-content: center;
  letter-spacing: 0.02em;
}
img.phrase-team__avatar--photo { background: var(--color-raised); border: 3px solid var(--color-surface); box-shadow: 0 0 0 1px var(--color-border); object-fit: cover; }
.phrase-team__id { align-self: center; grid-area: id; min-width: 0; }
html:root body .phrase-team .phrase-team__name {
  border: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0;
}
html:root body .phrase-team a.phrase-team__link { color: var(--color-text); text-decoration: none; }
html:root body .phrase-team a.phrase-team__link:hover { color: var(--color-primary); text-decoration: underline; }
.phrase-team__link::after { content: ""; inset: 0; position: absolute; }
html:root body .phrase-team .phrase-team__role { color: var(--color-muted); font-size: 0.97rem; line-height: 1.4; margin: 0.25rem 0 0; max-width: none; }
html:root body .phrase-team .phrase-team__bio { color: var(--color-text); font-size: 0.98rem; grid-area: bio; line-height: 1.55; margin: 0.8rem 0 0; max-width: none; }
html:root body .phrase-team .phrase-team__meta { align-items: center; color: var(--color-muted); display: flex; flex-wrap: wrap; font-size: 0.93rem; font-weight: 600; gap: 0 1.25rem; grid-area: meta; margin: 0.5rem 0 0; max-width: none; }
html:root body .phrase-team a.phrase-team__ext { align-items: center; color: var(--color-link); display: inline-flex; font-weight: 700; gap: 0.4rem; min-height: 2.75rem; position: relative; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; z-index: 1; }
html:root body .phrase-team a.phrase-team__ext:hover { color: var(--color-primary); }
.phrase-team__ext .phrase-icon { flex: none; }
html:root body .phrase-team .phrase-team__more { margin: 1.25rem 0 0; max-width: none; }
html:root body .phrase-team a.phrase-team__morelink { align-items: center; color: var(--color-link); display: inline-flex; font-weight: 700; gap: 0.4rem; min-height: 2.75rem; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
html:root body .phrase-team a.phrase-team__morelink:hover { color: var(--color-primary); }

@media (min-width: 40rem) {
  /* Wide enough: the bio and the links sit under the name, beside the avatar. */
  .phrase-team--list .phrase-team__card,
  .phrase-team--grid[data-count="1"] .phrase-team__card { grid-template-areas: "avatar id" "avatar bio" "avatar meta"; }
  .phrase-team--list .phrase-team__avatar,
  .phrase-team--grid[data-count="1"] .phrase-team__avatar { align-self: start; }
  .phrase-team--list .phrase-team__id,
  .phrase-team--grid[data-count="1"] .phrase-team__id { align-self: start; }
  .phrase-team--list .phrase-team__bio,
  .phrase-team--grid[data-count="1"] .phrase-team__bio { margin-top: 0.6rem; }
  .phrase-team--grid .phrase-team__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrase-team--grid[data-count="1"] .phrase-team__list { grid-template-columns: minmax(0, 44rem); justify-content: start; }
  .phrase-team--grid[data-count="1"] .phrase-team__avatar { block-size: 5.5rem; font-size: 1.9rem; inline-size: 5.5rem; }
}
@media (min-width: 64rem) {
  .phrase-team--grid:not([data-count="1"], [data-count="2"], [data-count="4"]) .phrase-team__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* In a grid the bio is held to a few lines so the cards stay level; the whole text is on the author page. */
.phrase-team--grid .phrase-team__bio { -webkit-box-orient: vertical; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.phrase-team--grid[data-count="1"] .phrase-team__bio { -webkit-line-clamp: 6; line-clamp: 6; }

/* The author page has no bio to show yet: the "how every guide is made" panel stands alone. */
.pa-about--solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .pa-about.pa-about--solo { grid-template-columns: minmax(0, 46rem); } }

/* ===== 13c. "Was this guide helpful?" closes every article ===== */
.phrase-feedback {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-block: 2.5rem 0;
  padding: 1.1rem 1.4rem;
}
.phrase-feedback[hidden] { display: none; }
html:root body .phrase-feedback .phrase-feedback__title { color: var(--color-text); font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin: 0; max-width: none; }
.phrase-feedback__actions { display: flex; gap: 0.5rem; }
html:root body .phrase-feedback .phrase-feedback__btn,
html:root body .phrase-feedback .phrase-feedback__share {
  align-items: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border-strong);
  border-radius: 999px;
  box-shadow: none;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  gap: 0.45rem;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.4rem 1.15rem;
  text-transform: none;
}
html:root body .phrase-feedback .phrase-feedback__btn:hover,
html:root body .phrase-feedback .phrase-feedback__share:hover { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-primary); }
html:root body .phrase-feedback .phrase-feedback__btn[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.phrase-feedback__share { margin-inline-start: auto; }
.phrase-feedback__share .phrase-icon { flex: none; }
html:root body .phrase-feedback .phrase-feedback__msg { color: var(--color-text); flex-basis: 100%; font-size: 0.97rem; margin: 0; max-width: none; }
.phrase-feedback__msg:empty { display: none; }
html:root body .phrase-feedback .phrase-feedback__msg a { color: var(--color-link); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
@media (max-width: 29.99rem) {
  .phrase-feedback { padding: 1rem; }
  .phrase-feedback__share { margin-inline-start: 0; }
}

/* ===== 14. Selection, motion, forced colours and print ===== */
::selection { background: var(--color-answer); color: var(--color-text); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  .hp *, .hp-button, .phrase-back-to-top { transition: none !important; }
  .hp .hp-card:hover, .hp .hp-cat:hover, .hp .hp-crosslink:hover, .hp .hp-sample, .hp .hp-sample:hover, .hp-button:hover { transform: none !important; }
}
@media (forced-colors: active) {
  .hp-card, .hp-panel, .hp-cat, .hp-crosslink, .phrase-profile-card, .phrase-facts li, .phrase-team__card, .phrase-feedback { border: 1px solid CanvasText; }
  .phrase-feedback__btn, .phrase-feedback__share { border: 2px solid ButtonText; }
  .phrase-feedback__btn[aria-pressed="true"] { background: Highlight; color: HighlightText; }
  .hp-button { border: 2px solid ButtonText; }
  .pa-list li::before { background: CanvasText; }
}
@media print {
  .phrase-facts, .phrase-policy-nav, .phrase-toc, .hp-search, .hp-chips, .hp-cta, .phrase-related, .phrase-feedback, .phrase-theme-toggle { display: none !important; }
  .entry-hero { background: none !important; border: 0 !important; }
  .entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .hp-card, .hp-panel, .phrase-profile-card, .phrase-team__card, .phrase-visual { border-color: #999 !important; break-inside: avoid; }
}
