@charset "utf-8";

/* =============================================================================
   v3_rd.css — R&D 메뉴 페이지 공용 CSS (신규 테마 ver 3.0)
   261113 김동현 클로드활용 수정: 새로 만듦
   - 쓰는 곳: 연구분야(skin/board/rd01), 기술연구(rd02), 지적재산권(eco_certificates), 학회발표논문(eco_papers)
   - 구성: [1] 공통(틀·변수·글자) → [2] 연구분야 아코디언(.rdf-*) → [3] 기술연구 탭·논문식 내용(.rdt-*) → [4] 지적재산권 사진 카드(.rdc-*) → [5] 학회발표논문 카드 줄(.rdp-*) → [6] 홍보자료 보충(받기 버튼 등) → [7] 탈모 Wiki 표(.rdw-*) → [8] SNS채널 임베드 카드(.rds-*)
   - 글자 체계·색·카드 모양은 메인(css/v3_main.css)·공장(css/v3_factory.css)과 같은 기준. 값은 아래 --rd-* 변수만 고치면 됨
   - 옛 css/content.css 의 .rd-wrap / .rd-list / .dep-3 규칙은 쓰지 않음(이름을 새로 지어 충돌 없음)
   ============================================================================= */

/* 페이지 배경을 메인·서브 상단과 같은 색(#FCFBFA)으로. 이 CSS 는 R&D 페이지에서만 불러옴 */
body {
    background: var(--color-white);
}

/* =============================================================================
   [1] 공통
   ============================================================================= */
.v3rd {
    --rd-point: var(--color-point, #4E8B79);
    --rd-point-hover: var(--color-point-hover, #43856f);
    --rd-deep: var(--color-deep, #1F4D3F);
    --rd-mint: #D3E2DD;
    /* 연한 민트: 열린 카드 테두리·아이콘 칸 */
    --rd-line: #C9DAD3;
    /* 연한 구분선 */
    --rd-border: #C4C4C4;
    /* 카드 테두리 (공장 인증 카드와 같음) */

    /* 글자 체계: 메인과 같은 크기·굵기 (공장 --fx-fs-* 와 같은 값) */
    --rd-fs-title: clamp(24px, 20.5px + 0.4vw, 28px);
    --rd-fs-sub: clamp(20px, 15px + 0.68vw, 24px);
    --rd-fs-card: clamp(18px, 16.3px + 0.19vw, 20px);
    --rd-fs-desc: clamp(15px, 14.4px + 0.14vw, 18px);
    --rd-fs-body: 16px;
    --rd-fs-small: 14px;

    /* 위아래 여백 */
    --rd-gap-section: clamp(72px, 9vw, 128px);
    /* 큰 묶음 사이 */
    --rd-gap-end: clamp(72px, 9vw, 140px);
    /* 맨 아래(푸터와의 간격) */

    color: #333;
    font-size: var(--rd-fs-body);
    line-height: 1.65;
    letter-spacing: -0.01em;
    word-break: keep-all;
    /* 위아래 여백이 "마진" 으로만 되어 있으면 바깥 틀로 새어 나가(겹침) 크기가 어긋나므로 flow-root 로 가둠 */
    display: flow-root;
    padding-bottom: var(--rd-gap-end);
}

/* [너비] 와이드 틀: 메인·공장과 같음. 화면 폭 − 좌우 여백(--header-gap), 최대 1440px.
   바깥 틀(.content_wrap .txtboard)은 옛 값(최대 1200px)이라 left:50% + translateX(-50%) 로 화면 가운데 기준으로 넓힘 */
.v3rd {
    position: relative;
    left: 50%;
    width: min(100vw - var(--header-gap) * 2, var(--content-w));
    transform: translateX(-50%);
}

/* [문단 간격] 새 테마 default.css 는 p 마진을 0 으로 지움(옛 테마엔 없던 규칙) → 문단 사이 간격은 필요한 곳에 직접 줌.
   (여기서 ".v3rd p {margin:0}" 를 또 쓰면 아래 .v3rd-lead 등의 마진을 이겨 버리므로 쓰지 말 것) */

/* 페이지 맨 위 한 줄 소개 (가운데, 920px) */
.v3rd-lead {
    max-width: 920px;
    margin: 0 auto clamp(56px, 7vw, 96px);
    text-align: center;
    font-size: var(--rd-fs-desc);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: var(--color-text-sub, #666);
}

/* 큰 묶음(구역): 제목 + 설명 + 내용 */
.v3rd-group {
    margin-bottom: var(--rd-gap-section);
}

.v3rd-group:last-child {
    margin-bottom: 0;
}

.v3rd-group-title {
    margin: 0 0 20px;
    font-size: var(--rd-fs-title);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #222;
}

/* 묶음 설명 문단 (와이드 틀 안 920px) */
.v3rd-group-desc {
    max-width: 920px;
    margin: 0 0 clamp(28px, 3.5vw, 40px);
    font-size: var(--rd-fs-body);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: #444;
}

/* =============================================================================
   [2] 연구분야(rd01) — 아코디언 카드 목록 (.rdf-*)
   구조: ul.rdf-acc > li.rdf-item > button.rdf-head + div.rdf-panel > div.rdf-panel-in
   열림/닫힘은 js/v3_rd.js 가 li 에 .is-open 을 붙이고 button 의 aria-expanded 를 바꿈
   ============================================================================= */
.rdf-acc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 카드 한 장: 공장 인증 카드 기준(1px #C4C4C4, 16px 모서리, 연한 그림자) */
.rdf-item {
    position: relative;
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 위 6px 띠: 닫혀 있을 땐 연한 민트, 열리면 포인트색 */
.rdf-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: var(--rd-mint);
    transition: background-color 0.3s ease;
}

.rdf-item:hover {
    border-color: var(--rd-mint);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.rdf-item.is-open {
    border-color: var(--rd-mint);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.rdf-item.is-open::before {
    background: var(--rd-point);
}

/* 머리줄: 눌러서 여닫는 버튼 */
.rdf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 28px 28px 22px;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: 0;
}

.rdf-name {
    font-size: var(--rd-fs-card);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #222;
    transition: color 0.3s ease;
}

.rdf-item:hover .rdf-name,
.rdf-item.is-open .rdf-name {
    color: var(--rd-point);
}

/* 오른쪽 화살표: 글꼴 없이 CSS 로 그림. 열리면 위로 뒤집힘 */
.rdf-arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rd-mint);
    position: relative;
    transition: background-color 0.3s ease;
}

.rdf-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--rd-deep);
    border-bottom: 2px solid var(--rd-deep);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.rdf-item.is-open .rdf-arrow {
    background: var(--rd-point);
}

.rdf-item.is-open .rdf-arrow::before {
    border-color: #fff;
    transform: translate(-50%, -30%) rotate(225deg);
}

/* 키보드로 이동했을 때 보이는 테두리 */
.rdf-head:focus-visible {
    outline: 2px solid var(--rd-point);
    outline-offset: -4px;
    border-radius: 16px;
}

/* 펼쳐지는 영역: 높이 0fr → 1fr 로 부드럽게. 닫힌 동안은 visibility 로 숨겨 탭 키가 들어가지 않게 함 */
.rdf-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.35s ease, visibility 0s linear 0.35s;
}

.rdf-item.is-open .rdf-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.35s ease, visibility 0s;
}

.rdf-panel-in {
    min-height: 0;
    overflow: hidden;
}

/* 안쪽 내용: 사진(왼쪽) + 설명(오른쪽). 구분선으로 머리줄과 나눔 */
.rdf-body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 3.5vw, 56px);
    align-items: start;
    margin: 0 28px;
    padding: 28px 0 32px;
    border-top: 1px solid var(--rd-line);
}

