/* ================================================================
   AG2C – Public Recruiting Profile CSS
   Brand Colors:
     Dark Blue : #041436
     Navy Blue : #003399
     Sky Blue  : #0066ff
     Red       : #FF0000
   Fonts: Anton (name) + Oswald (headings) + DM Sans (body)
   Includes full print / PDF styles.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Base ─────────────────────────────────────────────────────── */

/* Use !important to override any theme background on the live page.
   Targets html, body, and common theme wrapper divs. */
html:has(body.ag2c-profile-page) {
  background: #003399 !important;
  background-color: #003399 !important;
}

body.ag2c-profile-page {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: #0a1628;
  background: #003399 !important;
  background-color: #003399 !important;
}

/* Make common theme page wrappers transparent so navy shows through */
body.ag2c-profile-page #page,
body.ag2c-profile-page #wrapper,
body.ag2c-profile-page #content,
body.ag2c-profile-page .site,
body.ag2c-profile-page .site-content,
body.ag2c-profile-page main,
body.ag2c-profile-page #main,
body.ag2c-profile-page .entry-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.ag2c-profile-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 80px rgba(0,0,0,.45);
  position: relative;
  z-index: 1;
}

/* ── Site Header ──────────────────────────────────────────────── */
.ag2c-profile-site-header {
  background: #041436;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Tri-color bottom stripe on header */
.ag2c-profile-site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #FF0000 0%,  #FF0000 20%,
    #003399 20%, #003399 60%,
    #0066ff 60%, #0066ff 100%
  );
}

.ag2c-profile-site-header a {
  display: block;
  line-height: 0;
}

.ag2c-profile-header-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .ag2c-profile-site-header { padding: 14px 20px; }
  .ag2c-profile-header-logo { max-width: 200px; }
}

/* ── Cover Banner ─────────────────────────────────────────────── */
.ag2c-profile-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.ag2c-profile-cover-overlay {
  display: none;
}

/* ── Hero Header ──────────────────────────────────────────────── */
.ag2c-profile-hero {
  background: var(--dark, #041436);
  background: linear-gradient(135deg, #041436 0%, #003399 100%);
  color: white;
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

/* Diagonal sky accent on hero */
.ag2c-profile-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -20px;
  width: 300px; height: 100%;
  background: linear-gradient(135deg, transparent 45%, rgba(0,102,255,.12) 45%);
  pointer-events: none;
}

/* Red bottom border on hero */
.ag2c-profile-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #FF0000 0%,  #FF0000 20%,
    #003399 20%, #003399 60%,
    #0066ff 60%, #0066ff 100%
  );
}

.ag2c-profile-hero-inner { flex: 1; min-width: 0; position: relative; z-index: 1; }

.ag2c-profile-name {
  font-family: 'Anton', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ag2c-profile-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 22px;
  font-size: 15px;
}

