.res-page {
    --res-paper: var(--ztc-white);
    --res-paper-soft: #f5f9fc;
    --res-ink: var(--ztc-text);
    --res-muted: var(--ztc-text-muted);
    --res-line: var(--ztc-border);
    --res-action: var(--ztc-action);
    color: var(--res-ink);
    background: var(--res-paper);
    overflow: clip;
}

.res-page *,
.res-page *::before,
.res-page *::after { box-sizing: border-box; }

.res-page h1,
.res-page h2,
.res-page h3,
.res-page p { margin-top: 0; }

.res-page h1,
.res-page h2 { text-wrap: balance; }

.res-page p { text-wrap: pretty; }

.res-hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    margin-top: calc(-1 * var(--ztc-topbar-h) - var(--ztc-header-h));
    padding: calc(var(--ztc-topbar-h) + var(--ztc-header-h) + 70px) 0 82px;
    color: #fff;
    background: var(--ztc-banner-luminous);
    isolation: isolate;
}

.res-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 72, 130, 0), rgba(0, 55, 102, .24));
}

.res-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
    mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
}

.res-hero-glow {
    position: absolute;
    width: min(48vw, 720px);
    aspect-ratio: 1;
    right: -13vw;
    top: -22%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(97, 204, 240, .27), rgba(97, 204, 240, 0) 68%);
}

.res-hero-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, .78fr);
    gap: clamp(46px, 7vw, 108px);
    align-items: center;
}

.res-eyebrow,
.res-kicker {
    margin-bottom: 17px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .16em;
}

.res-eyebrow { color: rgba(255, 255, 255, .78); }
.res-kicker { color: var(--res-action); }

.res-hero h1 {
    max-width: 820px;
    margin-bottom: 28px;
    font-family: var(--ztc-font-serif, var(--ztc-serif));
    font-size: var(--ztc-banner-h1-feature);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.035em;
}

.res-hero h1 span { display: block; }

.res-hero-lead {
    max-width: 760px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, .88);
    font-size: var(--ztc-banner-lead);
    line-height: 1.82;
}

.res-hero-actions,
.res-help-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.res-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size:14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.res-btn:hover { transform: translateY(-2px); }
.res-btn--solid { color: var(--res-action); background: #fff; }
.res-btn--solid:hover { color: var(--ztc-surface-inverse-deep); background: var(--ztc-brand-cyan); }
.res-btn--line { color: #fff; border-color: rgba(255, 255, 255, .62); }
.res-btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.res-btn--dark { color: #fff; background: var(--res-action); }
.res-btn--dark:hover { background: var(--ztc-action-hover); }
.res-btn--ghost { color: var(--res-action); border-color: rgba(0, 103, 180, .38); }
.res-btn--ghost:hover { border-color: var(--res-action); background: rgba(0, 142, 211, .07); }

.res-constellation {
    position: relative;
    width: min(100%, 570px);
    aspect-ratio: 1.08;
    justify-self: end;
}

.res-constellation::before,
.res-constellation::after {
    content: "";
    position: absolute;
    inset: 6% 4%;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
}

.res-constellation::after {
    inset: 14% 12%;
    border-style: dashed;
    opacity: .62;
    animation: res-orbit 30s linear infinite;
}

.res-dna { position: absolute; inset: 5% 0; width: 100%; height: 90%; }
.res-dna-path { stroke-width: 2.2; stroke-linecap: round; }
.res-dna-path--a { stroke: rgba(255, 255, 255, .86); }
.res-dna-path--b { stroke: rgba(97, 204, 240, .94); }
.res-dna-rungs path { stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; }

.res-constellation > strong {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font: 700 clamp(15px, 1.4vw, 19px)/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .12em;
    text-align: center;
    text-shadow: 0 8px 30px rgba(0, 52, 98, .36);
}

.res-node {
    position: absolute;
    min-width: 58px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    color: rgba(255, 255, 255, .92);
    background: rgba(0, 79, 140, .5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 53, 98, .18);
}

.res-node::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--ztc-brand-cyan);
    box-shadow: 0 0 10px rgba(97, 204, 240, .9);
}

.res-node--one { left: 5%; top: 18%; }
.res-node--two { right: 0; top: 13%; }
.res-node--three { left: -1%; top: 50%; }
.res-node--four { right: -2%; top: 48%; }
.res-node--five { left: 12%; bottom: 8%; }
.res-node--six { right: 8%; bottom: 9%; }

@keyframes res-orbit { to { transform: rotate(360deg); } }

.res-guide-section,
.res-map-section { padding: 104px 0; }

.res-guide-section { background: var(--res-paper-soft); }

.res-guide-layout {
    display: grid;
    grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr);
    gap: clamp(50px, 7vw, 104px);
    align-items: start;
}