.rdf-body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.rdf-text {
    font-size: var(--rd-fs-body);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: #444;
}

/* 한 항목 안 문단이 여러 개면 문단 사이 간격 */
.rdf-text p+p {
    margin-top: 0.9em;
}

/* 임상 데이터: 사진 한 장만 있는 항목은 한 줄로 크게 (원본 966px) */
.rdf-body.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.rdf-body.is-single img {
    max-width: 966px;
    border-radius: 12px;
}

/* ----- 태블릿·모바일 ----- */
@media (max-width: 900px) {
    .rdf-body {
        grid-template-columns: minmax(0, 1fr);
        /* 사진이 위, 설명이 아래 */
    }

    .rdf-body img {
        max-width: 585px;
    }
}

@media (max-width: 600px) {
    .rdf-acc {
        gap: 12px;
    }

    .rdf-head {
        padding: 24px 18px 18px;
    }

    .rdf-arrow {
        width: 32px;
        height: 32px;
    }

    .rdf-body {
        margin: 0 18px;
        padding: 20px 0 24px;
    }
}

/* 움직임을 줄이도록 설정한 사용자는 애니메이션 없이 */
@media (prefers-reduced-motion: reduce) {

    .rdf-panel,
    .rdf-item.is-open .rdf-panel,
    .rdf-item,
    .rdf-arrow,
    .rdf-arrow::before {
        transition: none;
    }
}

/* =============================================================================
   [3] 기술연구(rd02) — 탭 + 논문식 내용 (.rdt-*)
   구조: .rdt-tabs(탭 6개)/.rdt-select(모바일) → section.rdt-panel × 6 → 문단(.rdt-text)·소제목(.rdt-sub/.rdt-item)·그림 카드·표
   탭 전환은 js/v3_rd.js. JS 가 켜지면 .v3rd-tech 에 .is-js 가 붙고, 그때부터 선택된 패널(.is-active)만 보임
   (JS 가 안 켜지면 6개 패널이 위에서 아래로 모두 보임 — 내용은 잃지 않음)
   그림은 원본 크기(작은 사진이 많음)보다 커지지 않게 max-width:100% 만 줌
   ============================================================================= */

