@charset "UTF-8";

/* === Design tokens (added 2026-07) ===
   Centralizes the colors already in consistent, repeated use across this
   file. Values are UNCHANGED from what was already live -- this only gives
   them names so future edits touch one place instead of hunting hex codes.
   2026-07-15: the course/quiz/lesson-nav components previously used a second,
   near-duplicate "primary blue" (#1a568a) and navy (#1a3a5c). Consolidated
   onto the single site-wide --pf-primary / --pf-primary-dark pair per
   decision -- use --pf-primary everywhere going forward, do not reintroduce
   a second blue. */
:root {
  /* Brand */
  --pf-primary: #3F85B7;        /* the site-wide primary (links, search, feedback, scroll-to-top, frontpage cards, course/quiz/lesson-nav) */
  --pf-primary-dark: #014366;   /* hover-darken / heading navy */
  --pf-link: #2E6DA4;         /* darkened variant of --pf-primary for BODY TEXT LINKS -- #3F85B7 is only 4.0:1 on white, fails WCAG AA (4.5:1); this passes at ~5.5:1 */

  /* Text */
  --pf-text: #2f3743;
  --pf-text-muted: #445566;
  --pf-text-subtle: #5a7a8a;
  --pf-text-faint: #7a8fa0;
  --pf-text-quiet: #9aabb8;

  /* Borders / backgrounds */
  --pf-border: #d0dde6;
  --pf-border-soft: #dce8f0;
  --pf-bg-tint: #f7f9fb;
  --pf-bg-highlight: #edf4fb;

  /* Semantic */
  --pf-success: #2e7d32;
  --pf-success-dark: #1b5e20;
  --pf-success-bg: #e8f5e9;
  --pf-error: #c62828;
  --pf-error-bg: #fdecea;
  --pf-info: #1565c0;

  /* Category accents (per role / post-type -- used for search badges + card accents) */
  --pf-role-driver: #2E7BB5;
  --pf-role-coach: #2E8A57;
  --pf-role-dispatcher: #C47D0E;
  --pf-role-workshop: #7B4FAF;
  --pf-role-admin: #B5232E;
  --pf-role-obi: #1A8A8A;
  --pf-role-release: #3A7D44;
  --pf-role-support: #8B5E3C;
  --pf-attention: #8a5a00;        /* warm amber for "recommended" accents; AA on white */

  /* Surfaces (light mode values) */
  --pf-page-bg: #EEF1F3;
  --pf-surface: #ffffff;
  --pf-surface-2: #f7f9fb;

  /* Stable navy — used as a BACKGROUND (with white text) in a few places
     (table headers, button hovers) that should stay dark navy regardless
     of theme. Do not repoint this at --pf-primary-dark, which flips to a
     light color in dark mode for heading/text use. */
  --pf-navy: #014366;
}
aside.sidecolumn > ul > li {
  margin-right: -15px; }

aside.sidecolumn ul li {
  overflow: visible;
  position: relative; }
  aside.sidecolumn ul li a {
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    float: none; }
  aside.sidecolumn ul li a.pf-edit-link {
    position: absolute;
    top: 0;
    right: -35px;
    padding: 0.4rem 0; }
    aside.sidecolumn ul li a.pf-edit-link:before {
      position: relative;
      float: left;
      font: 400 20px dashicons;
      speak: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      background-image: none !important;
      margin-right: 6px;
      content: "";
      top: 0; }
  aside.sidecolumn ul li a.pf-roles-link {
    position: absolute;
    top: 0;
    right: -10px;
    padding: 0.4rem 0; }
    aside.sidecolumn ul li a.pf-roles-link:before {
      position: relative;
      float: left;
      font: 400 20px dashicons;
      speak: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      background-image: none !important;
      margin-right: 6px;
      content: "";
      top: 0; }

aside.sidecolumn ul.submenu a {
  padding-right: 0.5rem !important; }
  aside.sidecolumn ul.submenu a.pf-edit-link, aside.sidecolumn ul.submenu a.pf-roles-link, aside.sidecolumn ul.submenu a.pf-save-roles-link {
    padding: 0 !important; }

aside.sidecolumn ul.submenu .pf-roles-select-container {
  padding-left: 2.5rem; }

aside.sidecolumn ul ul ul.submenu li .pf-roles-select-container {
  padding-left: 3rem; }

