/* ═══════════════════════════════════════════════════════════
   SARAF · TRADE FAIRS
   Built on the same tokens as the rest of the site. The page
   has one job above the fold: a buyer who is already at the
   venue should find the hall and stand number without reading
   a sentence.
   ═══════════════════════════════════════════════════════════ */

.tf-body { background: var(--bg-primary); }

/* ── 01 · Hero ─────────────────────────────────────────────── */
.tf-hero {
  background: var(--bg-primary);
  padding: 168px var(--pad-x) clamp(56px, 7vh, 96px);
  padding-left: calc(48px + var(--pad-x));
}
.tf-hero-inner { max-width: var(--max-w); margin: 0 auto; }

.tf-hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(38px, 6.1vw, 94px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 22px 0 24px;
  color: var(--text-primary);
}
.tf-hero-title em { font-style: italic; color: var(--accent-ink); }

.tf-hero-sub {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ── 02 · The next fair ────────────────────────────────────── */
.tf-next {
  background: var(--bg-secondary);
  padding: clamp(56px, 7vh, 96px) var(--pad-x);
  padding-left: calc(48px + var(--pad-x));
  border-top: 1px solid var(--border-soft);
}
.tf-next-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  grid-template-areas:
    "head  stand"
    "body  stand";
  column-gap: clamp(40px, 5vw, 88px);
  row-gap: 30px;
  align-items: start;
}
.tf-next-head { grid-area: head; }
.tf-next-body { grid-area: body; }
.tf-stand     { grid-area: stand; margin: 0; }

/* The status pill is the one element allowed to shout: it is the
   difference between "note this" and "we are there today". */
.tf-status {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.tf-status.is-soon {
  border-color: var(--accent-ink);
  /* accent-ink as a label measured 4.41:1 on this ground, just under the
     4.5 small text needs. The accent stays on the rule; the words take ink. */
  color: var(--text-primary);
}
.tf-status.is-live {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--bg-primary);
}

.tf-next-name {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.tf-next-name em { font-style: italic; color: var(--accent-ink); }

.tf-next-when {
  font-family: var(--f-display);
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.tf-next-where {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 46ch;
}
.tf-city {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Hall and stand read as a plate, because on the day that is the
   only thing anyone needs off this page. */
.tf-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 0 0 26px;
}
.tf-fact {
  background: var(--bg-secondary);
  padding: 18px 18px 16px;
}
.tf-fact dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.tf-fact dd {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}
.tf-fact dd sup { font-size: 0.55em; vertical-align: super; }

.tf-note {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 26px;
}

.tf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tf-next .btn-pill { border-color: rgba(46,46,46,0.28); color: var(--text-primary); }
.tf-next .btn-pill:hover { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-primary); }
.tf-next .btn-pill-filled {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}
.tf-next .btn-pill-filled:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--bg-primary); }

.tf-stand img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
}
.tf-stand figcaption {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 12px;
}

.tf-none {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 52ch;
}
.tf-none a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── 03 / 04 · Listings ────────────────────────────────────── */
.tf-ahead, .tf-past {
  background: var(--bg-primary);
  padding: clamp(56px, 7vh, 96px) var(--pad-x);
  padding-left: calc(48px + var(--pad-x));
  border-top: 1px solid var(--border-soft);
}
.tf-ahead { background: var(--bg-secondary); }
.tf-inner { max-width: var(--max-w); margin: 0 auto; }

.tf-sec-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 20px 0 40px;
}
.tf-sec-title em { font-style: italic; color: var(--text-secondary); }

.tf-list { list-style: none; margin: 24px 0 0; padding: 0; }

.tf-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 210px);
  gap: 28px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.tf-row:last-child { border-bottom: 1px solid var(--border); }

.tf-row-when { display: flex; flex-direction: column; gap: 6px; }
.tf-row-year {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.tf-row-dates {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.tf-row-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.tf-row-ed { color: var(--text-secondary); font-style: italic; }
.tf-row-venue { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.tf-row-note  { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-top: 6px; }

.tf-row-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.tf-row-city {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tf-row-stand, .tf-row-sqm {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}
.tf-row-sqm sup { font-size: 0.7em; }

/* Anything still ahead is marked, so a listing that mixes booked and
   been does not read as one undifferentiated pile. */
.tf-row.is-ahead .tf-row-year { color: var(--accent-ink); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .tf-next-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "stand" "body";
    row-gap: 28px;
  }
}
@media (max-width: 900px) {
  .tf-hero, .tf-next, .tf-ahead, .tf-past { padding-left: var(--pad-x); }
  .tf-hero { padding-top: 128px; }

  .tf-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }
  .tf-row-when { flex-direction: row; align-items: baseline; gap: 14px; }
  .tf-row-meta { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
}

/* --accent-ink is 4.98:1 on the ivory ground but 4.41:1 on the sand one,
   which is under the 4.5 small text needs. The marker in the sand section
   takes ink; the ring around it keeps the accent. */
.tf-ahead .af-chapter-num { color: var(--text-primary); }