/* ----- 탭 (PC·태블릿): 알약형 ----- */
.rdt-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 clamp(40px, 5vw, 64px);
}

.rdt-tab {
    height: 54px;
    padding: 0 12px;
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: var(--rd-fs-body);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #444;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.rdt-tab:hover {
    border-color: var(--rd-point);
    color: var(--rd-point);
}

.rdt-tab[aria-selected="true"] {
    background: var(--rd-point);
    border-color: var(--rd-point);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(78, 139, 121, 0.25);
}

.rdt-tab:focus-visible,
.rdt-select:focus-visible,
.rdt-table-wrap:focus-visible {
    outline: 2px solid var(--rd-point);
    outline-offset: 2px;
}

/* ----- 선택 상자 (모바일 600px 이하에서만 보임) ----- */
.rdt-select-wrap {
    display: none;
    margin: 0 0 40px;
}

.rdt-select {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 18px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231F4D3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
    font-family: inherit;
    font-size: var(--rd-fs-body);
    font-weight: 500;
    color: #222;
    -webkit-appearance: none;
    appearance: none;
}

/* ----- 패널 ----- */
.is-js .rdt-panel {
    display: none;
}

.is-js .rdt-panel.is-active {
    display: block;
    animation: rdt-fade 0.35s ease;
}

@keyframes rdt-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 패널 안 위아래 간격: 직계 자식끼리 28px, 소제목 앞은 넓게, 소제목 바로 뒤는 좁게 */
.rdt-panel>* {
    margin: 0;
}

.rdt-panel>*+* {
    margin-top: 28px;
}

.rdt-panel>.rdt-sub {
    margin-top: clamp(48px, 6vw, 72px);
}

.rdt-panel>.rdt-item {
    margin-top: clamp(36px, 4.5vw, 56px);
}

.rdt-panel>.rdt-sub+*,
.rdt-panel>.rdt-item+* {
    margin-top: 16px;
}

/* ----- 글 ----- */
.rdt-text {
    max-width: 920px;
    font-size: var(--rd-fs-body);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: #444;
    overflow-wrap: anywhere;
}

.rdt-text p+p {
    margin-top: 0.9em;
}

.rdt-text b {
    font-weight: 600;
    color: var(--rd-deep);
}

.rdt-sub {
    padding-left: 14px;
    border-left: 4px solid var(--rd-point);
    font-size: var(--rd-fs-sub);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #222;
}

.rdt-item {
    font-size: var(--rd-fs-card);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--rd-deep);
}

.rdt-item-desc {
    display: inline-block;
    margin-left: 6px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #777;
}

.rdt-legend {
    margin: 0 0 1.2em;
    padding: 0;
    list-style: none;
    color: #666;
}

.rdt-legend li+li {
    margin-top: 0.3em;
}

.rdt-bullets {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rdt-bullets li {
    position: relative;
    padding-left: 18px;
}

.rdt-bullets li+li {
    margin-top: 0.7em;
}

.rdt-bullets li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rd-point);
}

/* ----- 그림 카드 ----- */
.rdt-card {
    /* 위아래 마진은 0 으로 두지 않음: 패널 직계일 때 위 간격(28px)은 ".rdt-panel>*+*" 가 주기 때문(여기서 margin:0 을 쓰면 그 간격이 사라짐).
       figure 의 기본 좌우 마진(40px)만 지우고, 격자 안에서는 아래 ".rdt-grid>.rdt-card" 가 위아래도 0 으로 지움 */
    margin-left: 0;
    margin-right: 0;
    padding: clamp(16px, 2vw, 28px);
    border: 1px solid var(--rd-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.rdt-fig img,
.rdt-cap img,
.rdt-doc-img img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.rdt-fig .rdt-table-wrap {
    margin-top: 16px;
}

/* 사진 + 캡션 */
.rdt-cap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.rdt-cap figcaption,
.rdt-doc-img figcaption {
    font-size: var(--rd-fs-small);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: #555;
}

/* 261113 김동현 클로드활용 수정: 그래프 + 한 줄 설명을 한 카드로(옆에 두면 글이 떠 보임). 카드 폭은 720px 까지만 */
.rdt-cap--note {
    align-items: stretch;
    max-width: 720px;
    text-align: left;
}

.rdt-cap--note figcaption {
    padding-top: 16px;
    border-top: 1px solid var(--rd-line);
    font-size: var(--rd-fs-body);
    line-height: 1.65;
    color: #444;
}

/* 261113 김동현 클로드활용 수정: 큰 그림(DPPH·MTT 도식·RT-PCR 등)이 전체 폭(약 1290px)으로 늘어나던 것을
   읽기용 글 폭 안(최대 720px, 옛 화면의 60% 폭과 비슷, 글과 왼쪽 맞춤)으로 제한 */
.rdt-fig--center {
    max-width: 720px;
}

/* 격자·나란히 배치 안의 카드는 위아래 마진 0 (간격은 격자의 gap 이 줌) */
.rdt-grid>.rdt-card,
.rdt-split>.rdt-card {
    margin-top: 0;
    margin-bottom: 0;
}

.rdt-doc-img {
    margin: 0;
    text-align: center;
}

.rdt-doc-img figcaption {
    margin-top: 10px;
}

/* 시험서 카드: 사진(왼쪽) + 값 표(오른쪽) / --stack 은 사진 위, 표 아래 */
.rdt-doc {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
}

.rdt-doc .rdt-table--kv {
    flex: 1 1 auto;
}

.rdt-doc--stack {
    flex-direction: column;
    align-items: stretch;
}

.rdt-doc-imgs {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 3vw, 40px);
}

/* 가로 나란히 배치 */
.rdt-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 3.5vw, 56px);
    align-items: center;
}

