/* Design polish over the captured WordPress pages (Nov 17 2026). Same look; this file only fixes
   things that were off. Loaded last on every page by src/lib/seo.ts. Markup-side fixes are in
   src/lib/polish.ts. Section ids (gb-container-xxxx) are GenerateBlocks ids from the capture. */

/* 1. Header between 993px and 1024px (iPad landscape, small laptops).
   The theme's tablet type size (22px nav links) starts at 1024px but the mobile header only takes
   over at 992px, so in between the desktop menu wrapped onto two rows. Keep desktop sizing there. */
@media (min-width: 993px) and (max-width: 1024px) {
  #site-navigation.main-navigation a,
  #site-navigation .menu-bar-items,
  #sticky-navigation.main-navigation a {
    font-size: 15px;
  }
  #site-navigation .main-nav ul li a,
  #sticky-navigation .main-nav ul li a {
    padding-left: 16px;
    padding-right: 16px;
  }
  #site-navigation .main-nav > ul,
  #sticky-navigation .main-nav > ul {
    flex-wrap: nowrap;
  }
  #site-navigation .main-nav > ul > li > a,
  #sticky-navigation .main-nav > ul > li > a {
    white-space: nowrap;
  }
}

/* 2. One content edge. Sections carried 40px of side padding on top of the page gutter, so text
   sat 20 to 40px inside the logo and page title on desktop and, on phones, in a column as narrow
   as 270px (60px gutters). Every section now lines up with the logo and title: 20px on phones. */

/* Boxed pages: .site-content already supplies the 20px gutter. */
body:not(.full-width-content) .entry-content > .gb-container > .gb-inside-container {
  padding-left: 0;
  padding-right: 0;
}

/* Full-width pages (home, DWI, BWI, family law): the section supplies the gutter itself. */
.full-width-content .gb-container-829e6be2 > .gb-inside-container,
.full-width-content .gb-container-ba9716be > .gb-inside-container,
.full-width-content .gb-container-3e5851d1 > .gb-inside-container,
.full-width-content .gb-container-8ffdb5b5 > .gb-inside-container,
.full-width-content .gb-container-e383b16e > .gb-inside-container,
.full-width-content .gb-container-8fe69200 > .gb-inside-container,
.full-width-content .gb-container-bbce1b8e > .gb-inside-container,
.full-width-content .gb-container-d5be9a86 > .gb-inside-container,
.full-width-content .gb-container-b0dcdc75 > .gb-inside-container,
.full-width-content .gb-container-36533f70 > .gb-inside-container,
.full-width-content .gb-container-f7cf1b36 > .gb-inside-container {
  padding-left: 20px;
  padding-right: 20px;
}

/* 3. Family law: the first section sat 60px closer to the page banner than on the other practice
   pages, and the practice-area grid ran the full window width instead of the 1200px page width. */
.gb-container-bbce1b8e > .gb-inside-container {
  padding-top: 100px;
}

.gb-container-b38de565 > .gb-inside-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 4. DWI and BWI: the reviews heading was left-aligned over a centered reviews block and sat
   tight against the paragraph above. Center it like the other practice pages. */
