/* Self-hosted to match the site's existing font pattern (Righteous / Source
   Sans Pro are self-hosted too) rather than adding a Google Fonts CDN
   dependency -- keeps everything first-party. Latin subset only. */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/eb-garamond-v33-400.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/eb-garamond-v33-600.woff2") format("woff2");
}

/* ==========================================================================
   DESIGN TOKENS
   Built around the existing brand accent (#d96716) — a warm, near-black
   neutral scale replaces the cooler blue-greys the builder shipped with,
   plus an 8px spacing scale (spacious tier) and the EB Garamond / Source
   Sans Pro pairing recommended for legal/professional services.
   ========================================================================== */
:root {
  /* Color */
  --color-accent: #d96716;
  --color-accent-deep: #94460f; /* accent darkened ~15% (HSL) — clears 4.5:1 with white text */
  --color-accent-light: #f0924d;
  /* Consular page's own distinct accent — one blue used consistently, not
     the five ad-hoc shades the page shipped with. Steel/Air Force Blue: a
     desaturated, muted tone (30% saturation vs. the earlier #3b82f6's
     92%) that reads as understated rather than a bright UI-kit blue,
     while still clearing 4.5:1 on the site's near-black background. */
  --consular-blue: #5d8aa8; /* 5.34:1 on var(--color-bg) */
  --consular-blue-light: #8babc1; /* hover state */
  --consular-blue-deep: #2d4453; /* darkened ~30% HSL — white text is 10.2:1 */
  --color-bg: #0a0a0a;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.14);
  --color-text: #f2f0ea; /* warm off-white, not stark #fff */
  --color-text-muted: #ada79c; /* warm grey, replaces the builder's cool #c7c9d6/#aaadbd */
  --color-focus: #8ab4f8; /* kept blue: functional focus indicator, not a brand color */

  /* Typography */
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans Pro", arial, sans-serif;

  /* Spacing scale (8px base, spacious tier) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
}

/* Breakpoints (documented reference — media queries below use these values
   directly, since CSS custom properties can't be interpolated into an
   @media condition): 375 mobile / 768 tablet / 1024 small laptop / 1440 desktop */

/* Adopt the serif for every major heading site-wide (hero tagline, section
   titles like "Associates"/"Legal Support", team names, practice-area
   names) — the builder's default Source Sans Pro on every heading is part
   of why the site reads as a generic template. Body copy stays on Source
   Sans Pro, which is already clean and legible. */
[data-typography="HeadingDelta"],
[data-typography="HeadingGamma"] {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}

/* Homepage hero: the widget's content block (firm name, tagline, and
   both "Schedule a Consultation" / "Message US" CTA buttons) ships with
   display:none as its BASE rule, only overridden back to flex at
   min-width:1024px. There's no override below that, so on mobile and
   tablet the entire hero text/CTA content collapses to 0x0 -- invisible
   and unclickable, not just visually hidden. (Likely fallout from an
   earlier "remove duplicate hero markup" cleanup that took out what was
   probably a separate mobile-specific copy of this same content, leaving
   nothing to show at those widths.) Targeted via :has() on the stable
   CTA data-aid rather than the atomic class, since that class is
   reused/renumbered per page and isn't safe to override blindly. */
#page-82284 [data-ux="HeaderMediaFillBackground"] > [data-ux="Block"]:has([data-aid="HEADER_CTA_BTN"]) {
  display: flex !important;
}

/* Desktop nav: force a single row, no wrap, no leftover "More" dropdown */
nav[data-aid="HEADER_NAV_RENDERED"] > ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: auto !important;
}
nav[data-aid="HEADER_NAV_RENDERED"] .nav-item {
  display: inline-flex !important;
  white-space: nowrap;
  flex: 0 0 auto;
}
nav[data-aid="HEADER_NAV_RENDERED"] .nav-item a {
  font-size: clamp(13px, 1.2vw, 16px) !important;
  padding-left: clamp(6px, 1vw, 16px) !important;
  padding-right: clamp(6px, 1vw, 16px) !important;
}
/* Defense in depth: if any leftover "More" markup remains anywhere, keep it hidden */
nav[data-aid="HEADER_NAV_RENDERED"] [data-aid="NAV_MORE"] {
  display: none !important;
}

