/* ==========================================================================
   DIRECTION C – "Practitioner"
   Built for working across provisions rather than reading one. A slim icon
   rail for contents, the provision in the main pane, and a companion pane
   that catches every cross-reference you click, so Article 6(4) and
   Article 23(1) can sit side by side without either losing its place.
   On a phone the companion becomes a bottom sheet.
   ========================================================================== */
@font-face{font-family:'IBM Plex Serif';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-serif-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Serif';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-serif-latin-400-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Serif';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/ibm-plex-serif-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Serif';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/ibm-plex-serif-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Serif';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-serif-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Serif';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/ibm-plex-serif-latin-ext-400-italic.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Serif';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/ibm-plex-serif-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* Between 1024 and 1500px the contents rail folds away by default so the
   provision and its companion both keep a readable measure; the icon rail
   brings it back. Below 1024px the rail is a drawer, so this must not apply. */
@media (min-width:1024px) and (max-width:1499px){
  body:not(.rail-forced) .rail{display:none}
}

:root{
  --serif:'IBM Plex Serif',Georgia,'Times New Roman',serif;
  --header-h:48px;
  --icon-rail:52px;
  --rail-w:19rem;
  --companion-w:clamp(24rem,34%,32rem);
  --measure:62ch;
}

/* ---------- bar ---------------------------------------------------------- */
.site-bar{
  position:sticky;top:0;z-index:200;height:var(--header-h);
  display:flex;align-items:center;gap:.6rem;padding:0 .6rem;
  background:var(--chrome);color:var(--chrome-ink);
  border-bottom:1px solid var(--chrome-line);
}
:root[data-theme="dark"] .site-bar,:root:not([data-theme="light"]) .site-bar{border-bottom-color:var(--line)}
.brand{display:flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--chrome-ink);flex-shrink:0;padding-left:.2rem}
.brand-mark{width:24px;height:24px}
.brand-logo{width:28px;height:28px;border-radius:4px;object-fit:contain}
@media (min-width:1100px){.brand-logo{width:32px;height:32px}}
.rail-foot{margin-top:auto;padding:.9rem 1rem 1rem;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:.45rem}
.rail-foot a{font-family:var(--ui);font-size:.8rem;color:var(--ink-2);text-decoration:none}
.rail-foot a:hover{color:var(--accent);text-decoration:underline}
.brand-name{font-size:.86rem;font-weight:700;white-space:nowrap}
.brand-badge{
  font-size:.6rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--teal-300);background:rgba(30,202,187,.14);
  border:1px solid rgba(30,202,187,.3);border-radius:var(--r-sm);padding:.1rem .35rem;
}
.bar-crumb{
  display:flex;align-items:center;gap:.35rem;min-width:0;
  font-size:.78rem;color:var(--chrome-ink-dim);
  padding-left:.7rem;margin-left:.2rem;border-left:1px solid var(--chrome-line);
}
.bar-crumb .breadcrumb{margin:0;font-size:.78rem;color:var(--chrome-ink-dim);flex-wrap:nowrap;overflow:hidden}
.bar-crumb .breadcrumb a{color:var(--chrome-ink-dim)}
.bar-crumb .breadcrumb a:hover{color:var(--chrome-ink);border-bottom-color:var(--teal-400)}
.bar-crumb .breadcrumb .sep{color:var(--chrome-line)}
.bar-search{flex:0 1 22rem;margin-left:auto}
.bar-tools{display:flex;align-items:center;gap:.15rem;flex-shrink:0}
.bar-firm{display:flex;align-items:center;margin-left:.3rem;padding-left:.65rem;border-left:1px solid var(--chrome-line)}
.bar-firm .wordmark{font-size:.78rem}
.menu-btn{display:none}

/* ---------- shell: icon rail | contents | main | companion --------------- */
.shell{display:flex;align-items:stretch;min-height:calc(100vh - var(--header-h))}

