/* 출제진(QA)·검수진(RA) 모집 페이지 전용 — /recruit/QA, /recruit/RA (scripts/build_recruit.py).
   Every rule sits under main.recruit, so no other page is touched. Colours, type and spacing are the shared tokens of
   colors.css · typography.css · spacing.css · components.css (integrate.css loads them); nothing new is defined here
   except the dark-section values local to .band-dark. Moved 2026-11-12 from the separate 모집 사이트 (same values). */

/* top bar on the recruiting pages only (인사팀 2026-11-12): the logo plus '출제진 모집 · 검수진 모집', as on the separate
   recruiting site. site_shell.recruit_header() adds .recruit-nav; the book menu, search and mobile menu stay in the page for
   integrate.js but are hidden here. Every other page keeps the shared top bar. */
.recruit-page .global-header .desktop-nav, .recruit-page .global-header [data-search],
.recruit-page .global-header .mobile-toggle, .recruit-page .global-header .mobile-menu { display: none !important; }
.recruit-page .recruit-nav { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.recruit-page .recruit-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--type-note); line-height: var(--leading-body);
  color: var(--color-text-secondary); white-space: nowrap; }   /* 44px tap height */
.recruit-page .recruit-nav a[aria-current="page"] { color: var(--color-text-primary); font-weight: 600; }
@media (hover: hover) { .recruit-page .recruit-nav a:hover { color: var(--color-text-primary); text-decoration: none; } }
@media (max-width: 359px) { .recruit-page .recruit-nav { gap: var(--space-3); } }
/* bottom bar: only the last row of the shared footer, copyright left and the privacy policy right, as on the separate
   recruiting site (인사팀 2026-11-09 / 2026-11-12). site_shell.shell() writes .recruit-footer for /recruit/ pages only. */
.recruit-page .recruit-footer { padding: 25px 0; }
.recruit-page .recruit-footer .footer-bottom { align-items: center; padding-top: 0; border-top: 0; }
.recruit-page .recruit-footer .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }   /* 44px tap height */
.recruit-page .recruit-footer-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: var(--space-6); }
/* the logo is not a link on these pages (the home page link is in the bottom bar) */
.recruit-page .global-header span.wordmark { cursor: default; }

.recruit { display: block; font-size: var(--type-body); line-height: var(--leading-body); word-break: keep-all; overflow-wrap: break-word;
  text-wrap: pretty; }   /* no lone short last line; build_recruit.py glue() decides where a line may break (user 2026-11-11) */
.recruit:focus { outline: none; }
.recruit [id] { scroll-margin-top: calc(var(--global-header-height) + var(--space-6)); }
.recruit .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.recruit .nowrap { white-space: nowrap; }
/* PC: a line breaks between clauses (build_recruit.py clauses()); from 768px only in the full-width answers and notes,
   since the 740px-wide columns there fit a 40-character clause and the narrower ones (전형 절차 at 768px) do not */
@media (min-width: 768px) { .recruit .qa .cl, .recruit .pay-note .cl { white-space: nowrap; } }
@media (min-width: 1024px) { .recruit .cl { white-space: nowrap; } }
.recruit :where(a, button, summary):focus-visible { outline: var(--ui-focus-width) solid var(--color-focus); outline-offset: var(--ui-focus-offset); }
.recruit a:hover { text-decoration: none; }

/* the page waits for its font pieces (at most 2 s) instead of drawing letters in a fallback face first (build_recruit.py) */
html.rc-wait body.recruit-page { visibility: hidden; }

/* the period and the apply buttons wait for the server time (recruit.js); if the script never runs they show as built */
.recruit .rc-pending { visibility: hidden; animation: rc-reveal 0s 4s forwards; }
@keyframes rc-reveal { to { visibility: visible; } }

/* colors.css — dark theme, local to a section */
.recruit .band-dark {
  --color-background: #111114; --color-surface: #1c1c1f; --color-surface-raised: #25252a;
  --color-text-primary: #f5f5f7; --color-text-secondary: #c7c7cc; --color-text-muted: #b1b1b8;
  --color-border: #45454d; --color-border-strong: #8c8c95;
  --color-action: #f5f5f7; --color-on-action: #1d1d1f; --color-action-hover: #dedee3;
  --color-link: #91c5ff; --color-link-hover: #b7d9ff; --color-focus: #91c5ff;
  --color-disabled: #2c2c32; --color-on-disabled: #b1b1b8; --color-control-hover: #35353c;
}

