/* Tairite story: judging score sheet ledger layout. Sage-olive accent paired with warm amber
   and steel blue tones from the app's level-lines motif. Built for older mobile browsers. */
@font-face {
  font-family: 'TA UI';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'TA Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

body.page-tairite {
  --head: 'TA Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'TA UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #0A0D14;
  --surface: #121726;
  --raised: #1A2033;
  --bar: rgba(10, 13, 20, .94);
  --hair: rgba(255, 255, 255, .08);
  --hair-2: rgba(255, 255, 255, .16);
  --text: #EEF1F7;
  --text-2: #B0B8C9;
  --muted: #848EA4;
  --accent: #B9CC8A;
  --accent-ink: #172006;
  --accent-soft: rgba(185, 204, 138, .13);
  --ta-amber: #E3A469;
  --ta-amber-soft: rgba(227, 164, 105, .11);
  --ta-blue: #9EC2EA;
  --ta-blue-soft: rgba(158, 194, 234, .11);
  --live: #34D399;
}

@media (prefers-color-scheme: light) {
  body.page-tairite {
    --bg: #0A0D14;
    --surface: #121726;
    --raised: #1A2033;
    --bar: rgba(10, 13, 20, .94);
    --hair: rgba(255, 255, 255, .08);
    --hair-2: rgba(255, 255, 255, .16);
    --text: #EEF1F7;
    --text-2: #B0B8C9;
    --muted: #848EA4;
    --live: #34D399;
  }
}

/* Frame and reading column */
.page-tairite main { padding-bottom: 52px; }
.page-tairite main .wrap { max-width: 820px; }
.page-tairite main > .wrap:first-child { padding-top: 40px; }
.page-tairite .crumb { margin: 0 0 28px; font-size: 14px; }
.page-tairite .crumb a { color: var(--muted); text-decoration: none; }
.page-tairite .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-tairite .crumb a:hover { color: var(--accent); }
.page-tairite .story-app { margin-bottom: 36px; }
.page-tairite main strong { color: var(--text); font-weight: 600; }

/* Inline links */
.page-tairite main p:not(.crumb) a:not(.btn),
.page-tairite main li a {
  color: var(--text);
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.page-tairite main p:not(.crumb) a:not(.btn):hover,
.page-tairite main li a:hover {
  color: var(--accent);
}

/* Hero */
.ta-hero {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--hair-2);
}
.ta-eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1.4 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ta-hero h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.14;
}
.ta-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-2);
}
.ta-split-note {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
}
.ta-note-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 10px;
}
.ta-note-warn {
  border-left: 3px solid var(--ta-amber);
  background: var(--ta-amber-soft);
}
.ta-note-fix {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.ta-note-kicker {
  margin: 0 0 6px;
  font: 600 12px/1.3 var(--head);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ta-note-warn .ta-note-kicker { color: var(--ta-amber); }
.ta-note-fix .ta-note-kicker { color: var(--accent); }
.ta-note-card p:last-child {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--text-2);
}

/* Sections */
.ta-section { padding-top: 40px; }
.ta-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.22;
}
.ta-section h3 {
  margin: 26px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text);
}
.ta-section p {
  margin: 0 0 18px;
  color: var(--text-2);
}
.ta-section p:last-child { margin-bottom: 0; }

/* Source quotes */
.ta-quote {
  margin: 20px 0 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--ta-blue);
  border-radius: 0 10px 10px 0;
}
.ta-quote-sage { border-left-color: var(--accent); }
.ta-quote p {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.58;
  color: var(--text);
}
.ta-quote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

/* Tables: responsive without overflow on 390px phone */
.ta-table-wrap {
  margin: 18px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 10px;
}
.ta-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.48;
  font-variant-numeric: tabular-nums;
}
.ta-table caption {
  padding: 12px 16px;
  text-align: left;
  font: 600 14px/1.4 var(--head);
  color: var(--text);
  background: var(--raised);
  border-bottom: 2px solid var(--accent);
}
.ta-table th,
.ta-table td {
  padding: 11px 14px;
  text-align: left;
  border-top: 1px solid var(--hair);
  vertical-align: top;
}
.ta-table thead th {
  border-top: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ta-table tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.ta-table td { color: var(--text-2); }
.ta-table tfoot th,
.ta-table tfoot td {
  background: var(--raised);
  color: var(--text);
  font-weight: 600;
  border-top: 1px solid var(--hair-2);
}

.ta-tag-ok,
.ta-tag-hold,
.ta-tag-split {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font: 600 12px/1.4 var(--head);
}
.ta-tag-ok { background: var(--accent-soft); color: var(--accent); }
.ta-tag-hold { background: var(--ta-amber-soft); color: var(--ta-amber); }
.ta-tag-split { background: var(--ta-blue-soft); color: var(--ta-blue); }

/* Numbered how-to list */
.ta-steps {
  list-style: none;
  counter-reset: tastep;
  margin: 14px 0 24px;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.ta-steps li {
  counter-increment: tastep;
  position: relative;
  margin: 0;
  padding: 16px 0 16px 52px;
  border-bottom: 1px solid var(--hair);
  color: var(--text-2);
}
.ta-steps li:before {
  content: counter(tastep);
  position: absolute;
  left: 0;
  top: 17px;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(185, 204, 138, .35);
  color: var(--accent);
  font: 700 14px/26px var(--head);
  text-align: center;
}
.ta-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--head);
  font-size: 17px;
}

