/* Ftehim story: a milestone-spine and sign-off sheet layout.
   Teal-cyan accent with dark indigo-tinted workbench panels. Chromium 67 safe. */
@font-face {
  font-family: 'FT UI';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'FT Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

body.page-ftehim {
  --accent: #56D4E3;
  --accent-ink: #061E23;
  --accent-soft: rgba(86, 212, 227, .12);
  --ft-indigo: rgba(124, 140, 255, .14);
  --ft-indigo-line: rgba(124, 140, 255, .32);
  --head: 'FT Display', 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'FT UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Frame and reading column */
.page-ftehim main { padding-bottom: 48px; }
.page-ftehim main .wrap { max-width: 820px; }
.page-ftehim main > .wrap:first-child { padding-top: 40px; }
.page-ftehim .crumb { margin: 0 0 28px; font-size: 14px; }
.page-ftehim .crumb a { color: var(--muted); text-decoration: none; }
.page-ftehim .crumb a:before { content: "\2190"; margin-right: 8px; }
.page-ftehim .crumb a:hover { color: var(--accent); }
.page-ftehim .story-app { margin-bottom: 36px; }
.page-ftehim main strong { color: var(--text); font-weight: 600; }
.ft-ui { color: var(--text); font-weight: 600; }
.page-ftehim main p:not(.crumb) a:not(.btn),
.page-ftehim 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-ftehim main p:not(.crumb) a:not(.btn):hover,
.page-ftehim main li a:hover { color: var(--accent); }

/* Hero */
.ft-head { padding: 0 0 34px; border-bottom: 1px solid var(--hair-2); }
.ft-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ft-head h1 { margin: 0 0 18px; font-size: 32px; line-height: 1.12; }
.ft-lead { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: var(--text-2); }

.ft-stage-bar {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ft-stage-bar li {
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.ft-stage-bar strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--head);
  font-size: 14px;
  color: var(--accent);
}

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

/* Definition and source quote cards */
.ft-def {
  margin: 22px 0 24px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--ft-indigo-line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.ft-def p { margin: 0 0 10px; font-size: 17px; line-height: 1.55; color: var(--text); }
.ft-def cite { display: block; font-size: 14px; font-style: normal; color: var(--muted); }

.ft-quote {
  margin: 20px 0 22px;
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
}
.ft-quote p { margin: 0 0 8px; font-size: 17px; line-height: 1.55; color: var(--text); }
.ft-quote cite { display: block; font-size: 14px; font-style: normal; color: var(--muted); }

/* Milestone spine steps */
.ft-spine {
  counter-reset: ftstep;
  list-style: none;
  margin: 18px 0 24px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--hair-2);
}
.ft-spine li {
  counter-increment: ftstep;
  position: relative;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  color: var(--text-2);
}
.ft-spine li:last-child { margin-bottom: 0; }
.ft-spine li:before {
  content: counter(ftstep);
  position: absolute;
  left: -34px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 13px/26px var(--head);
  text-align: center;
}
.ft-spine strong { display: block; margin-bottom: 4px; color: var(--text); font-family: var(--head); font-size: 17px; }

/* Tables */
.ft-sheet-box {
  margin: 22px 0 24px;
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.ft-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 15px;
}
.ft-table caption {
  padding: 14px 16px 12px;
  text-align: left;
  font: 600 16px/1.4 var(--head);
  color: var(--text);
  background: var(--ft-indigo);
  border-bottom: 1px solid var(--hair-2);
}
.ft-table th,
.ft-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
.ft-table thead th {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ft-table tbody th {
  width: 30%;
  color: var(--text);
  font-weight: 600;
}
.ft-table td { color: var(--text-2); }
.ft-table tbody tr:last-child th,
.ft-table tbody tr:last-child td { border-bottom: 0; }

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

/* Pictures */
.ft-shots {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 26px;
  margin: 28px 0;
}
.ft-shots figure {
  width: 100%;
  max-width: 268px;
  min-width: 0;
  margin: 0 auto;
}
.ft-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--hair-2);
}
.ft-shots figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Limits and what was not checked */
.ft-unchecked {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
}
.ft-unchecked .ft-h2 { margin-bottom: 12px; font-size: 22px; }

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

@media (max-width: 600px) {
  .ft-table { min-width: 0; font-size: 14px; }
  .ft-table caption { padding: 12px 10px; font-size: 15px; }
  .ft-table th, .ft-table td { padding: 9px 10px; }
  .ft-table tbody th { width: 1%; white-space: nowrap; }
}
@media (min-width: 620px) {
  .ft-stage-bar { grid-template-columns: 1fr 1fr 1fr; grid-gap: 12px; }
  .ft-shots { grid-template-columns: 268px 268px; justify-content: center; grid-gap: 32px; }
}
@media (min-width: 900px) {
  .page-ftehim main > .wrap:first-child { padding-top: 64px; }
  .ft-head { padding-bottom: 40px; }
  .ft-head h1 { font-size: 44px; }
  .ft-lead { font-size: 20px; }
  .ft-section { padding-top: 56px; }
  .ft-h2 { font-size: 29px; }
  .ft-unchecked .ft-h2 { font-size: 24px; }
}
