/* Quiet, functional additions to Auremont's existing ivory, navy and serif system. */
.avpd-save[hidden], .avpd-open-saved[hidden] { display: none !important; }
.avpd-save, .avpd-open-saved, .avpd-dialog-close, .avpd-saved-remove {
    appearance: none; border: 0; border-radius: 0; cursor: pointer;
    font-family: Inter, Arial, sans-serif; font-weight: 400; text-transform: none;
    letter-spacing: .025em; line-height: 1.3; box-shadow: none;
}
.avpd-save {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 44px; padding: 10px 12px; background: #fcfaf5; color: #092638;
    border: 1px solid rgba(7,31,50,.18); font-size: 11px;
}
.avpd-save svg { width: 13px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.avpd-save[aria-pressed="true"] { color: #fcfaf5; background: #092638; border-color: #092638; }
.avpd-save[aria-pressed="true"] svg { fill: #d6bd91; stroke: #d6bd91; }
.avpd-save:hover { color: #875d2e; background: #fffdf7; border-color: #875d2e; }
.avpd-save[aria-pressed="true"]:hover { color: #fcfaf5; background: #12394e; }
.avldc-card > .avpd-save, .avpd-related-card > .avpd-save { position: absolute; top: 43px; left: 9px; z-index: 4; }
.avldc-results-grid--browse > .avldc-card > .avpd-save, .avpd-related-card > .avpd-save { top: 10px; left: 10px; }
.avpd-open-saved { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: #875d2e; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #b9ac92; }
.avpd-open-saved:hover { color: #092638; background: transparent; text-decoration-color: currentColor; }
.avldc-results-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; }
.avpd-save:focus-visible, .avpd-open-saved:focus-visible, .avpd-dialog-close:focus-visible, .avpd-saved-remove:focus-visible, .avpd-profile-discovery a:focus-visible, .avpd-saved-dialog a:focus-visible { outline: 2px solid #875d2e; outline-offset: 4px; }
.avpd-profile-discovery { --avpd-ink: #092638; width: min(1260px, calc(100% - 72px)); margin: 64px auto 80px; color: var(--avpd-ink); }
.avpd-profile-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; border-block: 1px solid rgba(7,31,50,.18); }
.avpd-profile-tools > a { display: inline-flex; align-items: center; min-height: 44px; color: #875d2e; font: 12px/1.4 Inter, Arial, sans-serif; text-decoration: underline; text-underline-offset: 5px; }
.avpd-profile-tools > div { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.avpd-related-heading { margin: 48px 0 28px; }
.avpd-related-heading > p { margin: 0 0 12px; color: #875d2e; font: 10px/1.4 Inter, Arial, sans-serif; text-transform: uppercase; letter-spacing: .16em; }
.avpd-related-heading > h2 { margin: 0; color: var(--avpd-ink); font: 400 clamp(35px, 3.2vw, 46px)/1.1 "Libre Caslon Display", "EB Garamond", Georgia, serif; letter-spacing: -.015em; }
.avpd-related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.avpd-related-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin: 0; padding: 0 0 25px; border-bottom: 1px solid rgba(7,31,50,.18); }
.avpd-related-portrait { position: relative; display: block; width: 100%; aspect-ratio: 1.12 / 1; overflow: hidden; background: #092638; }
.avpd-related-portrait > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--avlc-focal-x,50%) var(--avlc-focal-y,18%); transition: transform .6s ease; }
.avpd-related-card:hover .avpd-related-portrait > img { transform: scale(1.025); }
.avpd-related-card > .avpd-related-issue { margin: 22px 0 11px; color: #875d2e; font: 10px/1.5 Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.avpd-related-card > h3 { margin: 0 0 10px; color: #092638; font: 400 clamp(29px,2.7vw,38px)/1.08 "Libre Caslon Display", "EB Garamond", Georgia, serif; letter-spacing: -.01em; text-wrap: balance; }
.avpd-related-card h3 > a { color: inherit; text-decoration: none; }
.avpd-related-card h3 > a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.avpd-related-card > .avpd-related-firm { margin: 0 0 8px; color: #35474e; font: 19px/1.3 "EB Garamond", Georgia, serif; }
.avpd-related-card > .avpd-related-office { margin: 0 0 15px; color: #526169; font: 11px/1.5 Inter, Arial, sans-serif; }
.avpd-related-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; color: #092638; font: 12px/1.4 Inter, Arial, sans-serif; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #a6ada4; }
.avpd-related-card:hover h3 a, .avpd-related-card:hover .avpd-related-link { color: #875d2e; }
.avpd-sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.avpd-dialog-open { overflow: hidden; }
.avpd-saved-dialog { position: fixed; inset: 0 0 0 auto; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid rgba(7,31,50,.16); color: #092638; background: #f8f5ee; overflow: auto; overscroll-behavior: contain; }
.avpd-saved-dialog::backdrop { background: rgba(3,19,30,.55); }
.avpd-saved-dialog__header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 32px; background: #f8f5ee; border-bottom: 1px solid rgba(7,31,50,.18); }
.avpd-saved-dialog h2 { margin: 0 0 8px; color: #092638; font: 400 37px/1.1 "Libre Caslon Display", "EB Garamond", Georgia, serif; letter-spacing: -.015em; }
.avpd-saved-note { margin: 0; color: #526169; font: 12px/1.5 Inter, Arial, sans-serif; }
.avpd-dialog-close { flex: none; min-width: 44px; min-height: 44px; margin-top: -3px; padding: 10px 0 10px 10px; color: #092638; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.avpd-dialog-close:hover { color: #875d2e; background: transparent; }
.avpd-saved-dialog__body { padding: 0 32px 32px; }
.avpd-saved-list { margin: 0; padding: 0; list-style: none; }
.avpd-saved-row { position: relative; margin: 0; padding: 26px 0 24px; border-bottom: 1px solid rgba(7,31,50,.18); }
.avpd-saved-profile { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 20px; color: #092638; text-decoration: none; }
.avpd-saved-portrait { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; overflow: hidden; background: #092638; color: #f8f5ee; font: 28px Georgia, serif; }
.avpd-saved-portrait > img { width: 100%; height: 100%; object-fit: cover; }
.avpd-saved-copy { display: flex; flex-direction: column; gap: 7px; padding-top: 1px; }
.avpd-saved-copy > strong { color: #092638; font: 400 27px/1.05 "Libre Caslon Display", "EB Garamond", Georgia, serif; overflow-wrap: anywhere; }
.avpd-saved-copy > span { color: #35474e; font: 16px/1.3 "EB Garamond", Georgia, serif; }
.avpd-saved-copy > small { color: #526169; font: 11px/1.5 Inter, Arial, sans-serif; }
.avpd-saved-profile:hover .avpd-saved-copy > strong { color: #875d2e; }
.avpd-saved-remove { position: relative; min-height: 44px; margin: 2px 0 -11px 108px; padding: 8px 0; color: #875d2e; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.avpd-saved-remove:hover { color: #092638; background: transparent; }
.avpd-saved-empty { padding-top: 38px; }
.avpd-saved-empty > p:first-child { max-width: 340px; margin: 0 0 18px; color: #092638; font: 27px/1.3 "EB Garamond", Georgia, serif; }
@media (max-width: 800px) {
    .avpd-profile-discovery { width: calc(100% - 48px); margin-block: 44px 56px; }
    .avpd-related-list { gap: 24px; }
    .avpd-related-card > h3 { font-size: 29px; }
}
@media (max-width: 640px) {
    .avpd-profile-discovery { width: calc(100% - 36px); }
    .avpd-profile-tools { gap: 8px 20px; padding-block: 14px; }
    .avpd-related-list { grid-template-columns: minmax(0,1fr); gap: 32px; }
    .avpd-related-portrait { aspect-ratio: 1.22 / 1; }
    .avpd-related-card > h3 { font-size: 36px; }
    .avpd-saved-dialog__header { padding: 26px 22px; }
    .avpd-saved-dialog__body { padding-inline: 22px; }
    .avldc-card > .avpd-save { top: 37px; left: 7px; padding-inline: 9px; }
    .avldc-results-grid--browse > .avldc-card > .avpd-save { top: 10px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .avpd-related-portrait > img { transition: none; }
    .avpd-related-card:hover .avpd-related-portrait > img { transform: none; }
}

/* Keep the existing article typography from changing the discovery component. */
.entry-content .avpd-profile-discovery ul.avpd-related-list { padding: 0 !important; list-style: none !important; }
.entry-content .avpd-profile-discovery .avpd-related-card { margin: 0 !important; }
.entry-content .avpd-profile-discovery .avpd-related-heading > h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; color: #092638 !important; font: 400 clamp(35px,3.2vw,46px)/1.1 "Cormorant Garamond", Georgia, serif !important; }
.entry-content .avpd-profile-discovery .avpd-related-heading > h2::before,
.entry-content .avpd-profile-discovery .avpd-related-heading > h2::after { content: none !important; }
.entry-content .avpd-profile-discovery .avpd-related-card > h3 { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; color: #092638 !important; font: 400 clamp(29px,2.7vw,38px)/1.08 "Cormorant Garamond", Georgia, serif !important; }
.entry-content .avpd-profile-discovery .avpd-related-card > h3 > a { color: inherit !important; text-decoration: none !important; }
.entry-content .avpd-profile-discovery .avpd-related-card > .avpd-related-issue { margin: 22px 0 11px !important; color: #875d2e !important; font: 10px/1.5 Inter, Arial, sans-serif !important; letter-spacing: .1em !important; }
.entry-content .avpd-profile-discovery .avpd-related-card > .avpd-related-firm { margin: 0 0 8px !important; color: #35474e !important; font: 19px/1.3 "EB Garamond", Georgia, serif !important; }
.entry-content .avpd-profile-discovery .avpd-related-card > .avpd-related-office { margin: 0 0 15px !important; color: #526169 !important; font: 11px/1.5 Inter, Arial, sans-serif !important; }
.entry-content .avpd-profile-discovery .avpd-related-link { color: #092638 !important; font: 12px/1.4 Inter, Arial, sans-serif !important; }
.entry-content .avpd-profile-discovery .avpd-related-card:hover > h3 > a,
.entry-content .avpd-profile-discovery .avpd-related-card:hover > .avpd-related-link { color: #875d2e !important; }
.avpd-related-portrait > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f8f5ee; font: 38px Georgia, serif; }
.avpd-related-portrait > img { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 640px) {
    .entry-content .avpd-profile-discovery .avpd-related-card > h3 { font-size: 36px !important; }
}

/* Preserve Auremont's control colors when the theme applies generic focus styles. */
.avpd-dialog-close:focus, .avpd-open-saved:focus, .avpd-saved-remove:focus { color: #092638; background: transparent; }
.avpd-save:focus { color: #875d2e; background: #fffdf7; }
.avpd-save[aria-pressed="true"]:focus { color: #fcfaf5; background: #12394e; }

/* Keep portrait controls legible within the ivory-on-navy editorial feature. */
.avldc-feature > .avpd-save { color: #092638 !important; }
.avldc-feature > .avpd-save:hover,
.avldc-feature > .avpd-save:focus { color: #875d2e !important; }
.avldc-feature > .avpd-save[aria-pressed="true"] { color: #fcfaf5 !important; }
.avldc-feature > .avpd-save > span,
.avldc-feature > .avpd-save > svg { color: inherit !important; }

/* Reveal portrait Save controls on mouse interaction; retain keyboard and touch access. */
@media (hover: hover) and (pointer: fine) {
    .avldc-card > .avpd-save,
    .avpd-related-card > .avpd-save {
        opacity: 0;
        pointer-events: none;
        transition: opacity .16s ease;
    }
    .avldc-card:hover > .avpd-save,
    .avldc-card:focus-within > .avpd-save,
    .avldc-card > .avpd-save[aria-pressed="true"],
    .avpd-related-card:hover > .avpd-save,
    .avpd-related-card:focus-within > .avpd-save,
    .avpd-related-card > .avpd-save[aria-pressed="true"] {
        opacity: 1;
        pointer-events: auto;
    }
}
/* Touch and hybrid devices retain a discoverable control. */
@media (any-pointer: coarse) {
    .avldc-card > .avpd-save,
    .avpd-related-card > .avpd-save {
        opacity: 1;
        pointer-events: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .avldc-card > .avpd-save,
    .avpd-related-card > .avpd-save { transition: none; }
}