/* Touch target sizing: bump a few 40x40 controls up to the ~44x44 minimum */
[data-aid="HAMBURGER_MENU_LINK"] {
  min-width: 44px !important;
  min-height: 44px !important;
}
[data-aid="FOOTER_FACEBOOK_LINK"],
[data-aid="FOOTER_INSTAGRAM_LINK"],
[data-aid="FOOTER_LINKEDIN_LINK"],
[data-aid="FOOTER_COOKIE_CLOSE_RENDERED"],
[data-aid="FOOTER_COOKIE_REJECT_RENDERED"] {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Blog article body links (site is dark-themed; unstyled <a> defaults are hard to read) */
#article-static-content a {
  color: #8ab4f8;
}
#article-static-content a:visited {
  color: #b39ddb;
}
/* Safety net for every image inside an article body -- the Featured
   Image already gets width:100%;height:auto written inline by
   build-articles.js, but any image dropped in through the Body editor's
   own image tool (Decap's markdown widget supports inline images) ships
   with no styling at all from marked.parse(), and previously rendered
   at its raw native pixel size -- e.g. a phone photo at 1048x1376,
   overflowing a 375px mobile viewport. This applies regardless of
   whether the image carries its own inline style, so it's not dependent
   on the build script or on remembering to style each one by hand. */
#article-static-content img {
  max-width: 100%;
  height: auto;
}

/* legal-resources.html static "Articles" list links */
#recovered-legal-resources-articles a {
  color: #8ab4f8 !important;
}

/* Articles list: featured image beside title/byline/tags, stacking on narrow screens */
#recovered-legal-resources-articles li.article-list-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#recovered-legal-resources-articles li.article-list-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex-shrink: 0;
}
#recovered-legal-resources-articles li.article-list-item .article-content {
  flex: 1;
  min-width: 0;
}
#recovered-legal-resources-articles .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
#recovered-legal-resources-articles .article-tag {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1.4;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(138, 180, 248, 0.15);
  color: #8ab4f8;
  white-space: nowrap;
}
@media (max-width: 480px) {
  #recovered-legal-resources-articles li.article-list-item {
    flex-direction: column;
  }
  #recovered-legal-resources-articles li.article-list-item img {
    width: 100%;
    height: 180px;
  }
}

/* Articles list: search/filter by title or category */
#article-filter {
  margin-bottom: 24px;
}
#article-search-wrap {
  position: relative;
  max-width: 360px;
}
#article-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 34px 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #e8e9f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
#article-search-input::placeholder {
  color: #aaadbd;
}
#article-search-input:focus {
  outline: none;
  border-color: #8ab4f8;
}
#article-search-clear {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  color: #aaadbd;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#article-search-clear:hover {
  color: #e8e9f0;
}
#article-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  box-sizing: border-box;
  padding: 8px 16px;
  font-size: 0.8em;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  border-radius: 18px;
  border: 1px solid rgba(138, 180, 248, 0.35);
  background: rgba(138, 180, 248, 0.1);
  color: #8ab4f8;
  cursor: pointer;
  white-space: nowrap;
}
.category-chip:hover,
.category-chip:focus-visible {
  background: rgba(138, 180, 248, 0.22);
  outline: none;
}
.category-chip.active {
  background: #8ab4f8;
  color: #14152b;
}
#article-no-results {
  display: none;
  color: #aaadbd;
  font-size: 0.95em;
  margin-top: 16px;
}

/* Homepage: credentials strip, practice-areas teaser, team teaser,
   about-firm teaser, footer address. All four hand-added sections share
   one consistent top/bottom rhythm (--space-8) instead of the mismatched
   ad-hoc padding they started with. */
#home-credentials,
#home-practice-areas,
#home-team-teaser,
#home-about-teaser {
  padding: var(--space-8) 20px;
}
.home-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
#home-credentials h2,
#home-practice-areas h2,
#home-team-teaser h2,
#home-about-teaser h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 var(--space-4);
  text-align: center;
}
.home-practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); /* 190px: all five practice cards fit one row at the 1100px max width */
  align-items: start; /* an expanded card must not stretch its row-siblings taller */
  gap: var(--space-3);
}
@media (max-width: 767px) {
  .home-practice-grid {
    grid-template-columns: 1fr; /* full-width stacked cards on mobile */
  }
}