aside.sidecolumn .pf-roles-select-container {
  position: relative;
  padding: 5px 0 10px 1.5rem;
  display: none;
  margin-right: 25px; }
  aside.sidecolumn .pf-roles-select-container a.pf-save-roles-link {
    position: absolute;
    top: 7px;
    right: 0;
    padding: 0;
    width: 30px;
    height: 30px;
    display: none; }
    aside.sidecolumn .pf-roles-select-container a.pf-save-roles-link:before {
      position: relative;
      float: left;
      font: 400 30px dashicons;
      speak: none;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      background-image: none !important;
      margin-right: 6px;
      content: "";
      top: 0; }
    aside.sidecolumn .pf-roles-select-container a.pf-save-roles-link:before {
      margin-right: 0; }
    aside.sidecolumn .pf-roles-select-container a.pf-save-roles-link.pf-saving {
      width: 27px;
      top: 9px; }
      aside.sidecolumn .pf-roles-select-container a.pf-save-roles-link.pf-saving:before {
        font-size: 25px;
        content: "\f463";
        animation: spin 2s linear infinite; }
  aside.sidecolumn .pf-roles-select-container.pf-up-to-date .select2-container .select2-selection {
    border-color: #2a9d4f !important; }
  aside.sidecolumn .pf-roles-select-container.pf-up-to-date .select2-container.select2-container--focus .select2-selection {
    border-color: #1f753b !important; }

.select2-selection__rendered {
  padding-right: 25px !important; }

.submenu {
  clear: both; }


/* === Pilotfish.se Typography Alignment 2026-05 === */

/* Body: Roboto 400 — optimal weight for long-form reading */
body {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--pf-text);
  font-size: 15px;
  line-height: 1.6;
}

/* Headings: Roboto 700 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* Links and small text inherit Roboto */
a, p, li, label, input, button, textarea {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Body background: cleaner, closer to pilotfish.se white */
body {
  background-color: #f5f7f9;
}
body.home {
  background-color: #ffffff;
}

/* Sidebar links: Roboto */
aside.sidecolumn a {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
}
aside.sidecolumn a.active,
aside.sidecolumn .top-level {
  font-weight: 400;
}

/* Nav: Roboto */
header nav a,
.menu-main-list a {
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
}


/* Increase maincolumn left padding to clear the sidebar border */
article.maincolumn {
  padding-left: 3rem;
}


/* === Main column content improvements 2026-05 === */

/* 1. Link colour: match Pilotfish blue instead of teal */
article.maincolumn a {
  color: var(--pf-link);
}
article.maincolumn a:hover {
  color: var(--pf-primary-dark);
  opacity: 1;
  text-decoration: none;
}

/* 2. H2 colour: navy instead of muted grey */
article.maincolumn h2 {
  color: var(--pf-primary-dark);
}

/* 3. H3 colour: slightly lighter navy */
article.maincolumn h3 {
  color: var(--pf-primary-dark);
}

/* 4. H1 top breathing room */
article.maincolumn h1 {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* 5. Lead paragraph: first <p> after h1 slightly larger for easier entry */
article.maincolumn .entry-content > p:first-of-type {
  font-size: 1.05rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
}

/* 6. Paragraph bottom spacing */
article.maincolumn p {
  margin-bottom: 1.1rem;
}

/* 7. Table: softer borders, improved sizing */
article.maincolumn .entry-content tbody,
article.maincolumn .pf-course-description tbody {
  border: 1px solid var(--pf-border);
}
article.maincolumn .entry-content tbody tr,
article.maincolumn .pf-course-description tbody tr {
  border-bottom: 1px solid var(--pf-border);
}
article.maincolumn .entry-content tbody tr:nth-child(even),
article.maincolumn .pf-course-description tbody tr:nth-child(even) {
  background-color: var(--pf-bg-tint);
}
article.maincolumn .entry-content tbody td,
article.maincolumn .pf-course-description tbody td {
  border-right: 1px solid var(--pf-border);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.7rem 1rem;
}
article.maincolumn .entry-content table th,
article.maincolumn .entry-content thead td,
article.maincolumn .pf-course-description table th,
article.maincolumn .pf-course-description thead td {
  background-color: var(--pf-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border: none;
}


/* === Sidebar (left nav) improvements 2026-05 === */

/* Subtle background tint to visually anchor the sidebar */
aside.sidecolumn {
  background-color: var(--pf-bg-tint);
}

/* Top-level group labels: style as clear section headers, not links */
aside.sidecolumn ul li.top-level > a:not(.top-level-course-link),
aside.sidecolumn ul > li.top-level > a:not(.top-level-course-link) {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--pf-text-faint) !important;
  text-transform: uppercase;
  padding-top: 1.4rem;
  padding-bottom: 0.3rem;
  cursor: default;
  pointer-events: none;
}

/* Submenu (second-level) links: cleaner colour + smooth hover */
aside.sidecolumn ul.submenu li a,
aside.sidecolumn ul ul.submenu li a {
  color: #2c4a5e;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.15s ease, padding-left 0.15s ease;
  text-decoration: none;
}

/* Hover: colour shift instead of opacity fade */
aside.sidecolumn ul li a:hover,
aside.sidecolumn ul li a.selected {
  color: var(--pf-primary) !important;
  opacity: 1 !important;
  background-color: var(--pf-bg-highlight);
}

/* Third-level links: slightly smaller */
aside.sidecolumn ul ul ul.submenu li a {
  font-size: 0.85rem;
  color: var(--pf-text-muted);
}

/* Current page: keep existing border-left style, ensure text is fully opaque */
aside.sidecolumn a.active {
  font-weight: 600 !important;
  opacity: 1 !important;
}

/* Narrow the top-level group spacing slightly */
aside.sidecolumn > ul > li {
  margin-bottom: 0.1rem;
}

/* Submenu items: tighten vertical padding for compact feel */
aside.sidecolumn ul ul.submenu li a {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}


/* === Right sidecolumn improvements 2026-05 === */

/* Softer, on-brand left border */
aside.right-sidecolumn .sticky-rightsidecolumn,
aside.right-sidecolumn .sideContent {
  border-left: 2px solid var(--pf-border-soft);
}

/* Subtle background tint to match left sidebar */
/* align-self: flex-start is required for position:sticky to work inside the
   display:flex parent (.entry). Without it the flex item stretches to the full
   container height and sticky never triggers. */
aside.right-sidecolumn {
  background-color: var(--pf-bg-tint);
  align-self: flex-start;
  position: sticky;
  top: 40px;
}

/* Link colour: readable dark blue instead of muted grey */
aside.right-sidecolumn .linked-li a,
aside.right-sidecolumn a.content-link,
aside.right-sidecolumn a.content-link.second-level,
aside.right-sidecolumn a.content-link.third-level {
  color: #2c4a5e;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

/* Third-level: slightly smaller and indented */
aside.right-sidecolumn a.content-link.third-level {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
  padding-left: 0.75rem;
}

/* Hover: colour shift, no opacity fade */
aside.right-sidecolumn .linked-li:hover,
aside.right-sidecolumn .linked-li:hover a,
aside.right-sidecolumn a.content-link:hover,
aside.right-sidecolumn a.content-link.third-level:hover {
  opacity: 1 !important;
  color: var(--pf-primary) !important;
}

/* Active/current section highlight — also overridden with !important via a late
   <style> tag injected in wp_footer @priority 99 (functions.php) which wins the
   source-order tiebreaker against the theme's inline style. This rule is a fallback. */
aside.right-sidecolumn .linked-li.is-active a,
aside.right-sidecolumn .linked-li.is-active a.content-link,
aside.right-sidecolumn .linked-li.is-active a.content-link.second-level,
aside.right-sidecolumn .linked-li.is-active a.content-link.third-level,
aside.right-sidecolumn a.content-link.active {
  color: var(--pf-primary) !important;
  font-weight: 600;
  border-left: 2px solid var(--pf-primary);
  margin-left: -2px;
  padding-left: 0.6rem;
}

/* Consistent padding and font size */
aside.right-sidecolumn .linked-li {
  padding: 5px 1em;
  font-size: 0.875rem;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/* === Company label in left sidebar 2026-05 === */

/* Wrapper at top of sticky left nav */
.pf-company-label {
  padding: 0.7rem 1rem 0.65rem 1rem;
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--pf-border);
  background-color: var(--pf-bg-highlight);
}

/* "Content for" caption line */
.pf-company-label__caption {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pf-text-faint);
  margin-bottom: 0.2rem;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Company name */
.pf-company-label__name {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pf-primary-dark);
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.3;
}




/* === Frontpage h1 — fit welcome heading on one line 2026-05 === */

/* Global h1 is 40px; frontpage container is max 596px.
   clamp scales from 1.25rem (mobile) up to 1.7rem (desktop). */
.frontpage__container h1 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .frontpage__container h1 {
    white-space: normal;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }
}


/* === Search modal overlay 2026-05 === */

body.pf-search-open { overflow: hidden; }

#pf-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1, 27, 51, 0.55);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6vh;
}
#pf-search-overlay.pf-search-overlay--open { display: flex; }

.pf-search-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 660px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 1rem;
}

.pf-search-modal__header {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #e8eef3;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pf-search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--pf-text);
  background: transparent;
}
.pf-search-modal__input::placeholder { color: #b0bac6; }
.pf-search-modal__input:focus {
  outline: 2px solid var(--pf-link);
  outline-offset: 2px;
}

.pf-search-modal__close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #b0bac6;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: color 0.15s;
}
.pf-search-modal__close:hover { color: var(--pf-primary-dark); }

.pf-search-modal__results {
  overflow-y: auto;
  padding: 0.5rem 1.1rem 1rem;
  flex: 1;
}

.pf-search-loading,
.pf-search-no-results {
  color: var(--pf-text-quiet);
  font-style: italic;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.pf-search-count {
  font-size: 0.8rem;
  color: var(--pf-text-quiet);
  padding: 0.6rem 0 0.2rem;
  margin: 0;
}

.pf-search-result {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f4f7;
}
.pf-search-result:last-child { border-bottom: none; }

.pf-search-result__type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pf-primary);
  border-radius: 3px;
  padding: 0.12rem 0.45rem;
  margin-bottom: 0.3rem;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.pf-search-result__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.15rem 0 0.3rem;
  line-height: 1.35;
}
.pf-search-result__title a { color: var(--pf-primary-dark); text-decoration: none; }
.pf-search-result__title a:hover { color: var(--pf-primary); }

