/*
Theme Name: The Bates Foundation 2026
Author: The Bates Foundation
Description: The Bates Foundation website. We all leave a mark.
Version: 2.2
Text Domain: tbf
*/
html{scroll-behavior:smooth}
body{margin:0;background:#FFFFFF;color:#111111;font-family:'Raleway',sans-serif;font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
img{max-width:100%}
a{color:#E04511}a:hover{color:#B8370C}
section[id]{scroll-margin-top:112px}
.tbf-video{position:relative}
.tbf-video iframe{display:block;width:100%;height:640px;border:0;border-radius:20px;background:#000}
.tbf-play:focus-visible{outline:3px solid #FF8A5C;outline-offset:4px}
.tbf-nav-toggle{display:none}
/* story content */
.tbf-content{font-size:18px;line-height:1.75}
.tbf-content p{margin:0 0 22px}
.tbf-content h2{font-family:'Newsreader',serif;font-weight:400;font-size:34px;line-height:1.2;margin:40px 0 16px}
.tbf-content h3{font-weight:600;font-size:22px;margin:30px 0 12px}
.tbf-content blockquote{margin:28px 0;padding:6px 0 6px 26px;border-left:3px solid #E04511;font-family:'Newsreader',serif;font-style:italic;font-weight:300;font-size:28px;line-height:1.3}
.tbf-content img{width:100%;height:auto;border-radius:16px;margin:12px 0}
.tbf-content ul,.tbf-content ol{padding-left:22px;margin:0 0 22px}
.tbf-content a{font-weight:600}
.tbf-pager{display:flex;gap:10px;flex-wrap:wrap}
.tbf-pager .page-numbers{border:1px solid #DADADA;border-radius:999px;padding:8px 16px;text-decoration:none;color:#111}
.tbf-pager .current{background:#111;color:#fff;border-color:#111}
.tbf-field{display:flex;flex-direction:column;gap:6px}
.tbf-field label{font-size:14px;font-weight:600}
.tbf-field input,.tbf-field select,.tbf-field textarea{font-family:'Raleway',sans-serif;font-size:16px;border:1px solid #CFCFCF;border-radius:14px;padding:14px 16px;background:#fff;color:#111;width:100%}
.tbf-field textarea{min-height:140px;resize:vertical}
.tbf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
@media (max-width:760px){
  .tbf-header nav{gap:14px !important;font-size:14px !important}
  .tbf-header nav a:not(:last-child){display:none}
  .tbf-header nav a:nth-child(2),.tbf-header nav a:nth-child(3){display:inline}
  .tbf-header img{height:64px !important}
  h1{font-size:48px !important}
  h2{font-size:38px !important}
  section h2[style*="76px"]{font-size:44px !important}
  .page-id-356 section h1,.page-id-357 section h1,.page-id-358 section h1{font-size:38px !important}
  .page-id-356 section h1[style*="76px"],.page-id-357 section h1[style*="76px"],.page-id-358 section h1[style*="76px"]{font-size:44px !important}
  .tbf-video iframe{height:240px}
  .tbf-play{height:280px !important}
  [style*="height: 760px"]{height:520px !important}
  [style*="height: 640px"]{height:300px !important}
  [style*="height: 560px"]{height:300px !important}
  [style*="padding: 150px 24px 130px"]{padding:96px 24px 80px !important}
}

/* Readable text on photos */
.tbf-on-img h1, .tbf-on-img h2, .tbf-on-img p, .tbf-on-img span { text-shadow: 0 2px 14px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.5); }
/* In-page video player */
.tbf-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.tbf-modal-box { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; }
.tbf-modal-box iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.tbf-modal-close { position: absolute; top: -48px; right: 0; background: none; border: 0; color: #FFFFFF; font-size: 34px; line-height: 1; cursor: pointer; }

/* Hero photo sits above the headline so the face is never covered */
.tbf-hero-img { height: min(72vh, 680px); min-height: 420px; }
@media (max-width: 760px) { .tbf-hero-img { height: 440px; min-height: 0; } }
