/* =============================================================
   Heather Robertson — Help Scout Docs theme  ·  v3
   Inspired by heatherrobertson.com (Bdo Grotesk + Tungsten,
   warm beige / gold palette, pill buttons).

   Goals
   - Comfortable reading: 18px body, ~70-character line length,
     1.65 line height, one consistent vertical rhythm.
   - Clear structure: big space ABOVE headings, small space below,
     so each heading visibly belongs to the content it introduces.
   - WCAG 2.2 AA: every text colour ≥ 4.5:1, form borders ≥ 3:1,
     links underlined, visible keyboard focus, reduced-motion
     support, sizes in rem so browser zoom works.

   Colour notes (contrast on #FFFFFF / #F9F8F7)
   --hr-ink        #15191F  17.6 / 16.6
   --hr-ink-muted  #5F5751   7.1 /  6.7
   --hr-link       #6E584C   6.6 /  6.3
   --hr-gold       #A38A7C   decorative only (3.2:1, not for text)
   ============================================================= */


/* ── Fonts ──────────────────────────────────────────────────────
   Same files the marketing site serves from Webflow's CDN (CORS
   enabled). Own family names so weights map honestly:
   400 = Regular, 500 = Medium, 600 = Semibold.
   Tungsten is a commercial typeface: confirm the web licence
   covers support.heatherrobertson.com before going live.     */
@font-face {
  font-family: "HR Grotesk";
  src: url("https://cdn.prod.website-files.com/69de36459674323c87ff2ac8/69de6ec64057163212169a3e_BDO%20Grotesk.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HR Grotesk";
  src: url("https://cdn.prod.website-files.com/69de36459674323c87ff2ac8/69de707ede64c707268e9e22_BDO%20Grotesk%20Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HR Grotesk";
  src: url("https://cdn.prod.website-files.com/69de36459674323c87ff2ac8/69de76e8def144732de2acb2_BDO%20Grotesk%20Semibold.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HR Tungsten";
  src: url("https://cdn.prod.website-files.com/69de36459674323c87ff2ac8/69de6dc0c4f88010f8f23abf_Tungsten-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HR Tungsten";
  src: url("https://cdn.prod.website-files.com/69de36459674323c87ff2ac8/69de6dc054eb636d70f34c1e_Tungsten-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}


/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --hr-font-text:    "HR Grotesk", "Helvetica Neue", Arial, sans-serif;
  --hr-font-display: "HR Tungsten", "Oswald", Impact, "Arial Narrow", sans-serif;
  --hr-font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Palette (from heatherrobertson.com, darkened where text needs it) */
  --hr-ink:         #15191F;
  --hr-ink-muted:   #5F5751;
  --hr-link:        #6E584C;
  --hr-link-hover:  #4E3E35;
  --hr-gold:        #A38A7C;   /* borders, markers, decoration */
  --hr-gold-light:  #D1BDB2;
  --hr-bg:          #F9F8F7;
  --hr-surface:     #FFFFFF;
  --hr-sand:        #EBE5E1;   /* hairlines, card borders */
  --hr-sand-light:  #F4EFEC;
  --hr-field:       #A38A7C;   /* form borders: 3.2:1, meets 1.4.11 */
  --hr-focus:       #15191F;

  /* Callouts */
  --hr-note-bg:  #F2F5E1;  --hr-note-edge:  #7AA355;
  --hr-info-bg:  #EEF2F6;  --hr-info-edge:  #5B7A99;
  --hr-warn-bg:  #FBEEEA;  --hr-warn-edge:  #B5543C;

  /* Type scale (rem → respects browser zoom / text size) */
  --hr-text:      1.125rem;  /* 18px body */
  --hr-text-sm:   1rem;      /* 16px */
  --hr-text-xs:   0.875rem;  /* 14px — smallest size used */
  --hr-h1:        3rem;      /* Tungsten, uppercase */
  --hr-h2:        1.75rem;
  --hr-h3:        1.3125rem;
  --hr-leading:   1.65;

  /* Rhythm */
  --hr-flow:      1.5rem;    /* space between paragraphs/blocks (24px) */
  --hr-measure:   46rem;     /* ~70 characters per line */
  --hr-radius:    12px;
  --hr-pill:      999px;
}


/* ── Base ────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background-color: var(--hr-bg);
  color: var(--hr-ink);
  font-family: var(--hr-font-text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* !important because some Help Scout defaults (e.g. the Georgia
   italic "Still need help?" footer) are more specific. Icon fonts
   live on <i class="icon-…"> and aren't touched. Display-font rules
   further down also use !important so they still win. */
html, body, p, li, a, em, strong, b, span, time, label, blockquote,
td, th, dt, dd, figcaption, input, button, select, textarea,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hr-font-text) !important;
}

h1, h2, h3, h4, h5, h6 { color: var(--hr-ink); }

/* Bold/italic wrapped inside a display-font heading keeps that font */
#fullArticle h1.title *,
#fullArticle h3[id^="Table-of-" i] *,
#docsSearch h1 *,
#categoryHead h1 *,
.related h3 *,
#sidebar h3 * { font-family: inherit !important; }

strong, b { font-weight: 600; }

code, pre, kbd, samp { font-family: var(--hr-font-mono); }

/* Even line lengths: headings balance across lines, paragraphs
   avoid a lone word on the last line (ignored by older browsers) */
h1, h2, h3, h4 { text-wrap: balance; }
.hr-faq__q, .hr-faq__q > * { text-wrap: wrap; }   /* questions use the full width */
p, li, figcaption { text-wrap: pretty; }

::selection { background: var(--hr-gold-light); color: var(--hr-ink); }

/* Visible keyboard focus everywhere (WCAG 2.4.7 / 2.4.11) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--hr-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Jumped-to headings don't sit flush against the top edge */
[id] { scroll-margin-top: 1.5rem; }


/* =============================================================
   NAVBAR
   ============================================================= */
.navbar .navbar-inner {
  background: var(--hr-surface);
  border-bottom: 1px solid var(--hr-sand);
  box-shadow: none;
  min-height: 60px;
}

.navbar .brand {
  color: var(--hr-ink);
  font-size: var(--hr-text-sm);
  font-weight: 500;
  line-height: 60px;
  padding: 0 20px;
  text-decoration: none;
}
.navbar .brand:hover { color: var(--hr-link); }

.navbar .nav > li > a {
  color: var(--hr-ink-muted);
  font-size: var(--hr-text-xs);
  font-weight: 500;
  line-height: 60px;
  padding: 0 14px;
  text-shadow: none;
  text-decoration: none;
  background: transparent;
}
.navbar .nav > li > a:hover,
.navbar .nav > .active > a {
  color: var(--hr-ink);
  background: transparent;
  box-shadow: none;
}

/* "Contact" — pill button, like the site's primary buttons */
.navbar .nav > li > a.contactUs {
  margin: 12px 0 12px 8px;
  padding: 0 20px;
  line-height: 36px;
  background: var(--hr-ink);
  color: #fff;
  border-radius: var(--hr-pill);
}
.navbar .nav > li > a.contactUs:hover { background: #3A3F47; color: #fff; }


/* =============================================================
   LAYOUT
   ============================================================= */
body #contentArea.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 72px;
  box-sizing: border-box;
}

/* Help Scout paints a soft shadow image down the left edge of the
   content column; the white card has its own border instead */
body #main-content { background-image: none !important; }

@media (min-width: 1024px) {
  body #main-content.span9 {
    float: right;
    width: 74%;
    margin-left: 0;
    padding-left: 56px;
    box-sizing: border-box;
  }
  body #sidebar.span3 {
    float: left;
    width: 26%;
    margin-left: 0;
    position: sticky;
    top: 24px;
  }
}

/* The white article / category card */
.contentWrapper {
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-radius: 16px;
  box-shadow: none;
  padding: 48px 56px;
}


/* =============================================================
   HOMEPAGE — hero search + category cards
   ============================================================= */
#docsSearch {
  background: var(--hr-sand-light);
  border-bottom: 1px solid var(--hr-sand);
  padding: 64px 24px 56px;
  text-align: center;
}

