/* ============================================================
   Assurance Center — SH Professional Services Ltd
   tlam.sh-proserv.co.uk
   Visual language aligned to tlam.co.uk: clean corporate sans,
   navy/graphite palette, photography-led hero, image card grids.
   ============================================================ */

:root {
  /* ------------------------------------------------------------------
     Palette sampled directly from the Tlam hero photograph
     (City of London, golden hour). Every value contrast-checked.
       petrol-teal glass  #2E5E58   ->  --accent
       golden-hour stone  #A46C2E   ->  --gold
       slate-blue sky     #4C678F   ->  --slate
     ------------------------------------------------------------------ */
  --white:       #FFFFFF;
  --page:        #FFFFFF;
  --mist:        #F4F6F6;
  --mist-2:      #E8ECEC;
  --ink:         #16201F;
  --body:        #47514F;
  --muted:       #6E7876;
  --line:        #DFE4E3;
  --line-2:      #C7CFCE;
  --accent:      #2A5D57;
  --accent-2:    #37776F;
  --accent-wash: #E9F1EF;
  --gold:        #A46C2E;
  --gold-ink:    #7E5423;
  --gold-light:  #C89050;
  --slate:       #4C678F;

  --maxw: 1240px;
  --readw: 780px;
  --radius: 6px;
  --radius-lg: 10px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Instrument Sans", "Inter", -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(22,32,31,.05);
  --shadow:    0 2px 6px rgba(22,32,31,.06), 0 12px 32px rgba(22,32,31,.08);
  --shadow-lg: 0 8px 20px rgba(22,32,31,.10), 0 24px 60px rgba(22,32,31,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -.018em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent-2); z-index: 200; transition: width .1s linear;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 150;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 72px;
}
/* Brand lockup — dark logo on the light header, reversed on dark surfaces */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img {
  /* logo aspect is 1000x402 (2.49:1); explicit box + contain so a
     replacement logo of any ratio still fits without distortion */
  height: 40px; width: 100px; object-fit: contain; object-position: left center;
  display: block; transition: opacity .18s ease;
}
.brand:hover img { opacity: .72; }

.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -.02em; color: var(--ink); white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .90rem; font-weight: 500; color: var(--body);
  padding: 9px 15px; border-radius: var(--radius); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; background: var(--accent-wash); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--ink);
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  background: var(--ink) center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,26,25,.90) 0%, rgba(16,26,25,.72) 45%, rgba(16,26,25,.38) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 96px 32px; width: 100%;
}
.hero__eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(200,144,80,.40); border-radius: 100px;
  padding: 6px 14px; margin-bottom: 26px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.03;
  font-weight: 700; letter-spacing: -.03em; margin: 0 0 22px; max-width: 16ch;
}
.hero p {
  color: #D3DAE2; font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 56ch; margin: 0 0 34px; line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-size: .93rem; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; text-decoration: none;
}
.btn--primary { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.btn--primary:hover { background: #43897F; border-color: #43897F; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.10); color: #fff; border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-ink); margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.14;
  font-weight: 700; margin: 0 0 18px; max-width: 22ch;
}
.section__lead { max-width: 62ch; font-size: 1.04rem; margin: 0 0 44px; color: var(--body); }
.prose { max-width: var(--readw); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ============ CARD GRID ============ */
.cards { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card__media {
  aspect-ratio: 16 / 9; background: var(--ink) center/cover no-repeat; position: relative;
}
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,26,25,.15) 0%, rgba(16,26,25,.55) 100%);
}
.card__tag {
  position: absolute; z-index: 2; left: 20px; bottom: 18px;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: rgba(42,93,87,.88); padding: 5px 12px; border-radius: 100px;
}
.card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.32rem; font-weight: 700; margin: 0 0 12px; line-height: 1.25; }
.card__body p { margin: 0 0 22px; font-size: .97rem; }
.card__cta {
  margin-top: auto; font-weight: 600; font-size: .93rem;
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
  transition: gap .2s ease, color .2s ease;
}
.card:hover .card__cta { color: var(--accent-2); gap: 12px; }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat__n {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px;
}
.stat p { margin: 0; font-size: .95rem; }

