/*===============================================*\
|| TerraLoc: the rules page                        ||
|| ----------------------------------------------- ||
|| Same family as the legal pages (tl-legal.css):  ||
|| the day palette pinned, the same eyebrow, title ||
|| and "last updated" pill. What is new is that    ||
|| this page is reference, not prose: an index     ||
|| that follows you down, a band of the numbers    ||
|| people come for, and every rule set as a row    ||
|| with its figure in mono on the right, where the ||
|| eye can scan a column of them.                  ||
\*===============================================*/

.tl-rules{
  --tl-paper:#F3F2EC; --tl-paper-deep:#EFEDE2; --tl-panel:#FAF9F4; --tl-ink:#23281F; --tl-muted:#5C6253;
  --tl-dim:#8B8F80; --tl-hairline:#DFDCCB; --tl-hairline-strong:#C9C5B2; --tl-accent:#46603C;
  --tl-accent-hover:#2E4228; --tl-cta:#C86B3F; --tl-cta-hover:#A8512E;
  --bs-body-color:var(--tl-ink); --bs-heading-color:var(--tl-ink); --bs-emphasis-color:var(--tl-ink);
  --bs-link-color:var(--tl-accent); --bs-link-hover-color:var(--tl-accent-hover);
  background:var(--tl-paper); color:var(--tl-ink);
  padding:clamp(3rem,7vw,6rem) 0 clamp(3.5rem,8vw,7rem);
}
.tl-rules a{color:var(--tl-accent);text-decoration:none;font-weight:500}
.tl-rules a:hover{color:var(--tl-accent-hover)}
.tl-rules-wrap{width:min(92%,74rem);margin:0 auto}
.tl-rules-top{max-width:48rem}
.tl-rules-eyebrow{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--tl-font-mono);font-size:.6875rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--tl-accent)}
.tl-rules-eyebrow::before{content:"";width:22px;height:2px;background:var(--tl-accent)}
.tl-rules h1{margin:1.25rem 0 0;font-family:var(--tl-font-display);font-size:clamp(2.25rem,5vw,3.5rem);font-weight:800;line-height:1;letter-spacing:-.03em;color:var(--tl-ink);text-wrap:balance}
.tl-rules-lede{margin:1.5rem 0 0;font-size:1.0625rem;line-height:1.7;color:var(--tl-muted)}
.tl-rules-updated{display:inline-block;margin-top:1.75rem;padding:.375rem .75rem;border:1px solid var(--tl-hairline);border-radius:999px;font-family:var(--tl-font-mono);font-size:.6875rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tl-muted)}

/* The numbers people come for, as an instrument band. */
.tl-rules-figs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;margin-top:2.75rem;background:var(--tl-hairline);border:1px solid var(--tl-hairline);border-radius:12px;overflow:hidden}
.tl-rules-figs > div{background:var(--tl-panel);padding:1rem 1.125rem 1.125rem}
.tl-rules-figs .k{display:block;font-family:var(--tl-font-mono);font-size:.625rem;letter-spacing:.2em;text-transform:uppercase;color:var(--tl-dim)}
.tl-rules-figs .v{display:block;margin-top:.625rem;font-family:var(--tl-font-mono);font-size:1.375rem;font-weight:500;line-height:1.1;color:var(--tl-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.tl-rules-figs .s{display:block;margin-top:.375rem;font-size:.8125rem;line-height:1.4;color:var(--tl-muted)}

.tl-rules-grid{display:grid;grid-template-columns:13.5rem minmax(0,48rem);gap:clamp(2.5rem,5vw,5rem);margin-top:clamp(3rem,6vw,4.5rem);align-items:start}
.tl-rules-index{position:sticky;top:5.5rem}
.tl-rules-index .k{display:block;margin-bottom:.875rem;font-family:var(--tl-font-mono);font-size:.625rem;letter-spacing:.2em;text-transform:uppercase;color:var(--tl-dim)}
.tl-rules-index ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--tl-hairline)}
.tl-rules-index a{display:flex;gap:.75rem;padding:.4375rem 0 .4375rem 1rem;margin-left:-1px;border-left:2px solid transparent;font-size:.875rem;font-weight:500;line-height:1.35;color:var(--tl-muted)}
.tl-rules-index a span{font-family:var(--tl-font-mono);font-size:.6875rem;color:#B4AF9C;padding-top:.125rem}
.tl-rules-index a:hover{color:var(--tl-ink)}
.tl-rules-index a.is-on{border-left-color:var(--tl-accent);color:var(--tl-ink)}
.tl-rules-index a.is-on span{color:var(--tl-accent)}

.tl-rules .tl-rules-sec{scroll-margin-top:5.5rem;padding:2.25rem 0 0;margin-top:3.25rem;border-top:1px solid var(--tl-hairline)}
.tl-rules .tl-rules-sec:first-child{margin-top:0;padding-top:0;border-top:0}
.tl-rules-sec h2{display:flex;align-items:baseline;gap:.875rem;margin:0;font-family:var(--tl-font-display);font-size:1.625rem;font-weight:700;letter-spacing:-.02em;color:var(--tl-ink)}
.tl-rules-sec h2 span{font-family:var(--tl-font-mono);font-size:.75rem;font-weight:500;letter-spacing:.1em;color:var(--tl-cta-hover)}
.tl-rules-sec > p{margin:.875rem 0 0;font-size:1rem;line-height:1.75;color:var(--tl-muted)}
.tl-rules-sec h3{margin:2rem 0 0;font-size:1.0625rem;font-weight:700;color:var(--tl-ink)}
.tl-rules-sec h3 + p{margin-top:.5rem}

/* A rule and its number. */
.tl-rules-spec{margin:1.25rem 0 0;padding:0;border-top:1px solid var(--tl-hairline-strong)}
.tl-rules-spec > div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem 1.5rem;align-items:baseline;padding:.8125rem 0;border-bottom:1px solid var(--tl-hairline)}
.tl-rules-spec dt{font-size:.9375rem;font-weight:500;line-height:1.5;color:var(--tl-ink)}
.tl-rules-spec dt small{display:block;margin-top:.1875rem;font-size:.8125rem;font-weight:400;line-height:1.5;color:var(--tl-muted)}
.tl-rules-spec dd{margin:0;font-family:var(--tl-font-mono);font-size:.8125rem;font-weight:500;color:var(--tl-ink);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}