/* Animated warm gradient behind the hero ("breathing": a slow fade and
   brighten). It lives on a pseudo-element so only the colour changes —
   the heading and search bar stay fully opaque. */
#docsSearch {
  position: relative;
  isolation: isolate;          /* keeps the gradient behind the content */
  overflow: hidden;
  background: #EBE5E1;         /* shows through as the gradient fades */
  border-bottom: 0;
}
#docsSearch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(67deg, #EBE5E1 0%, 52%, #A38A7C 100%);
  background-size: 100% 100%;
  animation: hr-gradient-breathing 8s ease alternate infinite;
  will-change: opacity, filter;
  pointer-events: none;
}
@keyframes hr-gradient-breathing {
  0%, 100% { opacity: 1; filter: brightness(100%); }
  50% { opacity: 0.8; filter: brightness(120%); }
}

#docsSearch h1 {
  font-family: var(--hr-font-display) !important;
  font-weight: 700;
  font-size: var(--hr-h1);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

/* Category cards: icon, title, short description, article count —
   left-aligned in an even 3 / 2 / 1 column grid */
.category-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: auto !important;
}
@media (max-width: 1023px) {
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .category-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.category-list::before,
.category-list::after { display: none !important; }   /* clearfix */

.category-list .category {
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  text-align: left !important;
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-radius: 16px;
  box-shadow: none;
  padding: 32px 28px 28px !important;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.category-list .category:hover,
.category-list .category:focus-visible {
  border-color: var(--hr-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(21, 25, 31, 0.06);
}

/* Line icon, same style as heatherrobertson.com (drawn with a mask so
   it takes the ink colour) */
.category-list .category::before {
  content: "";
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  background-color: var(--hr-ink);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.category-list .category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hr-ink);
  text-align: left !important;
  margin: 0 0 8px !important;
}
/* Description (the category's description in Help Scout) */
.category-list .category p:not(.article-count) {
  margin: 0 0 16px !important;
  font-size: var(--hr-text-sm);
  line-height: 1.5;
  color: var(--hr-ink-muted);
  text-align: left !important;
}
.category-list .category p:not(.article-count):empty { display: none; }
.category-list .category .article-count {
  margin: auto 0 0 !important;    /* sits at the bottom of the card */
  padding-top: 4px;
  font-size: var(--hr-text-xs);
  font-weight: 500;
  color: var(--hr-link);
  text-align: left !important;
}

/* Icons, matched to each category by its Help Scout id */
.category-list .category::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E");
}
#category-228::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4'/%3E%3Cpath d='M5 4h12l-2.5 4.5L17 13H5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4'/%3E%3Cpath d='M5 4h12l-2.5 4.5L17 13H5'/%3E%3C/svg%3E"); }  /* Start Here */
#category-290::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 9.5V20h5v-5h4v5h5V9.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 9.5V20h5v-5h4v5h5V9.5'/%3E%3C/svg%3E"); }  /* Homepage */
#category-240::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 3h6v3H9z'/%3E%3Cpath d='M9 11h6M9 15h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 3h6v3H9z'/%3E%3Cpath d='M9 11h6M9 15h4'/%3E%3C/svg%3E"); }  /* Programs */
#category-291::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3Cpath d='M8 15h2v2H8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3Cpath d='M8 15h2v2H8z'/%3E%3C/svg%3E"); }  /* Calendar */
#category-265::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); }  /* Subscriptions & Billing */
#category-239::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M6.2 18.4a6.5 6.5 0 0 1 11.6 0'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M6.2 18.4a6.5 6.5 0 0 1 11.6 0'/%3E%3C/svg%3E"); }  /* Fitness Profile */
#category-263::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3Cpath d='M10.5 8v5l4-2.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3Cpath d='M10.5 8v5l4-2.5z'/%3E%3C/svg%3E"); }  /* Video Player & Casting */
#category-241::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5v14M17 5v14M4 8.5v7M20 8.5v7M7 12h10'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 5v14M17 5v14M4 8.5v7M20 8.5v7M7 12h10'/%3E%3C/svg%3E"); }  /* Workouts */
#category-242::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a9 9 0 0 1 9 0 9 9 0 0 1 9 0v13a9 9 0 0 0-9 0 9 9 0 0 0-9 0z'/%3E%3Cpath d='M12 6v13'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a9 9 0 0 1 9 0 9 9 0 0 1 9 0v13a9 9 0 0 0-9 0 9 9 0 0 0-9 0z'/%3E%3Cpath d='M12 6v13'/%3E%3C/svg%3E"); }  /* Guides & Recipes */
#category-87::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v16l-6-4-6 4V5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v16l-6-4-6 4V5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }  /* Collections */
#category-86::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h8M16 6h4M4 12h2M10 12h10M4 18h11M19 18h1'/%3E%3Ccircle cx='14' cy='6' r='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h8M16 6h4M4 12h2M10 12h10M4 18h11M19 18h1'/%3E%3Ccircle cx='14' cy='6' r='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E"); }  /* Settings & Preferences */
#category-264::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4M12 15v2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4M12 15v2'/%3E%3C/svg%3E"); }  /* Login & Password */
#category-46::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85'/%3E%3C/svg%3E"); }  /* Community & Connection */
#category-230::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 17v.01'/%3E%3Cpath d='M12 13.5a1.5 1.5 0 0 1 1-1.5 2.6 2.6 0 1 0-3-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 17v.01'/%3E%3Cpath d='M12 13.5a1.5 1.5 0 0 1 1-1.5 2.6 2.6 0 1 0-3-4'/%3E%3C/svg%3E"); }  /* FAQs */
#category-283::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Cpath d='M8.7 10.7l6.6-3.4M8.7 13.3l6.6 3.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3Cpath d='M8.7 10.7l6.6-3.4M8.7 13.3l6.6 3.4'/%3E%3C/svg%3E"); }  /* Affiliate Program */


/* =============================================================
   CATEGORY PAGE
   ============================================================= */
#categoryHead h1 {
  font-family: var(--hr-font-display) !important;
  font-weight: 700;
  font-size: var(--hr-h1);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
#categoryHead .descrip {
  font-size: var(--hr-text);
  color: var(--hr-ink-muted);
  line-height: var(--hr-leading);
}
/* Sort dropdown: sized to its text (Help Scout fixes it at 145×24px,
   which clipped "Sort by Popularity"), pill shape, custom chevron */