.pf-search-result__excerpt {
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  line-height: 1.55;
  margin: 0 0 0.25rem;
}

.pf-search-result__updated {
  font-size: 0.72rem;
  color: var(--pf-text-quiet);
}

@media (max-width: 768px) {
  #pf-search-overlay { padding-top: 0; align-items: flex-end; }
  .pf-search-modal { max-height: 90vh; border-radius: 12px 12px 0 0; margin: 0; }
}


/* === Search result type badge colours 2026-05 === */
.pf-search-result__type[data-ptype="ps_driver"]         { background: var(--pf-role-driver); }
.pf-search-result__type[data-ptype="ps_coaches"]        { background: var(--pf-role-coach); }
.pf-search-result__type[data-ptype="ps_dispatchers"]    { background: var(--pf-role-dispatcher); }
.pf-search-result__type[data-ptype="ps_workshops"]      { background: var(--pf-role-workshop); }
.pf-search-result__type[data-ptype="ps_administrators"] { background: var(--pf-role-admin); }
.pf-search-result__type[data-ptype="ps_obi"]            { background: var(--pf-role-obi); }
.pf-search-result__type[data-ptype="ps_release"]        { background: var(--pf-role-release); }
.pf-search-result__type[data-ptype="pf_support"]        { background: var(--pf-role-support); }
.pf-search-result__type[data-ptype="pf_course"]         { background: var(--pf-primary); }



/* === Content feedback widget 2026-05 === */

.pf-feedback {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pf-border);
}