/* ============ SPLIT ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: var(--mist-2) center/cover no-repeat; box-shadow: var(--shadow);
}

/* ============ DOCUMENT PAGES ============ */
.pagehead { background: var(--ink); color: #fff; padding: 66px 0 60px; }
.pagehead .eyebrow { color: var(--gold-light); }
.pagehead h1 {
  color: #fff; font-size: clamp(2.05rem, 4.6vw, 3.1rem);
  font-weight: 700; line-height: 1.06; margin: 0 0 18px; max-width: 20ch;
}
.pagehead p { color: #C3CCCA; max-width: 62ch; margin: 0 0 28px; }
.docmeta {
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  font-size: .84rem; color: #9AA5A3;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
}
.docmeta b { color: #fff; font-weight: 600; }
.docmeta .k {
  display: block; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: #8A9593; margin-bottom: 3px;
}

.shell {
  max-width: var(--maxw); margin: 0 auto; padding: 46px 32px 90px;
  display: grid; grid-template-columns: 258px 1fr; gap: 56px; align-items: start;
}
/* Single-column document view, matching the original platform agreement page:
   the collapsed accordion itself acts as the table of contents. */
.shell--single { display: block; max-width: 940px; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin: 0 0 18px;
}
.toolbar__search { position: relative; flex: 1 1 280px; }
.toolbar__search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted);
}
.toolbar__search input {
  width: 100%; font-family: var(--font); font-size: .9rem; color: var(--ink);
  padding: 10px 12px 10px 37px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: #fff;
}
.toolbar__search input:focus {
  outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-wash);
}
.toolbar__btns { display: flex; gap: 8px; flex: 0 0 auto; }
.rail { position: sticky; top: 92px; }
.rail__label {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.railsearch { position: relative; margin-bottom: 14px; }
.railsearch input {
  width: 100%; font-family: var(--font); font-size: .88rem; color: var(--ink);
  padding: 10px 12px 10px 36px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: #fff;
}
.railsearch input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-wash); }
.railsearch svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.rail__list {
  list-style: none; margin: 0; padding: 0;
  max-height: 52vh; overflow-y: auto; overscroll-behavior: contain;
}
.rail__list a {
  display: flex; gap: 10px; align-items: baseline;
  font-size: .845rem; line-height: 1.35; color: var(--body);
  padding: 8px 10px; border-radius: var(--radius);
  border-left: 2px solid transparent;
}
.rail__list a:hover { background: var(--mist); color: var(--ink); }
.rail__list a.is-current {
  background: var(--accent-wash); color: var(--accent);
  border-left-color: var(--accent-2); font-weight: 600;
}
.rail__list .n { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 20px; font-weight: 600; }
.rail__list a.is-current .n { color: var(--accent); }
.rail__list li.is-hidden { display: none; }

.rail__tools { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-btn {
  flex: 1; font-family: var(--font); font-size: .78rem; font-weight: 600;
  color: var(--body); background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 8px 6px; cursor: pointer; transition: all .15s ease;
}
.tool-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.doc { min-width: 0; }

.preamble {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 38px; margin-bottom: 34px;
}
.preamble h2 {
  font-size: .74rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.preamble h2:not(:first-child) { margin-top: 30px; }
.preamble p { margin: 0 0 14px; }
.preamble p:last-child { margin-bottom: 0; }
.preamble strong { color: var(--ink); font-weight: 600; }
.bg-list { margin: 0; padding: 0; list-style: none; }
.bg-list li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.bg-list li:last-child { margin-bottom: 0; }
.bg-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-2);
}

/* ============ COLLAPSIBLE CLAUSE TABS ============ */
/* Built on native <details>/<summary>: these open and close with NO
   JavaScript. app.js only adds search, expand-all and deep links. */

.clauses {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}

.clause {
  background: #fff;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.clause[open] { background: #fff; }
.clause.is-hidden { display: none; }

/* Kill the native disclosure triangle in every engine */
.clause__head { list-style: none; }
.clause__head::-webkit-details-marker { display: none; }
.clause__head::marker { content: ""; }

.clause__head {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr 24px; align-items: baseline; gap: 10px;
  padding: 15px 14px; background: #fff; border: 0; color: inherit;
  font-family: var(--font); border-radius: 0;
  transition: background .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.clause__head:hover { background: var(--mist); }
.clause[open] .clause__head { background: var(--accent-wash); }

.clause__num {
  color: var(--accent); font-weight: 700; font-size: 1.02rem;
  font-variant-numeric: tabular-nums; min-width: 1.6em;
}
.clause__num::after { content: "."; }
.clause[open] .clause__num { color: var(--accent-2); }

.clause__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); line-height: 1.4; letter-spacing: -.008em;
}

/* + / - indicator */
.clause__ind {
  justify-self: end; align-self: center; position: relative;
  width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: none;
  transition: all .2s ease;
}
.clause__ind::before, .clause__ind::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--accent); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .2s ease, background .2s ease;
}
.clause__ind::before { width: 11px; height: 1.8px; }
.clause__ind::after  { width: 1.8px; height: 11px; }
.clause__head:hover .clause__ind::before, .clause__head:hover .clause__ind::after { background: var(--accent-2); }
.clause[open] .clause__ind::before { background: var(--accent-2); }

.clause[open] .clause__ind::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

/* Reveal animation on open — no height maths required */
.clause__panel { overflow: hidden; }
.clause[open] .clause__panel { animation: clauseReveal .3s cubic-bezier(.4,0,.2,1); }
@keyframes clauseReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .clause[open] .clause__panel { animation: none; }
}

