/* Shared responsive/accessibility fixes. Preserve the existing Karkadi identity. */
:root {
  --t3: #858596;
  --text-accent: #ed8894;
  --site-header-height: calc(64px + env(safe-area-inset-top, 0px));
}

html { scroll-padding-top: calc(var(--site-header-height) + 20px); }
nav {
  height: var(--site-header-height);
  padding-top: env(safe-area-inset-top, 0px);
}
nav .ni {
  gap: 12px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
nav .nl { flex-shrink: 0; min-height: 44px; }
nav .nb { display: flex; align-items: center; }
nav .nb a { display: inline-flex; align-items: center; min-height: 44px; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 4px; }
::selection { background: #75313d; color: #fff; }
input, textarea { caret-color: var(--g); }
h1, h2, h3, h4, p, li, td, th, .fbt a, .fcl a { overflow-wrap: anywhere; }
.values-grid > *, .process > *, .test-grid > *, .founder-text, .fgr > * { min-width: 0; }

/* A native disclosure stays usable even when JavaScript is unavailable. */
.site-mobile-nav { display: none; }
.site-mobile-nav > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 88px;
  min-height: 44px;
  padding: 10px 12px;
  list-style: none;
  border: 1px solid var(--db);
  border-radius: 6px;
  color: var(--t1);
  font: 500 14px/1.4 var(--ff);
  cursor: pointer;
  user-select: none;
}
.site-mobile-nav > summary::-webkit-details-marker { display: none; }
.site-mobile-nav > summary svg { width: 20px; height: 20px; flex: 0 0 auto; }
.site-mobile-nav[open] > summary { border-color: var(--g); background: var(--dc); }
.site-mobile-links {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  display: grid;
  gap: 4px;
  max-height: calc(100dvh - var(--site-header-height) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: var(--d);
  border-bottom: 1px solid var(--db);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .24);
}
.site-mobile-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--t2);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}
.site-mobile-links a:hover { background: var(--dc); color: var(--t1); }
.site-mobile-links .nc { justify-content: center; margin-top: 4px; }

/* Contain the decoration at its source, not by hiding clipped navigation. */
.cta-section { overflow: hidden; overflow: clip; }
.cta-f { overflow: hidden; overflow: clip; }
.table-scroll {
  max-width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--t3) var(--dc);
}
.legal .table-scroll table { min-width: 28rem; margin: 0; }
.legal .table-scroll-hint { display: none; margin: 8px 0 16px; font-size: 13px; color: var(--t3); }
.legal a, .disclaimer-box a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer-box strong, .callout strong, .tc .tv { color: var(--text-accent); }
.mm { top: var(--site-header-height); }
.hb { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.ml button, .ld button { min-height: 44px; }
.mx { min-width: 44px; min-height: 44px; top: 10px; right: 10px; }
#contact-title { padding-inline-end: 32px; }

@media (max-width: 800px) {
  nav .ni > .nb { display: none; }
  .site-mobile-nav { display: block; }
  .legal p, .legal ul, .legal li { font-size: 16px; }
  .legal table { font-size: 14px; }
  .fg2 input, .fg2 select, .fg2 textarea { font-size: 16px; min-height: 44px; }
  .fbt a, .fl a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
  .fcl a { display: flex; align-items: center; min-height: 44px; }
  .sub-cta a[onclick] { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding: 4px 8px; }
  .fl { gap: 4px 12px; }
  .founder-card { padding: 24px; }
}
@media (max-width: 480px) {
  .legal .table-scroll-hint { display: block; }
}
@media (pointer: coarse) {
  .lb, .nr a { min-height: 44px; }
  .fg2 input, .fg2 select, .fg2 textarea { font-size: 16px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .js-reveals .rv { opacity: 1; transform: none; }
}
