/* Terra Service Hub: catalogue, search, breadcrumbs, contextual help, command palette. Static, nothing moves. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crumbs { margin: 0 0 14px; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #586b70; }
.crumbs li[aria-current] { font-weight: 700; }
.hub-search { margin: 0 0 18px; }
.hub-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.hub-search-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hub-search input[type="search"] { flex: 1 1 260px; min-width: 0; padding: 11px 12px; font: inherit; border: 1.5px solid #8aa39d; border-radius: 3px; background: #fff; color: #102e3a; }
.hub-search select { padding: 11px 10px; font: inherit; border: 1.5px solid #8aa39d; border-radius: 3px; background: #fff; color: #102e3a; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.hub-chips a { display: inline-block; padding: 5px 12px; border: 1.5px solid #8aa39d; border-radius: 999px; text-decoration: none; color: #102e3a; background: #fff; }
.hub-chips a[aria-current] { background: #102e3a; color: #fff; border-color: #102e3a; font-weight: 700; }
.hub-count { color: #3c5058; font-size: .9rem; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.hub-card { position: relative; padding: 16px 18px; background: #fff; color: #102e3a; border: 1px solid #c9d8d4; border-radius: 6px; }
.hub-card h2, .hub-card h3 { margin: 4px 0 6px; font-size: 1.2rem; }
.hub-card h2 a, .hub-card h3 a { color: inherit; text-decoration: none; }
.hub-card h2 a::after, .hub-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hub-card:focus-within, .hub-card:hover { border-color: #086b60; box-shadow: 0 2px 10px #102e3a22; }
.hub-card a:focus-visible { outline: 3px solid #b96738; outline-offset: 2px; }
.hub-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid #086b60; border-radius: 50%; font-weight: 700; font-size: .85rem; color: #086b60; }
.hub-cat { margin: 8px 0 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #3c5058; }
.hub-avail { margin: 8px 0 0; font-size: .85rem; }
.hub-status { display: inline-flex; gap: 6px; font-weight: 600; }
.hub-status-degraded { color: #8a4a1f; }
.hub-status-unavailable { color: #a3302a; }
.hub-official { color: #3c5058; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0; padding: 18px; background: #f4f8f6; border: 1px solid #c9d8d4; border-radius: 10px; }
.hub-actions .button { min-height: 48px; padding: .7rem 1.3rem; border-radius: 8px; letter-spacing: 0; }
.hub-actions .button:after { display: none; }
.hub-actions .button.ghost { background: #fff; color: #086b60; border: 1.5px solid #086b60; }
.hub-actions .button.ghost:hover { background: #e5f2ed; }
.hub-actions .hub-book { gap: .6rem; padding: .85rem 1.8rem; font-size: 1.08rem; background: #086b60; color: #fff; border-color: #086b60; box-shadow: 0 6px 18px #086b6038; }
.hub-actions .hub-book:hover { background: #07594f; border-color: #07594f; transform: translateY(-2px); box-shadow: 0 10px 24px #086b6045; }
.hub-actions .hub-book svg { flex: none; }
.hub-actions .button:focus-visible { outline: 3px solid #b96738; outline-offset: 3px; }
@media (max-width: 600px) { .hub-actions { flex-direction: column; align-items: stretch; } .hub-actions .button { width: 100%; } }
.ctx-help { margin: 12px 0 18px; border: 1px solid #c9d8d4; border-left: 5px solid #3c6e8f; border-radius: 4px; background: #f4f8f6; color: #102e3a; }
.ctx-help summary { cursor: pointer; padding: 10px 14px; font-weight: 700; }
.ctx-help summary:focus-visible { outline: 3px solid #b96738; outline-offset: -3px; }
.ctx-help-body { padding: 0 14px 10px; }
.ctx-help-body p, .ctx-help-body ul { margin: 6px 0; }
.hub-tour { max-width: 640px; }
/* Homepage blocks */
.hub-home-block { margin: 0 0 26px; }
.hub-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.hub-quick a { display: block; padding: 12px 14px; background: #fff; color: #102e3a; border: 1px solid #c9d8d4; border-radius: 4px; text-decoration: none; font-weight: 700; }
.hub-quick a:hover, .hub-quick a:focus-visible { border-color: #086b60; outline: 3px solid #b96738; outline-offset: 2px; }
.hub-pubs { list-style: none; margin: 8px 0; padding: 0; }
.hub-pubs li { padding: 6px 0; border-bottom: 1px solid #c9d8d4; }
/* Command palette */
.cmd-open { position: fixed; right: 16px; bottom: 16px; z-index: 40; padding: 8px 12px; font: inherit; background: #102e3a; color: #fff; border: 1.5px solid #45a796; border-radius: 3px; cursor: pointer; }
.cmd-open kbd { padding: 0 5px; border: 1px solid #8fb9b0; border-radius: 3px; font-size: .78rem; }
.cmd-open:focus-visible, .cmd input:focus-visible, .cmd a:focus-visible { outline: 3px solid #b96738; outline-offset: 2px; }
.cmd { width: min(560px, calc(100% - 32px)); max-height: 80vh; padding: 16px 18px; border: 1px solid #45a796; border-radius: 6px; background: #fff; color: #102e3a; }
.cmd::backdrop { background: rgba(2, 16, 24, .6); }
.cmd h2 { margin: 0 0 8px; font-size: 1.1rem; }
.cmd input[type="search"] { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; border: 1.5px solid #8aa39d; border-radius: 3px; }
.cmd-hint { margin: 6px 0; font-size: .82rem; color: #3c5058; }
#cmd-list { max-height: 44vh; overflow: auto; margin: 8px 0; padding: 0; list-style: none; }
#cmd-list li a { display: block; padding: 8px 10px; color: #102e3a; text-decoration: none; border-radius: 3px; }
#cmd-list li a:hover, #cmd-list li a:focus { background: #e5f2ed; }
#cmd-list .cmd-group { margin-top: 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #3c5058; }
@media (max-width: 600px) { .cmd-open { right: 8px; bottom: 8px; } .cmd-open kbd { display: none; } }
