/*
 * #5786 의원 시네마틱 블로그 래퍼.
 *
 * 색·타이포·그림자는 PADIEM Chat이 이미 쓰는 light/dark 테마 토큰을 그대로 읽습니다
 * (padiem-themes.css). 이 파일이 자체 선언하는 값은 두 종류뿐입니다.
 *   1) 레이아웃 상수(--cine-pad, --cine-measure, 여백·타이포 지표)
 *   2) 영상 위처럼 테마가 바껴도 항상 밝은 글자가 필요한 위치의 매체 고정 색
 * 테마 토큰을 재선언하지 않으므로, 원본 테마가 바뀌면 이 화면도 함께 바뀝니다.
 */

:root {
  --cine-pad: clamp(20px, 4vw, 64px);
  --cine-measure: min(1180px, 100% - (var(--cine-pad) * 2));
  --cine-display-weight: 520;
  --cine-display-spacing: -.058em;
  --cine-display-line: 1.01;
  /* padiem.net이 쓰는 서체. light/dark 테마의 --font-* 는 Pretendard 를 먼저 적지만
   * 그 폰트는 이 앱 어디서도 로드되지 않아 시스템으로 떨어진다. 저장소가 이미
   * 읽는 SUIT/SUITE/Manrope(CDN)를 앞에 두고 테마 값을 뒤로 이어서, 테마가
   * 재정의한 패밀리는 그대로 상속받되 얼굴만 시네마틱으로 유지한다. */
  --cine-display-face: "SUITE Variable", var(--font-display);
  --cine-body-face: "SUIT Variable", var(--font-body);
  --cine-label-face: Manrope, var(--font-label);
  /* 영상·다크 밴드 위 글자: 테마가 light 로 바뀌어도 읽혀야 하므로 매체 고정값. */
  --cine-on-media: #f7f8fa;
  --cine-on-media-soft: rgba(247, 248, 250, .74);
  --cine-on-media-faint: rgba(247, 248, 250, .58);
  --cine-on-media-line: rgba(247, 248, 250, .26);
  --cine-media-bg: #04070d;
  /* 테마 토큰을 다시 선언하지 않고, 작은 글자만 강도를 올려 읽히게 한다.
     light 에서 --muted(#6f7079) 는 12px 기준 4.4:1, --gold(#b8923a) 는 13px 기준
     2.9:1 로 AA 아래였다(2026-10-25 라이브 실측). dark 는 두 값 모두 이미 통과한다. */
  --cine-muted-strong: #4b4f57;
  --cine-muted-strong: color-mix(in srgb, var(--muted) 74%, var(--text));
  --cine-gold-strong: #6f5a22;
  --cine-gold-strong: color-mix(in srgb, var(--gold) 62%, var(--text));
}

/* 이 문서는 Chat의 styles.css 를 읽지 않으므로 레이아웃 기준 값을 자체 선언합니다.
 * border-box 가 없으면 min-height 에 패딩이 더해져 히어로가 뷰포트보다 커집니다. */
.councillor-body,
.councillor-body *,
.councillor-body *::before,
.councillor-body *::after { box-sizing: border-box; }

.councillor-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text, #19191d);
  font-family: var(--cine-body-face);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: transparent;
}

/* padiem-foundation.css, imported through padiem-cinematic-chat.css, floors the shell at
 * min-width: 320px. On a 320px phone a classic scrollbar leaves a 310px content box, so that
 * floor made the whole page pan 10px sideways - measured in the user's Tabbit browser, and
 * invisible in headless Chromium, whose scrollbars overlay the content. This page is fluid
 * (--cine-measure is percentage based), so it has no use for the app shell's floor. */
.councillor-body { min-width: 0; }

