/* ==========================================================================
   Blog post design system — iBOXED brand (tokens: data/brand-tokens.json)
   Components: stat tiles, data boxes, styled tables, FAQ accordion,
   sources footer, map card frame. Loaded after iboxed-chrome.css.
   ========================================================================== */

:root {
  --ib-orange: #FD8246;
  --ib-orange-deep: #ff6a23;
  --ib-brown: #7F4123;
  --ib-black: #16191D;
  --ib-panel: #1F252E;
  --ib-grey-dark: #62646f;
  --ib-grey-light: #c6c8cc;
  --ib-grey-lighter: #dde0e5;
  --ib-grey-lightest: #f1f3f6;
  --ib-pale: #fffad1;
}

/* ---------- Base typography: match the main site ----------
   iboxed.store sets these vars in an inline head style block (vendored into
   iboxed-chrome.css by sync-chrome): Inter body + headings, tight heading
   letter-spacing. Anchor the blog to the same variables. */
body {
  font-family: var(--body-font-family, Inter, sans-serif);
  color: var(--ib-black);
  /* backstop: no stray element may ever scroll the page sideways on mobile */
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font-family, Inter, sans-serif);
  letter-spacing: var(--heading-letter-spacing, -0.025em);
}
.post-content {
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Stat tiles ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-tile {
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-top: 4px solid var(--ib-orange);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.06);
}
.stat-tile__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ib-black);
  font-variant-numeric: tabular-nums;
}
.stat-tile__label {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--ib-grey-dark);
}
.stat-tile__source {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ib-grey-dark);
  opacity: 0.85;
  border-top: 1px dashed var(--ib-grey-lighter);
  padding-top: 0.5rem;
}

/* ---------- Data box (dark callout, echoes homepage benefits band) ---------- */
.data-box {
  background: var(--ib-panel);
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.data-box__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.data-box__title::before {
  content: "";
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  border-radius: 2px;
  background: var(--ib-orange);
  margin-right: 0.55em;
}
.data-box p { color: var(--ib-grey-lighter); margin: 0.5rem 0; }
.data-box strong { color: #fff; }
.data-box a { color: var(--ib-orange); }
.data-box ul { color: var(--ib-grey-lighter); margin: 0.5rem 0 0; padding-left: 1.2rem; }
.data-box__source { font-size: 0.78rem; opacity: 0.75; margin-top: 0.9rem; }

/* ---------- Tables in post content ---------- */
.post-content table, .blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 0.5rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.08);
  font-size: 0.95rem;
}
.post-content table th, .blog-table th {
  background: var(--ib-black);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  white-space: nowrap;
}
.post-content table td, .blog-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--ib-grey-lightest);
  color: var(--ib-black);
}
.post-content table tr:nth-child(even) td { background: var(--ib-grey-lightest); }
.post-content table tr:hover td { background: var(--ib-pale); }
.table-source {
  font-size: 0.8rem;
  color: var(--ib-grey-dark);
  margin: 0.35rem 0 1.5rem;
}
.table-scroll { overflow-x: auto; }
/* On narrow screens a wide table scrolls inside its own box instead of
   dragging the whole page sideways (the mobile "jiggle") */
@media (max-width: 700px) {
  .post-content table, .blog-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- FAQ accordion (details/summary — no JS) ---------- */
.faq { margin: 2rem 0; }
.faq__item {
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--ib-black);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--ib-orange);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] summary { border-bottom: 1px solid var(--ib-grey-lightest); }
.faq__answer { padding: 0.9rem 1.1rem; color: var(--ib-grey-dark); }
.faq__answer p { margin: 0 0 0.5rem; }

