/* Local News 공개 페이지 레이아웃 - 하이파이 목업(docs/design/local-news-mockup)을 실사이트 CSS 위에 얹는다.
   사이트 CSS 의 .inner/.grid/.card/.tab/.date 등과 부딪히지 않게 클래스는 전부 ln- 접두사. */
.ln-page { --ln-accent: #ff6600; --ln-ink: #212121; --ln-sub: #666; --ln-mute: #888; --ln-line: #e5e5e5;
           font-family: 'Roboto', 'NotoSanskr', sans-serif; color: var(--ln-ink); }
.ln-page svg { fill: none; stroke: currentColor; stroke-width: 2; }
.ln-inner { max-width: 1216px; margin: 0 auto; }
.ln-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 토글하는 요소(.ln-exp, breadcrumb 추가 칸, .more_area 등)는 작성자 display 값이 UA 의 [hidden] 을 덮으므로 다시 숨긴다 */
.ln-page [hidden] { display: none !important; }
/* 타이틀 'Local News' 는 목록 첫 화면으로 가는 링크 - 모양은 사이트 tit_type 그대로 */
.tit_type .ln-home { color: inherit; text-decoration: none; }

/* ─ Featured 캐러셀 ─ */
.ln-hero { position: relative; height: 460px; overflow: hidden; background: #222; }
.ln-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ln-slide.on { opacity: 1; visibility: visible; }
.ln-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ln-shade { position: absolute; inset: 0;
            background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,0) 72%); }