/* Click-to-expand practice-area cards. Motion is interaction-driven only
   (click/keyboard) -- no scroll-triggered reveal of any kind. */
.home-practice-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
  transition:
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 320ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 320ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.home-practice-grid.has-open .home-practice-card:not(.is-open) {
  transform: scale(0.97);
  opacity: 0.6;
}
.home-practice-card.is-open {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}
.home-practice-name {
  margin: 0;
}
.home-practice-toggle {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.15em;
  font-weight: 600;
  transition: color 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.home-practice-toggle:hover {
  color: var(--color-accent-light);
}
.home-practice-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}
.home-practice-hook {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 0.85em;
  font-weight: 400;
  line-height: 1.5;
  transition: color 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.is-open .home-practice-toggle,
.is-open .home-practice-hook {
  color: var(--color-text);
}
.home-practice-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.is-open .home-practice-panel {
  opacity: 1;
}
.home-practice-panel-inner {
  padding: 0 var(--space-3) var(--space-3);
}
.home-practice-panel-inner p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92em;
  line-height: 1.55;
}
.home-practice-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}
.home-practice-link:hover,
.home-practice-link:focus-visible {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .home-practice-card,
  .home-practice-toggle,
  .home-practice-hook,
  .home-practice-panel {
    transition: none !important;
  }
}

/* Credentials strip */
.home-credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.home-credential {
  text-align: center;
  padding-top: var(--space-2);
  border-top: 2px solid var(--color-accent);
}
.home-credential-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.15em;
}
.home-credential-detail {
  display: block;
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.85em;
  line-height: 1.4;
}
.home-credentials-byline {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9em;
  margin: 0;
}
.home-credentials-byline a {
  color: var(--color-focus);
}

/* Meet-the-team teaser */
.home-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-3);
}
.home-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: var(--space-2);
  border-radius: 8px;
  min-height: 44px;
  transition: background-color 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.home-team-member:hover {
  background: var(--color-surface-hover);
}
.home-team-member:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.home-team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  margin-bottom: var(--space-2);
}
.home-team-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95em;
  line-height: 1.3;
}
.home-team-title {
  margin-top: 4px;
  color: var(--color-accent);
  font-size: 0.8em;
}
.home-about-inner {
  max-width: 720px;
  text-align: center;
}
.home-about-inner p {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-2);
}
.home-about-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-focus);
  font-weight: 600;
  text-decoration: none;
}
.home-about-link:hover,
.home-about-link:focus-visible {
  text-decoration: underline;
}

/* About Us: justify bio paragraphs for a uniform block edge, with
   hyphenation so justification doesn't create loose/gappy lines, and a
   capped measure so lines stay a comfortable reading width. */
