/* ==========================================================================
   DBEW Award 2027 — 디자인 2단계 (하위 쪽 · Archive)
   기준: 디자인 기준 정돈본(2026-11-30) 기준 1–8, 'CSS 변수'의 기준 화면 값 묶음(20–24쪽),
         그림 8·9·11. 기준 화면 파일(DBEW2027_기준화면.html)은 12/2에 받음 — 받으면 차이만 맞춤
   쓰임: 모든 쪽에서 dbew2027_stage1.css 다음에 읽음 (header.php)
         Home 첫 화면·장면은 시험 서버 반영분 그대로 → 이 파일의 값은 body[data-section] 아래에서만.
         머리줄(1장)만 Home(body.page-home)에도 같게 — 4차 지시서 4장 1번
   ========================================================================== */

/* 0. 값 묶음 — 변수 이름은 tokens.css 와 같음. 새 이름: --sec · --side-w · --wall-w · --wall-gap
      · --photo-lines-h · --lh-text · --gap-section · --gap-top · --rule-strong · --rule */
body[data-section] {
  --gray-200: #c1c1c1;
  --gray-500: #757575;
  --gray-700: #424242;

  /* 글자 크기 — 기준 화면이 쓰는 역할 8개, 구간별 고정값 (1280px 이상 = 시안 1920 값) */
  --t-display-1: 7.5rem;   /* 120 */
  --t-display-2: 4rem;     /*  64 쪽 제목 */
  --t-h3:        2rem;     /*  32 리드 */
  --t-h4:        1.75rem;  /*  28 섹션 제목 */
  --t-value:     1.5rem;   /*  24 라벨 아래 값 */
  --t-body-1:    1.25rem;  /*  20 본문 · 머리줄 메뉴 */
  --t-subtitle:  1rem;     /*  16 라벨 · 사이드바 */
  --t-body-2:    0.875rem; /*  14 캡션 · 각주 · 단추 — 최소 */
  --t-body-3:    0.875rem;
  --t-body-4:    0.875rem;
  --lh-text: 1.5;          /* 본문 문단 · 목록 */

  /* 격자 */
  --cols: 12;
  --m: 40px;
  --g: 20px;
  --side-w: 290px;
  --header-h: 80px;
  --page-max: 1920px;
  --gap-section: 40px;
  --gap-top: 80px;

  /* 선 */
  --rule-strong: 5px;
  --rule: 1px;
  --wall-w: 56px;
  --wall-gap: 32px;
  --photo-lines-h: 76px;

  /* 모양 */
  --radius: 0;
  --radius-pill: 0;
  --focus-width: 2px;

  /* 역할 색 — 검정 바탕 한 벌 */
  --bg: var(--c-black);
  --fg: var(--c-white);
  --fg-muted: var(--gray-200);
  --fg-disabled: var(--gray-500);
  --line: var(--gray-700);
  --accent: var(--c-white);
  --accent-fg: var(--c-black);
  --accent-hover: var(--gray-200);
  --link: var(--c-white);
  --focus: var(--c-white);

  --sec: var(--c-white);
}
body[data-section="about"]   { --sec: var(--c-pink); }
body[data-section="award"]   { --sec: var(--c-green); }
body[data-section="jury"]    { --sec: var(--c-yellow); }
body[data-section="apply"]   { --sec: var(--c-sky); }
body[data-section="archive"] { --sec: var(--c-white); }

/* 화면 구간 744–1279px — 8단 */
@media (max-width: 1279.98px) {
  body[data-section] {
    --cols: 8;
    --m: 32px;
    --header-h: 64px;
    --t-display-1: 6rem;
    --t-display-2: 3rem;
    --t-h3: 1.625rem;
    --t-h4: 1.5rem;
    --t-value: 1.25rem;
    --t-body-1: 1.125rem;
  }
}
/* 화면 구간 360–743px — 4단 */
@media (max-width: 743.98px) {
  body[data-section] {
    --cols: 4;
    --m: 20px;
    --g: 16px;
    --t-display-1: 4rem;
    --t-display-2: 2.5rem;
    --t-h3: 1.375rem;
    --t-h4: 1.375rem;
    --t-value: 1.125rem;
    --t-body-1: 1rem;
  }
}

