/* ============================================================
   WORLD GM AWARDS — WINNER DIRECTORY (/winners/)
   Loaded after css/styles.css by the pages generated by
   build-winner-directory.py. Everything is namespaced wd-*.
   Tokens (executive navy / premium gold, Fraunces + Manrope)
   come from styles.css. No country pages on this programme —
   country appears only as plain text (card meta + hub tag list).
   ============================================================ */

.wd-hero .page-hero-content p { max-width: 680px; }
.wd-hero .page-hero-content p span { color: var(--gold-light); font-weight: 600; }

/* breadcrumb (site style already defines .breadcrumb nav; reused as-is) */

/* 80 / 20 two-column layout, 90% wide up to 1700px */
.wd-container { width: 90%; max-width: 1700px; margin: 0 auto; }
.wd-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 44px 0 56px; }
.wd-main { min-width: 0; }
.wd-sidebar { position: sticky; top: 84px; align-self: start; }   /* fixed header 68px + 16px */
.wd-cta-inline { display: none; margin: 8px 0 32px; }

@media (max-width: 1024px) {
  .wd-layout { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
  .wd-sidebar { display: none; }
  .wd-cta-inline { display: block; }
}

/* intro + sub navigation */
.wd-intro { max-width: 900px; font-size: 1rem; line-height: 1.75; margin-bottom: 26px; }
.wd-intro a { color: var(--gold-dark); font-weight: 600; }
.wd-intro a:hover { color: var(--primary); }
.wd-pagenote { font-family: 'Manrope', sans-serif; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 22px; }
.wd-pagenote a { color: var(--gold-dark); font-weight: 600; }
.wd-subnav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 30px; font-family: 'Manrope', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.wd-subnav a { color: var(--primary); }
.wd-subnav a:hover, .wd-subnav a[aria-current] { color: var(--gold-dark); }

.wd-section { margin-bottom: 38px; }
.wd-h2 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); margin-bottom: 10px; }
.wd-h2 small { font-family: 'Manrope', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; color: var(--text-muted); margin-left: 10px; }

/* year chips */
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-chip { display: inline-flex; align-items: center; gap: 7px; font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--primary); background: var(--white); border: 1px solid var(--border); border-radius: 2px; padding: 9px 15px; transition: all var(--transition); }
.wd-chip small { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wd-chip:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-1px); }
.wd-chip[aria-current] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.wd-chip[aria-current] small { color: rgba(255,255,255,0.72); }

/* countries represented — plain text tags, no links (no country pages on this programme) */
.wd-country-tags { display: flex; flex-wrap: wrap; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.wd-country-tags span { display: inline-flex; align-items: center; gap: 6px; font-family: 'Manrope', sans-serif; font-size: 0.78rem; color: var(--text-body); background: var(--bg-light); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.wd-country-tags span b { font-weight: 700; color: var(--gold-dark); font-variant-numeric: tabular-nums; }

/* winner cards (no images: the export's image URLs are not live) */
.wd-listhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.wd-count-line { margin: 0; font-family: 'Manrope', sans-serif; font-size: 0.78rem; color: var(--text-muted); }
.wd-count-line strong { color: var(--primary); }
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
@media (max-width: 480px) { .wd-grid { grid-template-columns: 1fr; } }
.wd-winner { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; transition: all var(--transition); }
.wd-winner:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.wd-winner-top { display: flex; gap: 14px; align-items: flex-start; }
.wd-winner-top > div { min-width: 0; }
.wd-monogram { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--navy)); color: var(--gold); font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(201,163,77,0.35); }
.wd-cat { display: inline-flex; align-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; margin-bottom: 8px; line-height: 1.4; }
.wd-winner h3 { font-size: 1.18rem; line-height: 1.2; margin-bottom: 6px; overflow-wrap: anywhere; }
.wd-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.wd-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-family: 'Manrope', sans-serif; font-size: 0.72rem; color: var(--text-muted); }
.wd-meta li { display: inline-flex; gap: 5px; align-items: baseline; }
.wd-meta a { color: var(--primary); font-weight: 600; }
.wd-meta a:hover { color: var(--gold-dark); }
.wd-desc { text-align: justify; text-align-last: left; hyphens: auto;  font-size: 0.86rem; line-height: 1.65; border-top: 1px solid var(--border); padding-top: 12px; }
.wd-site { align-self: flex-start; font-family: 'Manrope', sans-serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); border: 1px solid var(--border-strong); border-radius: 2px; padding: 7px 13px; transition: all var(--transition); }
.wd-site:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* pagination */
.wd-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; font-family: 'Manrope', sans-serif; }
.wd-pagination a, .wd-pagination span.wd-current { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); font-size: 0.72rem; font-weight: 700; color: var(--primary); transition: all var(--transition); }
.wd-pagination a:hover { border-color: var(--gold); color: var(--gold); }
.wd-pagination span.wd-current { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); border-color: var(--gold); }
.wd-pagination .pager-gap { padding: 0 4px; color: var(--text-muted); }

/* nomination widget (sticky sidebar on desktop, inline module on tablet/mobile) */
.wd-widget { background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.wd-widget-media { display: block; }
.wd-widget img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wd-widget-body { padding: 22px 20px; }
.wd-widget-body .eyebrow { display: block; margin-bottom: 8px; }
.wd-widget h3 { font-size: 1.4rem; line-height: 1.15; margin-bottom: 14px; }
.wd-widget ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.wd-widget li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.82rem; line-height: 1.55; color: var(--text-body); }
.wd-widget li::before { content: '✦'; color: var(--gold-dark); flex-shrink: 0; font-size: 0.7rem; margin-top: 4px; }
.wd-widget .btn { width: 100%; }
.wd-widget-note { font-family: 'Manrope', sans-serif; font-size: 0.7rem; color: var(--text-muted); margin-top: 12px; text-align: center; }
.wd-widget-note a { color: var(--gold-dark); font-weight: 600; }
@media (min-width: 1025px) {
  .wd-cta-inline .wd-widget { display: none; }
}
@media (max-width: 1024px) {
  .wd-cta-inline .wd-widget { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .wd-cta-inline .wd-widget-media { height: 100%; }
  .wd-cta-inline .wd-widget img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 640px) {
  .wd-cta-inline .wd-widget { grid-template-columns: 1fr; }
  .wd-cta-inline .wd-widget-media { height: auto; }
  .wd-cta-inline .wd-widget img { aspect-ratio: 16 / 9; height: auto; }
}

/* bottom banner (site .cta-banner + image column) */
.wd-cta-banner .cta-banner-inner { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; align-items: center; gap: 36px; }
.wd-cta-banner .cta-banner-text p { color: rgba(255,255,255,0.85); }
.wd-cta-media { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(201,163,77,0.35); box-shadow: var(--shadow); }
.wd-cta-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 1024px) {
  .wd-cta-banner .cta-banner-inner { grid-template-columns: 1fr; gap: 24px; }
  .wd-cta-media { max-width: 480px; }
}

/* methodology prose */
.wd-prose { max-width: 860px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: var(--shadow-sm); }
.wd-prose h2 { font-size: 1.5rem; margin: 26px 0 10px; }
.wd-prose h2:first-child { margin-top: 0; }
.wd-prose p, .wd-prose li { font-size: 0.95rem; line-height: 1.75; margin-bottom: 10px; }
.wd-prose ul { list-style: disc; padding-left: 22px; }
.wd-prose a { color: var(--gold-dark); font-weight: 600; }
.wd-prose .btn { margin-top: 10px; }
@media (max-width: 640px) { .wd-prose { padding: 22px; } }