#categoryHead .sort select {
  -webkit-appearance: none;
  appearance: none;
  width: auto !important;
  max-width: 100%;
  height: 40px !important;
  margin: 0;
  padding: 0 40px 0 16px !important;
  box-sizing: border-box;
  font-family: var(--hr-font-text) !important;
  font-size: var(--hr-text-xs);
  font-weight: 500;
  line-height: 38px;
  color: var(--hr-ink);
  border: 1px solid var(--hr-field);
  border-radius: var(--hr-pill);
  box-shadow: none;
  cursor: pointer;
  background: var(--hr-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2315191F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 16px center / 12px 8px;
}
#categoryHead .sort select:hover { border-color: var(--hr-ink); }

/* Styled sort menu (the script swaps it in for the select, whose open
   list the browser draws and CSS can't reach) */
#categoryHead .sort.hr-sort-ready select { display: none !important; }
/* Centre the button on the title's line (title line-height is 1) */
#categoryHead .sort {
  top: calc((var(--hr-h1) - 40px) / 2) !important;
  right: 0;
}
#categoryHead .sort form { margin: 0 !important; }
.hr-sort { position: relative; display: inline-block; vertical-align: top; }
.hr-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  margin: 0;
  padding: 0 16px 0 18px;
  font-family: var(--hr-font-text) !important;
  font-size: var(--hr-text-xs);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--hr-ink);
  background: var(--hr-surface);
  border: 1px solid var(--hr-field);
  border-radius: var(--hr-pill);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.hr-sort__btn:hover { border-color: var(--hr-ink); }
.hr-sort__btn:focus-visible { outline: 2px solid var(--hr-focus); outline-offset: 2px; }
.hr-sort__chev { flex: none; transition: transform 0.2s; }
.hr-sort.is-open .hr-sort__btn { border-color: var(--hr-ink); }
.hr-sort.is-open .hr-sort__chev { transform: rotate(180deg); }

.hr-sort__list {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  margin: 0 !important;
  padding: 6px !important;
  list-style: none;
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-radius: var(--hr-radius);
  box-shadow: 0 12px 32px rgba(21, 25, 31, 0.12), 0 2px 6px rgba(21, 25, 31, 0.06);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
}
.hr-sort.is-open .hr-sort__list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0s;
}
.hr-sort__list:focus { outline: none; }
.hr-sort__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 !important;
  padding: 10px 12px !important;
  font-size: var(--hr-text-xs);
  line-height: 1.3;
  white-space: nowrap;
  color: var(--hr-ink);
  border-radius: 8px;
  cursor: pointer;
}
.hr-sort__list li.is-active { background: var(--hr-sand-light); }
.hr-sort__list:focus-visible li.is-active { box-shadow: inset 0 0 0 2px var(--hr-focus); }
.hr-sort__list li[aria-selected="true"] { font-weight: 600; }
.hr-sort__check { flex: none; visibility: hidden; }
.hr-sort__list li[aria-selected="true"] .hr-sort__check { visibility: visible; }

/* Search results page */
#serp h1 {
  font-family: var(--hr-font-display) !important;
  font-weight: 700;
  font-size: var(--hr-h1);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--hr-ink);
  margin: 0 0 12px;
}
#serp h1 * { font-family: inherit !important; font-weight: inherit; }
#serp .articlesFound {
  font-size: var(--hr-text-xs);
  color: var(--hr-ink-muted);
  margin: 0;
}
#serp .articleList li { padding: 16px 0; }
#serp .articleList li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  margin-left: 0 !important;      /* Help Scout hangs the icon in the margin */
  font-weight: 600;
}
#serp .articleList li a i {
  flex: none;
  margin: 0 !important;
  position: relative;
  top: 2px;
}
#serp .articleList li a:hover {
  color: var(--hr-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* Snippet: lined up with the title, three lines at most */
#serp .articleList li p {
  margin: 6px 0 0 32px;
  padding: 0;
  font-size: var(--hr-text-xs);
  line-height: 1.55;
  color: var(--hr-ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articleList { margin: 24px 0 0; padding: 0; list-style: none; }
.articleList li {
  border-bottom: 1px solid var(--hr-sand);
  margin: 0;
}
.articleList li:last-child { border-bottom: 0; }
.articleList li a {
  display: block;
  padding: 16px 0;
  font-size: var(--hr-text);
  line-height: 1.4;
  color: var(--hr-ink);
  text-decoration: none;
}
.articleList li a:hover span {
  color: var(--hr-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.articleList li a i { color: var(--hr-gold); }


/* =============================================================
   ARTICLE — title + print
   ============================================================= */
#fullArticle {
  max-width: var(--hr-measure);
  overflow-wrap: break-word;
}

#fullArticle h1.title {
  font-family: var(--hr-font-display) !important;
  font-weight: 700;
  font-size: var(--hr-h1);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--hr-ink);
  margin: 0 0 32px;
}

/* Short nav label only shows on phones (see Top bar on phones) */
.hr-nav-short { display: none; }

/* Print icon removed (browser print still works) */
.printArticle,
#fullArticle .printArticle { display: none !important; }


/* =============================================================
   ARTICLE — reading rhythm
   One spacing system for every block. Help Scout's editor leaves
   stray <br>s between blocks, which made gaps uneven; they're
   hidden here so spacing comes only from the rules below.
   ============================================================= */
#fullArticle > br { display: none; }

/* :is() lifts specificity to match Help Scout's own "#fullArticle p"
   rules, so their bottom margins don't collapse into ours. All block
   spacing is margin-top only. */
#fullArticle > :is(*, p, ul, ol, h1, h2, h3, h4, h5, h6, div, figure,
                   blockquote, table, hr, section) {
  margin-top: 0;
  margin-bottom: 0;
}
#fullArticle > * + :is(*, p, ul, ol, div, figure, blockquote, table, section) {
  margin-top: var(--hr-flow);
}

#fullArticle p,
#fullArticle li {
  font-size: var(--hr-text);
  line-height: var(--hr-leading);
  color: var(--hr-ink);
}

/* Lead paragraph (first paragraph after the title) */
#fullArticle h1.title ~ p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.6;
}


/* ── Headings: lots of space above, little below ─────────────── */
#fullArticle h2 {
  font-size: var(--hr-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--hr-ink);
}
#fullArticle h3 {
  font-size: var(--hr-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--hr-ink);
}
#fullArticle h4 {
  font-size: var(--hr-text);
  font-weight: 600;
  line-height: 1.4;
}
#fullArticle h2 strong, #fullArticle h3 strong { font-weight: inherit; }

#fullArticle > * + h2 { margin-top: 3rem; }
#fullArticle > * + h3 { margin-top: 2.25rem; }
#fullArticle > * + h4 { margin-top: 1.75rem; }

/* Content right after a heading sits close to it */
#fullArticle > h2 + *,
#fullArticle > h3 + *,
#fullArticle > h4 + * { margin-top: 0.75rem; }