/* 선 세 가지 — 벽 선(세로, 본문 쪽이 굵음) · 머리 선(가로, 아래가 굵음) · 사진 선(가로, 아래가 굵음) */
.wall-lines,
body[data-section] .site-footer::before {
  background: linear-gradient(to right,
    color-mix(in srgb, var(--sec) 42%, transparent) 0 1px,   transparent 1px 8px,
    color-mix(in srgb, var(--sec) 54%, transparent) 8px 10px,  transparent 10px 17px,
    color-mix(in srgb, var(--sec) 65%, transparent) 17px 20px, transparent 20px 27px,
    color-mix(in srgb, var(--sec) 77%, transparent) 27px 31px, transparent 31px 38px,
    color-mix(in srgb, var(--sec) 88%, transparent) 38px 43px, transparent 43px 50px,
    var(--sec) 50px 56px);
}
.wall-lines--top {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--sec) 42%, transparent) 0 1px,   transparent 1px 8px,
    color-mix(in srgb, var(--sec) 54%, transparent) 8px 10px,  transparent 10px 17px,
    color-mix(in srgb, var(--sec) 65%, transparent) 17px 20px, transparent 20px 27px,
    color-mix(in srgb, var(--sec) 77%, transparent) 27px 31px, transparent 31px 38px,
    color-mix(in srgb, var(--sec) 88%, transparent) 38px 43px, transparent 43px 50px,
    var(--sec) 50px 56px);
}
.photo-lines {
  background: linear-gradient(to bottom,
    var(--sec) 0 1px,     transparent 1px 11px,
    var(--sec) 11px 13px, transparent 13px 22px,
    var(--sec) 22px 25px, transparent 25px 33px,
    var(--sec) 33px 37px, transparent 37px 44px,
    var(--sec) 44px 49px, transparent 49px 55px,
    var(--sec) 55px 62px, transparent 62px 66px,
    var(--sec) 66px 75px, transparent 75px 76px);
}


/* Home 머리줄도 하위 쪽과 같게 (4차 지시서 4장 1번) — 값은 머리줄 안에서만 바꿈.
   Home 첫 화면 글자 크기 등은 tokens.css 그대로이고, 머리줄 높이(--header-h)만 body에 둠(첫 화면 위 여백이 따라옴) */
body.page-home { --header-h: 80px; }
body.page-home .site-header {
  --gray-200: #c1c1c1;
  --gray-500: #757575;
  --gray-700: #424242;
  --t-body-1: 1.25rem;
  --t-subtitle: 1rem;
  --t-body-2: 0.875rem;
  --rule: 1px;
  --sec: var(--c-white);
}
@media (max-width: 1279.98px) {
  body.page-home { --header-h: 64px; }
  body.page-home .site-header { --t-body-1: 1.125rem; }
}
@media (max-width: 743.98px) {
  body.page-home .site-header { --t-body-1: 1rem; }
}

/* 1. 머리줄 — 검정 · 높이 80(1280 미만 64) · 흰 심볼(높이 40) + 'DBEW Award 2027' 한 줄
      메뉴 Body Medium · 현재 메뉴 2px 밑줄(메뉴 색) · 언어 Label(선택 흰색 Bold, 나머지 Gray-200) · Apply Here
      정돈본 기준 6 '머리줄' · '현재 메뉴', 그림 9 · 11
      흰 심볼: 제1회 디자인 가이드 단색 심볼 PNG(11/30 받음) — SVG는 키비주얼 팀에서 받는 대로 교체 */