.icon-rail{
  flex:0 0 var(--icon-rail);width:var(--icon-rail);
  position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));
  background:var(--surface);border-right:1px solid var(--line);
  display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.5rem 0;
}
.icon-rail button,.icon-rail a{
  width:38px;height:38px;border-radius:var(--r);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--ink-3);text-decoration:none;
}
.icon-rail button:hover,.icon-rail a:hover{background:var(--surface-sunken);color:var(--ink)}
.icon-rail button[aria-expanded="true"]{background:var(--accent-wash);color:var(--accent-deep)}
.icon-rail .spacer{margin-top:auto}

.rail{
  flex:0 0 var(--rail-w);width:var(--rail-w);
  position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));
  overflow-y:auto;overscroll-behavior:contain;
  background:var(--surface);border-right:1px solid var(--line);
}
@media (min-width:1024px){ body.rail-collapsed .rail{display:none} }
.rail-head{padding:.8rem .9rem .45rem;font-size:.64rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3)}

.col-wrap{flex:1;min-width:0;display:flex;justify-content:center;padding:1.75rem 2rem 3.5rem}
.col{width:100%;max-width:var(--measure)}

.provision-head{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}
.provision-eyebrow{
  display:inline-flex;align-items:center;gap:.4rem;margin-bottom:.5rem;
  font-family:var(--ui);font-size:.64rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--accent-deep);
  background:var(--accent-wash);border:1px solid var(--accent-edge);
  border-radius:var(--r-sm);padding:.18rem .45rem;
}
.provision-eyebrow.is-recital{color:var(--recital);background:var(--recital-wash);border-color:var(--recital-edge)}
.provision-eyebrow.is-annex{color:var(--annex);background:var(--annex-wash);border-color:var(--annex-edge)}
.provision-num{font-family:var(--ui);font-size:clamp(1.55rem,1.2rem + 1.2vw,2rem);font-weight:700;letter-spacing:-.02em;line-height:1.12;color:var(--ink)}
.provision-title{font-family:var(--serif);font-size:1.08rem;font-weight:400;color:var(--ink-2);line-height:1.42;margin-top:.35rem}
.provision-ref{font-family:var(--ui);font-size:.78rem;color:var(--ink-3);margin-top:.45rem}
.provision-title-block{margin:1.35rem 0}
.provision-title-rule{border:0;border-top:1px solid var(--line);margin:.55rem 0}
.provision-title-label{font-family:var(--ui);font-size:.8rem;color:var(--ink-3);margin:0}
.provision-title-heading{font-family:var(--ui);font-size:1.2rem;font-weight:700;color:var(--ink);margin:.15rem 0 .4rem;line-height:1.3}
.provision-unofficial-note{font-family:var(--ui);margin-top:1.2rem;font-size:.77rem;color:var(--ink-3)}
.provision-body{font-size:calc(1.02rem * var(--step));line-height:1.68}

/* Cross-references route to the companion pane, so mark them as such */
.col a.xref[href*="/article-"],.col a.xref[href*="/recital-"],.col a.xref[href*="/annex-"]{cursor:alias}

