@font-face { font-family: 'Inconsolata'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inconsolata.woff2) format('woff2'); }
@font-face { font-family: 'Varela Round'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/varela-round-400.woff2) format('woff2'); }

:root {
  --silver: #c0c0c0;
  --navy: #000080;
  --ui: 'MS Sans Serif', 'Microsoft Sans Serif', Tahoma, Arial, sans-serif;
  --taskbar: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #000; color: #000; font: 14px/1.4 var(--ui); overflow: hidden; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Desktop ---------------------------------------------------------- */

.desk {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #b9a3d6 url(img/bg-win.gif) 50% / cover no-repeat;
  image-rendering: pixelated;
}

.icons {
  display: flex;
  flex-flow: column wrap;
  align-content: flex-start;
  gap: 16px 0;
  height: calc(100% - var(--taskbar));
  max-height: 600px;
  padding: 10px 0;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  min-height: 81px;
  padding: 0 3px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: default;
}
a.icon { cursor: pointer; }
.icon img { margin-bottom: 4px; }
.icon span { padding: 3px; background: #000; font-size: 11px; line-height: 1.2; border: 1px dotted transparent; }
a.icon:focus-visible { outline: none; }
a.icon:active span, a.icon:focus-visible span { background: var(--navy); border-color: #ffff7f; }

/* ---- Windows ---------------------------------------------------------- */

.win {
  position: absolute;
  top: 40px;
  left: 210px;
  width: 500px;
  height: min(630px, calc(100% - var(--taskbar) - 16px));
  border: 1px solid;
  border-color: var(--silver) #000 #000 var(--silver);
  background: var(--silver);
  image-rendering: auto;
  outline: none;
}
.win.is-max { top: 0 !important; left: 0 !important; width: 100%; height: calc(100% - var(--taskbar)); }

.win-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid;
  border-color: #fff #808080 #808080 #fff;
  padding: 2px;
}

.win-bar {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 0 2px 0 4px;
  background: #808080;
  color: #fff;
  font-size: 12px;
  user-select: none;
  touch-action: none;
}
.win.is-top .win-bar { background: var(--navy); }
.win-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-ctl { display: flex; flex: none; }

.ctl { width: 16px; height: 14px; padding: 0; border: 0; background: var(--silver) 0 0 / 16px 14px no-repeat; cursor: pointer; }
.ctl-min { background-image: url(img/ic-minimize.png); }
.ctl-max { background-image: url(img/ic-fullscreen.png); }
.ctl-close { background-image: url(img/ic-close.png); margin-left: 2px; }
.ctl:focus-visible { outline: 1px dotted #ffff7f; outline-offset: 1px; }

.win-menu { display: flex; flex: none; align-items: center; height: 20px; padding-left: 6px; font-size: 12px; line-height: 1; }
.win-menu span { margin-right: 15px; }

.win-body {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
}
.win-scroll {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 10px 10px 16px;
  background: #fff;
  border: 1px solid;
  border-color: #000 var(--silver) var(--silver) #000;
  overscroll-behavior: contain;
}

.shot { margin: 0 3px 10px 0; padding-bottom: 20px; border-bottom: 1px solid #cfcfcf; }
.shot img { display: block; box-shadow: 3px 3px 0 1px #000; }

.w-title { margin: 0 0 6px; font-size: 18px; font-weight: 400; text-transform: uppercase; }
.w-sub { margin: 0 0 10px; }

.blk { margin: 0; padding: 6px 0 10px; border-bottom: 1px solid #cfcfcf; }
.blk:last-child { border-bottom: 0; }
.blk p { margin: 0; overflow-wrap: anywhere; }
.blk-indent { padding-left: 33.333%; }
.blk hr, .w-sub hr { border: 0; border-top: 1px solid #cfcfcf; margin: 14px 0; }
.blk a, .w-sub a { color: #0000ee; }

.details > div { display: flex; }
.details dt { flex: none; width: 33.333%; padding: 6px 0; font-weight: 700; }
.details dd { margin: 0; padding: 6px 0; font-family: 'Varela Round', var(--ui); font-size: 13px; font-weight: 700; }

/* Lists, questions, helplines and booking times */

.items { margin: 0; padding: 0; list-style: none; }
.items li { overflow-wrap: anywhere; }
.items-numbered { counter-reset: n; }
.items-numbered li { counter-increment: n; }
.items-numbered li::before { content: counter(n) '. '; }
.items-arrows li { margin-bottom: 1.4em; }
.items-arrows li:last-child { margin-bottom: 0; }
.items-arrows li::before { content: '> '; }
.items-bullets li::before { content: '• '; }

.qa { border-bottom: 1px solid #cfcfcf; }
.qa:last-child { border-bottom: 0; }
.qa summary { padding: 8px 0; font-weight: 700; cursor: pointer; }
.qa summary:focus-visible { outline: 1px dotted #000; outline-offset: -1px; }
.qa p { padding: 0 0 12px 18px; }

.lines { margin: 0 0 1.4em; padding: 0; list-style: none; }
.lines li::before { content: '• '; }
.lines li { overflow-wrap: anywhere; }

.zone { margin-top: 1.4em; padding-top: 1.4em; border-top: 1px solid #cfcfcf; }
.zone:first-of-type { padding-top: 0; border-top: 0; }
.zone p { margin-bottom: 1.4em; }
.zone p:last-child { margin-bottom: 0; }
.zone-name { padding-bottom: 0.5em; background: linear-gradient(#cfcfcf, #cfcfcf) 0 100% / 12em 1px no-repeat; }

/* ---- Enquiry forms ---------------------------------------------------- */

.enq label { display: block; padding: 6px 0; }
.enq input:not([type='checkbox']), .enq textarea, .enq select {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  box-shadow: inset 1px 1px 0 #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 16px/1.4 'Inconsolata', monospace;
}
.enq textarea { resize: vertical; min-height: 76px; }
.enq select { height: 40px; }
.enq label.enq-check { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0 12px; }
.enq-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.enq input:focus-visible, .enq textarea:focus-visible, .enq select:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.enq ::placeholder { color: #767676; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.btn {
  min-width: 96px;
  padding: 7px 18px;
  border: 1px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #dfdfdf;
  background: var(--silver);
  cursor: pointer;
}
.btn:active { border-color: #000 #fff #fff #000; box-shadow: inset 1px 1px 0 #808080; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.btn[disabled] { color: #808080; text-shadow: 1px 1px 0 #fff; cursor: default; }

.enq-done, .enq-fail { margin: 12px 0 0; padding: 12px; }
.enq-done { background: #dddddd; text-align: center; }
.enq-fail { background: #ffdede; }

/* ---- Recycle bin ------------------------------------------------------ */

.bin {
  position: absolute;
  top: 200px;
  left: 500px;
  width: 502px;
  height: 321px;
  padding: 72px 6px 0;
  background: var(--silver) url(img/bg-recycle-bin.jpg) 0 0 / 502px 321px no-repeat;
  image-rendering: auto;
  transform-origin: 0 0;
  outline: none;
}
.bin .ctl-close { position: absolute; top: 6px; right: 6px; }
.bin ul { margin: 0; padding: 0; list-style: none; }
.bin li { display: flex; align-items: center; gap: 2px; height: 17px; margin-bottom: 1px; font-size: 12px; line-height: 1; }

/* ---- Taskbar and start menu ------------------------------------------ */

.taskbar {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  height: var(--taskbar);
  padding: 2px;
  background: var(--silver);
  border-top: 1px solid #fff;
  box-shadow: 0 -1px 0 var(--silver);
  image-rendering: auto;
}
.start, .clock { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 5px; background: var(--silver); border: 1px solid; cursor: pointer; }
.start { border-color: #fff #000 #000 #fff; box-shadow: inset -1px -1px 0 #808080; font-size: 13px; letter-spacing: 1px; }
.start[aria-expanded='true'], .start:active { border-color: #000 #fff #fff #000; box-shadow: inset 1px 1px 0 #808080; }
.clock { min-width: 80px; justify-content: space-around; border-color: #808080 #fff #fff #808080; font-size: 12px; }
.start:focus-visible, .clock:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }

.startmenu {
  position: absolute;
  bottom: calc(var(--taskbar) - 2px);
  left: 0;
  z-index: 9000;
  width: 164px;
  height: 239px;
  padding: 3px 0 0 24px;
  background: var(--silver) url(img/bg-start-menu.jpg) 0 0 / 164px 239px no-repeat;
  image-rendering: auto;
  font-size: 12px;
}
.sm-item { display: flex; align-items: center; width: 137px; height: 32px; padding: 0 6px 0 0; border: 0; background: none; text-align: left; cursor: default; }
.sm-item span { flex: 1; }
.sm-item i { width: 4px; height: 7px; background: url(img/ic-arrow.png); }
.sm-item:hover, .sm-item:focus-visible { background: var(--navy); color: #fff; outline: none; }
.sm-item:hover i { background-image: url(img/ic-arrow-hover.png); }
.sm-shutdown { margin-top: 9px; cursor: pointer; }

/* ---- Full-screen states ----------------------------------------------- */

.overlay { position: fixed; inset: 0; z-index: 9999; width: 100%; padding: 0; border: 0; cursor: pointer; }
.shutdown { background: #000 url(img/bg-shutdown.jpg) 50% / min(680px, 100%) auto no-repeat; }
.saver { background: #000 url(img/pipes.gif) 50% / cover no-repeat; }

/* ---- Phones and small tablets ----------------------------------------
   The original desktop simply refused to load here. Same desktop, but icons
   flow in rows and each window opens as a full sheet. */

@media (max-width: 767px) {
  :root { --taskbar: 36px; }
  .desk { background-position: 62% 50%; }
  .icons { flex-flow: row wrap; align-content: flex-start; gap: 14px 0; max-height: none; padding: 14px 6px; overflow-y: auto; }
  .icon { width: 25%; min-height: 84px; }
  .icon span { font-size: 12px; }

  .win, .win.is-max {
    top: 6px !important;
    left: 6px !important;
    width: calc(100% - 12px);
    height: calc(100% - var(--taskbar) - 12px);
  }
  .win-bar { height: 30px; font-size: 14px; }
  .ctl { width: 32px; height: 28px; background-size: 24px 21px; background-position: 50%; }
  .ctl-min, .ctl-max { display: none; }
  .win-menu { height: 24px; font-size: 13px; }
  .win-scroll { padding: 12px 12px 24px; font-size: 16px; }
  .w-title { font-size: 20px; }
  .blk-indent { padding-left: 0; }
  .details dt { width: 40%; }
  .details dd { font-size: 15px; }
  .btn { min-width: 128px; padding: 12px 22px; font-size: 16px; }

  .bin { top: 120px !important; left: 6px !important; }
  .start, .clock { height: 30px; }
  .start { font-size: 14px; }
  .startmenu { bottom: calc(var(--taskbar) - 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .desk { background-image: url(img/bg-win-still.png); }
  .saver { background-image: none; }
}