/* The order of authority, where the order is the rule. */
.tl-rules-steps{list-style:none;counter-reset:s;margin:1.25rem 0 0;padding:0;display:flex;flex-direction:column;gap:.625rem}
.tl-rules-steps li{counter-increment:s;display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.75rem;align-items:start;font-size:.9375rem;line-height:1.6;color:var(--tl-muted)}
.tl-rules-steps li::before{content:counter(s);display:grid;place-items:center;width:1.625rem;height:1.625rem;border-radius:50%;border:1px solid var(--tl-hairline-strong);background:var(--tl-panel);font-family:var(--tl-font-mono);font-size:.75rem;color:var(--tl-ink)}
.tl-rules-steps strong{color:var(--tl-ink);font-weight:600}

.tl-rules-callout{margin-top:1.5rem;padding:1rem 1.25rem;background:var(--tl-panel);border:1px solid var(--tl-hairline);border-left:3px solid var(--tl-accent);border-radius:0 8px 8px 0}
.tl-rules-callout strong{display:block;font-size:.9375rem;color:var(--tl-ink)}
.tl-rules-callout p{margin:.25rem 0 0;font-size:.9375rem;line-height:1.65;color:var(--tl-muted)}

.tl-rules-table{width:100%;margin-top:1.25rem;border-collapse:collapse;font-size:.875rem}
.tl-rules-table th{padding:0 0 .625rem;border-bottom:1px solid var(--tl-hairline-strong);font-family:var(--tl-font-mono);font-size:.625rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--tl-dim);text-align:right}
.tl-rules-table th:first-child,.tl-rules-table td:first-child{text-align:left}
.tl-rules-table td{padding:.5625rem 0;border-bottom:1px solid var(--tl-hairline);text-align:right;font-family:var(--tl-font-mono);font-variant-numeric:tabular-nums;color:var(--tl-ink)}
.tl-rules-table td:first-child{font-family:inherit;font-weight:500}
.tl-rules-table td i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.625rem;vertical-align:1px}
.tl-rules-table td.muted{color:var(--tl-dim)}

.tl-rules-close{margin-top:3.5rem;padding:1.375rem 1.5rem;background:var(--tl-panel);border:1px solid var(--tl-hairline);border-radius:12px}
.tl-rules-close .k{font-family:var(--tl-font-mono);font-size:.625rem;letter-spacing:.2em;text-transform:uppercase;color:var(--tl-dim)}
.tl-rules-close p{margin:.5rem 0 0;font-size:.9375rem;line-height:1.7;color:var(--tl-muted)}

/* The sports TerraLoc records, off the registry. */
.tl-rules-chips{display:flex;flex-wrap:wrap;gap:.375rem;margin-top:1.125rem}
.tl-rules-chip{display:inline-flex;align-items:center;gap:.375rem;height:26px;padding:0 .625rem;border:1px solid var(--tl-hairline);border-radius:999px;background:var(--tl-panel);font-size:.78125rem;font-weight:500;color:var(--tl-ink)}
.tl-rules-chip i{width:7px;height:7px;border-radius:50%}

@media (max-width:1000px){
  .tl-rules-grid{grid-template-columns:minmax(0,1fr)}
  .tl-rules-index{position:static}
  .tl-rules-index ol{display:flex;gap:.5rem;overflow-x:auto;border:0;padding-bottom:.25rem;scrollbar-width:none}
  .tl-rules-index li{flex:none}
  .tl-rules-index a{padding:.375rem .75rem;margin:0;border:1px solid var(--tl-hairline);border-radius:999px;white-space:nowrap;font-size:.8125rem}
  .tl-rules-index a.is-on{border-color:var(--tl-accent)}
  .tl-rules-figs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tl-rules-figs > div:first-child{grid-column:1 / -1}
}
@media (max-width:560px){
  .tl-rules-figs .v{font-size:1.125rem;white-space:normal}
  .tl-rules-spec > div{grid-template-columns:minmax(0,1fr)}
  .tl-rules-spec dd{text-align:left}
  .tl-rules-table .hide-sm{display:none}
}