.pf-feedback__question {
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.pf-feedback__buttons {
  display: flex;
  gap: 0.5rem;
}

.pf-feedback__btn {
  background: none;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  line-height: 1;
  color: var(--pf-primary);
  display: inline-flex;
  align-items: center;
}
.pf-feedback__icon {
  width: 20px;
  height: 20px;
  display: block;
}
.pf-feedback__btn--no { color: #c0667a; }

/* WordPress replaces the 👍/👎 characters with <img class="emoji">. Without an
   explicit size these can render full-width inside the widget — clamp them to
   text size so the button stays a button. */
.pf-feedback img.emoji,
.pf-feedback img.wp-smiley {
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: -0.1em;
  border: none !important;
  box-shadow: none !important;
}

.pf-feedback__btn:hover {
  background: var(--pf-bg-highlight);
  border-color: var(--pf-primary);
}

.pf-feedback__btn--chosen {
  background: var(--pf-bg-highlight);
  border-color: var(--pf-primary);
  transform: scale(1.2);
}

.pf-feedback__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.pf-feedback__thanks,
.pf-feedback__rated {
  font-size: 0.88rem;
  color: var(--pf-primary);
  font-style: italic;
  margin: 0;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.pf-feedback__rated {
  color: var(--pf-text-quiet);
}

.pf-feedback__comment {
  width: 100%;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* The author display rule above defeats the [hidden] attribute's UA
   display:none, so restore it explicitly. */
.pf-feedback__comment[hidden] {
  display: none;
}
.pf-feedback__comment-input {
  width: 100%;
  border: 1px solid var(--pf-border-soft);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
  box-sizing: border-box;
}
.pf-feedback__comment-input:focus {
  outline: 2px solid var(--pf-link);
  outline-offset: 2px;
  border-color: var(--pf-primary);
}
.pf-feedback__comment-actions {
  display: flex;
  gap: 0.5rem;
}
.pf-feedback__comment-send,
.pf-feedback__comment-skip {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid var(--pf-border-soft);
}
.pf-feedback__comment-send {
  background: var(--pf-primary);
  border-color: var(--pf-primary);
  color: #fff;
}
.pf-feedback__comment-send:hover { background: #14466f; }
.pf-feedback__comment-skip {
  background: var(--pf-surface-2);
  color: var(--pf-text-subtle);
}
.pf-feedback__comment-skip:hover { background: var(--pf-bg-tint); }

/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiZXh0cmEuY3NzIiwKCSJzb3VyY2VzIjogWwoJCSJwZi9leHRyYS5zY3NzIgoJXSwKCSJuYW1lcyI6IFtdLAoJIm1hcHBpbmdzIjogIjtBQWVBLEFBR0ksS0FIQyxBQUFBLFdBQVcsR0FFWixFQUFFLEdBQ0EsRUFBRSxDQUFDO0VBQ0gsWUFBWSxFQUFFLEtBQUssR0FDcEI7O0FBTEwsQUFRSSxLQVJDLEFBQUEsV0FBVyxDQU9kLEVBQUUsQ0FDQSxFQUFFLENBQUM7RUFDRCxRQUFRLEVBQUUsT0FBTztFQUNqQixRQUFRLEVBQUMsUUFBUSxHQW9CbEI7RUE5QkwsQUFXTSxLQVhELEFBQUEsV0FBVyxDQU9kLEVBQUUsQ0FDQSxFQUFFLENBR0EsQ0FBQyxDQUFDO0lBQ0EsT0FBTyxFQUFFLDJCQUEyQjtJQUNwQyxLQUFLLEVBQUUsSUFBSSxHQUNaO0VBZFAsQUFlTSxLQWZELEFBQUEsV0FBVyxDQU9kLEVBQUUsQ0FDQSxFQUFFLENBT0EsQ0FBQyxBQUFBLGFBQWEsQ0FBQztJQUNiLFFBQVEsRUFBQyxRQUFRO0lBQ2pCLEdBQUcsRUFBQyxDQUFDO0lBQ0wsS0FBSyxFQUFDLEtBQUs7SUFDWCxPQUFPLEVBQUUsUUFBUSxHQUdsQjtJQXRCUCxBQWRFLEtBY0csQUFBQSxXQUFXLENBT2QsRUFBRSxDQUNBLEVBQUUsQ0FPQSxDQUFDLEFBQUEsYUFBYSxBQTdCakIsT0FBTyxDQUFDO01BQ1AsUUFBUSxFQUFFLFFBQVE7TUFDbEIsS0FBSyxFQUFFLElBQUk7TUFDWCxJQUFJLEVBQUUsR0FBRyxDQUFDLElBQVcsQ0FBQyxTQUFTO01BQy9CLEtBQUssRUFBRSxJQUFJO01BQ1gsc0JBQXNCLEVBQUUsV0FBVztNQUNuQyx1QkFBdUIsRUFBRSxTQUFTO01BQ2xDLGdCQUFnQixFQUFFLGVBQWU7TUFDakMsWUFBWSxFQUFFLEdBQUc7TUFDakIsT0FBTyxFQXlCZSxJQUFPO01BeEI3QixHQUFHLEVBQUUsQ0FBQyxHQUNQO0VBR0gsQUF1Qk0sS0F2QkQsQUFBQSxXQUFXLENBT2Qs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 */
/* === PF Design Improvements 2026-05 === */

/* Fix #1: Wider container to reduce side whitespace */
.wrapper {
  max-width: 1440px;
}

/* Fix #3: Subtle shadow + rounding on content images */
article.maincolumn .entry-content img {
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 0.75rem;
}

/* Fix #5: More breathing room between sidebar groups */
aside.sidecolumn > ul > li.top-level ~ li.top-level {
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}
/* Fix #4: Step headings – left border accent + background tint */
article.maincolumn h4.wp-block-heading {
  border-left: 3px solid var(--pf-primary);
  background-color: var(--pf-bg-tint);
  padding: 0.45rem 0.75rem;
  border-radius: 0 3px 3px 0;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pf-primary-dark);
}
/* Fix #2: Header visual weight */
.header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--pf-primary);
  box-shadow: 0 2px 8px rgba(1, 67, 102, 0.08);
}
/* Fix #7: Clear active page indicator in sidebar */
aside.sidecolumn a.active,
aside.sidecolumn a.content-link.second-level.active {
  color: var(--pf-primary) !important;
  background-color: #e8f4fb;
  border-left: 3px solid var(--pf-primary);
  padding-left: 14px !important;
  margin-left: -3px;
  opacity: 1 !important;
}
/* Readability: constrain text line length for comfortable reading */
/* article.maincolumn p max-width removed — column width handles readability */
/* Page title colour */
article.maincolumn h1 {
  color: var(--pf-primary-dark);
}

/* Landing page card grid */
.pf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.pf-card {
  background: var(--pf-bg-tint);
  border: 1px solid var(--pf-border-soft);
  border-top: 3px solid var(--pf-primary);
  border-radius: 0 0 4px 4px;
  padding: 1rem 1.25rem;
}

/* Distinct accent colour per card — cycles through the role palette */
.pf-card:nth-child(1) { border-top-color: var(--pf-role-driver); }
.pf-card:nth-child(2) { border-top-color: var(--pf-role-coach); }
.pf-card:nth-child(3) { border-top-color: var(--pf-role-dispatcher); }
.pf-card:nth-child(4) { border-top-color: var(--pf-role-workshop); }
.pf-card:nth-child(5) { border-top-color: var(--pf-role-admin); }
.pf-card:nth-child(6) { border-top-color: var(--pf-role-obi); }
.pf-card:nth-child(7) { border-top-color: var(--pf-role-driver); }
.pf-card:nth-child(8) { border-top-color: var(--pf-role-coach); }

.pf-card__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* Title colour matches the card's accent */
.pf-card:nth-child(1) .pf-card__title { color: var(--pf-role-driver); }
.pf-card:nth-child(2) .pf-card__title { color: var(--pf-role-coach); }
.pf-card:nth-child(3) .pf-card__title { color: var(--pf-role-dispatcher); }
.pf-card:nth-child(4) .pf-card__title { color: var(--pf-role-workshop); }
.pf-card:nth-child(5) .pf-card__title { color: var(--pf-role-admin); }
.pf-card:nth-child(6) .pf-card__title { color: var(--pf-role-obi); }
.pf-card:nth-child(7) .pf-card__title { color: var(--pf-role-driver); }
.pf-card:nth-child(8) .pf-card__title { color: var(--pf-role-coach); }
.pf-card__links {
  padding: 0;
  margin: 0;
}
.pf-card__links li {
  max-width: none;
  border-bottom: 1px solid #deeaf4;
  padding: 0.3rem 0;
}
.pf-card__links li:last-child {
  border-bottom: none;
}
.pf-card__links a {
  color: var(--pf-primary-dark);
  font-size: 0.875rem;
  text-decoration: none;
}
.pf-card__links a:hover {
  color: var(--pf-primary);
}
/* Fix #8: Breadcrumbs */
.pf-breadcrumb {
  font-size: 0.8rem;
  color: var(--pf-text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.pf-breadcrumb a {
  color: var(--pf-primary);
  text-decoration: none;
}
.pf-breadcrumb a:hover {
  text-decoration: underline;
}
.pf-breadcrumb .sep {
  color: #c8d8e4;
  margin: 0 0.1rem;
}
/* Sidebar group label dividers */
aside.sidecolumn .sticky-sidecolumn > ul > li.top-level ~ li.top-level { border-top: 1px solid #a8c4d0; margin-top: 0.8rem; padding-top: 0.6rem; }

/* Sidebar dividers FINAL */
aside.sidecolumn .sticky-sidecolumn ul li.top-level + ul.submenu + li.top-level,
aside.sidecolumn .sticky-sidecolumn ul li.top-level ~ li.top-level { border-top: 1px solid #a8c4d0 !important; margin-top: 0.8rem !important; padding-top: 0.6rem !important; }

/* === Prevent horizontal scroll on mobile === */
/* Use overflow-x: clip instead of hidden: clip visually clips the same way
   but does NOT create a new scroll container, so position:sticky works
   correctly on child elements (hidden breaks sticky by making <html> a
   scroll container that interrupts the sticky stacking context). */
html, body {
  overflow-x: clip;
  max-width: 100%;
}
@media (max-width: 1000px) {
  header.header {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
  }
  header .menu-mobile-search {
    width: 100%;
    box-sizing: border-box;
  }
}

/* === Mobile search form fix === */
/* style.css hides .header .search-form at <=1000px; override for mobile container */
@media (max-width: 1000px) {
  header .menu-mobile-search {
    /* display controlled by JS (.hide() on load, slideToggle on click) */
    padding: 0.5rem 1rem;
    background-color: var(--pf-surface);
    border-top: 1px solid var(--pf-border);
    box-sizing: border-box;
  }
  .menu-mobile-search .search-form {
    display: block !important;  /* override .header .search-form {display:none} from style.css */
    position: static !important;
    background-color: transparent !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none;
    margin: 0;
  }
  .menu-mobile-search .search-form input {
    width: calc(100% - 2.5rem);
    background-color: var(--pf-surface);
    border-bottom: solid 1px var(--pf-primary);
    padding: 0.4rem 0.5rem;
    font-size: 0.95rem;
  }
  .menu-mobile-search .search-form .button {
    right: 0;
    color: var(--pf-text-subtle) !important;
    font-size: 1.1rem;
  }
}

/* === Role-aware search page 2026-05 === */

.pf-search-page {
  max-width: 740px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.pf-search-page .search-form { margin-bottom: 2rem; }
.pf-search-page .search-form input[type="search"] {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--pf-border);
  border-radius: 4px;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.pf-search-count {
  color: var(--pf-text-faint);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.pf-search-result {
  border-bottom: 1px solid #e8eef3;
  padding: 1.1rem 0;
}
.pf-search-result:last-of-type { border-bottom: none; }
.pf-search-result__type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background-color: var(--pf-primary);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.35rem;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.pf-search-result__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.2rem 0 0.35rem;
}
.pf-search-result__title a {
  color: var(--pf-primary-dark);
  text-decoration: none;
}
.pf-search-result__title a:hover { color: var(--pf-primary); }
.pf-search-result__excerpt {
  font-size: 0.875rem;
  color: var(--pf-text-muted);
  line-height: 1.6;
  margin: 0 0 0.3rem;
}
.pf-search-result__updated {
  font-size: 0.75rem;
  color: var(--pf-text-quiet);
}
.pf-search-no-results {
  color: var(--pf-text-faint);
  font-style: italic;
  margin-top: 1rem;
}

/* === What's new on frontpage 2026-05 === */

/* Card container — replaces the bare border-top */
.frontpage__whats-new {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--pf-bg-tint);
  border: 1px solid var(--pf-border-soft);
  border-radius: 6px;
}

/* Section heading — left-border accent, uppercase label feel */
.frontpage__whats-new-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-text-subtle);
  margin: 0 0 0.9rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--pf-primary);
}

/* Remove the old pseudo-element underline — card handles separation */
.frontpage__whats-new-heading:after {
  display: none;
}

.frontpage__whats-new-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items: left-border slides in on hover */
.frontpage__whats-new-item {
  padding: 0.5rem 0 0.5rem 0.5rem;
  margin-left: -0.5rem;
  border-bottom: 1px solid #e4edf3;
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease;
}
.frontpage__whats-new-item:last-child { border-bottom: none; }
.frontpage__whats-new-item:hover {
  border-left-color: var(--pf-primary);
}

.frontpage__whats-new-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.frontpage__whats-new-link:hover .frontpage__whats-new-title {
  color: var(--pf-primary);
}
.frontpage__whats-new-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pf-primary-dark);
  transition: color 0.15s ease;
}
.frontpage__whats-new-meta {
  display: flex;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
}

/* Type: small pill badge */
.frontpage__whats-new-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-primary-dark);
  background-color: var(--pf-bg-tint);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

