/* Loaded only on the 2026 recruitment page. */
.event-page {
  --event-section-gap: 56px;
  --event-subsection-gap: 36px;
  --event-flow-gap: 16px;
  font-size: 16px;
  line-height: 1.7407407407;
}
.event-page .event-status-label { color: var(--accent); font-size: 14px; font-weight: 700; margin: 12px 0 0; }
.event-page .key-visual { margin-bottom: 0; }
.event-section { margin-top: var(--event-section-gap); }
.event-section > .section-heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 20px;
}
.event-content { margin-left: 24px; }
.event-subsection { margin-top: var(--event-subsection-gap); }
.event-content > .event-subsection:first-child { margin-top: 0; }
.event-page h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #000;
  margin: 0 0 12px;
}
/* Body copy flows naturally across the available lane; only real paragraphs have margins.
   Default wrapping, as on Gene-NAVI: WebKit's text-wrap:pretty evened short paragraphs
   into uniform lines on iPhone. */
.event-page .event-prose {
  line-height: 1.7;
  margin: 0 0 var(--event-flow-gap);
  text-align: left;
  text-indent: 0;
}
/* The recruitment period: the 2026 accent, bold, one step above body copy and below the section heading. */
.event-page .event-period { color: var(--accent); font-size: 20px; font-weight: 700; }
/* Only the lead keeps its short semantic phrases together. */
.event-phrase { white-space: nowrap; }
.event-page .event-continuous > :last-child,
.event-page .event-subsection > :last-child,
.event-page .event-content > :last-child { margin-bottom: 0; }
.event-lead {
  max-width: 56rem;
  margin-inline: auto;
  padding-top: 32px;
  text-align: center;
}
.event-page .event-lead > p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 24px;
  text-align: center;
  text-indent: 0;
}
.event-page .event-lead > p:first-child { font-size: 34px; font-weight: 600; color: var(--accent); text-wrap: balance; }
.event-page .event-lead > p:last-child { margin-bottom: 0; }
.event-lead-line { display: block; text-wrap: balance; }
.event-page .event-schedule-note,
.event-page .event-survey { font-size: 15px; }
.event-list + .event-continuous { margin-top: 24px; }
.event-list { margin: var(--event-flow-gap) 0; padding-left: 1.4em; }
.event-criterion-description { display: block; }
.event-list > li + li { margin-top: 8px; }
/* Keep long rules readable on wide screens without a narrow column: about 46-52
   characters per line, with natural ragged line ends (no justification). */
#application-rules .event-content { max-width: 47.5em; }
/* The chair's statement, between the schedule and the rules: a column, not one more section. Its paper is the edition tint (no rule,
   border, radius or shadow); the text sits in a narrower reading column in body type. The title is its own, without the section rule;
   the last line is bold in the accent and the signature smaller, right-aligned, in the body color. */
