/* Sublapse.com: the company's public face. A clean, sterile, institutional company website.
   Colours taken from the head office: off-white concrete, black lettering, deep glass-and-sky blue.
   No visual effects. What feels wrong is in the words and in a few quiet details (main.js). */

:root {
  --ink: #121314;
  --text: #2a2c2e;
  --grey: #6b6f72;
  --rule: #cfcdc6;
  --bg: #e7e6e1;
  --panel: #fbfbf9;
  --accent: #2f5f9e;
  --deep: #1c3a63;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.6; }
.wrap { width: 1100px; max-width: 100%; margin: 0 auto; padding: 0 24px; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: #e3ebf5; }

/* Keyboard: visible focus, and a skip link that appears on Tab */
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--panel); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Utility bar */
#util { background: var(--deep); color: #c3d0e0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
#util .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
#util b { color: #fff; font-family: var(--mono); letter-spacing: 1px; }

/* Header */
#head { background: var(--panel); border-bottom: 1px solid var(--ink); }
#head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { background: none; }
.brand img { display: block; }
.brand .word { font-family: "Arial Black", Arial, sans-serif; font-size: 26px; letter-spacing: 5px; line-height: 1; }
.brand .sub { font-size: 13px; line-height: 1; letter-spacing: 3px; text-transform: uppercase; color: var(--grey); border-left: 1px solid var(--rule); padding-left: 12px; }
#nav { display: flex; flex-wrap: nowrap; }
#nav a { display: block; white-space: nowrap; padding: 30px 8px 26px; font-size: 11.5px; font-weight: bold; letter-spacing: .8px; text-transform: uppercase; text-decoration: none; color: var(--text); border-bottom: 4px solid transparent; }
#nav a:hover { background: none; color: var(--ink); border-bottom-color: var(--rule); }
#nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* Home: full-width photograph with a white card over it. Tall enough that little of the photo is cropped. */
#hero { position: relative; background: var(--ink); border-bottom: 1px solid var(--ink); }
#hero img { display: block; width: 100%; height: clamp(300px, 40vw, 600px); object-fit: cover; object-position: 50% 45%; }
#hero .wrap { position: absolute; left: 0; right: 0; bottom: 32px; }
#hero .card { width: 420px; max-width: 100%; background: var(--panel); border: 1px solid var(--ink); padding: 22px 24px; }
#hero .k { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 10px; }
#hero .h { font-size: 24px; line-height: 1.25; font-weight: bold; color: var(--ink); margin-bottom: 16px; }
.btn { display: inline-block; padding: 8px 16px; background: var(--accent); color: #fff; font-size: 11px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--deep); }

/* Inner pages: a title band */
#band { background: var(--panel); border-bottom: 1px solid var(--rule); }
#band .wrap { padding-top: 26px; padding-bottom: 22px; }
.crumb { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); }
.crumb a { color: var(--grey); text-decoration: none; }
#band h1 { margin: 6px 0 0; }

/* Columns */
#cols { display: flex; gap: 32px; align-items: flex-start; padding-top: 32px; padding-bottom: 48px; }
#main { flex: 1 1 auto; min-width: 0; background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--accent); padding: 26px 30px 18px; }
#aside { flex: 0 0 270px; }

h1 { font-size: 28px; line-height: 1.2; color: var(--ink); margin: 0 0 16px; letter-spacing: .5px; }
h2 { counter-increment: sec; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
h2::before { content: counter(sec, decimal-leading-zero); display: inline-block; font-family: var(--mono); font-weight: bold; color: var(--accent); margin-right: 12px; }
h3 { font-size: 14px; margin: 18px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 20px; margin: 0 0 14px; }
li { margin: 4px 0; }

/* Tables */
table.grid { border-collapse: collapse; width: 100%; margin: 12px 0 18px; font-size: 13px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; vertical-align: top; }
table.grid th { border-bottom: 2px solid var(--ink); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); }
table.grid td:first-child { white-space: nowrap; font-family: var(--mono); font-weight: bold; }
table.site th { width: 170px; color: var(--grey); border-bottom: 1px solid var(--rule); }
.tag { display: inline-block; padding: 1px 7px; font-size: 10px; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.tag-monitoring { color: #3d5466; }
.tag-active { color: #8a6d12; }
.tag-terminal { color: #8a2222; }
.tag-sealed { color: var(--ink); }
.tag-unsurveyed { color: var(--grey); }
a.staff { color: var(--grey); text-decoration: none; }

p.summary { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; margin: 16px 0 4px; }
p.summary b { color: var(--ink); }

/* Figures and code */
.fig { margin: 18px 0 22px; border: 1px solid var(--rule); background: #fafafa; }
.fig img { display: block; width: 100%; height: auto; }
.fig figcaption { border-top: 1px solid var(--rule); padding: 8px 12px; font-size: 12px; color: var(--grey); }
pre.code { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; background: #f6f7f7; border: 1px solid var(--rule); border-left: 3px solid var(--ink); padding: 12px 16px; overflow-x: auto; margin: 12px 0 18px; }

/* Sidebar */
.box { background: var(--panel); border: 1px solid var(--rule); margin-bottom: 20px; }
.box .t { font-size: 11px; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); padding: 11px 14px 9px; border-bottom: 1px solid var(--rule); border-top: 3px solid var(--ink); }
.box .b { padding: 12px 14px; font-size: 13px; }
.box ul { margin: 0; padding-left: 16px; }

/* Footer */
#foot { background: var(--ink); color: #9fa3a6; font-size: 12px; line-height: 1.7; }
#foot .cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; padding: 34px 0 26px; }
#foot b { color: #fff; letter-spacing: 1px; }
#foot .links a { display: block; color: #d7dadc; text-decoration: none; }
#foot .links a:hover { color: #fff; background: none; text-decoration: underline; }
#foot .links a.on { color: #8fb3e0; }
.docref { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #34373a; padding: 12px 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #75797c; }
.docref a.staff { color: #75797c; }

/* Printed in the background colour: it shows only when selected */
.unseen { color: transparent; }
.unseen::selection { color: #fff; background: var(--accent); }

@media (max-width: 820px) {
  #nav { flex-wrap: wrap; }
  .brand .word { font-size: 20px; letter-spacing: 3px; }
  .brand .sub { font-size: 10px; letter-spacing: 2px; padding-left: 8px; }
  .brand img { width: 34px; height: 34px; }
  .wrap { padding: 0 16px; }
  #util .wrap span:first-child { display: none; }
  #head .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 14px; }
  #nav a { padding: 12px 10px 10px 0; margin-right: 6px; }
  #hero img { height: 240px; }
  #hero .wrap { position: static; padding: 0; }
  #hero .card { width: auto; border: 0; border-top: 1px solid var(--ink); }
  #cols { flex-direction: column; gap: 20px; padding-top: 20px; }
  #main { padding: 20px 18px 10px; width: 100%; }
  #aside { flex: none; width: 100%; }
  table.grid { display: block; overflow-x: auto; }
  #foot .cols { grid-template-columns: 1fr; gap: 18px; }
  .docref { flex-direction: column; gap: 6px; }
}