.res-guide-intro {
    position: sticky;
    top: 126px;
    padding-top: 22px;
}

.res-guide-intro h2,
.res-section-head h2,
.res-help h2 {
    margin-bottom: 0;
    font-family: var(--ztc-font-serif, var(--ztc-serif));
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.22;
    letter-spacing: -.025em;
}

.res-guide-intro > p:not(.res-kicker) {
    margin: 24px 0 30px;
    color: var(--res-muted);
    font-size: 16px;
    line-height: 1.88;
}

.res-guide-intro ul { margin: 0; padding: 0; list-style: none; }
.res-guide-intro li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--res-line); color: var(--res-muted); font-size: 14px; }
.res-guide-intro li:last-child { border-bottom: 1px solid var(--res-line); }
.res-guide-intro li span { color: var(--ztc-brand-primary); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.res-guide {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 103, 180, .2);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(15, 74, 120, .12);
}

.res-guide-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    color: #fff;
    background: linear-gradient(110deg, #0067b4 0%, #008ed3 68%, #31aee5 100%);
}

.res-guide-head > div { display: flex; align-items: center; gap: 10px; }
.res-guide-head > div > span { width: 8px; height: 8px; border-radius: 50%; background: var(--ztc-brand-cyan); box-shadow: 0 0 12px rgba(97, 204, 240, .86); }
.res-guide-head strong { font-size: 14px; letter-spacing: .02em; }
.res-guide-head small { color: rgba(255, 255, 255, .74); font-size: 12px; }

