@font-face {
  font-family: "Russo One";
  src: url("/assets/fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
body.repair {
  --bg:#f7f1e5; --surface:#fffaf1; --ink:#241a2b; --quiet:#514a53; --line:#c9bcc1;
  --inkline:#473649; --accent:#245b61; --dark:#183e45; --tint:#f9c162; --card:#fff8e9;
  --tray:#ed8658; --desk:#e3dfce; --warm-shadow:42,28,43;
  --violet:#2a1c32; --citrus:#ffc76b; --aqua:#91cdbe; --coral:#f39869;
  --display:"Russo One","Arial Black",Manrope,sans-serif;
}

/* The guide reads as the same publication above and below the illustrated jacket. */
.repair .mast { background:#f9f3e8; border-bottom:3px solid var(--ink); }
.repair .mast-inner { min-height:65px; }
.repair .mast .brand,.repair .footer-inner .brand { font:400 1.24rem/.93 var(--display); letter-spacing:-.035em; }
.repair .brand small { font:730 .65rem/1.2 Manrope,Arial,sans-serif; letter-spacing:.01em; }
.repair .brand .seal { height:36px; width:35px; background:var(--citrus); color:var(--ink); border:2px solid var(--ink); box-shadow:2px 2px var(--ink); transform:skew(-5deg); }
.repair .brand .seal svg { color:var(--ink); stroke-width:2.3; }
.repair .brand:hover .seal { transform:translate(-1px,-2px) rotate(-5deg); }
.repair .mast nav a { font-weight:800; }
.repair .mast nav a::after { height:3px; background:#a84733; }
.repair :focus-visible { outline:3px solid #197581; outline-offset:4px; }

/* Single H1 with live HTML lettering. The shaped elements echo a drafting square. */
.repair .poster { isolation:isolate; overflow:visible; background:var(--ink); }
.cover-stage {
  aspect-ratio:1920 / 819; max-width:2016px; margin:auto; overflow:hidden;
  position:relative; display:grid; place-items:center; isolation:isolate; container-type:inline-size;
  box-shadow:inset 0 0 0 4px var(--ink);
}
.repair .poster-art { z-index:-2; pointer-events:none; }
.repair .poster-art img { transform:none; object-position:center; object-fit:cover; }
.cover-masthead {
  position:absolute; top:51%; left:50%; z-index:1; isolation:isolate; display:flex; flex-direction:column;
  align-items:center; width:max-content; max-width:96%; transform:translate(-50%,-50%) rotate(-3.3deg);
  --edge:clamp(3px,.55cqw,9px); --offset:clamp(2px,.33cqw,6px);
}
.cover-masthead .edition-line {
  position:relative; z-index:1; display:block; align-self:center; margin:0 0 .42em; padding:.45em .82em .42em;
  border:2px solid var(--ink); color:#fff7e3; background:#2b2032;
  font:800 clamp(.58rem,.76cqw,.87rem)/1 Manrope,Arial,sans-serif;
  letter-spacing:.12em; transform:rotate(2deg); white-space:nowrap;
}
.repair .cover-masthead h1 {
  position:relative; margin:0; text-align:center; font:400 clamp(2.8rem,6.3cqw,7.6rem)/.82 var(--display);
  letter-spacing:-.05em; color:#fff9eb; z-index:1; max-width:none;
}
.repair .cover-masthead h1 span {
  display:block; position:relative; white-space:nowrap; -webkit-text-stroke:var(--edge) #211626;
  paint-order:stroke fill; text-shadow:0 var(--offset) #241626,1px calc(var(--offset) + 1px) #241626;
}
.repair .cover-masthead h1 span:first-child { z-index:1; font-size:1.13em; margin-left:-.1em; }
.repair .cover-masthead h1 span:nth-child(2) { margin:0 -.01em .025em; }
.repair .cover-masthead h1 em {
  display:table; position:relative; margin:.26em auto 0; padding:.21em .62em .24em;
  background:#ffcf75; color:#261b2b; border:clamp(2px,.17cqw,4px) solid var(--ink);
  font:400 .285em/.98 var(--display); text-transform:uppercase; letter-spacing:.06em;
  transform:rotate(1.2deg); box-shadow:3px 3px 0 var(--ink);
}
.set-square { display:block; pointer-events:none; position:absolute; inset:-6% -7% -3%; z-index:-1; transform:rotate(-4deg); filter:drop-shadow(4px 5px #201629); }
.set-square::before,.set-square::after,.set-square i {
  content:""; position:absolute; inset:0; clip-path:polygon(1% 8%,89% 1%,100% 12%,90% 68%,69% 70%,60% 100%,45% 76%,11% 88%,16% 55%);
}
.set-square::before { background:#281a2d; }
.set-square::after { inset:3px; background:#fcf4de; }
.set-square i { z-index:1; inset:7px; background:linear-gradient(142deg,#58acaf 5%,#6ca5bb 29%,#d09396 56%,#ec9a74 74%,#f6b556 95%); }
.cover-foot { border-top:3px solid var(--ink); border-bottom:4px solid var(--ink); background:#241a2b; }
.cover-foot>.frame { display:flex; align-items:center; justify-content:space-between; gap:1.4rem 3rem; padding-block:1.05rem; }
.repair .poster-deck { max-width:57ch; margin:0; font-size:clamp(.86rem,1.08vw,1.03rem); line-height:1.45; color:#f9f0de; }
.repair .poster-actions { margin:0; flex-wrap:nowrap; gap:.5rem 1.1rem; }
.repair .cover-button,.repair .cover-link { flex-shrink:0; min-height:42px; font-size:.83rem; }
.repair .cover-button {
  background:var(--citrus); color:#231827; border:2px solid #211626; box-shadow:2px 2px 0 #e8b45f;
  border-radius:1px; padding:.53rem .85rem; font-weight:800;
}
.repair .cover-button:hover { background:#ffdb91; transform:translate(-1px,-2px); }
.repair .cover-link { color:#fff7e6; }
.repair .cover-button:focus-visible,.repair .cover-link:focus-visible { outline-color:var(--aqua); }
.repair .cover-button .ico { stroke-width:2.2; }

/* Paper stock, tabbed index and a heavy keyline around each physical sheet. */
.repair .archive { padding-block:clamp(2.7rem,5.8vw,6rem); }
.repair .archive-heading { border-bottom:4px solid var(--ink); gap:2rem; }
.repair .archive h2#catalog-title,.repair .forms-copy h2,.repair .empty h1 {
  font:400 clamp(2.45rem,4.5vw,4.9rem)/1.04 var(--display); letter-spacing:-.05em;
}
.repair .archive-heading p { color:#483d48; }
.repair .rows { border-block:2px solid var(--ink); }
.repair .rows li { border-bottom:1px solid #93838a; }
.repair .rows li:last-child,.repair .rows li:first-child { border:0; }
.repair .rows li:first-child:not(:last-child) { border-bottom:1px solid #93838a; }
.repair .rows a { grid-template-columns:2.4rem minmax(0,1fr) 1.4rem; column-gap:.85rem; padding-inline:.35rem; }
.repair .rows a:hover,.repair .rows a:focus-visible { background:#e9e4d6; }
.repair .rows .idx {
  justify-self:start; color:var(--ink); background:var(--aqua); border:2px solid var(--ink); box-shadow:2px 2px var(--ink);
  padding:.32em .38em; transform:skew(-5deg); font:400 .82rem/1 var(--display);
}
.repair .rows li:nth-child(3n+2) .idx { background:var(--citrus); }
.repair .rows li:nth-child(3n) .idx { background:var(--coral); }
.repair .row-category { color:#63505b; font-weight:700; }
.repair .row-title { color:#2a1d2b; font-weight:800; }
.repair .cabinet-desk {
  border:3px solid var(--ink); box-shadow:5px 6px 0 var(--ink); background-color:#9bc8bf;
  background-image:radial-gradient(#3c6c692e .85px,transparent 1.2px),linear-gradient(125deg,#a5cfc6,#c8dbcc);
  background-size:5px 5px,100% 100%;
}
.repair .folder { background:linear-gradient(120deg,#f8c879,#e99860); border:2px solid var(--ink); box-shadow:4px 6px var(--ink); }
.repair .folder-tab { border:2px solid var(--ink); border-bottom:0; left:-2px; background:#f5c279; }
.repair .sheet { border:2px solid var(--ink); }
.repair .sheets::after,.repair .sheets::before { border-color:var(--ink); }
.repair .sheet-bottom h2 { font-family:var(--display); font-weight:400; letter-spacing:-.04em; }
.repair .sheet-bottom a,.repair .toc a,.repair .back { color:#24575d; }
.repair .switches button,.repair .motion,.repair .print,.repair .forms-copy .form-link,.repair .consent-panel button {
  border:2px solid var(--ink); color:var(--ink); background:#fff8e9; box-shadow:2px 2px var(--ink); border-radius:1px;
}
.repair .switches button:hover,.repair .motion:hover,.repair .print:hover,.repair .forms-copy .form-link:hover { background:var(--citrus); color:var(--ink); }
.repair .forms-band { background:#d6e6dc; border-block:3px solid var(--ink); }
.repair .detail-art { border:3px solid var(--ink); box-shadow:4px 4px var(--ink); }
.repair .forms-copy .kicker,.repair .toc>p,.repair .doc-head .kicker {
  color:#4d3547; font-weight:800; letter-spacing:.08em;
}
.repair footer { background:var(--surface); }
.repair .consent-panel { background:#fff9ec; border:2px solid var(--ink); border-top:5px solid var(--ink); box-shadow:4px 4px 0 #261a2bd9; }
.repair .consent-panel button:hover { background:var(--aqua); }

/* Article pages keep the drawings full size and the text column unbroken. */
.repair .reading { border-top:0; }
.repair .reading-rail .toc { border-top:3px solid var(--ink); }
.repair .toc a:hover { color:#74362c; }
.repair .doc-head { padding-left:0; border:0; }
.repair .field-strip {
  display:block; width:100%; height:clamp(95px,10.7vw,152px); object-fit:cover; object-position:50% 52%;
  border:3px solid var(--ink); margin:0 0 1.45rem; background:#e2c895;
}
.repair .doc-head h1 { font:400 clamp(2.15rem,4.1vw,4.75rem)/1.075 var(--display); letter-spacing:-.045em; text-wrap:balance; }
.repair .doc-head .kicker {
  display:table; padding:.31rem .52rem; border:2px solid var(--ink); background:var(--aqua); color:var(--ink);
}
.repair .doc-head .kicker i { display:none; }
.repair .doc-byline { border-top:2px solid var(--ink); margin-top:1.25rem; }
.repair .article-fig { border:2px solid var(--ink); background:#e0e9db; box-shadow:4px 4px var(--ink); }
.repair .prose { color:#29242a; }
.repair .prose h2 { font-family:var(--display); font-weight:400; letter-spacing:-.032em; }
.repair .prose .example,.repair .prose .fact,.repair .prose .case-note,.repair .prose .note { border-left:4px solid #973f33; background:#ece4d5; }
.repair .pager { border-top:3px solid var(--ink); }
.repair .pager a:focus-visible,.repair .pager a:hover { color:#6c382f; }

@media (min-width:651px) and (max-width:900px) {
  .cover-foot>.frame { gap:.9rem 1.3rem; }
  .repair .poster-actions { display:grid; gap:.25rem; }
  .repair .cover-link { min-height:27px; }
}
@media (max-width:720px) {
  .repair .mast-inner { min-height:55px; }
  .repair .mast .brand { font-size:1.02rem; }
  .repair .brand .seal { width:29px; height:30px; }
  .repair .mast nav { font-size:.72rem; }
  .repair .reading { padding-top:1.2rem; }
  .repair .doc-head h1 { font-size:clamp(2rem,7.8vw,3.1rem); }
  .repair .field-strip { height:clamp(82px,23vw,118px); margin:0 0 1.1rem; }
  .repair .archive-heading { padding-bottom:1rem; }
  .repair .cabinet-desk { box-shadow:3px 4px var(--ink); }
  .repair .poster-deck { font-size:.86rem; }
}
@media (max-width:650px) {
  .cover-stage { aspect-ratio:2 / 3; }
  .cover-masthead { top:50%; --edge:clamp(3px,1.35cqw,7px); --offset:clamp(2px,.78cqw,4px); }
  .repair .cover-masthead h1 { font-size:clamp(2.8rem,11.4cqw,5.3rem); }
  .cover-masthead .edition-line { font-size:clamp(.46rem,1.86cqw,.7rem); }
  .set-square { inset:-7% -5% -5%; }
  .set-square i { inset:5px; }
  .cover-foot>.frame { flex-direction:column; align-items:flex-start; gap:.75rem; padding-block:1rem 1.05rem; }
  .repair .poster-actions { flex-wrap:wrap; gap:.3rem 1rem; }
  .repair .cover-button,.repair .cover-link { font-size:.77rem; min-height:42px; }
  .repair .rows a { grid-template-columns:2rem minmax(0,1fr) 1.05rem; column-gap:.55rem; }
  .repair .folder,.repair .article-fig { box-shadow:3px 3px var(--ink); }
  .repair .doc-byline .print { flex-shrink:0; }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  .cover-masthead { translate:var(--poster-x, 0px) var(--poster-y, 0px); transition:translate .32s ease-out; }
}
@media print {
  .repair { background:white; color:black; }
  .repair .poster { background:white; color:black; }
  .cover-stage,.cover-foot>.frame { display:block; aspect-ratio:auto; overflow:visible; box-shadow:none; }
  .set-square,.cover-masthead .edition-line,.cover-stage picture,.repair .poster-actions,.repair .field-strip { display:none; }
  .cover-masthead,.repair .poster .cover-masthead h1,.repair .poster .cover-masthead h1 span,.repair .poster .cover-masthead h1 em {
    position:static; display:inline; width:auto; margin:0 .12em 0 0; padding:0; transform:none; translate:none; 
    font:700 24pt/1.12 Arial,sans-serif; color:black; letter-spacing:normal; text-shadow:none;
    -webkit-text-stroke:0; box-shadow:none; background:none; border:0;
  }
  .cover-foot { background:white; border:0; }
  .cover-foot>.frame { padding:0; }
  .repair .poster-deck { color:black; font-size:11pt; }
  .repair .doc-head h1 { font:700 26pt/1.08 Arial,sans-serif; }
  .repair .article-fig,.repair .doc-head .kicker,.repair .doc-byline { box-shadow:none; border:0; background:none; }
  .repair .prose h2 { font:700 16pt/1.2 Arial,sans-serif; }
  .repair .archive-heading,.repair .archive-body,.repair .rows { border:0; }
}