.event-preface { margin-top: var(--event-section-gap); padding: 44px 24px 40px; background: var(--tint); background: var(--column-paper);
  /* One paper on every device: a deeper pale of the edition's accent (11% accent over white). The var(--tint) line above is only the
     fallback for browsers without color-mix. */
  --column-paper: color-mix(in srgb, var(--accent) 11%, #fff); }
.event-preface + .event-section { margin-top: var(--event-section-gap); }
.event-preface-column { max-width: 45em; margin: 0 auto; }
.event-page .event-preface-title { font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; margin: 0 0 28px; text-align: center; }
.event-page .event-preface .event-prose { line-height: 1.8; margin-bottom: 10px; }
.event-page .event-preface .event-preface-closing { color: var(--accent); margin-bottom: 0; }
.event-page .event-preface .event-preface-signature { font-size: 14px; text-align: right; margin: 14px 0 0; }
/* Same leading as body copy (16px x 1.7): a wrapped item reads as one sentence; items stay apart via margin. */
#application-rules .event-list { line-height: 1.7; }
#application-rules .event-list > li + li { margin-top: 12px; }
.event-format-supplements { margin-top: 24px; }
.event-page .event-format-supplements .event-prose { margin: 0; }
/* Editorial text links share an interaction; their edition color stays intact. */
.event-past-link { --event-link-color: var(--reference-accent); font-weight: 600; }
.event-page .event-past-link,
.event-page #application .event-prose .text-link,
.event-page #faq .event-prose .text-link {
  color: var(--event-link-color, var(--accent));
  opacity: 1;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.event-page .event-past-link:focus-visible,
.event-page #application .event-prose .text-link:focus-visible,
.event-page #faq .event-prose .text-link:focus-visible {
  color: var(--event-link-color, var(--accent));
  opacity: 1;
  text-decoration-line: underline;
}
/* Hover only where a pointer can hover; touch keeps :hover on the last tapped link. */
@media (hover: hover) and (pointer: fine) {
  .event-page .event-past-link:hover,
  .event-page #application .event-prose .text-link:hover,
  .event-page #faq .event-prose .text-link:hover {
    color: var(--event-link-color, var(--accent));
    opacity: 1;
    text-decoration-line: underline;
  }
}
/* Judge introductions use the event's existing heading, color and spacing scale. */
/* Quiet by size and spacing alone: body color and weight, one step below body copy, close to the grid it describes. */
.event-page .judge-order-note { font-size: 13px; font-weight: 400; margin: 0 0 12px; }
.event-judges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; }
/* List: photo, name, affiliation and excerpt form one centered portrait unit. */
.judge-intro { min-width: 0; text-align: center; }
.judge-photo-link { display: block; margin-bottom: 20px; }
.judge-photo-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--judge-photo-position); }
/* List photos only: preserve the resting crop and frame; no card/teaser overlay. */
#judges .judge-photo-link { overflow: hidden; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #judges .judge-photo-link img { transition: transform .2s linear; }
  #judges .judge-photo-link:hover img { transform: scale(1.03); }
}
.event-page .judge-intro h3 { margin-bottom: 6px; }
/* The name leads; 先生 is one step smaller (about 83%: 15px of 18px, 14.2px of 17px) and stays on the name's line. */
.judge-name-link { white-space: nowrap; }
.judge-honorific { font-size: .8333333333em; }
.event-page .judge-affiliation { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.judge-excerpt { font-size: 17px; line-height: 1.8; margin: 0; }
/* Semantic lines of an excerpt: a new line at the normal line-height, balanced only if wrapped. */
.judge-excerpt-line { display: block; text-wrap: balance; }
.judge-name-link, .judge-text-link { color: var(--accent); text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.judge-name-link:focus-visible, .judge-text-link:focus-visible { color: var(--accent); text-decoration-line: underline; }
@media (hover: hover) and (pointer: fine) { .judge-name-link:hover, .judge-text-link:hover { color: var(--accent); text-decoration-line: underline; } }
/* Detail page: the shared .page-heading (Gene-NAVI H1 + rule) spans the lane; the person's column
   below it is the narrower 720px reading width. */
.judge-main { max-width: 720px; margin-inline: auto; }
.judge-title-name { white-space: nowrap; }
/* The same fit as width:auto under max-width:100%/max-height:680px, stated from the intrinsic size (--nw/--nh)
   so the box is reserved before the photo arrives (Chromium otherwise lays it out at 0×0 until load). */
.judge-portrait { display: block; width: min(100%, calc(var(--nw) * 1px), calc(680px * var(--nw) / var(--nh))); max-width: 100%; max-height: 680px; height: auto; margin: 0 auto 32px; }
.event-page .judge-person-name { font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .05em; margin: 0; }
.event-page .judge-person .judge-affiliation { margin: 4px 0 0; }
/* Detail page: only the name plate under the photo is centered; all long copy stays left-aligned. */
.judge-person { text-align: center; }
/* Related interview: a quiet pointer, weaker than the profile sections. */
.judge-related { margin-top: var(--event-section-gap); }
.event-page .judge-related-heading { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: .05em; margin: 0 0 6px; }
.event-page .judge-related-text { font-size: 15px; line-height: 1.8; margin: 0; }
.judge-page .event-prose { overflow-wrap: anywhere; }
.event-schedule {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0 0 12px;
}
/* The date is the subject: a small bold item name beside a larger, medium-weight value; the announcement note sits a step below. */
.event-schedule dt { font-size: 15px; font-weight: 700; line-height: 1.5; padding-top: 4px; }
.event-schedule dd { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.5; }
/* The note on where results are announced reads a step below the date itself (same color; body weight). */
.event-schedule dd > .event-results-note { font-size: 16px; font-weight: 400; }
/* Below ~350px the announcement note cannot fit one line: it may then break at its 「・」 (each half stays whole). */
@media (max-width: 349.98px) { .event-schedule dd > .phrase { white-space: normal; } }
.event-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0 0 16px; }
.event-table th, .event-table td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.event-table thead th, .event-table tbody th { text-align: center; }
.event-genres tbody th, .event-ai-formats tbody th { text-align: left; }
/* Genre and format names lead their row a little. */
.event-genres tbody th[scope="row"], .event-ai-formats tbody th[scope="row"] { font-weight: 600; }
.event-genres th:first-child { width: 24%; }
.event-genres th:nth-child(2) { width: 43%; }
/* Two columns only: the format name takes a little over a third, the submission format the rest. */
.event-ai-formats th:first-child { width: 38%; }
/* 募集作品 reads in four steps: the section's h2, its subsections' h3 (テーマ / 募集ジャンル・提出形式), each division's h4
   (一般部門 / 生成AI部門, one step above body copy, in the edition accent), then body copy and tables. */
#guidelines .event-subsection { margin-top: 48px; }
#guidelines .event-content > .event-subsection:first-child { margin-top: 0; }
#guidelines .event-subsection > h3 { font-size: 20px; margin-bottom: 16px; }
.event-page .event-division-heading { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--accent); margin: 36px 0 12px; }
.event-table thead th { background: var(--tint); color: var(--accent); }
.event-table tbody th { font-weight: 400; }
.event-awards th:first-child { width: 24%; }
.event-awards th:nth-child(2) { width: 26%; }
.event-awards tbody th { font-weight: 700; }
.event-awards .event-list { margin: 0; }
.event-awards .event-list > li + li { margin-top: 6px; }
.award-prize-name { white-space: nowrap; }
.award-count { display: block; font-weight: 400; margin-top: 6px; }
.award-mobile-label { display: none; }
/* Phones (<=640px) list the awards as a compact accordion built from the same data as the table: the closed row shows
   the name and work count, then one representative prize beside a small caret; selection and all prizes open below. */
