/* YourBus Korea unified layout - no external framework */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.yb-site {
    margin: 0;
    color: #1d2833;
    background: #ffffff;
    font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.yb-container {
    width: calc(100% - 32px);
    max-width: 1200px;
    margin: 0 auto;
}

.yb-skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 9999;
    padding: 10px 14px;
    background: #ffffff;
    border: 2px solid #17365d;
}

.yb-skip-link:focus {
    top: 16px;
}

.yb-topbar {
    background: #17365d;
    color: #ffffff;
    font-size: 13px;
}

.yb-topbar-inner,
.yb-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yb-topbar-inner {
    min-height: 36px;
    gap: 20px;
}

.yb-top-links {
    display: flex;
    gap: 18px;
}

.yb-top-links a {
    text-decoration: none;
}

.yb-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #dde4ea;
    background: #ffffff;
}

.yb-header-main {
    min-height: 82px;
    gap: 22px;
}

.yb-brand {
    flex: 0 0 auto;
    text-decoration: none;
    line-height: 1.1;
}

.yb-brand-main {
    display: block;
    color: #17365d;
    font-size: 23px;
    font-weight: 800;
}

.yb-brand-sub {
    display: block;
    margin-top: 5px;
    color: #6b7785;
    font-size: 11px;
    letter-spacing: .14em;
}

.yb-nav {
    flex: 1 1 auto;
}

.yb-menu,
.yb-submenu,
.yb-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yb-menu {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.yb-menu-item {
    position: relative;
}

.yb-menu-item > a {
    display: block;
    padding: 28px 11px;
    color: #263746;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.yb-menu-item.is-active > a,
.yb-menu-item > a:hover,
.yb-menu-item > a:focus {
    color: #0b5cab;
}

.yb-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 245px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d9e1e8;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(20, 40, 60, .15);
}

.yb-menu-item:hover > .yb-submenu,
.yb-menu-item:focus-within > .yb-submenu {
    display: block;
}

.yb-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #334556;
    font-size: 14px;
    text-decoration: none;
}

.yb-submenu a:hover,
.yb-submenu a:focus {
    background: #f1f6fa;
    color: #0b5cab;
}

.yb-nav-toggle,
.yb-submenu-toggle {
    display: none;
}

.yb-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yb-language-switch {
    display: flex;
    gap: 5px;
    font-size: 13px;
}

.yb-language-switch a {
    color: #687786;
    text-decoration: none;
}

.yb-language-switch .is-current {
    color: #17365d;
    font-weight: 800;
}

.yb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
}

.yb-button-primary {
    background: #0b5cab;
    color: #ffffff;
}

.yb-button-primary:hover,
.yb-button-primary:focus {
    background: #084b8d;
}

.yb-main {
    min-height: 420px;
}

.yb-page-hero {
    padding: 58px 0;
    background: #f3f7fa;
    border-bottom: 1px solid #e0e7ed;
}

.yb-page-hero h1 {
    margin: 0 0 14px;
    color: #17365d;
    font-size: 38px;
    line-height: 1.25;
}

.yb-page-hero p {
    max-width: 760px;
    margin: 0;
    color: #536576;
    font-size: 18px;
}

.yb-content-section {
    padding: 52px 0;
}

.yb-content-section h2,
.yb-related h2 {
    margin: 0 0 22px;
    color: #17365d;
    font-size: 28px;
}

.yb-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.yb-card {
    padding: 24px;
    border: 1px solid #dbe3e9;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 55, 75, .06);
}

.yb-card h3 {
    margin: 0 0 10px;
    color: #17365d;
}

.yb-related {
    padding: 44px 0;
    background: #f5f8fa;
    border-top: 1px solid #e0e6eb;
}

.yb-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.yb-related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 18px;
    border: 1px solid #d8e1e8;
    border-radius: 10px;
    background: #ffffff;
    color: #17365d;
    text-decoration: none;
}

.yb-related-card:hover,
.yb-related-card:focus {
    border-color: #0b5cab;
    box-shadow: 0 8px 20px rgba(11, 92, 171, .12);
}

