/* Public experience v1: scoped so existing contest pages remain unchanged. */
[data-communication-contest] > .contest-hero,
[data-communication-contest] > .contest-local-nav,
[data-communication-contest] > .release-section { display: none; }
.contest-public-v1 { color: #17342f; background: #fff; }
.contest-public-v1 .release-section { display: block; }
.communication-v1-hero { color: #fff; background: radial-gradient(circle at 78% 18%, rgba(238,182,73,.3), transparent 30%), linear-gradient(135deg, #133c36, #1d5a4f); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.communication-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: 2rem; }
.communication-v1-hero h1 { max-width: 850px; margin: .5rem 0 1rem; color: #fff; font-size: clamp(2rem, 4.3vw, 4.2rem); line-height: 1.12; }
.communication-v1-hero .contest-theme { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 720px; }
.communication-v1-hero .hero-lead { color: rgba(255,255,255,.9); max-width: 720px; }
.communication-v1-hero .button-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.contest-countdown-card { padding: 1.5rem; border: 1px solid rgba(255,255,255,.35); border-radius: 1.25rem; background: rgba(255,255,255,.11); box-shadow: 0 14px 38px rgba(0,0,0,.18); backdrop-filter: blur(5px); }
.contest-countdown-card p, .contest-countdown-card span { display: block; margin: 0; color: rgba(255,255,255,.88); }
.contest-countdown-card strong { display: block; margin: .55rem 0; font-size: clamp(1.6rem, 3.3vw, 2.8rem); letter-spacing: .02em; color: #ffd879; font-variant-numeric: tabular-nums; }
.communication-v1-nav { display: block !important; position: sticky; top: 0; z-index: 5; background: #fff; box-shadow: 0 1px 12px rgba(18,55,48,.13); }
.communication-v1-nav > .site-shell { display: flex; gap: .25rem; overflow-x: auto; padding-block: .65rem; }
.communication-v1-nav a { flex: 0 0 auto; padding: .5rem .65rem; color: #17342f; font-size: .9rem; font-weight: 700; text-decoration: none; }
.communication-v1-nav a:hover, .communication-v1-nav a:focus-visible { color: #a84022; text-decoration: underline; }
.contest-public-v1 .section-heading { max-width: 780px; margin-bottom: 2rem; }
.contest-public-v1 .section-heading h2 { color: #17342f; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.contest-public-v1 .section-heading p { color: #40504b; }
.communication-quick-grid, .prize-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.communication-quick-grid article, .prize-grid article, .communication-panel, .official-video-card, .document-state { border: 1px solid #dbe5df; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(23,52,47,.08); }
.communication-quick-grid article, .prize-grid article { padding: 1.35rem; }
.communication-quick-grid span, .prize-grid span { color: #a84022; font-weight: 800; }
.communication-quick-grid h3, .prize-grid h3 { margin: .5rem 0; color: #17342f; }
.communication-quick-grid p, .prize-grid p, .small-note { margin: 0; color: #40504b; }
.communication-two-col, .communication-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.communication-panel, .official-video-card { padding: clamp(1.25rem, 3vw, 2rem); }
.communication-panel h3 { margin-top: 0; color: #17342f; }
.communication-panel li { margin: .7rem 0; color: #40504b; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #a84022; font-weight: 900; }
.score-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; margin-top: 1rem; }
.score-grid span { padding: .85rem; border-radius: .7rem; background: #f4f7f5; color: #40504b; font-size: .9rem; }
.score-grid b { display: block; color: #a84022; font-size: 1.25rem; }
.communication-action-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: 1.25rem 1.5rem; border-radius: 1rem; background: #17342f; color: #fff; }
.communication-action-strip h3, .communication-action-strip p { margin: 0; }
.communication-action-strip p { color: rgba(255,255,255,.83); }
.youtube-facade { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: .75rem; background: #11231f; cursor: pointer; }
.youtube-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.youtube-facade span { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: #a84022; color: #fff; font-size: 1.55rem; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.youtube-facade:focus-visible { outline: 4px solid #ffd879; outline-offset: 3px; }
.youtube-facade iframe { width: 100%; height: 100%; border: 0; }
.hm2-steps { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.hm2-steps li { display: flex; align-items: baseline; gap: .65rem; color: #40504b; }
.hm2-steps strong { flex: 0 0 auto; color: #a84022; font-weight: 800; font-variant-numeric: tabular-nums; }
.video-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.video-actions .button { flex: 1 1 auto; text-align: center; justify-content: center; text-decoration: none; }
.video-note { margin: .75rem 0 0; color: #40504b; font-size: .88rem; font-style: italic; }
.official-video-card > p:last-child { margin-bottom: 0; color: #40504b; font-size: .9rem; }
.participant-controls { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; align-items: end; }
.participant-controls label { display: grid; gap: .4rem; font-weight: 700; color: #17342f; }
.participant-controls input, .participant-controls select { width: 100%; min-height: 2.75rem; padding: .5rem .65rem; border: 1px solid #9fafaa; border-radius: .55rem; background: #fff; color: #17342f; font: inherit; }
.participant-controls input:focus, .participant-controls select:focus { outline: 3px solid rgba(168,64,34,.25); border-color: #a84022; }
.participant-state { color: #40504b; }
.participant-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.participant-card { display: flex; flex-direction: column; gap: .65rem; padding: 1.1rem; border: 1px solid #dbe5df; border-radius: .85rem; background: #fff; box-shadow: 0 4px 14px rgba(23,52,47,.06); }
.participant-card h3 { margin: 0; color: #17342f; font-size: 1.05rem; }
.participant-card p { margin: 0; color: #40504b; font-size: .9rem; }
.participant-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.participant-badges span { padding: .2rem .45rem; border-radius: 999px; background: #edf4ef; color: #17342f; font-size: .78rem; font-weight: 700; }
.participant-card .button { margin-top: auto; align-self: flex-start; }
.document-state { padding: 1.4rem; color: #40504b; }
.document-state strong { color: #17342f; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.document-card { display: flex; flex-direction: column; padding: 1.35rem; border: 1px solid #dbe5df; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(23,52,47,.08); }
.document-icon { color: #a84022; font-size: 1.6rem; }
.document-type { margin: .75rem 0 .25rem; color: #a84022; font-size: .76rem; font-weight: 800; letter-spacing: .06em; }
.document-card h3 { margin: .25rem 0 .65rem; color: #17342f; }
.document-card > p:not(.document-type) { margin: 0; color: #40504b; }
.document-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: 1rem; }
.document-actions a { padding: .55rem .75rem; border: 1px solid #7e201a; border-radius: .5rem; background: #7e201a; color: #fff; font: inherit; font-weight: 700; text-decoration: none; }
.document-actions a:hover, .document-actions a:focus-visible { background: #5d1713; border-color: #5d1713; color: #fff; }
.document-actions a + a { border-color: #aebbb5; background: #fff; color: #40504b; }
.document-actions a + a:hover, .document-actions a + a:focus-visible { border-color: #17342f; background: #f2f4f3; color: #17342f; }
.communication-faq details { margin-bottom: .75rem; padding: .9rem 1rem; border: 1px solid #dbe5df; border-radius: .75rem; background: #fff; }
.communication-faq summary { cursor: pointer; color: #17342f; font-weight: 800; }
.communication-faq p { color: #40504b; }
.communication-support { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.communication-support h2 { color: #fff; }
.qr-modal[hidden] { display: none; }
.qr-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 1rem; }
.qr-modal-backdrop { position: absolute; inset: 0; background: rgba(8,25,21,.7); }
.qr-modal-dialog { position: relative; z-index: 1; width: min(100%, 520px); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; border-radius: 1rem; background: #fff; color: #17342f; box-shadow: 0 22px 60px rgba(0,0,0,.35); }
.qr-modal-dialog h2 { margin: .4rem 0; }
.qr-modal-dialog img { display: block; width: min(100%, 328px); height: auto; margin: 1rem auto; border: 1px solid #dbe5df; }
.qr-close { position: absolute; top: .5rem; right: .75rem; border: 0; background: transparent; color: #17342f; font-size: 2rem; line-height: 1; cursor: pointer; }
.qr-url { overflow-wrap: anywhere; color: #40504b; font-size: .85rem; }
.leaderboard-shell { padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid #dbe5df; border-radius: 1.1rem; background: #fff; box-shadow: 0 10px 28px rgba(23,52,47,.08); }
.leaderboard-status { margin: 0; padding: 1.1rem; border-radius: .75rem; background: #f4f7f5; color: #17342f; font-weight: 700; }
.my-unit-panel { padding: clamp(1rem, 3vw, 1.5rem); border-radius: .9rem; background: #edf4ef; }
.my-unit-panel h3, .leaderboard-header h3 { margin: .25rem 0; color: #17342f; }
.leaderboard-controls { display: grid; grid-template-columns: minmax(0,2fr) repeat(2,minmax(155px,1fr)) auto; gap: .55rem .75rem; align-items: end; margin-top: 1rem; }
.leaderboard-controls label { display: none; color: #17342f; font-weight: 700; }
.leaderboard-controls input, .leaderboard-controls select { min-height: 2.75rem; padding: .5rem .65rem; border: 1px solid #9fafaa; border-radius: .55rem; background: #fff; color: #17342f; font: inherit; }
.leaderboard-controls input:focus, .leaderboard-controls select:focus { outline: 3px solid rgba(168,64,34,.25); border-color: #a84022; }
.my-unit-result { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #c9d8d0; }
.my-unit-result > p { margin: 0; color: #40504b; }
.my-unit-result h4 { margin: 0; color: #17342f; font-size: 1.15rem; }
.my-unit-result > h4 + p { margin: .35rem 0 .8rem; color: #40504b; }
.my-unit-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .55rem; }
.my-unit-metrics span { padding: .65rem; border-radius: .6rem; background: #fff; }
.my-unit-metrics small, .my-unit-metrics b { display: block; }
.my-unit-metrics small { color: #40504b; font-size: .76rem; }
.my-unit-metrics b { margin-top: .2rem; color: #17342f; font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.my-unit-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.leaderboard-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.leaderboard-header p { margin: .2rem 0 0; color: #40504b; font-size: .9rem; }
.leaderboard-table-wrap { margin-top: .8rem; overflow-x: auto; }
.leaderboard-table { width: 100%; min-width: 960px; border-collapse: collapse; color: #17342f; }
.leaderboard-table th, .leaderboard-table td { padding: .8rem .7rem; border-bottom: 1px solid #dbe5df; text-align: left; vertical-align: top; }
.leaderboard-table th { color: #40504b; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.leaderboard-table th button { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.leaderboard-table th button:hover, .leaderboard-table th button:focus { color: #a84022; outline: none; }
.leaderboard-table th button.is-active { color: #17342f; }
.leaderboard-table tbody tr { cursor: pointer; }
.leaderboard-table tbody tr:hover, .leaderboard-table tbody tr:focus, .leaderboard-table tbody tr.is-selected { background: #fff7e4; outline: 0; }
.leaderboard-table td:first-child, .leaderboard-table td:nth-child(3), .leaderboard-table td:nth-child(4), .leaderboard-table td:nth-child(5), .leaderboard-table td:nth-child(6) { font-variant-numeric: tabular-nums; font-weight: 700; }
.leaderboard-progress { min-width: 150px; }
.leaderboard-progress-bar { height: .5rem; overflow: hidden; border-radius: 999px; background: #dbe5df; }
.leaderboard-progress-bar span { display: block; height: 100%; border-radius: inherit; background: #a84022; }
.leaderboard-progress p { margin: .35rem 0 0; color: #40504b; font-size: .8rem; }
.leaderboard-cards { display: none; }
.leaderboard-card { padding: 1rem; border: 1px solid #dbe5df; border-radius: .85rem; background: #fff; color: #17342f; cursor: pointer; }
.leaderboard-card.is-selected { border-color: #a84022; background: #fff7e4; }
.leaderboard-card h4, .leaderboard-card p { margin: 0; }
.leaderboard-card p { margin-top: .35rem; color: #40504b; }
.leaderboard-card dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; margin: .85rem 0; }
.leaderboard-card dt { color: #40504b; }
.leaderboard-card dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.leaderboard-score-note { margin-top: 1rem; padding: .8rem 1rem; border-radius: .7rem; background: #f4f7f5; color: #40504b; }
.leaderboard-score-note summary { cursor: pointer; color: #17342f; font-weight: 800; }
.leaderboard-score-note p { margin-bottom: 0; }
.leaderboard-score-details { position: relative; display: inline-block; color: #17342f; }
.leaderboard-score-details summary { color: #a84022; font-weight: 800; cursor: pointer; list-style: none; }
.leaderboard-score-details summary::-webkit-details-marker { display: none; }
.leaderboard-score-tooltip { display: block; max-width: 230px; margin-top: .45rem; color: #40504b; font-size: .78rem; line-height: 1.45; }
.leaderboard-table .leaderboard-score-tooltip { position: absolute; z-index: 3; left: 0; min-width: 210px; padding: .65rem .75rem; border: 1px solid #dbe5df; border-radius: .55rem; background: #fff; box-shadow: 0 8px 20px rgba(23,52,47,.12); }
.leaderboard-fairness { margin-top: 1.25rem; }
@media (max-width: 900px) { .communication-hero-grid, .communication-two-col, .communication-video-grid { grid-template-columns: 1fr; } .communication-quick-grid, .prize-grid, .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .participant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .participant-controls { grid-template-columns: 1fr 1fr; } .participant-controls label:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .my-unit-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } .leaderboard-controls { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .communication-v1-hero { padding: 3.25rem 0; } .communication-quick-grid, .prize-grid, .document-grid, .participant-grid, .participant-controls, .score-grid { grid-template-columns: 1fr; } .participant-controls label:first-child { grid-column: auto; } .communication-action-strip, .communication-support { align-items: flex-start; flex-direction: column; } .communication-v1-nav a { font-size: .82rem; } .leaderboard-shell { padding: .85rem; } .leaderboard-controls, .my-unit-metrics { grid-template-columns: 1fr; } .leaderboard-controls .button { width: 100%; } .leaderboard-table-wrap { display: none; } .leaderboard-cards { display: grid; gap: .75rem; margin-top: .8rem; } .leaderboard-header { margin-top: 1rem; } .leaderboard-header .button { display: none; } .leaderboard-progress { min-width: 0; } }

/* Zero-state typography enhancements */
.leaderboard-progress p { white-space: normal; overflow-wrap: break-word; }

/* Public Contest UX V2: keep unit actions legible on every surface. */
#bang-xep-hang { scroll-margin-top: 7rem; }
.leaderboard-clarity-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #b8cdc1;
  border-radius: .75rem;
  background: #f4f8f5;
  color: #17342f;
}
.leaderboard-clarity-note strong { display: block; font-size: .88rem; letter-spacing: .02em; }
.leaderboard-clarity-note ul { margin: .6rem 0 0; padding-left: 1.2rem; color: #40504b; }
.leaderboard-clarity-note li + li { margin-top: .25rem; }
.leaderboard-rule-note {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #e5c9b8;
  border-radius: .75rem;
  background: #fff8f2;
  color: #17342f;
}
.leaderboard-rule-note p { margin: 0; font-weight: 700; }
.leaderboard-rule-note p + p { margin-top: .45rem; color: #40504b; font-weight: 600; }
.leaderboard-award-status { color: #17342f !important; font-weight: 800; }
.my-unit-actions .contest-action-button,
.qr-modal-dialog [data-qr-copy],
.qr-modal-dialog [data-qr-share] {
  min-height: 2.7rem;
  border: 1px solid #17342f;
  border-radius: .55rem;
  background: #fffdf7;
  color: #17342f;
  font-weight: 800;
}
.my-unit-actions .contest-action-button--primary {
  background: #17342f;
  color: #fff;
}
.my-unit-actions .contest-action-button:hover,
.my-unit-actions .contest-action-button:focus-visible,
.qr-modal-dialog [data-qr-copy]:hover,
.qr-modal-dialog [data-qr-copy]:focus-visible,
.qr-modal-dialog [data-qr-share]:hover,
.qr-modal-dialog [data-qr-share]:focus-visible {
  border-color: #17342f;
  background: #17342f;
  color: #fff;
  outline: 3px solid rgba(23,52,47,.24);
  outline-offset: 2px;
}
.my-unit-actions .contest-action-button:disabled,
.qr-modal-dialog [data-qr-copy]:disabled,
.qr-modal-dialog [data-qr-share]:disabled {
  border-color: #9fafaa;
  background: #dbe5df;
  color: #40504b;
  cursor: not-allowed;
  opacity: 1;
}