/* Section dividers: the space does the work, the line is a hint */
#fullArticle hr {
  border: 0;
  border-top: 1px solid var(--hr-sand);
  height: 0;
}
#fullArticle > hr,
#fullArticle > * + hr { margin-top: 3rem; margin-bottom: 0; }
#fullArticle > hr + h2,
#fullArticle > hr + h3 { margin-top: 3rem; }


/* ── Lists ───────────────────────────────────────────────────── */
/* Rhythm: list items are spaced almost like lines of body text (just
   0.25em extra, enough to see where a wrapped item ends), so a list reads
   as one group; paragraphs and whole lists are separated by the larger
   --hr-flow gap. Numbers/bullets are indented from the text edge. */
#fullArticle ul,
#fullArticle ol {
  padding-left: 2.5em;
  margin-left: 0;
}
#fullArticle li { padding-left: 0.25em; margin-bottom: 0; }   /* Help Scout adds 10px below each item */
#fullArticle li + li { margin-top: 0.25em; }
#fullArticle li > ul,
#fullArticle li > ol { margin-top: 0.25em; margin-bottom: 0; padding-left: 1.75em; }
#fullArticle li > p { margin: 0; }
#fullArticle li > p + p { margin-top: 0.5em; }

#fullArticle ul > li::marker { color: var(--hr-gold); }
#fullArticle ol > li::marker {
  color: var(--hr-ink-muted);
  font-weight: 600;
}

/* A paragraph introducing a list stays attached to it */
#fullArticle > p + ul,
#fullArticle > p + ol { margin-top: 0.75rem; }


/* ── Links ───────────────────────────────────────────────────────
   Underlined (WCAG 1.4.1 — not colour alone), darker than the
   brand gold so they pass 4.5:1.                               */
#fullArticle a,
.articleFoot a,
.related a {
  color: var(--hr-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
#fullArticle a:hover,
.articleFoot a:hover {
  color: var(--hr-link-hover);
  text-decoration-thickness: 2px;
}
/* The editor wraps some link text in <u>; let the link own it */
#fullArticle a u { text-decoration: none; }


/* ── Table of contents ───────────────────────────────────────────
   Targets the "Table of Contents" heading Help Scout generates,
   so FAQ questions (h3 followed by a list) aren't caught.     */
#fullArticle h3[id^="Table-of-" i] {
  font-family: var(--hr-font-display) !important;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hr-ink-muted);
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-bottom: 0;
  border-radius: var(--hr-radius) var(--hr-radius) 0 0;
  padding: 22px 24px 4px;
}

#fullArticle h3[id^="Table-of-" i] + ol,
#fullArticle h3[id^="Table-of-" i] + ul,
#fullArticle h3[id^="Table-of-" i] + br + ol,
#fullArticle h3[id^="Table-of-" i] + br + ul {
  margin-top: 0;
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-top: 0;
  border-radius: 0 0 var(--hr-radius) var(--hr-radius);
  padding: 12px 24px 22px 3rem;
}
#fullArticle h3[id^="Table-of-" i] ~ ol:first-of-type li,
#fullArticle h3[id^="Table-of-" i] ~ ul:first-of-type li {
  font-size: var(--hr-text-sm);
  line-height: 1.5;
}
#fullArticle h3[id^="Table-of-" i] ~ ol:first-of-type li + li,
#fullArticle h3[id^="Table-of-" i] ~ ul:first-of-type li + li {
  margin-top: 0.5em;
}


/* ── "Back to top" links ─────────────────────────────────────── */
#fullArticle p:has(> a[href^="#Table-of-" i]) {
  margin-top: 1.75rem;
}
#fullArticle a[href^="#Table-of-" i] {
  font-size: var(--hr-text-xs);
  font-weight: 500;
  color: var(--hr-ink-muted);
  text-decoration: none;
}
#fullArticle a[href^="#Table-of-" i]:hover {
  color: var(--hr-ink);
  text-decoration: underline;
}


/* ── Callouts (Help Scout's green / blue / red) ──────────────── */
#fullArticle .callout,
#fullArticle .callout-green,
#fullArticle .callout-blue,
#fullArticle .callout-yellow,
#fullArticle .callout-red {
  border: 0;
  border-left: 4px solid var(--hr-note-edge);
  background: var(--hr-note-bg);
  border-radius: 0 var(--hr-radius) var(--hr-radius) 0;
  padding: 16px 20px;
  color: var(--hr-ink);
}
#fullArticle .callout-blue   { background: var(--hr-info-bg); border-left-color: var(--hr-info-edge); }
#fullArticle .callout-yellow { background: var(--hr-sand-light); border-left-color: var(--hr-gold); }
#fullArticle .callout-red    { background: var(--hr-warn-bg); border-left-color: var(--hr-warn-edge); }

#fullArticle [class^="callout"] p {
  font-size: var(--hr-text-sm);
  line-height: 1.6;
  margin: 0;
}
#fullArticle [class^="callout"] p + p { margin-top: 0.6em; }

/* Space around a callout so it doesn't crowd the text above */
#fullArticle > [class^="callout"],
#fullArticle > * + [class^="callout"] { margin-top: 1.5rem; }
#fullArticle > [class^="callout"] + * { margin-top: 1.5rem; }


/* ── Blockquote ──────────────────────────────────────────────── */
#fullArticle blockquote {
  border-left: 2px solid var(--hr-gold-light);
  margin-left: 0;
  padding: 4px 0 4px 20px;
}
#fullArticle blockquote p {
  font-size: 1.25rem;
  line-height: 1.5;
}


/* ── Images & figures ────────────────────────────────────────── */
#fullArticle img {
  display: block;
  max-width: 100% !important;     /* overrides inline width="740" */
  height: auto !important;
  margin: 0 auto;
  border: 1px solid var(--hr-sand);
  border-radius: var(--hr-radius);
  box-shadow: none;
}
#fullArticle > p:has(> img:only-child),
#fullArticle > figure { margin-top: 1.75rem; }
#fullArticle > p:has(> img:only-child) + *,
#fullArticle > figure + * { margin-top: 1.75rem; }

#fullArticle figure { margin-left: 0; margin-right: 0; }
#fullArticle figcaption {
  margin-top: 10px;
  font-size: var(--hr-text-xs);
  line-height: 1.5;
  color: var(--hr-ink-muted);
  text-align: center;
}


/* ── Video embeds: full width, 16:9 ──────────────────────────────
   Bunny Stream (player.mediadelivery.net) is what the articles use.
   Any iframe that allows fullscreen is treated as a video too;
   other embeds (forms etc.) keep their own size.              */
#fullArticle [data-html-block],
#fullArticle [data-html-block] > div { width: 100%; }

#fullArticle iframe[src*="mediadelivery.net"],
#fullArticle iframe[src*="b-cdn.net"],
#fullArticle iframe[src*="youtube"],
#fullArticle iframe[src*="vimeo"],
#fullArticle iframe[src*="wistia"],
#fullArticle iframe[src*="loom"],
#fullArticle iframe[allowfullscreen],
#fullArticle .responsive-video iframe {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--hr-radius);
}
/* Same breathing room as images */
#fullArticle > [data-html-block]:has(iframe),
#fullArticle > [data-html-block]:has(iframe) + * { margin-top: 1.75rem; }

#fullArticle video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hr-radius);
}


