/* 오너플로우 뉴스레터(네이버 블로그 연동) 전용 스타일. 클래스는 전부 nl- 접두사로
   범위를 좁혀 다른 페이지에 영향을 주지 않도록 한다. */

.nl-page {
   max-width: 1120px;
   margin: 0 auto;
   padding: 56px 24px 96px;
   color: #111111;
}

.nl-hero {
   max-width: 820px;
   margin: 0 auto 48px;
   text-align: center;
}

.nl-hero h1 {
   font-size: 2.1rem;
   font-weight: 800;
   letter-spacing: -0.01em;
   margin-bottom: 12px;
   color: #111111;
}

.nl-hero p {
   color: #555555;
   font-size: 1.02rem;
   line-height: 1.6;
}

/* ofadmin 계정에게만 보이는 관리자 페이지 이동 버튼(목록/상세 공통) */
.nl-admin-jump {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   margin-top: 16px;
   padding: 8px 16px;
   border-radius: 999px;
   background: #111111;
   color: #ffffff;
   font-size: 0.82rem;
   font-weight: 700;
   text-decoration: none;
}

.nl-admin-jump:hover {
   opacity: 0.85;
   color: #ffffff;
}

.nl-detail .nl-admin-jump {
   margin: 0 0 20px;
}

/* 사례·인사이트 메뉴와 같은 레벨의 하위 페이지들을 서브타이틀 아래에 나열하는
   pill 형태 탭 네비게이션. 현재 페이지는 is-active로 색이 반전된다. */
.nl-subnav {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 10px;
   max-width: 820px;
   margin: 0 auto 48px;
}

.nl-subnav-item {
   display: inline-flex;
   align-items: center;
   padding: 9px 20px;
   border-radius: 999px;
   border: 1px solid #e2e2e2;
   background: #ffffff;
   color: #444444;
   font-size: 0.88rem;
   font-weight: 600;
   text-decoration: none;
   transition:
      border-color 0.15s ease,
      background 0.15s ease,
      color 0.15s ease;
}

.nl-subnav-item:hover {
   border-color: #463eea;
   color: #463eea;
}

.nl-subnav-item.is-active {
   background: #463eea;
   border-color: #463eea;
   color: #ffffff;
}

/* 검색창 + 필터 pill - 사례·인사이트 계열 목록 페이지(포트폴리오/기능 제안 상품
   등)가 전부 공유하는 공통 컴포넌트. 페이지별 고유 항목(카드 배지 등)만 각
   템플릿의 자체 style에 남긴다. */
.nl-search {
   display: flex;
   align-items: center;
   gap: 8px;
   max-width: 480px;
   margin: 0 auto 28px;
}

.nl-search-input {
   flex: 1;
   padding: 12px 18px;
   border: 1px solid #e2e2e2;
   border-radius: 999px;
   font-size: 0.92rem;
   outline: none;
   transition: border-color 0.15s ease;
}

.nl-search-input:focus {
   border-color: #463eea;
}

.nl-search-btn {
   flex-shrink: 0;
   width: 42px;
   height: 42px;
   border-radius: 50%;
   border: 1px solid #e2e2e2;
   background: #ffffff;
   color: #666666;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.15s ease;
}

.nl-search-btn:hover {
   border-color: #463eea;
   color: #463eea;
}

.nl-filter-row {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 8px;
   margin-bottom: 16px;
}

.nl-filter-row-sub {
   margin-bottom: 32px;
}

.nl-filter-pill {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 8px 16px;
   border-radius: 999px;
   border: 1px solid #e2e2e2;
   background: #ffffff;
   color: #444444;
   font-size: 0.84rem;
   font-weight: 600;
   text-decoration: none;
   cursor: pointer;
   transition: all 0.15s ease;
}

.nl-filter-pill:hover {
   border-color: #463eea;
   color: #463eea;
   text-decoration: none;
}

.nl-filter-pill.is-active {
   background: #111111;
   border-color: #111111;
   color: #ffffff;
}

.nl-filter-pill-sub {
   font-size: 0.78rem;
   padding: 6px 14px;
   color: #666666;
}

.nl-filter-pill-sub.is-active {
   background: #463eea;
   border-color: #463eea;
   color: #ffffff;
}

.nl-filter-count {
   font-size: 0.74rem;
   opacity: 0.7;
}

@media (max-width: 620px) {
   .nl-search {
      max-width: 100%;
   }
}

.nl-subnav-item.is-active:hover {
   color: #ffffff;
}

/* ---------------- 목록 ---------------- */