/* ---------- Sources & verification footer ---------- */
.sources-footer {
  background: var(--ib-grey-lightest);
  border-left: 4px solid var(--ib-orange);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--ib-grey-dark);
}
.sources-footer__title {
  font-weight: 700;
  color: var(--ib-black);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.sources-footer ul { margin: 0; padding-left: 1.1rem; }
.sources-footer li { margin: 0.2rem 0; }
.sources-footer__verified { margin-top: 0.6rem; font-style: italic; }

/* ---------- Interactive "visit us" map (partials/map.html) ---------- */
.site-map { margin: 1.5rem 0 2rem; }
.site-map__canvas-wrap {
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.08);
  position: relative;
}
.site-map__canvas {
  height: 460px;
  width: 100%;
  z-index: 1;
  background: var(--ib-grey-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 560px) {
  .site-map__canvas { height: 340px; }
}
.site-map__placeholder {
  color: var(--ib-grey-dark);
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}
/* Gently mute the basemap — keep its colour, just let the orange pins lead */
.site-map .leaflet-tile-pane {
  filter: saturate(0.8) contrast(0.97) brightness(1.02);
}
.site-map__note {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--ib-panel);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(22, 25, 29, 0.35);
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}
.ib-pin svg { filter: drop-shadow(0 2px 3px rgba(22, 25, 29, 0.35)); }
/* "You are here" dot (start of a directions route) */
.ib-you-dot {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25), 0 1px 4px rgba(22, 25, 29, 0.4);
}

/* Charcoal popup card, echoing .data-box */
.site-map .leaflet-popup-content-wrapper {
  background: var(--ib-panel);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(22, 25, 29, 0.35);
}
.site-map .leaflet-popup-tip { background: var(--ib-panel); }
.site-map .leaflet-popup-close-button { color: var(--ib-grey-light) !important; }
.ib-popup { text-align: center; font-family: var(--body-font-family, Inter, sans-serif); min-width: 190px; padding: 0.2rem 0; }
.ib-popup h3 { margin: 0 0 0.25rem; font-size: 1rem; color: #fff; }
.ib-popup p { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--ib-grey-lighter); line-height: 1.3; }
.ib-popup__btn {
  display: inline-block;
  background: var(--ib-orange);
  color: #fff !important;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}
.ib-popup__btn:hover { background: var(--ib-orange-deep); text-decoration: none; }
.ib-popup__prices {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ib-orange) !important;
  text-decoration: none;
  font-weight: 500;
}
.ib-popup__prices:hover { text-decoration: underline; }

/* Address cards under the map — always visible, double as the no-JS fallback */
.site-map__cards {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.site-map__card {
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-left: 4px solid var(--ib-orange);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.06);
}
.site-map__card-name { margin: 0 0 0.25rem; font-size: 1rem; }
.site-map__card-address { margin: 0 0 0.5rem; color: var(--ib-grey-dark); font-size: 0.9rem; }
.site-map__card-links { margin: 0; font-size: 0.85rem; }
.site-map__card-links a { color: var(--ib-orange-deep); font-weight: 600; }
.site-map__card-links span { color: var(--ib-grey-light); margin: 0 0.3rem; }

/* ---------- Static data-map figures (build-time SVG, shortcode map-figure) ---------- */
.map-figure { margin: 2rem 0; }
.map-figure__frame {
  position: relative;
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.08);
}
.map-figure svg { display: block; width: 100%; height: auto; }
/* Open-full-size control: quiet corner chip. Always visible (touch has no
   hover), brightens on hover/focus. The svg rule above is un-scoped, so the
   icon needs its size pinned back. */
.map-figure__expand {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ib-grey-lighter);
  color: var(--ib-grey-dark);
  opacity: 0.65;
  transition: opacity 0.15s ease;
}
.map-figure__expand svg { width: 16px; height: 16px; }
.map-figure__expand:hover,
.map-figure__expand:focus-visible {
  opacity: 1;
  color: var(--ib-orange-deep);
}
.map-figure figcaption {
  font-size: 0.85rem;
  color: var(--ib-grey-dark);
  margin-top: 0.6rem;
  line-height: 1.45;
}
.map-figure details { margin-top: 0.5rem; font-size: 0.9rem; }
.map-figure details summary {
  cursor: pointer;
  color: var(--ib-orange-deep);
  font-weight: 600;
  font-size: 0.85rem;
}
.map-figure__attrib {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}
.map-fallback {
  font-size: 0.85rem;
  color: var(--ib-grey-dark);
  margin: 0.35rem 0 1.5rem;
}