/* sections and their headings: Paperlogy h2 → lead → actions */
.recruit .band { padding: var(--section-space) 0; text-align: center; background: var(--color-background); color: var(--color-text-primary); }
.recruit .band-gray { background: var(--color-surface); }
.recruit .band-role { background: var(--color-editorial-soft); }
.recruit .inner { width: 100%; max-width: calc(var(--content-max) + 2 * var(--page-gutter)); margin: 0 auto; padding: 0 var(--page-gutter); }
.recruit .narrow { max-width: 760px; margin: var(--content-gap) auto 0; text-align: left; }
.recruit .head { max-width: 780px; margin: 0 auto; }
.recruit .title { margin: 0; font-family: var(--font-display); font-size: var(--type-section); font-weight: 700; line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading); text-wrap: balance; }
.recruit h1.title { font-size: var(--type-title); }
.recruit .tagline { margin: var(--heading-gap) 0 0; font-size: var(--type-lead); line-height: var(--leading-body); text-wrap: balance; }

/* buttons — components.css values */
.recruit .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: var(--space-5); }
.recruit .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--ui-control-height);
  padding: var(--ui-control-padding-y) var(--ui-control-padding-x); border: 0; border-radius: var(--ui-radius-button);
  font-size: var(--type-button); font-weight: 600; line-height: 1.4; text-align: center; cursor: pointer; }
.recruit .btn-primary { background: var(--color-action); color: var(--color-on-action); }
.recruit .btn-outline { background: transparent; color: var(--color-text-primary); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.recruit .btn-apply:not(.is-disabled) span:first-child::after { content: ' ↗'; }
.recruit .btn-apply[download]:not(.is-disabled) span:first-child::after { content: ' ↓'; }   /* a file that downloads at once */
.recruit .btn.is-disabled { background: var(--color-disabled); color: var(--color-on-disabled); box-shadow: none; cursor: default; }
@media (hover: hover) {
  .recruit .btn-primary:hover { background: var(--color-action-hover); }
  .recruit .btn-outline:hover { background: var(--color-action); color: var(--color-on-action); }
  .recruit .btn.is-disabled:hover { background: var(--color-disabled); color: var(--color-on-disabled); }
  .recruit .text-link:hover { color: var(--color-link-hover); }
}
.recruit .btn-primary:active:not(.is-disabled) { background: var(--color-action); }
.recruit .btn-outline:active:not(.is-disabled) { background: var(--color-control-hover); color: var(--color-text-primary); }

/* recruiting period */
.recruit .status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-5) auto 0; }
.recruit .status-dates { font-weight: 500; color: var(--color-text-secondary); }   /* no '접수 기간' prefix (user 2026-11-10) */
/* while open the script puts the time left above the dates — the most important line here (user 2026-11-09), on ONE
   line '접수 마감까지 D-13', centred (user 2026-11-11); digits large, equal width, in the role colour, 'D-' and colons dimmed */
.recruit .countdown { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .5em; flex-basis: 100%; margin: 0 0 var(--space-1); }
.recruit .countdown-label { font-size: var(--type-body); font-weight: 600; color: var(--color-text-secondary); }
.recruit .countdown-row { font-family: var(--font-display); font-size: var(--type-section); font-weight: 700; line-height: 1.15;
  white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--color-editorial-accent); }
.recruit .countdown-row i { font-style: normal; color: var(--color-text-muted); }
.recruit .cd-day:not([hidden]) + .cd-clock { margin-left: .35em; }   /* the gap only when the clock shows, so 'D-13' alone stays centred */
.recruit .cd-day[hidden], .recruit .cd-clock[hidden] { display: none; }   /* clock hidden until two days before the deadline (user 2026-11-10) */
.recruit .band-dark .countdown-row { color: var(--color-editorial-on-dark); }
.recruit .band-dark .countdown-row i, .recruit .band-dark .countdown-label { color: var(--color-text-secondary); }
.recruit .status-note { flex-basis: 100%; margin: 0; font-size: var(--type-note); color: var(--color-text-secondary); }
.recruit .status-note:empty { display: none; }

/* 출제진: on touch screens, a line under the hero buttons that the form has to be filled in on a PC */
.recruit .device-note { display: none; margin: var(--space-3) 0 0; font-size: var(--type-note); color: var(--color-text-secondary); }
@media (hover: none) and (pointer: coarse) { .recruit .device-note { display: block; } }

/* key facts — set like the 검수진 COMMENT box in 이해원 N제: a thin frame with its label cut into the top line
   (user 2026-11-10: labels are needed, but small coloured words above big numbers read as AI-made) */