.clause__inner {
  padding: 4px 20px 24px 44px; max-width: var(--readw);
  border-top: 0;
}
.clause__inner > p { margin: 0 0 15px; }
.clause__inner > p:last-child { margin-bottom: 0; }
.clause__inner .cl {
  font-weight: 700; font-size: .86em; color: var(--accent);
  margin-right: 9px; font-variant-numeric: tabular-nums;
}
.clause__inner strong { color: var(--ink); font-weight: 600; }

.sublist { list-style: none; margin: 6px 0 18px; padding: 0; }
.sublist > li { position: relative; padding-left: 42px; margin-bottom: 12px; }
.sublist > li > .mk {
  position: absolute; left: 0; top: 0;
  font-weight: 700; font-size: .84em; color: var(--accent); font-variant-numeric: tabular-nums;
}

.noresults {
  display: none; padding: 40px 24px; text-align: center;
  color: var(--muted); background: var(--mist);
  border: 1px dashed var(--line-2); border-radius: var(--radius-lg);
}
.noresults.is-shown { display: block; }

/* ============ SCAFFOLD STATES ============ */
.notice {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--accent-wash); border: 1px solid #CFE0DC;
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 30px;
}
.notice__ic { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.notice p { margin: 0; font-size: .96em; }
.notice strong { color: var(--ink); }
.soon {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); background: #F8F1E8;
  border: 1px solid #EBDCC6; border-radius: 100px; padding: 4px 12px;
}
.placeholder { color: var(--muted); margin: 16px 0 0; }
.placeholder-rows { margin-top: 18px; }
.ph-row { height: 10px; border-radius: 3px; background: var(--mist-2); margin-bottom: 12px; }
.ph-row.w1 { width: 92%; } .ph-row.w2 { width: 74%; } .ph-row.w3 { width: 84%; }

/* ============ BACK TO TOP ============ */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 120;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transform: translateY(8px); transition: all .25s ease;
}
.totop.is-shown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop:hover { background: var(--accent); }

/* ============ CTA + FOOTER ============ */
.ctaband { background: var(--accent); color: #fff; padding: 64px 0; text-align: center; }
.ctaband h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 auto 14px; max-width: 24ch; }
.ctaband p { color: #CFE0DC; margin: 0 auto 28px; max-width: 52ch; }

.site-footer { background: var(--ink); color: #9AA5A3; padding: 62px 0 0; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
}
.site-footer h4 {
  font-size: .70rem; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: #818B89; margin: 0 0 16px;
}
.foot-brand__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.foot-logo { width: 260px; max-width: 70%; height: auto; object-fit: contain; display: block; }
.foot-brand p { margin: 14px 0 0; font-size: .92rem; line-height: 1.65; max-width: 36ch; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 11px; font-size: .90rem; }
.foot-links a { color: #9AA5A3; }
.foot-links a:hover { color: #fff; }
.social { display: flex; gap: 15px; margin-top: 20px; }
.social a { color: #9AA5A3; display: inline-flex; }
.social a:hover { color: #fff; }
.foot-base { border-top: 1px solid #283634; }
.foot-base__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 32px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .78rem; color: #818B89;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .shell { grid-template-columns: 220px 1fr; gap: 38px; }
}
@media (max-width: 900px) {
  .wrap, .site-header__inner, .hero__inner, .shell,
  .site-footer__inner, .foot-base__inner { padding-left: 22px; padding-right: 22px; }
  .shell { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .shell--single { padding-top: 30px; }
  .toolbar { gap: 10px; }
  .toolbar__btns { width: 100%; }
  .toolbar__btns .tool-btn { flex: 1; }
  .rail {
    position: static; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 18px;
  }
  .rail__list { max-height: 260px; }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }

  .brand img { height: 34px; width: 85px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 58px 0; }
  .hero { min-height: 460px; }
  .hero__inner { padding: 72px 22px; }
  .preamble { padding: 24px 20px; }
  .clause__head { grid-template-columns: auto 1fr 20px; gap: 8px; padding: 14px 8px; }
  .clause__num { font-size: .95rem; }
  .clause__title { font-size: .97rem; }
  .clause__inner { padding: 2px 8px 20px 28px; }
  .sublist > li { padding-left: 34px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .brand img { height: 30px; width: 75px; }
  .foot-logo { width: 220px; }
  .totop { right: 16px; bottom: 16px; }
}

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }
.clause__head:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -3px; }

/* ============ PRINT ============ */
@media print {
  .site-header, .rail, .progress, .totop, .ctaband, .site-footer, .nav-toggle { display: none !important; }
  .shell { grid-template-columns: 1fr; padding: 0; }
  
  .clause { border: 0; page-break-inside: avoid; }
  .clause__panel { display: block !important; }
  .clause__ind { display: none; }
  .pagehead { background: none; color: #000; padding: 0 0 20px; }
  .pagehead h1, .docmeta b { color: #000; }
  .foot-logo { display: none; }
}
