/* app.css */
:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    color: #172033;
    background: #eef3f9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eef3f9;
}

button,
input,
select {
    font: inherit;
}

.page-shell {
    width: min(1480px, calc(100% - 32px));
    margin: 24px auto 48px;
}

.site-header,
.search-panel,
.timetable-sheet,
.notice,
footer {
    background: #ffffff;
    border: 1px solid #c9d5e4;
}

.site-header {
    padding: 24px;
    border-bottom: 6px solid #7f9dc2;
}

.site-header h1 {
    margin: 4px 0 8px;
}

.site-header p {
    margin: 0;
}

.eyebrow {
    color: #526b8c;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.search-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    align-items: end;
}

.search-panel label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #9dacbf;
    border-radius: 4px;
    background: #ffffff;
}

.search-panel select[aria-invalid="true"] {
    border-color: #a63f3f;
    box-shadow: 0 0 0 2px rgb(166 63 63 / 15%);
}

.search-panel button {
    padding: 11px 16px;
    border: 0;
    border-radius: 4px;
    background: #2d5f91;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.search-panel button:hover {
    background: #244f78;
}

.form-error {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    padding: 9px 12px;
    border-left: 4px solid #a63f3f;
    background: #fff4f4;
    color: #7d2525;
    font-weight: 700;
}

.form-error[hidden] {
    display: none;
}

.page-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.page-controls a,
.page-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #73869d;
    border-radius: 4px;
    background: #ffffff;
    color: #274e7b;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.page-controls a:hover,
.page-controls button:hover {
    background: #e8eff7;
}

.timetable-sheet,
.notice {
    margin-top: 16px;
    padding: 20px;
}

.timetable-sheet {
    border-color: #8090a3;
    background: #f5f6f8;
    box-shadow: 0 2px 8px rgb(38 58 82 / 12%);
}

.sheet-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: -20px -20px 0;
    padding: 10px 14px;
    border: 2px solid #24364b;
    background: #8da8ca;
    color: #ffffff;
}

.sheet-heading > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.sheet-heading span {
    padding: 3px 7px;
    background: #ffffff;
    color: #314d70;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.sheet-heading strong {
    font-size: 1.28rem;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgb(0 0 0 / 18%);
}

.sheet-heading p {
    margin: 0;
    padding: 4px 8px;
    border: 1px solid rgb(255 255 255 / 70%);
    background: rgb(255 255 255 / 16%);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    align-items: start;
}

.direction-panel {
    min-width: 0;
    border: 2px solid #273443;
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
}

.route-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 58px;
    border-bottom: 2px solid #273443;
    background: #8da8ca;
    color: #ffffff;
}

.route-header > div:not(.route-arrow) {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 1px;
    padding: 7px 9px;
}

.route-header > div:first-child {
    border-right: 0;
}

.route-header > div:last-child {
    border-left: 0;
    text-align: right;
}

.route-header strong {
    overflow-wrap: anywhere;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 1px 0 rgb(0 0 0 / 18%);
}

.airport-code {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.95;
}

.route-arrow {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #ffffff;
    color: #5f7fa7;
    clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%, 24% 50%);
}

.route-plane {
    --plane-start: -10px;
    --plane-end: 30px;
    display: block;
    font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 1px 0 rgb(255 255 255 / 70%);
    transform: translateX(var(--plane-start));
    animation: route-plane-flight 2.8s ease-in-out infinite;
}

