.wyv-routes {
    --route-ink: #27374d;
    --route-blue: #345487;
    --route-line: #ccd8e8;
    --route-pale: #edf3fa;
    color: var(--route-ink);
    margin: 0 auto 3rem;
}
.wyv-routes h1 { margin: .5em 0 .38em; }
.wyv-routes h2 { margin: 0 0 .4em; }
.wyv-routes :is([id], :target) { scroll-margin-top: 7rem; }
.wyv-routes [hidden] { display: none !important; }
.wyv-routes :is(a, button, select):focus-visible { outline: 3px solid #345487; outline-offset: 3px; }
.wyv-routes-lede { max-width: 68ch; font-size: 1.16em; }
.wyv-route-arrival, .wyv-routes-next {
    border: 1px solid var(--route-line);
    border-radius: .65rem;
    background: var(--route-pale);
    padding: 1rem 1.25rem;
    margin: 1.35rem 0;
}
.wyv-route-arrival a { display: inline-block; margin-inline-start: .4rem; }
.wyv-network { border: 1px solid var(--route-line); border-radius: .75rem; overflow: hidden; margin: 1.5rem 0 2.5rem; }
.wyv-network-heading, .wyv-network-links { padding: 1rem 1.25rem; margin: 0; }
.wyv-network-heading p { margin: 0; }
.wyv-network-frame { border: 0; display: block; width: 100%; height: 54rem; background: #f7f5ed; }
.wyv-network-links, .wyv-route-links { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; align-items: center; }
.wyv-route-links { margin: 1rem 0; }
.wyv-route-controls { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem 1.3rem; margin: 1rem 0 .55rem; justify-content: space-between; }
.wyv-route-controls label { margin: 0; }
.wyv-route-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.wyv-route-filters button, .wyv-route-controls select {
    color: var(--route-ink); background: white; border: 1px solid #889cb7;
    border-radius: .4rem; font: inherit; min-height: 44px; padding: .45rem .75rem;
}
.wyv-route-filters button[aria-pressed="true"], .wyv-route-primary {
    background: var(--route-blue); border-color: var(--route-blue); color: white;
}
.wyv-route-primary { display: inline-block; text-decoration: none; padding: .625rem .85rem; border-radius: .4rem; font-weight: 700; }
.wyv-route-primary:hover, .wyv-route-primary:focus { color: white; background: #273f68; text-decoration: underline; }
.wyv-route-count { color: #526177; margin: .55rem 0 .75rem; }
.wyv-route-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: white; }
.wyv-route-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wyv-route-table :is(th, td) { padding: .85rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--route-line); }
.wyv-route-table thead th { background: var(--route-pale); }
.wyv-route-table thead th:first-child { width: 53%; }
.wyv-route-table thead th:last-child { width: 12%; }
.wyv-route-table tbody tr:nth-child(even) { background: #f8fafc; }
.wyv-route-table tbody tr.is-selected { background: #e8f0fb; }
.wyv-route-title { font-size: 1.08em; }
.wyv-route-table small { display: block; margin: .1rem 0; color: #526177; font-weight: 400; }
.wyv-route-row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; font-size: .92em; font-weight: 400; }
.wyv-route-row-links :is(a,button) { display: inline-flex; align-items: center; min-height: 40px; }
.wyv-route-row-links button { color: var(--route-blue); background: transparent; padding: 0; border: 0; text-decoration: underline; font: inherit; }
.wyv-routes-next { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; align-items: center; justify-content: space-between; }
.wyv-routes-next p { margin: 0; }
.wyv-route-background summary { color: var(--route-blue); cursor: pointer; padding: .5rem 0; }
.wyv-route-background > div { margin-top: 1rem; }
.wyv-journey { display: flex; flex-wrap: wrap; align-items: start; gap: 1.2rem; border: 1px solid var(--route-line); border-radius: .65rem; padding: 1.25rem; margin: 1rem 0; }
.wyv-journey > div { flex: 2 1 320px; min-width: 0; }
.wyv-journey > img { flex: 1 1 230px; width: 100%; max-width: 410px; border-radius: .4rem; object-fit: cover; }
.wyv-route-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; margin: 1rem 0; }
.wyv-route-stats > div { background: var(--route-pale); padding: .6rem; border-radius: .4rem; }
.wyv-route-stats dt { font-size: .92em; }
.wyv-route-stats dd { font-size: 1.15em; font-weight: 700; margin: 0; }
.wyv-route-notes { margin: 2rem 0; }
@media (max-width: 700px) {
    .wyv-network-frame { height: 90rem; }
    .wyv-network-heading, .wyv-network-links { padding: .75rem; }
    .wyv-route-table :is(th,td) { padding: .65rem .3rem; font-size: .93em; overflow-wrap: anywhere; }
    .wyv-route-table thead th:first-child { width: 48%; }
    .wyv-route-table thead th:last-child { width: 14%; }
    .wyv-route-stats > div { padding: .45rem; }
    .wyv-journey { padding: .85rem; }
}

.wyv-journey-hero, .wyv-journey-story { display: grid; gap: clamp(1rem, 3vw, 2.25rem); align-items: start; }
.wyv-journey-hero { grid-template-columns: minmax(0, 1.55fr) minmax(0,1fr); }
.wyv-journey-hero.wyv-journey-hero-text { grid-template-columns: minmax(0,1fr); max-width: 52rem; }
.wyv-journey-story { grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); }
.wyv-journey-hero { margin: 1rem 0; }
.wyv-journey-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 0 0 .25em; }
.wyv-journey-direction { margin: 0 0 .5rem; color: var(--route-blue); font-weight: 700; }
.wyv-journey-hero figure { margin: 0; }
.wyv-journey-hero img, .wyv-journey-booking img { display: block; width: 100%; border-radius: .6rem; }
.wyv-journey-hero img { aspect-ratio: 2 / 1; object-fit: cover; }
.wyv-routes-detail .wyv-network { margin: 1rem 0 1.5rem; }
.wyv-routes-detail .wyv-route-arrival { margin: 1rem 0; padding-block: .75rem; }
.wyv-journey-hero figcaption { font-size: .9em; margin-top: .4rem; color: #526177; }
.wyv-journey-frame { display: block; width: 100%; height: 52rem; background: #f7f5ed; border: 0; }
.wyv-journey-story > div > section { margin: 0 0 1.25rem; }
.wyv-journey-story > div > section + section { border-top: 1px solid var(--route-line); padding-top: 1rem; }
.wyv-journey-story .waypoint { padding: .6rem 0; }
.wyv-journey-story .waypoint + .waypoint { border-top: 1px solid var(--route-line); }
.wyv-journey-story .waypoint p, .wyv-journey-booking > :last-child { margin-bottom: 0; }
.wyv-journey-story .wyv-route-notes .wyvern-route-reading { margin-bottom: .75rem; }
.wyv-journey-story .wyv-route-notes .wyvern-route-reading :is(h2,h3,h4) { margin: .85rem 0 .4rem; }
.wyv-journey-story h3 { font-size: 1.15em; margin: 0 0 .35rem; }
.wyv-journey-booking { padding: 1.25rem; border: 1px solid var(--route-line); background: var(--route-pale); border-radius: .65rem; }
.wyv-journey-booking details { margin-bottom: 1.3rem; }
.wyv-journey-booking summary { cursor: pointer; font-weight: 700; }
.wyv-journey-booking details img { margin: .6rem 0; }
@media (max-width: 700px) {
    .wyv-journey-hero, .wyv-journey-story { grid-template-columns: minmax(0,1fr); gap: 1rem; }
    .wyv-journey-frame { height: 75rem; }
    .wyv-journey-hero h1 { font-size: clamp(2rem, 8vw, 2.55rem); }
    .wyv-journey-booking { padding: 1rem; }
}

.wyv-route-table thead th:first-child { width: 37%; }
.wyv-route-table thead .wyv-route-explore { width: 23%; }
.wyv-route-table tbody th { position: relative; padding-inline-start: 3rem; }
.wyv-route-number { position: absolute; top: .85rem; left: .75rem; background: var(--route-pale); color: var(--route-blue); padding: .15rem .35rem; border-radius: .3rem; font-size: .85em; }
.wyv-route-mobile-actions { display: none; }
@media (max-width: 700px) {
    .wyv-route-table thead th:first-child { width: 48%; }
    .wyv-route-table tbody th { padding-inline-start: .3rem; }
    .wyv-route-table .wyv-route-explore, .wyv-route-number { display: none; }
    .wyv-route-mobile-actions { display: flex; }
}
