/* Page-specific styles split from assets/css/site.css. */

.notice-list,
.faq-list {
    display: grid;
    gap: 8px;
}

.notice-board {
    max-width: 1040px;
    padding-top: 34px;
}

.faq-board {
    max-width: 1040px;
    padding-top: 34px;
}

.notice-board,
.faq-board {
    margin-top: 22px;
    margin-bottom: 58px;
}

.notice-list,
.faq-list {
    display: flex;
    flex-direction: column;
    max-width: 1180px;
    margin-inline: auto;
    padding: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 48px rgba(0, 11, 37, .08);
}

.faq-list {
    counter-reset: faq-item;
    gap: 8px;
    padding: 28px 32px 30px;
}

.notice-board-head,
.faq-board-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 6px 0 34px;
}

.faq-board-head {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 86px;
    margin-bottom: 24px;
    padding: 4px 360px 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.notice-board-head__icon,
.faq-board-head__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff5dc;
    flex: 0 0 auto;
}

.notice-board-head__icon img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.notice-board-head__copy h2,
.faq-board-head__copy h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 600;
}

.notice-board-head__copy p,
.faq-board-head__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.faq-board-head__mark {
    color: var(--primary);
    width: 48px;
    height: 48px;
    font-size: 28px;
    font-weight: 700;
}

.faq-board-head__image {
    position: absolute;
    top: 50%;
    right: -70px;
    width: 580px;
    height: 220px;
    object-fit: contain;
    transform: translate(130px, -50%);
    pointer-events: none;
}

.faq-board-head__copy p {
    white-space: nowrap;
}

.notice-help-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
    padding: 22px 26px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
}

.notice-help-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f1f5f9;
}

.notice-help-card__icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.notice-help-card__copy strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.notice-help-card__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.notice-help-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 22px 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.notice-help-card__link img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transform: translateX(-2px);
}

.notice-help-card__link span {
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
}

.notice-help-card__link:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--ink);
}

.notice-help-card__link:focus,
.notice-help-card__link:focus-visible {
    outline: none;
    box-shadow: none;
}

.notice-board .notice-thread,
.faq-board .faq-item {
    animation: communityDropIn .62s cubic-bezier(.2, .78, .24, 1) both;
}

.notice-board .notice-thread:nth-child(1),
.faq-board .faq-item:nth-child(1) {
    animation-delay: .04s;
}

.notice-board .notice-thread:nth-child(2),
.faq-board .faq-item:nth-child(2) {
    animation-delay: .1s;
}

.notice-board .notice-thread:nth-child(3),
.faq-board .faq-item:nth-child(3) {
    animation-delay: .16s;
}

.notice-board .notice-thread:nth-child(4),
.faq-board .faq-item:nth-child(4) {
    animation-delay: .22s;
}

.notice-board .notice-thread:nth-child(5),
.faq-board .faq-item:nth-child(5) {
    animation-delay: .28s;
}

.notice-board .notice-thread:nth-child(6),
.faq-board .faq-item:nth-child(6) {
    animation-delay: .34s;
}

.notice-board .notice-thread:nth-child(n+7),
.faq-board .faq-item:nth-child(n+7) {
    animation-delay: .4s;
}

@media (prefers-reduced-motion: reduce) {
    .notice-board .notice-thread,
        .faq-board .faq-item {
            animation: none;
        }
}

.notice-thread {
    overflow: hidden;
    border-radius: 8px;
    border-color: #e2e8f0;
    box-shadow: 0 10px 24px rgba(0, 11, 37, .04);
}

.notice-thread summary {
    display: grid;
    grid-template-columns: 94px 1px minmax(0, 1fr) 112px 46px;
    gap: 22px;
    align-items: center;
    min-height: 76px;
    padding: 0 30px;
    cursor: pointer;
    list-style: none;
    background: #fff;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.notice-thread summary::-webkit-details-marker {
    display: none;
}

.notice-thread summary:focus,
.notice-thread summary:focus-visible {
    outline: none;
    box-shadow: none;
}