.nl-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 32px 28px;
}

@media (max-width: 992px) {
   .nl-grid {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 620px) {
   .nl-grid {
      grid-template-columns: 1fr;
   }
}

.nl-card {
   display: flex;
   flex-direction: column;
   text-decoration: none;
   color: inherit;
   border: 1px solid #eaeaea;
   border-radius: 12px;
   overflow: hidden;
   background: #ffffff;
   transition:
      border-color 0.15s ease,
      transform 0.15s ease;
}

.nl-card:hover {
   border-color: #463eea;
   transform: translateY(-2px);
}

.nl-card-thumb {
   position: relative;
   width: 100%;
   aspect-ratio: 16 / 10;
   background: #f2f2f2;
   overflow: hidden;
}

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

.nl-card-body {
   padding: 18px 18px 22px;
   display: flex;
   flex-direction: column;
   flex: 1;
}

.nl-card-category {
   font-size: 0.76rem;
   font-weight: 700;
   color: #463eea;
   text-transform: uppercase;
   letter-spacing: 0.03em;
   margin-bottom: 8px;
}

.nl-card-title {
   font-size: 1.08rem;
   font-weight: 700;
   line-height: 1.4;
   margin-bottom: 8px;
   color: #111111;
}

.nl-card-excerpt {
   font-size: 0.9rem;
   color: #666666;
   line-height: 1.55;
   flex: 1;
   margin-bottom: 14px;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.nl-card-meta {
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 0.8rem;
   color: #999999;
}

.nl-card-more {
   color: #463eea;
   font-weight: 600;
}

.nl-empty {
   text-align: center;
   padding: 80px 20px;
   color: #777777;
}

.nl-empty i {
   font-size: 2.2rem;
   color: #cccccc;
   margin-bottom: 16px;
   display: block;
}

/* ---------------- 페이지네이션 ---------------- */

.nl-pagination {
   display: flex;
   justify-content: center;
   gap: 8px;
   margin-top: 56px;
   flex-wrap: wrap;
}

.nl-pagination a,
.nl-pagination span {
   min-width: 36px;
   height: 36px;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 8px;
   text-decoration: none;
   color: #333333;
   font-size: 0.9rem;
   border: 1px solid transparent;
}

.nl-pagination a:hover {
   border-color: #463eea;
   color: #463eea;
}

.nl-pagination .nl-page-active {
   background: #463eea;
   color: #ffffff;
   font-weight: 700;
}

.nl-pagination .nl-page-disabled {
   color: #cccccc;
}

/* ---------------- 상세 ---------------- */

.nl-detail {
   max-width: 800px;
   margin: 0 auto;
}

.nl-detail-category {
   color: #463eea;
   font-weight: 700;
   font-size: 0.82rem;
   text-transform: uppercase;
   letter-spacing: 0.03em;
   margin-bottom: 14px;
}

.nl-detail-title {
   font-size: 2rem;
   font-weight: 800;
   line-height: 1.35;
   letter-spacing: -0.01em;
   margin-bottom: 16px;
   color: #111111;
}

.nl-detail-meta {
   color: #888888;
   font-size: 0.88rem;
   margin-bottom: 32px;
   padding-bottom: 24px;
   border-bottom: 1px solid #eeeeee;
}

/* ---------------- 뉴스레터 본문(오너플로우 전용 시맨틱 구조) ----------------
   네이버 클래스(se-*)에 의존하지 않는다 - parser가 만드는 .of-newsletter-*
   클래스만 대상으로 한다. 전역 p/img/table/a 선택자를 새로 만들지 않고 전부
   .of-newsletter-content 아래로 범위를 좁힌다(다른 페이지에 영향 없음). */

.of-newsletter-content {
   font-size: 17px;
   line-height: 1.8;
   color: #222222;
}

.of-newsletter-content .of-newsletter-paragraph {
   margin: 0 0 24px;
}

.of-newsletter-content .of-newsletter-paragraph.is-center {
   text-align: center;
}

.of-newsletter-content .of-newsletter-paragraph.is-right {
   text-align: right;
}

.of-newsletter-content .of-newsletter-heading {
   font-size: 28px;
   font-weight: 700;
   line-height: 1.4;
   margin: 64px 0 20px;
   color: #111111;
}

.of-newsletter-content .of-newsletter-callout {
   display: block;
   margin: 28px 0;
   padding: 16px 20px;
   background: #f5f5f7;
   border-left: 3px solid #463eea;
   border-radius: 0 6px 6px 0;
   font-size: inherit;
   color: #333333;
}

.of-newsletter-content .of-newsletter-callout .of-newsletter-paragraph {
   margin: 0 0 10px;
}

.of-newsletter-content .of-newsletter-callout .of-newsletter-paragraph:last-child {
   margin-bottom: 0;
}

.of-newsletter-content .of-newsletter-figure {
   margin: 40px 0;
}

.of-newsletter-content .of-newsletter-figure img,
.of-newsletter-content .of-newsletter-gallery img {
   max-width: 100%;
   width: auto;
   height: auto;
   display: block;
   margin: 0 auto;
   border-radius: 8px;
   /* 본문 이미지는 전체 내용이 보여야 하므로 잘라내는 cover를 쓰지 않는다 */
   object-fit: contain;
}

.of-newsletter-content .of-newsletter-caption {
   margin-top: 10px;
   font-size: 13px;
   line-height: 1.5;
   color: #888888;
   text-align: center;
}

.of-newsletter-content .of-newsletter-gallery {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 12px;
   margin: 40px 0;
}

.of-newsletter-content .of-newsletter-gallery .of-newsletter-figure {
   margin: 0;
}

@media (max-width: 620px) {
   .of-newsletter-content .of-newsletter-gallery {
      grid-template-columns: 1fr;
   }
}

.of-newsletter-content .of-newsletter-list {
   margin: 0 0 24px;
   padding-left: 1.4em;
}

.of-newsletter-content .of-newsletter-list li {
   margin-bottom: 8px;
}

.of-newsletter-content .of-newsletter-quote {
   margin: 28px 0;
   padding: 18px 22px;
   border-left: 3px solid #463eea;
   background: #f7f7fb;
   color: #333333;
   border-radius: 0 8px 8px 0;
}

.of-newsletter-content .of-newsletter-quote .of-newsletter-paragraph {
   margin: 0 0 10px;
}

.of-newsletter-content .of-newsletter-quote .of-newsletter-paragraph:last-child {
   margin-bottom: 0;
}

.of-newsletter-content .of-newsletter-table-wrap {
   margin: 32px 0;
   /* 표 가로 스크롤은 이 wrapper 안에서만 일어나야 한다 - 본문 전체가 밀리면 안 됨 */
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
}

.of-newsletter-content .of-newsletter-table-wrap:focus-visible {
   outline: 2px solid #463eea;
   outline-offset: 2px;
}

.of-newsletter-content .of-newsletter-table-hint {
   margin: 0 0 8px;
   font-size: 13px;
   color: #888888;
}

@media (min-width: 621px) {
   .of-newsletter-content .of-newsletter-table-hint {
      display: none;
   }
}

.of-newsletter-content .of-newsletter-table {
   width: 100%;
   min-width: 560px;
   border-collapse: collapse;
   font-size: 15px;
}

.of-newsletter-content .of-newsletter-table th,
.of-newsletter-content .of-newsletter-table td {
   border: 1px solid #e5e5e5;
   padding: 14px 16px;
   text-align: left;
   vertical-align: top;
}

.of-newsletter-content .of-newsletter-table thead th {
   background: #1a1a1a;
   color: #ffffff;
   font-weight: 700;
   white-space: nowrap;
}

.of-newsletter-content .of-newsletter-table tbody th[scope='row'] {
   background: #f5f5f5;
   font-weight: 600;
   color: #222222;
}

/* 5열 표라 모바일에서 폭을 억지로 줄이지 않고 wrapper가 가로 스크롤을 담당한다.
   첫 번째 열(행 제목)만 스크롤 중에도 보이도록 고정한다. */
@media (max-width: 620px) {
   .of-newsletter-content .of-newsletter-table tbody th[scope='row'] {
      position: sticky;
      left: 0;
      z-index: 1;
   }
}

.of-newsletter-content .of-newsletter-embed-notice {
   margin: 32px 0;
   padding: 20px 22px;
   background: #f7f7f7;
   border-radius: 10px;
   text-align: center;
   color: #555555;
}

.of-newsletter-content .of-newsletter-embed-notice p {
   margin: 0 0 10px;
}

.of-newsletter-content .of-newsletter-embed-notice a {
   color: #463eea;
   font-weight: 700;
   text-decoration: none;
}

.of-newsletter-content a {
   color: #463eea;
   text-decoration: underline;
   overflow-wrap: anywhere;
}

/* ---------------- 레거시(구버전 parser) 콘텐츠 대응 ----------------
   parser v3 이전에 저장된 글은 위의 .of-newsletter-* 클래스가 없는 순수
   p/b/blockquote/ul/img 태그로만 이루어져 있다(관리자가 "다시 동기화"를
   눌러 최신 parser로 재처리하기 전까지는 계속 이 모양으로 남는다). 이
   블록은 그런 예전 글도 최소한의 가독성을 갖추도록 태그 자체를 대상으로
   스타일을 준다 - 명시적으로 클래스를 붙인 위 규칙들과는 선택자 특이도가
   달라서(class 2개 vs class+태그 1개) 서로 충돌하지 않고, 새 parser가 만든
   콘텐츠에서는 이 태그 규칙 위에 클래스 규칙이 그대로 우선 적용된다. */

.of-newsletter-content > p {
   margin: 0 0 24px;
   line-height: 1.8;
}

.of-newsletter-content b,
.of-newsletter-content strong {
   font-weight: 700;
}

.of-newsletter-content > img {
   display: block;
   max-width: 100%;
   height: auto;
   margin: 40px auto;
   border-radius: 8px;
}

.of-newsletter-content > ul,
.of-newsletter-content > ol {
   margin: 0 0 24px;
   padding-left: 1.4em;
}

.of-newsletter-content > ul li,
.of-newsletter-content > ol li {
   margin-bottom: 8px;
}

.of-newsletter-content > blockquote {
   margin: 28px 0;
   padding: 18px 22px;
   border-left: 3px solid #463eea;
   background: #f7f7fb;
   color: #333333;
   border-radius: 0 8px 8px 0;
}

.of-newsletter-content > blockquote p {
   margin: 0 0 10px;
}

.of-newsletter-content > blockquote p:last-child {
   margin-bottom: 0;
}

/* 표를 지원하지 않던 예전 parser는 표 한 칸씩을 <p><b>...</b></p>로
   깨뜨려 저장했다 - 실제 <table>로 되돌리려면 관리자의 "다시 동기화"로
   최신 parser가 다시 파싱해야 한다(CSS만으로는 무너진 표 구조 자체를
   복원할 수 없음). 최소한 그런 칸들이 문단처럼 줄줄이 이어지지 않도록
   굵은 글씨만 있는 짧은 문단은 위아래 여백을 좁혀 표에 가깝게 보이도록
   완화한다. */
.of-newsletter-content > p:has(> b:only-child):not(:has(+ ul, + ol)) {
   margin-bottom: 4px;
}

.nl-source-link {
   margin: 40px 0;
   padding: 18px 20px;
   background: #f7f7f7;
   border-radius: 10px;
   font-size: 0.92rem;
   color: #555555;
}

.nl-source-link a {
   color: #463eea;
   font-weight: 700;
   text-decoration: none;
}

.nl-nav-links {
   display: flex;
   justify-content: space-between;
   gap: 16px;
   margin: 48px 0;
   padding: 24px 0;
   border-top: 1px solid #eeeeee;
   border-bottom: 1px solid #eeeeee;
}

.nl-nav-links a {
   flex: 1;
   text-decoration: none;
   color: #333333;
   font-size: 0.9rem;
}

.nl-nav-links a:hover {
   color: #463eea;
}

.nl-nav-links .nl-nav-next {
   text-align: right;
}

.nl-related {
   margin: 40px 0;
}

.nl-related h3 {
   font-size: 1.1rem;
   font-weight: 800;
   margin-bottom: 18px;
}

.nl-related-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}

@media (max-width: 620px) {
   .nl-related-grid {
      grid-template-columns: 1fr;
   }
}

.nl-cta {
   margin-top: 56px;
   padding: 40px 32px;
   background: #111111;
   color: #ffffff;
   border-radius: 14px;
   text-align: center;
}

.nl-cta h3 {
   font-size: 1.35rem;
   font-weight: 800;
   margin-bottom: 10px;
}

.nl-cta p {
   color: #cccccc;
   margin-bottom: 22px;
}

.nl-cta-btn {
   display: inline-block;
   background: #463eea;
   color: #ffffff;
   font-weight: 700;
   padding: 13px 28px;
   border-radius: 999px;
   text-decoration: none;
}

.nl-cta-btn:hover {
   opacity: 0.9;
   color: #ffffff;
}

@media (max-width: 480px) {
   .nl-detail-title {
      font-size: 1.5rem;
   }

   .of-newsletter-content {
      font-size: 16px;
   }

   .of-newsletter-content .of-newsletter-heading {
      font-size: 23px;
      margin-top: 48px;
   }

   .nl-nav-links {
      flex-direction: column;
   }

   .nl-nav-links .nl-nav-next {
      text-align: left;
   }
}