.rdt-grid {
    display: grid;
    gap: clamp(16px, 2vw, 28px);
}

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

.rdt-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rdt-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 정사각 사진 7장 한 줄 */
.rdt-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.rdt-strip img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

/* ----- 표 ----- */
.rdt-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--rd-line);
    border-radius: 12px;
    background: #fff;
}

.rdt-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.rdt-table--sm {
    min-width: 480px;
}

.rdt-table th,
.rdt-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--rd-line);
    font-weight: 400;
    color: #555;
}

.rdt-table thead th {
    background: #EEF4F1;
    font-weight: 600;
    color: var(--rd-deep);
}

.rdt-table tbody th {
    background: #F6F9F8;
    font-weight: 600;
    color: #333;
}

.rdt-table tbody tr:last-child th,
.rdt-table tbody tr:last-child td {
    border-bottom: 0;
}

/* 항목: 값 표 (왼쪽 항목명 칸 + 오른쪽 값). 시험서 카드 안에서 씀 */
.rdt-table--kv {
    min-width: 0;
    border: 1px solid var(--rd-line);
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    text-align: left;
}

.rdt-table--kv th {
    width: 42%;
}

/* ----- 태블릿·모바일 ----- */
@media (max-width: 1100px) {
    .rdt-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rdt-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .rdt-split {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .rdt-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rdt-grid--2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {

    /* 탭 대신 선택 상자 */
    .rdt-tabs {
        display: none;
    }

    .rdt-select-wrap {
        display: block;
    }

    .rdt-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .rdt-grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .rdt-doc {
        flex-direction: column;
        align-items: stretch;
    }

    .rdt-item-desc {
        display: block;
        margin: 4px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .is-js .rdt-panel.is-active {
        animation: none;
    }

    .rdt-tab {
        transition: none;
    }
}

/* =============================================================================
   [4] 지적재산권(eco_certificates) — 사진 카드 목록 (.rdc-*)
   구조: .rdc-bar(분류 알약 + 버튼) → ul.rdc-grid > li.rdc-card(사진 + 제목) → .rdc-admin(관리자) → .rdc-paging
         + 검색 창 .rdc-search (열고 닫기는 js/v3_rd.js)
   카드 모양은 공장 인증 카드와 같은 기준(1px #C4C4C4, 16px, 위 6px 민트 띠, 호버 −8px + 띠 초록)
   ============================================================================= */

/* ----- 위쪽 줄: 분류(왼쪽) + 버튼(오른쪽) ----- */
.rdc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 clamp(28px, 3.5vw, 44px);
}

.rdc-cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rdc-cate li {
    margin: 0;
    padding: 0;
}

.rdc-cate a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #444;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.rdc-cate a:hover {
    border-color: var(--rd-point);
    color: var(--rd-point);
}

.rdc-cate a#bo_cate_on {
    background: var(--rd-point);
    border-color: var(--rd-point);
    color: #fff;
    font-weight: 600;
}

.rdc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* 버튼 (분류 알약과 같은 높이·모양) */
.rdc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.rdc-btn:hover {
    border-color: var(--rd-point);
    color: var(--rd-point);
}

.rdc-btn--point {
    background: var(--rd-point);
    border-color: var(--rd-point);
    color: #fff;
}

.rdc-btn--point:hover {
    background: var(--rd-point-hover);
    border-color: var(--rd-point-hover);
    color: #fff;
}

.rdc-btn--icon {
    width: 44px;
    padding: 0;
}

.rdc-btn:focus-visible,
.rdc-cate a:focus-visible,
.rdc-search-close:focus-visible {
    outline: 2px solid var(--rd-point);
    outline-offset: 2px;
}

