/* The sitemap for people, /sitemap/ (resources/views/central/sitemap.blade.php): the inner pages'
   navy hero carrying a search, then every page as a card, grouped. Every colour is a --h-* token
   from landing-home.css. Text pairs measured in Chrome: names 16.6:1 and paths 5.2:1 on white,
   counts 15.3:1 on --h-fill, icons 6.5:1, the hero's count in --h-on-dark-text on navy.
   The vendor's landing.css pads every <section> by 80px: the groups set their own padding-block. */

/* ── In the hero: the count, the search, the XML link ─────────────────────────────────────── */
.sm-tools { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; width: 100%; max-width: 640px; margin: 0 auto; }
.sm-tools__count { margin: 0; font-size: 16px; line-height: 24px; color: var(--h-on-dark-text); }
.sm-tools__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.sm-tools .h-button svg { width: 16px; height: 16px; }

.sm__search {
    position: relative;
    display: block;
    width: 420px;
    max-width: 100%;
}
.sm__search input {
    width: 100%;
    height: 48px;
    padding-inline: 44px 16px;
    border: 1px solid var(--h-border);
    border-radius: 999px;
    background: var(--h-card);
    color: var(--h-ink);
    font: inherit;
    font-size: 15px;
}
.sm__search input::placeholder { color: var(--h-text); }
.sm__search input:focus-visible { outline: 3px solid var(--h-300); outline-offset: 2px; }
.sm__search svg {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--h-text);
    pointer-events: none;
}
.sm__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── The groups: a heading and count, then the pages as cards ───────────────────────────────── */
.sm {
    max-width: 1216px;
    margin: 0 auto;
    padding: 24px 32px 96px;
    color: var(--h-ink);
}
.sm__group { padding-block: 40px 0; }
.sm__group[hidden] { display: none; }
.sm__group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}
.sm__group-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 650;
    color: var(--h-ink);
}
.sm__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding-inline: 9px;
    border-radius: 999px;
    background: var(--h-fill);
    color: var(--h-ink);
    font-size: 13px;
    font-weight: 600;
}

.sm__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sm__grid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.sm__item[hidden] { display: none; }

.sm__card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--h-border);
    border-radius: 14px;
    background: var(--h-card);
    color: var(--h-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.sm__card:hover { border-color: var(--h-300); background: var(--h-sand); color: var(--h-ink); }
.sm__card:focus-visible { outline: 2px solid var(--h-600); outline-offset: 2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .sm__card:hover { transform: translateY(-1px); }
}

.sm__icon {
    flex: none;
    width: 32px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--h-line);
}
.sm__glyph {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--h-fill);
    color: var(--h-700);
}
.sm__glyph svg { width: 18px; height: 18px; }

.sm__text { min-width: 0; flex: 1; }
.sm__name {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.sm__path {
    display: block;
    margin-top: 2px;
    font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--h-text);
    overflow-wrap: anywhere;
}
.sm__meta {
    flex: none;
    font-size: 12.5px;
    color: var(--h-text);
    white-space: nowrap;
}

.sm__empty {
    margin: 48px 0 0;
    font-size: 16px;
    text-align: center;
    color: var(--h-text);
}
.sm__empty[hidden] { display: none; }

@media (max-width: 767px) {
    .sm { padding: 8px 16px 64px; }
    .sm__group { padding-block: 32px 0; }
    .sm__grid, .sm__grid--wide { grid-template-columns: 1fr; }
    .sm__meta { display: none; }
    .sm-tools__row .h-button, .sm__search { width: 100%; }
}
