/* ACTLC site layer: design tokens, header refinements, footer. Loaded on every page.
   One typeface (Inter, served locally) because the theme already uses it in 126 places.
   Type sizes are ratios of one base size (--t) that grows with the screen, after Apple's
   text-style table: Body 17, Callout 16, Subhead 15, Footnote 13, Title 3 20, Title 2 22, Title 1 28. */

.acx {
  --t: clamp(17px, calc(13.4px + 0.29vw), 19px);      /* 17px up to ~1240px wide, 19px at 1920px */
  --fs-large: calc(var(--t) * 2.05);
  --fs-t1: calc(var(--t) * 1.647);
  --fs-t2: calc(var(--t) * 1.294);
  --fs-t3: calc(var(--t) * 1.176);
  --fs-body: var(--t);
  --fs-callout: calc(var(--t) * 0.941);
  --fs-sub: calc(var(--t) * 0.882);
  --fs-foot: calc(var(--t) * 0.765);
  --tap: max(44px, calc(var(--t) * 2.4));             /* Apple minimum hit target: 44pt */

  --brand: #3dc1c8;   --teal: #0e7a83;  --teal-deep: #0b616a; --teal-tint: #e8f6f7; --teal-tint-2: #d8eff1;
  --ink: #15242b;     --body: #374850;  --muted: #52626a;   /* >= 4.5:1 on the #f6f8fa page ground */     --hairline: #e2ebed;
  --surface: #fff;    --ground: #f6f8fa; --track: #e7eef0;
  --red: #b42318;     --red-tint: #fdf3f2; --red-line: #f0c3be;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);

  font-family: var(--font);
  font-size: var(--t);
  line-height: 1.47;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.acx *, .acx *::before, .acx *::after { box-sizing: border-box; }
.acx [hidden] { display: none !important; }
.acx svg { flex: none; }
.acx a { color: var(--teal); }
.acx a:focus-visible, .acx button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }

/* Header ----------------------------------------------------------------
   Same structure, menus and behaviour. Changes: a translucent material with a
   hairline instead of a shadow, readable 15px labels, quieter icons, accessible
   contrast for the current page and the Sign up button, rounded dropdowns. */
.site-header {
  background: rgba(255, 255, 255, .95) !important;
  border-bottom: 1px solid rgba(16, 42, 48, .08) !important; box-shadow: none !important;
}
/* Blur only where the theme has no slide-out panel: a blurred parent becomes the box its fixed children
   size against, which shrank the phone menu panel to the 76px header (the menu was there but cut off). */
@media (min-width: 800px) { .site-header { -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); } }
.acx.acx-m { display: none; }   /* phone chrome (tools/mobile_chrome.py), shown by mobile.css at <= 760px */
.acx.acx-dst { display: none; }   /* phone-only short versions of long paragraphs (tools/distil.py) */
.site-header #primary-menu > li > a {
  min-height: 44px; display: flex; align-items: center;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; color: #1d2b33;
}
.site-header #primary-menu > li > a i { color: #5a6b73; }
.site-header #primary-menu > li.current-menu-item > a,
.site-header #primary-menu > li.current-menu-item > a span { color: #0e7a83 !important; font-weight: 600; }
.site-header #primary-menu > li.current-menu-item > a i { color: #3dc1c8; }
.site-header .bb-header-buttons .button { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.site-header .bb-header-buttons .button.signup { color: #06363a !important; }
.site-header .bb-sub-menu {
  padding: 6px !important; border: 1px solid rgba(16, 42, 48, .08) !important; border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(16, 42, 48, .14), 0 2px 6px rgba(16, 42, 48, .06) !important;
}
.site-header .bb-sub-menu li a {
  min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px !important; border-radius: 9px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; font-weight: 500; color: #1d2b33 !important;
}
/* The theme draws its own square card and arrow behind the dropdown; the rounded menu is the only surface. */
.site-header .wrapper.ab-submenu { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.site-header .wrapper.ab-submenu::before { display: none !important; }
.site-header .bb-sub-menu li a { transition: background-color .15s ease, color .15s ease; }
@media (prefers-reduced-motion: no-preference) {
  .site-header #primary-menu li:hover > .ab-submenu .bb-sub-menu,
  .site-header #primary-menu li:focus-within > .ab-submenu .bb-sub-menu { animation: acx-menu .18s cubic-bezier(.2, .8, .2, 1); transform-origin: top left; }
}
@keyframes acx-menu { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .site-header .bb-sub-menu li a:hover { background: #e8f6f7; color: #0b616a !important; }
}

/* Footer ------------------------------------------------------------------
   Apple-style: a site map in quiet columns, contact you can tap, one legal line. */
.footer-bottom.bb-footer { display: none; }   /* duplicate name strip; the brand now lives in the footer */
.acx-footer { background: #f2f5f6; border-top: 1px solid var(--hairline); }
.acx .acx-foot-in { max-width: 1140px; margin: 0 auto; padding: calc(var(--t) * 2.2) 20px calc(var(--t) * 1.4); }
.acx .acx-foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: calc(var(--t) * 2); align-items: start; }
.acx .acx-foot-brand { display: inline-block; }
.acx .acx-foot-brand img { display: block; width: auto; height: calc(var(--t) * 4.6); }   /* ~78px phone, ~92px at 1920 */
.acx .acx-foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: calc(var(--t) * 4); gap: calc(var(--t) * 1.5); }
.acx .acx-foot-h { margin: 0 0 calc(var(--t) * 0.5); font: 600 var(--fs-foot)/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.acx .acx-foot-col ul { list-style: none; margin: 0; padding: 0; }
.acx .acx-foot-col li { margin: 0; }
.acx .acx-foot-col a { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--fs-foot); color: var(--muted); text-decoration: none; }
.acx .acx-foot-col address { margin: calc(var(--t) * 0.4) 0 0; font-style: normal; font-size: var(--fs-foot); line-height: 1.55; color: var(--muted); }
@media (hover: hover) { .acx .acx-foot-col a:hover { color: var(--ink); text-decoration: underline; } }
.acx .acx-foot-bottom { margin-top: calc(var(--t) * 1.6); padding-top: calc(var(--t) * 1); border-top: 1px solid var(--hairline); }
.acx .acx-foot-bottom p { margin: 0; font-size: var(--fs-foot); color: var(--muted); }

@media (max-width: 900px) {
  .acx .acx-foot-top { grid-template-columns: minmax(0, 1fr); gap: calc(var(--t) * 1.4); }
  .acx .acx-foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--t) * 1.2) calc(var(--t) * 1); }
  .acx .acx-foot-col a { min-height: 44px; }      /* touch target */
}
@media (prefers-reduced-motion: reduce) { .acx * { transition: none !important; } }

