/* Shared by the service directory and its guides. Native navigation remains
   intact; browsers without cross-document transitions simply follow the link. */
@view-transition { navigation: auto; }
@keyframes service-leave { to { opacity: 0; } }
@keyframes service-arrive { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root) { animation: service-leave 150ms ease-out both; }
::view-transition-new(root) { animation: service-arrive 260ms ease-out both; }

.service-detail .detail-link a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid var(--navy);
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    line-height: 1.5;
    transition: background-color 180ms, box-shadow 180ms;
}
.service-detail .detail-link a:hover {
    color: var(--white);
    background: var(--navy-soft);
    box-shadow: 0 5px 16px rgba(21, 42, 91, .15);
}
.detail-link a span { transition: transform 180ms; }
.detail-link a:hover span { transform: translateX(4px); }
.detail-link a:focus-visible, .guide-nav a:focus-visible, .guide-back:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

.service-guide .hero-services {
    padding: 52px 0 76px;
    background-position: center;
}
.service-guide .hero::after { display: none; }
.guide-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 34px;
    color: var(--white);
    text-underline-offset: 5px;
    font-size: .92rem;
}
.guide-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 64px;
    align-items: center;
}
.service-guide .hero h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.8rem);
    line-height: 1.16;
    max-width: 18ch;
    margin-bottom: 24px;
}
.service-guide .hero .eyebrow {
    text-transform: none;
    letter-spacing: .02em;
    font-size: .95rem;
}
.service-guide .hero p { max-width: 44ch; }
.service-guide .hero .btn { white-space: normal; text-align: center; }
.guide-nav {
    padding: 28px 30px;
    border: 1px solid rgba(207,164,87,.5);
    border-radius: 6px;
    background: rgba(14,29,64,.6);
}
.guide-nav h2 {
    color: var(--gold-light);
    font-size: 1.25rem;
    margin: 0 0 18px;
}
.guide-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,.18);
    text-decoration: none;
    line-height: 1.5;
}
.guide-nav a::after { content: '\2193'; color: var(--gold-light); }
.guide-nav a:hover { color: var(--gold-light); }
.service-guide :is(article[id], section[id]) { scroll-margin-top: 130px; }
.service-guide .page-intro { gap: 64px; align-items: start; }
.service-guide .page-intro .bio-note { border-radius: 0 6px 6px 0; }
.service-guide .services-list .service-detail {
    grid-template-columns: minmax(140px, .65fr) minmax(0, 2fr);
    gap: 40px;
    padding: 44px;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(21,42,91,.04);
}
.service-guide .service-detail .detail-number { display: none; }
.service-guide .service-detail .detail-label {
    display: block;
    border-top: 2px solid var(--gold);
    padding-top: 16px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    line-height: 1.6;
}
.service-guide .service-detail p { max-width: 68ch; }
.service-guide .step-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-guide .step { border-top: 1px solid rgba(207,164,87,.5); padding-top: 24px; }
.service-guide .faq-group-heading { padding: 28px 0; background: transparent; }
.service-guide .faq-group-heading h2 { color: var(--navy); font-size: clamp(1.5rem, 2.5vw, 2rem); }
.service-guide .faq-group-heading .eyebrow { display: none; }
.service-guide .faq-list { border: 1px solid var(--rule); border-radius: 6px; box-shadow: none; }
.service-guide .faq-list summary { padding-top: 23px; padding-bottom: 23px; }
.service-guide .faq-list details[open] { background: var(--cream); }
.service-guide .faq-answer p + p { margin-top: 14px; }

@media (max-width: 1080px) {
    .guide-hero-layout { gap: 32px; grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr); }
    .service-guide .services-list .service-detail { grid-template-columns: 1fr; gap: 22px; padding: 30px; }
}
@media (max-width: 760px) {
    .guide-hero-layout { grid-template-columns: 1fr; gap: 32px; }
    .service-guide .hero-services { padding: 24px 0 40px; }
    .guide-back { margin-bottom: 22px; }
    .guide-nav { padding: 22px; }
    .guide-nav a { padding: 13px 0; }
    .service-guide .page-intro { gap: 28px; }
    .service-guide .step-grid-three { grid-template-columns: 1fr; gap: 30px; }
    .service-guide .services-list .service-detail { padding: 24px; }
    .service-detail .detail-link a { padding: 12px 16px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    .detail-link a, .detail-link a span { transition: none; }
}