/* ----- 카드 목록 ----- */
.rdc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rdc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* 위 6px 띠: 평소엔 연한 민트, 호버하면 포인트색 */
.rdc-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 6px;
    background: var(--rd-mint);
    transition: background-color 0.3s ease;
}

.rdc-card:hover {
    transform: translateY(-8px);
    border-color: var(--rd-mint);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.rdc-card:hover::before {
    background: var(--rd-point);
}

/* 사진 칸: 세로 3:4 종이 모양 칸 안에 사진 전체가 보이게(자르지 않음) */
.rdc-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    margin: 24px 18px 0;
    border-radius: 10px;
    background: #F6F9F8;
    overflow: hidden;
}

.rdc-thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.rdc-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rdc-notice {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--rd-mint);
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-deep);
}

.rdc-noimg {
    font-size: 14px;
    color: #999;
}

/* 제목: 두 줄까지(넘치면 …), 두 줄 높이를 항상 확보해 카드 높이를 맞춤 */
.rdc-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    /* 위아래 간격은 padding 이 아니라 margin 으로: 줄 수 제한(line-clamp)된 요소는 아래 padding 칸으로 3번째 줄이 비쳐 보임 */
    margin: 16px 0 20px;
    padding: 0 18px;
    min-height: calc(2 * 1.45em);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: #333;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

.rdc-card:hover .rdc-title {
    color: var(--rd-point);
}

.rdc-empty {
    margin: 0;
    padding: 80px 0;
    text-align: center;
    font-size: var(--rd-fs-body);
    color: #777;
}

/* 관리자 체크박스 (카드 왼쪽 위) */
.rdc-chk {
    position: absolute;
    left: 14px;
    top: 20px;
    z-index: 3;
}

.rdc-chk input {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--rd-point);
    cursor: pointer;
}

.rdc-chk label span {
    display: none;
}

/* 관리자 도구줄 */
.rdc-admin {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 28px;
}

/* ----- 페이지 번호 (옛 default.css 의 .pg_* 규칙을 이 목록 안에서만 새 모양으로) ----- */
.rdc-paging {
    margin-top: clamp(40px, 5vw, 64px);
    text-align: center;
}

.rdc-paging .pg_wrap {
    display: block;
    float: none;
}