.recruit #overview { padding: var(--section-related) 0; }
.recruit .keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); margin: var(--space-3) 0 0; text-align: left; }
/* three boxes only where the big values fit: below 1080px they stack (at 768px "시급 15,000원 +" ran out of its box) */
@media (min-width: 1080px) { .recruit .keys-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc((100% - 2 * var(--card-gap)) / 3 * 2 + var(--card-gap)); margin-inline: auto; } }
@media (max-width: 1079px) { .recruit .keys { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.recruit .keys, .recruit .key dd { margin-bottom: 0; }
.recruit .key { position: relative; padding: var(--space-8) var(--space-6) var(--space-6); border: 1px solid var(--color-border-strong); }
.recruit .key dt { position: absolute; top: 0; left: var(--space-4); padding: 0 var(--space-2); transform: translateY(-50%);
  background: var(--color-background); font-weight: 700; line-height: 1.2; color: var(--color-text-primary); }
.recruit .key dd { margin: 0; }
.recruit .key-value { display: block; font-family: var(--font-display); font-size: var(--type-section); font-weight: 700; line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading); color: var(--color-text-primary); }
.recruit .key-sub { display: block; margin-top: var(--space-2); font-size: var(--type-note); color: var(--color-text-secondary); }

/* pay */
.recruit .table-wrap { overflow-x: auto; }
.recruit .reward { width: 100%; border-collapse: collapse; text-align: center; background: var(--color-surface-raised); }
.recruit .reward th, .recruit .reward td { padding: var(--space-4) var(--space-3); border: 1px solid var(--color-border); }
.recruit .reward thead th { background: var(--color-control-hover); font-weight: 600; }
.recruit .reward tbody th { font-weight: 600; white-space: nowrap; }
/* 검수진 pay steps as one ladder: a row per step, the last (the headline claim) closed by a dark rule and set larger in the
   role colour; label and amount centred vertically (user 2026-11-11) */
.recruit .levels { margin: var(--space-3) 0 0; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--color-border-strong); }
.recruit .level { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-1); border-bottom: 1px solid var(--color-border); }
.recruit .level-label { font-weight: 600; color: var(--color-text-secondary); }
.recruit .level-value { margin-left: auto; font-family: var(--font-display); font-size: var(--type-card); font-weight: 700; line-height: var(--leading-heading); }
.recruit .level:last-child { border-bottom-color: var(--color-text-primary); }
.recruit .level:last-child .level-label { color: var(--color-text-primary); }
.recruit .level:last-child .level-value { font-size: var(--type-section); color: var(--color-editorial-accent); }
.recruit .fine { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.recruit .fine li { position: relative; padding-left: 1.4em; font-size: var(--type-note); color: var(--color-text-muted); }
.recruit .fine li::before { content: '※'; position: absolute; left: 0; }
.recruit .pay-note { margin: var(--space-6) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--color-border); color: var(--color-text-secondary); }

/* 이해원 N제 pages as captured (user 2026-11-10), each on a white sheet, no larger than the capture itself */
.recruit .shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--card-gap); max-width: 1000px;
  margin: var(--content-gap) auto 0; }
.recruit .shot { margin: 0; padding: var(--space-4); border-radius: var(--ui-radius-card); background: #fff; }
.recruit .shot img { height: auto; margin: 0 auto; }   /* integrate.css img has no height: auto — without it the height attribute stretched the page */
.recruit .shot-link { display: block; cursor: zoom-in; }
.recruit .shots-note { margin: var(--space-4) 0 0; font-size: var(--type-note); color: var(--color-text-secondary); }

/* apply bar, only while applications are open (recruit.js removes it otherwise). Docked to the bottom edge with a
   hairline, its content kept to a 720px column on PC (user 2026-11-10: no floating card with a big soft shadow). */
.recruit .sticky-apply { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-4); padding: var(--space-3) max(var(--page-gutter), calc((100% - 720px) / 2));
  border-top: 1px solid var(--color-border); background: var(--color-background); }
.recruit .sticky-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); margin: 0; text-align: left; }
.recruit .sticky-role { font-weight: 600; }
.recruit .sticky-countdown { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-editorial-accent); }
.recruit .sticky-countdown:empty { display: none; }
.recruit .sticky-apply .btn { flex: none; }
/* room under the footer so the bar never covers it at the end of the page */
body.recruit-page:has(.sticky-apply) { padding-bottom: 72px; }

