/*
 * The Tinnitus Project global WordPress stylesheet.
 *
 * This file is the version-controlled home for site-wide Blocksy overrides,
 * shared TTP Gutenberg components, and narrowly scoped page compositions.
 * Keep plugin-specific dashboard/support-directory styles and /app/styles.css
 * in their existing assets.
 */

/* ==================================================
   Blocksy and Gutenberg integration
   ================================================== */

@media (max-width: 768px) {
  .site-logo img,
  .custom-logo-link img,
  .wp-block-site-logo img {
    max-width: 160px !important;
    width: auto !important;
    height: auto !important;
  }

  .site-branding,
  .custom-logo-link {
    max-width: 170px !important;
    overflow: hidden;
  }

  header,
  .site-header {
    overflow-x: hidden;
  }
}

footer {
  background: #05080f; /* almost black with slight blue */
  color: #9aa7b2;
}

.wp-block-latest-posts,
.wp-block-latest-posts li {
  background: transparent !important;
  color: #f4f7fb !important;
}

.wp-block-latest-posts a {
  color: #f4c542 !important;
}

.wp-block-latest-posts__post-excerpt,
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
  color: #d7dde8 !important;
}

@media (min-width: 1000px) {
  .ct-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
  }
}

/* ==================================================
   Production page 577 composition

   Page 577 is not present in Local but exists on production. Keep its
   page-specific scope intact until production has been verified separately.
   ================================================== */

body.page-id-577 .ttp-concept-kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 11px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.10);
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-id-577 .ttp-concept-lead {
  max-width: 980px;
  color: #dbe7f3;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  text-wrap: pretty;
}

body.page-id-577 .ttp-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

body.page-id-577 .ttp-feature-list li {
  margin: 0;
  padding: 20px;
  background: rgba(8, 17, 31, 0.78);
  border: 1px solid rgba(94, 234, 212, 0.20);
  border-radius: 16px;
}

body.page-id-577 .ttp-feature-list strong {
  display: block;
  margin-bottom: 5px;
  color: #f1f5f9;
}

body.page-id-577 .ttp-question-card {
  margin: 20px 0 0;
  padding: 22px;
  background: rgba(8, 17, 31, 0.78);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 16px;
}

body.page-id-577 .ttp-question-card h3 {
  margin-bottom: 8px;
}

body.page-id-577 .ttp-question-card p:last-child {
  margin-bottom: 0;
}

body.page-id-577 .ttp-built-label,
body.page-id-577 .ttp-planned-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.page-id-577 .ttp-built-label {
  background: rgba(94, 234, 212, 0.12);
  color: #99f6e4;
}

body.page-id-577 .ttp-planned-label {
  background: rgba(251, 191, 36, 0.10);
  color: #fcd34d;
}

body.page-id-577 .ttp-privacy-line {
  margin-top: 18px;
  color: #94a3b8;
  font-size: 14px;
}

body.page-id-577 .ttp-founder-signoff {
  gap: 18px;
  margin-top: 26px;
}

body.page-id-577 .ttp-founder-signoff img {
  width: 96px !important;
  height: 96px !important;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
}

@media (max-width: 781px) {
  body.page-id-577 .ttp-feature-list {
    grid-template-columns: 1fr;
  }

  body.page-id-577 .ttp-question-card {
    padding: 18px;
  }

  body.page-id-577 .ttp-founder-signoff {
    align-items: flex-start;
  }
}

/* Centre Join the Project content cards. */
body.page-id-577 .ttp-content-card {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1170px;
  margin: 0 auto 18px !important;
}

@media (max-width: 781px) {
  body.page-id-577 .ttp-content-card {
    width: calc(100% - 32px);
    margin-bottom: 14px !important;
  }
}

body.page-id-577 .wp-block-quote {
  margin: 24px 0;
  padding: 2px 0 2px 26px;
  border-left: 4px solid #3fb8aa;
}

body.page-id-577 .wp-block-quote p {
  margin: 0;
  color: #c3cedd;
  font-family: inherit;
  font-size: 17px;
  font-style: normal;
  line-height: 1.65;
}