.rdc-paging .pg {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rdc-paging .pg_page,
.rdc-paging .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #444;
    text-indent: 0;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* 이전·다음·맨끝: 옛 화살표 그림 대신 글자로 */
.rdc-paging .pg_start,
.rdc-paging .pg_prev,
.rdc-paging .pg_next,
.rdc-paging .pg_end {
    background-image: none;
    background-color: #fff;
    overflow: visible;
    padding: 0 14px;
}

.rdc-paging a.pg_page:hover {
    border-color: var(--rd-point);
    background: #fff;
    color: var(--rd-point);
}

.rdc-paging .pg_current {
    background: var(--rd-point);
    border-color: var(--rd-point);
    color: #fff;
    font-weight: 600;
}

/* ----- 검색 창 ----- */
/* 검색 창은 화면에 고정(position:fixed)되어야 해서 .v3rd(안쪽 transform 이 fixed 를 깨뜨림) 바깥에 있음
   → .v3rd 에서 정의한 색·글자 변수를 못 읽으므로 여기서 같은 값으로 다시 정의 (안 하면 버튼·테두리가 투명하게 사라짐) */
.rdc-search {
    --rd-point: var(--color-point, #4E8B79);
    --rd-point-hover: var(--color-point-hover, #43856f);
    --rd-border: #C4C4C4;
    --rd-fs-card: clamp(18px, 16.3px + 0.19vw, 20px);
    --rd-fs-body: 16px;

    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.rdc-search[hidden] {
    display: none;
}

.rdc-search-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.rdc-search-box {
    position: relative;
    width: min(100%, 520px);
    padding: 32px 28px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.rdc-search-box h3 {
    margin: 0 0 20px;
    font-size: var(--rd-fs-card);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #222;
}

.rdc-search-sel,
.rdc-search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: var(--rd-fs-body);
    color: #222;
}

.rdc-search-sel {
    margin-bottom: 10px;
}

.rdc-search-row {
    display: flex;
    gap: 8px;
}

.rdc-search-row .rdc-search-input {
    flex: 1 1 auto;
    min-width: 0;
}

.rdc-search-row .rdc-btn {
    height: 48px;
    flex: 0 0 auto;
}

.rdc-search-sel:focus-visible,
.rdc-search-input:focus-visible {
    outline: 2px solid var(--rd-point);
    outline-offset: 1px;
}

.rdc-search-close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

/* ----- 태블릿·모바일 ----- */
@media (max-width: 1100px) {
    .rdc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .rdc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .rdc-thumb {
        margin: 20px 10px 0;
    }

    .rdc-title {
        margin: 12px 0 16px;
        padding: 0 10px;
        min-height: calc(2 * 1.45em);
        font-size: 14px;
    }

    .rdc-cate a {
        height: 40px;
        padding: 0 16px;
    }

    .rdc-btn {
        height: 40px;
    }

    .rdc-btn--icon {
        width: 40px;
    }

    .rdc-paging .pg_page,
    .rdc-paging .pg_current {
        min-width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .rdc-card,
    .rdc-card::before {
        transition: none;
    }

    .rdc-card:hover {
        transform: none;
    }
}

/* =============================================================================
   [5] 학회발표논문(eco_papers) — 논문 카드 한 줄 목록 (.rdp-*)
   구조: ul.rdp-list > li.rdp-item > a.rdp-link( .rdp-thumb + .rdp-body(.rdp-title/.rdp-desc) + .rdp-arrow )
   위쪽 분류·버튼 줄(.rdc-bar), 관리자 도구줄(.rdc-admin), 페이지 번호(.rdc-paging), 체크박스(.rdc-chk)는 [4] 지적재산권과 같은 규칙을 씀
   너비는 3등급 중 ② 읽기용(최대 960px): 줄 목록이라 와이드로 펴면 썸네일 옆이 휑해짐
   ============================================================================= */
.v3rd-papers {
    width: min(100vw - var(--header-gap) * 2, 960px);
}

.rdp-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 카드 한 줄: 공장·지적재산권 카드와 같은 기준(1px #C4C4C4, 16px, 연한 그림자). 가로 줄이라 띠는 위가 아니라 왼쪽에 */
.rdp-item {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.rdp-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--rd-mint);
    transition: background-color 0.3s ease;
}

.rdp-item:hover {
    transform: translateY(-4px);
    border-color: var(--rd-mint);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.rdp-item:hover::before {
    background: var(--rd-point);
}

.rdp-link {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 28px);
    padding: 20px 28px 20px 32px;
    color: inherit;
    text-decoration: none;
}

.rdp-link:focus-visible {
    outline: 2px solid var(--rd-point);
    outline-offset: -4px;
    border-radius: 16px;
}

/* 관리자 체크박스가 있을 땐 왼쪽에 자리를 더 줌 */
.rdp-item.has-chk .rdp-link {
    padding-left: 56px;
}

.rdp-item .rdc-chk {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 썸네일: 게시판 설정의 갤러리 크기(202×150)에 맞춤. 첫 장의 윗부분이 보이게 가득 채움 */
.rdp-thumb {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 202px;
    height: 150px;
    border-radius: 10px;
    background: #F6F9F8;
    overflow: hidden;
}

.rdp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rdp-notice {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--rd-mint);
    font-size: 14px;
    font-weight: 600;
    color: var(--rd-deep);
}

.rdp-noimg {
    font-size: 14px;
    color: #999;
}

.rdp-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 제목: 최대 3줄(넘치면 …). 카드 이름 글자 체계(메인과 같음) */
.rdp-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: var(--rd-fs-card);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #222;
    overflow-wrap: anywhere;
    transition: color 0.3s ease;
}

.rdp-item:hover .rdp-title {
    color: var(--rd-point);
}

/* 설명 글: 있을 때만. 두 줄까지 */
.rdp-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: #666;
}

/* 오른쪽 화살표 (연구분야 아코디언의 둥근 화살표와 같은 모양, 오른쪽 방향) */
.rdp-arrow {
    flex: 0 0 auto;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rd-mint);
    transition: background-color 0.3s ease;
}

.rdp-arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--rd-deep);
    border-bottom: 2px solid var(--rd-deep);
    transform: translate(-70%, -50%) rotate(-45deg);
    transition: border-color 0.3s ease;
}

.rdp-item:hover .rdp-arrow {
    background: var(--rd-point);
}

.rdp-item:hover .rdp-arrow::before {
    border-color: #fff;
}

