/* Authored directory assets are served directly; no frontend build is required. */
:root {
    --cave-ink: #183348;
    --cave-muted: #526878;
    --cave-blue: #126a91;
    --cave-line: #d8e2e8;
}
.directory-page { margin: 0; background: #f2f6f8; color: var(--cave-ink); font: 16px/1.6 var(--mc-font-body); }
.directory-page *, .cave-header *, .cave-footer * { box-sizing: border-box; }
.directory-page a { color: var(--cave-blue); text-underline-offset: 3px; }
.directory-page h1, .directory-page h2, .directory-page h3 { line-height: 1.18; letter-spacing: 0; margin: 0 0 14px; }
.directory-page h1 { font-size: clamp(36px, 4.8vw, 64px); font-weight: 800; }
.directory-page h2 { font-size: 26px; }
.directory-page h3 { font-size: 21px; }
.directory-page p { margin: 0 0 18px; }
.directory-page button, .directory-page input, .directory-page select { font: inherit; }
.directory-page :focus-visible, .cave-header :focus-visible, .cave-footer :focus-visible { outline: 3px solid #c7854c; outline-offset: 4px; }
.cave-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.cave-header { background: #183348; color: white; font-family: var(--mc-font-body); }
.cave-header-inner { min-height: 84px; display: flex; align-items: center; gap: 30px; }
.cave-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: 0; color: white !important; text-decoration: none; }
.cave-brand-accent { color: #8cd4ef; }
.cave-nav { display: flex; gap: 26px; margin-left: auto; }
.cave-nav a { font-size: 14px; color: #d8e8f0; text-decoration: none; padding: 10px 0; }
.cave-nav a:hover, .cave-nav a[aria-current] { color: white; box-shadow: 0 2px #57b4dd; }
.cave-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 0; padding: 12px 22px; background: var(--cave-blue); color: white !important; font-size: 14px; line-height: 1.5; font-weight: 700; text-decoration: none; cursor: pointer; }
.cave-button:hover { background: #0d5272; }
.cave-button:disabled { opacity: .8; cursor: default; }
.cave-button-small { padding: 10px 16px; background: #57b4dd; color: #183348 !important; white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 50; padding: 12px 20px; background: white; }
.skip-link:focus { top: 12px; }
.cave-hero { background: #e6f0f5; border-bottom: 1px solid var(--cave-line); }
.cave-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; padding-top: 62px; padding-bottom: 50px; align-items: center; }
.cave-hero-copy > p { color: #3e5c6f; max-width: 530px; font-size: 18px; line-height: 1.65; }
.cave-hero-actions { display: flex; gap: 22px; align-items: center; margin: 24px 0 28px; font-size: 14px; }
.cave-hero-stats { display: flex; gap: 30px; font-size: 12px; color: var(--cave-muted); }
.cave-hero-stats strong { font-size: 22px; display: block; color: var(--cave-ink); line-height: 1.3; }
.cave-hero-world { background: white; border: 1px solid #cbdee7; border-radius: 0; overflow: hidden; }
.cave-world-art { display: block; width: 100%; height: auto; }
.cave-edition-links { display: grid; grid-template-columns: 1fr 1fr; }
.cave-edition-links a { padding: 20px; text-decoration: none; }
.cave-edition-links a + a { border-left: 1px solid var(--cave-line); }
.cave-edition-links a:hover { background: #edf6fa; }
.cave-edition-links strong, .cave-edition-links span { display: block; }
.cave-edition-links strong { font-size: 18px; color: var(--cave-ink); }
.cave-edition-links span { font-size: 12px; margin-top: 5px; color: var(--cave-muted); }
.cave-mode-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 32px; }
.cave-mode-strip > span { font-size: 13px; font-weight: 700; margin-right: 6px; }
.cave-mode-strip a { padding: 6px 14px; border: 1px solid #ccdbe4; border-radius: 0; background: white; color: #365367; text-decoration: none; font-size: 13px; }
.cave-mode-strip a:hover { background: #183348; border-color: #183348; color: white; }
.cave-directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 54px; scroll-margin-top: 24px; }
.cave-sidebar { min-width: 0; }
.cave-filter-disclosure > summary { display: none; }
.cave-filter-form { padding: 24px; background: white; border: 1px solid var(--cave-line); border-radius: 0; }
.cave-filter-form h2 { font-size: 21px; }
.cave-filter-form > p { color: var(--cave-muted); font-size: 13px; }
.cave-filter-form > label { display: block; font-size: 12px; font-weight: 700; margin: 16px 0 6px; }
.cave-filter-form > input, .cave-filter-form > select { width: 100%; height: 42px; background: #f7fafb; color: var(--cave-ink); border: 1px solid #c5d3dc; border-radius: 0; padding: 0 10px; font-size: 13px; }
.cave-filter-form .cave-checkbox { display: flex; align-items: start; gap: 8px; line-height: 1.6; font-weight: 500; margin-bottom: 20px; }
.cave-checkbox input { margin: 4px 0 0; accent-color: var(--cave-blue); }
.cave-filter-form .cave-button { width: 100%; }
.cave-reset { display: block; font-size: 12px; text-align: center; margin-top: 12px; }
.cave-owner-note { padding: 24px 10px; font-size: 13px; color: var(--cave-muted); }
.cave-owner-note h3 { font-size: 18px; color: var(--cave-ink); }
.cave-owner-note p { margin-bottom: 8px; }
.cave-form-errors { background: #fff0e5; color: #783b13; padding: 10px; font-size: 12px; }
.cave-form-errors ul { padding-left: 16px; }
.cave-results-heading, .cave-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.cave-results-heading h2 { margin-bottom: 6px; }
.cave-results-heading p { color: var(--cave-muted); font-size: 13px; margin: 0; }
.cave-results-heading > a, .cave-section-heading > a { font-size: 13px; }
.cave-server-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cave-server-card { background: white; border: 1px solid var(--cave-line); border-radius: 0; padding: 12px 16px; min-width: 0; }
.cave-server-card:hover { border-color: #9cb8c9; }
.cave-server-card-sponsored { border-left: 4px solid #b7753c; background: #fffcf8; }
.cave-card-top { display: flex; align-items: center; gap: 10px; }
.cave-server-icon { width: 52px; height: 52px; flex-shrink: 0; background: #e5eff4; border-radius: 0; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 26px; }
.cave-server-icon img { width: 100%; height: 100%; object-fit: cover; }
.cave-server-title { min-width: 0; flex: 1; }
.cave-server-title h3 { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cave-server-title h3 a { color: var(--cave-ink); text-decoration: none; }
.cave-server-title h3 a:hover { text-decoration: underline; }
.cave-server-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--cave-muted); font-size: 12px; }
.cave-status { display: inline-flex; align-items: center; gap: 5px; }
.cave-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7c8d98; }
.cave-status-online { color: #226246; }
.cave-status-online::before { background: #278354; }
.cave-badge-sponsored { color: #864814; font-weight: 700; }
.cave-player-count { text-align: right; flex-shrink: 0; width: 130px; line-height: 1.3; }
.cave-player-count strong { display: block; font-size: 29px; line-height: 1.1; letter-spacing: 0; }
.cave-player-count span, .cave-player-count small { display: block; color: var(--cave-muted); font-size: 12px; }
.cave-server-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: #526878; margin: 6px 0 !important; }
.cave-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cave-tags:empty { display: none; }
.cave-tags a, .cave-tags span { padding: 2px 8px; border-radius: 0; background: #edf3f6; color: #3c5c70; font-size: 12px; text-decoration: none; }
.cave-tags a:hover { background: #d4e7f1; }
.cave-server-banner { display: block; max-width: 100%; height: auto; margin-top: 6px; border-radius: 0; }
.cave-card-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding-top: 7px; margin-top: 7px; border-top: 1px solid #e7edf1; }
.cave-server-address { min-width: 0; line-height: 1.4; }
.cave-server-address span { display: block; font-size: 12px; color: var(--cave-muted); }
.cave-server-address code { font-size: 14px; color: #294a60; overflow-wrap: anywhere; user-select: all; }
.cave-details-link { font-size: 12px; white-space: nowrap; }
.cave-copy { padding: 7px 10px; min-width: 0; min-height: 36px; white-space: nowrap; }
.cave-card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; line-height: 1.5; color: var(--cave-muted); padding-top: 5px; }
.cave-card-banner { min-width: 0; margin-left: auto; }
.cave-card-banner > summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cave-card-banner[open] { flex-basis: 100%; }
.cave-card-banner .cave-server-banner { margin: 6px 0 0; }
.cave-sponsored-heading { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.cave-sponsored-heading h3 { margin: 0; font-size: 17px; }
.cave-sponsored-heading > span { font-size: 12px; color: #864814; }
.cave-sponsored-list { margin-bottom: 26px; }
.cave-pagination { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 30px 0; font-size: 13px; }
.cave-pagination a { background: white; border: 1px solid var(--cave-line); padding: 10px 18px; border-radius: 0; }
.cave-ranking-note { font-size: 12px; color: var(--cave-muted); margin-top: 24px !important; max-width: 70ch; }
.cave-empty { background: white; border: 1px dashed #a8bfce; border-radius: 0; padding: 50px 32px; text-align: center; }
.cave-empty p { color: var(--cave-muted); }
.cave-breadcrumb { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; padding: 28px 0 20px; color: var(--cave-muted); }
.cave-page-heading { padding: 14px 0 30px; }
.cave-page-heading h1 { font-size: clamp(32px, 3.8vw, 46px); }
.cave-page-heading p { color: var(--cave-muted); }
.cave-category-help { border-top: 1px solid var(--cave-line); padding-top: 28px; margin-top: 28px; font-size: 14px; color: var(--cave-muted); }
.cave-category-help h2 { color: var(--cave-ink); }
.cave-guides { margin: 0 0 60px; }
.cave-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cave-guide-grid article { border-top: 3px solid #57b4dd; background: white; padding: 28px; }
.cave-guide-grid article > span { font-size: 12px; color: var(--cave-muted); }
.cave-guide-grid h3 { margin-top: 12px; }
.cave-guide-grid h3 a { color: var(--cave-ink); text-decoration: none; }
.cave-guide-grid p { font-size: 14px; color: var(--cave-muted); }
.cave-help { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; border-top: 1px solid var(--cave-line); padding: 44px 0 60px; }
.cave-help > div > p { font-size: 14px; color: var(--cave-muted); max-width: 52ch; }
.cave-help > div > a { font-size: 13px; }
.cave-faq details { border-bottom: 1px solid var(--cave-line); padding: 16px 0; }
.cave-faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.cave-faq details p { font-size: 13px; color: var(--cave-muted); margin: 12px 0 0; }
.cave-footer { background: #183348; color: #c6d9e5; font: 13px/1.7 var(--mc-font-body); padding-top: 42px; }
.cave-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.cave-footer strong { display: block; color: white; margin-bottom: 12px; }
.cave-footer p { margin-bottom: 12px; }
.cave-footer small { display: block; max-width: 34ch; font-size: 12px; }
.cave-footer nav a { display: block; color: #c6d9e5; text-decoration: none; padding: 3px 0; }
.cave-footer nav a:hover { color: white; text-decoration: underline; }
.cave-footer-bottom { border-top: 1px solid #365064; margin-top: 34px; padding: 18px 0; font-size: 12px; }
.copy-notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: #183348; color: white; border-radius: 0; padding: 12px 20px; font-size: 13px; z-index: 100; }
.copy-notice:empty { display: none; }
.cave-preview-notice { background: #fff0df; color: #724517; text-align: center; padding: 8px 16px; font: 12px/1.5 var(--mc-font-body); }
@media (max-width: 1000px) {
    .cave-hero-grid { gap: 32px; }
    .cave-nav { gap: 16px; }
    .cave-brand { font-size: 21px; }
    .cave-header-inner { gap: 20px; }
    .cave-directory { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
    .cave-container { width: calc(100% - 32px); }
    .cave-header-inner { flex-wrap: wrap; justify-content: space-between; padding: 16px 0 12px; gap: 16px; }
    .cave-header-inner > .cave-button { font-size: 12px; padding: 8px 12px; }
    .cave-nav { order: 3; margin: 0; width: 100%; justify-content: space-between; gap: 12px; }
    .cave-nav a { font-size: 13px; padding: 4px 0; }
    .cave-hero-grid { grid-template-columns: 1fr; padding: 34px 0; gap: 28px; }
    .cave-hero-copy > p { font-size: 16px; }
    .cave-hero-world { max-width: 460px; }
    .cave-world-art { max-height: 180px; object-fit: cover; }
    .cave-directory { grid-template-columns: 1fr; gap: 24px; }
    .cave-filter-form { padding: 20px; }
    .cave-filter-disclosure > summary { display: list-item; list-style-position: inside; cursor: pointer; background: white; border: 1px solid var(--cave-line); border-radius: 0; padding: 14px 18px; font-size: 14px; font-weight: 700; }
    .cave-filter-disclosure > summary span { display: block; margin: 4px 0 0 16px; color: var(--cave-muted); font-size: 12px; font-weight: 400; }
    .cave-filter-disclosure[open] > summary { margin-bottom: 10px; }
    .cave-filter-form > input, .cave-filter-form > select { height: 44px; font-size: 16px; }
    .cave-owner-note { display: none; }
    .cave-results-heading { align-items: start; }
    .cave-results-heading > a { max-width: 100px; text-align: right; font-size: 12px; }
    .cave-results-heading h2 { font-size: 23px; }
    .cave-server-card { padding: 11px 12px; }
    .cave-card-top { gap: 8px; align-items: start; }
    .cave-server-title h3 { font-size: 20px; }
    .cave-copy { min-height: 44px; }
    .cave-player-count { width: 88px; }
    .cave-player-count strong { font-size: 22px; }
    .cave-player-count span, .cave-player-count small { font-size: 12px; }
    .cave-server-summary { -webkit-line-clamp: 2; }
    .cave-card-bottom { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
    .cave-details-link { grid-column: 2; justify-self: end; }
    .cave-server-address code { font-size: 13px; }
    .cave-hero-actions { flex-wrap: wrap; }
    .cave-help, .cave-guide-grid { grid-template-columns: 1fr; gap: 24px; }
    .cave-section-heading { align-items: start; }
    .cave-section-heading h2 { font-size: 23px; }
    .cave-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cave-footer-grid > div { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .directory-page * { scroll-behavior: auto !important; transition: none !important; } }
.cave-activity { background: #183348; color: #edf5fa; border: 1px solid #365064; border-radius: 0; padding: 24px; margin-bottom: 24px; }
.cave-activity h2 { color: white; font-size: 23px; margin-bottom: 8px; }
.cave-activity p { color: #c6d9e5; font-size: 13px; }
.cave-activity dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0 0; }
.cave-activity dt { font-size: 12px; font-weight: 400; color: #c6d9e5; }
.cave-activity dd { font-size: 22px; font-weight: 700; margin: 8px 0 0; }
@media (max-width: 760px) { .cave-activity dl { grid-template-columns: 1fr 1fr; } }