@keyframes route-plane-flight {
    0%, 12% {
        transform: translateX(var(--plane-start));
        opacity: 0.45;
    }

    45%, 55% {
        opacity: 1;
    }

    88%, 100% {
        transform: translateX(var(--plane-end));
        opacity: 0.45;
    }
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: #111820;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

th,
td {
    padding: 4px 5px;
    border: 1px solid #59636e;
    text-align: left;
    vertical-align: middle;
}

th {
    padding-top: 3px;
    padding-bottom: 3px;
    background: #f2f3f4;
    color: #26313d;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4),
th:nth-child(5),
td:nth-child(5) {
    white-space: nowrap;
}

tbody tr:nth-child(even) td {
    background: #fafafa;
}

tbody td:first-child {
    width: 18%;
    background: #dceee8;
    font-size: 0.86rem;
    font-weight: 900;
    text-align: center;
}

tbody tr:nth-child(even) td:first-child {
    background: #d3e8e1;
}

tbody td:nth-child(2) {
    width: 10%;
    color: #34404d;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
}

tbody td:nth-child(3) {
    width: 12%;
    color: #424b55;
    font-size: 0.7rem;
    text-align: center;
}

tbody td:nth-child(4),
tbody td:nth-child(5) {
    width: 22%;
    text-align: center;
}

.note-column,
.note-cell {
    width: 34px;
    min-width: 34px;
    text-align: center;
    white-space: nowrap;
}

.note-ref {
    display: inline-grid;
    width: 1.4em;
    height: 1.4em;
    place-items: center;
    border: 1px solid #9f3d4b;
    border-radius: 50%;
    color: #8f2435;
    background: #fff8f9;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}

.time {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
}

.footnotes {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #8795a5;
    border-left: 5px solid #6f8fb7;
    background: #ffffff;
    font-size: 0.78rem;
}

.footnotes h2 {
    margin: 0 0 7px;
    color: #2b405c;
    font-size: 0.88rem;
}

.footnotes ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
    margin: 0;
    padding-left: 2.1em;
}

.footnotes li {
    padding-left: 0.15em;
}

.footnotes li::marker {
    color: #8f2435;
    font-weight: 900;
}

.footnotes p {
    margin: 8px 0 0;
    color: #596779;
}

.empty {
    text-align: center;
    padding: 24px;
}

.notice-error {
    border-left: 6px solid #a63f3f;
}

.notice h2 {
    margin-top: 0;
}

footer {
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 0.9rem;
    color: #4b596a;
}

footer p {
    margin: 4px 0;
}

code {
    word-break: break-all;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .route-plane {
        animation: none;
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 1050px) {
    .directions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 16px, 1480px);
        margin-top: 8px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .page-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timetable-sheet,
    .notice {
        padding: 10px;
    }

    .sheet-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin: -10px -10px 0;
    }

    .sheet-heading > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .route-header {
        grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    }

    .route-plane {
        --plane-start: -6px;
        --plane-end: 20px;
        font-size: 1.6rem;
    }

    table {
        min-width: 560px;
    }

    .footnotes ol {
        grid-template-columns: 1fr;
    }
}

/* navigation.css */
.site-header {
    position: relative;
}

.site-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #d7e0eb;
}

.site-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #9dacbf;
    border-radius: 4px;
    background: #f7f9fc;
    color: #244f78;
    font-weight: 700;
    text-decoration: none;
}

.site-navigation a:hover {
    border-color: #2d5f91;
    background: #eaf1f9;
}

.site-navigation a[aria-current="page"] {
    border-color: #2d5f91;
    background: #2d5f91;
    color: #ffffff;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d7e0eb;
}

.site-footer nav a {
    color: #244f78;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.site-footer nav a:hover {
    text-decoration-thickness: 2px;
}

nav.page-controls.page-controls-secondary {
    display: none;
}

.route-plane {
    width: 2rem;
    height: 2rem;
    font-size: 0;
    text-shadow: none;
}

.route-plane::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5L21 16z%22/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5L21 16z%22/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(90deg);
    transform-origin: center;
}

.direction-panel tbody tr {
    position: relative;
}

.direction-panel tbody td:first-child {
    position: relative;
    border-left-width: 5px;
    border-left-color: #7d9a90;
    box-shadow: inset 0 0 0 2px rgb(45 77 69 / 10%);
    letter-spacing: 0.025em;
}

.direction-panel tbody tr:has(.note-ref) td:first-child {
    border-left-color: #a83c4c;
    background: #f3ddd9;
    box-shadow: inset 0 0 0 2px rgb(145 44 58 / 12%);
}

.direction-panel tbody tr:has(.note-ref) td:first-child::after {
    content: "NOTE";
    position: absolute;
    top: 2px;
    right: 3px;
    padding: 1px 2px;
    border: 1px solid #a83c4c;
    background: #fff8f7;
    color: #8f2435;
    font-family: Arial, sans-serif;
    font-size: 0.4rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
}