[data-aid^="ABOUT_DESCRIPTION_RENDERED"] {
  max-width: 68ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
[data-aid^="ABOUT_DESCRIPTION_RENDERED"],
[data-aid^="ABOUT_DESCRIPTION_RENDERED"] p {
  text-align: justify !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
}

/* ==========================================================================
   CONSULAR PAGE
   Selectors are scoped under each section's unique widget id (not the
   short atomic classes, which are re-numbered per page and would leak
   into unrelated elements on other pages if targeted directly). The page
   shipped with two different navy section backgrounds (#151C37, #1D2647)
   plus assorted grey/blue hover colors; both are replaced with the same
   var(--color-bg) every other page uses, with var(--consular-blue) as
   this page's own single, deliberate accent instead.
   ========================================================================== */
[id="73fb4ff9-e7b2-4e79-b404-e2b0369b172e"] section[data-ux="Section"],
[id="3306d42d-844a-41b4-b516-e674b4f6fe7b"] section[data-ux="Section"],
[id="817c25fa-d02c-4faf-a248-5ef2131a8290"] section[data-ux="Section"] {
  background-color: var(--color-bg) !important;
}
[id="73fb4ff9-e7b2-4e79-b404-e2b0369b172e"] h1,
[id="817c25fa-d02c-4faf-a248-5ef2131a8290"] h2 {
  color: var(--consular-blue) !important;
}

/* Hero crest: the old image was a wide 1.83:1 navy-boxed rectangle: the
   coat of arms replacing it is a tall ~5:6 SVG on a transparent
   background, so both its aspect ratio and its (previously logo-sized,
   80px-tall) height need to be reset rather than inherited. One-time
   fade+rise on load only -- see initConsularCrestReveal() in site-ui.js. */
[id="73fb4ff9-e7b2-4e79-b404-e2b0369b172e"] img[data-aid="LOGOS_IMAGE0_RENDERED"] {
  aspect-ratio: 5 / 6 !important;
  width: auto !important;
  height: clamp(160px, 22vw, 260px) !important;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
[id="73fb4ff9-e7b2-4e79-b404-e2b0369b172e"] img[data-aid="LOGOS_IMAGE0_RENDERED"].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [id="73fb4ff9-e7b2-4e79-b404-e2b0369b172e"] img[data-aid="LOGOS_IMAGE0_RENDERED"] {
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Office-hours block: was two bare paragraphs separated by manual <br><br>
   spacer hacks, sitting flush against the video with no visual boundary.
   Framed as a clearly-bordered info card so the hours are the thing a
   visitor's eye actually lands on. */
[id="3306d42d-844a-41b4-b516-e674b4f6fe7b"] [data-aid="VIDEO_DESCRIPTION_RENDERED"] {
  border-left: 3px solid var(--consular-blue);
  background: rgba(93, 138, 168, 0.08);
  border-radius: 0 8px 8px 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4) !important;
}
/* Blank spacer <p> tags (a lone &nbsp; or <br>) inside this block are
   hidden by initConsularSpacerCleanup() in site-ui.js -- their content is
   text nodes / nested elements, which plain CSS structural selectors
   can't reliably detect as "empty". */
[id="3306d42d-844a-41b4-b516-e674b4f6fe7b"] [data-aid="VIDEO_DESCRIPTION_RENDERED"] p.is-blank-spacer {
  display: none;
}

/* Links and Resources: same .home-practice-card click-to-expand component
   as the homepage practice-area cards (initAccordionGrid() in site-ui.js
   drives both) -- just recoloured blue instead of orange for this page.
   White text on var(--consular-blue-deep) is 10.2:1, well past 4.5:1. */
#consular-resources-grid .home-practice-toggle {
  color: var(--consular-blue);
}
#consular-resources-grid .home-practice-toggle:hover {
  color: var(--consular-blue-light);
}
#consular-resources-grid .home-practice-card.is-open {
  background: var(--consular-blue-deep);
  border-color: var(--consular-blue-deep);
}
/* #consular-resources-grid .home-practice-toggle above outranks the
   shared ".is-open .home-practice-toggle { color: var(--color-text) }"
   rule (id+class beats two classes), so the open-state flip to white
   needs restating here at the same specificity -- otherwise the toggle
   stays blue-on-blue at 2.7:1 once expanded, well under 4.5:1. */
#consular-resources-grid .is-open .home-practice-toggle,
#consular-resources-grid .is-open .home-practice-hook {
  color: var(--color-text);
}

/* ==========================================================================
   SIGNATURE ELEMENT: gradient-fade divider
   The one recurring motif tying Home / Legal Services / About Us /
   Consular together — a thin rule that fades in from nothing rather than
   a hard-edged <hr>, used wherever one editorial section ends and the
   next begins. Deliberately not a card, not a color-block: this site's
   "signature" is restraint, not a shape.
   ========================================================================== */