.res-search-form { padding: 30px 28px 0; }
.res-search-form > label { display: block; margin-bottom: 11px; color: var(--res-ink); font-size: 14px; font-weight: 700; }
.res-search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid rgba(0, 103, 180, .36); border-radius: 14px; background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.res-search-control:focus-within { border-color: var(--res-action); box-shadow: 0 0 0 4px rgba(0, 142, 211, .1); }
.res-search-control input { min-width: 0; min-height: 60px; padding: 15px 18px; border: 0; outline: 0; border-radius: 14px 0 0 14px; color: var(--res-ink); background: transparent; font: 500 16px/1.5 var(--ztc-sans); }
.res-search-control input::placeholder { color: #858b96; }
.res-search-control button { min-width: 126px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 6px; padding: 10px 19px; border: 0; border-radius: 10px; color: #fff; background: var(--res-action); cursor: pointer; font: 700 14px/1.4 var(--ztc-sans); transition: background-color .2s ease, transform .2s ease; }
.res-search-control button:hover { background: var(--ztc-action-hover); transform: translateY(-1px); }
.res-search-control button:disabled { opacity: .6; cursor: wait; transform: none; }
.res-search-form > p { margin: 10px 0 0; color: #727985; font-size: 12px; line-height: 1.65; }
.res-search-form > .res-guide-privacy { margin-top: 5px; color: #7a5b2a; }
.res-guide-privacy strong { color: #66471c; }

.res-intents { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 20px 28px 22px; }
.res-intents > span { margin-right: 2px; color: var(--res-muted); font-size: 12px; }
.res-intents button { min-height: 36px; padding: 7px 13px; border: 1px solid var(--res-line); border-radius: 999px; color: var(--res-action); background: #fff; cursor: pointer; font: 600 12px/1.4 var(--ztc-sans); transition: border-color .2s ease, background-color .2s ease; }
.res-intents button:hover { border-color: rgba(0, 103, 180, .44); background: rgba(0, 142, 211, .07); }

.res-guide-status { min-height: 45px; margin: 0; padding: 13px 28px; border-top: 1px solid var(--res-line); border-bottom: 1px solid var(--res-line); color: var(--res-muted); background: #fbfcfd; font-size: 13px; line-height: 1.5; }
.res-guide-status.is-error { color: #9e3b2f; }

.res-guide-results { padding: 0 28px; }
.res-result {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--res-line);
}
.res-result:last-child { border-bottom: 0; }
.res-result-index { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--res-action); background: rgba(0, 142, 211, .09); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.res-result-copy { min-width: 0; }
.res-result-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 7px; color: var(--ztc-brand-primary); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.res-result h3 { margin: 0 0 8px; font-family: var(--ztc-font-serif, var(--ztc-serif)); font-size:20px; line-height: 1.4; }
.res-result h3 a { color: var(--res-ink); text-decoration: none; }
.res-result h3 a:hover { color: var(--res-action); }
.res-result .res-result-reason { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 0 0 8px; color: #617384; font-size: 12px; line-height: 1.55; }
.res-result-reason span { color: var(--ztc-brand-primary); font-weight: 700; }
.res-result-summary { margin: 0; color: var(--res-muted); font-size: 13px; line-height: 1.72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.res-result-go { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--res-line); border-radius: 50%; color: var(--res-action); text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.res-result-go:hover { border-color: var(--res-action); background: rgba(0, 142, 211, .07); transform: translateX(2px); }

.res-results-label { margin: 20px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--res-line); color: #647586; font-size: 12px; font-weight: 700; line-height: 1.6; }

.res-guide-fallback { margin: 0 28px 28px; padding: 22px; border-radius: 14px; background: var(--res-paper-soft); }
.res-guide-fallback > strong { display: block; margin-bottom: 12px; font-size: 14px; }
.res-guide-fallback > div { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.res-guide-fallback a { color: var(--res-action); font-size: 13px; font-weight: 700; text-decoration: none; }
.res-guide-fallback a:hover { text-decoration: underline; }
.res-guide-fallback > .res-guide-ordinary-search { width: fit-content; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--res-line); }
.res-guide-fallback > .res-guide-ordinary-search[hidden] { display: none; }
.res-noscript { margin: 0 28px 28px; color: var(--res-muted); font-size: 13px; }

.res-map-section { background: #fff; }
.res-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .64fr); gap: 70px; align-items: end; margin-bottom: 54px; }
.res-section-head > p { margin-bottom: 0; color: var(--res-muted); font-size: 16px; line-height: 1.84; }

.res-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res-card { position: relative; min-height: 390px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--res-line); border-radius: 18px; background: #fff; overflow: hidden; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.res-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--ztc-brand-primary), var(--ztc-brand-cyan)); transform: scaleX(.32); transform-origin: left; transition: transform .28s ease; }
.res-card:hover { transform: translateY(-4px); border-color: rgba(0, 103, 180, .32); box-shadow: 0 18px 46px rgba(16, 69, 112, .1); }
.res-card:hover::before { transform: scaleX(1); }
.res-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 42px; }
.res-card-top > span { color: var(--ztc-brand-primary); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.res-card-top > small { color: #78808a; font-size:var(--ztc-fs-micro); font-weight: 700; letter-spacing: .1em; text-align: right; }
.res-card h3 { margin-bottom: 15px; font-family: var(--ztc-font-serif, var(--ztc-serif)); font-size:24px; line-height: 1.3; }
.res-card h3 a { color: var(--res-ink); text-decoration: none; }
.res-card h3 a::after { content: ""; position: absolute; inset: 0; }
.res-card > p { margin-bottom: 23px; color: var(--res-muted); font-size: 14px; line-height: 1.78; }
.res-card-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 24px; }
.res-card-links a { color: var(--res-action); font-size: 12px; font-weight: 600; text-decoration: none; }
.res-card-links a:hover { text-decoration: underline; }
.res-card-links span { margin-left: 3px; font-size:var(--ztc-fs-micro); }
.res-card-primary { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin-top: auto; color: var(--res-action); font-size: 14px; font-weight: 700; text-decoration: none; }
.res-card-primary span { transition: transform .2s ease; }
.res-card-primary:hover span { transform: translateX(4px); }

.res-help { padding: 82px 0; color: #fff; background: var(--ztc-banner-balanced); }
.res-help .res-kicker { color: var(--ztc-brand-cyan); }
.res-help-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.res-help h2 { margin-bottom: 18px; }
.res-help p:not(.res-kicker) { max-width: 760px; margin-bottom: 0; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.84; }
.res-help .res-btn--dark { color: var(--res-action); background: #fff; }
.res-help .res-btn--dark:hover { color: var(--ztc-surface-inverse-deep); background: var(--ztc-brand-cyan); }
.res-help .res-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .56); }
.res-help .res-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }

.res-btn:focus-visible,
.res-search-control button:focus-visible,
.res-intents button:focus-visible,
.res-result a:focus-visible,
.res-card a:focus-visible,
.res-guide-fallback a:focus-visible {
    outline: 3px solid var(--ztc-brand-amber);
    outline-offset: 3px;
}

@media (max-width: 1080px) {
    .res-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, .64fr); gap: 42px; }
    .res-card-grid { grid-template-columns: repeat(2, 1fr); }
    .res-guide-layout { grid-template-columns: minmax(250px, .55fr) minmax(0, 1.2fr); gap: 48px; }
}

@media (max-width: 820px) {
    .res-hero { min-height: auto; padding-bottom: 70px; }
    .res-hero-layout { grid-template-columns: 1fr; }
    .res-constellation { width: min(100%, 520px); justify-self: center; margin-top: 12px; }
    .res-guide-section,
    .res-map-section { padding: 78px 0; }
    .res-guide-layout,
    .res-section-head,
    .res-help-layout { grid-template-columns: 1fr; }
    .res-guide-intro { position: static; padding-top: 0; }
    .res-section-head,
    .res-help-layout { gap: 30px; }
    .res-help-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .res-hero { margin-top: 0; padding-top: calc(var(--ztc-shell-sticky-top, 76px) + 56px); }
    .res-hero h1 { font-size: var(--ztc-banner-h1-standard); }
    .res-hero h1 span:last-child { display: inline; }
    .res-hero-lead { font-size: var(--ztc-banner-summary); }
    .res-hero-actions .res-btn { width: 100%; }
    .res-constellation { width: 100%; }
    .res-node { min-width: 50px; height: 29px; padding: 0 9px; font-size: 11px; }
    .res-node--three { left: 1%; }
    .res-node--four { right: 1%; }
    .res-guide { border-radius: 18px; }
    .res-guide-head { min-height: 58px; padding: 0 20px; }
    .res-guide-head small { display: none; }
    .res-search-form { padding: 24px 20px 0; }
    .res-search-control { grid-template-columns: 1fr; padding: 5px; }
    .res-search-control input { min-height: 52px; border-radius: 10px; }
    .res-search-control button { width: calc(100% - 2px); min-height: 48px; margin: 1px; }
    .res-intents { padding: 18px 20px 20px; }
    .res-intents > span { flex-basis: 100%; }
    .res-guide-status { padding: 12px 20px; }
    .res-guide-results { padding: 0 20px; }
    .res-result { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; }
    .res-result-index { width: 36px; height: 36px; }
    .res-result-go { display: none; }
    .res-guide-fallback { margin: 0 20px 20px; }
    .res-card-grid { grid-template-columns: 1fr; }
    .res-card { min-height: 360px; }
    .res-help-actions .res-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .res-page *,
    .res-page *::before,
    .res-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
