@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --bg: #f5f7fb;
    --white: #fff;
    --ink: #1e3042;
    --muted: #788b9c;
    --line: #dfe7ee;
    --blue: #328bc4;
    --blue-light: #e8f3fa
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Poppins, sans-serif;
    display: flex;
    flex-direction: column;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none
}

.site-header {
    height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10
}

.site-header {
    justify-content: center;
}

.directory-page {
    max-width: 750px;
    width: 100%;
    min-width: 0;
    flex: 1;
    margin: 0 auto
}

.station-section {
    padding-top: 42px;
}

.section-heading {
    justify-content: center;
    text-align: center;
}

.section-heading h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.7px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    margin-bottom: 16px;
    padding: 0 13px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
}

.search-box input::placeholder {
    color: var(--muted);
}

.station-list {
    width: 100%;
    min-width: 0;
    gap: 10px;
}

.station-row {
    min-height: 82px;
    min-width: 0;
    padding: 14px;
    gap: 15px;
}

.station-row img {
    width: 64px;
    height: 64px;
}

.station-copy {
    gap: 3px;
}

.station-copy strong {
    font-size: 14px;
}

.station-copy small,
.station-copy em {
    font-size: 10px;
}

.station-row>i {
    font-size: 14px;
}

.message.error {
    width: 100%;
    text-align: center;
}

.logo {
    height: 30px;
}

.station-section {
    padding: 28px 18px 70px
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 14px
}

.section-heading h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 600
}

.section-heading span {
    color: var(--muted);
    font-size: 10px
}

.station-list {
    display: grid;
    min-width: 0;
    gap: 8px
}

.station-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--white);
    transition: background .15s, border-color .15s
}

.station-row:hover {
    border-color: #a9d1e6;
    background: var(--blue-light)
}

.station-row img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    background: var(--blue-light)
}

.station-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px
}

.station-copy strong,
.station-copy small,
.station-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.station-copy strong {
    font-size: 13px;
    font-weight: 600
}

.station-copy small,
.station-copy em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal
}

.station-copy em {
    color: var(--blue)
}

.station-row>i {
    padding: 8px;
    color: var(--blue);
    font-size: 12px
}

.message {
    padding: 40px 10px;
    color: var(--muted);
    text-align: center;
    font-size: 12px
}

.message i {
    margin-right: 6px;
    color: var(--blue)
}

.error {
    color: #b65b5b
}

@media(min-width:700px) {
    .site-header {
        padding: 0 28px
    }

    .directory-intro,
    .station-section {
        padding-right: 28px;
        padding-left: 28px
    }

    .station-section {
        padding-right: 0;
        padding-left: 0;
    }

    .station-list {
        grid-template-columns: repeat(2, 1fr)
    }
}

.section-heading {
    justify-content: center;
    text-align: center
}

.station-list>.message {
    width: 100%;
    grid-column: 1 / -1;
    text-align: center
}

.submit-section {
    margin: 0 18px 36px;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--white)
}

@media(min-width:700px) {
    .submit-section {
        margin-right: 0;
        margin-left: 0;
    }
}

.submit-section h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600
}

.submit-section p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7
}

.submit-section a {
    color: var(--blue);
    font-weight: 600
}

.submit-section pre {
    margin: 16px 0 0;
    padding: 12px;
    overflow-x: auto;
    background: var(--bg);
    color: var(--ink);
    font: 11px monospace
}

.legal-page {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 28px 18px 70px;
}

.legal-section {
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--white)
}

.legal-section h1 {
    margin: 0 0 22px;
    font-size: 26px;
    font-weight: 600;
}

.legal-section h2 {
    margin: 24px 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.legal-section h2:first-of-type {
    margin-top: 0;
}

.legal-section p,
.legal-section address {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.8
}

.legal-section a {
    color: var(--blue);
    font-weight: 600
}

.legal-section ul {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8
}

@media(min-width:700px) {
    .legal-page {
        padding-right: 0;
        padding-left: 0;
    }
}

/* Readable directory text */
.station-copy strong {
    font-size: 16px
}

.station-copy small,
.station-copy em {
    font-size: 11px
}

.submit-section h2 {
    font-size: 21px
}

.submit-section p {
    font-size: 13px;
    line-height: 1.8
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 24px 18px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px
}

.site-footer a:hover {
    color: var(--blue)
}

@media (max-width: 900px) {
    .site-footer {
        flex-direction: column;
        text-align: center
    }
}