/* ==================================================
   Pricing cards
   ================================================== */

.ttp-pricing-cards {
  align-items: center;
  gap: 28px;
}

.ttp-pricing-cards .wp-block-column {
  display: flex;
  justify-content: center;
}

.ttp-pricing-cards .pricing-card {
  width: 100%;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ttp-pricing-cards .pricing-card > *:last-child {
  margin-top: 32px;
}

/* Side cards. */
.ttp-pricing-cards .wp-block-column:first-child .pricing-card,
.ttp-pricing-cards .wp-block-column:last-child .pricing-card {
  transform: scale(0.92);
  transform-origin: center;
}

/* Featured middle pricing card. */
.ttp-pricing-cards .pricing-card.featured {
  position: relative;
  transform: scale(1);
  padding-top: 64px !important;
}

/* Small corner badge on featured card. */
.ttp-pricing-cards .pricing-card.featured .ttp-badge-corner {
  position: absolute;
  top: 16px;
  left: -18px;
  display: inline-block;
  width: auto !important;
  max-width: max-content;
  background: #f6c84c;
  color: #06111f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0;
  line-height: 1.2;
}

/* ==================================================
   Tinnitus Pattern Watch
   ================================================== */

.tpw-page {
  --card: #ffffff;
  --text: #1f2a2a;
  --muted: #586767;
  --line: #d9e3e1;
  --accent: #2f6f6a;
  --accent-dark: #245752;
  --soft: #eaf3f1;
  --warning: #f7f4ea;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(31, 42, 42, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px 16px 56px;
}

.tpw-page * {
  box-sizing: border-box;
}

.tpw-hero {
  background: linear-gradient(135deg, #eef5f3 0%, #f9fbfa 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.tpw-kicker {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid #d4e5e1;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tpw-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #183131;
}

.tpw-hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
  color: #586767;
}

.tpw-intro,
.tpw-share {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1 !important;
  color: #2f3f3f;
}

.tpw-intro h2,
.tpw-share h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #183131;
}

.tpw-intro p,
.tpw-share p,
.tpw-card p {
  margin: 0 0 12px;
  color: #334545;
}

.tpw-note {
  background: var(--warning);
  border-left: 4px solid #c6ab57;
  padding: 14px 16px;
  border-radius: 12px;
  color: #4e4735;
  margin-top: 16px;
}

.tpw-grid {
  margin-bottom: 28px;
}

.tpw-grid-header {
  margin-bottom: 22px;
}

.tpw-grid-header h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: #ffffff !important;
}

.tpw-grid-header p {
  margin: 0;
  color: #dcebea !important;
  opacity: 0.9;
}

.tpw-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.tpw-card {
  grid-column: span 12;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  color: #2f3f3f;
}

@media (min-width: 700px) {
  .tpw-card {
    grid-column: span 6;
  }

  #suggest-survey {
    grid-column: span 12;
  }
}

#suggest-survey {
  background: linear-gradient(135deg, #ffffff 0%, #f4faf8 100%);
  border: 1px solid #bfd4d0;
}

.tpw-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #102b2b;
}

.tpw-meta,
.tpw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tpw-pill {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid #d4e5e1;
  border-radius: 999px;
  padding: 5px 10px;
}

.tpw-goal {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f8fbfa;
  border: 1px solid #e2ece9;
  border-radius: 12px;
  color: #263838;
}

.tpw-button,
.tpw-link-button {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  transition: opacity 0.2s ease;
}

.tpw-button {
  background: var(--accent);
  color: #ffffff !important;
  border: 2px solid var(--accent);
}

.tpw-link-button {
  background: #ffffff;
  color: var(--accent-dark) !important;
  border: 2px solid #bfd4d0;
}

.tpw-button:hover,
.tpw-button:focus,
.tpw-link-button:hover,
.tpw-link-button:focus {
  opacity: 0.9;
}

.tpw-button:focus,
.tpw-link-button:focus {
  outline: 3px solid #9ecac3;
  outline-offset: 2px;
}