/* ── Tables ──────────────────────────────────────────────────── */
#fullArticle table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hr-text-sm);
}
#fullArticle th,
#fullArticle td {
  border-bottom: 1px solid var(--hr-sand);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
#fullArticle th { font-weight: 600; background: var(--hr-sand-light); }


/* =============================================================
   ARTICLE FOOTER — rating, contact, last updated, related
   ============================================================= */
.articleRatings {
  max-width: var(--hr-measure);
  margin-top: 4rem;
  padding: 24px;
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-radius: var(--hr-radius);
  box-sizing: border-box;
}
.articleRatings-question {
  font-size: var(--hr-text);
  font-weight: 600;
  color: var(--hr-ink);
}
.articleRatings-feedback-message,
.articleRatings-failure {
  font-size: var(--hr-text-sm);
  color: var(--hr-ink);
}

/* Help Scout lays the box out as a flex row; let it wrap cleanly */
.articleRatings {
  height: auto !important;   /* Help Scout fixes the height */
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
}
.articleRatings-question { margin: 0; }

/* Smiley / frown buttons: round 48px icon buttons (touch-friendly) */
.articleRatings-actions {
  display: flex;
  flex: 0 0 auto !important;
  width: auto !important;          /* Help Scout fixes it at 65px — too narrow for two buttons */
  gap: 12px;
  margin: 0 !important;
  position: static !important;
  transform: none !important;
}
.articleRatings .articleRatings-actions .rateAction {
  flex: 0 0 48px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  margin: 0;
  border: 1.5px solid var(--hr-field);
  border-radius: 50%;
  background: var(--hr-surface);
  color: var(--hr-ink);
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.articleRatings .rateAction svg { fill: currentColor; }
.articleRatings .rateAction .rating-face {   /* centre the face icon */
  top: 0 !important;
  left: 0 !important;
  right: 0;
  bottom: 0;
  margin: auto !important;
  transform: none !important;
}
.articleRatings .rateAction:hover {
  background: var(--hr-ink);
  border-color: var(--hr-ink);
  color: #fff;
}

.articleFoot {
  max-width: var(--hr-measure);
  margin-top: 24px;
}
.articleFoot .help,
.articleFoot time {
  font-style: normal !important;   /* Help Scout default is Georgia italic */
}
.articleFoot .help {
  font-size: var(--hr-text);
  color: var(--hr-ink);
  margin: 0;
}
/* "Still need help? Contact Us" reads as one sentence: same size,
   weight and colour, with only the link underlined */
.articleFoot .icon-contact { display: none; }
.articleFoot .help a.contactUs {
  font-weight: inherit;
  color: inherit;
}
.articleFoot .help a.contactUs:hover { color: var(--hr-link-hover); }
.articleFoot time,
.articleFoot .lu {
  display: block;
  margin-top: 8px;
  font-size: var(--hr-text-xs);
  color: var(--hr-ink-muted);
}

.related {
  max-width: var(--hr-measure);
  margin-top: 3rem;
}
.related h3,
#sidebar h3 {
  font-family: var(--hr-font-display) !important;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-ink-muted);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hr-sand);
}
.related ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.related li {
  border-bottom: 1px solid var(--hr-sand);
  margin: 0;
}
.related li:last-child { border-bottom: 0; }
.related li a {
  display: block;
  padding: 12px 0;
  font-size: var(--hr-text-sm);
  line-height: 1.4;
  color: var(--hr-ink);
  text-decoration: none;
}
.related li a:hover span {
  color: var(--hr-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
/* Icon beside the title, wrapped lines line up with the first */
.related li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.related li a i {
  flex: none;
  color: var(--hr-gold);
  margin: 0 !important;
  position: relative;
  top: 2px;
}


/* Skip link: off-screen until a keyboard user presses Tab */
.hr-skip {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  font-family: var(--hr-font-text) !important;
  font-size: var(--hr-text-xs);
  font-weight: 500;
  line-height: 1;
  color: #fff !important;
  background: var(--hr-ink);
  border-radius: var(--hr-pill);
  text-decoration: none !important;
  transform: translateY(-200%);
  transition: transform 0.15s;
}
.hr-skip:focus { transform: none; outline: 2px solid var(--hr-focus); outline-offset: 3px; }

/* =============================================================
   SIDEBAR
   ============================================================= */
#sidebar h3 { margin-top: 32px; }

/* Category list (wrapped in a dropdown by the script; always open on
   desktop, where it looks exactly as before) */
#sidebar .hr-cats { margin: 0; }
#sidebar .hr-cats > summary { display: block; list-style: none; cursor: default; }
#sidebar .hr-cats > summary::-webkit-details-marker { display: none; }
#sidebar .hr-cats > summary:focus { outline: none; }
.hr-top-search { display: none; }

#sidebar .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#sidebar .nav-list > li > a {
  display: block;
  margin: 0;
  padding: 8px 0;
  font-size: var(--hr-text-sm);
  font-weight: 400;
  line-height: 1.4;
  color: var(--hr-ink-muted);
  text-decoration: none;
  text-shadow: none;
  background: transparent;
  border: 0;
}
#sidebar .nav-list > li > a:hover {
  color: var(--hr-ink);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
#sidebar .nav-list > li.active > a,
#sidebar .nav-list > li.active > a:hover {
  color: var(--hr-ink);
  font-weight: 600;
  background: transparent;
  text-shadow: none;
}


/* =============================================================
   SEARCH (homepage hero + sidebar)
   ============================================================= */
#searchBar .search-query {
  font-family: var(--hr-font-text);
  font-size: var(--hr-text-sm);    /* 16px stops iOS zooming on focus */
  color: var(--hr-ink);
  background: var(--hr-surface);
  border: 1px solid var(--hr-field);
  border-radius: var(--hr-pill) 0 0 var(--hr-pill);
  box-shadow: none;
  height: 48px;
  padding: 0 20px;
  box-sizing: border-box;
}
#searchBar .search-query::placeholder { color: var(--hr-ink-muted); opacity: 1; }
#searchBar .search-query:focus {
  border-color: var(--hr-ink);
  box-shadow: 0 0 0 3px var(--hr-gold-light);
  outline: none;
}

#searchBar button {
  font-family: var(--hr-font-text);
  font-size: var(--hr-text-xs);
  font-weight: 500;
  height: 48px;
  padding: 0 24px;
  background: var(--hr-ink);
  color: #fff;
  border: 1px solid var(--hr-ink);
  border-radius: 0 var(--hr-pill) var(--hr-pill) 0;
  text-shadow: none;
  box-shadow: none;
}
#searchBar button:hover { background: #3A3F47; border-color: #3A3F47; }

/* Field + button sit side by side at every width */
#searchBar { display: flex; align-items: stretch; position: relative; }
#searchBar #serp-dd {            /* live-results dropdown stays a dropdown */
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
}
#searchBar .search-query { flex: 1 1 auto; min-width: 0; margin: 0; }
#searchBar button {
  position: static !important;
  flex: 0 0 auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#docsSearch #searchBar { max-width: 560px; margin: 0 auto; }