/* ----- 태블릿·모바일 ----- */
@media (max-width: 700px) {
    .rdp-list {
        gap: 12px;
    }

    .rdp-link {
        gap: 14px;
        padding: 14px 16px 14px 22px;
    }

    .rdp-item.has-chk .rdp-link {
        padding-left: 50px;
    }

    .rdp-item .rdc-chk {
        left: 16px;
    }

    .rdp-thumb {
        width: 120px;
        height: 90px;
        border-radius: 8px;
    }

    .rdp-title {
        font-size: 16px;
    }

    /* 옛 화면도 모바일에선 설명 글을 숨겼음 */
    .rdp-desc {
        display: none;
    }

    .rdp-arrow {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 460px) {
    .rdp-thumb {
        width: 96px;
        height: 72px;
    }

    .rdp-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .rdp-item,
    .rdp-item::before,
    .rdp-arrow {
        transition: none;
    }

    .rdp-item:hover {
        transform: none;
    }
}

/* =============================================================================
   [6] 홍보자료(down) 보충 — [4] 의 카드(.rdc-*)에 받기 버튼·사진 가득 채우기·전체선택을 더함
   ============================================================================= */

/* 사진 칸을 사진으로 가득 채움(세로 3:4 칸. 제품 이미지·상세페이지 같은 홍보 이미지가 칸에 맞게 보이도록 contain 이 아니라 cover) */
.rdc-grid--cover .rdc-thumb img {
    object-fit: cover;
}

/* 받기 버튼이 있는 카드: 제목과 버튼 사이를 조금 좁게 */
.rdc-card--dl .rdc-title {
    margin-bottom: 12px;
    min-height: calc(1.45em);
    /* 홍보자료 제목은 한 줄이 대부분이라 두 줄 높이를 따로 확보하지 않음 */
}

.rdc-dl-wrap {
    display: flex;
    justify-content: center;
    margin-top: auto;
    /* 카드 높이가 달라도 버튼은 맨 아래에 맞춤 */
    padding: 0 18px 22px;
}

.rdc-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--rd-deep);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.rdc-dl:hover {
    background: var(--rd-point);
    color: #fff;
}

.rdc-dl:focus-visible {
    outline: 2px solid var(--rd-point);
    outline-offset: 2px;
}

/* 관리자 "전체선택" */
.rdc-selall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

.rdc-selall input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--rd-point);
    cursor: pointer;
}

@media (max-width: 700px) {
    .rdc-card--dl .rdc-title {
        min-height: calc(1.45em);
    }

    .rdc-dl-wrap {
        padding: 0 10px 16px;
    }
}

/* =============================================================================
   [7] 탈모 Wiki(basic) — 글 목록 표 (.rdw-*)
   구조: .rdc-bar(건수·분류 / 버튼) → .rdw-wrap > table.rdw-table → .rdc-admin → .rdc-paging  (+ 검색 창 .rdc-search)
   너비는 읽기용 최대 1100px. 모바일(700px 이하)은 표 대신 "제목 위 / 글쓴이·조회·날짜 아래" 줄 목록
   ============================================================================= */
.v3rd-wiki {
    width: min(100vw - var(--header-gap) * 2, 1100px);
}

.rdw-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    min-width: 0;
}

