/* 比賽及消息內頁專用；未改動原有 Editorial 主樣式。 */
.competition-page,
.news-page {
    --event-ink: #193f65;
    --event-blue: #237daa;
    --event-line: #d6eaf4;
    --event-gold: #9a6422;
    --event-muted: #526d80;
    font-size: 16px;
    line-height: 1.7;
}
.competition-page #header,
.news-page #header { align-items: center; border-bottom-width: 1px; }
.competition-page #main > .inner > .competition-hero,
.news-page #main > .inner > .news-hero {
    background: linear-gradient(125deg, #e4f6fe 0%, #f9fcff 60%, #fff4df 100%);
    border: 1px solid var(--event-line);
    border-radius: 18px;
    margin: 2rem 0 0;
    padding: clamp(1.6rem, 3.5vw, 3.5rem);
    position: relative;
}
.competition-page #main > .inner > .competition-hero::before,
.news-page #main > .inner > .news-hero::before {
    background: linear-gradient(90deg, #7ecde9, #ffcc75, #ed9e98, #8bd3bd);
    border-radius: 18px 18px 0 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.event-kicker {
    color: var(--event-gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .15em;
    margin: 0 0 .55rem;
    text-transform: uppercase;
}
.competition-hero h1,
.news-hero h1 { color: var(--event-ink); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.3; margin: 0 0 .85rem; }
.competition-hero p:last-child,
.news-hero p:last-child { margin-bottom: 0; }
.competition-hero .lead,
.news-hero .lead { color: #385771; font-size: 1.05rem; max-width: 54rem; }
.competition-hero .lead > .translation { display: block; margin-top: .35rem; }
.competition-page h2,
.news-page h2 { color: var(--event-ink); }
.competition-page h3,
.news-page h3 { color: var(--event-ink); }
.competition-page a:focus-visible,
.news-page a:focus-visible { outline: 3px solid #b47327; outline-offset: 4px; }
.competition-directory { border-top: 1px solid var(--event-line); padding: 3rem 0 1rem; }
.competition-directory h2 { font-size: 1.7rem; margin-bottom: .7rem; }
.competition-directory > p { margin-bottom: 1rem; }
.competition-list { display: grid; gap: 1rem; list-style: none; margin: 1.3rem 0 0; padding: 0; }
.competition-list li { padding: 0; }
.competition-list a {
    align-items: center;
    background: white;
    border: 1px solid var(--event-line);
    border-left: 5px solid #7ecde9;
    border-radius: 12px;
    display: flex;
    gap: 1.25rem;
    padding: 1.2rem 1.4rem;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.competition-list a:hover { border-color: #82c8e1; box-shadow: 0 10px 26px rgba(35,125,170,.12); transform: translateY(-2px); }
.competition-list .entry-number { color: var(--event-gold); font-family: Georgia, serif; font-size: 1.8rem; }
.competition-list strong { color: var(--event-ink); display: block; font-size: 1.1rem; }
.competition-list small { color: var(--event-muted); display: block; line-height: 1.5; }
.future-note { background: #f2f9fc; border-radius: 9px; color: var(--event-muted); font-size: .88rem; margin-top: 1.2rem; padding: .9rem 1.1rem; }
.competition-page #main > .inner > .competition-feature { border-top: 1px solid var(--event-line); padding: 3rem 0 1rem; }
.competition-feature > header h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); margin: .2rem 0 1rem; }
.competition-feature > header > p:last-child { max-width: 56rem; }
.competition-overview { align-items: start; display: grid; gap: clamp(1.4rem, 3vw, 3rem); grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .65fr); margin: 1.5rem 0 2.5rem; }
.competition-facts { background: #f0f9fd; border-radius: 12px; padding: 1.5rem; }
.competition-facts h3 { font-size: 1.18rem; margin: 0 0 .8rem; }
.competition-facts p { margin-bottom: .85rem; }
.competition-facts ul { margin-bottom: 1rem; padding-left: 1.4rem; }
.competition-facts li { padding-left: .15rem; }
.competition-facts .selected-note { color: var(--event-ink); font-weight: 700; margin: 1.2rem 0 0; }
.poster-preview { margin: 0; }
.poster-preview a { border-bottom: 0; display: block; }
.poster-preview img { border: 1px solid var(--event-line); border-radius: 8px; display: block; height: auto; max-width: 100%; width: 100%; }
.poster-preview figcaption { color: var(--event-muted); font-size: .82rem; padding: .55rem .1rem; text-align: center; }
.document-links { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 2.3rem; }
.document-links .button { margin: 0; }
.award-jump { background: #eff9fd; border: 1px solid var(--event-line); border-radius: 12px; margin: 0 0 2.2rem; padding: 1.2rem 1.5rem; }
.award-jump strong { color: var(--event-ink); margin-right: .8rem; }
.award-jump a { display: inline-block; margin: .25rem .7rem .25rem 0; }
.award-group { border-top: 1px solid var(--event-line); padding: 2.75rem 0 1.25rem; scroll-margin-top: 1.5rem; }
.award-group > header { margin-bottom: 1.35rem; }
.award-group > header .event-kicker { margin-bottom: .15rem; }
.award-group > header h3 { font-size: 1.7rem; margin: .15rem 0 .4rem; }
.award-group > header p:last-child { color: var(--event-muted); margin: 0; }
.award-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.award-grid--merit { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.award-card {
    background: #fff;
    border: 1px solid var(--event-line);
    border-top: 4px solid #8acbe4;
    border-radius: 11px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: .85rem;
}
.award-card--champion { border-top-color: #e9ba58; background: #fffdf6; }
.award-card--runner { border-top-color: #8bcabd; }
.award-card--second { border-top-color: #e7a29b; }
.award-card a.work-image { align-items: center; background: #f5fafc; border: 0; border-radius: 6px; display: flex; height: 10rem; justify-content: center; overflow: hidden; padding: .5rem; }
.award-card a.work-image:hover { background: #e9f5fb; }
.award-card a.work-image img { display: block; height: 100%; max-width: 100%; object-fit: contain; width: 100%; }
.award-card--champion a.work-image { background: #fff8e9; height: 12rem; }
.award-card figcaption { overflow-wrap: anywhere; padding: .8rem .2rem .25rem; }
.award-card .prize { color: var(--event-gold); display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; margin-bottom: .35rem; }
.award-card strong { color: var(--event-ink); display: block; font-size: 1.02rem; line-height: 1.4; }
.award-card .romanized { color: #385c77; display: block; font-size: .85rem; line-height: 1.4; margin-top: .16rem; }
.award-card small { color: var(--event-muted); display: block; font-size: .77rem; line-height: 1.55; margin-top: .45rem; }
.award-grid--merit .award-card { padding: .65rem; }
.award-grid--merit .award-card a.work-image { height: 8rem; }
.award-grid--merit .award-card strong { font-size: .94rem; }
.award-section-title { color: var(--event-ink); font-size: 1.15rem; margin: 1.75rem 0 .9rem; }
.award-group .back-to-groups { display: inline-block; font-size: .82rem; margin-top: 1.25rem; }
.source-note { color: var(--event-muted); font-size: .84rem; line-height: 1.7; margin: 1.9rem 0 0; }
/* 消息頁：每則消息在桌面佔約半個主內容，日後可從最上方累積加入。 */
.news-page #main > .inner > .news-list { border-top: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2.5rem 0 4rem; }
.news-item { background: white; border: 1px solid var(--event-line); border-top: 5px solid #f2c778; border-radius: 13px; margin: 0; min-width: 0; padding: clamp(1.2rem,2.3vw,1.7rem); }
.news-item h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin: .3rem 0 .8rem; }
.news-item--visual { align-items: stretch; display: flex; flex-direction: column; gap: 1rem; }
.news-feature-image { align-items: center; background: linear-gradient(140deg, #edf9fe, #fff8ea); border: 1px solid #d7eaf3; border-radius: 9px; display: flex; justify-content: center; margin: 0; min-height: 10rem; padding: .85rem; }
.news-feature-image:hover { background: linear-gradient(140deg, #e5f5fc, #fff2d7); border-bottom-color: #d7eaf3; }
.news-feature-image img { display: block; height: auto; max-height: 11rem; max-width: 100%; object-fit: contain; width: auto; }
.news-feature-copy { min-width: 0; }
.news-feature-copy h2 a { border-bottom: 0; color: inherit; }
.news-feature-copy h2 a:hover { color: var(--event-blue); }
.news-feature-copy > p:last-of-type { color: var(--event-muted); font-size: .98rem; line-height: 1.65; margin-bottom: 1rem; }
.news-feature-copy > p:last-of-type span[lang="en"] { display: block; font-family: Georgia, "Times New Roman", serif; font-size: .92em; margin-top: .35rem; }
.news-item p { max-width: none; }
.news-item .news-links { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin: 1.45rem 0 0; padding: 0; }
.news-item .news-links li { padding: 0; }
.news-item .news-links .button { margin: 0; }
.news-item .news-groups { background: #f0f9fd; border-radius: 10px; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 1.2rem 0; padding: 1rem 1.25rem; }
.news-item .news-groups a { font-weight: 700; }
@media screen and (max-width: 1280px) {
    .award-grid--merit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 736px) {
    .competition-page,
    .news-page { font-size: 15px; }
    .competition-page #header,
    .news-page #header { padding-top: 4.8rem; }
    .competition-overview { grid-template-columns: 1fr; }
    .news-page #main > .inner > .news-list { grid-template-columns: minmax(0, 1fr); }
    .news-feature-image { max-width: 19rem; width: 100%; }
    .news-feature-image img { max-height: none; width: 100%; }
    .poster-preview { max-width: 19rem; }
    .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .award-grid--merit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .award-card--champion { grid-column: 1 / -1; }
    .award-card a.work-image { height: 8.5rem; }
    .award-card--champion a.work-image { height: 12rem; }
    .award-card--champion figcaption { text-align: center; }
}
@media screen and (max-width: 480px) {
    .award-grid--merit .award-card a.work-image { height: 6.6rem; }
    .award-grid--merit .award-card .romanized { font-size: .76rem; }
    .award-grid--merit .award-card small { font-size: .71rem; }
}
@media (prefers-reduced-motion: reduce) {
    .competition-page *, .news-page * { transition-duration: .01ms !important; }
}
