@charset "utf-8";

.bulletin-board,
.bulletin-view {
    --bulletin-ink: #182433;
    --bulletin-muted: #74808e;
    --bulletin-line: #e2e7ec;
    --bulletin-blue: #0c9fd3;
    --bulletin-deep: #11536f;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 54px 20px 80px;
    color: var(--bulletin-ink);
    box-sizing: border-box;
}

.bulletin-board *,
.bulletin-view * {
    box-sizing: border-box;
}

.bulletin-heading {
    margin-bottom: 34px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--bulletin-line);
}

.bulletin-eyebrow {
    margin: 0 0 8px;
    color: var(--bulletin-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}

.bulletin-heading-row,
.bulletin-view-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.bulletin-heading h2,
.bulletin-view-header h2 {
    margin: 0;
    color: var(--bulletin-ink);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.bulletin-heading-row p {
    margin: 10px 0 0;
    color: var(--bulletin-muted);
    font-size: 15px;
}

.bulletin-admin-btn,
.bulletin-view-actions a,
.bulletin-list-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--bulletin-line);
    border-radius: 3px;
    background: #fff;
    color: var(--bulletin-ink);
    font-size: 14px;
    text-decoration: none;
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.bulletin-admin-btn:hover,
.bulletin-view-actions a:hover,
.bulletin-list-btn:hover {
    border-color: var(--bulletin-blue);
    background: var(--bulletin-blue);
    color: #fff;
}

.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bulletin-card {
    position: relative;
    min-width: 0;
}

.bulletin-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bulletin-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 600 / 850;
    border: 1px solid #d9dee4;
    background: #eef2f5;
    box-shadow: 0 10px 30px rgba(21, 42, 61, .09);
}

.bulletin-cover::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.35);
    content: "";
    pointer-events: none;
}

.bulletin-cover img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: right center;
    transform: scale(1.001);
    transition: transform .55s cubic-bezier(.22,.61,.36,1), filter .35s ease;
}

.bulletin-open {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(11, 29, 43, .84);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.bulletin-open b {
    color: #7ed7f5;
    font-size: 19px;
    font-weight: 400;
}

.bulletin-card-link:hover .bulletin-cover img {
    transform: scale(1.045);
}

.bulletin-card-link:hover .bulletin-open,
.bulletin-card-link:focus-visible .bulletin-open {
    opacity: 1;
    transform: translateY(0);
}

.bulletin-card-copy {
    display: block;
    padding-top: 17px;
}

.bulletin-card-copy strong {
    display: block;
    color: var(--bulletin-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: keep-all;
    white-space: normal;
}

.bulletin-card-copy time {
    display: block;
    margin-top: 7px;
    color: var(--bulletin-muted);
    font-size: 13px;
}

.bulletin-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(255,255,255,.1), transparent 45%),
        linear-gradient(160deg, var(--bulletin-deep), #092f42);
    color: #fff;
}

.bulletin-no-image strong {
    font-size: 34px;
    font-weight: 300;
    letter-spacing: .16em;
}

.bulletin-no-image small {
    margin-top: 10px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    letter-spacing: .2em;
}

.bulletin-check {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,.9);
}

.bulletin-empty {
    padding: 90px 20px;
    border: 1px solid var(--bulletin-line);
    background: #fafbfc;
    text-align: center;
}

.bulletin-empty strong {
    font-size: 20px;
}

.bulletin-empty p {
    margin: 10px 0 0;
    color: var(--bulletin-muted);
}

.bulletin-pagination {
    margin-top: 52px;
    text-align: center;
}

.bulletin-pagination .pg_wrap {
    display: inline-block;
}

.bulletin-pagination .pg_page,
.bulletin-pagination .pg_current {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    border: 1px solid var(--bulletin-line);
    background: #fff;
    color: var(--bulletin-muted);
}

.bulletin-pagination .pg_current {
    border-color: var(--bulletin-deep);
    background: var(--bulletin-deep);
    color: #fff;
}

.bulletin-search {
    margin: 30px 0 0;
    padding: 0;
    border: 0;
    text-align: center;
}

.bulletin-search form {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--bulletin-line);
    background: #fff;
}

.bulletin-search select,
.bulletin-search input,
.bulletin-search button {
    height: 44px;
    border: 0;
    background: transparent;
}

.bulletin-search select {
    padding: 0 30px 0 12px;
    border-right: 1px solid var(--bulletin-line);
}