.rdw-count {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.rdw-count strong {
    font-weight: 600;
    color: var(--rd-deep);
}

.rdw-count span {
    margin-left: 6px;
    font-size: 14px;
    color: #999;
}

/* 표 바깥 카드: 공장·지적재산권 카드와 같은 기준(1px #C4C4C4, 16px, 연한 그림자) */
.rdw-wrap {
    overflow: hidden;
    border: 1px solid var(--rd-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.rdw-table {
    width: 100%;
    border-collapse: collapse;
}

.rdw-table thead th {
    padding: 16px 12px;
    border-bottom: 1px solid var(--rd-line);
    background: #EEF4F1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rd-deep);
    text-align: center;
    white-space: nowrap;
}

.rdw-table thead th.rdw-subject {
    text-align: left;
}

.rdw-table thead th a {
    color: inherit;
    text-decoration: none;
}

.rdw-table thead th a:hover {
    color: var(--rd-point);
}

.rdw-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #EDF1EF;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    vertical-align: middle;
}

.rdw-table tbody tr {
    transition: background-color 0.2s ease;
}

.rdw-table tbody tr:last-child td {
    border-bottom: 0;
}

.rdw-table tbody tr:hover {
    background: #F6F9F8;
}

.rdw-table tbody tr.is-notice {
    background: #F6F9F8;
}

.rdw-num {
    width: 72px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.rdw-name {
    width: 110px;
    text-align: center;
}

.rdw-hit {
    width: 80px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.rdw-date {
    width: 90px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.rdw-chk {
    width: 48px;
    text-align: center;
}

.rdw-chk input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--rd-point);
    cursor: pointer;
}

.rdw-subject {
    text-align: left;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.rdw-tit a {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rdw-tit a:hover {
    color: var(--rd-point);
}

.rdw-tit a:focus-visible {
    outline: 2px solid var(--rd-point);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 제목 앞 분류 알약 / 새글 N / 댓글 수 / 공지·열람중 */
.rdw-cate {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--rd-mint);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rd-deep);
    text-decoration: none;
    vertical-align: middle;
}

.rdw-new {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 4px;
    background: var(--rd-point);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    vertical-align: middle;
}

.rdw-cmt {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rd-point);
}

.rdw-notice {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--rd-mint);
    font-size: 12px;
    font-weight: 600;
    color: var(--rd-deep);
}

.rdw-now {
    font-size: 12px;
    font-weight: 600;
    color: var(--rd-point);
}

.rdw-table tbody tr.rdw-empty td {
    padding: 72px 12px;
    text-align: center;
    font-size: var(--rd-fs-body);
    color: #777;
}

/* ----- 모바일: 표 → 줄 목록 ----- */
@media (max-width: 700px) {

    .rdw-table,
    .rdw-table tbody {
        display: block;
    }

    /* 머리줄은 화면에서 숨김(스크린리더용으로는 남김) */
    .rdw-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .rdw-table tbody tr {
        position: relative;
        display: block;
        padding: 16px 18px;
        border-bottom: 1px solid #EDF1EF;
    }

    .rdw-table tbody tr:last-child {
        border-bottom: 0;
    }

    .rdw-table tbody td {
        display: inline;
        width: auto;
        padding: 0;
        border: 0;
        font-size: 13px;
        text-align: left;
        color: #999;
    }

    .rdw-table tbody td.rdw-subject {
        display: block;
        margin-bottom: 6px;
        font-size: 15px;
    }

    /* 번호는 숨기되, 공지 줄은 "공지" 표시를 위해 보여 줌 */
    .rdw-table tbody td.rdw-num {
        display: none;
    }

    .rdw-table tbody tr.is-notice td.rdw-num {
        display: inline-block;
        margin-right: 10px;
    }

    .rdw-table tbody td.rdw-name::after,
    .rdw-table tbody td.rdw-hit::after {
        content: "\00b7";
        margin: 0 6px;
    }

    .rdw-table tbody td.rdw-name+td.rdw-hit::before {
        content: "조회 ";
    }

    .rdw-table.has-chk tbody tr {
        padding-left: 52px;
    }

    .rdw-table tbody td.rdw-chk {
        position: absolute;
        left: 18px;
        top: 16px;
        width: auto;
    }

    .rdw-tit a {
        font-size: 16px;
    }

    .rdw-table tbody tr:hover {
        background: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rdw-table tbody tr {
        transition: none;
    }
}

/* =============================================================================
   [8] SNS채널(sns) — 임베드 카드 목록 (.rds-*)
   구조: .rdc-bar(분류·건수 / 버튼) → ul.rds-grid > li.rds-cell( .rds-admin-row(관리자만) + .rds-embed(인스타그램·유튜브 카드) ) → .rdc-admin → .rdc-paging
   카드 안쪽(인스타그램 위젯)은 인스타그램이 그리므로 폭(285px)만 맞춤. 유튜브 카드(.rds-yt)·숏츠(.rds-shorts)는 이쪽 모양
   ============================================================================= */
.rds-grid {
    display: grid;
    /* 285px 카드가 들어가는 만큼 열을 만들고(PC 4열 → 태블릿 3·2열 → 모바일 1열) 가운데로 모음 */
    grid-template-columns: repeat(auto-fill, 285px);
    justify-content: center;
    gap: 36px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rds-cell {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* 관리자에게만 보이는 줄: 선택 체크박스 + 글 보기 링크 */
.rds-admin-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 285px;
    max-width: 100%;
    margin-bottom: 8px;
    font-size: 14px;
}

.rds-admin-row input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--rd-point);
    cursor: pointer;
}

.rds-admin-tit {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--rd-deep);
    text-decoration: none;
}

.rds-admin-tit:hover,
.rds-cell.is-now .rds-admin-tit {
    color: var(--rd-point);
}

.rds-embed {
    width: 285px;
    max-width: 100%;
}

/* 인스타그램 위젯: 위젯이 스스로 붙이는 폭(min-width 326px 등)을 눌러 카드 폭을 285px 로 맞춤 (예전과 같은 값) */
.rds-embed .instagram-media,
.rds-embed iframe.instagram-media {
    width: 285px !important;
    min-width: 285px !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* 인스타그램 위젯이 카드로 바꾸기 전(또는 못 불러온 경우)의 빈 틀: 사이트 기본 CSS 의 blockquote 테두리선이 회색 줄로 남지 않게 */
.rds-embed blockquote,
.bv-embed blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* 유튜브 영상 카드: 채널 머리 + 영상(16:9) + 채널 바로가기·제목 */
.rds-yt {
    overflow: hidden;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    background: #fff;
    text-align: left;
}

.rds-yt-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.rds-yt-head img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.rds-yt-head strong {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.rds-yt iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

.rds-yt-foot {
    padding: 12px;
}

.rds-yt-foot a {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #555;
    text-decoration: none;
}

.rds-yt-foot a b {
    color: #f00;
}

.rds-yt-foot p {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
    word-break: keep-all;
    color: #222;
}

.rds-yt-foot span {
    display: block;
    font-size: 13px;
    color: #777;
}

/* 유튜브 숏츠(세로 9:16) */
.rds-shorts iframe {
    display: block;
    width: 285px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border: 0;
    border-radius: 8px;
}

/* 링크로만 등록된 글 */
.rds-link {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
}

.rds-link a {
    color: var(--rd-point);
}

@media (max-width: 600px) {
    .rds-grid {
        gap: 28px 0;
    }
}