/* apply (dark section) */
.recruit .apply-steps { display: inline-block; margin: var(--space-6) 0 0; padding-left: 1.4em; text-align: left; }
.recruit .apply-mail { margin: var(--space-4) 0 0; font-size: var(--type-note); color: var(--color-text-secondary); }

/* 모집 요강: one column of 'label | content' rows closed by a rule (user 2026-11-10) */
.recruit .items { max-width: 960px; margin: var(--content-gap) auto 0; text-align: left; border-bottom: 1px solid var(--color-border); }
.recruit .item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; column-gap: var(--space-6);
  padding: var(--space-6) 0; border-top: 1px solid var(--color-border); }
.recruit .item dt { font-size: var(--type-card); font-weight: 600; line-height: var(--leading-heading); }
.recruit .item dd { margin: 0; color: var(--color-text-secondary); }
/* two white sections in a row share one gap instead of stacking two paddings */
.recruit #details + #faq { padding-top: 0; }
.recruit .item p { margin: var(--space-1) 0 0; font-size: var(--type-note); }
.recruit .item .item-value { margin-top: 0; font-size: var(--type-body); color: var(--color-text-primary); }
.recruit .item .item-sub { margin-top: var(--space-3); font-weight: 600; color: var(--color-text-primary); }
.recruit .item-list { margin: 2px 0 0; padding: 0; list-style: none; }
.recruit .item-list li { position: relative; padding-left: 14px; font-size: var(--type-note); }
.recruit .item-list li::before { content: '·'; position: absolute; left: 2px; font-weight: 700; }

/* FAQ (native details: works without scripts) */
.recruit .faq-items { border-top: 1px solid var(--color-border); }
.recruit .qa { border-bottom: 1px solid var(--color-border); }
.recruit .qa summary { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); padding: var(--space-4) var(--space-1); cursor: pointer;
  list-style: none; font-weight: 600; }
.recruit .qa summary > span { text-wrap: balance; }   /* a two-line question splits evenly, not 'several words / 되나요?' */
.recruit .qa summary::-webkit-details-marker { display: none; }
.recruit .qa summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: 7px var(--space-1) 0 0; border-right: 2px solid var(--color-text-secondary);
  border-bottom: 2px solid var(--color-text-secondary); transform: rotate(45deg); transition: transform .25s ease, margin-top .25s ease; }
.recruit .qa[open] summary::after { margin-top: 11px; transform: rotate(-135deg); }
.recruit .qa p { margin: 0; padding: 0 var(--space-1) var(--space-4); color: var(--color-text-secondary); }
/* FAQ opens smoothly (user 2026-11-11), CSS only: where the browser can animate <details> to its full height it slides
   open and shut; elsewhere the answer fades in as it opens. The chevron turns. */
@supports (interpolate-size: allow-keywords) {
  .recruit .faq-items { interpolate-size: allow-keywords; }
  .recruit .qa::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .recruit .qa[open]::details-content { block-size: auto; }
}
.recruit .qa[open] p { animation: qa-in .3s ease both; }
@keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }
.recruit .contact { margin: var(--space-6) 0 0; font-size: var(--type-note); color: var(--color-text-secondary); }
.recruit .contact strong { color: var(--color-text-primary); font-weight: 600; }
/* prose links keep an underline so they stay distinguishable inside text (WCAG 1.4.1); integrate.css .text-link is a
   standalone button-like link, so the inline form is restored here */
.recruit .text-link, .recruit .contact a, .recruit .apply-mail a { display: inline; font-size: inherit; font-weight: inherit; line-height: inherit;
  color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .recruit .level:last-child .level-value { font-size: var(--type-card); }
  .recruit .keys { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .recruit .key { padding: var(--space-6) var(--space-5) var(--space-5); }
  .recruit .item { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); padding: var(--space-5) 0 var(--space-6); }
  .recruit .shots { grid-template-columns: minmax(0, 1fr); }
  .recruit .shot { padding: var(--space-2); }
  .recruit .reward th, .recruit .reward td { padding: var(--space-3) var(--space-2); }
  /* phones: the note above a full-width button */
  .recruit .sticky-apply { flex-direction: column; align-items: stretch; gap: var(--space-2);
    padding: var(--space-3) var(--page-gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
  .recruit .sticky-note { justify-content: center; gap: var(--space-2); font-size: var(--type-note); }
  .recruit .sticky-apply .btn { display: flex; width: 100%; }
  body.recruit-page:has(.sticky-apply) { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .recruit .qa summary::after, .recruit .qa::details-content { transition: none; }
  .recruit .qa[open] p { animation: none; }
}