/* ---------- Font Awesome family repair ----------
   iboxed-chrome.css (vendored from the storefront) points .fa-solid/.fa-regular
   at "Font Awesome 6 Pro" — a licensed font we cannot ship, so icons rendered
   as empty tofu (the mobile hamburger bug). Re-point at the self-hosted Free
   family; loaded after the chrome CSS so these win the cascade. */
.fa-classic, .fas, .fa-solid, .far, .fa-regular, .fal, .fa-light, .fat, .fa-thin {
  font-family: "Font Awesome 6 Free";
}
.fas, .fa-solid { font-weight: 900; }
.far, .fa-regular { font-weight: 400; }

/* ---------- Article layout niceties ---------- */
.post-content h2 {
  margin-top: 2.2rem;
  padding-top: 0.4rem;
  color: var(--ib-black);
}
.post-content a { color: var(--ib-orange-deep); }
.post-content a:hover { color: var(--ib-brown); }
.post-lede {
  font-size: 1.12rem;
  color: var(--ib-grey-dark);
}
@media (max-width: 560px) {
  .stat-tile__value { font-size: 1.6rem; }
}

/* ==========================================================================
   BLOG CONTROLS (Category Filter Pills & Search Trigger)
   ========================================================================== */
.main__subtitle {
  color: var(--ib-grey-dark);
  font-size: 1.05rem;
  margin: 0.35rem 0 1.5rem;
}

.blog-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.category-pills-wrapper {
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 9999px;
  color: var(--ib-black);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(22, 25, 29, 0.04);
}

.category-pill:hover {
  border-color: var(--ib-orange);
  color: var(--ib-orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(253, 130, 70, 0.12);
}

.category-pill.active {
  background: var(--ib-black);
  color: #fff;
  border-color: var(--ib-black);
  font-weight: 600;
}

.category-pill .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ib-grey-lightest);
  color: var(--ib-grey-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  line-height: 1;
  transition: all 0.2s ease;
}

.category-pill.active .pill-count {
  background: var(--ib-orange);
  color: #fff;
}

/* Search Trigger Button */
.search-trigger-wrapper {
  margin-left: auto;
}

.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 9999px;
  color: var(--ib-grey-dark);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(22, 25, 29, 0.04);
}

.search-trigger-btn:hover {
  border-color: var(--ib-orange);
  color: var(--ib-black);
  box-shadow: 0 3px 8px rgba(22, 25, 29, 0.08);
}

.search-trigger-btn i {
  color: var(--ib-orange);
  font-size: 0.95rem;
}

.search-shortcut {
  background: var(--ib-grey-lightest);
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ib-grey-dark);
}

/* ==========================================================================
   PAGINATION CONTROLS
   ========================================================================== */
.pagination-nav {
  margin: 3rem 0 1.5rem;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.pagination-item {
  display: inline-flex;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.8rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  color: var(--ib-black);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(22, 25, 29, 0.04);
}

.pagination-link:hover {
  border-color: var(--ib-orange);
  color: var(--ib-orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(253, 130, 70, 0.15);
}

.pagination-active .pagination-link,
.pagination-link.current {
  background: var(--ib-black);
  color: #fff;
  border-color: var(--ib-black);
  cursor: default;
}

.pagination-prev .pagination-link,
.pagination-next .pagination-link {
  gap: 0.4rem;
  font-weight: 500;
  color: var(--ib-grey-dark);
}

/* ==========================================================================
   INSTANT SEARCH MODAL
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 29, 0.7);
  backdrop-filter: blur(4px);
}

.search-modal__container {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  transform: translateY(-10px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal.is-open .search-modal__container {
  transform: translateY(0) scale(1);
}

.search-modal__header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--ib-grey-lighter);
  gap: 0.75rem;
  background: #fafbfc;
}

.search-modal__input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.15s ease;
}

.search-modal__input-wrap:focus-within {
  border-color: var(--ib-orange);
  box-shadow: 0 0 0 3px rgba(253, 130, 70, 0.15);
}

.search-modal__icon {
  color: var(--ib-orange);
  font-size: 1.1rem;
}

.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ib-black);
  background: transparent;
}

.search-modal__input::placeholder {
  color: var(--ib-grey-light);
}

.search-modal__clear {
  background: transparent;
  border: none;
  color: var(--ib-grey-dark);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.search-modal__close {
  background: var(--ib-grey-lightest);
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 8px;
  color: var(--ib-grey-dark);
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-modal__close:hover {
  background: var(--ib-grey-lighter);
  color: var(--ib-black);
}

.search-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

/* Initial / Suggestions view */
.search-suggestions-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ib-grey-dark);
  margin-bottom: 0.75rem;
}