:is(body[data-section], body.page-home) .site-header { background: var(--c-black); color: var(--c-white); }
:is(body[data-section], body.page-home) .site-header__bar { min-height: var(--header-h); padding-inline: var(--m); }
:is(body[data-section], body.page-home) .site-logo { align-items: center; gap: 12px; }
:is(body[data-section], body.page-home) .site-logo__icon {
  width: auto; height: 40px; flex-shrink: 0; margin-right: 0;   /* home.css의 심볼 오른쪽 4px 없앰 — 사이는 gap 하나로 */
  filter: none;   /* 흰 심볼 파일(symbol-white.png)을 그대로 씀 */
}
:is(body[data-section], body.page-home) .site-logo__mark,
:is(body[data-section], body.page-home) .site-logo__sub { display: none; }
:is(body[data-section], body.page-home) .site-logo__full {
  display: inline;
  font-size: var(--t-body-1);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
:is(body[data-section], body.page-home) .lang__btn {
  min-width: 2.5rem; min-height: 2.5rem; padding: 0 4px;
  font-size: var(--t-subtitle);
  color: var(--gray-200);
  text-decoration: none;
}
:is(body[data-section], body.page-home) .lang__btn[aria-pressed="true"] { color: var(--c-white); font-weight: var(--fw-bold); text-decoration: none; }
:is(body[data-section], body.page-home) .lang__btn:hover { color: var(--c-white); }
:is(body[data-section], body.page-home) .site-header__apply {
  min-height: 44px; padding-inline: 16px;
  font-size: var(--t-body-2); font-weight: var(--fw-medium);
}
:is(body[data-section], body.page-home) .menu__link,
:is(body[data-section], body.page-home) .menu__sub a { transition: color .15s, text-decoration-color .15s; }

@media (min-width: 1280px) {
  /* 로고 뒤부터 오른쪽 끝까지 메뉴 5개 · 언어 · Apply Here를 같은 간격으로 벌림 (11/30 요청)
     메뉴 묶음을 풀어(display: contents) 머리줄 한 줄의 항목으로 — 하위 메뉴 펼침은 각 메뉴 항목 기준 그대로 */
  :is(body[data-section], body.page-home) .site-header__bar { justify-content: space-between; gap: 24px; }
  :is(body[data-section], body.page-home) .site-logo { margin-right: 0; }
  :is(body[data-section], body.page-home) .site-nav,
  :is(body[data-section], body.page-home) .menu { display: contents; }
  :is(body[data-section], body.page-home) .menu__link {
    padding-block: 26px;                      /* 높이 80 안에서 하위 메뉴로 내려가는 길 */
    font-size: var(--t-body-1);
    font-weight: var(--fw-medium);
    letter-spacing: 0;
    text-decoration: underline 2px transparent;
    text-underline-offset: 10px;
  }
  :is(body[data-section], body.page-home) .menu__link:hover { text-decoration-color: var(--c-white); }
  :is(body[data-section], body.page-home) .menu__item.is-current > .menu__link {
    text-decoration: underline 2px var(--sec);
    text-underline-offset: 10px;
  }
  :is(body[data-section], body.page-home) .lang { gap: 0; }
  :is(body[data-section], body.page-home) .menu__sub {
    border: var(--rule) solid var(--gray-700);
    border-top: 2px solid var(--sec);
  }
  :is(body[data-section], body.page-home) .menu__sub a { font-size: var(--t-subtitle); color: var(--gray-200); }
  :is(body[data-section], body.page-home) .menu__sub a:hover,
  :is(body[data-section], body.page-home) .menu__sub a[aria-current="page"] { color: var(--c-white); text-decoration: none; }
  :is(body[data-section], body.page-home) .menu__sub a[aria-current="page"] { font-weight: var(--fw-bold); }
}
@media (max-width: 1279.98px) {
  :is(body[data-section], body.page-home) .site-logo__icon { height: 32px; }
  :is(body[data-section], body.page-home) .site-logo__full { font-size: var(--t-subtitle); }
}
@media (max-width: 743.98px) {   /* 390: 심볼 + 이름 + Apply Here + 메뉴 단추(글자는 화면 읽기용으로만) — 그림 9 */
  :is(body[data-section], body.page-home) .site-header__bar { gap: 8px; }
  :is(body[data-section], body.page-home) .site-logo { gap: 8px; }
  :is(body[data-section], body.page-home) .site-logo__icon { height: 28px; }
  :is(body[data-section], body.page-home) .site-header__apply { min-height: 40px; padding-inline: 12px; }
  :is(body[data-section], body.page-home) .site-header__apply .btn__arrow { display: none; }
  :is(body[data-section], body.page-home) .menu-button { padding-inline: 8px; }
  :is(body[data-section], body.page-home) .menu-button__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* 2. 하위 쪽 틀 — 사이드바 290 + 벽 선 + 본문 (정돈본 기준 2, 그림 11)
      1920 기준: 여백 40 · 사이드바 40–330 · 벽 선 x 262–318(본문 왼쪽 끝에서 32 띄우고 폭 56) · 본문 x 350부터
      본문 왼쪽 끝은 모든 하위 쪽에서 3단 — 사진이 없는 쪽도 가운데로 옮기지 않음 */
.frame {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--m);
}
.frame__top { display: none; }
.frame__body { container-type: inline-size; }
/* 본문 격자 — 1280 이상 10단(쪽 3–12단), 그 아래는 본문 전체가 한 덩어리(8단 · 4단 화면)
   --col: 한 단 폭 · --text-w: 글 6단(쪽 3–8단, 1920에서 910) · --photo-w: 사진 3단(쪽 10–12단, 1920에서 445) */
.frame__body > * {
  --col: calc((100cqw - 9 * var(--g)) / 10);
  --text-w: calc(6 * var(--col) + 5 * var(--g));
  --photo-w: calc(3 * var(--col) + 2 * var(--g));
}
@media (max-width: 1279.98px) {
  .frame__body > * { --col: calc((100cqw - 7 * var(--g)) / 8); --text-w: 100%; --photo-w: calc(4 * var(--col) + 3 * var(--g)); }
}
@media (max-width: 743.98px) {
  .frame__body > * { --photo-w: 100%; }
}
.frame__head { max-width: var(--text-w); }
.frame__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-display-2);
  font-weight: var(--fw-black);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.frame__head .lead {
  margin: var(--gap-section) 0 0;
  font-size: var(--t-h3);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
}
.frame__head::after {            /* 첫 구분선 — 흰색 5px */
  content: "";
  display: block;
  margin-top: var(--gap-section);
  border-top: var(--rule-strong) solid var(--c-white);
}

