/* Style 6 notice and agreement pages: compact mobile reading layout. */
@media (max-width: 768px) {
    .page-notice-shared {
        padding-bottom: 28px;
        background: #f5f7fa;
    }

    .page-notice-shared .hero {
        padding: 22px 0 20px;
        background: linear-gradient(135deg, var(--notice-hero-start), var(--notice-hero-mid) 58%, var(--notice-hero-end));
    }

    .page-notice-shared .hero::before,
    .page-notice-shared .hero::after {
        display: none;
    }

    .page-notice-shared .container {
        padding: 0 16px;
    }

    .page-notice-shared .hero-content {
        align-items: flex-start;
        text-align: left;
    }

    .page-notice-shared .hero-badge {
        min-height: 26px;
        padding: 4px 8px;
        border-radius: 5px;
        font-size: 11px;
        line-height: 1.35;
    }

    .page-notice-shared .hero h1 {
        margin-top: 10px;
        font-size: 25px;
        line-height: 1.28;
        letter-spacing: 0;
    }

    .page-notice-shared .hero p {
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.55;
    }

    .page-notice-shared .notice-page-shell {
        width: 100%;
        margin: 0;
        padding: 12px;
    }

    .page-notice-shared .notice-page-shell .content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .page-notice-shared .sidebar {
        width: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .page-notice-shared .tree-drawer {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .page-notice-shared .tree-drawer li,
    .page-notice-shared .tree-drawer li + li {
        min-width: 0;
        margin: 0;
    }

    .page-notice-shared .tree-drawer li a {
        justify-content: center;
        min-height: 38px;
        padding: 0 6px;
        border: 1px solid #e0e5ec;
        border-radius: 6px;
        background: #ffffff;
        color: #4c5a6b;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .page-notice-shared .tree-drawer li a .arrow {
        display: none;
    }

    .page-notice-shared .tree-drawer li a:hover,
    .page-notice-shared .tree-drawer li a.cur {
        border-color: transparent;
        background: linear-gradient(135deg, var(--color-primary) 0%, #ff5a68 100%);
        box-shadow: 0 5px 12px rgba(255, 16, 35, 0.18);
        color: #ffffff;
    }

    .page-notice-shared .details {
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .page-notice-shared .cur-pos {
        gap: 6px;
        padding: 2px 2px 8px;
        color: #8a96a5;
        font-size: 12px;
        line-height: 1.4;
    }

    .page-notice-shared .cur-pos i {
        display: none;
    }

    .page-notice-shared .mgt30 {
        margin-top: 10px;
    }

    .page-notice-shared .notice-list li {
        display: block;
        padding: 14px 12px;
        border: 1px solid #e4e8ee;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(31, 41, 55, 0.035);
    }

    .page-notice-shared .notice-list li + li {
        margin-top: 9px;
    }

    .page-notice-shared .notice-list li:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(31, 41, 55, 0.035);
    }

    .page-notice-shared .notice-list .date {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        width: auto;
        max-width: 100%;
        min-width: 0;
        min-height: 26px;
        margin: 0 0 9px;
        padding: 4px 8px;
        border-radius: 6px;
        background: #fff0f2;
        color: var(--color-primary);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        white-space: nowrap;
    }

    .page-notice-shared .notice-list .date .date-main {
        display: inline;
        min-width: 0;
        font-size: inherit;
        line-height: inherit;
    }

    .page-notice-shared .notice-list .date .year {
        display: inline;
        margin: 0;
        color: #ad7180;
        font-size: 10px;
        line-height: 1.35;
        white-space: nowrap;
    }

    .page-notice-shared .notice-list .text {
        width: 100%;
        min-width: 0;
    }

    .page-notice-shared .notice-list .text h5 {
        display: -webkit-box;
        overflow: hidden;
        color: #202b3a;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-notice-shared .notice-list .text p {
        margin-top: 6px;
        color: #687586;
        font-size: 13px;
        line-height: 1.62;
        -webkit-line-clamp: 2;
        overflow-wrap: anywhere;
    }

    .page-problem .notice-list .text p {
        -webkit-line-clamp: 3;
    }

    .page-notice-shared .notice-list .notice-empty {
        display: block;
        padding: 36px 18px;
        text-align: center;
    }

    .page-notice-shared .pagination {
        justify-content: flex-start;
        overflow-x: auto;
        margin-top: 16px;
        padding: 2px 0;
    }

    .page-notice-shared .pagination ul.pagination {
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .page-notice-shared .agreement-article {
        width: 100%;
        margin-top: 10px;
        padding: 18px 16px 22px;
        border: 1px solid #e4e8ee;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: none;
        color: #4e5b6b;
        font-size: 15px;
        line-height: 1.82;
    }

    .page-notice-shared .agreement-article h1,
    .page-notice-shared .agreement-article h2,
    .page-notice-shared .agreement-article h3,
    .page-notice-shared .agreement-article h4,
    .page-notice-shared .agreement-article h5,
    .page-notice-shared .agreement-article h6 {
        margin: 24px 0 12px;
        color: #202b3a;
        line-height: 1.45;
    }

    .page-notice-shared .agreement-article h1 {
        font-size: 22px;
    }

    .page-notice-shared .agreement-article h2 {
        padding-left: 10px;
        border-left-width: 3px;
        font-size: 19px;
    }

    .page-notice-shared .agreement-article h3 {
        font-size: 17px;
    }

    .page-notice-shared .agreement-article p {
        margin: 0 0 18px;
    }

    .page-notice-shared .agreement-article ul,
    .page-notice-shared .agreement-article ol {
        padding-left: 20px;
    }

    .page-notice-shared .agreement-article table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        border-radius: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .page-notice-shared .agreement-article th,
    .page-notice-shared .agreement-article td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 374px) {
    .page-notice-shared .notice-page-shell {
        padding: 10px;
    }

    .page-notice-shared .tree-drawer li a {
        font-size: 12px;
    }

    .page-notice-shared .notice-list li {
        padding: 12px 10px;
    }

    .page-notice-shared .notice-list .date {
        min-height: 24px;
        padding: 3px 7px;
        font-size: 12px;
    }

    .page-notice-shared .agreement-article {
        padding: 16px 14px 20px;
    }
}