.yb-footer {
    background: #152c42;
    color: #dbe5ee;
}

.yb-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 32px;
    padding-top: 52px;
    padding-bottom: 42px;
}

.yb-footer-brand strong {
    color: #ffffff;
    font-size: 23px;
}

.yb-footer-brand p {
    margin: 12px 0 0;
    color: #c2cfda;
    font-size: 14px;
}

.yb-footer a {
    color: #dbe5ee;
    text-decoration: none;
}

.yb-footer a:hover,
.yb-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.yb-footer-column h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 15px;
}

.yb-footer-column li {
    margin: 8px 0;
    font-size: 14px;
}

.yb-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #aebdca;
    font-size: 13px;
}

.yb-mobile-actions {
    display: none;
}

@media (max-width: 1100px) {
    .yb-header-main {
        flex-wrap: wrap;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .yb-nav {
        order: 3;
        flex-basis: 100%;
    }

    .yb-menu {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .yb-menu-item > a {
        padding-top: 13px;
        padding-bottom: 13px;
    }
}

@media (max-width: 760px) {
    body.yb-site {
        padding-bottom: 58px;
    }

    .yb-topbar {
        display: none;
    }

    .yb-header-main {
        min-height: 66px;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .yb-brand-main {
        font-size: 19px;
    }

    .yb-brand-sub,
    .yb-header-quote,
    .yb-language-switch {
        display: none;
    }

    .yb-nav {
        order: initial;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .yb-nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 12px;
        border: 1px solid #cfd9e1;
        border-radius: 7px;
        background: #ffffff;
        color: #17365d;
        font-weight: 700;
    }

    .yb-nav-toggle-bars,
    .yb-nav-toggle-bars:before,
    .yb-nav-toggle-bars:after {
        display: block;
        width: 18px;
        height: 2px;
        background: #17365d;
        content: "";
    }

    .yb-nav-toggle-bars {
        position: relative;
    }

    .yb-nav-toggle-bars:before {
        position: absolute;
        top: -6px;
    }

    .yb-nav-toggle-bars:after {
        position: absolute;
        top: 6px;
    }

    .yb-menu {
        display: none;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        padding: 10px 16px 20px;
        background: #ffffff;
        border-top: 1px solid #dce4ea;
        box-shadow: 0 12px 30px rgba(20,40,60,.14);
    }

    .yb-menu.is-open {
        display: block;
    }

    .yb-menu-item {
        border-bottom: 1px solid #e5ebf0;
    }

    .yb-menu-item > a {
        padding: 14px 38px 14px 4px;
    }

    .yb-submenu-toggle {
        display: block;
        position: absolute;
        top: 8px;
        right: 0;
        width: 34px;
        height: 34px;
        border: 0;
        background: #eef4f8;
        border-radius: 6px;
        color: #17365d;
        font-size: 20px;
    }

    .yb-submenu {
        display: none !important;
        position: static;
        width: auto;
        padding: 0 0 12px 12px;
        border: 0;
        box-shadow: none;
    }

    .yb-menu-item.submenu-open > .yb-submenu {
        display: block !important;
    }

    .yb-page-hero {
        padding: 38px 0;
    }

    .yb-page-hero h1 {
        font-size: 29px;
    }

    .yb-page-hero p {
        font-size: 16px;
    }

    .yb-card-grid,
    .yb-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yb-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .yb-footer-brand {
        grid-column: 1 / -1;
    }

    .yb-mobile-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        z-index: 500;
        left: 0;
        right: 0;
        bottom: 0;
        height: 58px;
        box-shadow: 0 -5px 18px rgba(20,40,60,.18);
    }

    .yb-mobile-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background: #1f7a56;
        font-weight: 800;
        text-decoration: none;
    }

    .yb-mobile-actions a + a {
        background: #0b5cab;
    }
}

@media (max-width: 480px) {
    .yb-container {
        width: calc(100% - 24px);
    }

    .yb-card-grid,
    .yb-related-grid {
        grid-template-columns: 1fr;
    }

    .yb-footer-grid {
        grid-template-columns: 1fr;
    }

    .yb-footer-brand {
        grid-column: auto;
    }
}