.notice-thread summary strong {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-thread summary::after {
    content: '';
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 10 16' fill='none'%3E%3Cpath d='M3 4L7 8L3 12' stroke='%23ffb400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center center / 10px 16px no-repeat;
    box-shadow: 0 8px 18px rgba(0, 11, 37, .08);
}

.notice-thread__category {
    position: relative;
    top: 0;
    grid-column: 1;
    grid-row: 1;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    min-height: 26px;
    min-width: 66px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff2c8;
    color: #8a5a00;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.notice-thread summary::before {
    content: '';
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: block;
    width: 1px;
    height: 28px;
    background: #d9dee7;
}

.notice-thread time {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.notice-thread__body {
    min-height: 0;
    margin: 0 28px 24px;
    padding: 18px 22px;
    border: 1px solid #ffd980;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fffaf0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
}

.notice-item h3 {
    margin: 6px 0 8px;
    font-size: 18px;
}

.notice-item p {
    margin: 0;
    color: var(--muted);
}

.notice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notice-meta time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    counter-increment: faq-item;
    border-color: #e2e8f0;
    box-shadow: 0 8px 22px rgba(0, 11, 37, .04);
}

.faq-item summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    min-height: 48px;
    padding: 14px 18px;
    color: var(--ink);
    font-weight: 500;
    list-style: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:focus,
.faq-item summary:focus-visible {
    outline: none;
    box-shadow: none;
}

.faq-item summary::after {
    content: '+';
    justify-self: end;
    color: var(--primary);
    font-weight: 500;
}

.faq-item summary::before {
    content: counter(faq-item, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 7px;
    background: #f3f4f6;
    color: var(--ink);
    font-weight: 600;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item div {
    margin: 0 18px 16px 18px;
    padding: 16px 18px;
    border: 1px solid #ffd980;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fffaf0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.faq-item[open] summary::before {
    background: #fff2c8;
    color: #d18a00;
}

@media (max-width: 900px) {
    .notice-list,
        .faq-list {
            padding: 18px 12px;
        }
    
        .faq-list {
            gap: 8px;
        }
    
        .notice-board-head,
        .faq-board-head {
            grid-template-columns: auto minmax(0, 1fr);
            gap: 12px;
            padding: 2px 0 20px;
        }
    
        .faq-board-head {
            position: relative;
            min-height: 0;
            margin-bottom: 16px;
            padding: 0 112px 16px 0;
        }
    
        .notice-board-head__icon,
        .faq-board-head__mark {
            width: 50px;
            height: 50px;
        }
    
        .faq-board-head__mark {
            width: 38px;
            height: 38px;
            font-size: 23px;
        }
    
        .notice-board-head__icon img {
            width: 44px;
            height: 44px;
        }
    
        .notice-board-head__copy h2,
        .faq-board-head__copy h2 {
            font-size: 16px;
        }
    
        .notice-board-head__copy p,
        .faq-board-head__copy p {
            font-size: 12px;
        }
    
        .faq-board-head__copy p {
            white-space: normal;
            max-width: 250px;
        }
    
        .faq-board-head__image {
            position: absolute;
            top: 50%;
            right: -72px;
            grid-column: auto;
            justify-self: auto;
            width: 250px;
            height: 118px;
            transform: translateY(-50%);
        }
    
        .notice-help-card {
            grid-template-columns: auto minmax(0, 1fr);
            gap: 12px;
            padding: 16px 14px;
        }
    
        .notice-help-card__icon {
            width: 44px;
            height: 44px;
        }
    
        .notice-help-card__icon img {
            width: 34px;
            height: 34px;
        }
    
        .notice-help-card__link {
            grid-column: 1 / -1;
            width: 100%;
        }
    
        .notice-help-card__link img {
            width: 24px;
            height: 24px;
        }
    
        .notice-thread summary {
            grid-template-columns: 56px 1px minmax(0, 1fr) 28px;
            gap: 8px;
            min-height: 62px;
            padding: 10px 12px;
        }
    
        .notice-thread__category {
            grid-column: 1;
            grid-row: 1;
            align-self: center;
            top: 0;
            min-width: 52px;
            min-height: 23px;
            padding: 0 10px;
            font-size: 11px;
        }
    
        .notice-thread summary::before {
            grid-column: 2;
            grid-row: 1;
            align-self: center;
            height: 22px;
        }
    
        .notice-thread summary strong {
            grid-column: 3;
            grid-row: 1;
            font-size: 13px;
        }
    
        .notice-thread time {
            grid-column: 3;
            grid-row: 2;
            align-self: center;
            text-align: left;
            font-size: 12px;
        }
    
        .notice-thread summary::after {
            grid-column: 4;
            grid-row: 1 / span 2;
            width: 28px;
            height: 28px;
        }
    
        .notice-thread__body {
            margin: 0 12px 14px;
            padding: 13px 14px;
            font-size: 13px;
        }
    
        .faq-item summary {
            grid-template-columns: 44px minmax(0, 1fr) 20px;
            gap: 10px;
            padding: 12px;
        }
    
        .faq-item div {
            margin: 0 12px 12px 12px;
            padding: 12px;
            font-size: 13px;
        }
}
