/* remedialwallties.co.uk
   A fixings data sheet: white stock, graphite type, one hi-vis yellow.
   Barlow for reading, Barlow Semi Condensed for headings, tables and figures. */

@font-face{font-family:"Barlow";src:url("/assets/barlow-faces/barlow-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow";src:url("/assets/barlow-faces/barlow-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Semi Condensed";src:url("/assets/barlow-faces/barlow-semi-condensed-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Semi Condensed";src:url("/assets/barlow-faces/barlow-semi-condensed-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Semi Condensed";src:url("/assets/barlow-faces/barlow-semi-condensed-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
/* Metric-matched stand-ins so nothing moves when the real files arrive. */
@font-face{font-family:"Barlow standin";src:local("Arial");size-adjust:96.3%;ascent-override:103.8%;descent-override:20.8%;line-gap-override:0%}
@font-face{font-family:"Barlow SC standin";src:local("Arial");size-adjust:86%;ascent-override:116.3%;descent-override:23.3%;line-gap-override:0%}

:root{
  --hivis:#ffcb05;
  --hivis-edge:#d9a900;
  --graphite:#1d2329;
  --slate:#4a545e;
  --galv:#c3c9cf;
  --mortar:#eff1f2;
  --limewash:#fff;
  --rust:#a3271b;
  --barlow:"Barlow","Barlow standin",Arial,sans-serif;
  --barlow-tight:"Barlow Semi Condensed","Barlow SC standin","Arial Narrow",Arial,sans-serif;
  --gauge:75rem;
  --run:42rem;
  --gutter:1rem;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:1rem}
body{margin:0;background:var(--limewash);color:var(--graphite);font:400 1.0625rem/1.55 var(--barlow)}
img,svg{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.2em}
a:hover{background:var(--hivis);text-decoration-thickness:.14em}
:focus-visible{outline:3px solid var(--graphite);outline-offset:2px;box-shadow:0 0 0 7px var(--hivis)}
strong,b{font-weight:600}
p{margin:0 0 1rem}
ul,ol{margin:0 0 1rem;padding-left:1.2rem}
li{margin:.3rem 0}
h1,h2,h3{font-family:var(--barlow-tight);margin:0;text-wrap:balance}
.gauge{max-width:var(--gauge);margin:0 auto;padding:0 var(--gutter)}
.dim{font-family:var(--barlow-tight);font-weight:600;font-size:1.03em;white-space:nowrap;font-variant-numeric:tabular-nums}

.skip-to-main{position:absolute;left:-999rem;top:0;background:var(--graphite);color:#fff;padding:.6rem 1rem;z-index:9;font-weight:600}
.skip-to-main:focus{left:.5rem;top:.5rem}

/* ---- top band: maker's name over binder tabs ---- */
.sheet-top{background:var(--hivis)}
.maker{display:inline-flex;align-items:center;gap:.7rem;padding:.85rem 0 .75rem;text-decoration:none;font:700 1.45rem/1.05 var(--barlow-tight)}
.maker:hover{background:none}
.maker:hover span{text-decoration:underline;text-decoration-thickness:.08em}
.maker svg{flex:none}
.maker small{display:block;font:400 .875rem/1.3 var(--barlow);margin-top:.15rem}
.binder-tabs ul{list-style:none;margin:0;padding:0 0 .6rem;display:flex;flex-wrap:wrap;gap:.3rem}
.binder-tabs li{margin:0}
.binder-tabs a{display:block;padding:.36rem .6rem;text-decoration:none;font:600 .98rem/1.2 var(--barlow-tight);border:1px solid var(--hivis-edge);border-radius:2px}
.binder-tabs a:hover{background:rgba(255,255,255,.55)}
.binder-tabs a[aria-current="page"]{background:var(--limewash);border-color:var(--limewash)}

/* ---- title block ---- */
.sheet-title{padding:1.5rem 0 1.4rem;border-bottom:3px solid var(--graphite)}
.trail{font:500 .95rem/1.3 var(--barlow-tight);color:var(--slate);margin:0 0 .6rem}
h1{font-weight:700;font-size:clamp(2.1rem,6.2vw,3.5rem);line-height:1;letter-spacing:-.005em;margin-bottom:.9rem;max-width:20ch}
.opening{font-size:1.19rem;line-height:1.45;max-width:44rem;margin:0}
.on-sheet{margin-top:1.4rem;border-top:1px solid var(--galv);padding-top:.8rem}
.on-sheet p{font:700 1rem/1.2 var(--barlow-tight);margin:0 0 .4rem}
.on-sheet ul{list-style:none;margin:0;padding:0;columns:2;column-gap:1.5rem}
.on-sheet li{margin:0;padding:.22rem 0;break-inside:avoid}
.on-sheet a{font:500 1rem/1.25 var(--barlow-tight)}

/* ---- body ---- */
main{padding:1.6rem 0 3rem}
.run{max-width:var(--run)}
.run::after{content:"";display:block;clear:both}
h2{font-weight:700;font-size:1.72rem;line-height:1.1;margin:2.6rem 0 .9rem;padding-bottom:.35rem;border-bottom:2px solid var(--graphite);clear:both}
main .gauge > h2{max-width:none}
.run > h2:first-child{margin-top:.6rem}
h3{font-weight:600;font-size:1.28rem;line-height:1.2;margin:1.7rem 0 .4rem}

/* ---- the three principles: one ruled strip, not three boxes ---- */
.principles{display:grid;margin:0 0 1rem}
.principle{padding:1.1rem 0 .6rem;border-bottom:1px solid var(--galv)}
.principle h3{margin:.7rem 0 .35rem;font-weight:700;font-size:1.4rem}
.principle p{margin-bottom:.8rem}
.strip-section{width:100%;max-width:17.5rem;border:1px solid var(--graphite)}
.principle dl{margin:0 0 .9rem;font-size:1rem}
.principle dl > dt{float:left;clear:left;color:var(--slate);padding:.28rem 0}
.principle dl > dd{margin:0;text-align:right;padding:.28rem 0;border-bottom:1px dotted #8b949c;font:600 1.05rem/1.5 var(--barlow-tight)}
.detail-link{font:600 1.08rem/1.2 var(--barlow-tight)}

/* ---- schedules (tables) ---- */
.schedule{overflow-x:auto;margin:1.4rem 0 1.5rem}
.schedule table{border-collapse:collapse;width:100%;font-size:1rem;line-height:1.4;border-bottom:2px solid var(--graphite)}
.schedule caption{text-align:left;caption-side:top;font:700 1.18rem/1.2 var(--barlow-tight);padding:0 0 .55rem}
.schedule th,.schedule td{padding:.6rem .8rem;border-top:1px solid var(--galv);vertical-align:top;text-align:left}
.schedule thead th{background:var(--hivis);border-top:2px solid var(--graphite);border-bottom:2px solid var(--graphite);font:700 1.05rem/1.2 var(--barlow-tight);vertical-align:bottom}
.schedule tbody tr:first-child > *{border-top:0}
.schedule tbody th{font:600 1.05rem/1.3 var(--barlow-tight);width:11rem;padding-left:0}
.schedule thead th:first-child{padding-left:.8rem}
.schedule td.sch-n,.schedule th.sch-n{font:500 1.06rem/1.35 var(--barlow-tight);font-variant-numeric:tabular-nums}
.schedule table.brief{max-width:27rem}
.schedule table.brief td{width:50%}
.table-source{font-size:.92rem;line-height:1.45;color:var(--slate);margin:-.7rem 0 1.4rem}

/* ---- suits and limits ---- */
.suits-limits{display:grid;gap:1.4rem;margin:1.3rem 0 1.5rem}
.suits,.limits{border-top:5px solid var(--hivis);padding-top:.7rem}
.limits{border-top-color:var(--graphite)}
.suits h3,.limits h3{margin:0 0 .5rem;font-weight:700}
.suits ul,.limits ul{list-style:none;padding:0;margin:0}
.suits li,.limits li{margin:0;padding:.45rem 0;border-top:1px solid var(--galv)}
.suits li:first-child,.limits li:first-child{border-top:0;padding-top:0}

/* ---- notes, drawings, photos ---- */
.nb{border-left:7px solid var(--hivis);padding:.15rem 0 .15rem 1.1rem;margin:1.5rem 0;font-size:1.12rem;line-height:1.45}
.nb p:last-child{margin-bottom:0}
.drawing{margin:1.5rem 0;border:1.5px solid var(--graphite)}
.drawing img{width:100%}
.drawing figcaption{padding:.55rem .8rem;font-size:.95rem;line-height:1.4;border-top:1.5px solid var(--graphite);background:var(--mortar)}
.bench-photo{margin:.3rem 0 1.3rem;max-width:21rem}
.bench-photo img{width:100%;aspect-ratio:640/427;object-fit:cover;background:var(--mortar)}
.bench-photo figcaption{padding-top:.45rem;font-size:.9rem;line-height:1.4;color:var(--slate)}

/* ---- numbered sequence: only where the content really is one ---- */
.sequence{counter-reset:step;list-style:none;padding:0;margin:1.2rem 0 1.5rem;border-top:1px solid var(--galv)}
.sequence li{counter-increment:step;position:relative;margin:0;padding:.7rem 0 .7rem 3.1rem;border-bottom:1px solid var(--galv);min-height:3.3rem}
.sequence li::before{content:counter(step);position:absolute;left:0;top:.6rem;width:2.1rem;height:2.1rem;background:var(--hivis);font:700 1.3rem/2.1rem var(--barlow-tight);text-align:center}

/* ---- where next, sources ---- */
.onward{list-style:none;margin:2.8rem 0 0;padding:0;border-top:2px solid var(--graphite);clear:both}
.onward li{margin:0;border-bottom:1px solid var(--galv)}
.onward a{display:block;padding:.7rem 0;text-decoration:none;font:700 1.22rem/1.2 var(--barlow-tight)}
.onward a:hover{background:var(--hivis)}
.onward a span{display:block;font:400 .97rem/1.4 var(--barlow);color:var(--slate);margin-top:.15rem}
.onward a:hover span{color:var(--graphite)}
.source-list{margin-top:2.6rem;font-size:.94rem;line-height:1.45}
.source-list h2{font-size:1.25rem;border-bottom-width:1px;margin:0 0 .6rem}
.source-list ul{list-style:none;padding:0}
.source-list li{margin:0;padding:.4rem 0;border-bottom:1px solid var(--mortar);overflow-wrap:anywhere}

/* ---- foot ---- */
.sheet-foot{background:var(--mortar);border-top:3px solid var(--graphite);font-size:.95rem;padding:1.5rem 0 2.2rem}
.sheet-foot ul{list-style:none;padding:0;margin:0 0 1.1rem;display:flex;flex-wrap:wrap;gap:.2rem 1.3rem}
.sheet-foot li{margin:0}
.sheet-foot ul a{font:600 1.05rem/1.6 var(--barlow-tight)}
.sheet-foot p{margin:0 0 .5rem;max-width:46rem;color:#39424b}

/* ---- phones: wide schedules restack, one entry per row heading ---- */
@media (max-width:43.99rem){
  .schedule table.restack,.restack tbody,.restack tr,.restack th,.restack td,.restack caption{display:block}
  .restack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .schedule table.restack tbody tr{border-top:2px solid var(--graphite);padding:0 0 .5rem}
  .schedule table.restack tbody th{width:auto;background:var(--hivis);padding:.4rem .6rem;font-size:1.12rem;font-weight:700;border:0;margin-bottom:.2rem}
  .schedule table.restack td{border-top:0;border-bottom:1px solid var(--galv);padding:.5rem 0 .55rem}
  .schedule table.restack tr > td:last-child{border-bottom:0}
  .schedule table.restack td::before{content:attr(data-col);display:block;font:600 .92rem/1.3 var(--barlow-tight);color:var(--slate);margin-bottom:.1rem}
  .schedule table.restack tr > td:first-child{font-weight:600}
  .schedule table.restack tr > td:first-child::before{font-weight:600}
}

/* lettered drawings keep a readable size on a phone and pan sideways */
@media (max-width:34rem){
  .drawing-pan{overflow-x:auto}
  .drawing-pan img{width:31rem;max-width:none}
}

@media (min-width:44rem){
  :root{--gutter:1.75rem}
  .principles{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(5,auto);border-top:3px solid var(--graphite);border-bottom:2px solid var(--graphite)}
  .principle{display:grid;grid-template-rows:subgrid;grid-row:span 5;border-bottom:0;padding:1.2rem 1.4rem .5rem;border-left:1px solid var(--galv)}
  .principle:first-child{padding-left:0;border-left:0}
  .principle:last-child{padding-right:0}
  .principle h3{margin-top:.9rem}
  .suits-limits{grid-template-columns:1fr 1fr;gap:2rem}
  .bench-photo{float:right;width:44%;max-width:17rem;margin:.3rem 0 1rem 1.6rem}
  .schedule tbody th{padding-left:.8rem}
  .sheet-title{padding:2rem 0 1.8rem}
}
@media (min-width:58rem){
  .sheet-top .gauge{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap}
  .maker{padding:1.05rem 0 .95rem}
  .binder-tabs ul{padding:0;gap:0;flex-wrap:nowrap}
  .binder-tabs a{border:0;border-radius:3px 3px 0 0;padding:.6rem .8rem .7rem;font-size:1.06rem;white-space:nowrap}
  .gauge.with-contents{display:grid;grid-template-columns:minmax(0,1fr) 17rem;gap:3rem;align-items:start}
  .on-sheet{margin-top:.2rem;border-top:0;padding:.1rem 0 .1rem 1.1rem;border-left:7px solid var(--hivis)}
  .on-sheet ul{columns:1}
}
@media (min-width:72rem){
  /* photographs sit in the margin, at product-shot size, beside the text they belong to */
  .bench-photo{width:19rem;max-width:none;margin:.35rem -22rem 1.2rem 0;clear:right}
  h2,.onward{clear:none}
  /* and a drawing's caption moves out beside it, as on a handbook page */
  .run > .drawing{position:relative}
  .run > .drawing figcaption{position:absolute;left:calc(100% + 3rem);top:-1.5px;width:19rem;padding:.6rem 0 0;border-top:3px solid var(--graphite);background:none}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.sheet-top,.sheet-foot,.onward,.on-sheet{display:none}body{font-size:11pt}}
