/* Base: fonts, the page and its scroll area, text defaults, links, focus rings, selection, the shared hover pill,
   icons and other site-wide pieces. */

/* Inter Variable, self-hosted latin (Cal App Design System) */
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Inter Variable"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-italic.woff2) format("woff2"); }

html {
  scrollbar-gutter: stable; /* the document scrolls; the fixed header and the page share the width left of the scrollbar */
  scroll-padding-top: var(--ncc-fixed-top); /* in-page jumps land below the fixed header */
  background: var(--ncc-page);
  scrollbar-width: thin;
  scrollbar-color: var(--ncc-thumb) transparent;
  
  -moz-osx-font-smoothing: grayscale;
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
@supports not (scrollbar-color: red blue) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--ncc-thumb); border-radius: var(--ncc-pill); border: 2px solid transparent; background-clip: padding-box; }
}
html body {
  margin: 0;
  color: var(--ncc-ink);
  background: var(--ncc-page) !important; /* Elementor kit + theme paint the body */
  font-family: var(--ncc-font);
}
body :where(h1, h2, h3, h4, h5, h6, p, a, span, li, dt, dd, label, button, input, select, textarea, summary, .e-heading-base, .e-paragraph-base, .elementor-heading-title, .elementor-widget-container) { font-family: var(--ncc-font) !important; }
#page, .site, .site-content, .content-area, .site-main, .inside-article, .entry-content { background: transparent !important; }
html body { min-height: 100%; }
.ncc-scroll { /* the page under the fixed header; the document scrolls it (no nested scroller: the browser keeps scroll restoration, keyboard and wheel scrolling, and lazy-load distance) */
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100lvh - var(--wp-admin--admin-bar-height, 0px)); /* border-box: the header padding counts, so the footer meets the bottom of a short page (it ended a header height short, 2026-11-17) */
  padding-top: calc(var(--ncc-header-h) + var(--wp-admin--admin-bar-height, 0px));
}
.ncc-scroll > #page { flex: 1 0 auto; width: 100%; max-width: none !important; padding: 0 !important; margin: 0 !important; } /* the theme's 1200px container would sit left-aligned */
.ncc-scroll .site-content, .ncc-scroll main { padding: 0 !important; margin: 0 !important; }
:is(.e-heading-base, .elementor-heading-title) { text-wrap: balance; }
:is(.e-paragraph-base, .ncc-form-intro, .ncc-privacy) { text-wrap: pretty; }
:is(h1, h2, h3, h4, h5, h6, p, li, .e-heading-base, .e-paragraph-base, .elementor-heading-title):not(.lglf-framing, .ncc-privacy, .ncc-form-intro, .ncc-muted, .ncc-photo-note) {
  color: inherit;
}
:is(main, footer, .ncc-footer) a:not(.e-loop-item > a, .lglf-buttons *, .wpcf7 *, .ncc-action, .ncc-button, .ncc-rs-org, .ncc-coverage a, .ncc-archive-card > a, .ncc-more-cases a, .ncc-archive-pager a) {
  color: var(--ncc-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  
}
@media (hover: hover) {
  :is(main, footer, .ncc-footer) a:not(.e-loop-item > a, .lglf-buttons *, .wpcf7 *, .ncc-action, .ncc-button, .ncc-rs-org, .ncc-coverage a, .ncc-archive-card > a, .ncc-more-cases a, .ncc-archive-pager a):hover { color: var(--ncc-link-hover); text-decoration-color: currentColor; }
}
:where(main, .ncc-footer, .ncc-identity, .elementor-location-header) :is(a, button, summary):focus-visible {
  outline: 2px solid var(--ncc-focus) !important; /* the one ring weight (1.5px drew 1px on standard screens) */
  outline-offset: 2px !important;
}
.elementor-location-header .ncc-nav-search-open.is-quiet:focus-visible { outline: none !important; } /* focus came back from a tapped close X (JS) */
:where(main) :is(input, select, textarea):focus-visible,
.lglf-select:focus-visible,
.elementor .elementor-element.elementor-widget-loop_grid_live_filter .lglf-search:focus-within {
  outline: none !important;
  border-color: var(--ncc-focus) !important;
  box-shadow:none !important; outline: 2px solid var(--ncc-focus) !important; outline-offset: 0; /* border + 1px halo: a 2px edge, not a 3px band */
}
.ncc-muted { color: var(--ncc-muted); }
.skip-link.screen-reader-text, .ncc-identity a, .ncc-footer a, .ncc-crumbs a, .elementor-location-header [data-id="d0903c7"] a, .ncc-photo-note a, .ncc-story a { transition: color var(--ncc-dur-fade) ease-out, text-decoration-color var(--ncc-dur-fade) ease-out; }
.ncc-card {
  background: var(--ncc-surface);
  border-radius: 0;
  box-shadow:none;
}
.ncc-icon { width: 16px; height: 16px; flex: none; fill: none; }
.ncc-actions { display: flex; flex-direction: column; gap: 8px; }
.ncc-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 0;
  color: var(--ncc-ink) !important;
  background: var(--ncc-page);
  box-shadow:none;
  text-decoration: none !important;
  font-size: var(--ncc-step-small);
  line-height: 1.45;
  transition: background-color var(--ncc-dur-fade) ease-out;
}
a.ncc-action { box-shadow:none; } /* `.elementor a` resets box-shadow at (0,1,1) */
a.ncc-action:active { background: var(--ncc-muted-bg); }
@media (hover: hover) {
  a.ncc-action:is(:hover, :active) { background: var(--ncc-muted-bg); }
}
.ncc-action > .ncc-icon { width: 18px; height: 18px; color: var(--ncc-subtle); }
.ncc-action-body { flex: 1; min-width: 0; }
.ncc-action-title { display: block; font-weight: 500; }
.ncc-action-sub { display: block; color: var(--ncc-muted); overflow-wrap: break-word; }
.ncc-action > .ncc-icon:last-child { color: var(--ncc-faint); width: 16px; height: 16px; }
.ncc-action--static { align-items: flex-start; box-shadow:none; background: none; }
.ncc-action--static > .ncc-icon { margin-top: 2px; }
.ncc-nowrap { white-space: nowrap; }
html.ncc-theme-changing, html.ncc-theme-changing *, html.ncc-theme-changing *::before, html.ncc-theme-changing *::after { transition: none !important; }
@media (max-width: 1024px) {
  body { position: relative; } /* the dim below is sized to the body: the whole document on phones */
  body::after { content: ""; position: absolute; inset: 0; z-index: 10; background: rgb(0 0 0 / 0.4); opacity: 0; pointer-events: none; transition: opacity var(--ncc-dur-ui) ease-out; } /* absolute in the document, not fixed: iOS Safari never paints fixed layers under its toolbar, so a fixed dim stops short of the bottom */
  html, body { scrollbar-width: none; -ms-overflow-style: none; } /* iOS draws the document indicator over the fixed header; hide it on phones */
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
  /* iOS Safari colours the strip behind the status bar from the root element and the strip under its toolbar from the body
     (seen on the simulator, 2026-11-12). So: the root stays the page colour, the body takes the footer band's colour, and
     the scroll area, which holds everything, paints the page. Top strip = page, bottom strip = footer. */
  html body { background: var(--ncc-band) !important; }
  .ncc-scroll { background: var(--ncc-page); }
  html { overscroll-behavior-y: none; } /* no bounce past the top or the end: on the bounce iOS drags the fixed header down with the page and fills the space above it with a black box the banner's colour (a fast scroll back to the top showed it; simulator, 2026-11-16) */
}
html .ncc-footer-brand p { margin: 0; color: var(--ncc-secondary); font-size: var(--ncc-step-small); line-height: 1.45; }
html .ncc-footer-col p { margin: 0; color: var(--ncc-secondary); }
html .ncc-footer .ncc-footer-col a { color: var(--ncc-secondary) !important; text-decoration: none; overflow-wrap: anywhere; } /* a list of links under its heading: plain at rest, underlined and ink on hover; the legal links below stay underlined */
@media (hover: hover) {
  html .ncc-footer .ncc-footer-col a:hover { color: var(--ncc-ink) !important; text-decoration: underline; text-decoration-color: currentColor; }
}
body .lglf-head h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* no grey flash on any tap: each control has its own :active cue, and links get the one below */
@media (hover: none) {
  :where(a[href]):not(:where(.e-loop-item > a, .ncc-suggest-item, .ncc-button, .ncc-pager a, .ncc-share-buttons a, .elementor-nav-menu--dropdown a, .ncc-coverage a, .ncc-more-cases a, .ncc-gallery-slide > a, a.ncc-action, .ncc-rs-org, .ncc-identity-social a, .ncc-contact-item > a)):active { opacity: 0.6; } /* touch: a plain link dims while pressed (the links listed keep their own cue) */
}
@media (pointer: coarse) {
  html, body { scrollbar-width: none; scrollbar-color: auto; } /* phones scroll the document; no indicator over the fixed header */
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; scroll-behavior: auto !important; } /* keyframes (spinner, Elementor entrances) stop; transitions stay, and the movement ones below lose their movement */
  .lglf-pick-chevron, .elementor-location-header .elementor-nav-menu--dropdown .sub-arrow, .ncc-video-icon { transition: none !important; } /* rotate/scale: the new state appears at once */
  .lglf-pick-check, .ncc-gallery-btn { transition: opacity var(--ncc-dur-fade) ease-out !important; } /* keep the fade, drop scale and blur */
  html[data-theme] .elementor-location-header .elementor-menu-toggle + .elementor-nav-menu--dropdown { translate: none !important; transition: opacity var(--ncc-dur-ui) ease-out, visibility 0s linear var(--ncc-dur-ui) !important; }
  html[data-theme] .elementor-location-header .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown { transition: opacity var(--ncc-dur-ui) ease-out, visibility 0s !important; }
  html[data-theme] .elementor-location-header .elementor-menu-toggle + .elementor-nav-menu--dropdown > ul { translate: none !important; opacity: 1 !important; transition: none !important; } /* reduced motion: the whole sheet fades, as before */
  /* Elementor's frontend.css sets `html * { transition-duration: 0s !important }` here; give the colour fades their time back
     (their scale presses only exist under no-preference, so nothing moves) */
  html :is(.ncc-button, .ncc-pager a, .wpcf7 .wpcf7-submit, .ncc-share-buttons :is(a, button), .lglf-buttons button, .lglf-pick-trigger, .ncc-identity-social a, .lglf-ms-box, .ncc-nav-search, a.ncc-action) { transition-duration: var(--ncc-dur-fade) !important; }
  html[data-theme] body.page-id-15328 [data-id="cbb0bda"] > [data-id="5d22b50"] { transition: opacity var(--ncc-dur-fade) ease-out, visibility 0s !important; } /* Sort: fades out with the chip row, no slide */
  html[data-theme] body.page-id-15328 [data-id="9bced68"].is-tucked [data-id="cbb0bda"] > [data-id="5d22b50"] { transition: opacity var(--ncc-dur-fade) ease-out, visibility 0s var(--ncc-dur-fade) !important; }
}
::selection { background: color-mix(in oklch, var(--ncc-accent) 22%, var(--ncc-page)); color: var(--ncc-ink); } /* readable on both pages; iOS draws its own */
input, textarea { caret-color: var(--ncc-ink); }
:is(main, footer, .ncc-footer) a { text-decoration-skip-ink: auto; text-underline-position: from-font; }
:is(h1, h2, h3, .e-heading-base, .elementor-heading-title, .ncc-wordmark) { font-kerning: normal; }
:where(main) :is(h1, h2, h3, h4, [id]) { scroll-margin-top: var(--ncc-sticky-top); }
:where(main) :is(p, li, dd) { overflow-wrap: break-word; }
@media (max-width: 767px) {
  html { scroll-padding-top: 0; } /* phones: the headings' own margin clears the header and the tucked filter row */
  :where(main) :is(h1, h2, h3, h4, [id]) { scroll-margin-top: calc(var(--ncc-header-h) + 76px); }
}
body :is(h1, h2, h3):not(.ncc-footer-col h2, .lglf-head h2) { font-family: var(--ncc-serif) !important; letter-spacing: -0.01em; }
:is(h1, h2) { text-wrap: balance; }
:is(main, .ncc-footer) a { text-underline-offset: 3px; text-underline-position: from-font; text-decoration-skip-ink: auto; }
:is(main, footer, .ncc-footer) a:not(.e-loop-item > a, .lglf-buttons *, .wpcf7 *, .ncc-action, .ncc-button, .ncc-rs-org, .ncc-coverage a, .ncc-archive-card > a, .ncc-more-cases a, .ncc-archive-pager a) { text-decoration-color: var(--ncc-link-line); }
.skip-link.screen-reader-text:focus { position: fixed !important; top: 8px !important; left: 16px !important; z-index: 100000; display: inline-flex !important; align-items: center; width: auto !important; height: 40px !important; padding: 0 14px !important; clip: auto !important; clip-path: none !important; border-radius: 0; color: var(--ncc-ink) !important; background: var(--ncc-surface) !important; box-shadow:none; font: 500 var(--ncc-step-small)/1.45 var(--ncc-font) !important; text-decoration: none; }
html[data-theme] .ncc-page-head p { max-width: none; color: var(--ncc-secondary); font-size: var(--ncc-step-body); line-height: 1.6; text-wrap: pretty; }
@media (max-width: 767px) {
  html[data-theme] .ncc-page-head p { font-size: var(--ncc-step-body); line-height: 1.5; }
}
* { corner-shape: superellipse(1.25); }
:is(.ncc-seal, .ncc-footer-brand img) { corner-shape: round; }
html { -webkit-font-smoothing: antialiased; font-feature-settings: "cv11"; }
:focus-visible { outline: 2px solid var(--ncc-ink); outline-offset: 2px; }