/* Bullet lists */
.ta-list {
  list-style: none;
  margin: 6px 0 22px;
  padding: 0;
}
.ta-list li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 22px;
  color: var(--text-2);
}
.ta-list li:last-child { margin-bottom: 0; }
.ta-list li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* App screenshots */
.ta-overview {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  margin: 22px 0 26px;
  -webkit-align-items: start;
  align-items: start;
}
.ta-single-shot {
  margin: 0 auto;
  max-width: 280px;
  text-align: center;
}
.ta-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 26px;
  margin: 26px auto;
  max-width: 280px;
}
.ta-pair figure {
  margin: 0;
  text-align: center;
}
.ta-single-shot img,
.ta-pair img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--hair-2);
}
.ta-single-shot figcaption,
.ta-pair figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}

/* Honest limits and checks */
.ta-limits-box {
  margin: 12px 0 18px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-left: 4px solid var(--ta-amber);
  border-radius: 0 12px 12px 0;
}
.ta-limits-box h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.ta-limits-box li:before { background: var(--ta-amber); }

.ta-audit-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}
.ta-audit-card {
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
}
.ta-audit-open { border-top-color: var(--ta-amber); }
.ta-audit-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}
.ta-audit-open li:before { background: var(--ta-amber); }

/* Closing CTA */
.ta-end { margin: 40px 0 4px; }
.ta-end .btn { margin: 0 18px 12px 0; vertical-align: middle; }
.page-tairite .ta-end a:not(.btn) {
  display: inline-block;
  margin-bottom: 12px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .ta-table-wrap { overflow-x: visible; }
  .ta-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 11.5px;
    line-height: 1.4;
  }
  .ta-table caption { padding: 10px 8px; font-size: 13px; }
  .ta-table th,
  .ta-table td {
    min-width: 0;
    padding: 8px 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .ta-table thead th:first-child,
  .ta-table tbody th:first-child,
  .ta-table tfoot th:first-child {
    width: 25%;
    white-space: nowrap;
  }
  .ta-table thead th:nth-child(2),
  .ta-table tbody td:nth-child(2),
  .ta-table tfoot td:nth-child(2) { width: 31%; }
  .ta-table thead th:nth-child(3),
  .ta-table tbody td:nth-child(3),
  .ta-table tfoot td:nth-child(3) { width: 22%; }
  .ta-table thead th:nth-child(4),
  .ta-table tbody td:nth-child(4),
  .ta-table tfoot td:nth-child(4) { width: 22%; }
  .ta-table thead th { font-size: 10px; letter-spacing: .02em; }
  .ta-tag-ok,
  .ta-tag-hold,
  .ta-tag-split { font-size: 10.5px; padding: 2px 5px; }
  .ta-steps li { padding: 14px 0 14px 44px; }
  .ta-steps li:before { width: 30px; height: 24px; line-height: 22px; font-size: 13px; }
  .ta-limits-box,
  .ta-audit-card { padding: 18px 15px; }
}

@media (min-width: 640px) {
  .ta-split-note { grid-template-columns: 1fr 1fr; grid-gap: 14px; }
  .ta-pair {
    grid-template-columns: 270px 270px;
    max-width: 572px;
    grid-gap: 32px;
  }
}

@media (min-width: 740px) {
  .ta-overview {
    grid-template-columns: 270px 1fr;
    grid-gap: 28px;
  }
  .ta-single-shot {
    width: 270px;
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .page-tairite main > .wrap:first-child { padding-top: 64px; }
  .ta-hero { padding-bottom: 40px; }
  .ta-hero h1 { font-size: 42px; }
  .ta-lead { font-size: 20px; }
  .ta-section { padding-top: 56px; }
  .ta-section h2 { font-size: 28px; }
}