.section-divider {
  border: none;
  height: 1px;
  width: 160px;
  margin: var(--space-8) auto;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

/* ==========================================================================
   LEGAL SERVICES PAGE
   Editorial/document layout: sticky jump-nav + full content on one
   scroll, deliberately NOT the homepage's card/click-to-expand pattern.
   ========================================================================== */
/* Hero courthouse image: the builder's image column had a fixed max-height
   (1000px) that didn't grow to match the taller text column beside it (H1 +
   4 practice sections) once the two sit side by side at >=1024px, leaving
   the split's own navy background exposed below the image. Stretch it to
   fill the full height of its already-positioned column instead. */
[data-ux="SplitItemImage"] [data-ux="Element"],
[data-ux="SplitItemImage"] [data-ux="Background"] {
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  max-height: none !important;
}
/* Legal Services: practice-area content set larger for a substantial,
   easy-reading feel while scrolling -- the vendor defaults (22px heading /
   16px body, fixed regardless of viewport) read as cramped next to the
   page's editorial, single-scroll structure. Scoped to this page's practice
   sections only (not the shared ABOUT_DESCRIPTION_RENDERED rule other
   pages' bios also use). */
#page-36196 [id^="practice-"] h2 {
  font-size: clamp(22px, 1.8vw, 27px) !important;
  line-height: 1.3 !important;
}
#page-36196 [id^="practice-"] [data-aid^="ABOUT_DESCRIPTION_RENDERED"],
#page-36196 [id^="practice-"] [data-aid^="ABOUT_DESCRIPTION_RENDERED"] p {
  font-size: clamp(16px, 1vw, 17px) !important;
  line-height: 1.7 !important;
  text-align: left !important; /* justified + hyphenated read as a dense grey block */
  -webkit-hyphens: manual !important;
  hyphens: manual !important;
}
/* Two-voice rhythm per practice area: a serif lead sentence in the brand
   display face, then the detail in the body face, muted. Breaks up what was
   one uniform block of sans-serif across five sections. */
#page-36196 [id^="practice-"] [data-aid^="ABOUT_DESCRIPTION_RENDERED"] p.practice-lead {
  margin: 0 0 var(--space-2) !important;
  font-family: var(--font-display) !important;
  font-size: clamp(20px, 1.5vw, 23px) !important;
  line-height: 1.45 !important;
  color: var(--color-text) !important;
}
#page-36196 [id^="practice-"] [data-aid^="ABOUT_DESCRIPTION_RENDERED"] p.practice-body {
  margin: 0 !important;
  padding-left: var(--space-2);
  border-left: 2px solid var(--color-accent);
  color: var(--color-text-muted) !important;
}
#page-36196 [id^="practice-"] {
  padding-top: var(--space-4) !important;
  padding-bottom: var(--space-4) !important;
}
#page-36196 .practice-icon {
  width: 34px;
  height: 34px;
}
/* This page's dividers sit between two already-padded sections, so the
   site-wide --space-8 margin (64px) stacked with section padding on both
   sides added up to a very large gap. Tighter here only. */
#page-36196 .section-divider {
  margin: var(--space-3) auto !important;
}
@media (max-width: 767px) {
  #page-36196 [id^="practice-"] {
    padding-top: var(--space-3) !important;
    padding-bottom: var(--space-3) !important;
  }
  #page-36196 .practice-icon {
    width: 28px;
    height: 28px;
  }
}

/* Legal Services split-layout decorative photo: vendor CSS caps this at a
   fixed max-height (1000px desktop / 448px tablet) that falls short of the
   four-section text column's real height, leaving a gap of bare background
   below the image once the page is tall enough (visible behind Family Law,
   the last section). Force it to fill its flex-stretched column instead. */
#page-36196 [data-ux="SplitItemImage"] [data-ux="Element"],
#page-36196 [data-aid="ABOUT_IMAGE_RENDERED1"] {
  max-height: none !important;
  height: 100% !important;
}

/* Practice-area section heading: small line icon + h2, editorial not app */
.practice-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.practice-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}
.practice-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   SITE-WIDE FOOTER
   Address, phone, email, and quick nav links, consistent on every page
   (previously only the homepage had an address line, and nothing had
   phone/email/quick-links in the footer at all). Sits above the existing
   vendor copyright/social-icons row, same container width.
   ========================================================================== */
#site-footer-extra {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-6) 20px var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.site-footer-col {
  min-width: 220px;
}
.site-footer-heading {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer-tagline {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.92em;
  line-height: 1.5;
  max-width: 32ch;
}
.site-footer-address,
.site-footer-contact {
  margin: 0 0 6px;
  color: var(--color-text-muted);
  font-size: 0.92em;
  line-height: 1.6;
}
.site-footer-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.site-footer-contact a:hover,
.site-footer-contact a:focus-visible {
  color: var(--color-focus);
  text-decoration: underline;
}
.site-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.site-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-muted);
  font-size: 0.92em;
  text-decoration: none;
}
.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: var(--color-accent);
}

