.gs {
    max-width: 720px;
    margin: 32px auto 48px;
    padding: 0 12px;
    color: var(--color-text-primary, #183249);
}
.gs-home {
    min-height: clamp(260px, 40vh, 460px);
    display: grid;
    place-items: center;
    text-align: center;
    margin-top: 0;
}
.gs-home header {width: 100%;}
.gs-home h1 {
    margin: 0 0 24px;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.1;
}
.gs-home h1 span {color: var(--color-primary, #28578a);}
.gs-form {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px 7px 6px 17px;
    background: var(--color-surface, white);
    border: 1px solid var(--color-border, #a7b8c7);
    border-radius: 26px;
    box-shadow: 0 2px 8px #18324912;
}
.gs-form:focus-within {border-color: var(--color-primary, #416f9f); box-shadow: 0 0 0 2px #3b70a626;}
.gs-form i, .gs-count, .gs-type, .gs-pages, .gs-examples {color: var(--color-text-secondary, #5c6e7e);}
.gs-form input[type="search"] {flex: 1; min-width: 0; padding: 4px 0; color: inherit; background: transparent; border: 0; outline: none;}
.gs-form input[type="search"] {font-size: 1.1rem;}
.gs-form button:focus-visible, .gs a:focus-visible, .gs-az a:focus-visible, .gs-browse a:focus-visible {outline: 3px solid var(--color-accent, #2563eb); outline-offset: 2px;}
.gs-form button {color: white; background: #183d62; border: 0; border-radius: 24px; padding: 7px 19px; font-weight: 700;}
.gs-examples {display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: .86rem;}
.gs-examples a {text-decoration: underline; text-underline-offset: 3px;}
.gs-brand {display: inline-block; margin-bottom: 12px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em;}
.gs-results {margin-top: 26px;}
.gs-count, .gs-type, .gs-pages {font-size: .85rem;}
.gs-results ol {list-style: none; margin: 0; padding: 0;}
.gs-results li {margin: 20px 0 24px;}
.gs-results h2 {font-size: 1.3rem; margin: 2px 0 3px; font-weight: 700;}
.gs-results li p {line-height: 1.5; margin: 0;}
.gs-pages {display: flex; gap: 16px; align-items: center;}
/* Lede, "/" hint, suggestions combobox */
.gs-lede {margin: -12px 0 22px; font-size: 1.1rem; color: var(--color-text-secondary, #475569);}
.gs-key {font: inherit; font-size: .8rem; color: var(--color-text-secondary, #475569); border: 1px solid var(--color-border, #cbd5e1); border-radius: 6px; padding: 1px 7px; background: none;}
.gs-suggestions {
    position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
    list-style: none; margin: 0; padding: 6px 0; text-align: left;
    background: var(--color-surface, #fff); border: 1px solid var(--color-border, #cbd5e1);
    border-radius: 14px; box-shadow: 0 14px 30px rgba(15, 23, 42, .14); max-height: 60vh; overflow-y: auto;
}
.gs-suggestions li {display: flex; flex-direction: column; gap: 2px; padding: 10px 18px; cursor: pointer;}
.gs-suggestions li[aria-selected="true"], .gs-suggestions li:hover {background: var(--color-accent-light, #eff6ff);}
.gs-opt-name {font-size: 1.05rem; font-weight: 600; color: var(--color-text-primary, #0f172a);}
.gs-opt-desc {font-size: .9rem; color: var(--color-text-secondary, #475569);}
.gs-list-title {font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 4px;}
.gs-suggest {font-size: 1.05rem;}

/* A to Z bar and the browse sections below the search box */
.gs-az, .gs-browse {max-width: 1040px; margin: 0 auto 32px; padding: 0 12px;}
.gs-az h2, .gs-browse h2 {font-size: 1.25rem; font-weight: 700; margin: 0 0 12px; color: var(--color-text-primary, #0f172a);}
.gs-az ul {list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px;}
.gs-az a, .gs-az span {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 10px; font-weight: 600; font-size: 1.05rem; text-decoration: none;
    border: 1px solid var(--color-border, #cbd5e1); background: var(--color-surface, #fff);
}
.gs-az a {color: var(--color-accent-hover, #1d4ed8);}
.gs-az a:hover, .gs-az a[aria-current="page"] {background: var(--color-accent-light, #eff6ff); border-color: var(--color-accent, #2563eb);}
.gs-az span {color: var(--color-text-muted, #94a3b8); border-style: dashed;}
.gs-browse {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; padding-bottom: 32px;}
.gs-card {background: var(--color-surface, #fff); border: 1px solid var(--color-border, #e2e8f0); border-radius: 14px; padding: 20px 22px;}
.gs-totd h2 {font-size: .95rem; font-weight: 600; color: var(--color-text-secondary, #475569);}
.gs-totd-name {display: inline-block; font-size: 1.7rem; font-weight: 700; margin-bottom: 4px;}
.gs-totd p:last-child {font-size: 1.05rem; line-height: 1.55; margin: 0;}
.gs-meta {font-size: .9rem; font-weight: 500; color: var(--color-text-secondary, #475569); margin: 0 0 8px;}
.gs-topic-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;}
.gs-topics h3 {font-size: 1.1rem; font-weight: 700; margin: 0 0 10px;}
.gs-topics h3 a {color: var(--color-text-primary, #0f172a);}
.gs-topics dl {margin: 0 0 10px;}
.gs-topics dt {font-weight: 600; margin-top: 10px;}
.gs-topics dd {margin: 2px 0 0; font-size: .95rem; line-height: 1.45; color: var(--color-text-secondary, #475569);}
.gs-more {font-weight: 600; font-size: .95rem;}
@media (max-width: 860px) {
    .gs-browse, .gs-topic-grid {grid-template-columns: minmax(0, 1fr);}
}

@media (max-width: 580px) {
    .gs-key {display: none;}
    .gs {padding: 0;}
    .gs-form {gap: 7px; padding-left: 12px;}
    .gs-form button {padding: 6px 12px;}
    .gs-home h1 {margin-bottom: 16px;}
}
