/* ============================================================
   WORLD CEO AWARDS — WINNER DIRECTORY (/winners/)
   Loaded after assets/css/style.css by the pages generated by
   build-winner-directory.py. Everything is namespaced wd-*.
   Tokens (executive navy / royal blue / platinum gold, Playfair
   Display + Inter) come from assets/css/style.css.
   ============================================================ */

/* breadcrumb sits inside .page-hero .container (site convention); no extra rules needed beyond site defaults */

/* 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: 52px 0 60px; }
.wd-main { min-width: 0; }
.wd-sidebar { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.wd-cta-inline { display: none; margin: 8px 0 34px; }

@media (max-width: 1024px) {
  .wd-layout { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .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: 28px; color: var(--ink); }
.wd-intro a { color: var(--gold-deep); font-weight: 600; }
.wd-intro a:hover { color: var(--royal-blue); }
.wd-pagenote { font-family: var(--font-body); font-size: 0.8rem; color: var(--steel-grey); margin-bottom: 24px; }
.wd-pagenote a { color: var(--gold-deep); font-weight: 600; }
.wd-subnav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.wd-subnav a { color: var(--executive-navy); }
.wd-subnav a:hover, .wd-subnav a[aria-current] { color: var(--gold-deep); }

.wd-section { margin-bottom: 40px; }
.wd-h2 { font-size: clamp(1.45rem, 2.2vw, 1.95rem); margin-bottom: 12px; }
.wd-h2 small { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; color: var(--steel-grey); margin-left: 10px; text-transform: none; }

/* year chips */
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--executive-navy); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 16px; transition: all 0.3s var(--ease); }
.wd-chip small { font-size: 0.68rem; font-weight: 500; color: var(--steel-grey); font-variant-numeric: tabular-nums; }
.wd-chip:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.wd-chip[aria-current] { background: var(--executive-navy); border-color: var(--executive-navy); color: #fff; }
.wd-chip[aria-current] small { color: rgba(255,255,255,0.72); }

/* countries represented (plain text, no links) */
.wd-countries { columns: 4; column-gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 26px; box-shadow: var(--shadow-sm); }
.wd-countries span.wd-country { display: flex; justify-content: space-between; gap: 10px; break-inside: avoid; font-size: 0.85rem; color: var(--ink); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.wd-countries span.wd-country b { color: var(--steel-grey); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 0.75rem; }
@media (max-width: 1280px) { .wd-countries { columns: 3; } }
@media (max-width: 768px)  { .wd-countries { columns: 2; } }
@media (max-width: 480px)  { .wd-countries { columns: 1; } }

/* winner cards (no images: the export's winner_image URLs are not live) */
.wd-listhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.wd-count-line { margin: 0; font-family: var(--font-body); font-size: 0.78rem; color: var(--steel-grey); }
.wd-count-line strong { color: var(--executive-navy); }
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px; }
@media (max-width: 480px) { .wd-grid { grid-template-columns: 1fr; } }
.wd-winner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; transition: all 0.3s var(--ease); }
.wd-winner:hover { border-color: var(--line-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(--executive-navy), var(--royal-blue)); color: var(--gold-bright); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-gold); }
.wd-cat { display: inline-flex; align-items: center; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #fff; font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 4px 11px; border-radius: 50px; margin-bottom: 8px; line-height: 1.4; }
.wd-winner h3 { font-size: 1.16rem; line-height: 1.22; margin-bottom: 6px; overflow-wrap: anywhere; }
.wd-sub { font-size: 0.8rem; color: var(--steel-grey); margin-bottom: 6px; }
.wd-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-family: var(--font-body); font-size: 0.72rem; color: var(--steel-grey); }
.wd-meta li { display: inline-flex; gap: 5px; align-items: baseline; }
.wd-desc { text-align: justify; text-align-last: left; hyphens: auto;  font-size: 0.86rem; line-height: 1.65; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; }
.wd-site { align-self: flex-start; font-family: var(--font-body); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--line-gold); border-radius: 50px; padding: 7px 14px; transition: all 0.3s var(--ease); }
.wd-site:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* pagination */
.wd-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 38px; flex-wrap: wrap; font-family: var(--font-body); }
.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(--line); border-radius: var(--radius-sm); background: #fff; font-size: 0.72rem; font-weight: 700; color: var(--executive-navy); transition: all 0.3s var(--ease); }
.wd-pagination a:hover { border-color: var(--gold); color: var(--gold-deep); }
.wd-pagination span.wd-current { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: #fff; border-color: var(--gold); }
.wd-pagination .pager-gap { padding: 0 4px; color: var(--steel-grey); }

/* nomination widget (sticky sidebar on desktop, inline module on tablet/mobile) */
.wd-widget { background: #fff; border: 1px solid var(--line-gold); 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: 24px 22px; }
.wd-widget-body .wd-eyebrow { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.wd-widget h3 { font-size: 1.38rem; line-height: 1.18; margin-bottom: 14px; }
.wd-widget ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.wd-widget li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.82rem; line-height: 1.55; color: var(--ink); }
.wd-widget li::before { content: '\2726'; color: var(--gold-deep); flex-shrink: 0; font-size: 0.68rem; margin-top: 4px; }
.wd-widget .btn { width: 100%; }
.wd-widget-note { font-family: var(--font-body); font-size: 0.7rem; color: var(--steel-grey); margin-top: 13px; text-align: center; }
.wd-widget-note a { color: var(--gold-deep); 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 CTA banner (built on the site's .cta-section navy gradient) */
.wd-cta-banner.cta-section { padding: 64px 0; text-align: left; }
.wd-cta-banner .wd-cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; align-items: center; gap: 36px; }
.wd-cta-banner .wd-cta-text .wd-eyebrow { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 10px; }
.wd-cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.wd-cta-banner .wd-cta-text p { color: rgba(248,248,245,0.85); max-width: 560px; margin: 0; font-size: 0.98rem; }
.wd-cta-media { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-gold); box-shadow: var(--shadow); }
.wd-cta-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wd-cta-actions { display: flex; flex-direction: column; gap: 12px; }
.wd-cta-actions .btn { white-space: nowrap; }
@media (max-width: 1024px) {
  .wd-cta-banner .wd-cta-inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .wd-cta-media { max-width: 420px; margin: 0 auto; }
  .wd-cta-banner .wd-cta-text p { margin: 0 auto; }
  .wd-cta-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .wd-cta-actions { flex-direction: column; }
}

/* methodology prose */
.wd-prose { max-width: 860px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 38px; box-shadow: var(--shadow-sm); }
.wd-prose h2 { font-size: 1.45rem; margin: 28px 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; color: var(--ink); }
.wd-prose ul { list-style: disc; padding-left: 22px; }
.wd-prose a { color: var(--gold-deep); font-weight: 600; }
.wd-prose .btn { margin-top: 12px; }
@media (max-width: 640px) { .wd-prose { padding: 24px; } }