/* 문구는 세로 가운데, 아래 컨트롤(점·카운터) 자리만큼 띄운다 */
.ln-slide .ln-inner { position: relative; height: 100%; display: flex; align-items: center; padding-bottom: 56px; }
.ln-copy { width: 620px; max-width: 100%; color: #fff; }
.ln-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ln-pill { display: inline-block; padding: 5px 13px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
           color: var(--ln-accent); background: #fff3e8; white-space: nowrap; }
.ln-date { font-size: 14px; color: var(--ln-mute); }
.ln-hero .ln-pill { color: #fff; background: var(--ln-accent); }
.ln-hero .ln-date { color: rgba(255,255,255,.8); }
.ln-copy h2 { margin: 16px 0 0; font-size: 36px; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
.ln-copy h2 a { color: #fff; text-decoration: none; }
.ln-sum { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.88);
          display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ln-go { display: inline-flex; align-items: center; gap: 10px; height: 50px; margin-top: 26px; padding: 0 30px; border-radius: 100px;
         background: rgba(255,102,0,.95); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; }
.ln-go:hover { color: #fff; background: var(--ln-accent); }
.ln-go svg { width: 18px; height: 18px; }
.ln-arw { position: absolute; top: 50%; z-index: 2; width: 60px; height: 90px; margin-top: -45px; padding: 0; border: 0;
          background: rgba(0,0,0,.4); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ln-arw:hover, .ln-arw:focus-visible { background: rgba(0,0,0,.9); }
.ln-arw svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 1.2; }
.ln-arw.l { left: 0; }
.ln-arw.r { right: 0; }
.ln-ctl-wrap { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2; }
.ln-ctl { display: flex; align-items: center; gap: 18px; }
.ln-cnt { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.ln-cnt span { font-weight: 400; color: rgba(255,255,255,.6); }
.ln-dots { display: flex; gap: 12px; }
.ln-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s; }
.ln-dot.on { width: 28px; background: #fff; }
.ln-pz { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ln-pz svg { width: 20px; height: 20px; fill: #fff; stroke: none; }

/* ─ 목록 ─ */
.ln-list { margin-top: 120px; }
.ln-h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.5; color: var(--ln-ink); }
.ln-h2s { margin: 8px 0 0; font-size: 16px; color: var(--ln-sub); }
.ln-tabbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; border-bottom: 1px solid var(--ln-line); }
/* 목록 화면은 카테고리 탭을 숨겨 검색창만 남는다 - 탭 밑줄용 선은 뺀다 (local-news.js listView) */
.ln-list .ln-tabbar { border-bottom: 0; }
.ln-tabs { display: flex; flex-wrap: wrap; gap: 0 32px; }
.ln-tab { position: relative; height: 64px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 18px;
          color: var(--ln-sub); cursor: pointer; white-space: nowrap; }
.ln-tab.on { color: var(--ln-ink); font-weight: 700; }
.ln-tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ln-accent); }
.ln-sel { height: 44px; padding: 0 40px 0 14px; border: 1px solid #d5d5d5; border-radius: 4px; font-family: inherit; font-size: 15px; color: var(--ln-ink);
          -webkit-appearance: none; appearance: none; cursor: pointer;
          /* reset.css 가 select 의 기본 화살표를 없애므로 직접 그린다 (사이트 화살표와 같은 #888 꺾쇠) */
          background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.ln-tab-select { display: none; }
.ln-tools { display: flex; align-items: center; gap: 8px; }
.ln-srch { display: flex; align-items: center; flex: 0 0 auto; width: 280px; height: 44px; padding: 0 6px 0 16px;
           border: 1px solid #d5d5d5; border-radius: 4px; background: #fff; }
.ln-srch label { flex: 1; min-width: 0; }
.ln-srch input { width: 100%; border: 0; outline: 0; background: none; font-family: inherit; font-size: 15px; color: var(--ln-ink); }
/* 브라우저 기본 지우기 x 는 숨기고 .ln-clr(검색 아이콘과 같은 선 아이콘)로 대신한다 */
.ln-srch input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; appearance: none; }
.ln-srch .ln-clr svg { width: 16px; height: 16px; stroke: var(--ln-mute); }
.ln-srch .ln-clr:hover svg { stroke: var(--ln-ink); }
.ln-srch button { width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ln-srch svg { width: 20px; height: 20px; stroke: var(--ln-sub); stroke-width: 1.8; }
.ln-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; transition: opacity .15s; }
/* 새 조건(검색어 입력 등)의 결과를 기다리는 동안 이전 카드를 흐리게 남기되 누를 수는 없게 (local-news.js pagedGrid) */
.is-loading > .ln-grid { opacity: .45; pointer-events: none; }

.ln-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ln-line); border-radius: 8px; background: #fff;
           color: var(--ln-ink); text-decoration: none; transition: box-shadow .2s; }
.ln-card:hover { color: var(--ln-ink); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.ln-img { display: block; height: 230px; overflow: hidden; background: #f0f0f0; }
.ln-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ln-card:hover .ln-img img { transform: scale(1.04); }
.ln-cb { display: block; padding: 24px 28px 28px; }
.ln-card h3 { margin: 16px 0 10px; min-height: 58px; font-size: 20px; font-weight: 700; line-height: 1.45;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ln-card p { margin: 0; min-height: 72px; font-size: 15px; line-height: 1.6; color: var(--ln-sub);
             display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ln-rm { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 15px; font-weight: 700; color: var(--ln-accent); }
.ln-rm svg { width: 16px; height: 16px; }
.ln-empty { margin: 40px 0 0; padding: 40px 0; text-align: center; font-size: 16px; color: var(--ln-sub); }
/* View more 는 정적 서브페이지의 .more_area > .btn_more 마크업 - sub.css 의 PC/모바일 스타일을 그대로 쓰고 여백만 맞춘다 */
.ln-page .more_area { padding-top: 64px; }

/* ─ Archived 연도 밴드 ─ */
.ln-arch { margin-top: 120px; padding: 100px 0 110px; background: #f5f5f5; }
/* 목록 화면은 회색 연도 밴드로 끝난다 - #content 의 기본 아래 여백이 밴드와 footer 사이에 흰 띠로 남지 않게 (local-news.js yearsBand) */
#content.ln-page.ln-ends-band { padding-bottom: 0; }
.ln-ahd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ln-exp { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0; border: 0; background: none;
          font-family: inherit; font-size: 16px; color: #3e3e3e; cursor: pointer; }
.ln-exp:hover { color: var(--ln-accent); }
.ln-exp i { width: 28px; height: 28px; border: 1px solid var(--ln-mute); border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-style: normal; font-size: 18px; line-height: 1; }
.ln-exp:hover i { border-color: var(--ln-accent); }
.ln-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.ln-yc { display: flex; align-items: center; gap: 24px; padding: 16px 28px 16px 16px; border-radius: 8px; background: #fff;
         color: var(--ln-ink); text-decoration: none; transition: box-shadow .2s; }
.ln-yc:hover { color: var(--ln-ink); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.ln-yc.extra { display: none; }
.ln-years.expanded .ln-yc.extra { display: flex; }
.ln-yimg { flex: 0 0 auto; width: 120px; height: 90px; overflow: hidden; border-radius: 6px; background: #e9e9e9; }
.ln-yimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ln-ytxt b { display: block; font-size: 28px; font-weight: 700; line-height: 1.2; }
.ln-ytxt small { font-size: 15px; color: var(--ln-mute); }
.ln-chv { flex: 0 0 auto; margin-left: auto; width: 40px; height: 40px; border: 1px solid #d5d5d5; border-radius: 50%;
          display: flex; align-items: center; justify-content: center; }
.ln-chv svg { width: 16px; height: 16px; stroke: var(--ln-ink); }

/* ─ 상세 ─ */
.ln-art { width: 840px; max-width: 100%; margin: 72px auto 0; } /* 아래 여백은 #content 기본값(다른 페이지와 같게)만 */
.ln-bk { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 36px; font-size: 15px; font-weight: 500;
         color: var(--ln-sub); text-decoration: none; }
.ln-bk-ic { width: 40px; height: 40px; border: 1px solid #d5d5d5; border-radius: 50%; background: #fff;
            display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ln-bk-ic svg { width: 18px; height: 18px; stroke: var(--ln-ink); stroke-width: 1.8; transition: stroke .2s; }
.ln-bk:hover { color: var(--ln-ink); }
.ln-bk:hover .ln-bk-ic { border-color: var(--ln-accent); background: var(--ln-accent); }
.ln-bk:hover .ln-bk-ic svg { stroke: #fff; }
.ln-art-title { margin: 18px 0 0; font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ln-ink); }
.ln-rule { margin-top: 32px; border-top: 2px solid var(--ln-ink); }
.ln-pn { margin-top: 80px; border-top: 1px solid var(--ln-ink); }
.ln-pn a { display: flex; align-items: center; gap: 32px; height: 72px; padding: 0 24px; border-bottom: 1px solid var(--ln-line);
           color: var(--ln-ink); text-decoration: none; }
.ln-pn a:hover { color: var(--ln-accent); background: #fafafa; }
.ln-lb { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; width: 110px; font-size: 15px; font-weight: 700; color: var(--ln-sub); }
.ln-lb svg { width: 14px; height: 14px; }
.ln-t { flex: 1; min-width: 0; overflow: hidden; font-size: 16px; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.ln-d { font-size: 14px; color: var(--ln-mute); }
.ln-loading, .ln-notfound p { margin-top: 16px; font-size: 16px; color: var(--ln-sub); }

/* ─ 아카이브 ─ */
.ln-archive { margin-top: 72px; }
.ln-res { margin: 28px 0 0; font-size: 16px; color: var(--ln-sub); }
.ln-res b { color: var(--ln-ink); }

/* ─ 반응형 (사이트 breakpoint 1280 / 1024 / 768) ─ */
@media (max-width: 1280px) {
  .ln-inner { padding: 0 32px; }
}
@media (max-width: 1024px) {
  .ln-hero { height: 420px; }
  .ln-slide .ln-inner { align-items: flex-end; padding-bottom: 92px; }
  .ln-copy h2 { font-size: 30px; }
  .ln-tabbar { flex-wrap: wrap; border-bottom: 0; }
  .ln-tabs { display: none; }
  .ln-tab-select { display: block; }
  .ln-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ln-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ln-art { padding: 0 32px; }
}
@media (max-width: 768px) {
  .ln-inner { padding: 0 20px; }
  .ln-hero { height: 400px; }
  .ln-arw { display: none; }
  .ln-slide .ln-inner { padding-bottom: 80px; }
  .ln-copy h2 { font-size: 24px; }
  .ln-sum { font-size: 15px; -webkit-line-clamp: 2; }
  .ln-go { height: 46px; margin-top: 22px; padding: 0 22px; font-size: 15px; }
  .ln-ctl-wrap { bottom: 24px; }
  .ln-list { margin-top: 64px; }
  .ln-tabbar, .ln-tools { flex-direction: column; align-items: stretch; gap: 12px; }
  .ln-srch, .ln-sel { width: 100%; }
  .ln-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .ln-img { height: 200px; }
  .ln-card h3, .ln-card p { min-height: 0; }
  .ln-page .more_area { padding-top: 32px; }
  .ln-arch { margin-top: 64px; padding: 56px 0 64px; }
  .ln-ahd { flex-direction: column; align-items: flex-start; }
  .ln-years { grid-template-columns: 1fr; gap: 12px; }
  .ln-yc { gap: 16px; padding: 12px 16px 12px 12px; }
  .ln-yimg { width: 88px; height: 66px; }
  .ln-ytxt b { font-size: 22px; }
  .ln-art { margin: 40px auto 0; padding: 0 20px; }
  .ln-art-title { font-size: 28px; }
  .ln-pn a { flex-wrap: wrap; gap: 4px 12px; height: auto; padding: 16px 8px; }
  .ln-lb { width: auto; }
  .ln-t { order: 3; flex-basis: 100%; white-space: normal; }
  .ln-archive { margin-top: 40px; }
}