/* 사이드바 — 메뉴 이름(Label Bold) + 하위 쪽 목록(Label, 12px 들여 씀), 현재 쪽 흰색 Bold · 나머지 Gray-200 */
.side { font-size: var(--t-subtitle); line-height: var(--lh-snug); }
.side__top { margin: 0 0 8px; font-weight: var(--fw-bold); }
.side a { position: relative; display: inline-block; padding-block: 5px; color: var(--gray-200); text-decoration: none; transition: color .15s; }
.side a::after { content: ""; position: absolute; inset: -5px -6px; }   /* 누르는 영역 40px 이상 */
.side a:hover, .side a[aria-current] { color: var(--c-white); }
.side a[aria-current] { font-weight: var(--fw-bold); }
.side__top a { color: var(--c-white); }
.side__list, .side__kids { list-style: none; margin: 0; padding: 0 0 0 12px; }
.side__list > li + li { margin-top: 4px; }
.side__kids { margin-top: 4px; }
.side__kids > li + li { margin-top: 4px; }

/* 이전 · 다음 — Body Medium, 첫 쪽의 Previous는 Gray-500 */
.pager { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--t-body-1); font-weight: var(--fw-medium); line-height: var(--lh-snug); }
.pager__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--c-white); text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .15s; }
a.pager__link:hover { text-decoration-color: var(--c-white); }
.pager__link.is-off { color: var(--gray-500); }

/* 지난 틀의 줄무늬 · 띠는 그리지 않음 (정돈본 기준 3 '2단계에서 없어지는 선') */
.frame .section__bundle,
.frame .section__band { display: none; }

@media (min-width: 1280px) {
  .frame {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    column-gap: var(--g);
  }
  .frame__side {
    grid-column: 1;
    position: sticky;
    top: var(--header-h);
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--gap-section);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    /* 사이드바 첫 줄은 쪽 제목 가운데 높이 */
    padding-top: calc(var(--gap-top) + (var(--t-display-2) - var(--t-subtitle)) * var(--lh-snug) / 2);
    padding-bottom: var(--gap-section);
    /* 벽 선 앞에서 멈춤 */
    max-width: calc(var(--side-w) + var(--g) - var(--wall-gap) - var(--wall-w) - 16px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .frame__wall {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--m) + var(--side-w) + var(--g) - var(--wall-gap) - var(--wall-w));
    width: var(--wall-w);
  }
  .frame__body {
    grid-column: 2;
    min-width: 0;
    padding-top: var(--gap-top);
    padding-bottom: var(--gap-top);
  }
  .frame__pager { display: none; }
}