/* ==========================================================================
   LEGAL RESOURCES PAGE
   The page builder set this page's own base background to flat black
   (.page-inner), while its hero section carries an explicit navy -- so
   everything below the hero (search/filter/article list) sat on a black
   panel that clashed against the navy used everywhere else on the page
   and site. Match it to the page's own hero navy instead.
   ========================================================================== */
/* Faint law-library texture behind the article list -- desaturated and
   duotoned (shadows -> --consular-blue-deep, highlights -> --color-accent)
   so it reads as brand texture, not a stock photo. The flat navy scrim is
   the same solid rgb(29,38,71) as the page's own background, at 90% alpha,
   which both (a) is the mechanism that holds the image down to ~10%
   visibility uniformly everywhere on the page (long articles included,
   since it's a flat scrim rather than a gradient that could thin out) and
   (b) guarantees text contrast is unchanged from the plain-navy version.
   Source: Biblioteca CAMDP (Colegio de Abogados de Mar del Plata),
   Wikimedia Commons, CC BY-SA 4.0 -- desaturate/duotone/downscale is a
   licensed derivative use. */
#page-36275 .page-inner {
  background-color: rgb(29, 38, 71) !important;
  background-image: linear-gradient(rgba(29, 38, 71, 0.88), rgba(29, 38, 71, 0.88)),
    url("../images/legal-resources-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* background-attachment: fixed is unreliable on iOS Safari (jank, and on
   older versions silently ignored) -- -webkit-touch-callout is a reliable
   iOS-only feature query, so scroll-with-content there specifically. */
@supports (-webkit-touch-callout: none) {
  #page-36275 .page-inner {
    background-attachment: scroll;
  }
}
/* The "Legal Resources" hero widget ships with its own opaque atomic
   background-color (rgb(21,28,55), a slightly different navy from the
   page-level one above) on BOTH the widget wrapper div and the inner
   <section> -- both carry the same atomic class (.c1-6j), painted on top
   of .page-inner, which is what was creating a solid block over the hero
   with a hard seam where it ended and the page's own image+scrim became
   visible for the article list below. This class is only used by those
   two hero elements on this page, so it's safe to blank out scoped here.
   Made transparent so the one continuous page-level background shows
   through for the hero too. */
#page-36275 .c1-6j {
  background-color: transparent !important;
}
/* Vendor heading underline (a short 50px rule in rgb(38,48,88), a leftover
   blue that doesn't match the site's accent) sits directly under the H1,
   duplicating the .section-divider already used below it -- one divider
   per heading, not two. */
#page-36275 [data-ux="SectionHeadingHR"] {
  display: none !important;
}
/* Hero title section had 56px top/bottom padding on the section itself,
   plus this divider's own 64px top/bottom margin, plus the article list's
   own 40px top margin -- stacked, that's ~220px of dead space between the
   title and "Articles". Scoped to the hero widget specifically since the
   underlying atomic padding classes are shared/reused elsewhere on this
   page. */
#page-36275 [id="a5def990-0fee-46a0-b423-ef63bb5e2791"] section[data-ux="Section"] {
  padding-top: var(--space-4) !important;
  padding-bottom: var(--space-4) !important;
}
#page-36275 .section-divider {
  margin: var(--space-3) auto !important;
}
@media (max-width: 767px) {
  #page-36275 [id="a5def990-0fee-46a0-b423-ef63bb5e2791"] section[data-ux="Section"] {
    padding-top: var(--space-3) !important;
    padding-bottom: var(--space-3) !important;
  }
}
/* Article list read as cramped next to the rest of the site's larger type
   -- bump heading/title/filter sizes moderately (not as far as the Legal
   Services pass, which overshot and had to be dialed back). */
#recovered-legal-resources-articles h2 {
  font-size: clamp(28px, 2.2vw, 32px) !important;
}
#recovered-legal-resources-articles .article-content a {
  font-size: 1.3em !important;
}
#recovered-legal-resources-articles .article-tag {
  font-size: 0.85em !important;
}
#article-search-input {
  font-size: 16px !important;
}
.category-chip {
  font-size: 0.88em !important;
}