/* ---------- companion pane ----------------------------------------------- */
.companion{
  flex:0 0 var(--companion-w);width:var(--companion-w);
  position:sticky;top:var(--header-h);height:calc(100vh - var(--header-h));
  display:flex;flex-direction:column;
  background:var(--surface-2);border-left:1px solid var(--line);
}
.companion-head{
  display:flex;align-items:flex-start;gap:.6rem;
  padding:.75rem .9rem;border-bottom:1px solid var(--line);flex-shrink:0;
  background:var(--surface);
}
.companion-title{flex:1;min-width:0;font-family:var(--ui)}
.cp-num{display:block;font-size:.8rem;font-weight:700;color:var(--accent-deep)}
.cp-num.is-recital{color:var(--recital)}
.cp-num.is-annex{color:var(--annex)}
.cp-sub{display:block;font-size:.76rem;color:var(--ink-3);line-height:1.35;margin-top:.1rem}
.companion-slot{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:1rem .95rem 2rem}
.companion-body{font-size:.94rem;line-height:1.62}
.companion-body .article-para{margin-bottom:.9em}
.cp-open{margin-top:1.25rem;padding-top:.75rem;border-top:1px solid var(--line);font-family:var(--ui);font-size:.8rem}
.cp-open a{color:var(--link);font-weight:600;text-decoration:none}
.cp-open a:hover{text-decoration:underline}
.cp-context{font-family:var(--ui);padding:.25rem 0}
.cp-context .rail-title{
  font-size:.64rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3);margin:0 0 .55rem;padding-bottom:.4rem;border-bottom:1px solid var(--line);
}
.cp-context .rail-block+.rail-block{margin-top:1.6rem}
.cp-context .related-provisions{margin:0;padding:0;border:0}
.cp-context .related-provisions-heading{display:none}
.cp-back{
  display:inline-flex;align-items:center;gap:.35rem;min-height:32px;
  font-family:var(--ui);font-size:.76rem;font-weight:600;color:var(--ink-3);
  padding:.2rem .5rem;margin:-.2rem 0 .6rem -.5rem;border-radius:var(--r-sm);
}
.cp-back:hover{background:var(--surface-sunken);color:var(--ink)}
.companion-empty{padding:2.5rem 1.25rem;text-align:center;font-family:var(--ui)}
.companion-empty svg{margin:0 auto .9rem;color:var(--line-strong)}
.companion-empty p{font-size:.85rem;color:var(--ink-3);line-height:1.6;max-width:22rem;margin:0 auto}
.companion-empty kbd{
  font-family:var(--ui);font-size:.72rem;font-weight:600;color:var(--ink-2);
  border:1px solid var(--line-strong);border-radius:var(--r-sm);padding:.1rem .3rem;background:var(--surface);
}
.companion.has-content .companion-empty{display:none}
.companion:not(.has-content) .companion-head{visibility:hidden}

/* ---------- index -------------------------------------------------------- */
.hero{
  background:var(--surface);border:1px solid var(--line);
  border-left:4px solid var(--accent-bright);
  border-radius:var(--r);padding:1.5rem 1.6rem;margin-bottom:1.5rem;
}
.hero-id{font-family:var(--ui);font-size:.66rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-deep)}
.hero h1{font-family:var(--ui);font-size:clamp(1.7rem,1.3rem + 1.6vw,2.3rem);font-weight:700;letter-spacing:-.025em;margin:.35rem 0 .5rem;line-height:1.08;color:var(--ink)}
.hero-sub{font-family:var(--serif);font-size:.98rem;line-height:1.6;color:var(--ink-2)}
.hero-stats{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.25rem}
.hero-stat{
  display:flex;align-items:baseline;gap:.35rem;
  background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-sm);
  padding:.3rem .6rem;font-family:var(--ui);
}
.hero-stat b{font-size:.92rem;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.hero-stat-link{cursor:pointer;font:inherit;text-align:left;transition:border-color .12s,background .12s}
.hero-stat-link:hover{border-color:var(--recital-edge);background:var(--recital-wash)}
.hero-stat-link:hover b{color:var(--recital)}

.hero-stat span{font-size:.72rem;color:var(--ink-3)}
.hero-by{margin-top:1.1rem;font-family:var(--ui);font-size:.8rem;color:var(--ink-3)}
.hero-by a{color:var(--recital);font-weight:600;text-underline-offset:2px}

.index-section{font-family:var(--ui);font-size:.66rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--ink-3);margin:2rem 0 .75rem}
.ch-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);margin-bottom:.5rem;overflow:hidden;scroll-margin-top:calc(var(--header-h) + 1rem)}
.ch-card-head{display:flex;align-items:baseline;gap:.7rem;padding:.6rem .9rem;background:var(--surface-2);border-bottom:1px solid var(--line)}
.ch-label{font-family:var(--ui);font-size:.63rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--accent-deep);flex:0 0 auto}
.ch-title{font-family:var(--ui);font-size:.88rem;font-weight:600;color:var(--ink);line-height:1.35}
.ch-card-body{padding:.6rem .9rem .75rem}
.sec-title{font-family:var(--ui);font-size:.7rem;font-weight:600;color:var(--ink-3);margin:.7rem 0 .35rem}
.sec-title:first-child{margin-top:0}
.pills{display:flex;flex-wrap:wrap;gap:.3rem}
.pill{
  font-family:var(--ui);font-size:.76rem;font-weight:600;
  min-height:30px;display:inline-flex;align-items:center;padding:.2rem .5rem;
  border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surface-2);
  color:var(--link);text-decoration:none;font-variant-numeric:tabular-nums;
}
.pill:hover{background:var(--accent-wash);border-color:var(--accent-edge);color:var(--accent-deep)}
.annex-card{display:flex;align-items:baseline;gap:.7rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);margin-bottom:.35rem;padding:.55rem .9rem;text-decoration:none}
.annex-card:hover{border-color:var(--annex-edge);background:var(--annex-wash)}
.annex-card .ch-label{color:var(--annex)}
.annex-card .ch-title{font-weight:500}
.rec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:.15rem .5rem}
.rec-item{display:flex;gap:.55rem;padding:.4rem .5rem;border-radius:var(--r-sm);text-decoration:none;font-family:var(--ui);font-size:.8rem;line-height:1.4;color:var(--ink-2)}
.rec-item:hover{background:var(--recital-wash);color:var(--recital)}
.rec-item b{flex:0 0 2.4rem;color:var(--recital);font-weight:700;font-variant-numeric:tabular-nums}