/* Date: slightly warmer */
.frontpage__whats-new-date {
  font-size: 0.75rem;
  color: #8a9fb0;
}

/* ── Freshness badges (New / Updated) ───────────────────────────────────── */
.pf-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.6;
    white-space: nowrap;
}
.pf-badge--new {
    background: var(--pf-success);
    color: #fff;
}
.pf-badge--updated {
    background: var(--pf-info);
    color: #fff;
}

/* Badge inside h1 on post pages */
h1 .pf-badge {
    font-size: 12px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* Badge in What's New list */
.frontpage__whats-new-title .pf-badge,
.frontpage__whats-new-link .pf-badge {
    margin-left: 6px;
}

/* Badge in search results */
.pf-search-result__header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.pf-search-result__header .pf-badge {
    margin-left: 0;
}

/* ── Role cards refresh 2026-05 ─────────────────────────────────────────── */

/* Center the intro text to match the (editorially centred) h1 */
.frontpage__container > p,
.frontpage__container > .wp-block-paragraph {
  text-align: center;
}

/* Break the cards out of the 596px container while keeping text constrained.
   The full-bleed technique: position relative to viewport, then re-center.
   Container stays 596px so the welcome text and What's new don't stretch. */
.frontpage__boxes {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  max-width: 900px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

/* Roles heading: text centred on a horizontal rule ─── ROLLER ─── */
.frontpage__boxes-heading {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-text-subtle) !important;
  margin-bottom: 1rem;
  white-space: nowrap;
}
.frontpage__boxes-heading:before,
.frontpage__boxes-heading:after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--pf-border-soft);
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

/* Card: swap opacity-fade hover for a lift */
.frontpage__box {
  border: 1px solid var(--pf-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.frontpage__box:hover {
  opacity: 1 !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
}

/* Image container: clip the image, no overflow */
.frontpage__box-image-container {
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

/* Image: reduce from 80% to 58% — less portrait, less wasted space.
   background-size: cover ensures the image fills the box without stretching. */
.frontpage__box-image {
  padding-bottom: 58% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Card title: on-brand colour, readable size, centered.
   Base theme sets display:flex on this h2, so text-align has no effect —
   use justify-content:center instead. Also constrain width to the card. */
.frontpage__box-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--pf-primary-dark) !important;
  padding: 10px 12px 12px !important;
  text-align: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* ── Content page quick wins 2026-05 ────────────────────────────────────── */

/* 1. Numbered & bulleted list item spacing */
article#mainContent.maincolumn ol li,
article#mainContent.maincolumn ul:not(.sub-content) li,
article.maincolumn .entry-content ol li {
  margin-bottom: 0.65em !important;
  line-height: 1.65;
}

/* 2. Figure caption styling */
article.maincolumn figcaption,
article#mainContent.maincolumn figcaption {
  font-size: 0.8rem;
  color: var(--pf-text-faint);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}

/* 3. Collapse right in-page TOC below 1200px — give content column more room */
@media (max-width: 1200px) {
  aside.right-sidecolumn {
    display: none !important;
  }
  article#mainContent.maincolumn {
    width: 76% !important;
  }
}

/* ── Mobile layout fixes ≤1000px ─────────────────────────────────────────── */
/* At ≤1000px the theme stacks sidebar above article (both 100% wide).
   Our ≤1200px rule above forces 76% with !important — override it here. */
@media (max-width: 1000px) {
  article#mainContent.maincolumn {
    width: 100% !important;
  }
  /* Reduce the 3rem left-padding added for sidebar clearance — no sidebar at mobile */
  article.maincolumn {
    padding-left: 1rem;
  }
}


/* ── Right TOC "On this page" heading ───────────────────────────────────── */
.pf-toc-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pf-text-faint);
  margin: 0 0 0.25rem;
  padding: 0.75rem 1em 0.5rem;
  border-bottom: 1px solid #d0e8f5;
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ── Scroll-to-top button ────────────────────────────────────────────────── */
.scroll-back-to-top-wrapper {
  width: 40px !important;
  height: 40px !important;
  background-color: var(--pf-primary) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 12px rgba(1, 67, 102, 0.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
  opacity: 0.88;
  cursor: pointer;
}
.scroll-back-to-top-wrapper:hover {
  background-color: var(--pf-navy) !important;
  transform: translateY(-3px);
  opacity: 1 !important;
}
.scroll-back-to-top-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.scroll-back-to-top-wrapper .fa-chevron-up {
  color: #ffffff !important;
  font-size: 14px !important;
}

/* ── Freshness badge ─────────────────────────────────────────────────────── */
.pf-freshness-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pf-success);
  background-color: var(--pf-success-bg);
  border: 1px solid var(--pf-success);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  margin-left: 0.6rem;
  line-height: 1;
  position: relative;
  top: -2px;
  white-space: nowrap;
}

/* Last-updated line below article content */
.pf-last-updated {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--pf-text-faint);
  border-top: 1px solid #e4edf3;
  padding-top: 0.75rem;
}
.pf-last-updated__label {
  font-weight: 600;
  margin-right: 0.3em;
}

/* ── Wanda fun-fact card (frontpage) ─────────────────────────────────────── */
.frontpage__funfact {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(135deg, var(--pf-success-bg) 0%, var(--pf-surface-2) 100%);
  border-left: 4px solid var(--pf-success);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  margin-top: 2rem;
}
.frontpage__funfact-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

/* ── Compact variant — role pages ────────────────────────────────────────── */
.frontpage__funfact--compact {
  display: block;
  max-width: 400px;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
}
.frontpage__funfact--compact .frontpage__funfact-icon {
  display: none;
}