.ag2c-profile-detail { color: rgba(255,255,255,.78); }
.ag2c-profile-detail strong { color: #0066ff; }

.ag2c-profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ag2c-profile-print-btn {
  background: #FF0000;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 3px 12px rgba(255,0,0,.35);
}

.ag2c-profile-print-btn:hover {
  background: #cc0000;
  box-shadow: 0 5px 18px rgba(255,0,0,.45);
}

.ag2c-profile-social { display: flex; gap: 10px; flex-wrap: wrap; }

.ag2c-social-link {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: color .18s, border-color .18s, background .18s;
}

.ag2c-social-link:hover {
  color: white;
  border-color: #0066ff;
  background: rgba(0,102,255,.12);
}

/* Headshot */
.ag2c-profile-headshot-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ag2c-profile-headshot {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #0066ff;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  display: block;
}

/* ── Sections ─────────────────────────────────────────────────── */
.ag2c-profile-section {
  padding: 40px 40px;
  border-bottom: 1px solid #e0e7f5;
}

.ag2c-profile-section--statement { background: #f5f7ff; }
.ag2c-profile-section--scouting  { background: #041436; color: white; }
.ag2c-profile-section--athletic  { background: #f5f7ff; }
.ag2c-profile-section--videos    { background: #ffffff; }
.ag2c-profile-section--contact   { background: #f5f7ff; }

.ag2c-profile-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #041436;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0066ff;
  display: inline-block;
}

/* Scouting section title in red */
.ag2c-profile-section--scouting .ag2c-profile-section-title {
  color: #FF0000;
  border-bottom-color: #FF0000;
}

.ag2c-profile-container { max-width: 880px; margin: 0 auto; }

/* Statement */
.ag2c-profile-statement {
  font-size: 17px;
  line-height: 1.75;
  color: #1a2a4a;
  max-width: 760px;
}

/* Scouting report */
.ag2c-profile-scouting-text {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  font-style: italic;
  max-width: 760px;
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.ag2c-profile-scouting-text::before {
  content: '"';
  position: absolute;
  left: 0; top: -4px;
  font-size: 40px;
  color: #0066ff;
  font-style: normal;
  line-height: 1;
  font-family: 'Oswald', sans-serif;
}

.ag2c-profile-section--scouting .ag2c-profile-scouting-credit,
p.ag2c-profile-scouting-credit {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  letter-spacing: .3px;
  font-style: normal;
}

/* Two-col layout */
.ag2c-profile-two-col {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

@media (max-width: 640px) {
  .ag2c-profile-two-col  { grid-template-columns: 1fr; }
  .ag2c-profile-hero     { padding: 24px 20px; }
  .ag2c-profile-section  { padding: 28px 20px; }
  .ag2c-profile-name     { font-size: 26px; }
}

.ag2c-profile-col-main  { min-width: 0; }
.ag2c-profile-col-side  { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.ag2c-profile-section p { color: #1a2a4a; line-height: 1.65; }
.ag2c-profile-section p strong { color: #003399; }

.ag2c-profile-school-logo {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
}

/* Lists */
.ag2c-profile-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.ag2c-profile-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: #1a2a4a;
  font-size: 15px;
  border-bottom: 1px solid #e0e7f5;
}

.ag2c-profile-list li:last-child { border-bottom: none; }

.ag2c-profile-list li::before {
  content: '▸';
  position: absolute;
  left: 0; top: 8px;
  color: #0066ff;
  font-size: 11px;
  line-height: 1;
}

/* Athletic blocks */
.ag2c-profile-athletic-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e7f5;
}

.ag2c-profile-athletic-block:last-child { border-bottom: none; }

.ag2c-profile-athletic-block h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #003399;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Videos */
.ag2c-profile-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.ag2c-profile-video-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #041436;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.ag2c-profile-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #d0d9f0;
}

.ag2c-profile-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Gallery */
.ag2c-profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ag2c-profile-gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 2px solid #d0d9f0;
  transition: border-color .18s, box-shadow .18s;
}

.ag2c-profile-gallery-item:hover {
  border-color: #0066ff;
  box-shadow: 0 4px 16px rgba(0,102,255,.2);
}

.ag2c-profile-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block;
}

.ag2c-profile-gallery-item:hover img { transform: scale(1.04); }

/* Schedule */
.ag2c-profile-schedule { margin: 0; }

.ag2c-profile-schedule-row {
  padding: 10px 14px;
  border-bottom: 1px solid #e0e7f5;
  font-size: 15px;
  color: #1a2a4a;
}

.ag2c-profile-schedule-row:nth-child(even) { background: #f5f7ff; }
.ag2c-profile-schedule-row:hover           { background: #e8edff; }

/* ── Contact form ─────────────────────────────────────────────── */
.ag2c-contact-form { display: flex; flex-direction: column; gap: 14px; }

.ag2c-contact-field { display: flex; flex-direction: column; gap: 5px; }

.ag2c-contact-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #003399;
}

.ag2c-contact-field input,
.ag2c-contact-field textarea {
  padding: 10px 14px;
  border: 1.5px solid #d0d9f0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #0a1628;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  background: white;
}

.ag2c-contact-field input:focus,
.ag2c-contact-field textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0,102,255,.14);
}

.ag2c-contact-field textarea { resize: vertical; min-height: 120px; }

.ag2c-contact-submit {
  background: linear-gradient(135deg, #003399 0%, #0066ff 100%);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .18s;
  box-shadow: 0 4px 16px rgba(0,102,255,.28);
}

.ag2c-contact-submit:hover {
  background: linear-gradient(135deg, #0066ff 0%, #3385ff 100%);
  box-shadow: 0 6px 24px rgba(0,102,255,.38);
}

.ag2c-contact-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.ag2c-contact-status--success {
  background: #e6f9ef;
  color: #006629;
  border-left: 4px solid #00c853;
}

.ag2c-contact-status--error {
  background: #fff0f0;
  color: #cc0000;
  border-left: 4px solid #FF0000;
}

.ag2c-contact-photo {
  width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(4,20,54,.14);
  border: 2px solid #d0d9f0;
}

/* ── Site footer branding ─────────────────────────────────────── */
.ag2c-profile-site-footer {
  background: #041436;
  color: rgba(255,255,255,.5);
  padding: 36px 40px 28px;
  text-align: center;
  font-size: 14px;
  position: relative;
}

.ag2c-profile-site-footer .ag2c-footer-logo {
  display: block;
  margin: 0 auto 14px;
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* Tri-color top stripe on footer */
.ag2c-profile-site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #FF0000 0%,  #FF0000 20%,
    #003399 20%, #003399 60%,
    #0066ff 60%, #0066ff 100%
  );
}

.ag2c-profile-site-footer a {
  color: #0066ff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  transition: color .15s;
}

.ag2c-profile-site-footer a:hover { color: #3385ff; }
.ag2c-profile-site-footer p { margin: 6px 0 0; }

/* ================================================================
   PRINT / PDF STYLES
   ================================================================ */
@media print {
  body.ag2c-profile-page { background: white; font-size: 12pt; }

  /* Hide non-content elements */
  #wpadminbar,
  .site-header,
  .main-navigation,
  .ag2c-profile-print-btn,
  .ag2c-profile-site-header,
  #ag2c-contact-section,
  .ag2c-profile-site-footer { display: none !important; }

  .ag2c-profile-wrap { box-shadow: none; max-width: 100%; }

  .ag2c-profile-hero {
    background: #041436 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 20pt 24pt;
  }

  .ag2c-profile-name    { font-size: 24pt; }
  .ag2c-profile-section { padding: 16pt 24pt; break-inside: avoid; }
  .ag2c-profile-cover   { height: 80pt; }

  .ag2c-profile-section--scouting {
    background: #041436 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ag2c-profile-section-title {
    color: #041436;
    border-bottom-color: #0066ff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Videos can't print — show placeholder text */
  .ag2c-profile-videos-grid { display: none; }

  .ag2c-profile-section--videos::before {
    content: 'Highlight Videos — visit the online profile to view';
    display: block;
    font-style: italic;
    color: #4a5878;
    font-size: 11pt;
    padding: 8pt 0;
  }

  .ag2c-profile-gallery { grid-template-columns: repeat(3, 1fr); }
  .ag2c-profile-gallery-item { break-inside: avoid; }

  /* Page breaks */
  .ag2c-profile-section--athletic,
  .ag2c-profile-section--videos   { page-break-before: auto; }
}

/* ================================================================
   PLAYER CARD — quick stats, jump-nav, share   (added v3.0.0)
   Restyles the hero to match the AG2C profile-card mockup.
   ================================================================ */

/* Hero becomes a vertical stack: info row → nav → share → secondary */
.ag2c-profile-hero {
  flex-direction: column !important;
  align-items: stretch !important;
}

/* Top row: name/stats block on the left, headshot on the right */
.ag2c-profile-hero-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 28px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

.ag2c-profile-tagline {
  font-family: 'Anton', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #FF0000 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: -8px 0 6px !important;
}

.ag2c-profile-location {
  font-size: 15px !important;
  color: rgba(255,255,255,.75) !important;
  margin: 0 0 18px !important;
}

/* Quick-stat block */
.ag2c-profile-quickstats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 6px 26px !important;
  max-width: 440px !important;
}

.ag2c-quickstat {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 4px 0 !important;
  border-bottom: 0 !important;
}

.ag2c-quickstat-label {
  font-family: 'Oswald', sans-serif !important;
  color: #0099FF !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .4px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.ag2c-quickstat-value {
  color: #ffffff !important;
  text-align: left !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

/* Quick-nav icon buttons */
.ag2c-profile-nav {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin: 26px 0 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

.ag2c-nav-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  text-align: center !important;
  padding: 16px 8px !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.04) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .4px !important;
  line-height: 1.25 !important;
  transition: border-color .18s, background .18s, transform .18s !important;
}

.ag2c-nav-btn:hover {
  border-color: #0099FF !important;
  background: rgba(0,102,255,.16) !important;
  transform: translateY(-2px) !important;
}

.ag2c-nav-btn svg {
  width: 26px !important;
  height: 26px !important;
  fill: none !important;
  stroke: #0099FF !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* Share button */
.ag2c-share-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 14px 0 0 !important;
  padding: 15px 24px !important;
  border: none !important;
  border-radius: 12px !important;
  background: #FF0000 !important;
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: 0 6px 20px rgba(255,0,0,.35) !important;
  transition: background .18s, box-shadow .18s, transform .18s !important;
}

.ag2c-share-btn:hover {
  background: #cc0000 !important;
  box-shadow: 0 8px 26px rgba(255,0,0,.45) !important;
  transform: translateY(-1px) !important;
}

.ag2c-share-btn svg {
  width: 22px !important;
  height: 22px !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.ag2c-share-btn.ag2c-copied {
  background: #0066ff !important;
  box-shadow: 0 6px 20px rgba(0,102,255,.4) !important;
}

/* Secondary actions row (print + social) */
.ag2c-profile-secondary-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin: 16px 0 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Responsive */
@media (max-width: 640px) {
  .ag2c-profile-nav        { grid-template-columns: repeat(2, 1fr) !important; }
  .ag2c-profile-quickstats { grid-template-columns: 1fr !important; max-width: none !important; }
  .ag2c-profile-headshot   { width: 120px !important; height: 150px !important; }
  .ag2c-share-btn          { font-size: 17px !important; }
  .ag2c-profile-hero-top   { gap: 18px !important; }
}

/* Print: drop the interactive chrome, keep the info */
@media print {
  .ag2c-profile-nav,
  .ag2c-share-btn,
  .ag2c-profile-secondary-actions { display: none !important; }
  .ag2c-quickstat-label { color: #003399 !important; }
  .ag2c-quickstat-value { color: #0a1628 !important; }
  .ag2c-profile-tagline {
    color: #FF0000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ag2c-profile-location { color: rgba(255,255,255,.85) !important; }
}

/* ================================================================
   TABBED SECTIONS   (added v3.1.0)
   The 4 nav buttons act as tabs. Sections carry data-tabpanel and
   only the active one shows. Hiding is gated on html.ag2c-js (set by
   a tiny head script) so visitors with JS disabled see every section.
   ================================================================ */
html.ag2c-js .ag2c-profile-section[data-tabpanel] { display: none !important; }
html.ag2c-js .ag2c-profile-section[data-tabpanel].ag2c-tab-active { display: block !important; }

/* Nav buttons are now <button> elements — normalise appearance */
.ag2c-nav-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
  width: 100% !important;
}

/* Current tab */
.ag2c-nav-btn.ag2c-tab-current {
  border-color: #0099FF !important;
  background: rgba(0,102,255,.22) !important;
}
.ag2c-nav-btn.ag2c-tab-current svg { stroke: #ffffff !important; }

/* Print / PDF must contain the WHOLE profile, not just the open tab */
@media print {
  html.ag2c-js .ag2c-profile-section[data-tabpanel] { display: block !important; }
}

/* ================================================================
   HERO LAYOUT + MOBILE REFINEMENTS   (added v3.1.1)
   Desktop keeps the approved look via grid areas; mobile follows the
   "Profile Changes v1" mockup.
   ================================================================ */

/* Desktop: name/tagline top-left, location+stats below-left,
   headshot in a right column spanning both rows. */
.ag2c-profile-hero-top {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-areas:
    "head shot"
    "info shot" !important;
  gap: 2px 28px !important;
  align-items: start !important;
}
.ag2c-hero-head { grid-area: head !important; min-width: 0 !important; }
.ag2c-hero-info { grid-area: info !important; min-width: 0 !important; }
.ag2c-profile-headshot-wrap { grid-area: shot !important; }

@media (max-width: 640px) {

  /* Drop the grid so the headshot can float and stats wrap around it */
  .ag2c-profile-hero-top { display: block !important; }

  /* Name fills the width, name + year/position centered */
  .ag2c-hero-head { width: 100% !important; text-align: center !important; }
  .ag2c-profile-name {
    text-align: center !important;
    font-size: clamp(30px, 11.5vw, 54px) !important;
    letter-spacing: .5px !important;
    line-height: 1.02 !important;
    margin: 0 0 6px !important;
  }
  .ag2c-profile-tagline {
    text-align: center !important;
    font-size: clamp(17px, 6vw, 24px) !important;
    margin: 0 0 12px !important;
  }

  /* Headshot drops below the name, larger; stats flow around it */
  .ag2c-profile-headshot-wrap {
    float: right !important;
    width: clamp(135px, 43vw, 180px) !important;
    margin: 2px 0 10px 16px !important;
  }
  .ag2c-profile-headshot {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
  }

  .ag2c-hero-info { display: block !important; }
  .ag2c-profile-location { text-align: left !important; margin: 0 0 10px !important; }

  /* Condensed stats: no dividers, value beside the label */
  .ag2c-profile-quickstats { display: block !important; max-width: none !important; }
  .ag2c-quickstat {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    gap: 8px !important;
    padding: 3px 0 !important;
    border-bottom: 0 !important;
  }
  .ag2c-quickstat-value { text-align: left !important; }

  /* Buttons: 4 across, labels wrap */
  .ag2c-profile-nav {
    clear: both !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .ag2c-nav-btn {
    padding: 12px 4px !important;
    gap: 7px !important;
    font-size: 10px !important;
    letter-spacing: .2px !important;
  }
  .ag2c-nav-btn svg { width: 22px !important; height: 22px !important; }

  .ag2c-share-btn { font-size: 17px !important; }
}

/* ================================================================
   DESKTOP-ONLY: bigger headshot + wider stat band  (added v3.1.2)
   (Mobile keeps its own headshot sizing from the block above.)
   ================================================================ */
@media (min-width: 641px) {
  .ag2c-profile-headshot {
    width: 208px !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
  }
  .ag2c-profile-quickstats {
    max-width: 560px !important;
    gap: 8px 34px !important;
  }
  .ag2c-quickstat { padding: 5px 0 !important; }
  .ag2c-quickstat-label { font-size: 16px !important; }
  .ag2c-quickstat-value { font-size: 19px !important; }
}
