/* WordPress-only additions. The design itself is in main.css, unchanged. */

/* Keep the sticky header below the admin bar for logged-in editors. */
.admin-bar .nav { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .nav { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { .admin-bar .nav { top: env(safe-area-inset-top, 0px); } }

/* Header Register button on small phones: keep it on the logo row (the design's
   24px gap plus the button is about 10px too wide for a 390px screen). */
@media (max-width: 420px) {
  .nav-in { column-gap: 10px; }
  .nav-reg { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 14px; }
  .nav-reg { padding-left: 12px; padding-right: 12px; font-size: 14px; min-height: 40px; }
}

/* Awards page photo section: upright photos take one place, wide photos two.
   Desktop fits four upright and one wide photo in a row. */
.aw-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--space-4); }
.aw-gallery li { margin: 0; aspect-ratio: 4 / 5; position: relative; }
.aw-gallery li.wide { grid-column: span 2; aspect-ratio: auto; } /* takes the row's height */
.aw-gallery img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: var(--radius-lg); }
@media (max-width: 960px) { .aw-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aw-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } .aw-gallery img { border-radius: var(--radius-md); } .aw-gallery li.wide { aspect-ratio: 3 / 2; } }

/* Editor text inside .prose: tables and quotes in the design's type. */
.prose blockquote { margin: 0; padding-left: var(--space-4); border-left: 3px solid var(--cta); font-family: var(--font-display); font-size: 20px; line-height: 30px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.prose hr { border: 0; border-top: 1px solid var(--border); width: 100%; }
.prose .wp-block-table { margin: 0; }

/* Screen-reader text used by WordPress pagination. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