/* Course link in sidebar — override top-level heading styles */
.top-level--course .top-level-course-link {
  display: block;
  pointer-events: auto !important;
  text-transform: none;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--pf-primary);
  text-decoration: none;
  padding: 0.3rem 0;
  cursor: pointer;
}
.top-level--course .top-level-course-link:hover,
.top-level--course .top-level-course-link.active {
  color: var(--pf-primary-dark);
  text-decoration: underline;
}
.frontpage__funfact-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.frontpage__funfact-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--pf-success);
}
.frontpage__funfact-main {
  margin: 0;
  font-size: 0.97rem;
  color: var(--pf-text);
  line-height: 1.55;
}
.frontpage__funfact--compact .frontpage__funfact-main {
  margin: 0 !important;
  line-height: 1.4;
}
.frontpage__funfact--compact .frontpage__funfact-list {
  margin-top: 0.2rem !important;
}
.frontpage__funfact-stat {
  color: var(--pf-success-dark);
  font-size: 1.15em;
}
.frontpage__funfact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.frontpage__funfact-list li {
  font-size: 0.88rem;
  color: var(--pf-text-muted);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .frontpage__funfact {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.9rem 1rem;
  }
  .frontpage__funfact-icon {
    font-size: 1.5rem;
  }
}

/* ── Course catalogue ────────────────────────────────────────────────────── */
.pf-catalogue { margin-top: 1.5rem; }
.pf-catalogue-empty { color: #777; font-style: italic; }

.pf-catalogue__group { margin-bottom: 2rem; }
.pf-catalogue__group-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-text-subtle);
  margin: 0 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pf-primary);
}
.pf-catalogue__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Course card */
.pf-course-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 220px;
  max-width: 300px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border-soft);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s;
}
.pf-course-card:hover {
  box-shadow: 0 4px 18px rgba(63,133,183,.13);
  transform: translateY(-2px);
  text-decoration: none;
}
.pf-course-card--done {
  border-color: var(--pf-success);
}
.pf-course-card__img {
  width: 100%;
  height: 130px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--pf-bg-tint);
  flex-shrink: 0;
}
.pf-course-card__img--placeholder {
  background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-success) 100%);
}
.pf-course-card__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
}
.pf-course-card__level {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pf-primary);
}
.pf-course-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pf-primary-dark);
  margin: 0;
  line-height: 1.35;
}
.pf-course-card__excerpt {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
  margin: 0;
  line-height: 1.4;
}
.pf-course-card__meta {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--pf-text-subtle);
}
.pf-course-card__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.pf-course-card__progress-bar {
  flex: 1;
  height: 5px;
  background: var(--pf-bg-tint);
  border-radius: 3px;
  overflow: hidden;
}
.pf-course-card__progress-fill {
  height: 100%;
  background: var(--pf-primary);
  border-radius: 3px;
  transition: width 0.3s;
}
.pf-course-card--done .pf-course-card__progress-fill { background: var(--pf-success); }
.pf-course-card__progress-label {
  font-size: 0.72rem;
  color: var(--pf-text-subtle);
  white-space: nowrap;
}
.pf-course-card__badge {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pf-success);
}

/* ── Course quiz ─────────────────────────────────────────────────────────── */
.pf-quiz {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--pf-border);
}
.pf-quiz--locked { opacity: 0.6; }
.pf-quiz__header { margin-bottom: 1.25rem; }
.pf-quiz__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pf-primary-dark);
  margin: 0 0 0.25rem;
}
.pf-quiz__subtitle {
  font-size: 0.82rem;
  color: var(--pf-text-subtle);
  margin: 0 0 0.4rem;
}
.pf-quiz__locked-msg {
  font-size: 0.88rem;
  color: var(--pf-text-subtle);
  margin: 0.25rem 0 0;
}
.pf-quiz__prev {
  font-size: 0.82rem;
  color: var(--pf-text-subtle);
  margin: 0.25rem 0 0;
}
.pf-quiz__badge--pass { color: var(--pf-success); font-weight: 600; }
.pf-quiz__badge--fail { color: var(--pf-error); font-weight: 600; }

/* Questions */
.pf-quiz__question {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  background: var(--pf-surface-2);
  transition: border-color 0.2s;
}
.pf-quiz__question--correct { border-color: var(--pf-success); background: var(--pf-success-bg); }
.pf-quiz__question--wrong   { border-color: var(--pf-error); background: var(--pf-error-bg); }
.pf-quiz__question-text {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--pf-primary-dark);
  margin: 0 0 0.75rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.pf-quiz__qnum {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pf-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}
.pf-quiz__options { display: flex; flex-direction: column; gap: 0.4rem; }
.pf-quiz__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--pf-border-soft);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-size: 0.88rem;
}
.pf-quiz__option:hover { background: var(--pf-bg-tint); border-color: var(--pf-primary); }
.pf-quiz__option--correct { border-color: var(--pf-success) !important; background: var(--pf-success-bg) !important; }
.pf-quiz__option-key {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pf-border);
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pf-text-subtle);
}
.pf-quiz__option--correct .pf-quiz__option-key { border-color: var(--pf-success); color: var(--pf-success); }
.pf-quiz__correct-badge {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--pf-success);
  font-weight: 600;
}
.pf-quiz__option input[type="radio"] { flex-shrink: 0; accent-color: var(--pf-primary); }
.pf-quiz__explanation {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--pf-text-subtle);
  font-style: italic;
  padding-left: 0.5rem;
  border-left: 2px solid var(--pf-border);
}

