/* Mobile refinement; preserves the foundation's existing colour and artwork. */
.mobile-menu-toggle { display: none; }
.site-header nav { flex-wrap: wrap; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; }
.stars-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stars-more { display: flex; min-width: 220px; margin: 28px auto 0; }
.hero-one-shot .hero-art .ntg-art { --ntg-cycle: 4s; }
.hero-one-shot .ntg-art .ntg-motion { animation-iteration-count: 1; }
.wrap > *, .two-column > *, .about-copy > *, .footer-top > *, .hero-title-row > * { min-width: 0; }
.video-info, .dialog-caption, .donation-dialog .source-link, #upload-file-note { overflow-wrap: anywhere; }
.version-picker select { font-size: 16px; max-width: 100%; }
.dialog-top h2 { min-width: 0; overflow-wrap: anywhere; }
.dialog-top .icon-button { flex: 0 0 44px; min-height: 44px; }
.dialog-top { position: sticky; top: -1px; z-index: 2; background: var(--panel); padding-block: 8px; }
.footer-links a, .footer-contact > a { min-height: 44px; display: flex; align-items: center; }
.footer-links, .footer-contact { gap: 4px; }
.upload-file-input { width: 100%; min-width: 0; }
/* The complete phrase stays in normal flow, so long captions and zoom never clip it. */
.video-card .video-cover { display: flex; flex-direction: column; aspect-ratio: auto; overflow: visible; }
.video-cover-art { display: flex; position: relative; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px 7px 0 0; background: #001e36; }
.star-card .video-cover-art, #community-grid .video-cover-art { aspect-ratio: 4 / 5; }
.cover-phrase { display: block; width: 100%; padding: 16px 20px; background: #003763; color: #f6b333; font-size: 20px; line-height: 1.35; font-weight: 700; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.video-card:not(.star-card) .video-subtitle { margin-top: 0; }
.community-placeholder { display: flex; align-items: center; justify-content: center; min-height: 210px; padding: 32px; border: 1px dashed var(--control-border); border-radius: 8px; color: var(--muted); font-size: 16px; line-height: 1.5; text-align: center; }
.eyebrow > span { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: 0; }
/* Draw the decorative arrow with lines, so mobile fonts cannot turn it into emoji. */
.action-arrow { display: inline-block; position: relative; flex-shrink: 0; width: 1em; height: 1em; vertical-align: -.12em; color: var(--accent); font-size: 1.3em; line-height: 1; }
.action-arrow::before, .action-arrow::after { content: ''; position: absolute; }
.action-arrow::before { left: .15em; bottom: .15em; width: .96em; border-top: .1em solid currentColor; transform: rotate(-45deg); transform-origin: left center; }
.action-arrow::after { top: .13em; right: .13em; width: .52em; height: .52em; border-top: .1em solid currentColor; border-right: .1em solid currentColor; }
.button.orange .action-arrow, .button.light .action-arrow { color: #003763; }
.donate-pointer { display: contents; }
.donate-art-caption em { color: var(--accent); font-style: normal; }
@media (min-width: 761px) {
  .donate-art { display: grid; grid-template-columns: minmax(0,1fr); gap: 30px; }
  .donate-art .donate-art-caption { grid-row: 1; font-size: clamp(26px,2.5vw,34px); font-weight: 600; line-height: 1.3; }
  .donate-pointer { display: grid; grid-row: 2; grid-template: minmax(0,1fr) / minmax(0,1fr); justify-self: end; place-items: center; width: min(100%,320px); height: 160px; }
  .donate-pointer .donate-hand { width: 46%; height: auto; transform: rotate(90deg); }
}
.topic-tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Share each row's artwork, phrase and biography heights; long text stays visible. */
@media (min-width: 601px) {
  .star-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; height: auto; align-self: stretch; }
  .star-card .video-cover { display: contents; }
  .star-card .video-cover-art { grid-row: 1; }
  .star-card .cover-phrase { grid-row: 2; }
  .star-card .video-info { grid-row: 3; }
}
@media (min-width: 761px) and (max-width: 1280px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; justify-content: center; gap: 12px 24px; }
  .site-header > .button { margin-left: auto; }
}
@media (max-width: 1000px) {
  .stars-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section { padding-block: 56px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .wrap { width: calc(100% - 32px); }
  .site-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px 16px; padding-block: 18px; }
  .site-header .brand { padding: 0; }
  .site-header .brand-logo { width: 196px; max-width: 100%; }
  .site-header > .button { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: center; width: 100%; min-height: 48px; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; background: transparent; border: 1px solid var(--control-border); border-radius: 6px; font-size: 16px; }
  .menu-lines { position: relative; width: 17px; height: 12px; border-block: 2px solid currentColor; }
  .menu-lines::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .site-header nav { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 16px; }
  .site-header nav a { display: flex; align-items: center; min-height: 46px; padding-block: 10px; }
  .hero { padding-top: 22px; padding-bottom: 36px; }
  .hero-meta { flex-direction: column; gap: 7px; font-size: 14px; letter-spacing: .025em; }
  .hero-meta span, .hero-meta span:last-child { max-width: 100%; text-align: left; }
  .hero-art.campaign-art { margin: 22px auto 18px; }
  .hero-title-row { gap: 22px; }
  .hero-aside { display: block; padding: 0; }
  .hero-aside p { max-width: 100%; font-size: 18px; line-height: 1.5; }
  .hero-aside .text-link { max-width: 100%; min-height: 44px; margin-top: 12px; font-size: 16px; gap: 14px; }
  .hero-bottom { margin-top: 24px; }
  .hero-bottom > .button { justify-content: space-between; min-height: 52px; }
  .section { padding-block: 42px; }
  h2 { font-size: clamp(28px,7.5vw,34px); line-height: 1.18; }
  .eyebrow { font-size: 14px; letter-spacing: .065em; gap: 12px; }
  .eyebrow > span { font-size: 24px; }
  .cover-phrase { font-size: 18px; padding: 14px 16px; }
  .community-placeholder { min-height: 150px; padding: 24px; }
  .section-heading > p:last-child { font-size: 16px; line-height: 1.55; max-width: 100%; }
  .about-copy { font-size: 16px; line-height: 1.65; margin-top: 22px; gap: 22px; }
  .stars-toolbar { margin-bottom: 20px; }
  .stars-toolbar .tabs { margin-top: 0; }
  .topic-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin-top: 0; margin-bottom: 24px; }
  .topic-tabs button { min-height: 50px; font-size: 16px; line-height: 1.3; padding: 10px 8px; }
  .library-search .input-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .library-search .input-row input { flex-basis: 100%; font-size: 16px; }
  .library-search .input-row .button { width: 100%; min-height: 48px; gap: 16px; }
  .library-status { font-size: 16px; }
  .form-panel { padding: 20px; }
  input, select { font-size: 16px; }
  .field-label, .check, .small-note, .steps p { font-size: 16px; }
  .steps { margin-top: 24px; }
  .steps li { gap: 14px; }
  .steps strong { font-size: 17px; }
  .participation-example { gap: 12px; padding: 12px; }
  .participation-example img { width: 84px; height: 63px; }
  .participation-example small { font-size: 16px; }
  .upload-source-options { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .upload-source-options label { min-height: 44px; font-size: 16px; }
  .upload-file-input { padding: 10px; font-size: 16px; }
  .upload-file-input::file-selector-button { padding: 10px; margin-right: 8px; min-height: 44px; }
  .check input { width: 22px; height: 22px; min-height: 22px; }
  .form-secondary-button { min-height: 44px; font-size: 16px; }
  .text-link, .source-link { line-height: 1.5; }
  .donate-art { gap: 20px; margin-top: 24px; }
  .donate-art span { font-size: 16px; }
  .donate-hand { width: 76px; flex-basis: 76px; }
  .partner-space { padding: 20px; }
  footer { padding-top: 32px; }
  footer .brand-logo { width: 232px; }
  footer .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-foundation { grid-column: auto; }
  .footer-foundation p, .footer-links, .footer-contact { font-size: 16px; }
  .footer-contact .contact-phone { font-size: 20px; }
  .footer-links > span { font-size: 16px; }
  .footer-bottom { display: block; font-size: 14px; line-height: 1.65; margin-top: 28px; }
  .footer-bottom > span { display: block; margin-bottom: 6px; }
  .requisites dl > div { grid-template-columns: minmax(0,1fr); gap: 4px; }
  dialog, .donation-dialog { width: calc(100% - 16px); max-width: 680px; max-height: calc(100dvh - 16px); padding: 12px; margin: auto; overscroll-behavior: contain; }
  .dialog-top { gap: 12px; margin-bottom: 12px; }
  .dialog-top h2, .donation-dialog .dialog-top h2 { font-size: 20px; line-height: 1.3; }
  .campaign-video-player { max-height: 64dvh; }
  .version-picker { gap: 8px; margin-bottom: 12px; }
  .version-picker select { padding: 12px 8px; }
  .foundation-payment-frame { min-height: 0; height: 62dvh; margin-top: 12px; }
}
@media (max-width: 600px) {
  .stars-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .star-card { display: grid; grid-template-columns: 34% minmax(0,1fr); height: auto; }
  .star-card .video-cover { display: contents; }
  .star-card .video-cover-art { grid-column: 1; grid-row: 1; aspect-ratio: auto; min-height: 150px; height: 100%; border-right: 1px solid var(--line); border-radius: 7px 0 0 0; }
  .star-card .cover-phrase { grid-column: 1 / -1; grid-row: 2; font-size: 16px; border-top: 1px solid var(--line); }
  .star-card .video-info { grid-column: 2; grid-row: 1; min-height: 0; padding: 16px; }
  .star-card .video-title { font-size: 17px; line-height: 1.3; }
  .star-card .video-subtitle { font-size: 16px; line-height: 1.5; margin-top: 8px; }
  .star-card .video-duration { right: 7px; bottom: 7px; font-size: 14px; }
  .stars-more { width: 100%; margin-top: 20px; }
  .library-grid, #community-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  #community-grid .video-cover-art { aspect-ratio: 4 / 3; }
  .library-grid .video-info, #community-grid .video-info { padding: 16px; }
  .library-grid .video-title, #community-grid .video-title { font-size: 18px; }
}
@media (max-width: 360px) {
  .site-header .brand-logo { width: 174px; }
  .mobile-menu-toggle { gap: 8px; padding-inline: 9px; }
  .star-card .video-info { padding: 12px; }
  .star-card .video-title { font-size: 16px; }
  .form-panel { padding: 16px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  dialog, .donation-dialog { max-height: calc(100dvh - 12px); }
  .foundation-payment-frame { min-height: 0; height: 58dvh; }
  .campaign-video-player { max-height: 60dvh; }
}