.tpw-embed-placeholder {
  display: none;
}

.tpw-share-box {
  background: #f8fbfa;
  border: 1px solid #e2ece9;
  border-radius: 14px;
  padding: 16px;
  overflow-wrap: anywhere;
  color: #263838;
}

.tpw-share-box code {
  font-family: Consolas, Monaco, monospace;
  font-size: 0.92rem;
  color: #244442;
}

.tpw-small {
  font-size: 0.95rem;
  color: #586767;
}

body.page-id-282 .site-main,
body.page-id-282 .ct-container,
body.page-id-282 .ct-container-full,
body.page-id-282 .entry-content,
body.page-id-282 [class*="entry-content"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-id-282 .tpw-page {
  padding-top: 16px !important;
}

/* ==================================================
   Recent Posts page
   ================================================== */

/* Keep each Latest Posts image inside its own article row. */
.page-id-152 .wp-block-latest-posts > li {
  display: flow-root;
  clear: both;
  margin-bottom: 2rem;
}

/* Keep featured images consistently sized. */
.page-id-152 .wp-block-latest-posts__featured-image.alignright {
  width: 300px;
  max-width: 35%;
  margin: 0 0 1rem 1.5rem;
}

.page-id-152 .wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Stack cleanly on narrow screens. */
@media (max-width: 600px) {
  .page-id-152 .wp-block-latest-posts__featured-image.alignright {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
  }
}

/* ==================================================
   Blocksy desktop navigation
   ================================================== */

@media (min-width: 1000px) {
  #header-menu-1 .menu {
    column-gap: 8px;
  }

  #header-menu-1 .menu > li {
    display: flex;
    align-items: center;
    margin: 0;
  }

  #header-menu-1 .menu > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(147, 197, 253, 0.16);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #f1f5f9 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1 !important;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  #header-menu-1 .menu > li > a:hover,
  #header-menu-1 .menu > li > a:focus-visible {
    background: rgba(36, 52, 79, 0.96);
    border-color: rgba(94, 234, 212, 0.42);
    box-shadow:
      0 0 0 1px rgba(94, 234, 212, 0.20),
      0 10px 24px rgba(15, 118, 110, 0.18);
    outline: none;
  }

  #header-menu-1 .menu > .current-menu-item > a,
  #header-menu-1 .menu > .current_page_item > a {
    background: rgba(36, 52, 79, 0.96);
    border-color: rgba(147, 197, 253, 0.28);
  }
}

/* Override Blocksy/older CSS uppercase menu setting. */
#header-menu-1 .menu > li > a {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ==================================================
   Site foundation
   ================================================== */

/* Exact layered background used by the standalone app. */
body {
  background:
    radial-gradient(
      circle at top left,
      rgba(20, 184, 166, 0.16),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #070b14 0%,
      #0b1220 100%
    ) !important;
  background-color: #0b1220 !important;
}

/* Allow the body gradient to remain visible. */
#main-container,
.site-main {
  background: transparent !important;
}

/* ==================================================
   Shared TTP Gutenberg components
   ================================================== */

/* Gutenberg hero group styled like the app's hero card. */
.ttp-hero-card {
  position: relative;
  overflow: hidden;
  width: calc(100% - 48px);
  max-width: 1170px;
  margin: 28px auto 48px !important;
  padding: 34px !important;
  background: rgba(18, 26, 43, 0.94);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* Soft teal glow inside the lower-right corner of the card. */
.ttp-hero-card::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.12);
  filter: blur(6px);
  pointer-events: none;
}

/* Keep the actual card content above the decorative glow. */
.ttp-hero-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 689px) {
  .ttp-hero-card {
    width: calc(100% - 32px);
    margin: 18px auto 32px !important;
    padding: 24px 20px !important;
    border-radius: 18px;
  }
}

/* Remove Blocksy's extra top spacing on every page using a TTP hero card. */
body:has(.ttp-hero-card) [data-vertical-spacing*="top"],
body:has(.ttp-hero-card) .site-main {
  padding-top: 0 !important;
}