.bulletin-search-input {
    width: min(260px, 45vw);
    padding: 0 14px;
}

.bulletin-search button {
    padding: 0 20px;
    background: var(--bulletin-deep);
    color: #fff;
}

.bulletin-admin-actions {
    display: flex;
    gap: 6px;
    margin-top: 28px;
}

.bulletin-admin-actions button {
    padding: 9px 13px;
    border: 1px solid var(--bulletin-line);
    background: #fff;
}

/* 상세 웹진 */
.bulletin-view-header {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bulletin-line);
}

.bulletin-view-header time {
    display: block;
    margin-top: 10px;
    color: var(--bulletin-muted);
    font-size: 14px;
}

.bulletin-view-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

.bulletin-reader {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 3.5vw, 44px);
    border-radius: 4px;
    outline: none;
    border: 1px solid var(--bulletin-line);
    background: #fff;
}

.bulletin-stage {
    position: relative;
    display: grid;
    min-height: 200px;
    place-items: center;
}

.bulletin-page {
    grid-area: 1 / 1;
    width: 100%;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px) scale(.985);
    transition:
        opacity .55s ease,
        transform .65s cubic-bezier(.22,.61,.36,1),
        visibility 0s linear .65s;
    pointer-events: none;
}

.bulletin-page.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transition-delay: 0s;
    pointer-events: auto;
}

.bulletin-page a {
    display: block;
}

.bulletin-page img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 14px 40px rgba(24,36,51,.14);
}

.bulletin-reader-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 24px;
}

.bulletin-reader-controls button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd5dc;
    border-radius: 50%;
    background: transparent;
    color: var(--bulletin-ink);
    font-size: 20px;
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease;
}

.bulletin-reader-controls button:hover {
    border-color: var(--bulletin-blue);
    background: var(--bulletin-blue);
    color: #fff;
}

.bulletin-page-count {
    min-width: 64px;
    color: var(--bulletin-muted);
    text-align: center;
}

.bulletin-page-count b {
    color: var(--bulletin-ink);
    font-size: 18px;
}

.bulletin-page-count i {
    margin: 0 5px;
    font-style: normal;
}

.bulletin-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.bulletin-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd4db;
    cursor: pointer;
}

.bulletin-dots button.is-active {
    width: 24px;
    border-radius: 10px;
    background: var(--bulletin-blue);
}

.bulletin-description {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--bulletin-line);
    color: #4e5a67;
    font-size: 15px;
    line-height: 1.8;
}

.bulletin-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.bulletin-post-nav a {
    display: block;
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid var(--bulletin-line);
    color: inherit;
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease;
}

.bulletin-post-nav a:hover {
    border-color: #c8d2da;
    background: #f7f9fa;
}

.bulletin-post-nav small {
    display: block;
    margin-bottom: 6px;
    color: var(--bulletin-muted);
}

.bulletin-post-nav strong {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulletin-next-post {
    text-align: right;
}

@media (max-width: 1024px) {
    .bulletin-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bulletin-board,
    .bulletin-view {
        width: 100%;
        padding: 32px 16px 56px;
    }

    .bulletin-heading {
        margin-bottom: 24px;
    }

    .bulletin-heading-row,
    .bulletin-view-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .bulletin-heading h2,
    .bulletin-view-header h2 {
        font-size: 28px;
    }

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

    .bulletin-card-copy {
        padding-top: 12px;
    }

    .bulletin-card-copy strong {
        font-size: 15px;
    }

    .bulletin-open {
        display: none;
    }

    .bulletin-cover {
        box-shadow: 0 7px 20px rgba(21,42,61,.08);
    }

    .bulletin-search form {
        display: grid;
        width: 100%;
        grid-template-columns: 92px 1fr 58px;
    }

    .bulletin-search-input {
        width: 100%;
        min-width: 0;
    }

    .bulletin-search button {
        padding: 0 10px;
    }

    .bulletin-reader {
        margin-right: -16px;
        margin-left: -16px;
        padding: 16px;
        border-radius: 0;
    }

    .bulletin-reader-controls {
        margin-top: 18px;
    }

    .bulletin-post-nav {
        grid-template-columns: 1fr;
    }

    .bulletin-next-post {
        text-align: left;
    }
}

@media (max-width: 390px) {
    .bulletin-grid {
        column-gap: 10px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .bulletin-cover img,
    .bulletin-open,
    .bulletin-page {
        transition: none !important;
    }
}