.search-suggestion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggestion-pill {
  background: var(--ib-grey-lightest);
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ib-black);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.suggestion-pill:hover {
  border-color: var(--ib-orange);
  background: #fff;
  color: var(--ib-orange-deep);
}

/* Results */
.search-results-meta {
  font-size: 0.82rem;
  color: var(--ib-grey-dark);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.search-result-item:hover,
.search-result-item.is-selected {
  border-color: var(--ib-orange);
  background: #fffaf7;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(253, 130, 70, 0.1);
}

.search-result-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ib-grey-lightest);
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ib-grey-light);
  font-size: 1.2rem;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.search-result-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ib-orange-deep);
  letter-spacing: 0.04em;
}

.search-result-date {
  font-size: 0.75rem;
  color: var(--ib-grey-dark);
}

.search-result-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ib-black);
  line-height: 1.35;
}

.search-result-title mark,
.search-result-snippet mark {
  background: rgba(253, 130, 70, 0.25);
  color: var(--ib-brown);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 700;
}

.search-result-snippet {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ib-grey-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-arrow {
  color: var(--ib-grey-light);
  font-size: 0.9rem;
  transition: transform 0.15s ease, color 0.15s ease;
  padding-right: 0.25rem;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.is-selected .search-result-arrow {
  color: var(--ib-orange);
  transform: translateX(3px);
}

/* Empty State */
.search-modal__empty {
  text-align: center;
  padding: 3rem 1rem;
}

.search-empty-icon {
  font-size: 2.5rem;
  color: var(--ib-grey-light);
  margin-bottom: 0.85rem;
}

.search-modal__empty p {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ib-black);
}

.search-modal__empty span {
  font-size: 0.85rem;
  color: var(--ib-grey-dark);
}

.search-modal__footer {
  padding: 0.65rem 1.25rem;
  background: var(--ib-grey-lightest);
  border-top: 1px solid var(--ib-grey-lighter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.search-shortcuts-help {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--ib-grey-dark);
}

.search-shortcuts-help kbd {
  background: #fff;
  border: 1px solid var(--ib-grey-lighter);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  margin-right: 0.2rem;
}

@media (max-width: 640px) {
  .search-modal {
    padding: 1rem 0.5rem;
  }
  .search-modal__container {
    max-height: 90vh;
  }
  .search-shortcuts-help {
    display: none;
  }
  .blog-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-trigger-wrapper {
    margin-left: 0;
  }
  .search-trigger-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Category Lead Description ---------- */
.category-lead-description {
  max-width: 760px;
  margin: 0.5rem auto 1.5rem;
  color: var(--ib-grey-dark);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

/* ---------- Post Author Box (E-E-A-T) ---------- */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--ib-grey-lighter);
  border-left: 4px solid var(--ib-orange);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 2rem;
  box-shadow: 0 1px 3px rgba(22, 25, 29, 0.04);
}

.post-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ib-grey-lightest);
  color: var(--ib-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--ib-grey-lighter);
}

.post-author-details h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ib-black);
}

.post-author-details p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ib-grey-dark);
}

@media (max-width: 640px) {
  .post-author-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* ---------- Related Articles Section ---------- */
.related-posts-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ib-grey-lighter);
}

.related-posts-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ib-black);
  margin: 0 0 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