/* Submit + score */
.pf-quiz__submit {
  margin-top: 1rem;
  padding: 0.65rem 1.5rem;
  background: var(--pf-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.pf-quiz__submit:hover { background: var(--pf-navy); }
.pf-quiz__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.pf-quiz__results { margin-top: 1rem; }
.pf-quiz__score {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.pf-quiz__score--pass { background: var(--pf-success-bg); border: 1.5px solid var(--pf-success); }
.pf-quiz__score--fail { background: var(--pf-error-bg); border: 1.5px solid var(--pf-error); }
.pf-quiz__score-pct  { font-size: 1.4rem; font-weight: 700; }
.pf-quiz__score--pass .pf-quiz__score-pct  { color: var(--pf-success); }
.pf-quiz__score--fail .pf-quiz__score-pct  { color: var(--pf-error); }
.pf-quiz__score-label { font-size: 0.9rem; font-weight: 600; }
.pf-quiz__retake {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--pf-bg-tint);
  color: var(--pf-primary);
  border: 1px solid var(--pf-border-soft);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.pf-quiz__retake:hover { background: var(--pf-primary); color: #fff; }
.pf-quiz__completed {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.pf-quiz__retake-toggle {
  padding: 0.4rem 0.9rem;
  background: transparent;
  color: var(--pf-text-subtle);
  border: 1px solid var(--pf-border-soft);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.pf-quiz__retake-toggle:hover { background: var(--pf-bg-tint); color: var(--pf-primary); border-color: var(--pf-primary); }
.pf-quiz__form--hidden { display: none; }

@media (max-width: 600px) {
  .pf-quiz__option { flex-wrap: wrap; }
}

/* ── Single course page ──────────────────────────────────────────────────── */
.pf-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.pf-course-meta__level {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--pf-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.pf-course-meta__duration,
.pf-course-meta__count {
  font-size: 0.82rem;
  color: var(--pf-text-subtle);
}
.pf-course-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.pf-course-progress__bar {
  flex: 1;
  height: 7px;
  background: var(--pf-bg-tint);
  border-radius: 4px;
  overflow: hidden;
}
.pf-course-progress__fill {
  height: 100%;
  background: var(--pf-primary);
  border-radius: 4px;
  transition: width 0.3s;
}
.pf-course-progress__label {
  font-size: 0.8rem;
  color: var(--pf-text-subtle);
  white-space: nowrap;
}
.pf-course-description {
  margin-bottom: 1.5rem;
  color: var(--pf-text);
  line-height: 1.6;
}
.pf-lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pf-lesson-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--pf-border);
  border-left: 3px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.pf-lesson-list__item:hover {
  background: var(--pf-bg-tint);
  border-left-color: var(--pf-primary);
}
.pf-lesson-list__item--done { border-left-color: var(--pf-success); }
.pf-lesson-list__item--done .pf-lesson-list__link { color: var(--pf-success); }
.pf-lesson-list__num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pf-bg-tint);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pf-primary);
}
.pf-lesson-list__item--done .pf-lesson-list__num {
  background: var(--pf-success-bg);
  color: var(--pf-success);
}
.pf-lesson-list__link {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--pf-primary-dark);
  text-decoration: none;
}
.pf-lesson-list__link:hover { text-decoration: underline; }
.pf-lesson-list__check {
  color: var(--pf-success);
  font-weight: 700;
  font-size: 1rem;
}
.pf-lesson-list__item--next {
  border-left-color: var(--pf-primary);
  background: var(--pf-bg-tint);
}
.pf-lesson-list__next-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--pf-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* Personalized focus-areas callouts in the course description (pf_if_grade
   blocks in post_content). Container is styled per-item so an all-hidden
   block renders nothing -- do not style the wrapper (:empty is defeated by
   whitespace text nodes, see the rightNav gotcha). */
.pf-focus-areas__item {
  border-left: 3px solid var(--pf-attention);
  background: var(--pf-bg-tint);
  border-radius: 0 6px 6px 0;
  padding: 0.7rem 1rem;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.pf-focus-areas__item--praise {
  border-left-color: var(--pf-success);
}

/* "Recommended for you" badge -- WANDA-adaptive lesson list. Shown on
   lessons whose lesson_wanda_category matches a grade category the current
   driver is rated BAD/VERY_BAD in. Outline style so it reads as guidance,
   not a primary action like the solid next-badge. */
.pf-lesson-list__reco-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-attention);
  border: 1px solid var(--pf-attention);
  padding: 0.12rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* Lesson prev/next navigation */
.pf-lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 0.5rem;
}
.pf-lesson-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  background: var(--pf-bg-highlight);
  color: var(--pf-primary);
  border: 1px solid var(--pf-border);
}
.pf-lesson-nav__btn:hover {
  background: var(--pf-primary);
  color: #fff !important;
  text-decoration: none;
}
.pf-lesson-nav__btn--next {
  margin-left: auto;
  background: var(--pf-primary);
  color: #fff !important;
  border-color: var(--pf-primary);
}
.pf-lesson-nav__btn--next:hover {
  background: var(--pf-navy);
}
.pf-lesson-nav__btn--finish {
  background: var(--pf-success);
  border-color: var(--pf-success);
}
.pf-lesson-nav__btn--finish:hover {
  background: var(--pf-success-dark);
}
@media (max-width: 600px) {
  /* Sticky bottom bar on mobile — always reachable without scrolling */
  .pf-lesson-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    background: var(--pf-surface);
    border-top: 1px solid var(--pf-border-soft);
    box-shadow: 0 -3px 14px rgba(0,0,0,0.10);
    padding: 0.6rem 0.75rem;
    margin: 0;
    z-index: 200;
    gap: 0.5rem;
  }
  .pf-lesson-nav__btn {
    flex: 1;
    justify-content: center;
    margin-left: 0 !important;
  }
  /* Breathing room so the last content line isn't hidden behind the bar */
  article#mainContent.maincolumn { padding-bottom: 72px; }
}

/* Lesson complete button */
.pf-lesson-complete {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pf-border);
}
.pf-lesson-complete__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--pf-primary);
  border-radius: 6px;
  background: var(--pf-surface);
  color: var(--pf-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pf-lesson-complete__btn:hover {
  background: var(--pf-primary);
  color: #fff;
}
.pf-lesson-complete__btn--done {
  background: var(--pf-success-bg);
  border-color: var(--pf-success);
  color: var(--pf-success);
}
.pf-lesson-complete__btn--done:hover {
  background: var(--pf-success);
  color: #fff;
}

@media (max-width: 600px) {
  .pf-course-card { flex: 1 1 100%; max-width: 100%; }
}

/* ── News card sections (Pilotfish News + LinkedIn, frontpage) ───────────── */
.frontpage__pf-news,
.frontpage__linkedin {
  margin-top: 2.5rem;
}
.frontpage__news-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pf-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.frontpage__news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.frontpage__news-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 240px;
  max-width: 300px;
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.18s;
}
.frontpage__news-card:hover {
  box-shadow: 0 4px 18px rgba(63,133,183,0.13);
  transform: translateY(-2px);
  text-decoration: none;
}
.frontpage__news-card-img {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--pf-border-soft);
  flex-shrink: 0;
}
.frontpage__news-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.frontpage__news-card .frontpage__news-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--pf-primary);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.frontpage__news-card .frontpage__news-card-excerpt {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
  margin: 0 0 0.6rem;
  line-height: 1.5;
  flex: 1;
}
.frontpage__news-card-date {
  font-size: 0.75rem;
  color: var(--pf-text-faint);
  display: block;
  margin-bottom: 0.5rem;
}
.frontpage__news-card-cta {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: auto;
  color: var(--pf-primary); /* default */
}
.frontpage__news-card-cta--pf {
  color: var(--pf-primary); /* Pilotfish blue */
}
.frontpage__news-card-cta--li {
  color: #0a66c2; /* LinkedIn blue */
}
.frontpage__news-card:hover .frontpage__news-card-cta {
  text-decoration: underline;
}

/* === Admin role-card image crop fix (added 2026-07) ===
   The Administration role's featured image (administration.jpg) is a 1900x400
   ultra-wide banner -- a very different shape from the other role photos
   (roughly square/portrait). The card grid crops every image to a fixed
   ~1.72 ratio via background-size:cover, which for this one image means only
   the center ~36% of its width is shown -- landing mostly on the middle of a
   stock chart rather than the hand/pen that's the photo's actual subject.
   Shifting the focal point right brings the hand+pen into view instead.
   This is a mitigation, not a real fix -- the real fix is a differently
   shaped source photo (similar aspect ratio to the other four role images). */
.frontpage__box a[href*="administration" i] .frontpage__box-image,
.frontpage__box a[href*="admin" i] .frontpage__box-image {
  background-position: 68% 50% !important;
}

/* === Table horizontal-scroll fix (mobile) 2026-07 ===
   style.css's tbody{display:block} without a matching thead override breaks
   column alignment between header and body cells on every content table --
   headers and data columns end up completely misaligned. The intended
   overflow-x:scroll on the <table> itself also never engaged (scrollWidth
   equalled clientWidth in testing), so wide tables silently overflowed and
   got clipped by html,body{overflow-x:clip} instead of scrolling.
   Verified via live DOM injection test before deploying: this fix aligns
   columns correctly and creates a working horizontal scroll region.
   Fix: scroll on the Gutenberg .wp-block-table wrapper instead of the
   table itself; revert tbody to normal table layout (table-row-group) so
   columns align via the browser's native table layout algorithm. */