#sidebar #searchBar .search-query { height: 44px; }
/* Help Scout squares off the field's left corners; round both ends */
#searchBar .search-query,
#sidebar #searchBar .search-query {
  border-radius: var(--hr-pill) 0 0 var(--hr-pill) !important;
  padding-left: 20px !important;
}
#sidebar #searchBar button {
  height: 44px;
  padding: 0 16px;
  /* Help Scout styles the sidebar button as a faint icon */
  background: var(--hr-ink) !important;
  border: 1px solid var(--hr-ink) !important;
  border-radius: 0 var(--hr-pill) var(--hr-pill) 0 !important;
  color: #fff !important;
  opacity: 1 !important;
}
#sidebar #searchBar button i { color: #fff !important; }

#serp-dd .result a {
  font-size: var(--hr-text-sm);
  color: var(--hr-ink);
}
#serp-dd .result a:hover,
#serp-dd .result li.active a { background: var(--hr-sand-light); color: var(--hr-ink); }


/* =============================================================
   FOOTER
   ============================================================= */
/* Article and category pages use a bare <footer>; the homepage adds
   .center. Both get the same treatment. */
#contentArea footer,
footer.center,
#footer {
  clear: both;
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--hr-sand);
  font-size: var(--hr-text-xs);
  line-height: 1.6;
  color: var(--hr-ink-muted);
  text-align: center;
}
#contentArea footer p,
footer.center p,
#footer p {
  float: none !important;            /* Help Scout right-aligns it */
  text-align: center !important;
  width: auto;
  margin: 0;
  font-size: inherit;
  color: inherit;
}
#contentArea footer a,
footer.center a,
#footer a {
  color: var(--hr-ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
#contentArea footer a:hover,
footer.center a:hover,
#footer a:hover { color: var(--hr-ink); }


/* =============================================================
   TABLET
   ============================================================= */
@media (max-width: 1023px) {
  body #contentArea.container-fluid { padding: 32px 32px 64px; }
  .contentWrapper { padding: 36px 32px; }
  :root { --hr-h1: 2.5rem; }
}


/* =============================================================
   MOBILE — single consolidated block
   ============================================================= */
@media (max-width: 767px) {
  :root {
    --hr-text:  1.0625rem;  /* 17px */
    --hr-h1:    2rem;      /* 32px — long titles stay at two lines */
    --hr-h2:    1.5rem;
    --hr-h3:    1.1875rem;
    --hr-flow:  1.375rem;
  }

  /* Help Scout pads these wrappers on small screens */
  body, #page, #body, .page-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
  }

  body #contentArea.container-fluid {
    width: 100%;
    margin: 0;
    padding: 0 0 48px;
  }

  .row-fluid { margin-left: 0; width: 100%; }

  body #main-content.span9,
  body #sidebar.span3 {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;      /* Help Scout sets -20px, which bleeds off-screen */
    padding-left: 0;
    padding-right: 0;
    position: static;
  }

  /* Card goes edge to edge on phones: more room for text */
  .contentWrapper {
    margin: 0;
    padding: 28px 20px 36px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  #docsSearch { padding: 40px 20px 36px; }
  /* Icon-only search button on phones, so the field has room for its
     (shortened) placeholder; the button keeps its "Search" label for
     screen readers */
  #searchBar button { padding: 0 20px; }
  #searchBar button > span { display: none; }
  .category-list { padding: 24px 20px 0; }
  /* Phones: icon beside the text, so the list stays compact */
  .category-list .category {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px !important;
  }
  .category-list .category::before {
    grid-row: 1 / span 3;
    width: 28px;
    height: 28px;
    margin: 0;
  }
  .category-list .category > * { grid-column: 2; }
  .category-list .category h3 { font-size: 1.125rem; margin-bottom: 4px !important; }
  .category-list .category p:not(.article-count) { margin-bottom: 8px !important; }
  .category-list .category .article-count { margin: 0 !important; padding-top: 0; }

  /* Sort dropdown isn't needed for short category lists on phones;
     desktop keeps it beside the title */
  #categoryHead .sort { display: none !important; }

  /* ── Top bar on phones ───────────────────────────────────────
     No hamburger: "All articles" and the Contact pill sit in the bar
     beside "← HR App". (The script swaps the long link label for a
     short one on phones.) */
  .navbar .navbar-inner { padding: 0 !important; }
  .navbar .navbar-inner .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 16px 0 20px;
  }
  .navbar .navbar-inner .container-fluid::before,
  .navbar .navbar-inner .container-fluid::after { display: none; }
  .navbar .brand {
    float: none;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 60px;
    white-space: nowrap;
  }
  .navbar .btn-navbar { display: none !important; }

  /* Always show the links, inline */
  .navbar .nav-collapse,
  .navbar .nav-collapse.collapse {
    display: block !important;
    float: none !important;
    clear: none !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  .navbar .nav-collapse .nav {
    float: none !important;
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
  }
  .navbar .nav-collapse .nav > li { float: none !important; }
  .navbar .nav-collapse .nav > li > a {
    display: block;
    margin: 0 !important;
    padding: 0 10px !important;
    line-height: 44px !important;     /* 44px tap target */
    font-size: var(--hr-text-xs) !important;
    font-weight: 500;
    color: var(--hr-ink-muted) !important;
    white-space: nowrap;
    background: transparent !important;
    border: 0;
    border-radius: 0;
  }
  .navbar .nav-collapse .nav > li > a .caret { display: none; }
  .hr-nav-long { display: none; }
  .hr-nav-short { display: inline; }
  .navbar .nav-collapse .nav > li > a.contactUs {
    margin: 0 0 0 4px !important;
    padding: 0 16px !important;
    line-height: 36px !important;
    color: #fff !important;
    background: var(--hr-ink) !important;
    border-radius: var(--hr-pill);
  }
  .navbar .nav-collapse .nav > li > a.contactUs:hover { background: #3A3F47 !important; }

  #fullArticle > * + h2,
  #fullArticle > hr + h2 { margin-top: 2.5rem; }
  #fullArticle > hr,
  #fullArticle > * + hr { margin-top: 2.5rem; }

  #fullArticle h1.title ~ p:first-of-type { font-size: 1.125rem; }

  #fullArticle h3[id^="Table-of-" i] { padding: 18px 18px 4px; }
  #fullArticle h3[id^="Table-of-" i] + ol,
  #fullArticle h3[id^="Table-of-" i] + ul,
  #fullArticle h3[id^="Table-of-" i] + br + ol,
  #fullArticle h3[id^="Table-of-" i] + br + ul {
    padding: 10px 18px 18px 2.5rem;
  }

  /* Bootstrap gives the navbar -20px side margins on phones to cancel
     body padding we've removed; without this the page scrolls sideways */
  .navbar,
  #docsSearch { margin-left: 0; margin-right: 0; }

  .articleRatings { padding: 20px; margin-top: 3rem; }

  /* Rating box: question above the faces, both centred */
  .articleRatings {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .articleRatings-actions { justify-content: center; }

  /* Help line and date stacked and centred under it */
  .articleFoot { text-align: center; margin-left: auto; margin-right: auto; }
  .articleFoot .help { float: none !important; }
  .articleFoot time,
  .articleFoot .lu {
    float: none !important;
    text-align: center !important;
    margin-top: 6px;
  }

  .related {
    padding: 24px 20px !important;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .related li a { margin: 0 !important; }

  /* Footer: side padding, and room at the bottom so the chat bubble
     and back-to-top button never cover the text */
  #contentArea footer,
  footer.center,
  #footer {
    margin: 40px 20px 0;
    padding: 24px 0 96px;
  }

  body #sidebar.span3 {
    margin-top: 32px;
    padding: 8px 20px 0;
    box-sizing: border-box;
  }
}


