@charset "utf-8";
/* 특허·상표·인증 게시판 (sm_patent) — agentmit certificate 스킨 틀 + 슬로밀 브랜드 토큰(--fl-*) */

.sm-ip-list, .sm-ip-view { max-width: calc(var(--sm-container) + 2 * var(--sm-gutter)); margin: 0 auto; padding: 0 var(--sm-gutter) 100px; box-sizing: border-box; word-break: keep-all; }

/* ---------- 요약 숫자 ---------- */
.sm-ip-summary { display: flex; justify-content: center; gap: clamp(24px, 6vw, 96px); margin: 0 0 48px; padding: 36px 0; border-bottom: 1px solid var(--sm-line); list-style: none; }
.sm-ip-summary li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sm-ip-summary strong { font-family: var(--sm-font-display); font-size: clamp(44px, 5vw, 64px); font-weight: 600; line-height: 1; color: var(--sm-dark); }
.sm-ip-summary span { font-size: 15px; font-weight: 600; color: var(--sm-ink-2); }

/* ---------- 분류 탭 ---------- */
.sm-ip-cate h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sm-ip-cate #bo_cate_ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 0 40px; list-style: none; }
.sm-ip-cate #bo_cate_ul a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 22px; border: 1.5px solid var(--sm-line); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--sm-ink-2); background: #fff; transition: all .2s; }
.sm-ip-cate #bo_cate_ul a:hover { border-color: var(--sm-primary); color: var(--sm-primary); }
.sm-ip-cate #bo_cate_ul a#bo_cate_on { border-color: var(--sm-dark); background: var(--sm-dark); color: #fff; }

/* ---------- 카드 ---------- */
.sm-ip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; padding: 0; margin: 0 0 32px; list-style: none; }
.sm-ip-card { display: block; color: inherit; text-decoration: none; }
.sm-ip-paper {
    position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
    aspect-ratio: 1 / 1.3; padding: 24px; border: 1px solid var(--sm-line); border-radius: 10px; overflow: hidden;
    background: linear-gradient(170deg, #fff 0%, var(--sm-cream) 100%); text-align: center; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.sm-ip-paper::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--sm-dark) 18%, transparent); border-radius: 6px; pointer-events: none; }
.sm-ip-paper.has-img { padding: 0; }
.sm-ip-paper.has-img::before { display: none; }
.sm-ip-paper.has-img > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sm-ip-card:hover .sm-ip-paper { transform: translateY(-6px); box-shadow: var(--sm-shadow-lg); border-color: var(--sm-primary); }
.sm-ip-paper-kind { font-family: var(--sm-font-display); font-size: 22px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sm-dark); }
.sm-ip-paper-no { font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--sm-ink); font-variant-numeric: tabular-nums; }
.sm-ip-paper-seal { margin-top: 18px; width: 44px; opacity: .85; }
.sm-ip-paper-seal img { width: 100%; height: auto; }

.sm-ip-badge { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.4; color: #fff; background: var(--sm-ink-2); }
.sm-ip-paper .sm-ip-badge { position: absolute; top: 18px; left: 18px; }
.sm-ip-badge.is-patent { background: var(--sm-primary); }
.sm-ip-badge.is-trademark { background: var(--sm-dark); }
.sm-ip-badge.is-cert { background: var(--sm-leaf); }

.sm-ip-info { padding-top: 16px; }
.sm-ip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--sm-ink-3); }
.sm-ip-state { padding: 2px 10px; border-radius: 999px; background: var(--sm-primary-soft); color: var(--sm-primary-dark); font-weight: 700; font-size: 12px; }
.sm-ip-tit { margin-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--sm-ink); transition: color .2s; }
.sm-ip-card:hover .sm-ip-tit { color: var(--sm-primary); }
.sm-ip-brand { margin-top: 6px; font-size: 14px; color: var(--sm-ink-2); }

.sm-ip-empty { grid-column: 1 / -1; padding: 90px 20px; text-align: center; color: var(--sm-ink-3); }
.sm-ip-note { margin: 0 0 40px; font-size: 14px; color: var(--sm-ink-3); text-align: center; }
.sm-ip-paging { margin-bottom: 40px; }

/* ---------- 상세 ---------- */
.sm-ip-view { max-width: 880px; padding-top: 20px; }
.sm-ip-view-head { padding-bottom: 36px; text-align: center; }
.sm-ip-view-head .sm-ip-badge { margin-bottom: 18px; }
.sm-ip-view-title { font-family: var(--sm-font-serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.4; color: var(--sm-ink); }
.sm-ip-view-no { margin-top: 12px; font-size: 17px; font-weight: 700; color: var(--sm-primary); font-variant-numeric: tabular-nums; }
.sm-ip-table { width: 100%; margin-bottom: 48px; border-collapse: collapse; border-top: 2px solid var(--sm-dark); background: #fff; }
.sm-ip-table th, .sm-ip-table td { padding: 16px 20px; border-bottom: 1px solid var(--sm-line); text-align: left; vertical-align: top; font-size: 16px; }
.sm-ip-table th { width: 28%; font-weight: 700; color: var(--sm-dark); background: var(--sm-cream); }
.sm-ip-table td { color: var(--sm-ink); }
.sm-ip-doc { margin-bottom: 48px; text-align: center; }
.sm-ip-doc img { max-width: 100%; height: auto; border: 1px solid var(--sm-line); border-radius: 8px; box-shadow: var(--sm-shadow); }
.sm-ip-body { margin-bottom: 48px; font-size: 16px; line-height: 1.85; color: var(--sm-ink-2); }

/* ---------- 버튼 ---------- */
.sm-ip-list .btn_bo_user, .sm-ip-view .btn_bo_user { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; list-style: none; }
.sm-ip-list .btn_bo_user .btn_b01, .sm-ip-view .btn_bo_user .btn_b01 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 120px; height: 48px; padding: 0 24px; border-radius: 999px; }

/* ---------- 글쓰기 여분필드 ---------- */
.sm-ip-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; padding: 20px; border: 1px solid var(--sm-line); border-radius: 10px; background: var(--sm-cream); }
.sm-ip-fields label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; color: var(--sm-dark); }
.sm-ip-fields label span { font-weight: 400; color: var(--sm-ink-3); }
.sm-ip-fields .is-wide { grid-column: 1 / -1; }

@media (max-width: 1024px) { .sm-ip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .sm-ip-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } .sm-ip-fields { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sm-ip-grid { grid-template-columns: 1fr; } .sm-ip-table th { width: 36%; } .sm-ip-table th, .sm-ip-table td { padding: 12px 14px; font-size: 15px; } }