/* 1280px 미만 — 머리 선(벽 선을 머리줄 아래 가로로, 높이 56) → 하위 메뉴 줄 → 쪽 제목 → 본문 → 이전 · 다음 */
@media (max-width: 1279.98px) {
  .frame__top { display: block; height: var(--wall-w); margin-inline: calc(-1 * var(--m)); }
  .frame__wall { display: none; }
  .frame__side { display: contents; }
  .frame__side > .pager { display: none; }
  .side { margin-inline: calc(-1 * var(--m)); border-bottom: var(--rule) solid var(--gray-700); }
  .side__top { display: none; }
  .side__list {
    display: flex;
    gap: 0 24px;
    padding: 0 var(--m);
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .side__list::-webkit-scrollbar { display: none; }
  .side__list > li + li { margin-top: 0; }
  .side a { padding-block: 12px; }
  .side a::after { inset: 0 -12px; }
  .side__kids { display: none; }
  .frame__body { padding-top: var(--gap-section); padding-bottom: var(--gap-top); }
  .frame__pager { margin-top: var(--gap-section); }
}
@media (max-width: 389.98px) {   /* 360: 이름이 Apply Here 밑으로 들어가지 않게 */
  :is(body[data-section], body.page-home) .site-logo__full { font-size: var(--t-body-2); }
  :is(body[data-section], body.page-home) .site-logo__icon { height: 24px; }
}

/* 3. 본문 구성 요소 (정돈본 기준 6, 그림 8 · 11) — 색은 섹션 제목 글자에만(메뉴 색), 나머지 흰색 · 회색
      글 폭 --text-w(6단, 1920에서 910), 카드는 본문 폭 전체(3열, 1920에서 497) */
.frame .section:not(.section--cards) { max-width: var(--text-w); }
.frame .section { padding-block: var(--gap-section); border-bottom: var(--rule) solid var(--gray-700); scroll-margin-top: calc(var(--header-h) + 16px); }
.frame .section:last-of-type { border-bottom: 0; }
.frame .content > * { max-width: var(--text-w); }
.frame .content > * + * { margin-top: 16px; }
.frame .content,
.frame .content p,
.frame .content li { font-size: var(--t-body-1); line-height: var(--lh-text); }
.frame .content h2 {
  margin: 0 0 24px;
  font-size: var(--t-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--sec);
}
.frame .content h2 + * { margin-top: 0; }
/* 라벨 + 값 — Label Bold(16) + Value(24), 묶음 사이 24. 값이 한 문단일 때만 Value 크기 */
.frame .content h3,
.frame .content h4 { margin-top: 24px; font-size: var(--t-subtitle); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.frame .content > h2 + h3 { margin-top: 0; }
.frame .content > h3 + * { margin-top: 4px; }
.frame .content > h3 + p:is(:last-child, :has(+ h3), :has(+ h2)) { font-size: var(--t-value); line-height: var(--lh-snug); }
.frame .content ul, .frame .content ol { padding-left: 1.25em; }
.frame .content li + li { margin-top: 8px; }
.frame .content li::marker { color: var(--c-white); }
.frame .content a { color: var(--c-white); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.frame .content a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--c-white); }
.frame .content > hr { height: 0; margin: var(--gap-section) 0; border: 0; border-top: var(--rule) solid var(--gray-700); background: none; }
.frame .content blockquote { padding-left: 24px; border-left: var(--rule) solid var(--gray-700); font-size: var(--t-value); line-height: var(--lh-snug); }
.frame .content figcaption,
.frame .content small,
.frame .note { font-size: var(--t-body-2); line-height: var(--lh-body); color: var(--gray-200); }
.frame .content figure img:not([src*="organizer/"]):not([src*="logo"]) { filter: grayscale(1); }   /* 행사 · 인물 사진 흑백 (원본 그대로) */

/* 표 줄 — 라벨 2단 + 값 4단, 줄 사이 Gray-700 1px, 줄 위 · 아래 16 */
.frame .content > .table-wrap { max-width: var(--text-w); }
.frame .content table { width: 100%; border-collapse: collapse; }
.frame .content th,
.frame .content td {
  padding: 16px 16px 16px 0;
  border-top: var(--rule) solid var(--gray-700);
  font-size: var(--t-body-1);
  line-height: var(--lh-snug);
  text-align: left;
  vertical-align: top;
}
.frame .content tr:last-child > * { border-bottom: var(--rule) solid var(--gray-700); }
.frame .content thead th { padding-top: 0; border-top: 0; font-size: var(--t-body-2); font-weight: var(--fw-regular); color: var(--gray-200); }
.frame .content thead tr:last-child > * { border-bottom: 0; }
.frame .content td:first-child,
.frame .content tbody th:first-child { width: 33.33%; min-width: 7em; padding-top: 19px; font-size: var(--t-subtitle); font-weight: var(--fw-bold); }

/* FAQ · 파일 목록 — 줄 사이 Gray-700 1px, 펼침 표시 흰색 */
.frame .content > .faq { max-width: var(--text-w); border-top: var(--rule) solid var(--gray-700); }
.frame .content > .faq + .faq { margin-top: 0; }
.frame .content > .faq:not(:has(+ .faq)) { border-bottom: var(--rule) solid var(--gray-700); }
.frame .faq summary { padding-block: 16px; }
.frame .faq summary h3 { margin: 0; font-size: var(--t-body-1); }
.frame .faq summary::after { color: var(--c-white); font-weight: var(--fw-regular); }
.frame .faq__a { padding-bottom: 24px; }
.frame .content .downloads { list-style: none; padding: 0; border-bottom: var(--rule) solid var(--gray-700); }
.frame .content .downloads > :where(li) { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 0; padding-block: 16px; border-top: var(--rule) solid var(--gray-700); }
.frame .downloads__meta { font-size: var(--t-body-2); color: var(--gray-200); }

/* 카드 — 3열(폭 497 · 사이 20): 라벨(Label, 메뉴 색) → 제목(Body Bold) → 설명(Small · Gray-200) */
.frame .section--cards { border-bottom: 0; }
.frame .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--g); margin: 0; padding: 0; list-style: none; }
.frame .card__link {
  display: grid; align-content: start; gap: 4px; height: 100%;
  padding: 16px 0 24px;
  border-top: var(--rule) solid var(--gray-700);
  color: var(--c-white); text-decoration: none;
}
.frame .card__no { font-size: var(--t-subtitle); font-weight: var(--fw-bold); letter-spacing: 0; color: var(--sec); }
.frame .card__no::before { content: "Area "; }
.frame .card__title { font-size: var(--t-body-1); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.frame .card__text { font-size: var(--t-body-2); line-height: var(--lh-body); color: var(--gray-200); }
.frame a.card__link:hover .card__title { text-decoration: underline 2px; text-underline-offset: 0.2em; }
/* 번호 라벨은 분야 카드에만 — 다른 목록(Notice · Prizes 등)은 번호 없이 */
body:not(.page-design-fields) .frame .card__no { display: none; }

/* Jury — 사진 없는 목록 줄: 이름(Body Bold) 2단 + 소속(Small · Gray-200) 4단 */
body.page-jury .frame .cards { grid-template-columns: minmax(0, 1fr); max-width: var(--text-w); border-bottom: var(--rule) solid var(--gray-700); }
body.page-jury .frame .card__link { grid-template-columns: 2fr 4fr; align-items: baseline; gap: 4px var(--g); padding: 16px 0; }
body.page-jury .frame .card__text { grid-column: 2; grid-row: 1; }

/* 쪽 끝 — 접수 기간 + Apply Here */
.frame .section--next { margin-top: var(--gap-section); padding-top: var(--gap-section); border-top: var(--rule) solid var(--gray-700); border-bottom: 0; }
.frame .next__period { font-size: var(--t-body-1); font-weight: var(--fw-bold); }
.frame .l10n-note { margin: var(--gap-section) 0 0; max-width: var(--text-w); padding: 12px 16px; border: var(--rule) solid var(--gray-700); font-size: var(--t-body-2); color: var(--gray-200); }

@media (max-width: 1279.98px) {
  .frame .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 743.98px) {
  .frame .cards { grid-template-columns: minmax(0, 1fr); }
  body.page-jury .frame .card__link { grid-template-columns: minmax(0, 1fr); }
  body.page-jury .frame .card__text { grid-column: 1; grid-row: 2; }
  /* 표 줄: 라벨 위 · 값 아래 */
  .frame .content table, .frame .content tbody, .frame .content tr, .frame .content td, .frame .content tbody th { display: block; width: auto; }
  .frame .content thead { display: none; }
  .frame .content tr { border-top: var(--rule) solid var(--gray-700); padding-block: 16px; }
  .frame .content tr:last-child { border-bottom: var(--rule) solid var(--gray-700); }
  .frame .content td, .frame .content tbody th { padding: 0; border: 0 !important; }
  .frame .content td:first-child, .frame .content tbody th:first-child { padding: 0 0 4px; }
}

/* 4. Archive — 하위 쪽과 같은 틀 (정돈본 2단계 11번). 색 면 · 회차 색 · 등급 색 없음, 수상작 이미지는 원색 4:3 · 사진 선 없음 */
/* 라벨 + 값 묶음 — Label Bold(16) + Value(24), 묶음 사이 24, 라벨 끝 쌍점 없음 */
.frame .kv { display: grid; gap: 24px; margin: 0; }
.frame .kv > div { margin: 0; }
.frame .kv dt { font-size: var(--t-subtitle); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.frame .kv dd { margin: 4px 0 0; font-size: var(--t-value); line-height: var(--lh-snug); }
.frame .kv--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--g); }
.frame .content > * + .kv { margin-top: 24px; }
.frame .content > .kv + * { margin-top: var(--gap-section); }