/* entrances: the parts of a page rise into place once as they come into view (the script adds .ncc-rise, so nothing
   is hidden without it); reduced motion keeps a short fade and no travel */
.ncc-rise { opacity: 0; translate: 0 12px; transition: opacity var(--ncc-dur-travel) var(--ncc-ease-out), translate var(--ncc-dur-travel) var(--ncc-ease-out) !important; transition-delay: var(--ncc-rise-delay, 0ms) !important; } /* !important: beats the `transition: none` resets on Elementor widgets (which stop Elementor animating every property) */
.ncc-rise.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .ncc-rise { translate: none; transition: opacity var(--ncc-dur-fade) ease-out !important; transition-delay: 0ms !important; } }
/* GeneratePress's default page template, which plain pages and the Elementor-built Resources and Contact pages share */
body.page-template-default:not(.elementor-page) :is(#right-sidebar, #left-sidebar, .sidebar) { display: none !important; }
body.page-template-default:not(.elementor-page) .content-area { float: none !important; width: 100% !important; }
body.page-template-default:not(.elementor-page) .site-content { display: block; }

/* Phones: page transitions (2026-11-17). Every phone page opts in to the browser's cross-document view transition, so
   moving between pages is visible: the old page fades out in 150ms and the new one fades in over 300ms. The header is
   its own layer and holds still. Pages whose parts rise in (cases, About, Resources, Contact) only fade here, or the
   two motions would stack; case pages, which have no entrances, add a 12px rise (case-page.css). Reduced motion: the
   new page fades in over 150ms. */
@media (max-width: 767px) {
  @view-transition { navigation: auto; }
  .elementor-location-header { view-transition-name: ncc-header; }
  ::view-transition-old(root) { animation: var(--ncc-dur-leave) ease-out both ncc-vt-out; }
  ::view-transition-new(root) { animation: var(--ncc-dur-travel) var(--ncc-ease-out) 60ms both ncc-vt-fade; } /* starts once the old page is half gone: no doubled text */
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation: var(--ncc-dur-fade) ease-out both ncc-vt-fade; }
}
@keyframes ncc-vt-out { to { opacity: 0; filter: blur(2px); } } /* blur under 20px: cheap, and it blends any overlap */
@keyframes ncc-vt-fade { from { opacity: 0; } }
@keyframes ncc-vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Mobile pass (2026-11-17): a long press on a control selects its label (and on iOS opens the copy callout); controls only, content
   text stays selectable */
:where(button, [role="button"], [role="tab"], .ncc-button, .lglf-buttons button, .lglf-pick-trigger, .elementor-menu-toggle, .ncc-nav-search-open, .ncc-nav-search-close, .elementor-location-header .elementor-nav-menu a, .ncc-share-buttons :is(a, button), .ncc-map-option) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* .ncc-map-option: the Map filter chips are labels, and a long press selected their words */
