/* DFSB site theme overrides (on top of the Webflow stylesheet). Fonts unchanged. */

/* Colour: black buttons on light sections (navy removed) */
.button, .button.view-the-standards { background-color: #141414; }
/* Footer newsletter: outline button like the hero, same height as the email field */
.form { align-items: stretch; }
.form .text-field { height: 44px; min-height: 44px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.button.email-subscribe { background-color: transparent; color: #f3efe6; border: 1px solid rgba(243, 239, 230, .7); opacity: 1; }
.button.email-subscribe:hover { background-color: #f3efe6; color: #000; opacity: 1; }

/* Buttons: one solid button per section, 15px sentence case, square-ish corners */
.button, .button .button-text, .button-text { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.button.view-the-standards, .button.view-the-standards * { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.button { height: 48px; min-height: 48px; padding: 0 24px; border-radius: 4px; min-width: 0; }
.button.view-the-standards { max-width: none; }
.button.join-us { padding: 0 28px; }
.button.email-subscribe { flex: none; width: auto; height: 44px; min-height: 44px; padding: 0 24px; font-size: 14px; box-sizing: border-box; }

/* Hero: outline primary button, "Learn more" as a text link */
.button.hero { background-color: transparent; border: 1px solid rgba(243, 239, 230, .7); opacity: 1; }
.button.hero .button-text { color: #f3efe6; }
.button.hero:hover { background-color: #f3efe6; opacity: 1; }
.button.hero:hover .button-text { color: #000; }
.button.hero-2 { background: transparent; border: 0; padding: 0 4px; min-width: 0; }
.button.hero-2 .button-text { color: #f3efe6; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.button.hero-2:hover { background: transparent; color: #fff; border-color: transparent; }

/* Documentation: "Download" / "View" as text links */
.download-button, .download-button.view-button { background: transparent; border: 0; border-radius: 0; color: #141414; padding: 0; min-width: 0; margin-top: 0;
  font-size: 15px; font-weight: 600; align-self: flex-start; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.download-button:hover, .download-button.view-button:hover { background: transparent; color: #141414; border-color: transparent; opacity: .6; }
.resource-card { height: auto; min-height: 340px; justify-content: flex-start; gap: 18px; padding: 36px; }
.resource-card .body-text { font-size: 16px; line-height: 1.6; }
.resource-card .card-footer { margin-top: auto; gap: 28px; padding-top: 12px; }

/* Footer: no vertical lines */
.footer-left-column, .footer-right-column { border-left: 0; border-right: 0; }

/* Leadership photos the same size */
.avatar.large-avatar { width: 168px; height: 200px; object-fit: cover; }

@media screen and (min-width: 992px) {
  /* Hero fills the first screen (menu bar + hero = full window height), content centred vertically */
  .navbar-wrapper + .section { min-height: calc(100vh - 141px); min-height: calc(100svh - 141px); display: flex; flex-direction: column; justify-content: center; }
  .navbar-wrapper + .section > .container---main { width: 100%; }
  /* One spacing scale: 96px between sections, 32px heading-to-content */
  .section.title { padding-top: 96px; padding-bottom: 32px; }
  .section.title + .section { border-top: 0; }
  .section { padding-bottom: 0; }
  /* Two-column sections: divider exactly in the centre, same gap under the title line everywhere */
  .halves > .standards_leftbox.left { flex: 0 0 50%; max-width: 50%; box-sizing: border-box; padding-top: 48px; padding-right: 48px; padding-bottom: 96px; }
  .halves > .standards_leftbox.right { flex: 1 1 0; min-width: 0; box-sizing: border-box; padding-top: 48px; padding-left: 48px; padding-bottom: 96px; }
  /* The Standards row is a grid: two equal columns, no gap, divider on the right column */
  div:has(> .standards-left) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; grid-column-gap: 0; }
  .standards-left { box-sizing: border-box; padding-top: 48px; padding-right: 48px; padding-bottom: 96px; border-right: 0; }
  .standards-right { box-sizing: border-box; padding-top: 48px; padding-left: 48px; padding-bottom: 96px; margin-left: 0; border-left: 1px solid #1f271b33; }
  .mission-stteps-stack { row-gap: 0; }
  .mission-step-row { padding: 20px 0; column-gap: 24px; }
  .resources-header-row { padding: 48px 0 8px; }
  .resources-viewport { margin-top: 8px; padding-bottom: 96px; }
  /* Leadership: side by side */
  .founders-row { padding-top: 48px; padding-bottom: 96px; }
  .team-grid { grid-template-columns: 1fr 1fr; grid-column-gap: 48px; grid-row-gap: 48px; }
  .team-member { flex-flow: column; grid-row-gap: 20px; }
  /* Join cards: all three the same height as the tallest */
  .standards_leftbox.right:has(> .metric) { display: grid; grid-auto-rows: 1fr; row-gap: 24px; align-content: start; }
  .standards_leftbox.right:has(> .metric) > .metric { align-self: stretch; height: 100%; box-sizing: border-box; margin: 0; }
  .metric.bg-mid-tone { grid-row-gap: 8px; padding: 32px 40px; }
  .metric .display-heading-2 { padding-bottom: 8px; margin-bottom: 0; }
  /* Footer */
  .footer-left-column, .footer-right-column { padding-top: 72px; padding-bottom: 72px; }
}
