/* PB&A — site fixes (loaded after the page styles)
   1. Practice cards: service lists and Enquire links readable on every Deep colour
   2. Services: less empty space before the first card
   3. Rooms key steps aside when it would cover a form, the next-room bar or the footer */

/* 1 · readability */
.dstk-practice .pc-r > li > .pc-b li { font-size: .9rem; line-height: 1.4; color: rgba(243,238,226,.93); }
.dstk-practice .pc-r > li > .pc-b li::before { height: 1.5px; }
.dstk-practice li button.pc-t small { font-size: 12px !important; }
.dstk-practice .pc-enq { font-size: 12px !important; font-weight: 500; letter-spacing: .01em !important; color: #FFF7EE;
  padding-bottom: 2px; border-bottom: 1px solid rgba(255,247,238,.45); margin-top: .5rem; }
.dstk-practice .pc-enq:hover, .dstk-practice .pc-enq:focus-visible { color: #fff; border-bottom-color: var(--pa); }
.dstk-practice .pc-more { font-size: 11.5px; color: rgba(243,238,226,.85); }
.dstk-practice .pc-foot, .dstk-practice .pc-tab i { color: rgba(243,238,226,.85); }
.dstk-practice .pc-tab span { color: rgba(243,238,226,.85); }
.dstk-practice li.pc-flash > button.pc-t em { box-shadow: inset 0 -2px 0 var(--pa); }

/* 2 · services: title and intro side by side, cards start sooner */
@media (min-width: 761px) {
  #services.section-services > .section-head { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    column-gap: clamp(2rem, 4vw, 4rem); align-items: end; padding-top: 1.25rem; margin-bottom: 0; }
  #services .section-head > .tag { grid-column: 1 / -1; }
  #services .section-head .section-title { font-size: clamp(2.4rem, 4.4vw, 4.1rem); margin-bottom: 0; }
  #services .section-head .section-sub { margin: 0 0 .5rem; max-width: 46ch; }
  #services > .dstk.dstk-full { margin-top: -96px; }
}
@media (max-width: 760px) {
  #services.section-services > .section-head { padding-top: .75rem; margin-bottom: 0; }
  #services .section-head .section-title { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* 3 · Rooms key never sits on top of the form button, next-room bar or footer */
html.rk-away .rk-btn:not([aria-expanded="true"]) { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* 4 · no frosted glass: solid surfaces instead of blur */
.fx-gblur-top, .fx-gblur-foot { display: none !important; }

/* 5 · menu without a band: same cream as the page, no rule line, content fades softly under it;
       on the home page at rest it floats directly on the living ink */
#nav, #nav.scrolled { background: #F1EBDD; border-bottom-color: transparent !important; }
#nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none;
  background: linear-gradient(#F1EBDD, rgba(241,235,221,0)); transition: opacity .4s; }
html.nav-over-ink #nav::after { opacity: 0; }
html.nav-over-ink #nav, html.nav-over-ink #nav.scrolled { background: transparent !important; border-bottom-color: transparent !important; box-shadow: none !important; }

/* 6 · menu turns dark over dark sections (Services, GCC, dark stacks, footer) so it never sits as a cream strip on black */
#nav, #navbar.pbn { transition: padding .4s, background-color .35s ease; }
#nav::after, #navbar.pbn::after { transition: opacity .4s, background .35s ease; }
html.nav-on-dark #nav, html.nav-on-dark #nav.scrolled, html.nav-on-dark #navbar.pbn { background: #1A1714 !important; }
html.nav-on-dark #nav::after, html.nav-on-dark #navbar.pbn::after { background: linear-gradient(#1A1714, rgba(26,23,20,0)); }
html.nav-on-dark #nav .logo, html.nav-on-dark #nav .logo-mark,
html.nav-on-dark #nav a.nav-link-desktop:not(.nav-cta), html.nav-on-dark #navbar.pbn .nav-logo-mark,
html.nav-on-dark #navbar.pbn .nav-links a:not(.nav-cta) { color: #EDE4D2 !important; }
html.nav-on-dark #nav .logo-text, html.nav-on-dark #nav .logo-text span,
html.nav-on-dark #navbar.pbn .nav-logo-text, html.nav-on-dark #navbar.pbn .nav-logo-text span { color: rgba(237,228,210,.72) !important; }
html.nav-on-dark #nav .amp, html.nav-on-dark #navbar.pbn .amp { color: #9CCFAD !important; }
html.nav-on-dark #nav a.nav-link-desktop::after, html.nav-on-dark #navbar.pbn .nav-links a::after { background: #9CCFAD !important; }
html.nav-on-dark #nav .nav-cta, html.nav-on-dark #navbar.pbn .nav-cta { background: #EDE4D2 !important; color: #1A1714 !important; border-color: #EDE4D2 !important; }
html.nav-on-dark #nav .nav-toggle:not([aria-expanded="true"]) span, html.nav-on-dark #navbar.pbn .nav-toggle span { background: #EDE4D2 !important; }

/* 7 · one menu everywhere: Insights, Notes, articles, Legal, Valuation and 404 use the same bar as the main rooms */
#navbar.pbn { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between;
  min-height: 0; padding: 16px clamp(1rem, 3vw, 2.5rem); background: #F1EBDD; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
#navbar.pbn::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none; background: linear-gradient(#F1EBDD, rgba(241,235,221,0)); }
#navbar.pbn .nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #1A1714; }
#navbar.pbn .nav-logo-mark { font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; color: #1A1714; display: inline-flex; align-items: baseline; gap: 1px; }
#navbar.pbn .nav-logo-mark .amp { color: #1F6F5C; font-style: italic; font-weight: 300; font-size: 1.1em; font-family: 'Fraunces', serif; }
#navbar.pbn .nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; font-size: .74rem; font-weight: 500; color: #5C544A; font-family: 'Inter', system-ui, sans-serif; letter-spacing: .01em; }
#navbar.pbn .nav-logo-text span { font-size: .72rem; color: #6E665A; }
#navbar.pbn .nav-links { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.62rem); list-style: none; margin: 0; padding: 0; }
#navbar.pbn .nav-links li { list-style: none; margin: 0; padding: 0; }
#navbar.pbn .nav-links a { font-family: 'Inter', system-ui, sans-serif; font-size: .83rem; font-weight: 500; letter-spacing: -.005em; color: #1A1714; text-decoration: none;
  position: relative; padding: .3rem 0; background: none; border: 0; text-transform: none; }
#navbar.pbn .nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: #1F6F5C; transition: width .3s ease; display: block; }
#navbar.pbn .nav-links a:hover::after, #navbar.pbn .nav-links a.nav-active::after { width: 100%; }
#navbar.pbn .nav-links a.nav-cta { display: inline-flex; align-items: center; padding: .42rem .8rem; border-radius: 999px; background: #1A1714; color: #F6F1E4 !important; border: 1px solid #1A1714; line-height: 1; }
#navbar.pbn .nav-links a.nav-cta::after { display: none; }
#navbar.pbn .nav-close-li, #navbar.pbn .nav-toggle { display: none; }
@media (max-width: 900px) {
  #navbar.pbn .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; background: none; border: 0; cursor: pointer; padding: 0 8px; }
  #navbar.pbn .nav-toggle span { display: block; width: 22px; height: 1.5px; background: #1A1714; margin: 0; }
  #navbar.pbn .nav-links { visibility: hidden; position: fixed; inset: 0; width: 100% !important; max-width: none; height: 100dvh; box-shadow: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 1.1rem 1.4rem 2rem;
    background: #1A1714; transform: translateX(100%); transition: transform .4s ease, visibility 0s linear .4s; z-index: 300; overflow-y: auto; }
  #navbar.pbn .nav-links.open { transform: none; visibility: visible; transition: transform .4s ease; }
  #navbar.pbn .nav-close-li { display: block; height: 3.2rem; width: 100%; }
  #navbar.pbn .nav-close { position: absolute; top: 14px; right: 16px; z-index: 2; background: none; border: 0; color: #EDE4D2; font-size: 1.3rem; cursor: pointer; padding: .5rem; }
  #navbar.pbn .nav-links li a:not(.nav-cta) { display: block; color: #EDE4D2 !important; font-family: 'Fraunces', serif; font-weight: 400; font-size: 1.6rem; padding: .7rem .2rem; border-bottom: 1px solid rgba(237,228,210,.14); }
  #navbar.pbn .nav-links a::after { display: none; }
  #navbar.pbn .nav-links a.nav-active { color: #9CCFAD !important; }
  #navbar.pbn .nav-links a.nav-cta { margin-top: 1.4rem; display: flex; width: 100%; justify-content: center; padding: .9rem 1rem; background: #EDE4D2; color: #1A1714 !important; border-color: #EDE4D2; font-size: .95rem; }
}

/* the corridor ("The hall › Room") on the library, legal and valuation pages */
.pb-corr { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 2.2rem; font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: .01em; text-transform: none; }
.pb-corr a { color: #5C544A; text-decoration: none; }
.pb-corr a:hover { color: #1F6F5C; }
.pb-corr .pb-sep { color: #6E665A; }
.pb-plate { white-space: nowrap; padding: .42rem .7rem; border-radius: 5px; background: var(--pb); color: #F3EEE2; border: 1px solid var(--pa); font-size: 11px; }
.pb-plate small { color: var(--pa); font-size: inherit; margin-right: .3rem; }
.pb-plate[data-p="comp"]   { --pb:#8E4327; --pa:#F6C7A8; }
.pb-plate[data-p="tax"]    { --pb:#12303A; --pa:#72C4D8; }
.pb-plate[data-p="finops"] { --pb:#1E3A2A; --pa:#8CC79C; }
.pb-plate[data-p="cfo"]    { --pb:#2A211A; --pa:#D9A982; }
.pb-plate[data-p="val"]    { --pb:#4A1520; --pa:#E39AA7; }
@media (max-width: 560px) { .pb-corr > a:first-child, .pb-corr > a:first-child + .pb-sep { display: none; } }

/* valuation page: its own section links sit under the heading, not in the menu */
.vs-sub { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.6rem; }
.vs-sub a { font-family: 'Inter', system-ui, sans-serif; font-size: .82rem; font-weight: 500; color: #2F2A23; text-decoration: none; padding: .45rem .9rem; border: 1px solid rgba(26,23,20,.22); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.vs-sub a:hover { background: #4A1520; color: #F3EEE2; border-color: #4A1520; }

/* 8 · Approach: heading starts as close to the corridor as on the other rooms */
.section-approach > .approach-sticky { padding-top: 0 !important; }

/* corridor sits right under the menu, as on the rooms */
.ins-hero, .art-hero, body:has(#navbar.pbn) header.hero { padding-top: 78px !important; }
@media (max-width: 760px) { .ins-hero, .art-hero, body:has(#navbar.pbn) header.hero { padding-top: 76px !important; } }
.mp-corridor + .section.dark > .section-head { padding-top: 1.25rem; }

/* 9 · Hallmark audit fixes (no visual redesign) */
/* sideways scroll: clip, never hidden (hidden breaks the pinned stacks) */
html, body { overflow-x: clip !important; }
/* keyboard focus visible everywhere, on light and dark */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible, .mp-door:focus-visible {
  outline: 2px solid #1F6F5C !important; outline-offset: 3px; transition: none; }
.section.dark :focus-visible, footer :focus-visible, .dstk-card :focus-visible, .modal-box :focus-visible,
html.nav-on-dark #nav :focus-visible, html.nav-on-dark #navbar.pbn :focus-visible, #nav .nav-links.open :focus-visible,
#navbar.pbn .nav-links.open :focus-visible { outline-color: #9CCFAD !important; }
/* form fields: edge at 3:1 against the page; focus shown by the ring, not just the border */
.fg input, .fg select, .fg textarea, .schedule-form input, .schedule-form select, .schedule-form textarea { border-color: #8C8476 !important; }
.fg input:focus-visible, .fg select:focus-visible, .fg textarea:focus-visible { border-color: #1A1714 !important; }
/* "Schedule a call": solid ink pill (no terracotta gradient, readable), and it hides downwards, never off the side of the screen */
#schedule-fab { background: #1A1714 !important; color: #F6F1E4 !important; border-color: #1A1714 !important; }
#schedule-fab:not(.visible), #schedule-fab.hidden-by-scroll { transform: translate(0, 180%) scale(.96) !important; visibility: hidden; }
#schedule-fab.visible:not(.hidden-by-scroll) { visibility: visible; }
/* no "transition: all": name what moves */
.svc-tab, .wn-btn, .team-link, .modal-close, .tweaks-seg button { transition-property: color, background-color, border-color, opacity, transform, box-shadow !important; }

/* 10 · Services: links to each practice page */
.svc-detail-links { max-width: var(--max, 1360px); margin: 3rem auto 0; padding: 0 var(--pad, 2rem); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.svc-detail-links span { width: 100%; font-size: .85rem; color: rgba(237,228,210,.72); margin-bottom: .3rem; }
.svc-detail-links a { font-size: .9rem; font-weight: 500; color: #EDE4D2; text-decoration: none; padding: .55rem 1rem; border: 1px solid rgba(237,228,210,.3); border-radius: 999px; transition: background-color .2s, color .2s; }
.svc-detail-links a:hover { background: #EDE4D2; color: #1A1714; }
