/* Holy Cross Law — WordPress layer: page chrome, editor content, mobile menu.
   Values come from tokens.css; component styles from components.css. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); }
body.hcl, .hcl { overflow-wrap: break-word; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hcl-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--white); color: var(--navy-900); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-weight: 600; }
.hcl-skip:focus { top: var(--space-4); }

/* Header: sticky, menu reset */
.hcl-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .hcl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hcl-header { top: 46px; } }
.hcl-header__brand img { width: auto; }
.hcl-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.hcl-nav li { position: relative; }
.hcl-nav .sub-menu { display: none; position: absolute; top: 100%; left: calc(-1 * var(--space-4)); min-width: 240px; flex-direction: column; gap: 0; background: var(--navy-900); border: 1px solid var(--line-on-navy); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-4); }
.hcl-nav li:hover > .sub-menu, .hcl-nav li:focus-within > .sub-menu { display: flex; }
.hcl .hcl-nav .current-menu-item > a, .hcl .hcl-nav .current_page_item > a { border-bottom-color: var(--slate-200); }
.hcl-menu-btn__close { display: none; }
.hcl-menu-btn svg { width: 20px; height: 20px; }
.hcl-menu-btn[aria-expanded="true"] .hcl-menu-btn__open { display: none; }
.hcl-menu-btn[aria-expanded="true"] .hcl-menu-btn__close { display: inline-flex; }

/* Mobile menu panel */
.hcl-mobile-menu { background: var(--navy-900); border-top: 1px solid var(--line-on-navy); padding: var(--space-6) var(--space-4) var(--space-8); max-height: calc(100dvh - 64px); overflow-y: auto; }
.hcl-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.hcl .hcl-mobile-menu a { color: var(--white); text-decoration: none; }
.hcl-mobile-menu__list > li > a { display: block; font-family: var(--font-serif); font-size: 24px; line-height: 30px; padding: var(--space-3) 0; border-bottom: 1px solid var(--line-on-navy); }
.hcl-mobile-menu .sub-menu a { display: block; padding: var(--space-2) 0 var(--space-2) var(--space-4); color: var(--slate-200); }
.hcl-mobile-menu__foot { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.hcl-mobile-menu__foot .hcl-btn { width: 100%; }
.hcl .hcl-mobile-menu__phone { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); color: var(--slate-200); font-weight: 600; }
.hcl-mobile-menu__phone svg { width: 18px; height: 18px; }
@media (min-width: 1121px) { .hcl-mobile-menu { display: none !important; } }

/* Interior page title band */
.hcl-page-hero { background: var(--navy-900); color: var(--white); padding: var(--space-16) 0 var(--space-12); }
.hcl-page-hero h1 { font-family: var(--font-serif); font-size: 42px; line-height: 48px; font-weight: 500; margin: 0; max-width: 22ch; text-wrap: balance; }
.hcl-page-hero__lead { font-size: 20px; line-height: 32px; color: var(--slate-200); margin: var(--space-4) 0 0; max-width: 640px; }
@media (max-width: 720px) {
  .hcl-page-hero { padding: var(--space-12) 0 var(--space-8); }
  .hcl-page-hero h1 { font-size: 34px; line-height: 40px; }
  .hcl-page-hero__lead { font-size: 17px; line-height: 28px; }
}

.hcl-section__title { text-wrap: balance; }
.hcl-section--page { padding: var(--space-16) 0; }
.hcl-section--cta { padding-top: 0; }
.hcl-section--page + .hcl-section--cta, .hcl-section--profile + .hcl-section--cta { padding-top: 0; }
.hcl-hero h1, .hcl-cta h2 { text-wrap: balance; }

/* Editor content */
.hcl-prose > * { max-width: var(--measure); }
.hcl-prose--wide > *, .hcl-prose > .alignwide, .hcl-prose > .alignfull, .hcl-prose > .hcl-creds { max-width: none; }
.hcl-prose > :first-child { margin-top: 0; }
.hcl-prose > :last-child { margin-bottom: 0; }
.hcl-prose p, .hcl-prose ul, .hcl-prose ol { margin: 0 0 var(--space-4); }
.hcl-prose ul, .hcl-prose ol { padding-left: 1.25em; }
.hcl-prose li { margin-bottom: var(--space-2); }
.hcl-prose h2 { font-family: var(--font-serif); font-size: 32px; line-height: 38px; font-weight: 500; color: var(--navy-900); margin: var(--space-12) 0 var(--space-4); text-wrap: balance; }
.hcl-prose h3 { font-family: var(--font-serif); font-size: 24px; line-height: 30px; font-weight: 500; color: var(--navy-900); margin: var(--space-8) 0 var(--space-3); }
.hcl-prose h4 { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-500); margin: var(--space-8) 0 var(--space-3); }
.hcl-prose strong { font-weight: 700; color: var(--ink); }
.hcl-prose blockquote { margin: var(--space-8) 0; padding: 0 0 0 var(--space-6); border-left: 2px solid var(--navy-900); font-family: var(--font-serif); font-size: 24px; line-height: 32px; color: var(--navy-900); }
.hcl-prose blockquote cite { display: block; margin-top: var(--space-2); font-family: var(--font-sans); font-size: 15px; font-style: normal; color: var(--ink-muted); }
.hcl-prose img, .hcl-prose .wp-block-image img { border-radius: var(--radius-md); }
.hcl-prose figcaption { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin-top: var(--space-2); }
.hcl-prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-12) 0; }
.hcl-prose .has-mist-100-background-color { background: var(--mist-100); padding: var(--space-6); border-radius: var(--radius-md); }
.hcl-prose h2 + .wp-block-details, .hcl-prose p + .wp-block-details { margin-top: var(--space-4); }
@media (max-width: 720px) { .hcl-prose h2 { font-size: 28px; line-height: 34px; margin-top: var(--space-8); } }