/* =============================================================
   ENHANCEMENTS — styles for hr-helpscout-docs.js
   (html.hr-js is set by the script; without it nothing changes)
   ============================================================= */

/* ── Floating back to top: solid black pill, like the site ──── */
html.hr-js #fullArticle p:has(> a[href^="#Table-of-" i]),
html.hr-js #fullArticle p.hr-back-to-top,
html.hr-js #fullArticle p.hr-empty { display: none; }

.hr-to-top {
  position: fixed;
  z-index: 1040;
  right: var(--hr-fab-right, 112px);   /* fallback: left of a 60px Beacon at 40px */
  bottom: var(--hr-fab-bottom, 46px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: var(--hr-pill);
  background: var(--hr-ink);
  color: #fff;
  font-family: var(--hr-font-text) !important;
  font-size: var(--hr-text-xs);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(21, 25, 31, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s, background-color 0.2s;
}
.hr-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0s, background-color 0.2s;
}
.hr-to-top:hover { background: #3A3F47; }
.hr-to-top:focus-visible {
  outline: 2px solid var(--hr-ink);
  outline-offset: 3px;
}
.hr-to-top svg { flex: none; }


/* ── FAQ dropdowns ─────────────────────────────────────────── */
#fullArticle .hr-faq-list {
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-radius: var(--hr-radius);
  overflow: hidden;
}
#fullArticle > .hr-faq-list,
#fullArticle > * + .hr-faq-list { margin-top: 1.25rem; }
#fullArticle > hr + .hr-faq-list { margin-top: 2rem; }

.hr-faq + .hr-faq { border-top: 1px solid var(--hr-sand); }

.hr-faq__q {
  position: relative;
  display: block;                 /* hides the default triangle */
  list-style: none;
  padding: 18px 56px 18px 22px;
  cursor: pointer;
  font-size: var(--hr-text);
  font-weight: 600;
  line-height: 1.4;
  color: var(--hr-ink);
}
.hr-faq__q::-webkit-details-marker { display: none; }

/* Question headings (FAQ articles) look the same as bold questions */
#fullArticle .hr-faq__q > h2,
#fullArticle .hr-faq__q > h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: 0;
  display: inline;
}

/* Plus / minus indicator in a circle */
.hr-faq__q::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 1.5px solid var(--hr-field);
  border-radius: 50%;
  box-sizing: border-box;
  background:
    linear-gradient(var(--hr-ink), var(--hr-ink)) center / 10px 1.75px no-repeat,
    linear-gradient(var(--hr-ink), var(--hr-ink)) center / 1.75px 10px no-repeat;
  transition: transform 0.2s;
}
.hr-faq[open]:not(.is-closing) > .hr-faq__q::after {
  background: linear-gradient(var(--hr-ink), var(--hr-ink)) center / 10px 1.75px no-repeat;
  transform: rotate(180deg);
}
.hr-faq__q:hover { background: var(--hr-sand-light); }
.hr-faq__q:focus-visible {
  outline: 2px solid var(--hr-focus);
  outline-offset: -4px;
  border-radius: var(--hr-radius);
}

.hr-faq__a { padding: 10px 22px 22px; }   /* clear gap between question and answer */
#fullArticle .hr-faq__a > * { margin: 0; }
#fullArticle .hr-faq__a > * + * { margin-top: 0.85rem; }
#fullArticle .hr-faq__a p,
#fullArticle .hr-faq__a li { font-size: var(--hr-text-sm); line-height: 1.6; }
#fullArticle .hr-faq__a > [class^="callout"] { margin-top: 1rem; }


/* ── Table of contents as a dropdown (open on desktop) ─────── */
#fullArticle > details.hr-toc,
#fullArticle > * + details.hr-toc { margin-top: 1.75rem; }

#fullArticle .hr-toc {
  background: var(--hr-surface);
  border: 1px solid var(--hr-sand);
  border-radius: var(--hr-radius);
}
#fullArticle .hr-toc > summary {
  position: relative;
  display: block;
  list-style: none;
  padding: 20px 56px 16px 24px;
  cursor: pointer;
}
#fullArticle .hr-toc > summary::-webkit-details-marker { display: none; }
#fullArticle .hr-toc > summary { transition: padding-bottom 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
#fullArticle .hr-toc:is(:not([open]), .is-closing) > summary { padding-bottom: 20px; }

/* The heading inside the summary becomes the small Tungsten label,
   whatever it's called ("Table of contents", "Steps for Getting Started").
   Grouped contents with no heading of their own get a plain label. */
#fullArticle .hr-toc > summary > :is(h2, h3, .hr-toc__label) {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--hr-font-display) !important;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hr-ink-muted);
}
#fullArticle .hr-toc > summary > :is(h2, h3) * {
  font-family: inherit !important;
  font-weight: inherit;
}

/* chevron */
#fullArticle .hr-toc > summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.75px solid var(--hr-ink);
  border-bottom: 1.75px solid var(--hr-ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
#fullArticle .hr-toc[open]:not(.is-closing) > summary::after { transform: rotate(-135deg); margin-top: -2px; }
#fullArticle .hr-toc > summary:focus-visible {
  outline: 2px solid var(--hr-focus);
  outline-offset: -4px;
  border-radius: var(--hr-radius);
}

#fullArticle .hr-toc__body,
#fullArticle .hr-faq__a { margin: 0 !important; }   /* Help Scout gives divs a bottom margin */
#fullArticle .hr-toc__body { padding: 0 24px 22px; }
#fullArticle .hr-toc__body > ol,
#fullArticle .hr-toc__body > ul {
  margin: 0;
  padding: 0 0 0 1.5rem;
  background: none;
  border: 0;
}
/* group labels inside a contents box (e.g. "Subscriptions") */
#fullArticle .hr-toc__body > p {
  margin: 0;
  font-size: var(--hr-text-sm);
  font-weight: 600;
}
/* group headings inside a contents box (General FAQs: "App Questions") */
#fullArticle .hr-toc__body > :is(h2, h3, h4) {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--hr-font-text) !important;
  font-size: var(--hr-text-sm);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hr-ink);
}
#fullArticle .hr-toc__body > :is(h2, h3, h4) * { font-family: inherit !important; }
#fullArticle .hr-toc__body > :is(h2, h3, h4) a {
  color: inherit;
  text-decoration: none;
}
#fullArticle .hr-toc__body > :is(h2, h3, h4) a:hover { text-decoration: underline; }
#fullArticle .hr-toc__body > * + * { margin-top: 0.75rem; }
#fullArticle .hr-toc__body > :is(ol, ul) + :is(h2, h3, h4) { margin-top: 1.25rem; }
#fullArticle .hr-toc__body > :is(p, h2, h3, h4) + :is(ol, ul) { margin-top: 0.4rem; }
#fullArticle .hr-toc li {
  font-size: var(--hr-text-sm);
  line-height: 1.5;
}
#fullArticle .hr-toc li + li { margin-top: 0.5em; }


