.guide-catalog {
    --guide-ink: #22133f;
    --guide-muted: #554c72;
    --guide-accent: #6745a9;
    --guide-line: #d6ccec;
    --guide-surface: #faf9fe;
    --guide-tile: #ede7fa;
    --service-shell-gap: 1.5rem;
    min-height: 100vh;
    padding-inline: clamp(1rem, 4.16vw, 4rem);
    padding-bottom: 4rem;
    background: #f3f0fb;
    color: var(--guide-ink);
}
.guide-catalog-inner { max-width: 88rem; margin-inline: auto; }
.guide-catalog h1, .guide-catalog h2 { margin: 0; color: var(--guide-ink); font-weight: 800; letter-spacing: -.03em; }
.guide-catalog h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.3; }
.guide-intro {
    --guide-heading-size: clamp(1.85rem, 3.45vw, 3.25rem);
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    min-height: 185px;
    padding: 2rem clamp(1.25rem, 3.6vw, 3.5rem) 1.15rem;
    overflow: hidden;
    border-radius: 1.45rem;
    background: #e9e3fb;
    overflow-wrap: anywhere;
}
.guide-intro:not(.guide-intro--compact)::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: min(54%, 768px);
    background: url("../images/service-guide-cover.dc89ef54208c.webp") no-repeat right center / cover;
    mask-image: linear-gradient(90deg, transparent, #000 12%);
    content: "";
}
.guide-intro h1 { font-size: var(--guide-heading-size); line-height: 1.13; }
/* The help center's introduction has a larger title than the tool pages. */
.space-shell-on #main-content.guide-catalog .guide-intro h1 {
    font-size: var(--guide-heading-size) !important;
    line-height: 1.13 !important;
    font-weight: 800 !important;
    letter-spacing: -.03em !important;
    color: var(--guide-ink) !important;
}
.guide-intro p { margin: .55rem 0 0; color: var(--guide-muted); font-size: clamp(1rem, 1.75vw, 1.6rem); line-height: 1.4; }
.guide-intro h1, .guide-intro p { max-width: 57%; word-break: keep-all; }
.guide-intro.guide-intro--compact { min-height: auto; }
.guide-intro--compact h1 { max-width: none; }
.guide-search { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.guide-search-field { position: relative; flex: 1 1 12rem; }
.guide-search-field > i {
    position: absolute;
    inset: 0 auto 0 1.4rem;
    align-content: center;
    font-size: 1.3rem;
    color: var(--guide-muted);
    pointer-events: none;
}
.guide-search input, .guide-search button, .guide-search a { min-height: 48px; border-radius: .875rem; font-size: 1.0625rem; }
.guide-search input {
    width: 100%;
    padding: .65rem 1rem .65rem 4rem;
    border: 1px solid #ab98e0;
    background: var(--guide-surface);
    color: var(--guide-ink);
}
.guide-search input::placeholder { color: var(--guide-muted); opacity: 1; }
.guide-search button, .guide-search a {
    display: inline-grid;
    place-items: center;
    padding-inline: clamp(1rem, 2vw, 2rem);
    font-weight: 700;
}
.guide-search button { background: #3b2466; color: white; }
.guide-search button:hover { background: #50337b; }
.guide-search a { border: 1px solid var(--guide-line); background: var(--guide-surface); color: var(--guide-accent); }
.guide-count { margin: .5rem 0 .78rem; color: var(--guide-muted); font-size: .95rem; }
.guide-start {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem 1.75rem;
    padding: .9rem 1rem .9rem 1.45rem;
    border-radius: 1.15rem;
    background: var(--guide-tile);
}
.guide-start-heading { display: flex; align-items: center; gap: 1rem; padding-right: 2rem; border-right: 1px solid #c9b9e8; }
.guide-start-heading h2 { font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
.guide-start-heading a { display: inline-flex; padding-block: .25rem; color: var(--guide-accent); font-size: .875rem; text-decoration: underline; text-underline-offset: .15em; }
.guide-start-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #e2d9f8;
    color: var(--guide-accent);
    font-size: 1.8rem;
}
.guide-start-list, .guide-categories ul, .guide-examples ul { margin: 0; padding: 0; list-style: none; }
.guide-start-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr)); gap: clamp(.5rem, 2.2vw, 2.3rem); }
.guide-start-list li, .guide-categories li { min-width: 0; }
.guide-start-list a {
    display: flex;
    align-items: center;
    gap: .8rem;
    height: 100%;
    min-height: 76px;
    padding: .65rem clamp(.65rem, 1vw, 1rem);
    border: 1px solid var(--guide-line);
    border-radius: .8rem;
    background: var(--guide-surface);
    color: var(--guide-ink);
    font-size: clamp(.88rem, 1.2vw, 1.125rem);
    font-weight: 700;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.guide-start-list i, .guide-categories i { flex-shrink: 0; color: var(--guide-accent); font-size: clamp(1.3rem, 2vw, 1.95rem); }
.guide-categories { margin-top: 1.25rem; }
.guide-categories ul {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.25rem;
}
.guide-categories a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    height: 100%;
    min-height: 100px;
    padding: .65rem .5rem;
    border: 1px solid #ede7fa;
    border-radius: .9rem;
    background: var(--guide-tile);
    color: var(--guide-ink);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.guide-start-list a:hover, .guide-categories a:hover, .guide-row:hover { border-color: var(--guide-accent); }
.guide-group { margin-top: 1.85rem; scroll-margin-top: calc(var(--main-nav-height, 88px) + 1rem); }
.guide-group h2 { margin-bottom: .85rem; overflow-wrap: anywhere; }
.guide-row {
    display: flex;
    align-items: center;
    gap: clamp(.85rem, 2.4vw, 2.3rem);
    min-height: 100px;
    margin-top: .5rem;
    padding: .55rem 1.35rem .55rem clamp(1rem, 2.2vw, 2.1rem);
    border: 1px solid var(--guide-line);
    border-radius: .9rem;
    background: var(--guide-surface);
    color: var(--guide-ink);
}
.guide-row-preview {
    flex-shrink: 0;
    width: clamp(6rem, 13vw, 12.2rem);
    height: 76px;
    border-radius: .5rem;
    background: #eee8fa;
    object-fit: cover;
    object-position: top;
}
.guide-row-preview--fallback { display: grid; place-items: center; color: var(--guide-accent); font-size: 1.5rem; }
.guide-row-copy { display: grid; flex: 1; min-width: 0; gap: .2rem; word-break: keep-all; overflow-wrap: anywhere; }
.guide-row-copy strong { font-size: 1.25rem; line-height: 1.2; }
.guide-row-copy > span { color: var(--guide-muted); font-size: 1rem; }
.guide-row-copy .guide-first-action { color: var(--guide-ink); font-weight: 650; }
.guide-first-action > span {
    display: inline-block;
    margin-right: .5rem;
    padding: .1rem .55rem;
    border-radius: .5rem;
    background: #e5d7fa;
    font-size: .875rem;
    font-weight: 750;
}
.guide-row-action {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .38rem .9rem;
    border: 1px solid #a890d3;
    border-radius: .65rem;
    font-size: 1rem;
    font-weight: 650;
    white-space: nowrap;
}
.guide-row:hover .guide-row-action { background: var(--guide-tile); }
.guide-catalog :is(a, button, input, summary):focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 3px; }
.guide-examples { padding: .85rem 1.25rem; border: 1px solid var(--guide-line); border-radius: .9rem; background: var(--guide-surface); }
.guide-examples ul { display: grid; gap: 1rem; margin-top: 1rem; }
.guide-examples a { color: var(--guide-accent); text-decoration: underline; text-underline-offset: .18em; }
.guide-examples p, .guide-empty { color: var(--guide-muted); }
.guide-empty { padding: 1.5rem 0; }

@media (min-width: 1200px) {
    .guide-start-list:has(> :nth-child(5)) {
        grid-template-columns: minmax(0, 1.17fr) minmax(0, 1.13fr) repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 1199px) {
    .guide-start { grid-template-columns: 1fr; }
    .guide-start-heading { border-right: 0; padding-right: 0; gap: .65rem; }
    .guide-start-icon { width: 2.6rem; font-size: 1.15rem; }
    .guide-start-list { gap: .65rem; }
    .guide-categories ul { grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr)); gap: .65rem; }
    .guide-categories a { min-height: 78px; }
}
@media (min-width: 561px) and (max-width: 860px) {
    .guide-start-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .guide-intro { --guide-heading-size: clamp(1.45rem, 5.8vw, 1.85rem); min-height: 155px; padding: 1.1rem; }
    .guide-intro:not(.guide-intro--compact)::before { width: 46%; background-position: 76% center; }
    .guide-intro p { font-size: .95rem; }
    .guide-search-field { flex-basis: 10rem; }
    .guide-search input { padding-left: 2.7rem; }
    .guide-search-field > i { left: .95rem; font-size: 1rem; }
    .guide-start { padding: .9rem; }
    .guide-start-list a { min-height: 50px; }
    .guide-categories ul { margin-top: .75rem; }
    .guide-categories a { min-height: 70px; font-size: .87rem; }
    .guide-row { min-height: 88px; gap: .75rem; padding: .65rem; }
    .guide-row-preview { width: clamp(4.1rem, 15vw, 6rem); height: 58px; }
    .guide-row-copy strong { font-size: 1.05rem; }
    .guide-row-copy > span { font-size: .875rem; }
    .guide-row-action { padding: .2rem .35rem; border-color: transparent; }
    .guide-row-action-label { display: none; }
}

@media (max-width: 360px) {
    .guide-intro:not(.guide-intro--compact)::before {
        background-size: auto 84%;
        background-position: 75% bottom;
        mask-image: linear-gradient(90deg, transparent, #000 12%), linear-gradient(180deg, transparent 15%, #000 27%);
        mask-composite: intersect;
    }
}