/* Core Buttons block → brand buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-6) 0; }
.hcl .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); background: var(--navy-900); color: var(--white); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--navy-900); }
.hcl .wp-block-button__link:hover { background: var(--navy-700); }
.hcl .is-style-outline .wp-block-button__link { background: transparent; color: var(--navy-900); }
.hcl .is-style-outline .wp-block-button__link:hover { background: var(--navy-900); color: var(--white); }

/* FAQ: core Details blocks */
.wp-block-details { border-bottom: 1px solid var(--line); }
:not(.wp-block-details) + .wp-block-details, .wp-block-details:first-child { border-top: 1px solid var(--line); }
.wp-block-details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0; font-family: var(--font-serif); font-size: 22px; line-height: 28px; font-weight: 500; color: var(--navy-900); }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: "+"; font-family: var(--font-sans); font-weight: 400; color: var(--slate-500); flex: none; }
.wp-block-details[open] > summary::after { content: "–"; }
.wp-block-details > :not(summary) { margin: 0 0 var(--space-4); }
.wp-block-details > :last-child { padding-bottom: var(--space-2); }

/* Attorney profile */
.hcl-section--profile { padding: var(--space-16) 0; }
.hcl-profile__name { font-family: var(--font-serif); font-size: 42px; line-height: 48px; font-weight: 500; color: var(--navy-900); margin: 0; }
.hcl-profile__photo { max-width: 100%; }
.hcl-profile > div { min-width: 0; }
.hcl-profile__more { margin-top: var(--space-12); }
.hcl-creds > .wp-block-group__inner-container { display: contents; }
.hcl-creds .wp-block-group { min-width: 0; }
.hcl-prose .hcl-creds ul { padding: 0; list-style: none; margin: 0; }
.hcl-prose .hcl-creds li { margin: 0; }
.hcl-prose .hcl-creds h3 { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 var(--space-3); }

/* Footer */
.hcl-footer__heading { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin: 0 0 var(--space-3); }
.hcl-footer__menu { margin-top: var(--space-2) !important; }
.hcl-footer img { width: auto; }

/* 404 / archive */
.hcl-archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.hcl-archive-list h2 { margin: 0 0 var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Header at narrow widths: tighter gaps, then the mark alone so EN/ES and the menu always fit */
.hcl-header__brand .hcl-header__mark { display: none; }
.hcl .hcl-nav a, .hcl-header .hcl-btn { white-space: nowrap; }
@media (max-width: 1240px) { .hcl-header__inner { gap: var(--space-6); } .hcl-nav ul { gap: var(--space-4); } }
@media (max-width: 1120px) {
  .hcl-header__inner { gap: var(--space-3); }
  .hcl-header__brand { min-width: 0; flex: 0 1 auto; }
  .hcl-header__brand img { height: 34px; max-width: 100%; }
}
@media (max-width: 430px) {
  .hcl-header__brand .hcl-header__lockup { display: none; }
  .hcl-header__brand .hcl-header__mark { display: block; height: 44px; }
}

/* Home: Meet Andrew band */
.hcl-teaser { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-12); align-items: center; }
.hcl-teaser img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius-md); display: block; }
.hcl-teaser > div { min-width: 0; }
.hcl-teaser .hcl-section__title { margin-bottom: var(--space-4); }
.hcl-teaser p:not(.hcl-eyebrow) { max-width: var(--measure); margin: 0 0 var(--space-6); }
.hcl-teaser__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hcl-teaser__links svg, .hcl-profile__links svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .hcl-teaser { grid-template-columns: 1fr; gap: var(--space-6); } .hcl-teaser img { max-width: 220px; } }

/* Contact details pattern */
.hcl-prose .hcl-contact-list { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.hcl-prose .hcl-contact-list li { margin: 0; }
.hcl-contact-list strong { display: block; font-size: 13px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--slate-500); }

/* Dropdown: compact items, underline sits on the text */
.hcl-nav .sub-menu { padding: var(--space-2) 0; gap: 0; }
.hcl-nav .sub-menu li { display: block; }
.hcl .hcl-nav .sub-menu a { display: block; padding: var(--space-2) var(--space-4); border-bottom: 0; white-space: nowrap; text-decoration: none; }
.hcl .hcl-nav .sub-menu a:hover,
.hcl .hcl-nav .sub-menu .current-menu-item > a,
.hcl .hcl-nav .sub-menu .current_page_item > a { text-decoration: underline; text-decoration-color: var(--slate-200); text-decoration-thickness: 2px; text-underline-offset: 5px; border-bottom: 0; }
.hcl .hcl-nav .current-menu-ancestor > a, .hcl .hcl-nav .current-menu-parent > a { border-bottom-color: var(--slate-200); }
/* keep the dropdown open while the pointer crosses the gap */
.hcl-nav .menu-item-has-children > .sub-menu { margin-top: 0; }
.hcl-nav .menu-item-has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--space-2); }