.award-accordion { display: none; }
.award-item { border-bottom: 1px solid var(--line); padding: 0; }
.award-item > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; padding: 14px 0; min-height: 0; font-weight: 400; list-style: none; }
.award-item > summary::-webkit-details-marker { display: none; }
.award-summary-head { display: contents; }
.award-summary-name { grid-area: 1 / 1; font-size: 16px; font-weight: 700; line-height: 1.5; text-wrap: wrap; word-break: keep-all; }
.award-summary-count { grid-area: 1 / 2; justify-self: end; font-size: 14px; line-height: 1.5; }
.award-summary-prize { grid-area: 2 / 1; font-size: 14px; line-height: 1.5; color: var(--muted); }
.award-item > summary::after { content: ""; grid-area: 2 / 2; justify-self: end; align-self: center; width: 6px; height: 6px; margin: 0 4px 3px 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.award-item[open] > summary::after { margin: 3px 4px 0 0; transform: rotate(-135deg); }
/* Open, the full prize list below names every prize once, so the summary's representative prize steps aside. */
.award-item[open] .award-summary-prize { display: none; }
.award-detail { padding: 0 0 16px; }
.award-item .award-detail-text { margin: 0; font-size: 16px; line-height: 1.7; }
.award-item .event-list { margin: 8px 0 0; font-size: 16px; }
.event-page .event-application-button { background: var(--accent); color: #fff; max-width: 100%; transition: opacity .2s linear; }
.event-page .event-application-button:active { opacity: .6; }
/* Hover dimming only where hovering exists (on touch it stayed dimmed after a tap); the press dims on every device. */
@media (hover: hover) and (pointer: fine) { .event-page .event-application-button:hover { opacity: .6; } }
/* An open FAQ item reads as one unit: 12px from the question to the answer, then the item's own 18px bottom padding (the answer
   adds no bottom margin of its own); further answer paragraphs keep the usual flow gap. */
.event-page #faq details > .event-prose { margin: 12px 0 0; }
.event-page #faq details > .event-prose + .event-prose { margin-top: var(--event-flow-gap); }
.event-contact-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1em; }
.event-page summary { text-wrap: balance; }
/* FAQ questions wrap naturally (balancing split 「…差し替え／や、応募の取りやめ…」 evenly and stranded 「や、」 on the next line). */
.event-page #faq summary { text-wrap: wrap; }
/* Hanging indent: the marker and the first line start at the summary's left edge; later lines align with the question text, one
   marker width in (the ▶/▼ marker plus its space is about 1em). The whole summary stays the tap target. */
.event-page #faq summary { padding-left: 1.05em; text-indent: -1.05em; }
@media (min-width:1024px) and (max-width:1199.98px) {
  .event-page .event-lead > p:first-child { font-size: 30px; }
  .event-page .event-lead > p { font-size: 18px; }
}
@media (max-width:1023.98px) {
  .event-judges { gap: 40px; }
  .event-page { --event-section-gap: 44px; --event-subsection-gap: 32px; }
  /* Below 1024px the column is a sheet inset from the page edges (32px each on tablets, 12px on phones) so the tinted page shows on both sides. */
  .event-preface { width: calc(100vw - 64px); margin-inline: calc(50% - 50vw + 32px); padding: 36px 40px 32px; }
  .event-preface-column { width: 100%; max-width: 45em; }
  .event-section > .section-heading { font-size: 20px; margin-bottom: 16px; }
  .event-page h3 { font-size: 17px; }
  #guidelines .event-subsection { margin-top: 40px; }
  #guidelines .event-subsection > h3 { font-size: 18px; margin-bottom: 14px; }
  .event-page .event-division-heading { font-size: 16.5px; margin-top: 32px; }
  .event-page .event-preface-title { font-size: 18px; margin-bottom: 24px; }
  .event-page .event-status-label { font-size: 13px; }
  .event-page .event-period { font-size: 18px; }
}
/* Below 730px a two-column card (under 289px) would break the 17-character excerpt lines, so judges stack. */
@media (max-width:729.98px) {
  .event-judges { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width:640px) {
  /* Upright phones: the chair's statement is a white sheet inset from the page edges (the tinted page shows on both sides), not an edge-to-edge band. */
  .event-preface { width: calc(100vw - 24px); margin-inline: calc(50% - 50vw + 12px); padding: 32px 16px 28px; }
  .event-preface-column { width: 100%; }
  .event-schedule dd > .event-results-note { font-size: 15px; }
  .event-content { margin-left: 8px; }
  .event-lead { padding-top: 28px; }
  .event-page .event-lead > p { font-size: 17px; line-height: 1.8; margin-bottom: 20px; text-wrap: balance; }
  .event-page .event-lead > p:first-child { font-size: 28px; }
  .event-schedule { display: block; }
  .event-schedule dt { margin-bottom: 2px; padding-top: 0; }
  .event-schedule dd { margin-bottom: 14px; font-size: 18px; }

  .event-table th, .event-table td { padding: 10px 8px; font-size: 14px; }
  /* The three-column award table is for tablet and PC; phones read the accordion. */
  .event-awards { display: none; }
  .award-accordion { display: block; margin-bottom: 16px; border-top: 1px solid var(--line); }
}