/* Keep the desktop header-to-card rhythm at the mobile hero breakpoint too. */
body:has(.ttp-hero-card) .ttp-hero-card {
  margin-top: 28px !important;
}

/* Homepage content below the hero. */
.ttp-home-sections {
  width: calc(100% - 48px);
  max-width: 1170px;
  margin: 0 auto 60px !important;
  padding: 0 !important;
}

.ttp-content-card {
  position: relative;
  margin: 0 0 18px !important;
  padding: 32px !important;
  overflow: hidden;
  background: rgba(18, 26, 43, 0.94);
  border: 1px solid rgba(147, 197, 253, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  color: #f1f5f9;
}

.ttp-content-card h2 {
  margin: 0 0 14px;
  color: #f1f5f9;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ttp-content-card h3 {
  margin: 0 0 10px;
  color: #f1f5f9;
  font-size: 20px;
  line-height: 1.2;
}

.ttp-content-card p,
.ttp-content-card li {
  color: #c3cedd;
  font-size: 17px;
  line-height: 1.65;
}

.ttp-steps-grid {
  align-items: stretch;
  gap: 14px;
  margin: 24px 0;
}

.ttp-steps-grid > .wp-block-column {
  display: flex;
}

.ttp-step-card {
  width: 100%;
  padding: 22px !important;
  background: rgba(8, 17, 31, 0.78);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 16px;
}

.ttp-step-card p:last-child {
  margin-bottom: 0;
}

.ttp-step-number {
  display: inline-block;
  margin: 0 0 14px !important;
  padding: 6px 11px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.10);
  color: #99f6e4 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ttp-note {
  margin: 24px 0 0 !important;
  padding: 16px 18px;
  background: rgba(251, 191, 36, 0.08);
  border-left: 4px solid #fbbf24;
  border-radius: 12px;
  color: #e2e8f0 !important;
}

.ttp-primary-button .wp-block-button__link {
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #354d75, #51a7d3);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.20);
}

.ttp-secondary-button .wp-block-button__link {
  padding: 11px 18px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.72) !important;
  color: #dbeafe !important;
  font-weight: 750;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.2s ease,
              border-color 0.2s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}

.ttp-primary-button .wp-block-button__link:hover,
.ttp-secondary-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.72);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.24);
}

.ttp-split-card .wp-block-columns {
  gap: 42px;
  margin-bottom: 0;
}

.ttp-faq-card details {
  margin: 10px 0;
  padding: 16px 18px;
  background: rgba(8, 17, 31, 0.68);
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: 14px;
}

.ttp-faq-card summary {
  cursor: pointer;
  color: #f1f5f9;
  font-size: 17px;
  font-weight: 750;
}

.ttp-faq-card details p {
  margin: 14px 0 2px;
}

@media (max-width: 781px) {
  .ttp-home-sections {
    width: calc(100% - 32px);
    margin-bottom: 40px !important;
  }

  .ttp-content-card {
    padding: 24px 20px !important;
    border-radius: 18px;
  }

  .ttp-content-card p,
  .ttp-content-card li {
    font-size: 16px;
  }

  .ttp-steps-grid,
  .ttp-split-card .wp-block-columns {
    gap: 14px;
  }
}

