@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/inter.woff2') format('woff2'); }
@font-face { font-family: InterFallback; src: local('Arial'); ascent-override: 90.20%; descent-override: 22.48%; line-gap-override: 0%; size-adjust: 107.40%; }
:root { font-family: Inter, InterFallback; line-height: 1.5; color: #707070; font-synthesis: none; --gold: #e2a820; --red: #d62020; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg,#f4f1db,#f8f6e2) no-repeat fixed; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button,a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible { outline: 3px solid #9b6912; outline-offset: 3px; }
h1,h2,p { margin: 0; }
.wrap { width: 100%; margin: 0 auto; }
.skip-link { position: absolute; top: -100px; z-index: 3; background: white; padding: 14px; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#recheck:focus { position: fixed; top: 0; left: 0; width: auto; height: auto; clip-path: none; padding: 10px; background: white; z-index: 5; }
.header { height: 143px; background: url('assets/header-mobile.webp') center / 100% 100% no-repeat; }
.header-inner { display: flex; flex-direction: column; }
h1 { display: flex; justify-content: center; }
.logo { mix-blend-mode: screen; display: block; width: 200px; height: 70px; margin: 20px 0; }
.header-actions { display: flex; justify-content: space-between; padding: 0 20px; color: white; }
.header-actions>div { display: flex; }
.header-actions button { display: flex; align-items: center; gap: 4px; line-height: 24px; }
#bookmark { margin-right: 20px; }
main { display: flex; flex-direction: column; }
.route-grid { display: flex; flex-direction: column; margin: 12px; padding: 24px 16px 8px; gap: 16px; border: 1px solid white; border-radius: 8px; background: #ffffff99; backdrop-filter: blur(30px); }
.route-card { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border: 1px solid #e5e7eb; border-radius: 23px; background: white; font-size: 14px; line-height: 20px; }
.route-card.best { border: 2px solid var(--red); }
.route-name { display: flex; align-items: center; white-space: nowrap; }
.route-status { display: flex; align-items: center; }
.latency { margin-right: 8px; white-space: nowrap; }
.route-status::after,.route-name::before { content: ''; width: 25px; height: 25px; flex-shrink: 0; background-color: var(--gold); mask: url('assets/chevron.svg') center / contain no-repeat; }
.route-name::before { display: none; }
.best .route-status::after { background-color: var(--red); }
.notice { order: -1; height: 35px; flex-shrink: 0; display: flex; align-items: center; overflow: hidden; font-size: 14px; white-space: nowrap; }
.notice-track { display: flex; align-items: center; width: max-content; animation: ticker 28s linear infinite; }
.notice-track>a { margin-right: 20px; }
.notice:hover .notice-track,.notice:focus-within .notice-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.category-tabs { display: flex; margin: 0 16px; height: 45px; flex-shrink: 0; background: url('assets/category-bg.webp') center / 100% 100% no-repeat; }
.category-tabs button { width: 25%; font-size: 14px; color: white; position: relative; }
.category-tabs button:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 12px; bottom: 12px; border-right: 1px solid white; }
.category-tabs button[aria-pressed='true'] { background: linear-gradient(180deg,#be8b1e,#d5a743); border-radius: 8px; }
.directory { margin: 0 16px 12px; }
.link-panel { margin-top: 12px; background: #ffffff99; border-radius: 8px; min-width: 0; }
.js .link-panel:not(.active) { display: none; }
.panel-header { display: flex; justify-content: flex-end; }
.panel-header h2 { display: none; }
.more { width: 16.666667%; margin: 8px 0; font-weight: 300; color: #000; text-align: left; white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 2px; font-weight: bold; }
.site-links { display: flex; flex-wrap: wrap; }
.site-links a { width: 25%; display: flex; flex-direction: column; align-items: center; margin: 12px 0; line-height: 24px; font-size: 16px; white-space: nowrap; }
.site-links a:hover { font-weight: bold; }
.site-links img { display: block; width: 25px; height: 25px; flex-shrink: 0; object-fit: contain; }
.empty-state { text-align: center; padding: 24px 12px; }
dialog { color: #707070; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px 24px 24px; max-width: min(580px, calc(100% - 32px)); max-height: 85vh; }
dialog::backdrop { background: #0006; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: -20px; background: white; z-index: 1; }
.dialog-header h2 { font-size: 19px; }
.close-dialog { width: 44px; height: 44px; font-size: 27px; }
#help-text { line-height: 1.9; font-size: 15px; max-width: 420px; margin: 12px 0; }
.primary-button { border-radius: 5px; background: #be8b1e; color: white; min-height: 44px; padding: 10px 16px; }
#all-sites { width: 800px; max-width: calc(100% - 32px); }
#all-site-links h3 { font-size: 17px; border-bottom: 1px solid #e5e7eb; padding-bottom: 9px; margin-top: 24px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: #443a29; color: white; padding: 13px 20px; border-radius: 6px; font-size: 13px; z-index: 10; }
@media (min-width: 640px) { .wrap { max-width: 640px; } }
@media (min-width: 768px) { .wrap { max-width: 768px; } }
@media (min-width: 1024px) {
 .wrap { max-width: 1024px; }
 .header { height: 90px; background-image: url('assets/header-desktop.webp'); }
 .header-inner { flex-direction: row; justify-content: space-between; }
 .logo { margin: 8px 0 8px 40px; }
 .header-actions { align-items: flex-end; }
 .mobile-title { display: none; }
 .route-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 24px 24px 8px; border: 0; background: inherit; backdrop-filter: none; }
 .route-card { flex: 1; min-width: 0; flex-direction: column; align-items: stretch; padding: 0; height: 132px; border-radius: 8px; font-size: 18px; line-height: 28px; }
 .route-card.best { border: 0; }
 .route-name { flex: 1; justify-content: center; }
 .route-name::before { display: block; margin-right: 8px; background-color: #707070; }
 .best .route-name::before { background-color: var(--red); }
 .route-status { justify-content: center; padding: 8px 0; background: var(--gold); color: white; border-radius: 0 0 8px 8px; }
 .best .route-status { background: var(--red); }
 .route-card:hover .route-status { background: #ce940f; }
 .route-card.best:hover .route-status { background: #d63913; }
 .route-status::after { display: none; }
 .notice { order: 0; margin: 0 28px; background: #f7ebcf; border-radius: 8px; }
 .category-tabs { display: none; }
 .directory { display: grid; grid-template-columns: minmax(0,65fr) minmax(0,35fr); gap: 12px; margin: 24px 28px; }
 .link-panel { display: block !important; margin: 0; padding: 20px 28px; }
 .panel-header { justify-content: space-between; }
 .panel-header h2 { display: block; font-size: 22px; font-weight: 900; line-height: 33px; margin-bottom: 12px; }
 .more { width: auto; margin: 0; align-self: flex-start; }
 .site-links a { width: 20%; flex-direction: row; }
 .site-links a span { margin-left: 8px; }
 #news { grid-column: 2; grid-row: 1 / 4; padding: 20px; display: flex !important; flex-direction: column; }
 #news .site-links { flex: 1; }
 #news .site-links a { width: 50%; flex-direction: column; justify-content: center; }
 #news .site-links a span { margin: 0; }
 #all-site-links .site-links a { flex-direction: column; }
 #all-site-links .site-links a span { margin-left: 0; }
}
@media (min-width: 1280px) { .wrap { max-width: 1280px; } }
@media (min-width: 1536px) { .wrap { max-width: 1536px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