.gb-headline-ebc320de {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

/* 5. Practice-area lists on phones and tablets: the three columns stack, and 60px gaps between
   them made one list read as three. Close the gaps so it reads as a single list. */
@media (max-width: 1024px) {
  .gb-grid-wrapper-357fef51 > .gb-grid-column,
  .gb-grid-wrapper-5eb7655c > .gb-grid-column,
  .gb-grid-wrapper-4a651584 > .gb-grid-column {
    padding-bottom: 0;
  }

  .gb-grid-wrapper-357fef51,
  .gb-grid-wrapper-5eb7655c,
  .gb-grid-wrapper-4a651584 {
    margin-bottom: 40px;
  }
}

/* 6. Service Area: county lists in columns instead of one long strip down the left. */
.kdm-counties {
  columns: 3;
  column-gap: 60px;
}

.kdm-county {
  break-inside: avoid;
  padding-bottom: 10px;
}

@media (max-width: 900px) {
  .kdm-counties {
    columns: 2;
    column-gap: 40px;
  }
}

@media (max-width: 560px) {
  .kdm-counties {
    columns: 1;
  }
}

/* 7. 404 page: links in place of the WordPress search box. */
.kdm-404-links {
  margin: 0 0 1.5em 1.2em;
  line-height: 2;
}

/* 8. Criminal defense list: an empty trailing item left a blank gap in the middle of the list. */
.gb-grid-wrapper-357fef51 p.gb-headline:empty {
  display: none;
}

/* Accessibility, Nov 22 2026 (axe + pixel contrast pass).
   1. Links inside running text were told apart by colour only (#406080 vs #111, 2.87:1; WCAG 1.4.1
      needs 3:1 or a non-colour cue). Underline them; buttons keep their own look. */
.site-content p a:not(.gb-button),
.site-content li a:not(.gb-button) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* 2. The gold current-page / hover nav item measured 2.5-3.2:1 over the hero photos (needs 4.5:1).
      Keep the text white and carry the gold as an underline instead. Top level only: the dropdown
      sits on solid navy, where gold passes. */
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
.main-navigation .main-nav > ul > li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav > ul > li:not([class*="current-menu-"]):focus-within > a,
.main-navigation .main-nav > ul > li.sfHover > a {
  color: #ffffff !important;
  text-decoration: underline;
  text-decoration-color: #c3a990;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
/* The sticky menu that appears on scroll is white with black links, so the white text above would
   vanish there (caught Nov 22). Keep it black; the gold underline still marks the item. Gold text
   on white would only reach 2.2:1, so it stays an underline here too. */
#sticky-navigation.main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
#sticky-navigation.main-navigation .main-nav > ul > li:not([class*="current-menu-"]):hover > a,
#sticky-navigation.main-navigation .main-nav > ul > li:not([class*="current-menu-"]):focus-within > a,
#sticky-navigation.main-navigation .main-nav > ul > li.sfHover > a {
  color: #000000 !important;
}

/* Footer hover colour (Nov 22 2026). The captured footer used four different hovers: grey-blue on
   the contact column, bright orange (#ffaa00, off-brand) on Practice Areas, none on the social
   icons and a faint white on the legal line. One brand gold for all of them; it measures about
   6:1 on the footer navy, so it also passes contrast. Buttons (Contact Us) keep their own hover. */
.gb-container-fa1f17d1 a:not(.gb-button-text):hover,
.gb-container-fa1f17d1 a:not(.gb-button-text):focus-visible,
.gb-container-a19ad229 a:hover,
.gb-container-a19ad229 a:focus-visible,
.gb-container-521c639c a:hover,
.gb-container-521c639c a:focus-visible,
.site-footer .copyright-bar a:hover,
.site-footer .copyright-bar a:focus-visible {
  color: #c3a990 !important;
}
.gb-container-a19ad229 a:hover .gb-icon,
.gb-container-a19ad229 a:focus-visible .gb-icon,
.gb-container-521c639c a:hover .gb-icon,
.gb-container-521c639c a:focus-visible .gb-icon {
  color: #c3a990 !important;
}

/* Button and link consistency (Nov 22 2026). The site's system: solid navy buttons (#1f2d3d) that
   go to #406080 on hover, gold (#c3a990) as the accent, body links #406080. The captured CSS broke
   it in four places; ids are GenerateBlocks ids from the capture. */
/* a. Gold outline buttons (home hero "Request Consultation", footer "Contact Us") turned their
      border orange (#ffaa00) on hover. Fill with gold instead; navy on gold is 6.3:1. */
.gb-button-wrapper a.gb-button-689ad621:hover,
.gb-button-wrapper a.gb-button-689ad621:focus-visible,
.gb-button-wrapper a.gb-button-37f22c3d:hover,
.gb-button-wrapper a.gb-button-37f22c3d:focus-visible {
  border-color: #c3a990;
  background-color: #c3a990;
  color: #1f2d3d;
}
/* b. Home practice-area cards: gold links that went yellow (#ffbb00) on hover. Go white. */
.gb-button-wrapper a.gb-button-754f4bc2:hover,
.gb-button-wrapper a.gb-button-b5180254:hover,
.gb-button-wrapper a.gb-button-0288bdef:hover,
.gb-button-wrapper a.gb-button-ec6b3470:hover,
.gb-button-wrapper a.gb-button-754f4bc2:focus-visible,
.gb-button-wrapper a.gb-button-b5180254:focus-visible,
.gb-button-wrapper a.gb-button-0288bdef:focus-visible,
.gb-button-wrapper a.gb-button-ec6b3470:focus-visible {
  color: #ffffff;
}
/* c. "View More Testimonials" was the only black outline button with a near-black hover. Use navy
      like every other button. */
.gb-button-wrapper a.gb-button-647a1523 {
  border-color: #1f2d3d;
  color: #1f2d3d;
}
.gb-button-wrapper a.gb-button-647a1523:hover,
.gb-button-wrapper a.gb-button-647a1523:focus-visible {
  background-color: #1f2d3d;
  border-color: #1f2d3d;
  color: #ffffff;
}
/* d. Home "About Katherine DeMartino" (Nov 24 2026) was a borderless pure-black text button with a
      chevron, the one call to action on white that matched nothing. Same navy outline button as
      "View More Testimonials" (c). The captured rule has no left padding and a 15px top margin. */
.gb-button-wrapper a.gb-button-9d1c146d {
  margin-top: 0;
  padding: 15px 20px;
  border: 1px solid #1f2d3d;
  color: #1f2d3d;
}
.gb-button-wrapper a.gb-button-9d1c146d .gb-icon {
  display: none;
}
.gb-button-wrapper a.gb-button-9d1c146d:hover,
.gb-button-wrapper a.gb-button-9d1c146d:active,
.gb-button-wrapper a.gb-button-9d1c146d:focus,
.gb-button-wrapper a.gb-button-9d1c146d:focus-visible {
  background-color: #1f2d3d;
  border-color: #1f2d3d;
  color: #ffffff;
}