.councillor-skip {
  position: absolute;
  left: -9999px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* 실측 40px → 포커스 시 누르는 면도 44px */
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--panel, #fff);
  color: var(--text, #19191d);
}
.councillor-skip:focus { left: 12px; top: 12px; }

/* ── topbar ───────────────────────────────────────────────────────────── */
.councillor-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--cine-pad);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
/* 히어로 위에 있을 때는 영상 속 글자와 겹치지 않도록 매체 고정 색을 쓴다. */
.councillor-topbar:not(.is-anchored) .councillor-brand-name,
.councillor-topbar:not(.is-anchored) .councillor-ghost { color: var(--cine-on-media); }
.councillor-topbar:not(.is-anchored) .councillor-ghost { border-color: var(--cine-on-media-line); }
.councillor-topbar.is-anchored {
  border-bottom-color: var(--line, #e3e3e9);
  /* 반투명 glass 를 쓰면 아래 다크 밴드가 비쳐 흐려진다. 본문은 불투명 패널. */
  background: var(--panel, #fff);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}
.councillor-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.councillor-brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--cine-on-media-line);
  border-radius: 10px;
  background: rgba(247, 248, 250, .1);
  color: var(--cine-on-media);
  font-family: var(--cine-display-face);
  font-weight: 700;
}
.councillor-topbar.is-anchored .councillor-brand-mark {
  border-color: var(--card-border, #e3e3e9);
  background: var(--accent-soft, #efedff);
  color: var(--accent, #6557e8);
}
.councillor-brand-name {
  overflow: hidden;
  font-family: var(--cine-display-face);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.councillor-topbar.is-anchored .councillor-brand-name { color: var(--text, #19191d); }
.councillor-topbar-actions { display: flex; align-items: center; gap: 8px; }

/* #5786 페이지 구역 내비게이션.
 * 히어로 아래로 스크롤해야만 다른 구역에 닿던 단일 페이지를, 어디서든 이동 가능하게
 * 만든다. 헤더가 position:fixed 이므로 앵커가 제목 아래로 숨지 않도록 모든 이동
 * 대상에 scroll-margin 을 함께 준다 — 이 두 가지는 한 짝이다. */
/* The offset has to be declared where the sections can INHERIT it. On the topbar it
 * was invisible to them - the header is a sibling of <main>, and a custom property does
 * not travel sideways - so scroll-margin resolved to nothing and every phone anchor
 * landed under the fixed bar. The script overwrites this with the measured bar height;
 * the value here is only the no-JS floor.
 * --cine-reveal-shift is the same number the reveal animation moves an unvisited
 * section down by. A jump is measured from that shifted box, so the margin carries it
 * too: the landing can then only ever be too low, never tucked under the bar. */
:root { --cine-anchor-offset: 92px; --cine-reveal-shift: 22px; }
/* 320px에서 스크롤로 감추는 대신 두 줄로 접는다. 접힌 끝이 화면 밖으로 나가는
 * 가로 스크롤 내비는 이동표로서 자격이 없다. */
.councillor-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 4px;
  min-width: 0;
}
.councillor-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;   /* 터치 하한은 변의 길이가 아니라 두 변 모두 */
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted, #6f7079);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.councillor-nav a:hover { color: var(--accent, #6557e8); }
.councillor-nav a[aria-current="true"] { color: var(--accent, #6557e8); font-weight: 700; }
/* 히어로 위에서는 배경이 영상이다. 본문 색을 쓰면 사라지므로 매체 고정을 쓴다. */
.councillor-topbar:not(.is-anchored) .councillor-nav a { color: var(--cine-on-media-faint); }
.councillor-topbar:not(.is-anchored) .councillor-nav a:hover,
.councillor-topbar:not(.is-anchored) .councillor-nav a[aria-current="true"] { color: var(--cine-on-media); }
#sectionProfile, #sectionActivity, #sectionMedia, #sectionNotes, #sectionSns {
  scroll-margin-top: calc(var(--cine-anchor-offset) + var(--cine-reveal-shift));
}
.councillor-badge {
  padding: 4px 10px;
  border: 1px solid var(--gold, #b8923a);
  border-radius: 999px;
  color: var(--gold, #b8923a);
  font-family: var(--cine-label-face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.councillor-ghost {
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cine-on-media-line);
  border-radius: 10px;
  background: rgba(247, 248, 250, .07);
  color: var(--cine-on-media);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.councillor-ghost:focus-visible,
.councillor-nav a:focus-visible,
.cine-primary:focus-visible,
.cine-secondary:focus-visible,
.cine-chip:focus-visible,
.cine-timeline-link:focus-visible,
.cine-link-title:focus-visible {
  outline: 2px solid var(--accent, #6557e8);
  outline-offset: 2px;
}
.councillor-topbar.is-anchored .councillor-ghost {
  border-color: var(--line, #e3e3e9);
  background: transparent;
  color: var(--muted, #6f7079);
}
.councillor-ghost:hover { color: var(--accent, #6557e8); border-color: var(--accent, #6557e8); }
.councillor-topbar:not(.is-anchored) .councillor-ghost:hover { color: var(--cine-on-media); }
.councillor-ghost[aria-pressed="true"] { border-color: var(--accent, #6557e8); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.cine-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: min(100svh, 940px);
  padding: clamp(104px, 15vh, 180px) var(--cine-pad) calc(var(--cine-pad) + 8px);
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 64px;
}
/* 소스가 16:9 이므로 박스도 16:9 로 두면 cover 가 아무것도 자르지 않습니다.
 * 넓은 화면에서 인물을 잘라온 원인은 박스가 2.04:1 로 더 넓었기 때문이다.
 * 1000px 미만은 모바일에서 확인된 기존 구도를 그대로 둔다. */
@media (min-width: 1000px) {
  .cine-hero { min-height: min(100svh, 56.25vw); }
}
.cine-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cine-film {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(130% 95% at 74% 6%, rgba(239, 201, 132, .2), transparent 56%),
    radial-gradient(95% 75% at 10% 98%, rgba(136, 201, 255, .22), transparent 60%),
    linear-gradient(156deg, #04070d 6%, #0b1420 44%, #131c2b 70%, #04070d 100%);
}
.cine-film::after {
  content: "";
  position: absolute;
  top: -30%; left: -35%;
  width: 40%; height: 160%;
  transform: rotate(14deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: cine-sweep 14s ease-in-out infinite;
}
@keyframes cine-sweep {
  0%, 64% { transform: rotate(14deg) translateX(-40%); opacity: 0; }
  72% { opacity: 1; }
  100% { transform: rotate(14deg) translateX(330%); opacity: 0; }
}
.cine-poster,
.cine-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cine-grain {
  position: absolute;
  inset: 0;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* 인물은 위 3분의 1에 있다. 위는 밝게 두고 아래로 갈수록 눌러 글자만 확보한다. */
.cine-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(4, 7, 13, .9) 0%, rgba(4, 7, 13, .58) 26%, rgba(4, 7, 13, .1) 56%, transparent 74%),
    linear-gradient(90deg, rgba(4, 7, 13, .58) 0%, rgba(4, 7, 13, .12) 46%, transparent 70%);
}
.cine-hero-inner { position: relative; width: var(--cine-measure); margin: 0 auto; max-width: 100%; }
@media (min-width: 1000px) {
  .cine-hero-inner { max-width: min(760px, 60%); }
}
.cine-eyebrow {
  margin: 0 0 16px;
  color: var(--cine-on-media);
  font-family: var(--cine-label-face);
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .92;
}
.cine-name {
  margin: 0 0 18px;
  color: var(--cine-on-media);
  font-family: var(--cine-display-face);
  font-size: clamp(52px, 10.5vw, 116px);
  font-weight: var(--cine-display-weight);
  line-height: var(--cine-display-line);
  letter-spacing: var(--cine-display-spacing);
}
.cine-lead {
  margin: 0 0 26px;
  max-width: 44ch;
  color: var(--cine-on-media-soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.62;
}
.cine-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cine-primary,
.cine-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
}
.cine-primary {
  border: 1px solid var(--accent, #6557e8);
  background: var(--accent, #6557e8);
  color: var(--accent-contrast, #fff);
}
.cine-secondary {
  border: 1px solid var(--cine-on-media-line);
  background: rgba(247, 248, 250, .08);
  color: var(--cine-on-media);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cine-primary:hover, .cine-secondary:hover { filter: brightness(1.08); }

.cine-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--cine-on-media-line);
}
.cine-hero-fact { display: grid; gap: 4px; min-width: 132px; }
.cine-hero-fact dt {
  color: var(--gold, #b8923a);
  font-family: var(--cine-label-face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cine-hero-fact dd { margin: 0; color: var(--cine-on-media); font-size: 14px; line-height: 1.5; }

.cine-media-note {
  width: var(--cine-measure);
  margin: 22px auto 0;
  color: var(--cine-on-media-faint);
  font-size: 11px;
  line-height: 1.55;
}
@media (min-width: 1000px) {
  .cine-media-note { max-width: min(760px, 60%); margin-left: max(var(--cine-pad), calc((100% - var(--cine-measure)) / 2)); }
}
.cine-cue {
  position: absolute;
  right: calc(var(--cine-pad) - 10px);
  bottom: 12px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;   /* 글자는 10px 그대로, 누르는 면만 44px 로 키운다. */
  border: 0;
  background: none;
  color: var(--cine-on-media-faint);
  font-family: var(--cine-label-face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  cursor: pointer;
  animation: cue-bob 2.8s ease-in-out infinite;
}
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── sections (본문은 테마를 그대로 따른다) ───────────────────────────── */
.cine-section {
  width: var(--cine-measure);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 140px) 0;
  border-bottom: 1px solid var(--line, #e3e3e9);
  opacity: 0;
  transform: translateY(var(--cine-reveal-shift));
  transition: opacity .6s ease, transform .6s ease;
}
.cine-section.is-in { opacity: 1; transform: none; }
.cine-kicker {
  margin: 0 0 12px;
  color: var(--accent-strong, var(--accent, #6557e8));
  font-family: var(--cine-label-face);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cine-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-family: var(--cine-display-face);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: var(--cine-display-weight);
  line-height: 1.08;
  letter-spacing: var(--cine-display-spacing);
}
.cine-source { margin: 26px 0 0; color: var(--cine-muted-strong); font-size: 12px; line-height: 1.6; }

/* 의원 소개 */
.cine-profile { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); }
.cine-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line, #e3e3e9);
}
.cine-fact {
  display: grid;
  grid-template-columns: minmax(96px, 28%) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line, #e3e3e9);
}
.cine-fact dt { color: var(--cine-muted-strong); font-size: 12px; letter-spacing: .04em; }
.cine-fact dd { margin: 0; font-size: 15px; line-height: 1.6; }
.cine-bio { display: grid; gap: 18px; font-size: clamp(15px, 1.7vw, 17px); line-height: 1.85; color: var(--muted, #4b4f57); }
.cine-bio p { margin: 0; }
.cine-bio p:first-child { color: var(--text, #19191d); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.7; }

/* 최근 의정활동 */
.cine-timeline, .cine-notes, .cine-tiles, .cine-links { margin: 0; padding: 0; list-style: none; }
.cine-timeline { border-top: 1px solid var(--line, #e3e3e9); }
.cine-timeline-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line, #e3e3e9);
}
.cine-timeline-date {
  color: var(--cine-gold-strong);
  font-family: var(--cine-label-face);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.cine-timeline-tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent-strong, var(--accent, #6557e8));
  font-family: var(--cine-label-face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cine-timeline-link {
  display: flex;
  align-items: center;
  min-height: 44px;   /* 실측 26px → 모바일 하한. 텍스트 링크라도 누르는 칸은 44px. */
  color: var(--text, #19191d);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
  text-decoration: none;
}
.cine-timeline-link:hover { color: var(--accent, #6557e8); }
.cine-timeline-link.is-plain { cursor: default; }
.cine-timeline-body { margin: 8px 0 0; color: var(--muted, #6f7079); font-size: 14px; line-height: 1.7; }

/* 영상·사진: 대표가 허용한 다크 시네마틱 밴드 */
.cine-section-media {
  width: 100%;
  padding-inline: var(--cine-pad);
  border-bottom: 0;
  background: var(--cine-media-bg);
  color: var(--cine-on-media);
}
.cine-section-media > * { max-width: var(--cine-measure); margin-inline: auto; }
.cine-section-media .cine-title { color: var(--cine-on-media); }
.cine-section-media .cine-kicker { color: var(--cine-on-media); opacity: .8; }
.cine-feature {
  display: grid;
  gap: 0;
  margin-bottom: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: var(--radius-md, 16px);
  background: rgba(247, 248, 250, .04);
}
.cine-feature-media { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--cine-media-bg); object-fit: cover; }
.cine-feature-body { padding: clamp(20px, 3vw, 32px); }
.cine-feature-kind {
  margin: 0 0 10px;
  color: var(--gold, #efc984);
  font-family: var(--cine-label-face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cine-feature-title {
  margin: 0 0 10px;
  font-family: var(--cine-display-face);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--cine-on-media);
}
.cine-feature-note { margin: 0; color: var(--cine-on-media-soft); font-size: 14px; line-height: 1.7; }
.cine-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cine-tile {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: 14px;
  background: rgba(247, 248, 250, .05);
}
.cine-tile-kind {
  color: var(--gold, #efc984);
  font-family: var(--cine-label-face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cine-tile-title { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; color: var(--cine-on-media); }
/* 실측 154x21, 189x21 — 타일 제목 링크는 문단의 유일한 자식이라 박스를 키워도 줄이 깨지지 않는다. */
.cine-tile-title a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cine-tile-title a:hover { color: var(--accent, #88c9ff); text-decoration: underline; }
.cine-tile-title.is-unlinked { color: var(--cine-on-media-faint); }
.cine-tile-note { margin: 0; color: var(--cine-on-media-soft); font-size: 12px; line-height: 1.6; }
.cine-section-media .cine-source { color: var(--cine-on-media-faint); }

/* 공식 기록 바로가기: 같은 크기의 카드를 늘리지 않고 한 목록으로 묶는다. */
.cine-links-block {
  margin-top: clamp(24px, 4vw, 40px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: var(--radius-md, 16px);
  background: rgba(247, 248, 250, .04);
}
.cine-links-title {
  margin: 0 0 10px;
  color: var(--cine-on-media-faint);
  font-family: var(--cine-label-face);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cine-link-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(247, 248, 250, .1);
}
.cine-link-row:first-child { border-top: 0; }
.cine-link-kind {
  color: var(--gold, #efc984);
  font-family: var(--cine-label-face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* 실측 20px - 의회 공개 링크 제목도 모바일 터치 하한을 맞춘다. */
.cine-link-title {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--cine-on-media);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cine-link-title:hover { color: var(--accent, #88c9ff); text-decoration: underline; }
.cine-link-title.is-unlinked { color: var(--cine-on-media-faint); }
.cine-link-arrow { color: var(--cine-on-media-faint); font-size: 13px; text-align: right; }

/* 알려드릴 사항 */
.cine-notes { border-top: 1px solid var(--line, #e3e3e9); }
.cine-note {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line, #e3e3e9);
}
.cine-note-date { color: var(--cine-muted-strong); font-family: var(--cine-label-face); font-size: 11px; letter-spacing: .08em; }
.cine-note-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.cine-note-body { margin: 0; color: var(--muted, #4b4f57); font-size: 14px; line-height: 1.75; }

/* 공식 채널 */
.cine-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.cine-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line, #e3e3e9);
  border-radius: 999px;
  background: var(--card-bg, #fff);
  color: var(--text, #19191d);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.cine-chip:hover { border-color: var(--accent, #6557e8); color: var(--accent, #6557e8); }
.cine-chip.is-unverified { opacity: .62; }
.cine-chip-flag { color: var(--muted, #6f7079); font-size: 11px; font-weight: 500; }

/* ── 하단 / 관리 경로 ─────────────────────────────────────────────────── */
.councillor-footer {
  padding: clamp(40px, 6vw, 72px) var(--cine-pad) clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line, #e3e3e9);
  background: var(--sidebar, #f1f1f5);
}
.councillor-admin { width: var(--cine-measure); margin: 0 auto clamp(28px, 4vw, 44px); }
.councillor-admin-title {
  margin: 0 0 14px;
  color: var(--cine-muted-strong);
  font-family: var(--cine-label-face);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cine-admin-gate,
.cine-admin-tools { display: grid; gap: 14px; }
.cine-admin-gate[hidden],
.cine-admin-tools[hidden] { display: none; }
.cine-admin-gate-body { margin: 0; color: var(--muted, #4b4f57); font-size: 13px; line-height: 1.7; }
.cine-admin-signin { color: var(--accent, #6557e8); font-size: 13px; font-weight: 700; text-decoration: none; justify-self: start; }
.cine-admin-signin:hover { text-decoration: underline; }
.cine-admin-note { margin: 0; color: var(--cine-muted-strong); font-size: 12px; line-height: 1.6; }
.cine-admin-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
/* 실측 68x20 / 56x20 / 94x20 — 의원3종으로 들어가는 유일한 입구가 손가락보다 작았다.
 * 박스를 44px로 세우면 border 밑선이 글자에서 19px 아래로 떨어지므로, 선을 border에서
 * text decoration으로 옮겨 라벨 바로 아래 지금 위치를 유지한다. */
.cine-admin-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text, #19191d);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--line, #e3e3e9);
}
.cine-admin-links a:hover { color: var(--accent, #6557e8); text-decoration-color: var(--accent, #6557e8); }
.councillor-footer-line {
  width: var(--cine-measure);
  margin: 0 auto;
  color: var(--cine-muted-strong);
  font-size: 12px;
  line-height: 1.7;
}
.cine-empty { color: var(--muted, #6f7079); font-size: 14px; padding: 22px 0; }
.cine-error {
  width: var(--cine-measure);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--danger, #b54949);
  border-radius: 12px;
  color: var(--danger, #b54949);
  font-size: 13px;
}

/* ── 움직임 최소화 ────────────────────────────────────────────────────── */
html[data-cine-motion="off"] .cine-film::after,
html[data-cine-motion="off"] .cine-cue { animation: none; }
html[data-cine-motion="off"] .cine-section { opacity: 1; transform: none; transition: none; }
html[data-cine-motion="off"] .cine-video { display: none; }
html[data-cine-motion="off"] .cine-poster:not([hidden]) { display: block; }
@media (prefers-reduced-motion: reduce) {
  .cine-film::after, .cine-cue { animation: none; }
  .cine-section { opacity: 1; transform: none; transition: none; }
}

/* ── 반응형 ───────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .cine-profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .cine-feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .cine-feature-media { aspect-ratio: auto; height: 100%; min-height: 340px; }
}
/* brand + actions + nav cannot share one line below the desktop breakpoint, and a
 * 207px fixed header on a 320px phone is a navigation that eats the page instead of
 * moving through it. So from 1000px down the nav takes its own full-width row and the
 * items are sized to fit 320 on one line (measured: 5 labels = 274px + gaps).
 * If a user font still forces a wrap, the script measures the real bar height, so the
 * anchor offset cannot drift. */
@media (max-width: 1000px) {
  :root { --cine-anchor-offset: 131px; }
  .councillor-topbar { flex-wrap: wrap; row-gap: 6px; }
  .councillor-nav { order: 3; width: 100%; justify-content: flex-start; }
  .councillor-nav a { padding: 0 6px; font-size: 13px; letter-spacing: -0.01em; }
}
/* 320px: brand + actions overflowed by 21px and pushed the header to a third row.
 * Trimming the ghost pill padding buys back exactly that, and min-width keeps every
 * nav target on the 44px floor without forcing a second nav row (measured 287 ≤ 292). */
@media (max-width: 360px) {
  :root { --cine-anchor-offset: 169px; }
  .councillor-ghost { padding-inline: 6px; }
  .councillor-nav { gap: 0 4px; }
  .councillor-nav a { min-width: 44px; justify-content: center; padding: 0 4px; font-size: 12px; }
}
@media (max-width: 720px) {
  /* brand + actions no longer share a line at this width: trim the ghost padding by
   * the 9px that overflowed rather than pushing the actions onto a third row. */
  .councillor-ghost { padding-inline: 10px; }

  .cine-hero { min-height: 92svh; padding-top: 120px; }
  .cine-name { font-size: clamp(46px, 17vw, 76px); }
  .cine-lead { max-width: none; }
  .cine-actions { width: 100%; }
  .cine-primary, .cine-secondary { flex: 1 1 auto; min-height: 48px; padding: 0 18px; font-size: 14px; }
  .cine-hero-facts { gap: 10px 24px; margin-top: 30px; }
  .cine-hero-fact { min-width: 44%; }
  .cine-cue { display: none; }
  .cine-timeline-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .cine-fact { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cine-tiles { grid-template-columns: minmax(0, 1fr); }
  .cine-link-row { grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 10px; }
  .councillor-badge { display: none; }
  /* 버튼 3개가 자리를 잡아 브랜드명이 잘리는 것을 막는다. */
  .councillor-ghost { padding: 7px 11px; font-size: 11px; }
  .councillor-topbar { padding: 12px 14px; gap: 8px; }
  .councillor-topbar-actions { gap: 6px; }
}