.scrim{position:fixed;inset:0;z-index:190;background:rgba(12,15,32,.5)}
.scrim[hidden]{display:none}

/* ---------- narrower: companion becomes a sheet -------------------------- */
@media (max-width:1099px){
  /* on phones the contents sheet is long: keep the site links at the top, under the heading */
  .rail{display:flex;flex-direction:column}
  .rail-head{order:0}.rail-foot{order:1;margin-top:0;border-top:none;border-bottom:1px solid var(--line);flex-direction:row;flex-wrap:wrap;gap:.4rem 1.2rem;padding:.55rem 1rem .7rem}[data-toc]{order:2}

  .companion{
    position:fixed;left:0;right:0;bottom:0;top:auto;z-index:200;
    width:auto;height:min(72vh,34rem);
    border-left:0;border-top:1px solid var(--line-strong);
    border-radius:var(--r-lg) var(--r-lg) 0 0;
    box-shadow:var(--shadow-3);
    transform:translateY(101%);transition:transform .24s cubic-bezier(.32,.72,0,1);
  }
  .companion.open{transform:none}
  .companion::before{
    content:'';position:absolute;top:.45rem;left:50%;transform:translateX(-50%);
    width:2.5rem;height:4px;border-radius:2px;background:var(--line-strong);
  }
  .companion-head{padding-top:1rem}
}
@media (prefers-reduced-motion:reduce){.companion{transition:none}}

@media (max-width:1023px){
  .icon-rail{display:none}
  .menu-btn{display:inline-flex}
  .bar-crumb{display:none}
  .rail{
    position:fixed;top:var(--header-h);left:0;bottom:0;z-index:210;
    width:min(88vw,21rem);height:auto;
    transform:translateX(-101%);transition:transform .22s ease;box-shadow:var(--shadow-3);
  }
  .rail.open{transform:none}
  body.rail-collapsed .rail{display:block}
  body.drawer-open{overflow:hidden}
  .col-wrap{padding:1.35rem 1.1rem 3rem}
  .col{max-width:none}
}
@media (prefers-reduced-motion:reduce){.rail{transition:none}}

@media (max-width:759px){
  .bar-firm{display:none}
}
@media (max-width:640px){
  .brand-badge{display:none}
  .bar-search{flex:1}
  .col-wrap{padding:1.1rem .9rem 2.5rem}
  .provision-nav{grid-template-columns:1fr}
  .provision-nav a:nth-child(2){text-align:left}
  .provision-nav a:only-child:last-of-type{grid-column:1}
  .rec-grid{grid-template-columns:1fr}
  .ch-card-head{flex-direction:column;gap:.15rem}
}
.companion-hint{
  margin-top:1.75rem;padding-top:1rem;border-top:1px solid var(--line);
  font-family:var(--ui);font-size:.78rem;line-height:1.55;color:var(--ink-3);
}

