/* ==========================================================================
   30 November 2026 update
   - Image-backed sections with readable text overlays (tm30-banner, tm30-hero)
   - Prominent, consistent call-to-action buttons (tm30-btn, tm30-cta-row)
   Loaded after nov.css on every page. Uses !important only where the page
   markup sets inline styles that would otherwise win.
   ========================================================================== */

/* ---------- Buttons ---------- */
.tm30-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 16px 30px; border-radius: 8px;
  font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.2;
  text-decoration: none !important; text-align: center;
  background: #DFA900; color: #211900 !important; border: 2px solid #DFA900;
  box-shadow: 0 6px 18px rgba(33, 25, 0, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.tm30-btn:hover { background: #FFC933; border-color: #FFC933; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(33, 25, 0, 0.24); }
.tm30-btn:focus-visible { outline: 3px solid #FFC933; outline-offset: 3px; }

/* Dark button for light backgrounds */
.tm30-btn--dark { background: #211900; border-color: #211900; color: #FFC933 !important; }
.tm30-btn--dark:hover { background: #3A2F10; border-color: #3A2F10; }

/* Outline button for light backgrounds */
.tm30-btn--outline { background: #FFFFFF; border-color: #211900; color: #211900 !important; box-shadow: 0 4px 12px rgba(33, 25, 0, 0.10); }
.tm30-btn--outline:hover { background: #F5EDD6; border-color: #211900; }

/* Outline button for dark backgrounds */
.tm30-btn--ghost { background: rgba(33, 25, 0, 0.35); border-color: #FFC933; color: #FFC933 !important; box-shadow: none; }
.tm30-btn--ghost:hover { background: #FFC933; border-color: #FFC933; color: #211900 !important; }

/* Smaller pill, for secondary links such as LinkedIn */
.tm30-btn--sm { min-height: 42px; padding: 10px 18px; font-size: 15px; box-shadow: none; }

.tm30-cta-row {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: flex-start;
  margin-top: 8px;
}
.tm30-cta-row--center { justify-content: center; width: 100%; }
.tm30-cta-note { flex: 1 1 100%; margin: 0; font-size: 14px; color: inherit; opacity: .8; text-align: center; }

@media (max-width: 560px) {
  .tm30-cta-row { flex-direction: column; align-items: stretch; }
  .tm30-cta-row .tm30-btn { width: 100%; }
}

/* ---------- Image banner (text overlaid at the side of an image) ---------- */
.tm30-banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 18px; min-height: 440px;
  display: flex; align-items: center;
  padding: 56px clamp(24px, 5vw, 64px);
  background-color: #FBF8F0;
  background-image: var(--tm30-img);
  background-size: cover; background-position: right center; background-repeat: no-repeat;
  border: 1px solid #E6DCC2;
}
/* Light scrim: solid behind the text on the left, clear over the picture on the right */
.tm30-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    rgba(251, 248, 240, 0.97) 0%,
    rgba(251, 248, 240, 0.94) 36%,
    rgba(251, 248, 240, 0.55) 56%,
    rgba(251, 248, 240, 0) 72%);
}
.tm30-banner__text { position: relative; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.tm30-banner__text > * { margin: 0; }

/* Dark variant for dark pages */
.tm30-banner--dark { background-color: #211900; border-color: #3A2F10; color: #F3EEDF; }
.tm30-banner--dark::before {
  background: linear-gradient(90deg,
    rgba(33, 25, 0, 0.96) 0%,
    rgba(33, 25, 0, 0.90) 36%,
    rgba(33, 25, 0, 0.45) 58%,
    rgba(33, 25, 0, 0) 76%);
}

/* On narrow screens the picture sits on top and the text below it, so nothing overlaps */
@media (max-width: 820px) {
  .tm30-banner {
    flex-direction: column; align-items: stretch; min-height: 0;
    padding: 0; background-image: none;
  }
  .tm30-banner::before { display: none; }
  .tm30-banner::after {
    content: ""; order: -1; display: block; width: 100%; aspect-ratio: 16 / 9;
    background-image: var(--tm30-img); background-size: cover; background-position: center;
  }
  .tm30-banner__text { max-width: none; padding: 28px 24px 32px; }
}

/* ---------- Image-backed dark page hero ---------- */
.tm30-hero {
  position: relative; isolation: isolate;
  background-color: #211900 !important;
  background-image: var(--tm30-img) !important;
  background-size: cover !important; background-position: right center !important; background-repeat: no-repeat !important;
}
.tm30-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(33, 25, 0, 0.97) 0%, rgba(33, 25, 0, 0.94) 42%, rgba(33, 25, 0, 0.60) 56%, rgba(33, 25, 0, 0.15) 74%, rgba(33, 25, 0, 0) 90%),
    linear-gradient(0deg, rgba(33, 25, 0, 0.92) 0%, rgba(33, 25, 0, 0) 32%);
}
.tm30-hero > section { position: relative; min-height: 560px; }
.tm30-hero > section > div:first-child { max-width: 620px; }
/* Side cards move under the headline so the picture on the right stays visible */
.tm30-hero > section > aside {
  flex: 1 1 100% !important; flex-direction: row !important; flex-wrap: wrap; gap: 14px !important;
  background: transparent !important; border: 0 !important; padding: 0 !important;
}
.tm30-hero > section > aside > div {
  flex: 1 1 260px; background: rgba(33, 25, 0, 0.82) !important; border-color: #5A4A18 !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* Single quick-answer card (Industries page) */
.tm30-hero > section > aside.tm30-quick {
  flex: 0 1 760px !important; flex-direction: column !important; gap: 12px !important;
  background: rgba(33, 25, 0, 0.84) !important; border: 1px solid #5A4A18 !important;
  padding: 26px 28px !important; border-radius: 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 820px) {
  .tm30-hero { background-image: none !important; }
  .tm30-hero::before {
    position: static; inset: auto; z-index: auto; display: block; width: 100%; aspect-ratio: 16 / 9;
    background: var(--tm30-img) center / cover no-repeat;
  }
  .tm30-hero > section { min-height: 0; }
}

/* ---------- Founders section with the timeline image at the side ---------- */
.tm30-founders-top { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.tm30-founders-top > .tm30-founders-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.tm30-founders-top > figure { flex: 0 1 380px; margin: 0; min-width: 0; }
.tm30-founders-top > figure img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  border: 1px solid #E6DCC2; box-shadow: 0 10px 30px rgba(33, 25, 0, 0.12);
}

/* ---------- Resources page: dark image headers ---------- */
.tm30-rs-head { margin-bottom: 36px; }
.tm30-rs-head .section-h2, .tm30-rs-head h1 { color: #FFFFFF; }
.tm30-rs-head p { color: #E6DEC6; }
.page-hero.tm30-hero > .tm30-hero-inner { position: relative; }

/* Resources hero ("What we know, shared openly.") with the insights image */
.page-hero.tm30-rs-hero {
  background-color: #211900 !important;
  background-image: var(--tm30-img) !important;
  background-size: cover !important; background-position: right center !important; background-repeat: no-repeat !important;
}
.page-hero.tm30-rs-hero::before {
  inset: 0; height: auto;
  background:
    linear-gradient(90deg, rgba(33, 25, 0, 0.97) 0%, rgba(33, 25, 0, 0.90) 40%, rgba(33, 25, 0, 0.40) 64%, rgba(33, 25, 0, 0.05) 84%),
    linear-gradient(0deg, rgba(33, 25, 0, 0.85) 0%, rgba(33, 25, 0, 0) 30%);
}
.page-hero.tm30-rs-hero::after { display: none; }
.page-hero.tm30-rs-hero .page-lead { max-width: 600px; color: #E6DEC6; }
@media (max-width: 820px) {
  .page-hero.tm30-rs-hero { background-image: none !important; }
  .page-hero.tm30-rs-hero::before { display: none; }
  .page-hero.tm30-rs-hero > .container::before {
    content: ""; display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 24px; border-radius: 12px;
    background-image: var(--tm30-img); background-size: cover; background-position: center;
  }
}
.section-header.tm30-banner { margin-bottom: 40px; }
.section-header.tm30-banner .section-sub { color: #E6DEC6; }
.tm30-banner__text > .eyebrow, .tm30-banner__text > p:first-child { align-self: flex-start; }

/* ---------- 30 Nov (rev 2): tighter spacing between sections ---------- */
section { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 960px) { section { padding-top: 40px; padding-bottom: 40px; } }
@media (max-width: 640px) { section { padding-top: 36px; padding-bottom: 36px; } }
.section-header, .section-header.tm30-banner { margin-bottom: 32px; }
.page-hero { padding-bottom: 40px !important; }
.cta-band { padding: 48px 0; }
/* Inline-designed pages set spacing on the section or its inner wrapper; don't add more */
.tm-page section { padding-top: 0; padding-bottom: 0; }
