/*
Theme Name: tonkinexpress
Template: spacious
Version: 1.0.0.0.1785500614
Updated: 2026-07-31 12:23:34

*/


:root {
  --wp--style--global--content-size: 1260px;
  --wp--style--global--wide-size: 1260px;
  
  /* Palette A — "Register" */
  --tnk-ink:     #16202b;  /* headings, body text        */
  --tnk-bg:      #f6f3ea;  /* warm page / band background */
  --tnk-primary: #235a8c;  /* regulator blue             */
  --tnk-accent:  #c6412f;  /* signal red                 */
  --tnk-gold:    #e1a62e;  /* amber                      */
 
  /* Derived tints */
  --tnk-ink-soft:  #4a5560;
  --tnk-line:      #dcd6c7;
  --tnk-band:      #efeadd;
  --tnk-zebra:     #f3efe4;
 
  /* Base font size for main elements (paragraphs, lists, tables) */
  --tnk-fs-base: 1.0625rem;   /* ~17px */
  --tnk-lh-base: 1.72;
 
  /* Type scale for headings (independent of base size) */
  --tnk-fs-h1: clamp(1.8rem, 1.3rem + 2.8vw, 2.5rem);
  --tnk-fs-h2: clamp(1.45rem, 1.1rem + 1.3vw, 1.85rem);
  --tnk-fs-h3: 1.2rem;
  --tnk-fs-small: 0.875rem;   /* source notes, disclaimer */
 
  --tnk-radius: 10px;
  --tnk-shadow: 0 14px 34px -18px rgba(22, 32, 43, 0.4);
  --tnk-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}
 
/* ---------- Base ---------- */
.tnk-page {
  color: var(--tnk-ink);
  counter-reset: tnk-sec;
  --wp--style--block-gap: 1.35rem;
}
.tnk-page p,
.tnk-page li,
.tnk-page td,
.tnk-page th {
  font-size: var(--tnk-fs-base);
  line-height: var(--tnk-lh-base);
}
.tnk-page a {
  color: var(--tnk-primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.tnk-page a:hover { color: var(--tnk-accent); }
 
/* ---------- Headings ---------- */
.tnk-page h1,
.tnk-page h2,
.tnk-page h3 {
  color: var(--tnk-ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.tnk-page h1 { font-size: var(--tnk-fs-h1); font-weight: 800; }
.tnk-page h3 { font-size: var(--tnk-fs-h3); font-weight: 700; margin-top: 1.6rem; }
 
/* Section headings numbered like a register: "§ 01" */
.tnk-page h2 {
  font-size: var(--tnk-fs-h2);
  font-weight: 750;
  counter-increment: tnk-sec;
  padding-top: 1.4rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--tnk-line);
}
/*.tnk-page h2::before {
  content: "§ " counter(tnk-sec, decimal-leading-zero);
  display: block;
  font-family: var(--tnk-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--tnk-accent);
  margin-bottom: 0.5rem;
}*/
 
/* ---------- Hero ---------- */
.tnk-hero {
  background: var(--tnk-band);
  /*border-left: 5px solid var(--tnk-accent);*/
  border-radius: var(--tnk-radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.6rem) clamp(1.2rem, 0.8rem + 2vw, 2.6rem);
}
.tnk-hero h1 { margin-top: 0; }
.tnk-lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.28rem) !important;
  line-height: 1.6 !important;
  color: var(--tnk-ink-soft);
  /*max-width: 62ch;*/
}
 
/* ---------- Tables ("register" look) ---------- */
.tnk-register,
.tnk-page .wp-block-table {
  border-radius: var(--tnk-radius);
  overflow: hidden;
  box-shadow: var(--tnk-shadow);
  border: 1px solid var(--tnk-line);
}
.tnk-page .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.tnk-page .wp-block-table thead th {
  background: var(--tnk-primary);
  color: #fff;
  text-align: left;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 0.85rem 1rem;
}
.tnk-page .wp-block-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--tnk-line);
  vertical-align: top;
}
.tnk-page .wp-block-table tbody tr:nth-child(even) { background: var(--tnk-zebra); }
.tnk-page .wp-block-table tbody tr:hover { background: #ece6d6; }
.tnk-page .wp-block-table td:first-child { font-weight: 650; color: var(--tnk-ink); }
 
/* Source / caption notes under tables */
.tnk-source {
  font-size: var(--tnk-fs-small);
  color: var(--tnk-ink-soft);
  letter-spacing: 0.01em;
  margin-top: 0.6rem;
}
 
/* ---------- Bulleted list (Alberta stages) ---------- */
.tnk-page ul { padding-left: 1.1rem; }
.tnk-page ul li { margin-bottom: 0.5rem; }
.tnk-page ul li::marker { color: var(--tnk-accent); }
 
/* ---------- 3-step check (numbered "stepper") ---------- */
.tnk-steps {
  list-style: none;
  padding-left: 0;
  counter-reset: tnk-step;
  margin: 1.4rem 0;
}
.tnk-steps li {
  counter-increment: tnk-step;
  position: relative;
  padding: 0.35rem 0 1.2rem 3.4rem;
  border-left: 2px solid var(--tnk-line);
  margin-left: 1.1rem;
}
.tnk-steps li:last-child { border-left-color: transparent; padding-bottom: 0.35rem; }
.tnk-steps li::before {
  content: counter(tnk-step);
  position: absolute;
  left: -1.15rem;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tnk-primary);
  color: #fff;
  font-family: var(--tnk-mono);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 5px var(--tnk-bg);
}
 
/* ---------- Legal notice callout ---------- */
.tnk-notice {
  background: #fbf7ee;
  border: 1px solid var(--tnk-line);
  border-left: 5px solid var(--tnk-gold);
  border-radius: var(--tnk-radius);
  padding: 1.2rem 1.4rem;
  margin-top: 2.6rem;
}
.tnk-notice h2 {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  font-size: 1.1rem;
  font-style: italic;
  counter-increment: none;
}
.tnk-notice h2::before { content: none; }
.tnk-notice p {
  font-size: var(--tnk-fs-small) !important;
  color: var(--tnk-ink-soft);
  line-height: 1.6 !important;
  margin-bottom: 0;
}
 
/* ---------- Images ---------- */
.tnk-figure img,
.tnk-page .wp-block-image img {
  border-radius: var(--tnk-radius);
  box-shadow: var(--tnk-shadow);
  display: block;
  width: 100%;
  height: auto;
}
.tnk-figure { margin: 1.8rem 0; }
 
/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .tnk-page .wp-block-table { overflow-x: auto; }
  .tnk-steps li { padding-left: 3rem; }
}
 