/* ==========================================================================
   CONTACT PAGE BACKGROUND
   Faint Valletta streetscape (gallarija balconies) behind the whole page --
   desaturated and duotoned (shadows -> near-black navy, highlights ->
   --consular-blue, the site's one established muted blue) so it reads as
   brand texture, not a tourist photo. Applied to .page-inner as ONE
   continuous background for the entire page (title/form/address/map),
   same lesson learned on Legal Resources: no separate section
   background-colors stacked on top creating a seam.
   Source: "Gallariji in Valletta, Malta, 2025" by lonewolfshotels001,
   Wikimedia Commons, CC0 (public domain) -- no attribution required.
   ========================================================================== */
#page-34879 .page-inner {
  background-color: #0a0a0a !important;
  background-image: linear-gradient(
      rgba(21, 24, 40, 0.8),
      rgba(21, 24, 40, 0.8) 60%,
      rgba(21, 24, 40, 0.7)
    ),
    url("../images/contact-us-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@supports (-webkit-touch-callout: none) {
  #page-34879 .page-inner {
    background-attachment: scroll;
  }
}
/* The "Contact Us" hero title and the form both shipped inside one
   opaque-background <section> (rgb(32,29,66), same atomic class on the
   wrapping widget too) -- exactly the Legal Resources seam bug. Blanked
   out so the page-level texture shows through continuously; only used by
   this one hero/form section on this page. */
#page-34879 .c1-6j {
  background-color: transparent !important;
}
/* Same vendor heading-underline duplicate-divider issue as Legal
   Resources -- this page has no accent divider to keep, so just remove
   the vendor one rather than adding a new divider that wasn't there
   before. */
#page-34879 [data-ux="SectionHeadingHR"] {
  display: none !important;
}
/* Both the form and the address column need a harder legibility
   guarantee than plain hero text (the address column uses the accent
   orange for headings, which has much less contrast headroom against a
   photo than white does) -- float both as glass panels on top of the
   page texture. rgba (not a plain solid) is the fallback: browsers with
   no backdrop-filter support just skip that declaration and keep this
   semi-transparent tint un-blurred, never falling back to fully opaque.
   Worst-case contrast (checked against the page background's lightest
   point -- the sky area of the duotone image, un-blurred so this is the
   conservative case; real blur only averages neighbouring pixels toward
   the mean, reducing peak brightness further) still holds 4.66:1 for the
   orange heading text, well clear of 4.5:1. Scoped to the specific grid
   holding the form so it doesn't touch the other two Grid layouts on
   this page. */
#page-34879 [data-ux="Grid"]:has([data-aid="CONTACT_FORM_CONTAINER_REND"]) {
  gap: var(--space-3);
}
/* REGRESSION FIX: the gap above, added for breathing room between the
   panels when stacked, broke the vendor's own >=1024px two-column layout.
   The vendor sets flex-basis/max-width: 50% on each cell only inside its
   own min-width:1024px rule (below that it's 100% and stacks -- that
   part was always correct and untouched). 50% + 50% + a 24px gap on a
   wrap-enabled flex row exceeds 100% of the container, so the second
   panel wrapped onto its own row even at desktop widths. Only the
   >=1024px case needs the gap subtracted back out of the basis; the
   stacked case below that was never broken. */
@media (min-width: 1024px) {
  #page-34879 [data-ux="Grid"]:has([data-aid="CONTACT_FORM_CONTAINER_REND"]) > [data-ux="GridCell"] {
    flex-basis: calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
  }
}
#page-34879 [data-ux="Grid"]:has([data-aid="CONTACT_FORM_CONTAINER_REND"]) > [data-ux="GridCell"] {
  background: rgba(21, 24, 40, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: var(--space-4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
/* The address line was set in the base --color-accent (#d96716), which
   has thin contrast headroom (L=0.245) -- it was the binding constraint
   keeping panel opacity/blur nearly opaque to guarantee 4.5:1 at the
   image's brightest (sky) point. Swapped to --color-accent-light
   (#f0924d, already an established token for this kind of situation,
   L=0.396), which frees the panel to be genuinely see-through: worst
   case now checks out at 6.09:1, comfortable margin above 4.5:1. */
#page-34879 [data-aid="CONTACT_INFO_ADDRESS_REND"] {
  color: var(--color-accent-light) !important;
}
/* Map sits on its own opaque strip so the background image doesn't show
   through the gap around the iframe. */
#page-34879 iframe {
  position: relative;
  background: #fff;
}
/* Google's own place-card popup (shown when the embedded map's marker is
   "active") can't be disabled via a URL parameter for this embed format
   -- but it's only triggered by a text/address search query. Switching
   the iframe src's q= param from the address text to raw coordinates
   turns the marker into a plain pin with no associated "place", so
   Google has nothing to show a rich info-card for. The custom card below
   replaces what that popup was for (name/address/directions), and lives
   entirely outside the iframe's box in normal document flow -- it can
   never be clipped by the map container or overlap the map controls,
   since it isn't stacked on top of the map at all. */