/* recital pages: the heading already has a rule beneath it, so the unofficial-title block's own top rule would double it */
.provision-head + .provision-title-block > .provision-title-rule:first-child{display:none}
.provision-head + .provision-title-block > .provision-title-label{display:none}   /* repeats the heading's number */
.provision-head + .provision-title-block{margin-top:0}

/* closed drawers cast no shadow: when parked off screen their blur would otherwise show as a grey band at the edge */
@media (max-width:1099px){
  .rail:not(.open),.companion:not(.open){box-shadow:none}
}

/* usability audit, 23 September 2026 */
/* C1: related provisions live in the right-hand panel on desktop; the copy at the end of the text is for phones */
@media (min-width:1100px){#main > .related-provisions{display:none}}
/* A5: "2018 c. 12" keeps its lower-case chapter abbreviation inside upper-cased labels */
.nocaps{text-transform:none}
/* A7: recital titles are Digiphile's, not the legislator's */
.unofficial-tag{display:inline-block;vertical-align:.2em;margin-left:.55em;padding:.12em .5em;border:1px solid var(--line);border-radius:4px;
  font-family:var(--ui);font-size:.55em;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3);line-height:1.4;white-space:nowrap}
/* C9: a paragraph that begins with a sub-paragraph keeps its number on the same line ("1 (1) This Schedule…") */
.article-para.lead-sub > .article-para-id{float:left;margin-right:.45em;padding-top:.2em}
.article-para.lead-sub > .nested-para:first-of-type{margin-top:0}
/* B7 / C6: the two utility pages share one type system */
.links-body,.links-page .provision-body{font-family:var(--ui)}
.links-page .provision-head .provision-title,.links-page .provision-title{margin-bottom:0}
.links-page .links-intro{margin-top:1rem}
.links-section-title{font-family:var(--ui);font-size:.95rem;font-weight:700;color:var(--ink);margin:2rem 0 .8rem;padding-bottom:.4rem;border-bottom:1px solid var(--line)}
.other-law-head a{font-family:var(--ui)}
.other-law-meta{font-family:var(--ui);flex-direction:column;gap:.15rem}
.links-list .link-domain{font-size:.8em;color:var(--ink-3);margin-left:.4em;white-space:nowrap}
/* D1: headings promoted to second level keep their previous look */
h2.related-provisions-heading,h2.footnotes-heading{font-family:var(--ui);font-size:.68rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3)}
h2.links-heading{font-family:var(--ui)}
h2.annex-part-heading{font-family:var(--ui)}
/* C2: search count and filters */
.s-filters{display:flex;flex-wrap:wrap;gap:.4rem;padding:.6rem .9rem .2rem}
.s-chip{font-family:var(--ui);font-size:.78rem;font-weight:600;color:var(--ink-2);background:transparent;border:1px solid var(--line);border-radius:999px;padding:.22rem .7rem;cursor:pointer}
.s-chip span{color:var(--ink-3);font-weight:500;margin-left:.2rem}
.s-chip[aria-pressed="true"]{background:var(--accent-wash,rgba(30,202,187,.12));border-color:var(--accent,#1ecabb);color:var(--ink)}
.s-count{font-family:var(--ui);font-size:.78rem;color:var(--ink-3);margin:.2rem .9rem .4rem}
/* C3: part headings in the jump list */
.jump-n:empty{display:none}
/* C5: print identifies the law, the source and the date; screen-only furniture is hidden */
.print-only{display:none}
@media print{
  .print-only{display:block}
  .print-head{font-family:var(--ui);font-size:9pt;color:#444;border-bottom:1pt solid #999;padding-bottom:4pt;margin-bottom:10pt}
  .print-foot{font-family:var(--ui);font-size:8pt;color:#444;border-top:1pt solid #999;margin-top:14pt;padding-top:6pt}
  .print-foot p{margin:0 0 3pt}
  .related-provisions,.provision-eyebrow,.icon-rail{display:none!important}
}

/* the rail icons are the desktop route to Useful links and Other laws; the text links are for phones, where the rail is hidden */
@media (min-width:1024px){.rail-foot{display:none}}
.icon-rail a[aria-current="page"]{background:var(--accent-wash);color:var(--accent-deep)}

/* legislation.gov.uk's square brackets marking the extent of a textual amendment: editorial, so muted */
.amend-bracket{color:var(--ink-3);font-weight:400;font-family:var(--ui);margin:0 .06em}

/* chapter / part / section overview pages */
.grp-within{font-family:var(--ui);font-size:.85rem;color:var(--ink-3);margin:.35rem 0 0}
.grp-within a{color:inherit}
.grp-body h2.grp-sec{font-family:var(--ui);font-size:1rem;font-weight:700;color:var(--ink);margin:1.8rem 0 .6rem;padding-bottom:.35rem;border-bottom:1px solid var(--line)}
.grp-body h2.grp-sec a{color:inherit;text-decoration:none}
.grp-body h2.grp-sec a:hover{color:var(--accent-deep);text-decoration:underline}
.grp-list{list-style:none;margin:0;padding:0}
.grp-list li{padding:.7rem 0;border-bottom:1px solid var(--line)}
.grp-list li:last-child{border-bottom:none}
.grp-item{display:flex;gap:.6rem;align-items:baseline;text-decoration:none;color:var(--ink)}
.grp-num{font-family:var(--ui);font-weight:700;font-size:.9rem;color:var(--accent-deep);white-space:nowrap}
.grp-title{font-family:var(--ui);font-weight:600;font-size:.95rem}
.grp-item:hover .grp-title{text-decoration:underline}
.grp-open{margin:.25rem 0 0;font-size:.92rem;color:var(--ink-2);line-height:1.55}
.grp-jump{list-style:none;margin:0;padding:0}
.grp-jump li{margin:.35rem 0}
.grp-jump a{font-family:var(--ui);font-size:.85rem;color:var(--ink-2);text-decoration:none}
.grp-jump a:hover{color:var(--accent-deep);text-decoration:underline}
.ch-card-link{display:flex;flex-wrap:wrap;gap:.25rem .6rem;align-items:baseline;color:inherit;text-decoration:none}
.ch-card-link:hover .ch-title{text-decoration:underline}
.sec-title a{color:inherit;text-decoration:none}
.sec-title a:hover{text-decoration:underline}
.toc-overview{display:block;font-family:var(--ui);font-size:.8rem;font-weight:600;color:var(--accent-deep);padding:.35rem 1rem .35rem 1.1rem;text-decoration:none}
.toc-overview:hover{text-decoration:underline}
a.toc-sec-link{display:block;text-decoration:none;color:inherit}
a.toc-sec-link:hover{text-decoration:underline}
a.toc-overview[aria-current="page"],a.toc-sec-link[aria-current="page"]{color:var(--accent-deep);background:var(--accent-wash);border-left:3px solid var(--accent)}

/* paragraph links: in the margin beside the number on desktop, shown on hover or keyboard focus; after the number on phones */
.col .provision-body .article-para[id],.col .provision-body li[id]{position:relative}
.para-link{position:absolute;left:-1.55em;top:.28em;display:inline-flex;align-items:center;justify-content:center;width:1.3em;height:1.3em;
  padding:0;border:0;border-radius:4px;background:transparent;color:var(--ink-3);cursor:pointer;opacity:0;transition:opacity .12s,color .12s}
.article-para:hover > .article-para-id > .para-link,.article-para-id > .para-link:focus-visible,
li[id]:hover > .point-id > .para-link,.point-id > .para-link:focus-visible{opacity:1}
.para-link:hover{color:var(--accent-deep);background:var(--accent-wash)}
.para-link:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media (hover:none),(max-width:699px){.para-link{position:static;opacity:.55;margin-left:.2em;vertical-align:-.1em}}
.para-link-toast{position:fixed;left:50%;bottom:1.5rem;transform:translate(-50%,1rem);background:var(--ink,#1e2555);color:#fff;font-family:var(--ui);font-size:.85rem;
  padding:.5rem .9rem;border-radius:6px;box-shadow:0 6px 20px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:200}
.para-link-toast.show{opacity:1;transform:translate(-50%,0)}
@media print{.para-link,.para-link-toast{display:none!important}}

/* contents panel: the chapter's name opens its page; the arrow opens and closes the list */
.toc-head{display:flex;align-items:stretch}
.toc-head-link{flex:1;display:block;min-height:var(--tap);padding:.6rem .3rem .6rem .9rem;text-decoration:none;font-size:.78rem;font-weight:700;letter-spacing:.02em;color:var(--ink-2)}
.toc-head-link:hover{background:var(--surface-sunken);color:var(--ink)}
.toc-head-link:hover .g-title{text-decoration:underline}
.toc-head-link .g-label{display:block;font-size:.65rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--accent-deep)}
.toc-head-link .g-title{display:block;font-weight:600;color:var(--ink-2);margin-top:.1rem;line-height:1.35}
.toc-head-link[aria-current="page"]{background:var(--accent-wash);box-shadow:inset 3px 0 0 var(--accent)}
.toc-head .toc-btn.toc-chev{width:auto;flex:0 0 2.75rem;justify-content:center;padding:.6rem .5rem}
.toc-head .toc-btn.toc-chev .chev{margin-left:0}
/* a numbered point addressed in its own right (#p3, #section-A-p5, #part-II-p3) lands clear of the fixed header,
   as paragraphs, headings and footnotes already do */
.provision-body li[id]{scroll-margin-top:calc(var(--header-h) + 1.5rem)}
/* an annex or Schedule with nothing to list: no arrow, but the arrow's width is kept so every title lines up */
.toc-head .toc-chev-gap{flex:0 0 2.75rem}
/* contents filter: an annex or Schedule that matched only in its text says so, after its title */
.toc-head-link.by-text .g-title::after,.toc-head-link.by-text .g-label:only-child::after{content:'in text';margin-left:.45em;font-size:.64rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);vertical-align:.1em}

/* links to chapter and section pages: styled like links to another provision; they open the page directly */
a.xref-grp{color:var(--accent-deep);text-decoration:none;border-bottom:1px solid color-mix(in srgb,var(--accent-deep) 50%,transparent);padding-bottom:.04em}
a.xref-grp:hover,a.xref-grp:focus-visible{border-bottom-color:var(--accent-deep);background:var(--accent-wash)}

/* right-hand panel heading: a readable size for the provision's number and title */
.companion-title .cp-num{font-size:1.15rem;line-height:1.25}
.companion-title .cp-sub{font-size:.95rem;font-weight:600;color:var(--ink-2);line-height:1.4;margin-top:.2rem}
.companion-title .cp-sub .unofficial-tag{font-size:.62rem;vertical-align:.15em}
/* pill titles: recital and article pills show the provision's title after its number (a recital's is unofficial), shortened to fit; full title on hover */
a.xref-pill-recital[title]:not([title=""]),a.xref-pill-article[title]:not([title=""]){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.xref-pill-recital[title]:not([title=""])::after,a.xref-pill-article[title]:not([title=""])::after{content:" \00B7  " attr(title);font-weight:500}

/* right-hand panel: "Back to context" and "Open in the main viewing panel" above the loaded provision */
.cp-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.35rem .9rem;margin:0 0 .9rem;padding:.35rem 0 .6rem;border-bottom:1px solid var(--line);
  position:sticky;top:-1rem;z-index:2;background:var(--surface-2);box-shadow:0 -1rem 0 var(--surface-2)}   /* covers the panel's top padding while pinned */
.cp-bar .cp-back{margin:0 0 0 -.5rem}
.cp-bar .cp-open{margin:0;padding:0;border:0;font-size:.8rem}
.cp-bar .cp-open:only-child{margin-left:auto}

/* contents panel: entries inside an annex or Schedule; "In this Schedule" Part rows */
.toc-annex-item .n{min-width:2.4em}
.jump-group{margin:.7rem 0 .25rem;font-family:var(--ui);font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.jump-group:first-child{margin-top:0}