/* One wide column for the whole site: header, content and footer share the same edges */
@media (min-width: 901px) {
  .site-header .site-header-container { max-width: min(1400px, calc(100vw - 64px)) !important; width: 100%; padding-left: 0 !important; padding-right: 0 !important; }
  .acx .acx-foot-in, .acx-list-root, .acx-detail, .acx-page-list .entry-header {
    width: min(1400px, calc(100vw - 64px)) !important; max-width: none !important;
    margin-left: calc(50% - min(700px, 50vw - 32px)) !important; margin-right: 0 !important; padding-left: 0; padding-right: 0;
  }
}

/* Interactive hover button (CSS port of shadcn InteractiveHoverButton): the label slides out,
   a dot grows into the fill, and the label returns with an arrow. Mouse only; off for reduced motion. */
.acx .acx-btn[data-label], .site-header .button.signup[data-label] {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 999px !important;
  --hb-fill: var(--teal-deep, #0b616a); --hb-ink: #fff;
}
.acx .acx-btn[data-label] .acx-btn-t, .site-header .button.signup[data-label] .acx-btn-t {
  display: inline-flex; align-items: center; gap: .45em; transform: translateX(4px); transition: transform .3s ease, opacity .3s ease;
}
.acx .acx-btn[data-label]::before, .site-header .button.signup[data-label]::before {
  content: ""; position: absolute; left: 14px; top: calc(50% - 4px); z-index: -1; width: 8px; height: 8px; border-radius: 8px;
  background: var(--hb-fill); transition: all .3s ease;
}
.acx .acx-btn[data-label]::after, .site-header .button.signup[data-label]::after {
  content: attr(data-label) "  \2192"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--hb-ink); white-space: nowrap; opacity: 0; transform: translateX(48px); transition: all .3s ease;
}
.acx .acx-btn-filled[data-label], .acx .acx-btn:not(.acx-btn-light):not(.acx-btn-tint)[data-label] { --hb-fill: var(--teal-deep, #0b616a); }
.acx .acx-btn-light[data-label] { --hb-fill: var(--teal, #0e7a83); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .acx .acx-btn[data-label]:hover .acx-btn-t, .site-header .button.signup[data-label]:hover .acx-btn-t { transform: translateX(48px); opacity: 0; }
  .acx .acx-btn[data-label]:hover::after, .site-header .button.signup[data-label]:hover::after { transform: translateX(-4px); opacity: 1; }
  .acx .acx-btn[data-label]:hover::before, .site-header .button.signup[data-label]:hover::before { left: 0; top: 0; width: 100%; height: 100%; transform: scale(1.8); }
}
@media (prefers-reduced-motion: reduce) {
  .acx .acx-btn[data-label]::before, .acx .acx-btn[data-label]::after, .site-header .button.signup[data-label]::before, .site-header .button.signup[data-label]::after { display: none; }
}
.acx .acx-btn[data-label], .site-header .button.signup[data-label] { padding-left: calc(var(--t, 17px) * .7 + 16px) !important; }
/* Touch screens never hover: no dot, no slide, even padding */
@media (hover: none) {
  .acx .acx-btn[data-label]::before, .acx .acx-btn[data-label]::after { display: none; }
  .acx .acx-btn[data-label] .acx-btn-t { transform: none; }
  .acx .acx-btn[data-label] { padding-left: calc(var(--t, 17px) * 1.15) !important; padding-right: calc(var(--t, 17px) * 1.15) !important; }
}

/* Scroll reveal (actlc-assets/reveal.js): fade and rise into place, fade back out when leaving.
   Expo-out easing, short stagger; nothing is hidden unless the script is running. */
.acx-rv .acx-rv-el { opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--rv-i, 0) * 70ms); }
.acx-rv .acx-rv-el.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .acx-rv .acx-rv-el { opacity: 1; transform: none; transition: none; } }