.direction-panel tbody tr:last-child:not(:has(.empty)) td {
    background-color: #e8f0fa;
}

.direction-panel tbody tr:last-child:not(:has(.empty)) td:first-child {
    border-left-color: #4f78aa;
    background-color: #dbe9f8;
    box-shadow: inset 0 0 0 2px rgb(63 102 150 / 14%);
}

.direction-panel tbody tr:last-child:not(:has(.empty)):has(.note-ref) td:first-child {
    border-left-color: #a83c4c;
    background-color: #eadfe8;
}

.direction-panel td.time::before {
    display: block;
    margin-bottom: 2px;
    color: #607086;
    font-family: Arial, sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1;
}

.direction-panel tbody td:nth-child(4).time::before {
    content: "DEP";
}

.direction-panel tbody td:nth-child(5).time::before {
    content: "ARR";
}

.direction-panel tbody tr:hover td {
    background-image: linear-gradient(rgb(109 137 169 / 6%), rgb(109 137 169 / 6%));
}

@media (max-width: 700px) {
    .site-navigation {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 4px;
        margin-top: 12px;
        padding-top: 10px;
    }

    .site-navigation:has(a[href="/connections.php"]) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .site-navigation a {
        justify-content: center;
        min-height: 32px;
        padding: 5px 7px;
        font-size: 0.78rem;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .site-navigation:has(a[href="/connections.php"]) a {
        padding-inline: 4px;
        font-size: 0.72rem;
        white-space: normal;
    }

    .page-controls-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-controls-primary .page-control-secondary {
        display: none;
    }

    nav.page-controls.page-controls-secondary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        justify-content: stretch;
        margin-top: 10px;
    }

    .page-controls-secondary a,
    .page-controls-secondary button {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 0.86rem;
    }

    .page-controls-secondary button {
        min-width: 72px;
    }

    .route-plane {
        width: 1.6rem;
        height: 1.6rem;
    }

    .direction-panel tbody tr:has(.note-ref) td:first-child::after {
        display: none;
    }
}

@media print {
    .site-navigation,
    .site-footer nav,
    nav.page-controls.page-controls-secondary {
        display: none !important;
    }

    .direction-panel tbody tr:hover td {
        background-image: none;
    }
}

/* breadcrumbs.css */
.breadcrumbs {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #5f6875;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 0.4rem;
    color: #8a929d;
}

.breadcrumbs a {
    color: inherit;
}

.breadcrumbs [aria-current="page"] {
    color: #2f3742;
    font-weight: 600;
}

/* metadata.css */
.timetable-sheet {
    display: flex;
    flex-direction: column;
}

.sheet-heading {
    order: 0;
}

.directions-grid {
    order: 1;
}

.footnotes {
    order: 2;
}

.legends {
    order: 3;
}

.data-meta {
    order: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 16px 0 0;
    padding-top: 10px;
    border: 0;
    border-top: 1px solid #c4ceda;
    background: transparent;
    color: #596779;
}

.data-meta > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    padding: 3px 10px;
    border-right: 1px solid #d7dee7;
    background: transparent;
}

.data-meta > div:first-child {
    padding-left: 0;
}

.data-meta > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.data-meta dt {
    color: #65758a;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.data-meta dd {
    min-width: 0;
    margin: 0;
    color: #3f4d5e;
    font-size: 0.72rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.legends {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.legends > div {
    padding: 12px 14px;
    border: 1px solid #b9c5d3;
    background: #fbfcfe;
}

.legends h2 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.legends dl {
    display: grid;
    gap: 5px;
    margin: 0;
}

.legends dl > div {
    display: grid;
    grid-template-columns: minmax(3.5em, auto) 1fr;
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px dotted #c6d0dc;
}

.legends dt {
    font-weight: 800;
}

.legends dd {
    margin: 0;
}

.legends p {
    margin: 9px 0 0;
    color: #596779;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .data-meta,
    .legends {
        grid-template-columns: 1fr;
    }

    .data-meta {
        gap: 3px;
    }

    .data-meta > div,
    .data-meta > div:first-child,
    .data-meta > div:last-child {
        padding: 3px 0;
        border-right: 0;
    }
}

@media print {
    .data-meta {
        border-top-color: #8f9bab;
    }
}

/* summary.css */
.direction-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-bottom: 1px solid #59636e;
    background: #eaf0f7;
}

.direction-summary > div {
    min-width: 0;
    padding: 6px 8px;
    border-right: 1px solid #a8b5c5;
    text-align: center;
}

.direction-summary > div:last-child {
    border-right: 0;
}

.direction-summary dt {
    margin: 0 0 2px;
    color: #607086;
    font-family: Arial, sans-serif;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
}

.direction-summary dd {
    margin: 0;
    color: #1f2d40;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.direction-summary-empty {
    display: block;
    padding: 8px 10px;
    color: #526175;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 760px) {
    .direction-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .direction-summary > div:nth-child(2) {
        border-right: 0;
    }

    .direction-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid #a8b5c5;
    }
}

