/* /tiktok/treffa: the hits. The FORM of the page; the palette is
 * /tiktok/palett.css, shared with /tiktok and linked before this file. The
 * colours are the ones the page was designed in (ADR 0068): the For You feed
 * after dark, near-black with the cyan and red of the app's own logo, Archivo
 * Black for the title and the big figures, Inter for the text. The parent page
 * joined this sheet rather than the other way round (ADR 0069). */

.tr-ramme { max-width: 1240px; margin: 0 auto; padding: 0 32px 72px; }

.tr-sti {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--mute);
}
.tr-sti a { text-decoration: none; font-weight: 600; color: var(--ink); }
.tr-sti a:first-child { font-family: var(--f-disp); font-weight: 400; font-size: 18px; }
.tr-sti a:hover { color: var(--cy); }

/* ── the title and the three figures ───────────────────────────────────────── */
.tr-topp {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: end;
  padding: clamp(28px, 4vw, 56px) 0 0;
}
.tr-auge { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.tr-helt h1 {
  font-size: clamp(32px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px;
  text-wrap: balance;
  text-shadow: -3px -2px 0 var(--cy), 3px 2px 0 var(--rd);
}
.tr-ingress { color: var(--mute); max-width: 66ch; }
.tr-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-fg { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tr-fg b { display: block; font: clamp(20px, 2.1vw, 26px)/1.1 var(--f-disp); overflow-wrap: anywhere; }
.tr-fg span { font-size: 13px; color: var(--mute); }
.tr-cy { color: var(--cy); }
.tr-rd { color: var(--rd); }

/* ── the timeline ──────────────────────────────────────────────────────────── */
.tr-seksjon { padding-top: 22px; }
.tr-teikn {
  list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 13px; color: var(--mute);
}
.tr-teikn li { display: flex; align-items: center; gap: 8px; }
.tr-teikn-prikk { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--cy); opacity: 0.8; }
.tr-teikn-stor { background: var(--rd); opacity: 0.95; }
.tr-teikn-band { flex: 0 0 16px; width: 16px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); border: 1px solid var(--line); }
.tr-fig { position: relative; }
.tr-sverm { display: block; width: 100%; height: auto; overflow: visible; }
.tr-sverm-mellom, .tr-sverm-smal { display: none; }
.tr-sverm text { font: 13px var(--f-tekst); fill: var(--mute); }
.tr-band { fill: #fff; fill-opacity: 0.045; }
.tr-akse { stroke: var(--line); }
.tr-tikk { stroke: var(--mute); }
.tr-prikk { cursor: pointer; outline: none; }
.tr-prikk circle { fill: var(--cy); fill-opacity: 0.7; transition: stroke-width 0.15s; }
.tr-prikk-stor circle { fill: var(--rd); fill-opacity: 0.95; }
.tr-prikk:hover circle, .tr-prikk:focus circle { stroke: #fff; stroke-width: 2; }
.tr-prikk.tr-vald circle { stroke: #fff; stroke-width: 3; }
.tr-sverm .tr-mest { fill: var(--ink); font-weight: 700; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
@keyframes tr-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
.tr-prikk-pop { transform-box: fill-box; transform-origin: center; animation: tr-pop 0.5s ease-out backwards; }

.tr-kort {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-top: 14px;
}
.tr-rang { font: 34px/1 var(--f-disp); color: var(--cy); white-space: nowrap; }
.tr-cap { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.tr-meta { font-size: 14px; color: var(--mute); }
.tr-kort-lenkjer { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tr-knapp {
  color: var(--bg); background: var(--cy); text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: 10px 18px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;
}
.tr-knapp:hover { color: var(--bg); background: #fff; }
.tr-kort-tiktok { font-size: 13px; color: var(--mute); }
.tr-kort-tiktok[hidden] { display: none; }
.tr-hint { font-size: 13px; color: var(--mute); margin-top: 8px; }

/* ── the clock, the weekdays and the months ────────────────────────────────── */
.tr-to { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-top: 32px; }
.tr-boks { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.tr-boks h2 { font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 6px; }
.tr-boks > p { color: var(--mute); max-width: 66ch; }
.tr-klokke-ramme { display: flex; justify-content: center; margin-top: 10px; }
.tr-klokke { display: block; width: 100%; max-width: 360px; height: auto; }
.tr-klokke text { font: 13px var(--f-tekst); fill: var(--mute); }
.tr-ring { fill: none; stroke: var(--line); }
.tr-eike { fill: var(--cy); fill-opacity: 0.75; }
.tr-eike-topp { fill: var(--rd); fill-opacity: 1; }
.tr-klokke .tr-klokke-tal { font: 22px var(--f-disp); fill: var(--ink); }

.tr-dagar { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tr-dag { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 2.2em; gap: 10px; align-items: center; font-size: 15px; }
.tr-dag-kort { display: none; }
.tr-dag-spor { display: block; }
.tr-stolpe { display: block; height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--cy), var(--rd)); }
.tr-dag b { text-align: right; font-variant-numeric: tabular-nums; }
.tr-manadar {
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; align-items: end;
  height: 120px; margin-top: 20px;
}
.tr-mo { display: block; background: var(--cy); opacity: 0.75; border-radius: 4px 4px 0 0; }
.tr-mo-topp { background: var(--rd); opacity: 1; }
.tr-manad-merke {
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px;
  font-size: 13px; color: var(--mute); margin-top: 4px;
}
.tr-manad-merke span { white-space: nowrap; }

/* ── the foot ──────────────────────────────────────────────────────────────── */
.tr-fot {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--mute);
}
.tr-fot a { color: var(--ink); }

/* ── the three drawings: one per width band, same numbers as UTFORMINGAR ──── */
@media (max-width: 900px) {
  .tr-topp, .tr-to { grid-template-columns: minmax(0, 1fr); }
  .tr-sverm-brei { display: none; }
  .tr-sverm-mellom { display: block; }
}
@media (max-width: 640px) {
  .tr-ramme { padding: 0 16px 56px; }
  .tr-sti { padding: 18px 0; }
  .tr-topp { padding-top: 24px; gap: 18px; }
  .tr-figs { gap: 6px; }
  .tr-fg { padding: 10px 10px; border-radius: 10px; }
  .tr-fg b { font-size: 17px; }
  .tr-fg span { font-size: 12px; }
  .tr-sverm-mellom { display: none; }
  .tr-sverm-smal { display: block; }
  .tr-sverm text { font-size: 12px; }
  .tr-kort { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 12px 14px; }
  .tr-kort-lenkjer { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 14px; }
  .tr-rang { font-size: 28px; }
  .tr-cap { font-size: 16px; }
  .tr-to { gap: 16px; padding-top: 24px; }
  .tr-boks { padding: 16px; border-radius: 14px; }
  .tr-boks h2 { font-size: 22px; }
  .tr-dag { grid-template-columns: 3em minmax(0, 1fr) 2.2em; font-size: 14px; }
  .tr-dag-lang { display: none; }
  .tr-dag-kort { display: inline; }
  .tr-manadar { height: 96px; gap: 2px; }
  .tr-manad-merke { gap: 2px; font-size: 12px; }
}