/* ── Tabs (from [tab: …] markers in the article) ─────────────── */
.hr-tabs { margin: 0; }
#fullArticle > * + .hr-tabs { margin-top: 1.75rem; }
.hr-tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--hr-sand-light);
  border: 1px solid var(--hr-sand);
  border-radius: var(--hr-pill);
  max-width: 100%;
  box-sizing: border-box;
}
.hr-tabs__tab {
  height: 40px;
  min-width: 96px;
  margin: 0;
  padding: 0 20px;
  font-family: var(--hr-font-text) !important;
  font-size: var(--hr-text-xs);
  font-weight: 500;
  line-height: 1;
  color: var(--hr-ink-muted);
  background: transparent;
  border: 0;
  border-radius: var(--hr-pill);
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.hr-tabs__tab:hover { color: var(--hr-ink); }
.hr-tabs__tab[aria-selected="true"] {
  background: var(--hr-ink);
  color: #fff;
}
.hr-tabs__tab:focus-visible { outline: 2px solid var(--hr-focus); outline-offset: 2px; }

.hr-tabs__panel { margin-top: 1.5rem; }
#fullArticle > .hr-tabs + * { margin-top: 2rem; }
.hr-tabs__panel[hidden] { display: none !important; }
.hr-tabs__panel:focus { outline: none; }
.hr-tabs__panel:focus-visible { outline: 2px solid var(--hr-focus); outline-offset: 6px; border-radius: 4px; }

/* Same reading rhythm inside a tab as in the article */
#fullArticle .hr-tabs__panel > br { display: none; }
#fullArticle .hr-tabs__panel > :is(*, p, ul, ol, h2, h3, h4, div, figure, blockquote, table, hr) {
  margin-top: 0;
  margin-bottom: 0;
}
#fullArticle .hr-tabs__panel > * + :is(*, p, ul, ol, div, figure, blockquote, table) { margin-top: var(--hr-flow); }
#fullArticle .hr-tabs__panel > * + h2 { margin-top: 2.5rem; }
#fullArticle .hr-tabs__panel > * + h3 { margin-top: 2rem; }
#fullArticle .hr-tabs__panel > * + h4 { margin-top: 1.5rem; }
#fullArticle .hr-tabs__panel > :is(h2, h3, h4) + * { margin-top: 0.75rem; }
#fullArticle .hr-tabs__panel > * + hr,
#fullArticle .hr-tabs__panel > hr + * { margin-top: 2.5rem; }
#fullArticle .hr-tabs__panel > hr:first-child { display: none; }

/* Inside an FAQ answer, keep it a little tighter */
#fullArticle .hr-faq__a .hr-tabs__panel { margin-top: 1rem; }

/* ── Tap / click to enlarge ─────────────────────────────────── */
#fullArticle img.hr-zoomable { cursor: zoom-in; }
#fullArticle img.hr-zoomable:focus-visible {
  outline: 2px solid var(--hr-focus);
  outline-offset: 3px;
}

.hr-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.hr-lightbox::backdrop { background: rgba(21, 25, 31, 0.88); }
.hr-lightbox__scroll {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 32px 32px;
  box-sizing: border-box;
  overflow: auto;
  cursor: zoom-out;
}
.hr-lightbox__scroll img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--hr-radius);
  background: #fff;
  cursor: default;
}
/* Touch zoom (see the script): the browser leaves gestures to us here */
.hr-lightbox__scroll { touch-action: none; }
.hr-lightbox__scroll img {
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hr-lightbox__scroll img.is-gesturing { transition: none; }
.hr-lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--hr-ink);
  cursor: pointer;
}
.hr-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* ── Phones ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* same pill as desktop, left of the chat bubble */
  .hr-to-top {
    right: var(--hr-fab-right, 92px);
    bottom: var(--hr-fab-bottom, 16px);
  }

  .hr-faq__q { padding: 16px 52px 16px 18px; }
  .hr-faq__q::after { right: 14px; }
  .hr-faq__a { padding: 8px 18px 20px; }

  #fullArticle .hr-toc > summary { padding: 18px 52px 18px 18px; }
  #fullArticle .hr-toc[open]:not(.is-closing) > summary { padding-bottom: 12px; }
  #fullArticle .hr-toc__body { padding: 0 18px 18px; }

  /* Search at the top of the page on phones (moved there by the script) */
  .hr-top-search { display: block; margin: 16px 20px 20px; }
  .hr-top-search #searchBar { max-width: none; margin: 0; }
  .hr-top-search #searchBar .search-query { height: 48px; }
  .hr-top-search #searchBar button { height: 48px; }
  #main-content > .hr-top-search:empty { display: none; }
  body #sidebar.span3.hr-side-empty { display: none; }

  /* Categories as a tap-to-open box */
  #sidebar .hr-cats {
    margin-top: 0;
    background: var(--hr-surface);
    border: 1px solid var(--hr-sand);
    border-radius: var(--hr-radius);
  }
  #sidebar .hr-cats > summary {
    position: relative;
    padding: 18px 52px 18px 18px;
    cursor: pointer;
  }
  #sidebar .hr-cats > summary h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #sidebar .hr-cats > summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 1.75px solid var(--hr-ink);
    border-bottom: 1.75px solid var(--hr-ink);
    transform: rotate(45deg);
    transition: transform 0.2s;
  }
  #sidebar .hr-cats[open]:not(.is-closing) > summary::after { transform: rotate(-135deg); margin-top: -2px; }
  #sidebar .hr-cats > summary:focus-visible { outline: 2px solid var(--hr-focus); outline-offset: -4px; border-radius: var(--hr-radius); }
  #sidebar .hr-cats > .nav-list { padding: 0 18px 12px !important; }
  #sidebar .hr-cats > .nav-list > li > a { padding: 10px 0; }

  /* Tabs share the full width on phones */
  .hr-tabs__list { display: flex; }
  .hr-tabs__tab { flex: 1 1 0; min-width: 0; padding: 0 12px; }

  /* Enlarged image: fitted to the screen; pinch / double-tap to zoom,
     drag to pan, swipe down to close (handled by the script) */
  .hr-lightbox__scroll {
    padding: 72px 12px 24px;
    overflow: hidden;
  }
  .hr-lightbox__scroll img {
    border-radius: 8px;
    cursor: zoom-in;
  }
  .hr-lightbox__scroll.is-zoomed img { border-radius: 0; cursor: grab; }
}

@media print {
  .hr-to-top, .hr-lightbox { display: none !important; }
  .hr-faq__a { display: block !important; }
}


/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .category-list .category:hover { transform: none; }
}


/* =============================================================
   Print — black text, no chrome
   ============================================================= */
@media print {
  .navbar, #sidebar, #docsSearch, .articleRatings, .related,
  footer, #beacon-container, .printArticle { display: none !important; }
  body { background: #fff; }
  #fullArticle { max-width: none; }
  #fullArticle a { color: #000; }
}