article.maincolumn .entry-content .wp-block-table,
article.maincolumn .pf-course-description .wp-block-table {
  overflow-x: auto;
  max-width: 100%;
}
article.maincolumn .entry-content table,
article.maincolumn .pf-course-description table {
  overflow-x: visible;
}
article.maincolumn .entry-content tbody,
article.maincolumn .pf-course-description tbody {
  display: table-row-group;
  width: auto;
}

/* WordPress core's "Stripes" table style (wp-includes block-library CSS)
   hardcodes the odd-row stripe to #f0f0f0 regardless of theme -- tables
   using it (no real <th>/<thead>, just tr:nth-child(odd) striping) render
   with an unreadable light band in dark mode. Token-based override so it
   follows the theme like everything else. */
article.maincolumn .entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
article.maincolumn .pf-course-description .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: var(--pf-surface-2) !important;
}

/* ============================================================
   Dark mode — respects system preference by default; an explicit
   data-theme attribute (set by the toggle, persisted in localStorage)
   always overrides it. See assets/src/js/theme-toggle.js.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pf-primary: #5B9BD5;
    --pf-primary-dark: #c9dcea;
    --pf-link: #5B9BD5;
    --pf-text: #dfe6ec;
    --pf-text-muted: #b7c4cf;
    --pf-text-subtle: #93a7b5;
    --pf-text-faint: #7590a0;
    --pf-text-quiet: #6d8896;
    --pf-border: #2c3b47;
    --pf-border-soft: #24313c;
    --pf-bg-tint: #18222b;
    --pf-bg-highlight: #1c2e3d;
    --pf-success: #66BB6A;
    --pf-success-dark: #81C784;
    --pf-success-bg: #1b3320;
    --pf-error: #EF5350;
    --pf-error-bg: #3a1c1c;
    --pf-info: #64B5F6;
    --pf-role-driver: #4FA3D9;
    --pf-role-coach: #4FB37E;
    --pf-role-dispatcher: #E0A03E;
    --pf-role-workshop: #A47AD1;
    --pf-role-admin: #E0616B;
    --pf-role-obi: #3DB8B8;
    --pf-role-release: #5FA76A;
    --pf-role-support: #B08A6A;
  --pf-attention: #E0A03E;
    --pf-page-bg: #10161c;
    --pf-surface: #1a2530;
    --pf-surface-2: #212e3a;
  }
}
:root[data-theme="dark"] {
  --pf-primary: #5B9BD5;
  --pf-primary-dark: #c9dcea;
  --pf-link: #5B9BD5;
  --pf-text: #dfe6ec;
  --pf-text-muted: #b7c4cf;
  --pf-text-subtle: #93a7b5;
  --pf-text-faint: #7590a0;
  --pf-text-quiet: #6d8896;
  --pf-border: #2c3b47;
  --pf-border-soft: #24313c;
  --pf-bg-tint: #18222b;
  --pf-bg-highlight: #1c2e3d;
  --pf-success: #66BB6A;
  --pf-success-dark: #81C784;
  --pf-success-bg: #1b3320;
  --pf-error: #EF5350;
  --pf-error-bg: #3a1c1c;
  --pf-info: #64B5F6;
  --pf-role-driver: #4FA3D9;
  --pf-role-coach: #4FB37E;
  --pf-role-dispatcher: #E0A03E;
  --pf-role-workshop: #A47AD1;
  --pf-role-admin: #E0616B;
  --pf-role-obi: #3DB8B8;
  --pf-role-release: #5FA76A;
  --pf-role-support: #B08A6A;
  --pf-attention: #E0A03E;
  --pf-page-bg: #10161c;
  --pf-surface: #1a2530;
  --pf-surface-2: #212e3a;
}

/* Structural surfaces — !important throughout: this theme has many existing
   rules at equal or higher specificity for these same selectors/properties
   scattered across app.css/extra.css, so a plain override is not reliable
   here. This block is deliberately the single, final word on theme surfaces. */
body { background-color: var(--pf-page-bg) !important; }
header, .header { background-color: var(--pf-surface) !important; }
.footer { background-color: var(--pf-page-bg) !important; color: var(--pf-text-muted) !important; }
.footer a { color: var(--pf-text-subtle) !important; }
.pf-search-modal { background: var(--pf-surface) !important; }
.pf-search-modal__header { border-bottom: 1px solid var(--pf-border-soft) !important; }
.pf-search-result { background: var(--pf-surface) !important; border-color: var(--pf-border) !important; }
.frontpage__box { background: var(--pf-surface) !important; }
.frontpage__news-card { background: var(--pf-surface) !important; }
aside.sidecolumn { background: var(--pf-surface) !important; }
aside.right-sidecolumn { background: var(--pf-surface) !important; }
article.maincolumn { background: var(--pf-surface) !important; }
.pf-feedback { background: var(--pf-surface-2) !important; border-color: var(--pf-border) !important; }
.pf-card { background: var(--pf-surface-2) !important; border-color: var(--pf-border) !important; }

/* Toggle button */
.pf-theme-toggle {
  background: var(--pf-bg-highlight);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--pf-primary);
  border-radius: 50%;
  margin-right: 0.85rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.menu-search {
  padding-left: 0.85rem;
  border-left: 1px solid var(--pf-border);
}
.pf-theme-toggle:hover { background-color: var(--pf-bg-highlight); color: var(--pf-primary-dark); }
.pf-theme-toggle:focus-visible { outline: 2px solid var(--pf-link); outline-offset: 2px; }
.pf-theme-toggle svg { width: 18px; height: 18px; }
.pf-theme-toggle .pf-theme-toggle__icon-dark { display: none; }
[data-theme="dark"] .pf-theme-toggle .pf-theme-toggle__icon-light { display: none; }
[data-theme="dark"] .pf-theme-toggle .pf-theme-toggle__icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pf-theme-toggle .pf-theme-toggle__icon-light { display: none; }
  :root:not([data-theme="light"]) .pf-theme-toggle .pf-theme-toggle__icon-dark { display: block; }
}

/* Smooth theme transition on toggle click */
body, .pf-search-modal, .frontpage__box, .frontpage__news-card, article.maincolumn,
aside.sidecolumn, aside.right-sidecolumn, .footer, .pf-feedback {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Logo — no light-variant asset exists, so approximate with a filter that
   turns the wordmark into a clean white silhouette on dark headers. This
   loses the pink accent color; a proper light-logo asset would look better
   if design ever provides one. */
[data-theme="dark"] .logotype img,
[data-theme="dark"] .logotype-mobile img {
  filter: brightness(0) invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logotype img,
  :root:not([data-theme="light"]) .logotype-mobile img {
    filter: brightness(0) invert(1);
  }
}

/* .entry (style.css) has its own hardcoded white background + light-gray
   box-shadow, sitting behind aside.sidecolumn/article.maincolumn/
   aside.right-sidecolumn — this was showing through in the gaps/margins
   around those children. */
.entry {
  background-color: var(--pf-surface) !important;
  box-shadow: none !important;
}
.header .search-form input {
  background-color: var(--pf-surface) !important;
  color: var(--pf-text) !important;
}
aside.sidecolumn a.active,
aside.sidecolumn a.content-link.second-level.active {
  background-color: var(--pf-bg-highlight) !important;
}