/* 목록 줄 — 라벨 2단 + 값 4단, 줄 사이 Gray-700 1px */
.frame .content .rows2 { list-style: none; padding: 0; border-bottom: var(--rule) solid var(--gray-700); }
.frame .content .rows2 > li { display: grid; grid-template-columns: 2fr 4fr; gap: 4px var(--g); margin: 0; padding-block: 16px; border-top: var(--rule) solid var(--gray-700); align-items: baseline; }
.rows2__key { font-size: var(--t-subtitle); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.rows2__val { font-size: var(--t-body-1); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.rows2__val small { display: block; margin-top: 4px; font-size: var(--t-body-2); color: var(--gray-200); }
.rows2__val--muted { font-size: var(--t-body-2); line-height: var(--lh-body); color: var(--gray-200); }

/* 진행 단계 — 지금 단계는 흰색 Bold, 나머지 Gray-200 (색 면 없음) */
.frame .content .steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 0; }
.frame .content .steps > li { margin: 0; color: var(--gray-200); font-size: var(--t-body-1); }
.frame .content .steps > li.is-now { color: var(--c-white); font-weight: var(--fw-bold); }
.steps__no { font-size: var(--t-subtitle); font-weight: var(--fw-bold); }

/* 회차 카드 · 작품 카드 — 3열, 라벨(Label, 메뉴 색) → 제목(Body Bold) → 설명(Small · Gray-200) */
.frame .card__label { font-size: var(--t-subtitle); font-weight: var(--fw-bold); color: var(--sec); }
.frame .works__level { margin: var(--gap-section) 0 16px; font-size: var(--t-subtitle); font-weight: var(--fw-bold); }
.frame .content + .works__level { margin-top: 0; }
.works__n { font-weight: var(--fw-regular); color: var(--gray-200); }
.frame .works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--g); margin: 0; padding: 0; list-style: none; }
.frame .work { margin: 0; }
.frame .work__link { display: block; color: var(--c-white); text-decoration: none; }
.frame .work__img { display: block; aspect-ratio: 4 / 3; background: var(--gray-700); overflow: hidden; }
.frame .work__img img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.frame .work__label { margin: 16px 0 0; font-size: var(--t-subtitle); font-weight: var(--fw-bold); color: var(--sec); }
.frame .work__title { margin: 4px 0 0; font-size: var(--t-body-1); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.frame a.work__link:hover .work__title { text-decoration: underline 2px; text-underline-offset: 0.2em; }
.frame .work__text { margin: 4px 0 0; font-size: var(--t-body-2); line-height: var(--lh-body); color: var(--gray-200); }
.frame .works-fold { margin-top: var(--gap-section); border-top: var(--rule) solid var(--gray-700); }
.frame .works-fold > summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-block: 8px; cursor: pointer; list-style: none; }
.frame .works-fold > summary::-webkit-details-marker { display: none; }
.frame .works-fold > summary::after { content: "+"; font-size: var(--t-body-1); }
.frame .works-fold[open] > summary::after { content: "–"; }
.frame .works-fold > summary .works__level { margin: 0; }
.frame .works-fold > .works { margin-top: 16px; }
.frame .work-cover { margin: var(--gap-section) 0 0; max-width: var(--text-w); }
.frame .work-cover img { display: block; width: 100%; height: auto; }
.frame .work-player video { width: 100%; height: auto; background: #000; }

@media (max-width: 1279.98px) {
  .frame .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 743.98px) {
  .frame .works { grid-template-columns: minmax(0, 1fr); }
  .frame .kv--two { grid-template-columns: minmax(0, 1fr); }
  .frame .content .rows2 > li { grid-template-columns: minmax(0, 1fr); }
}
.frame .section:has(+ .section--next) { border-bottom: 0; }   /* 쪽 끝 위 선이 두 줄이 되지 않게 */

/* 회차 쪽 그 해 로고 — 흰 바탕 판 그림을 흰 면에 (Organizer 쪽 그림처럼, 이지성 11/30 22:14 메일) */
.frame .edition-logo { width: min(240px, 60%); margin: 0 0 var(--gap-section); background: var(--c-white); }
.frame .edition-logo img { display: block; width: 100%; height: auto; }

/* 5. 글 + 사진 두 단 (정돈본 기준 2 · 5, 그림 9 About) — 줄글·사진 쪽
      1280 이상: 글 3–8단(폭 910) + 사진 10–12단(폭 445), 사진은 구역 맨 위부터
      744–1279: 글 → 사진(4단) / 360–743: 사진 전체 폭
      구역의 첫 사진 한 장만 옆으로. 흑백 + 사진 선(아래 76px 안, 메뉴 색). 로고 · 높이 240 미만은 사진 선 없음
      사진 표시(figure.photo)는 dbew_items가 붙임 — Panel에서 Image 블록을 넣으면 저절로 */
.frame .section:has(> .content > figure.photo) { max-width: none; }
.frame .section:has(> .content > figure.photo):not(:last-of-type) {   /* 구역 아래 선은 다른 구역처럼 글 6단까지 */
  border-bottom: 0;
  background: linear-gradient(var(--gray-700), var(--gray-700)) left bottom / var(--text-w) var(--rule) no-repeat;
}
.frame .content > figure.photo { position: relative; display: grid; }
.frame .content > figure.photo > :is(img, a) { grid-area: 1 / 1; }
.frame .content > figure.photo img { display: block; width: 100%; height: auto; filter: grayscale(1); }
.frame .content > figure.photo > figcaption { grid-area: 2 / 1; margin-top: 8px; font-size: var(--t-body-2); line-height: var(--lh-body); color: var(--gray-200); }
.frame .content > figure.photo::after {
  content: ""; grid-area: 1 / 1; align-self: end; height: var(--photo-lines-h); pointer-events: none;
  position: relative; z-index: 1;   /* 흑백 filter가 그림을 위로 올리므로 선을 그 위에 */
  background: linear-gradient(to bottom,
    var(--sec) 0 1px,     transparent 1px 11px,
    var(--sec) 11px 13px, transparent 13px 22px,
    var(--sec) 22px 25px, transparent 25px 33px,
    var(--sec) 33px 37px, transparent 37px 44px,
    var(--sec) 44px 49px, transparent 49px 55px,
    var(--sec) 55px 62px, transparent 62px 66px,
    var(--sec) 66px 75px, transparent 75px 76px);
}
@media (min-width: 1280px) {
  .frame .section:has(> .content > figure.photo) > .content {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));   /* 본문 10단 = 쪽 3–12단 */
    column-gap: var(--g);
    align-items: start;
  }
  .frame .section:has(> .content > figure.photo) > .content > * { grid-column: 1 / span 6; margin-top: 0; max-width: none; }   /* 글 6단 = 쪽 3–8단 */
  .frame .section:has(> .content > figure.photo) > .content > * + * { margin-top: 16px; }
  /* 구역의 첫 사진만 오른쪽 단, 구역 맨 위부터 */
  .frame .content > figure.photo:not(figure.photo ~ figure.photo) {
    grid-column: 8 / span 3; grid-row: 1 / span 40; margin-top: 0 !important; max-width: none;   /* 사진 3단 = 쪽 10–12단 */
  }
  .frame .content > figure.photo:not(figure.photo ~ figure.photo) img { aspect-ratio: 3 / 4; object-fit: cover; }   /* 본문 옆 사진 3:4 (정돈본 기준 5) */
}
@media (min-width: 744px) and (max-width: 1279.98px) {
  .frame .content > figure.photo { max-width: var(--photo-w); }   /* 4단(8단 중) */
}

/* 6. 하단 — 1280 이상은 본문 단 아래(쪽 3–12단), 벽 선이 쪽 끝까지 이어짐 (정돈본 기준 2 '하단', 그림 11). 내용은 1단계 그대로 */
@media (min-width: 1280px) {
  body[data-section] .site-footer {
    position: relative;
    max-width: var(--page-max);
    margin-inline: auto;
    padding: 0 var(--m) 0 calc(var(--m) + var(--side-w) + var(--g));
    border-top: 0;
  }
  body[data-section] .site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--m) + var(--side-w) + var(--g) - var(--wall-gap) - var(--wall-w));
    width: var(--wall-w);
  }
  body[data-section] .site-footer__inner {
    max-width: none;
    margin: 0;
    padding: var(--gap-section) 0;
    border-top: var(--rule) solid var(--gray-700);
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  body[data-section] .site-footer__col--contact { grid-column: 1 / 5; }
  body[data-section] .site-footer__partners { grid-column: 5 / -1; }
  body[data-section] .frame__body { padding-bottom: var(--gap-section); }
}
