/* ==========================================================================
   LightKey: printing a pathway
   One sheet per pathway when it can be read on one, and otherwise the fewest
   full sheets, with no text under 8pt. Chrome, Edge and Firefox follow @page:
   each pathway prints in whichever direction takes fewer sheets (the
   print-scale block gives each its own page, landscape or portrait). Safari
   follows the reader's paper and direction (portrait unless they change it),
   and the scale follows the paper. Paper is always light, whatever theme the
   screen uses.

   Linked with media="print" from the three pathway pages. Every rule starts
   with :root so it outranks the page's own screen styles, which come later in
   the page.

   The scale. Every size below is a multiple of --mm or --pt, which carry the
   scale (--k), so type and spacing grow and shrink together. At scale 1 the
   body text is 7.5pt and nothing is smaller. No text goes below 8pt: a
   pathway that would need smaller type to fit one sheet prints on two full
   sheets instead, at the largest scale that fills them. scripts/build-print.js measures every state
   and kind of case in Chromium, on the smaller of A4 and US Letter with
   half-inch margins (so it fits whatever paper and printer margins are used),
   and writes the scales into the print-scale block at the end of this file:
   --lk-k-wide for landscape, --lk-k-narrow for portrait. Nothing is measured
   while printing, because an iPhone can capture the page while a script is
   still changing it. (CSS zoom would be simpler, but Safari keeps zoomed text
   at 9px or more, and the text then overflows its boxes.)

   The shape. The body is a container, so the rules can follow the paper the
   browser really lays out, not the screen: Safari answers width media queries
   with the window's width, even on paper.
   ========================================================================== */