/* Prevent a single orphaned word in hero paragraphs. */
.ttp-hero-card > p {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

/* Remove Gutenberg's extra gap between a TTP kicker and headline. */
.ttp-hero-card > h1 {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* ==================================================
   About / Roadmap reusable components
   ================================================== */

.ttp-about-roadmap .ttp-kicker,
.ttp-about-roadmap .ttp-status-label {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ttp-about-roadmap .ttp-kicker,
.ttp-about-roadmap .ttp-status-live {
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: rgba(94, 234, 212, 0.10);
  color: #99f6e4;
}

.ttp-about-roadmap .ttp-status-next {
  border: 1px solid rgba(147, 197, 253, 0.25);
  background: rgba(96, 165, 250, 0.10);
  color: #bfdbfe;
}

.ttp-about-roadmap .ttp-status-later {
  border: 1px solid rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.09);
  color: #fcd34d;
}

.ttp-about-roadmap .ttp-hero-lead {
  max-width: 1000px;
  color: #dbe7f3;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  text-wrap: pretty;
}

.ttp-about-roadmap .ttp-card-grid,
.ttp-about-roadmap .ttp-roadmap-grid,
.ttp-about-roadmap .ttp-principles-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.ttp-about-roadmap .ttp-card-grid,
.ttp-about-roadmap .ttp-principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttp-about-roadmap .ttp-roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ttp-about-roadmap .ttp-mini-card,
.ttp-about-roadmap .ttp-roadmap-card {
  margin: 0;
  padding: 21px;
  background: rgba(8, 17, 31, 0.78);
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 16px;
}

.ttp-about-roadmap .ttp-mini-card h3,
.ttp-about-roadmap .ttp-roadmap-card h3 {
  margin: 0 0 8px;
}

.ttp-about-roadmap .ttp-mini-card p:last-child,
.ttp-about-roadmap .ttp-roadmap-card p:last-child,
.ttp-about-roadmap .ttp-roadmap-card ul:last-child {
  margin-bottom: 0;
}

.ttp-about-roadmap .ttp-roadmap-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.ttp-about-roadmap .ttp-roadmap-card li + li {
  margin-top: 8px;
}

.ttp-about-roadmap .ttp-answer-box {
  margin: 22px 0 0;
  padding: 22px;
  background: rgba(8, 17, 31, 0.78);
  border-left: 4px solid #3fb8aa;
  border-radius: 0 16px 16px 0;
}

.ttp-about-roadmap .ttp-answer-box h3 {
  margin-bottom: 8px;
}

.ttp-about-roadmap .ttp-answer-box p:last-child {
  margin-bottom: 0;
}

.ttp-about-roadmap .ttp-caution-box {
  margin: 22px 0 0 !important;
  padding: 17px 19px;
  background: rgba(251, 191, 36, 0.08);
  border-left: 4px solid #fbbf24;
  border-radius: 12px;
  color: #e2e8f0 !important;
}

.ttp-about-roadmap .ttp-founder-row {
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.ttp-about-roadmap .ttp-founder-row img {
  width: 96px !important;
  height: 96px !important;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
}

.ttp-about-roadmap .ttp-final-card {
  text-align: center;
}

.ttp-about-roadmap .ttp-final-card p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.ttp-about-roadmap .wp-block-buttons {
  gap: 12px;
  margin-top: 22px;
}

.ttp-about-roadmap .ttp-final-card .wp-block-buttons {
  justify-content: center;
}

/* ==================================================
   About / Roadmap page composition
   ================================================== */

.ttp-about-roadmap {
  width: 100%;
  padding-bottom: 44px;
}

.ttp-about-roadmap .ttp-hero-card,
.ttp-about-roadmap .ttp-content-card {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ttp-about-roadmap .ttp-content-card {
  width: calc(100% - 48px);
  max-width: 1170px;
  margin-bottom: 18px !important;
}

.ttp-about-roadmap .ttp-hero-card {
  margin-bottom: 18px !important;
}

.ttp-about-roadmap .ttp-source-list {
  margin-bottom: 0;
}

.ttp-about-roadmap .ttp-source-list li + li {
  margin-top: 10px;
}

.ttp-about-roadmap a:not(.wp-block-button__link) {
  color: #99f6e4;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .ttp-about-roadmap .ttp-roadmap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 781px) {
  .ttp-about-roadmap .ttp-content-card {
    width: calc(100% - 32px);
  }

  .ttp-about-roadmap .ttp-card-grid,
  .ttp-about-roadmap .ttp-principles-grid {
    grid-template-columns: 1fr;
  }

  .ttp-about-roadmap .ttp-mini-card,
  .ttp-about-roadmap .ttp-roadmap-card,
  .ttp-about-roadmap .ttp-answer-box {
    padding: 18px;
  }

  .ttp-about-roadmap .ttp-founder-row {
    align-items: flex-start;
  }
}
