/* Design fixes layered over the original compiled stylesheets. Selectors repeat the scoped
   data-astro-cid attributes where they have to outrank an original rule. */

/* Header: keep the menu button at the end of the bar, and let the brand give way on very small phones */
@media (max-width: 1279px) {
  .nav-desktop[data-astro-cid-dmqpwcec] + .nav-end[data-astro-cid-dmqpwcec] { margin-inline-start: auto; }
}
@media (max-width: 380px) {
  .nav-inner[data-astro-cid-dmqpwcec] { gap: var(--space-2); }
  .nav-brand[data-astro-cid-dmqpwcec] { flex: 0 1 auto; min-width: 0; }
  .nav-end[data-astro-cid-dmqpwcec] { margin-inline-start: auto; }
  .nav-brand[data-astro-cid-dmqpwcec] .logo-w1 { font-size: .82rem; }
}

/* Home: use the full width of the event card */
.ev-spot-blurb[data-astro-cid-ct3bgug4] { max-width: none; }

/* Climate diagram: readable labels on phones */
@media (max-width: 600px) {
  .twoway-svg[data-astro-cid-ngisurw4] { padding: var(--space-2); }
  .node-label[data-astro-cid-ngisurw4] { font-size: 19px; }
  .arc-label[data-astro-cid-ngisurw4] { font-size: 23px; }
  .arc-stat[data-astro-cid-ngisurw4] { font-size: 19px; }
}

/* Project: five work packages as a balanced 3 + 2 */
@media (min-width: 1000px) {
  .wpgraph[data-astro-cid-smzmfqik] { grid-template-columns: repeat(6, 1fr); }
  .wpnode[data-astro-cid-smzmfqik] { grid-column: span 2; }
  .wpnode[data-astro-cid-smzmfqik]:nth-child(n + 4) { grid-column: span 3; }
}

/* Partners: larger logos, and the website link aligned along the bottom of each card */
.pcard[data-astro-cid-35hbdwcr] { display: flex; flex-direction: column; }
.pmeta[data-astro-cid-35hbdwcr] { margin-block-start: auto; padding-block-start: .5rem; justify-content: space-between; }
.pmeta[data-astro-cid-35hbdwcr]:empty { display: none; }
.pflag[data-astro-cid-35hbdwcr] { width: 3.5rem; height: 3.5rem; }
.pmono[data-astro-cid-35hbdwcr] { font-size: .85rem; }
.pmono-long[data-astro-cid-35hbdwcr] { font-size: .72rem; }

/* Events: cards share the page heading's left edge */
.ev-wrap[data-astro-cid-3vupwrab] { max-width: 60rem; }

/* Larger touch targets */
.ev-more[data-astro-cid-h4bw6n5x] { display: inline-block; padding-block: .3rem; }
button.btn-tertiary { min-height: 2rem; }

/* Less empty space above the footer */
main > section:last-child { padding-block-end: clamp(2rem, 4vw, 3rem); }

/* Footer: room for the brand on small laptops */
@media (min-width: 861px) and (max-width: 1180px) {
  .foot-grid[data-astro-cid-sz7xmlte] { grid-template-columns: 1.9fr 1fr 1fr 1.8fr; gap: var(--space-5); }
}

/* Arabic: English and numeric runs inside right-to-left text */
html[dir="rtl"] .carbon strong { direction: ltr; unicode-bidi: isolate; display: inline-block; }
html[dir="rtl"] .official { unicode-bidi: plaintext; text-align: right; }

/* Social links */
.social { display: grid; gap: .5rem; margin-block-start: var(--space-2); }
.social-title { margin: 0; font-size: var(--text-small); font-weight: 600; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.social-link {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-md); border: 1px solid currentColor; color: inherit;
}
.social-link svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
a.social-link { transition: background var(--motion-fast), transform var(--motion-fast); }
a.social-link:hover { transform: translateY(-1px); background: color-mix(in srgb, currentColor 14%, transparent); }
.social-link.is-soon { opacity: .68; border-style: dashed; }
.social-note { margin: 0; font-size: var(--text-micro, .75rem); opacity: .85; }
.foot .social { color: var(--loam-100); }
.contact-info .social { margin-block-start: var(--space-5); color: var(--brand); }