@page {
  size: landscape; margin: 8mm 10mm;
  /* From the second sheet on: a running head (top left) saying what the sheet
     is, and on every sheet of a pathway that can take two, the page number
     (bottom right). The words come from the print-scale block, which gives
     each pathway, state and kind of case a page of its own. Chrome and Edge
     print these; other browsers leave the margins empty. */
  @top-left { font: 400 8pt/1.2 'Lexend Deca', system-ui, sans-serif; color: #5A4E40; vertical-align: bottom; padding-bottom: 2.4mm; }
  @bottom-right { font: 400 8pt/1.2 'Lexend Deca', system-ui, sans-serif; color: #5A4E40; vertical-align: top; padding-top: 2.4mm; }
}
/* The first sheet has the full header instead */
@page :first { @top-left { content: none !important; } }

/* --- The page ------------------------------------------------------------ */
:root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
:root, :root body { background: #FFFFFF !important; }
/* Paper is always light. style.css keeps the dark theme to the screen, but an
   iPhone has printed it anyway (dark grounds under print-coloured text), so these
   put the light colours back whenever this sheet applies. js/pathway-print.js
   also turns the dark theme off while the page prints. */
:root[data-theme="dark"][data-theme] {
  color-scheme: light;
  --stone: #8B7355; --stone-dark: #5C4D3A;
  --copper: #9A5530; --copper-hover: #7D4528; --copper-deep: #713D20; --copper-bg: rgba(154,85,48,0.08);
  --teal: #3D7A8A; --teal-light: rgba(61,122,138,0.1); --teal-border: rgba(61,122,138,0.25);
  --strand-right: #3D7A8A; --strand-right-bg: rgba(61,122,138,0.08);
  --strand-timeline: #9A5530; --strand-timeline-bg: rgba(154,85,48,0.08);
  --strand-decision: #8B7355; --strand-decision-bg: rgba(139,115,85,0.08);
  --strand-keystone: #C94A38; --strand-keystone-bg: rgba(201,74,56,0.10);
  --bg: #F5F0E8; --surface: #EBE3D5; --surface-raised: #FFFFFF;
  --text: #2A2118; --text-soft: #504539; --text-muted: #4E473F;
  --border: #D4C8B8; --line: #5C4D3A; --rule: #D4C8B8; --done: #6A8A5A; --focus: #3D7A8A;
  --on-fill: #FFFFFF; --footer-bg: #2A2118;
  --teal-ink: #23454E; --copper-ink: #65371F; --stone-ink: #544633; --keystone-ink: #7C2E22;
  --copper-fill: #7D4528; --teal-fill: #23454E; --keystone-fill: #7C2E22;
}
:root body, :root body.reading-relaxed {
  --lh-body: 1.38; --ls-body: 0; --ws-body: 0;
  margin: 0 !important; padding: 0 !important; min-height: 0 !important; color: #2A2118;
  container: lk-page / inline-size;
}
:root body > * { --k: var(--lk-k-wide, 1); }
@container lk-page (max-width: 225mm) { :root body > * { --k: var(--lk-k-narrow, 1); } }
/* WebKit (Safari, and every browser on iPhone and iPad) prints 1.25 CSS pixels to
   the point, not 4/3, so the same scale comes out 6.7% larger: this evens it out.
   On landscape paper it lays the tribunal's steps out one to a row (below), at
   --lk-k-rows. */
:root.lk-webkit body > * { --k: calc(var(--lk-k-rows, var(--lk-k-wide, 1)) * 0.9375); }
@container lk-page (max-width: 225mm) { :root.lk-webkit body > * { --k: calc(var(--lk-k-narrow, 1) * 0.9375); } }
:root body > * {
  --mm: calc(1mm * var(--k)); --pt: calc(1pt * var(--k));
  --fs-body: calc(8 * var(--pt));
  font-size: var(--fs-body);
}

/* Site chrome, controls and the sections that do not go on paper */
:root :is(#lk-nav, #lk-mobile-menu, #lk-footer, .site-header, .site-footer, .lk-nav, .lk-footer, .lk-mobile-menu, .lk-mobile-overlay,
  .skip-link, #cg-banner, .lk-print-btn, .foi-print-btn,
  .jx-intro, .jx-states, .trb-states,
  .trb-legend, .rv-legend, .trb-sub, .rv-sub, .trb-step__note, .rv-step__note,
  .trb-icon, .rv-icon, .foi-doi, .foi-print-hide, .foi-print-identity, .foi-view-timeline,
  #apply-for, #hearing, #sources, #review-or-complaint, .trb-end, .rv-end) { display: none !important; }
:root a { color: inherit; text-decoration: none; }
:root main { margin: 0 !important; padding: 0 !important; }

/* --- Print header: who made this and where to find it --------------------- */
/* The header keeps one size whatever the scale: the URL stays on one line */
:root .lk-print-head {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 6mm;
  margin: 0 0 3mm;
  padding: 0 0 1.6mm;
  border-bottom: 0.75pt solid #5C4D3A;
  font: 400 8pt/1.3 var(--body);
  color: #5A4E40;
}
:root .lk-print-head__brand { display: flex; align-items: center; gap: 1.8mm; }
:root .lk-print-head svg { width: 4.4mm; height: 4.4mm; flex: 0 0 auto; }
:root .lk-print-head b { font: 600 11pt/1 var(--display); letter-spacing: -0.02em; color: #2A2118; }
:root .lk-print-head__where { text-align: right; white-space: nowrap; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 8pt; }

/* --- Top row: the pathway on the left, the chosen government on the right -- */
/* The page's wrappers step aside, so the title, the card and the steps share one grid */
:root main:is(.trb, .rv) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(82 * var(--mm));
  column-gap: calc(8 * var(--mm));
  align-items: start;
}
:root :is(.trb-wrap, .rv-wrap, .trb-layout, .rv-layout, .trb-main, .rv-main) { display: contents; }
:root :is(.trb-hero, .rv-hero) { grid-column: 1; grid-row: 1; padding: 0; }
:root :is(.trb-aside, .rv-aside) { grid-column: 2; grid-row: 1; position: static; }
:root :is(.trb-main, .rv-main) > section { grid-column: 1 / -1; grid-row: 2; margin-top: calc(3.4 * var(--mm)); }
:root .lk-print-row, :root section[aria-labelledby="start-title"] { display: none !important; }

:root :is(.trb-status, .rv-status, .foi-status) {
  display: inline-block; margin: 0 0 calc(1.2 * var(--mm)); padding: calc(0.3 * var(--mm)) calc(2.2 * var(--mm)) calc(0.5 * var(--mm));
  border-radius: 999px; background: #9A5530; color: #FFFFFF;
  font: 500 calc(7.5 * var(--pt))/1.4 var(--body); letter-spacing: 0; text-transform: none;
}
:root :is(.trb-hero, .rv-hero, .foi-hero) h1 {
  margin: 0; font: 600 calc(20 * var(--pt))/1 var(--display); letter-spacing: -0.03em; word-spacing: normal; color: #2A2118;
}
:root :is(.trb-lead, .rv-lead, .foi-lead) { max-width: none; margin: calc(1.6 * var(--mm)) 0 0; font-size: calc(9 * var(--pt)); line-height: 1.35; color: #2A2118; }
:root :is(.trb-scope, .rv-scope) {
  max-width: none; margin: calc(2.2 * var(--mm)) 0 0; padding: calc(1.4 * var(--mm)) calc(2.4 * var(--mm));
  border-left: calc(1.5 * var(--pt)) solid #9A5530; background: #F3ECE2;
  font-size: calc(7.5 * var(--pt)); line-height: 1.4; color: #2A2118;
}

/* The chosen tribunal or reviewer, with the map of Australia showing which state */
:root :is(.trb-id, .rv-id) {
  display: grid; grid-template-columns: calc(24 * var(--mm)) minmax(0, 1fr); column-gap: calc(3.4 * var(--mm)); align-items: start;
  padding: calc(2.6 * var(--mm)) calc(3 * var(--mm)); border: calc(0.5 * var(--pt)) solid #D4C8B8; border-top: calc(1.5 * var(--pt)) solid #5C4D3A; background: #FFFFFF;
}
/* Chrome works out a print's media queries at its default paper width (about
   800px), so the page's phone and tablet rules can apply on paper. Every
   property they change is set again here. */
:root :is(.trb-id, .rv-id) { position: static; }
:root :is(.trb-id, .rv-id) > :is(svg, .jx-map) { position: static; grid-column: 1; grid-row: 1; width: 100%; max-width: none; height: auto; margin: calc(0.6 * var(--mm)) 0 0; }
:root :is(.trb-id__abbr, .rv-id__abbr, .trb-id__name, .rv-id__name, .trb-id__state, .rv-id__state) { margin-right: 0; }
:root :is(.trb-id, .rv-id) > :not(svg, .jx-map) { grid-column: 2; grid-row: 1; }
:root :is(.trb-map, .jx-map) path { stroke-width: 1.4; }
:root :is(.trb-id__abbr, .rv-id__abbr) { margin: 0; font: 600 calc(17 * var(--pt))/1 var(--display); letter-spacing: -0.03em; color: #9A5530; }
:root :is(.trb-id__name, .rv-id__name) { margin: calc(1 * var(--mm)) 0 0; font: 600 calc(9 * var(--pt))/1.25 var(--reading); color: #2A2118; }
:root :is(.trb-id__state, .rv-id__state) { margin: calc(0.4 * var(--mm)) 0 0; font-size: calc(7.5 * var(--pt)); color: #5A4E40; }
:root :is(.trb-id__quick, .rv-id__quick) { list-style: none; margin: calc(1.6 * var(--mm)) 0 0; padding: calc(1.4 * var(--mm)) 0 0; border-top: calc(0.5 * var(--pt)) solid #D4C8B8; font-size: calc(8 * var(--pt)); }
:root :is(.trb-id__quick, .rv-id__quick) li { margin: 0; padding: calc(0.3 * var(--mm)) 0; }
:root :is(.trb-id__quick, .rv-id__quick) li:first-child { font: 600 calc(10 * var(--pt))/1.3 var(--display); }
/* On paper a link is only useful as an address: keep the phone and the website */
:root :is(.trb-id__quick, .rv-id__quick) li:has(a[href^="#"]),
:root :is(.trb-id__quick, .rv-id__quick) li:has(a[href*="austlii"]),
:root :is(.trb-id__quick, .rv-id__quick) li:has(a[href*="legislation"]) { display: none; }
:root .trb-id__quick li a[href^="http"]::after { content: " " attr(href); overflow-wrap: anywhere; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: calc(7.5 * var(--pt)); color: #5A4E40; }
/* A reviewer's "how to apply" link is a long address: the printed page address leads back to it */
:root .rv-id__quick li:has(a[href^="http"]) { display: none; }

/* Portrait paper: a narrower card, with a smaller map */
@container lk-page (max-width: 225mm) {
  :root main:is(.trb, .rv) { grid-template-columns: minmax(0, 1fr) calc(66 * var(--mm)); column-gap: calc(6 * var(--mm)); }
  :root :is(.trb-id, .rv-id) { grid-template-columns: calc(17 * var(--mm)) minmax(0, 1fr); column-gap: calc(2.6 * var(--mm)); padding-inline: calc(2.6 * var(--mm)); }
}

/* --- The steps ------------------------------------------------------------ */
:root :is(.trb-h2, .rv-h2) { margin: 0 0 calc(2 * var(--mm)); padding: 0; border: 0; font: 600 calc(12 * var(--pt))/1.1 var(--display); letter-spacing: -0.02em; color: #2A2118; }
/* Each step is a row: its number, what happens, and beside it what that means
   in the chosen state. On landscape paper the steps become cards, four to a
   row (below). */
:root :is(.trb-flow, .rv-flow) { display: block; margin: 0; padding: 0; }
:root :is(.trb-flow, .rv-flow) > li { margin: 0 0 calc(1.6 * var(--mm)); }
:root :is(.trb-step, .rv-step) {
  display: grid; grid-template-columns: calc(6.2 * var(--mm)) minmax(0, 1fr); column-gap: calc(1.6 * var(--mm)); row-gap: 0;
  padding: 0; break-inside: avoid; page-break-inside: avoid;
}
:root :is(.trb-step, .rv-step, .trb-branch, .rv-branch)::before { display: none; }
:root :is(.trb-step__num, .rv-step__num) {
  height: calc(6.8 * var(--mm)); padding-top: calc(1.2 * var(--mm)); border-radius: calc(3.1 * var(--mm)) calc(3.1 * var(--mm)) calc(0.4 * var(--mm)) calc(0.4 * var(--mm));
  font: 600 calc(10 * var(--pt))/1 var(--display);
}
:root :is(.trb-step__card, .rv-step__card) {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: calc(3 * var(--mm)); align-items: start;
  padding: calc(1.8 * var(--mm)) calc(2.2 * var(--mm)) calc(2.2 * var(--mm)); border: calc(0.5 * var(--pt)) solid #D4C8B8; border-left: calc(1.6 * var(--pt)) solid var(--strand); background: #FFFFFF;
}
:root :is(.trb-step__card, .rv-step__card) > * { grid-column: 1; }
:root :is(.trb-step__card, .rv-step__card) > :is(.trb-step__state, .rv-step__state) { grid-column: 2; grid-row: 1 / 4; margin: 0; }
:root :is(.trb-step__head, .rv-step__head) { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(0.6 * var(--mm)) calc(1.6 * var(--mm)); }
:root :is(.trb-step__head, .rv-step__head) h3 { flex: 1 1 auto; margin: 0; font: 600 calc(9.5 * var(--pt))/1.2 var(--reading); }
:root :is(.trb-tag, .rv-tag) { margin: 0; padding: calc(0.2 * var(--mm)) calc(1.6 * var(--mm)) calc(0.4 * var(--mm)); font-size: calc(7.5 * var(--pt)); line-height: 1.4; }
:root :is(.trb-step__text, .rv-step__text) { margin: calc(1 * var(--mm)) 0 0; font-size: calc(7.5 * var(--pt)); line-height: 1.34; }
:root :is(.trb-step__state, .rv-step__state) { padding: calc(1.1 * var(--mm)) calc(1.7 * var(--mm)); font-size: calc(7.5 * var(--pt)); line-height: 1.34; }
:root :is(.trb-step__state, .rv-step__state) b { font-size: calc(7.5 * var(--pt)); }
:root :is(.trb-after, .rv-after) li { padding: calc(0.4 * var(--mm)) 0; }
:root :is(.trb-more, .rv-more, .jx-more) { text-decoration: none; font-weight: 600; }
/* "Read more" and "How to apply" lead to web pages: on paper they are dropped */
:root :is(.trb-more, .rv-more, .jx-more) { display: none; }

/* The off-ramp ("Agreed?"), set in under the step it leaves from */
:root :is(.trb-branch, .rv-branch) { display: block; padding: 0; break-inside: avoid; page-break-inside: avoid; }
/* It stays on the same sheet as the step it leaves from */
:root :is(.trb-branch, .rv-branch) { break-before: avoid; page-break-before: avoid; }
:root :is(.trb-branch__card, .rv-branch__card) { margin: 0 0 0 calc(7.8 * var(--mm)); padding: calc(1.4 * var(--mm)) calc(2.2 * var(--mm)); border-width: calc(1 * var(--pt)); font-size: calc(7.6 * var(--pt)); line-height: 1.38; }
:root :is(.trb-branch__card, .rv-branch__card)::before { display: none; }

/* Landscape paper: four cards to a row, read across. A shorter last row shares
   the full width. The off-ramp runs the full width between the rows, after the
   step it leaves from. Not for the tribunal in Safari: across two sheets it
   leaves gaps above a row of cards, so there it keeps one step to a row.
   (scripts/build-print.js sets .lk-rows to measure that layout.) The FOI
   challenge fits one landscape sheet in every state, so it keeps the cards. */
@container lk-page (min-width: 225mm) {
  :root:not(.lk-rows, .lk-webkit:has(main.trb)) :is(.trb-flow, .rv-flow) { display: flex; flex-wrap: wrap; gap: calc(2.4 * var(--mm)) calc(2.6 * var(--mm)); }
  :root:not(.lk-rows, .lk-webkit:has(main.trb)) :is(.trb-flow, .rv-flow) > li { flex: 1 1 calc((100% - 7.8 * var(--mm)) / 4); min-width: 0; margin: 0; }
  :root:not(.lk-rows, .lk-webkit:has(main.trb)) :is(.trb-step__card, .rv-step__card) { display: block; }
  :root:not(.lk-rows, .lk-webkit:has(main.trb)) :is(.trb-step__card, .rv-step__card) > :is(.trb-step__state, .rv-step__state) { margin: calc(1.2 * var(--mm)) 0 0; }
  :root:not(.lk-rows, .lk-webkit:has(main.trb)) :is(.trb-flow, .rv-flow) > :is(.trb-branch, .rv-branch) { flex-basis: 100%; }
}

/* --- After the steps: time limits and help --------------------------------- */
:root :is(.trb-section, .rv-section) { grid-column: 1 / -1; margin: calc(3 * var(--mm)) 0 0; padding: 0; }
:root :is(.trb-section, .rv-section) > h2 { margin: 0 0 calc(1 * var(--mm)); padding: 0; border: 0; font: 600 calc(10.5 * var(--pt))/1.15 var(--display); letter-spacing: -0.015em; }
:root :is(#late, #no-decision) { grid-column: 1; }
:root :is(#late, #no-decision) p, :root :is(#late, #no-decision) .trb-s, :root :is(#late, #no-decision) .rv-s { font-size: calc(7.6 * var(--pt)); line-height: 1.4; }
:root :is(#late, #no-decision) :is(.trb-s, .rv-s, .rv-wait__box, .trb-late__box) { padding: 0; border: 0; background: none; }
:root :is(#tribunal-contact, #reviewer-contact) { grid-column: 2; grid-row: auto; }
:root :is(#tribunal-contact, #reviewer-contact) > :not(.trb-everyone, .rv-everyone) { display: none !important; }
:root :is(.trb-everyone, .rv-everyone) { margin: 0; padding: calc(1.6 * var(--mm)) calc(2.2 * var(--mm)); border: 0; background: #F3ECE2; font-size: calc(7.5 * var(--pt)); line-height: 1.4; }

/* ==========================================================================
   Making an FOI Request: the same page, built from tiles
   ========================================================================== */
:root main.jx:has(.foi-tiles-grid) {
  display: grid; grid-template-columns: minmax(0, 1fr) calc(96 * var(--mm)); grid-template-rows: auto 1fr; column-gap: calc(8 * var(--mm)); align-items: start;
}
:root main.jx:has(.foi-tiles-grid) > * { grid-column: 1 / -1; }
:root :is(.foi-hero, .foi-scope, .foi-section) { max-width: none; margin: 0; padding: 0; }
:root main.jx > .foi-hero { grid-column: 1; grid-row: 1; }
:root main.jx > .foi-scope { grid-column: 1; grid-row: 2; margin-top: calc(2.2 * var(--mm)); }
:root .foi-scope-inner { padding: calc(1.4 * var(--mm)) calc(2.4 * var(--mm)); border: 0; border-left: calc(1.5 * var(--pt)) solid #9A5530; border-radius: 0; background: #F3ECE2; font-size: calc(7.5 * var(--pt)); line-height: 1.4; }
:root main.jx > .foi-section:has(.jx-glance) { grid-column: 2; grid-row: 1 / span 2; }
:root .jx-glance {
  display: grid; grid-template-columns: calc(24 * var(--mm)) minmax(0, 1fr); column-gap: calc(3.4 * var(--mm)); align-items: start;
  padding: calc(2.6 * var(--mm)) calc(3 * var(--mm)); border: calc(0.5 * var(--pt)) solid #D4C8B8; border-top: calc(1.5 * var(--pt)) solid #5C4D3A; background: #FFFFFF;
}
:root .jx-glance__map { margin-top: calc(0.6 * var(--mm)); }
:root .jx-glance__map .jx-map { width: 100%; max-width: none; }
:root .jx-glance__name { margin: 0; font: 600 calc(15 * var(--pt))/1 var(--display); letter-spacing: -0.025em; color: #9A5530; }
:root .jx-glance__law { margin: calc(1 * var(--mm)) 0 0; font: 400 calc(8 * var(--pt))/1.3 var(--reading); }
:root .jx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(1.2 * var(--mm)); margin: calc(1.8 * var(--mm)) 0 0; }
:root .jx-facts > div { padding: calc(1.2 * var(--mm)) calc(1.8 * var(--mm)); background: #F3ECE2; }
:root .jx-facts dt { font-size: calc(7.5 * var(--pt)); font-weight: 600; color: #5A4E40; }
:root .jx-facts dd { margin: calc(0.3 * var(--mm)) 0 0; font: 600 calc(9 * var(--pt))/1.2 var(--display); }
:root .jx-facts dd small { margin-top: calc(0.2 * var(--mm)); font: 500 calc(7.5 * var(--pt))/1.25 var(--body); }
:root .jx-checked { display: none; }

/* Tiles: 4 × 2 */
:root main.jx > .foi-section:has(.foi-tiles-grid) { margin-top: calc(4 * var(--mm)); }
:root .foi-view-tiles { display: grid !important; }
:root .foi-tiles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(2.4 * var(--mm)); margin: 0; }
:root .foi-tile { min-height: 0; padding: calc(1.8 * var(--mm)) calc(2.4 * var(--mm)) calc(2.2 * var(--mm)); border-radius: 0; break-inside: avoid; }
:root .foi-tile-num { top: calc(1.6 * var(--mm)); left: calc(2 * var(--mm)); padding: calc(0.6 * var(--mm)) calc(1.8 * var(--mm)) calc(0.3 * var(--mm)); font-size: calc(7.5 * var(--pt)); }
:root .foi-tile-icon { width: calc(4.4 * var(--mm)); height: calc(4.4 * var(--mm)); margin: calc(0.6 * var(--mm)) auto calc(0.8 * var(--mm)); }
:root .foi-tile-title { margin: 0 0 calc(0.8 * var(--mm)); font-size: calc(9.5 * var(--pt)); line-height: 1.2; }
:root .foi-tile-sentence { margin: 0 0 calc(1 * var(--mm)); font-size: calc(7.5 * var(--pt)); line-height: 1.35; }
:root .foi-tag { padding: calc(0.2 * var(--mm)) calc(1.8 * var(--mm)) calc(0.4 * var(--mm)); font-size: calc(7.5 * var(--pt)); }

/* The request formula beside the notes */
:root main.jx > .foi-section:has(.foi-keystone-card) { grid-column: 1; margin-top: calc(3.4 * var(--mm)); }
:root main.jx > .foi-section:has(.foi-notes-card) { grid-column: 1 / -1; margin-top: calc(3.4 * var(--mm)); }
:root .foi-section-label { display: none; }
:root .foi-section h2 { margin: 0 0 calc(1.2 * var(--mm)); font: 600 calc(10.5 * var(--pt))/1.15 var(--display); letter-spacing: -0.015em; }
:root .foi-keystone-card { margin: 0; padding: calc(2 * var(--mm)) calc(2.6 * var(--mm)); break-inside: avoid; }
:root .foi-kc-head { display: none; }
:root .foi-doc-types { margin-top: calc(1.4 * var(--mm)); gap: calc(1 * var(--mm)); }
:root .foi-doc-chip { padding: calc(0.4 * var(--mm)) calc(2 * var(--mm)); font-size: calc(7.5 * var(--pt)); }
:root .foi-formula { margin: 0; padding: calc(1.6 * var(--mm)) calc(2.2 * var(--mm)); font-size: calc(9 * var(--pt)); line-height: 1.45; }
:root .foi-ph { font-size: calc(7.6 * var(--pt)); }
:root .foi-kc-rule { margin-top: calc(1.2 * var(--mm)); font-size: calc(7.6 * var(--pt)); }
:root .foi-notes-card { margin: 0; padding: calc(2 * var(--mm)) calc(2.6 * var(--mm)); break-inside: avoid; }
/* The notes sit in three columns, read across (two on portrait paper). A grid,
   not CSS columns, so Safari lays them out the same way. */
:root .foi-notes-card ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.2 * var(--mm)) calc(6 * var(--mm)); margin: 0 0 0 calc(3.6 * var(--mm)); }
:root .foi-notes-card li { margin: 0; font-size: calc(7.5 * var(--pt)); line-height: 1.35; break-inside: avoid; }

/* Portrait paper: a narrower card, the request formula across the page, the notes in two columns */
@container lk-page (max-width: 225mm) {
  :root main.jx:has(.foi-tiles-grid) { grid-template-columns: minmax(0, 1fr) calc(80 * var(--mm)); column-gap: calc(6 * var(--mm)); }
  :root main.jx > .foi-section:has(.foi-keystone-card) { grid-column: 1 / -1; }
  :root .foi-notes-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Headings stay with what follows, and cards are not split, where a pathway
   runs onto a second sheet */
:root :is(h1, h2, h3) { break-after: avoid; }
:root :is(p, li) { orphans: 2; widows: 2; }
/* Except in Safari: it moves anything marked this way down the page, leaving a
   gap above it, even when everything fits on one sheet */
:root.lk-webkit :is(h1, h2, h3) { break-after: auto; }
:root.lk-webkit :is(.trb-step, .rv-step, .trb-branch, .rv-branch, .foi-tile, .foi-keystone-card, .foi-notes-card, .foi-notes-card li) { break-inside: auto; page-break-inside: auto; }

/* Optional tribunal case notes. Both the browser's Print command and the
   print button use this sheet, including when measuring landscape/portrait.
   The topic row is a control, so it does not print; the label under the title
   says which notes the sheet carries. */
:root :is(.trb-topics, .trb-case-sum) { display: none !important; }
:root .trb .case-print-label { display: block !important; margin: calc(1 * var(--mm)) 0; font: 600 calc(9 * var(--pt))/1.4 var(--body); }
:root .trb .trb-case-note { margin: calc(1 * var(--mm)) 0 0; padding: 0 0 0 calc(2 * var(--mm)); border-left: calc(1.2 * var(--pt)) solid #5C4D3A; }
:root .trb .trb-case-note p { margin: 0; font: 400 calc(7.6 * var(--pt))/1.35 var(--body); }
:root .trb .trb-case-note p.trb-case-note__for { font-weight: 600; }
:root .trb .trb-routes { grid-column: 1 / -1; grid-row: 2; }
:root .trb .trb-main > section { grid-row: 3; }   /* where to start comes before the steps */
:root .trb .trb-route { max-width: none; margin: calc(2 * var(--mm)) 0 0; padding: calc(1.2 * var(--mm)) calc(2 * var(--mm)); border: 0; border-left: calc(1.6 * var(--pt)) solid #5C4D3A; background: none; break-inside: avoid; }
:root .trb .trb-route__title { font-size: calc(9.5 * var(--pt)); }
:root .trb .trb-route__list li p { margin: 0; }
:root .trb .trb-route__list li p + p { margin-top: calc(0.6 * var(--mm)); }
:root .trb .trb-route :is(p, li) { font-size: calc(7.6 * var(--pt)); line-height: 1.35; }
:root .trb .trb-route__list li { padding-top: calc(0.8 * var(--mm)); }
:root .trb .trb-route__list li + li { margin-top: calc(0.8 * var(--mm)); }
:root .trb .trb-route__screen { display: none; }   /* an instruction for the screen, not the page */
:root .trb .trb-route p.trb-route__steps { margin-top: calc(1 * var(--mm)); padding-top: calc(0.8 * var(--mm)); font-weight: 600; }
:root .trb .trb-case-note p:not(.trb-case-note__for) + p { margin-top: calc(0.6 * var(--mm)); }
/* The scale for each pathway, state and kind of case (see the top of this file).
   Generated by scripts/build-print.js; run it again after changing a pathway's text. */
/* print-scale:start */
:root:has(main.trb):has(#st-vic:checked):has(#c-general:checked) { --lk-k-wide: 1.271; --lk-k-narrow: 1.387; --lk-k-rows: 1.287; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-vic:checked):has(#c-general:checked) body { page: lk-trb-vic-general; }
@page lk-trb-vic-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Victoria, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-vic:checked):has(#c-renting:checked) { --lk-k-wide: 1.098; --lk-k-narrow: 1.315; --lk-k-rows: 1.178; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-vic:checked):has(#c-renting:checked) body { page: lk-trb-vic-renting; }
@page lk-trb-vic-renting { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Victoria, with notes for renting"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-vic:checked):has(#c-money:checked) { --lk-k-wide: 1.355; --lk-k-narrow: 1.315; --lk-k-rows: 1.211; } /* three sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-vic:checked):has(#c-money:checked) body { page: lk-trb-vic-money; }
@page lk-trb-vic-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Victoria, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-vic:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.199; --lk-k-narrow: 1.387; --lk-k-rows: 1.267; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-vic:checked):has(#c-guardianship:checked) body { page: lk-trb-vic-guardianship; }
@page lk-trb-vic-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Victoria, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-vic:checked):has(#c-government:checked) { --lk-k-wide: 1.259; --lk-k-narrow: 1.299; --lk-k-rows: 1.211; } /* three sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-vic:checked):has(#c-government:checked) body { page: lk-trb-vic-government; }
@page lk-trb-vic-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Victoria, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-vic:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.094; --lk-k-narrow: 1.307; --lk-k-rows: 1.15; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-vic:checked):has(#c-discrimination:checked) body { page: lk-trb-vic-discrimination; }
@page lk-trb-vic-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Victoria, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nsw:checked):has(#c-general:checked) { --lk-k-wide: 1.271; --lk-k-narrow: 1.427; --lk-k-rows: 1.331; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nsw:checked):has(#c-general:checked) body { page: lk-trb-nsw-general; }
@page lk-trb-nsw-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · New South Wales, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nsw:checked):has(#c-renting:checked) { --lk-k-wide: 1.178; --lk-k-narrow: 1.371; --lk-k-rows: 1.283; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nsw:checked):has(#c-renting:checked) body { page: lk-trb-nsw-renting; }
@page lk-trb-nsw-renting { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · New South Wales, with notes for renting"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nsw:checked):has(#c-money:checked) { --lk-k-wide: 1.339; --lk-k-narrow: 1.235; --lk-k-rows: 1.094; } /* three sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nsw:checked):has(#c-money:checked) body { page: lk-trb-nsw-money; }
@page lk-trb-nsw-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · New South Wales, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nsw:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.17; --lk-k-narrow: 1.403; --lk-k-rows: 1.283; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nsw:checked):has(#c-guardianship:checked) body { page: lk-trb-nsw-guardianship; }
@page lk-trb-nsw-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · New South Wales, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nsw:checked):has(#c-government:checked) { --lk-k-wide: 1.074; --lk-k-narrow: 1.363; --lk-k-rows: 1.247; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nsw:checked):has(#c-government:checked) body { page: lk-trb-nsw-government; }
@page lk-trb-nsw-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · New South Wales, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nsw:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.154; --lk-k-narrow: 1.383; --lk-k-rows: 1.283; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nsw:checked):has(#c-discrimination:checked) body { page: lk-trb-nsw-discrimination; }
@page lk-trb-nsw-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · New South Wales, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-qld:checked):has(#c-general:checked) { --lk-k-wide: 1.323; --lk-k-narrow: 1.431; --lk-k-rows: 1.371; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-qld:checked):has(#c-general:checked) body { page: lk-trb-qld-general; }
@page lk-trb-qld-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Queensland, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-qld:checked):has(#c-renting:checked) { --lk-k-wide: 1.447; --lk-k-narrow: 1.211; --lk-k-rows: 1.467; } /* three sheets landscape, two sheets portrait, three sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-qld:checked):has(#c-renting:checked) body { page: lk-trb-qld-renting; }
@page lk-trb-qld-renting { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Queensland, with notes for renting"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-qld:checked):has(#c-money:checked) { --lk-k-wide: 1.134; --lk-k-narrow: 1.387; --lk-k-rows: 1.275; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-qld:checked):has(#c-money:checked) body { page: lk-trb-qld-money; }
@page lk-trb-qld-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Queensland, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-qld:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.162; --lk-k-narrow: 1.387; --lk-k-rows: 1.319; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-qld:checked):has(#c-guardianship:checked) body { page: lk-trb-qld-guardianship; }
@page lk-trb-qld-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Queensland, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-qld:checked):has(#c-government:checked) { --lk-k-wide: 1.122; --lk-k-narrow: 1.351; --lk-k-rows: 1.247; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-qld:checked):has(#c-government:checked) body { page: lk-trb-qld-government; }
@page lk-trb-qld-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Queensland, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-qld:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.15; --lk-k-narrow: 1.387; --lk-k-rows: 1.259; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-qld:checked):has(#c-discrimination:checked) body { page: lk-trb-qld-discrimination; }
@page lk-trb-qld-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Queensland, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-wa:checked):has(#c-general:checked) { --lk-k-wide: 1.279; --lk-k-narrow: 1.431; --lk-k-rows: 1.331; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-wa:checked):has(#c-general:checked) body { page: lk-trb-wa-general; }
@page lk-trb-wa-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Western Australia, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-wa:checked):has(#c-renting:checked) { --lk-k-wide: 1.367; --lk-k-narrow: 1.239; --lk-k-rows: 1.082; } /* three sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-wa:checked):has(#c-renting:checked) body { page: lk-trb-wa-renting; }
@page lk-trb-wa-renting { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Western Australia, with notes for renting"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-wa:checked):has(#c-money:checked) { --lk-k-wide: 1.082; --lk-k-narrow: 1.339; --lk-k-rows: 1.182; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-wa:checked):has(#c-money:checked) body { page: lk-trb-wa-money; }
@page lk-trb-wa-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Western Australia, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-wa:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.134; --lk-k-narrow: 1.403; --lk-k-rows: 1.287; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-wa:checked):has(#c-guardianship:checked) body { page: lk-trb-wa-guardianship; }
@page lk-trb-wa-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Western Australia, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-wa:checked):has(#c-government:checked) { --lk-k-wide: 1.134; --lk-k-narrow: 1.339; --lk-k-rows: 1.223; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-wa:checked):has(#c-government:checked) body { page: lk-trb-wa-government; }
@page lk-trb-wa-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Western Australia, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-wa:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.126; --lk-k-narrow: 1.339; --lk-k-rows: 1.223; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-wa:checked):has(#c-discrimination:checked) body { page: lk-trb-wa-discrimination; }
@page lk-trb-wa-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Western Australia, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-sa:checked):has(#c-general:checked) { --lk-k-wide: 1.335; --lk-k-narrow: 1.435; --lk-k-rows: 1.347; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-sa:checked):has(#c-general:checked) body { page: lk-trb-sa-general; }
@page lk-trb-sa-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · South Australia, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-sa:checked):has(#c-renting:checked) { --lk-k-wide: 1.235; --lk-k-narrow: 1.383; --lk-k-rows: 1.271; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-sa:checked):has(#c-renting:checked) body { page: lk-trb-sa-renting; }
@page lk-trb-sa-renting { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · South Australia, with notes for renting"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-sa:checked):has(#c-money:checked) { --lk-k-wide: 1.134; --lk-k-narrow: 1.363; --lk-k-rows: 1.247; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-sa:checked):has(#c-money:checked) body { page: lk-trb-sa-money; }
@page lk-trb-sa-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · South Australia, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-sa:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.215; --lk-k-narrow: 1.315; --lk-k-rows: 1.178; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-sa:checked):has(#c-guardianship:checked) body { page: lk-trb-sa-guardianship; }
@page lk-trb-sa-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · South Australia, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-sa:checked):has(#c-government:checked) { --lk-k-wide: 1.15; --lk-k-narrow: 1.359; --lk-k-rows: 1.255; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-sa:checked):has(#c-government:checked) body { page: lk-trb-sa-government; }
@page lk-trb-sa-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · South Australia, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-sa:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.182; --lk-k-narrow: 1.363; --lk-k-rows: 1.271; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-sa:checked):has(#c-discrimination:checked) body { page: lk-trb-sa-discrimination; }
@page lk-trb-sa-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · South Australia, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-tas:checked):has(#c-general:checked) { --lk-k-wide: 1.303; --lk-k-narrow: 1.427; --lk-k-rows: 1.331; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-tas:checked):has(#c-general:checked) body { page: lk-trb-tas-general; }
@page lk-trb-tas-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Tasmania, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-tas:checked):has(#c-renting:checked) { --lk-k-wide: 1.23; --lk-k-narrow: 1.23; --lk-k-rows: 1.23; } /* one sheet landscape, one sheet portrait, one sheet landscape in Safari */
:root:has(main.trb):has(#st-tas:checked):has(#c-renting:checked) body { page: lk-trb-tas-renting; }
@page lk-trb-tas-renting { size: landscape; @top-left { content: "LightKey · Going to a Tribunal · with notes for renting"; } }
:root:has(main.trb):has(#st-tas:checked):has(#c-money:checked) { --lk-k-wide: 1.114; --lk-k-narrow: 1.387; --lk-k-rows: 1.219; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-tas:checked):has(#c-money:checked) body { page: lk-trb-tas-money; }
@page lk-trb-tas-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Tasmania, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-tas:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.178; --lk-k-narrow: 1.423; --lk-k-rows: 1.319; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-tas:checked):has(#c-guardianship:checked) body { page: lk-trb-tas-guardianship; }
@page lk-trb-tas-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Tasmania, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-tas:checked):has(#c-government:checked) { --lk-k-wide: 1.122; --lk-k-narrow: 1.363; --lk-k-rows: 1.247; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-tas:checked):has(#c-government:checked) body { page: lk-trb-tas-government; }
@page lk-trb-tas-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Tasmania, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-tas:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.17; --lk-k-narrow: 1.359; --lk-k-rows: 1.194; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-tas:checked):has(#c-discrimination:checked) body { page: lk-trb-tas-discrimination; }
@page lk-trb-tas-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Tasmania, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-act:checked):has(#c-general:checked) { --lk-k-wide: 1.355; --lk-k-narrow: 1.435; --lk-k-rows: 1.371; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-act:checked):has(#c-general:checked) body { page: lk-trb-act-general; }
@page lk-trb-act-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Australian Capital Territory, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-act:checked):has(#c-renting:checked) { --lk-k-wide: 1.247; --lk-k-narrow: 1.383; --lk-k-rows: 1.291; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-act:checked):has(#c-renting:checked) body { page: lk-trb-act-renting; }
@page lk-trb-act-renting { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Australian Capital Territory, with notes for renting"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-act:checked):has(#c-money:checked) { --lk-k-wide: 1.203; --lk-k-narrow: 1.383; --lk-k-rows: 1.291; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-act:checked):has(#c-money:checked) body { page: lk-trb-act-money; }
@page lk-trb-act-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Australian Capital Territory, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-act:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.199; --lk-k-narrow: 1.403; --lk-k-rows: 1.291; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-act:checked):has(#c-guardianship:checked) body { page: lk-trb-act-guardianship; }
@page lk-trb-act-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Australian Capital Territory, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-act:checked):has(#c-government:checked) { --lk-k-wide: 1.122; --lk-k-narrow: 1.363; --lk-k-rows: 1.247; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-act:checked):has(#c-government:checked) body { page: lk-trb-act-government; }
@page lk-trb-act-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Australian Capital Territory, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-act:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.203; --lk-k-narrow: 1.383; --lk-k-rows: 1.291; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-act:checked):has(#c-discrimination:checked) body { page: lk-trb-act-discrimination; }
@page lk-trb-act-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Australian Capital Territory, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nt:checked):has(#c-general:checked) { --lk-k-wide: 1.267; --lk-k-narrow: 1.427; --lk-k-rows: 1.331; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nt:checked):has(#c-general:checked) body { page: lk-trb-nt-general; }
@page lk-trb-nt-general { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Northern Territory, general pathway"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nt:checked):has(#c-renting:checked) { --lk-k-wide: 1.17; --lk-k-narrow: 1.407; --lk-k-rows: 1.299; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nt:checked):has(#c-renting:checked) body { page: lk-trb-nt-renting; }
@page lk-trb-nt-renting { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Northern Territory, with notes for renting"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nt:checked):has(#c-money:checked) { --lk-k-wide: 1.515; --lk-k-narrow: 1.299; --lk-k-rows: 1.106; } /* three sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nt:checked):has(#c-money:checked) body { page: lk-trb-nt-money; }
@page lk-trb-nt-money { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Northern Territory, with notes for money or goods"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nt:checked):has(#c-guardianship:checked) { --lk-k-wide: 1.17; --lk-k-narrow: 1.419; --lk-k-rows: 1.323; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nt:checked):has(#c-guardianship:checked) body { page: lk-trb-nt-guardianship; }
@page lk-trb-nt-guardianship { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Northern Territory, with notes for adult guardianship"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nt:checked):has(#c-government:checked) { --lk-k-wide: 1.122; --lk-k-narrow: 1.363; --lk-k-rows: 1.247; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nt:checked):has(#c-government:checked) body { page: lk-trb-nt-government; }
@page lk-trb-nt-government { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Northern Territory, with notes for a government decision"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.trb):has(#st-nt:checked):has(#c-discrimination:checked) { --lk-k-wide: 1.142; --lk-k-narrow: 1.299; --lk-k-rows: 1.178; } /* two sheets landscape, two sheets portrait, two sheets landscape in Safari, prints portrait */
:root:has(main.trb):has(#st-nt:checked):has(#c-discrimination:checked) body { page: lk-trb-nt-discrimination; }
@page lk-trb-nt-discrimination { size: portrait; @top-left { content: "LightKey · Going to a Tribunal · Northern Territory, with notes for discrimination"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-cth:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.519; } /* two sheets landscape, two sheets portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-cth:checked) body { page: lk-foi-cth; }
@page lk-foi-cth { size: portrait; @top-left { content: "LightKey · Making an FOI Request · Federal government"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-vic:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.085; } /* two sheets landscape, one sheet portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-vic:checked) body { page: lk-foi-vic; }
@page lk-foi-vic { size: portrait; @top-left { content: "LightKey · Making an FOI Request · Victoria"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-nsw:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.519; } /* two sheets landscape, two sheets portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-nsw:checked) body { page: lk-foi-nsw; }
@page lk-foi-nsw { size: portrait; @top-left { content: "LightKey · Making an FOI Request · New South Wales"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-qld:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.519; } /* two sheets landscape, two sheets portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-qld:checked) body { page: lk-foi-qld; }
@page lk-foi-qld { size: portrait; @top-left { content: "LightKey · Making an FOI Request · Queensland"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-wa:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.085; } /* two sheets landscape, one sheet portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-wa:checked) body { page: lk-foi-wa; }
@page lk-foi-wa { size: portrait; @top-left { content: "LightKey · Making an FOI Request · Western Australia"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-sa:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.08; } /* two sheets landscape, one sheet portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-sa:checked) body { page: lk-foi-sa; }
@page lk-foi-sa { size: portrait; @top-left { content: "LightKey · Making an FOI Request · South Australia"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-tas:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.519; } /* two sheets landscape, two sheets portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-tas:checked) body { page: lk-foi-tas; }
@page lk-foi-tas { size: portrait; @top-left { content: "LightKey · Making an FOI Request · Tasmania"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-act:checked) { --lk-k-wide: 1.415; --lk-k-narrow: 1.519; } /* two sheets landscape, two sheets portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-act:checked) body { page: lk-foi-act; }
@page lk-foi-act { size: portrait; @top-left { content: "LightKey · Making an FOI Request · Australian Capital Territory"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.jx:not(.rv)):has(#jx-nt:checked) { --lk-k-wide: 1.391; --lk-k-narrow: 1.08; } /* two sheets landscape, one sheet portrait, prints portrait */
:root:has(main.jx:not(.rv)):has(#jx-nt:checked) body { page: lk-foi-nt; }
@page lk-foi-nt { size: portrait; @top-left { content: "LightKey · Making an FOI Request · Northern Territory"; } @bottom-right { content: "Page " counter(page) " of " counter(pages); } }
:root:has(main.rv):has(#jx-cth:checked) { --lk-k-wide: 1.09; --lk-k-narrow: 1.103; } /* one sheet landscape, one sheet portrait, prints portrait */
:root:has(main.rv):has(#jx-cth:checked) body { page: lk-rv-cth; }
@page lk-rv-cth { size: portrait; @top-left { content: "LightKey · Challenging an FOI Decision · Federal government"; } }
:root:has(main.rv):has(#jx-vic:checked) { --lk-k-wide: 1.134; --lk-k-narrow: 1.096; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-vic:checked) body { page: lk-rv-vic; }
@page lk-rv-vic { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · Victoria"; } }
:root:has(main.rv):has(#jx-nsw:checked) { --lk-k-wide: 1.116; --lk-k-narrow: 1.103; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-nsw:checked) body { page: lk-rv-nsw; }
@page lk-rv-nsw { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · New South Wales"; } }
:root:has(main.rv):has(#jx-qld:checked) { --lk-k-wide: 1.134; --lk-k-narrow: 1.103; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-qld:checked) body { page: lk-rv-qld; }
@page lk-rv-qld { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · Queensland"; } }
:root:has(main.rv):has(#jx-wa:checked) { --lk-k-wide: 1.144; --lk-k-narrow: 1.103; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-wa:checked) body { page: lk-rv-wa; }
@page lk-rv-wa { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · Western Australia"; } }
:root:has(main.rv):has(#jx-sa:checked) { --lk-k-wide: 1.116; --lk-k-narrow: 1.103; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-sa:checked) body { page: lk-rv-sa; }
@page lk-rv-sa { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · South Australia"; } }
:root:has(main.rv):has(#jx-tas:checked) { --lk-k-wide: 1.106; --lk-k-narrow: 1.103; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-tas:checked) body { page: lk-rv-tas; }
@page lk-rv-tas { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · Tasmania"; } }
:root:has(main.rv):has(#jx-act:checked) { --lk-k-wide: 1.144; --lk-k-narrow: 1.103; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-act:checked) body { page: lk-rv-act; }
@page lk-rv-act { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · Australian Capital Territory"; } }
:root:has(main.rv):has(#jx-nt:checked) { --lk-k-wide: 1.121; --lk-k-narrow: 1.075; } /* one sheet landscape, one sheet portrait */
:root:has(main.rv):has(#jx-nt:checked) body { page: lk-rv-nt; }
@page lk-rv-nt { size: landscape; @top-left { content: "LightKey · Challenging an FOI Decision · Northern Territory"; } }
/* print-scale:end */
/* Where to go next is the point of these lines, so on paper they carry the address */
:root .trb .trb-route a[href]::after { content: " (" attr(href) ")"; display: inline; font: inherit; font-weight: 400; overflow-wrap: anywhere; }
:root .lk-print-head__where:has(.lk-print-head__url) { white-space: normal; overflow-wrap: anywhere; }