.map-directions-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(21, 24, 40, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.map-directions-card-name {
  margin: 0 0 4px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05em;
}
.map-directions-card-address {
  margin: 0;
  color: var(--color-accent-light);
  font-size: 0.92em;
}
.map-directions-card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 22px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(217, 103, 22, 0.35);
  transition: background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}
.map-directions-card-button:hover,
.map-directions-card-button:focus-visible {
  background: var(--color-accent-light);
  box-shadow: 0 6px 18px rgba(217, 103, 22, 0.45);
  transform: translateY(-1px);
}
.map-directions-card-button:active {
  background: var(--color-accent-deep);
  transform: translateY(0);
}
.map-directions-card-button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .map-directions-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-directions-card-button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   CONTACT PAGE FORM
   Plain white input/textarea fields read flat against the rest of the
   dark, accent-driven site -- tinted with the brand accent instead so the
   form reads as part of the same page, not a stock form embed.
   ========================================================================== */
/* A quiet secondary path to Calendly for people who'd rather book
   directly than fill the form -- kept to one small text line under the
   "Get in Touch!" heading (not a duplicate button) so it doesn't compete
   with the form as the page's primary action. */
.contact-schedule-line {
  margin: 4px 0 20px;
  color: var(--color-text-muted);
  font-size: 0.9em;
}
.contact-schedule-link {
  color: var(--color-accent-light);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 103, 22, 0.4);
  transition: border-color 200ms ease, color 200ms ease;
}
.contact-schedule-link:hover,
.contact-schedule-link:focus-visible {
  color: var(--color-accent-light);
  border-bottom-color: var(--color-accent-light);
}
#page-34879 form input[type="text"],
#page-34879 form input[type="email"],
#page-34879 form textarea {
  background-color: rgba(217, 103, 22, 0.07) !important;
  border: 1px solid rgba(217, 103, 22, 0.3) !important;
  border-radius: 4px !important;
  color: var(--color-text) !important;
  transition: border-color 200ms ease, background-color 200ms ease;
}
#page-34879 form input[type="text"]::placeholder,
#page-34879 form input[type="email"]::placeholder,
#page-34879 form textarea::placeholder {
  color: var(--color-text-muted) !important;
}
#page-34879 form input[type="text"]:focus,
#page-34879 form input[type="email"]:focus,
#page-34879 form textarea:focus {
  background-color: rgba(217, 103, 22, 0.12) !important;
  border-color: var(--color-accent) !important;
  outline: none !important;
}
/* Submit button shipped with an inline near-black background that barely
   registered against the page's own dark navy -- no visible "box", just
   white text. Brand accent instead, matching every other CTA on the site,
   plus a hover/press state so it clearly reads as clickable. */
#page-34879 form button[type="submit"] {
  background: var(--color-accent) !important;
  box-shadow: 0 4px 14px rgba(217, 103, 22, 0.35);
  transition: background-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}
#page-34879 form button[type="submit"]:hover,
#page-34879 form button[type="submit"]:focus-visible {
  background: var(--color-accent-light) !important;
  box-shadow: 0 6px 18px rgba(217, 103, 22, 0.45);
  transform: translateY(-1px);
}
#page-34879 form button[type="submit"]:active {
  background: var(--color-accent-deep) !important;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(217, 103, 22, 0.35);
}
#page-34879 form button[type="submit"]:focus-visible {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 2px;
}

/* ==========================================================================
   SITE CREDIT
   Small "Site by Visioneering MT" line under the footer copyright.
   ========================================================================== */
.site-credit {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 0.92em;
}
.site-credit a {
  color: var(--color-accent-light);
  text-decoration: none;
}
.site-credit a:hover,
.site-credit a:focus-visible {
  text-decoration: underline;
}