@media print {
    .direction-summary {
        break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* search-disclosure.css */
.search-disclosure {
    margin-top: 16px;
}

.search-disclosure > summary {
    display: none;
}

.search-disclosure > .search-panel,
.search-disclosure > .route-search {
    margin-top: 0;
}

.search-panel label,
.route-search label {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.search-panel input,
.search-panel select,
.route-search input,
.route-search select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-panel input[type="date"],
.route-search input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    box-sizing: border-box;
}

@media (min-width: 761px) {
    .search-disclosure:not([open]) > .search-panel,
    .search-disclosure:not([open]) > .route-search {
        display: grid;
    }
}

@media (max-width: 760px) {
    .search-disclosure {
        border: 1px solid #aab8c9;
        background: #ffffff;
    }

    .search-disclosure > summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
        align-items: center;
        padding: 12px 14px;
        color: #172033;
        cursor: pointer;
        list-style: none;
    }

    .search-disclosure > summary::-webkit-details-marker {
        display: none;
    }

    .search-disclosure > summary::after {
        content: "＋";
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        color: #274e7b;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .search-disclosure[open] > summary::after {
        content: "−";
    }

    .search-disclosure-primary {
        min-width: 0;
        overflow: hidden;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .search-disclosure-secondary {
        color: #596779;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .search-disclosure-action {
        grid-column: 2;
        grid-row: 1;
        padding-right: 24px;
        color: #274e7b;
        font-size: 0.78rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .search-disclosure[open] > summary {
        border-bottom: 1px solid #d5deea;
    }

    .search-disclosure > .search-panel,
    .search-disclosure > .route-search {
        border: 0;
    }

    .route-search {
        gap: 10px;
        padding: 12px;
    }

    .route-search select,
    .route-search input,
    .route-search button {
        min-height: 42px;
        padding: 8px 10px;
    }

    .route-search label {
        gap: 4px;
    }

    .search-panel {
        gap: 10px;
        padding: 12px;
    }

    .search-panel input,
    .search-panel select,
    .search-panel button {
        min-height: 42px;
    }

    .search-panel input[type="date"],
    .route-search input[type="date"] {
        width: -webkit-fill-available;
        inline-size: -webkit-fill-available;
        max-width: 100%;
        max-inline-size: 100%;
    }
}

/* related-airports.css */
.related-airports {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #aab8c9;
    background: #ffffff;
}

.related-airports h2 {
    margin: 0;
    color: #2b405c;
    font-size: 0.95rem;
}

.related-airports p {
    margin: 5px 0 0;
    color: #596779;
    font-size: 0.78rem;
}

.related-airport-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.related-airport-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #9dacbf;
    border-radius: 3px;
    background: #f7f9fc;
    color: #172033;
    text-decoration: none;
}

.related-airport-link:hover {
    border-color: #2d5f91;
    background: #eaf1f9;
}

.related-airport-link strong {
    min-width: 0;
    font-size: 0.95rem;
}

.related-airport-link span {
    grid-column: 1;
    color: #596779;
    font-size: 0.78rem;
    font-weight: 700;
}

.related-airport-link::after {
    content: "→";
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #274e7b;
    font-size: 1.1rem;
    font-weight: 800;
}

@media (max-width: 760px) {
    .related-airport-links {
        grid-template-columns: 1fr;
    }
}

@media print {
    .related-airports {
        display: none;
    }
}