.acx .acx-btn[data-label] { min-height: 44px; }

/* Site search (search.js): a panel over the page, results as you type --------- */
.acx-sd {
  width: min(680px, calc(100vw - 32px)); max-width: none; max-height: min(78vh, 760px);
  margin: 9vh auto auto; padding: 0; border: 0; border-radius: 16px;
  background: var(--surface); color: var(--ink); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16, 42, 48, .08), 0 24px 64px rgba(16, 42, 48, .22);
}
.acx-sd[open] { display: flex; flex-direction: column; }
.acx-sd::backdrop { background: rgba(14, 30, 36, .4); }
html:has(.acx-sd[open]) { overflow: hidden; }
.acx-sd .acx-sd-bar { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--hairline); }
.acx-sd .acx-sd-bar svg { width: 20px; height: 20px; color: var(--muted); }
.acx-sd .acx-sd-q {
  flex: 1; min-width: 0; height: 60px !important; margin: 0; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0; background: transparent !important;
  font: 400 18px/1.2 var(--font) !important; color: var(--ink) !important;
}
.acx-sd .acx-sd-q::placeholder { color: var(--muted); opacity: 1; }
.acx-sd .acx-sd-q::-webkit-search-cancel-button { display: none; }
.acx-sd .acx-sd-x { min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: 500 15px/1 var(--font); color: var(--teal); cursor: pointer; }
.acx-sd .acx-sd-status { margin: 0; padding: 12px 20px 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.acx-sd .acx-sd-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 10px; }
.acx-sd .acx-sd-r { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; scroll-margin: 8px; }
.acx-sd .acx-sd-r[aria-selected="true"] { background: var(--teal-tint); }
.acx-sd .acx-sd-k { font: 600 12.5px/1.3 var(--font); color: var(--teal-deep); }
.acx-sd .acx-sd-t { font: 600 16px/1.3 var(--font); color: var(--ink); }
.acx-sd .acx-sd-s { font-size: 14px; line-height: 1.35; color: var(--muted); }
.acx-sd .acx-sd-b { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--body); }
.acx-sd mark { background: none; color: var(--teal-deep); font-weight: 600; }
.acx-sd .acx-sd-t mark { color: inherit; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.acx-sd .acx-sd-keys { margin: 0; padding: 10px 20px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--muted); }
.acx-sd kbd { display: inline-block; min-width: 1.6em; padding: 1px 5px; border: 1px solid var(--hairline); border-radius: 5px; background: var(--ground); font: 500 12px/1.4 var(--font); text-align: center; color: var(--ink); }
@media (hover: none), (max-width: 720px) { .acx-sd .acx-sd-keys { display: none; } }
@media (max-width: 720px) {
  .acx-sd { width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .acx-sd .acx-sd-bar { padding-left: 16px; }
  .acx-sd .acx-sd-q { font-size: 17px !important; }   /* 16px or more: iOS does not zoom the page */
}

/* Arriving from a search result: clear the sticky header and point at the item for a moment */
:where(.acx) [id] { scroll-margin-top: 96px; }
@keyframes acx-found { from { outline-color: var(--brand); } to { outline-color: transparent; } }
.acx-ev:target, .acx-res:target, .acx-c-person:target, .acx-c-track:target, .acx-c-day:target {
  outline: 3px solid transparent; outline-offset: 6px; border-radius: 12px; animation: acx-found 2.6s ease-in .4s both;
}
@media (prefers-reduced-motion: reduce) {
  .acx-ev:target, .acx-res:target, .acx-c-person:target, .acx-c-track:target, .acx-c-day:target { animation: none; outline-color: var(--brand); }
}
