/* cominoconnect.net: the 2005 design, drawn natively for today's screens.
   Layout, buttons, banner and news box are CSS; the artwork that is kept (circuit board
   column, globe tile, bullets, the grey wordmark) is used at or near its own size. */

@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-narrow-400.woff2") format("woff2"); }
@font-face { font-family: "PT Sans Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-narrow-700.woff2") format("woff2"); }

:root {
  --navy: #000033;
  --navy-tile: #33335c;
  --logo-blue: #003399;
  --red: #d12016;
  --alert: #cc0000;
  --orange: #ff6600;
  --rule: #999999;
  --grey: #666666;
  --link: #cc3300;
  --pill-text: #003366;
  --font: Verdana, Geneva, Arial, Helvetica, sans-serif;
  --serif: Georgia, "Book Antiqua", "Times New Roman", Times, serif;
  --pill-font: "PT Sans Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --menu-w: 150px;
  --overhang: 46px;
  --side-w: 300px;
}

html { background: #fff; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #000; font: 13px/1.55 var(--font); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.site { max-width: 1120px; margin: 0 auto; padding: 0 0 40px; }

/* Masthead: the navy band with the logo tile, four dark tiles and the globe. */
.masthead { display: flex; align-items: center; background: var(--navy); padding: 14px 8px 12px 14px; }
.logo { flex: none; display: block; width: 74px; height: 74px; background: var(--logo-blue) url("imgs/logo.png") center / cover no-repeat; }
.tiles { margin-left: auto; display: flex; gap: 38px; }
.tile { display: block; width: 74px; height: 74px; background: var(--navy-tile); }
.tile-globe { background: url("imgs/box-image.jpg") center / cover no-repeat; }

.under { display: flex; justify-content: space-between; align-items: flex-start; height: 28px; }
.red { display: block; width: 28px; height: 28px; background: var(--red); }

/* The three columns. The menu column art starts level with the banner, as it did. */
.columns { display: grid; grid-template-columns: var(--menu-w) minmax(0, 1fr) var(--side-w); grid-template-rows: auto auto auto; align-items: start; }
.menu { grid-column: 1; grid-row: 1 / 4; align-self: stretch; background: url("imgs/menu_column.jpg") no-repeat left top / var(--menu-w) auto; min-height: 420px; }
.banner { grid-column: 2; grid-row: 1; position: relative; height: 32px; margin-top: 19px; overflow: hidden; background: linear-gradient(90deg, #8ea2ba 0%, #262b6a 22%, #10182e 68%, #6f7fa3 92%, #fff 100%); }
.banner::before, .banner::after { content: "0110100101100011011000010110111001101110011001010111001101110100011000010111001001100101011110000110100101110100011010010110111001100111011000010110111001101001011011010110000101110100011001010110010001100011011011110110110101101001011011100110111101100011011011110110111001101110011001010110001101110100"; position: absolute; left: 90px; top: 0; white-space: nowrap; font: 11px/16px "Courier New", Courier, monospace; letter-spacing: 1.5px; color: rgba(150, 175, 255, .45); pointer-events: none; }
.banner::after { top: 16px; left: 140px; color: rgba(150, 175, 255, .3); }
.banner-text { position: absolute; left: 14px; top: 0; line-height: 32px; color: #fff; font-size: 14px; }
.content { grid-column: 2; grid-row: 2; min-width: 0; padding: 20px 28px 24px calc(var(--overhang) + 18px); border-top: 1px solid var(--rule); }
.content-wide { grid-column: 2 / 4; padding-right: 40px; }
.sidebar { grid-column: 3; grid-row: 2; min-width: 0; align-self: stretch; padding: 18px 18px 24px 20px; border: 1px solid var(--rule); border-bottom: 0; font-size: 12px; }
.wordmark-row { grid-column: 2 / 4; grid-row: 3; text-align: center; padding: 28px 0 8px; border-right: 1px solid var(--rule); }
.no-sidebar .wordmark-row { border-right: 0; }
.wordmark-row img { max-width: 100%; height: auto; }

/* The pill buttons, redrawn: they overhang the column into the content gutter as before. */
.menu ul { list-style: none; margin: 0; padding: 82px 0 0; }
.menu li { margin: 0 0 6px; }
.menu li.gap { margin-top: 20px; }
.pill { display: block; box-sizing: border-box; width: calc(var(--menu-w) + var(--overhang)); height: 28px; padding: 0 0 0 20px; border: 1px solid #8f99a6; border-radius: 14px; background: linear-gradient(#f7f8fa 0%, #e8ebee 48%, #dde1e6 60%, #ffffff 100%); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 51, .22); color: var(--pill-text); font: 700 16px/26px var(--pill-font); letter-spacing: .03em; text-decoration: none; white-space: nowrap; overflow: hidden; transition: color .15s; }
.pill:hover, .pill:focus-visible, .pill.current { color: var(--orange); }
.pill-short { width: var(--menu-w); }

/* Copy. The original class names survive on the content, so they are styled here. */
.content p, .sidebar p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: bold; }
.pagetitles { font-size: 22px; line-height: 1.25; margin: 4px 0 16px; }
h2.pagetitles { font-size: 18px; }
h2.subhead1, .subhead1 { font-size: 15px; margin: 1.2em 0 .5em; }
.search_headings { color: var(--grey); font-weight: bold; }
.newshead { color: var(--navy); }
.newshead2 { color: var(--navy); font-weight: bold; }
.newsdate, .small { font-size: 11px; color: var(--grey); }
.quote { color: var(--grey); font: italic 16px/1.5 var(--serif); }
.newsitem { font-size: 12px; line-height: 1.5; }
.download { font-size: 11px; }
.center { text-align: center; }
.right { text-align: right; }
a { color: var(--link); }
a:hover { color: var(--navy); }
a.linksnew { text-decoration: none; }
a.linksnew:hover { color: var(--navy); text-decoration: underline; }
a.links-hl { color: var(--navy); font-weight: bold; text-decoration: none; }
a.links-hl:hover { color: #999; text-decoration: underline; }
a.links-sub { color: var(--navy); text-decoration: none; }
a.links-sub:hover { color: var(--grey); text-decoration: underline; }
.content img, .sidebar img { max-width: 100%; height: auto; }
.photo { display: block; width: 100%; height: auto; margin: 0 0 20px; }

/* Lists, rows and columns: what the archived tables were standing in for. */
.bullets { list-style-image: url("imgs/bullet1_glass.gif"); margin: 0 0 1em; padding: 0 0 0 28px; }
.bullets li { margin: 0 0 5px; }
.bullets li.sub { list-style: none; margin-left: -6px; }
.numbered { margin: 0 0 1em; padding: 0 0 0 28px; }
.numbered li { margin: 0 0 8px; }
.numbered li::marker { color: var(--link); }
.content li > p:last-child, .sidebar li > p:last-child { margin-bottom: 0; }
.cols { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 1em; }
.col { flex: 1 1 0; min-width: 0; }
.col-img { flex: 0 0 auto; max-width: 40%; }
.col-img img { display: block; }

/* The employee directory: a name column and a role column, shaded on alternate rows. */
.staff { list-style: none; margin: 0 0 1.5em; padding: 0; max-width: 560px; }
.staff li { display: flex; padding: 7px 12px; border-bottom: 1px solid #ddd; }
.staff li:nth-child(odd) { background: #f2f2f2; }
.staff strong { flex: 0 0 140px; color: var(--navy); }
.staff em { color: var(--grey); font-style: italic; }

/* Forms: the User Area login and the contact page's enquiry form. */
.content input[type="text"], .content input[type="password"], .content textarea, .content select { box-sizing: border-box; width: 100%; max-width: 420px; padding: 5px 7px; border: 1px solid #999; background: #fff; font: 13px var(--font); }
.content textarea { min-height: 96px; }
.content select { width: auto; }
.content input[type="submit"], .content input[type="reset"] { padding: 5px 16px; border: 1px solid #666; border-radius: 3px; background: linear-gradient(#fff, #ddd); font: bold 12px var(--font); cursor: pointer; }
.content input[type="submit"]:hover, .content input[type="reset"]:hover { background: linear-gradient(#fff, #eee); }
.content input[disabled] { color: #999; border-color: #aaa; background: #eee; cursor: default; }
.form-panel { max-width: 560px; margin: 0 0 1.5em; }
.form-head { background: var(--orange); color: #fff; font-weight: bold; padding: 8px 12px; }
.field { display: flex; align-items: flex-start; }
.field label { flex: 0 0 150px; padding: 8px 12px 8px 0; }
.shaded .field label { padding-left: 12px; background: #ccc; align-self: stretch; }
.control { flex: 1 1 auto; min-width: 0; padding: 6px 0 6px 12px; }
.form-actions { padding: 10px 0 0; text-align: right; }
.form-actions input + input { margin-left: 12px; }
.page-userarea .form-panel { max-width: 460px; }
.page-userarea .form-actions { text-align: left; padding-left: 174px; }
.cc-hint { max-width: 460px; margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--rule); background: #f5f5f5; font-size: 12px; line-height: 1.5; }

/* Home page. The hero photograph sits flush under the banner, continuing its blue. */
.page-index .content { padding-top: 0; }
.hero { display: flex; align-items: flex-end; gap: 18px; margin: 0 0 6px; }
.hero .pagetitles { flex: 1; margin: 28px 0 10px; font-size: 24px; }
.hero img { flex: none; width: 151px; height: 160px; }
.welcome { color: var(--navy); font-size: 15px; font-weight: bold; margin: 4px 0 14px; }

/* The news box, and the breaking-news treatment a 2005 page would have given it. */
.page-index .sidebar { padding: 12px 14px 24px 16px; }
.newsbox-head { background: var(--navy); color: #fff; font: bold 14px/1 var(--font); letter-spacing: .14em; padding: 16px 14px 12px; border-bottom: 4px solid var(--orange); }
.newsbox-flash { display: flex; align-items: center; gap: 8px; background: var(--alert); color: #fff; font: bold 11px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; padding: 7px 12px; }
.newsbox-flash::before { content: ""; width: 8px; height: 8px; background: #ffff66; animation: cc-blink 1s steps(2, start) infinite; }
@keyframes cc-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .newsbox-flash::before { animation: none; } }
.newsbox-body { border-left: 2px solid var(--orange); border-right: 2px solid var(--orange); box-shadow: 3px 0 0 #ccc; padding: 12px 12px 2px; }
.newsitem-entry { position: relative; padding-left: 24px; font-size: 12px; line-height: 1.5; }
.newsitem-entry::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 12px; background: url("imgs/bullet1_glass.gif") no-repeat; }
.newsitem-entry.lead { background: #ffffcc; border: 1px solid #ffcc66; padding: 9px 10px 1px 34px; margin: 0 0 14px; }
.newsitem-entry.lead::before { left: 10px; top: 13px; }
.newsitem-entry .headline { display: block; color: var(--alert); font-size: 13px; line-height: 1.35; margin: 0 0 4px; }
.newsbox-base { height: 22px; margin: 10px 0 0; background: var(--orange); border-radius: 0 0 11px 11px; }
a.button { display: inline-block; padding: 5px 14px; border: 1px solid #cc5200; border-radius: 3px; background: linear-gradient(#ff9933, #ff6600); color: #fff; font-weight: bold; font-size: 12px; text-decoration: none; box-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
a.button:hover { background: linear-gradient(#ffad5c, #ff7a1f); color: #fff; }

/* The data centre soundtrack opens over the page, like a small player window. */
html.music-open { overflow: hidden; }
.music-dialog { box-sizing: border-box; width: min(800px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid #666; border-radius: 6px; background: #fff; color: #000; box-shadow: 0 18px 60px rgba(0, 0, 0, .45); overflow: auto; overscroll-behavior: contain; }
.music-dialog::backdrop { background: rgba(0, 0, 30, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.music-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px; border-bottom: 3px solid var(--orange); background: var(--navy); color: #fff; }
.music-dialog-head h2 { font-size: 16px; }
.music-close { flex: none; min-height: 44px; padding: 5px 16px; border: 1px solid #999; border-radius: 3px; background: linear-gradient(#fff, #ddd); color: var(--navy); font: bold 12px var(--font); cursor: pointer; }
.music-close:hover { background: #fff; }
.music-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.music-player { background: #000; }
.music-player iframe { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; }
.music-dialog-note { margin: 12px 16px; font-size: 12px; }

/* Footer links, as the original text row. */
.footer { text-align: center; padding: 22px 0 0; font-size: 11px; }
.footer a { color: var(--link); text-decoration: none; margin: 0 5px; }
.footer a:hover { color: var(--navy); text-decoration: underline; }

/* Narrow screens: the menu becomes a row of pills and the columns stack. */
@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
  .menu { grid-row: 1; background: none; min-height: 0; padding: 10px 12px 0; }
  .menu ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
  .menu li, .menu li.gap { margin: 0; }
  .pill, .pill-short { width: auto; padding: 0 18px; }
  .banner { grid-column: 1; grid-row: 2; margin: 12px 0 0; }
  .content, .content-wide { grid-column: 1; grid-row: 3; padding: 16px; border-top: 0; }
  .sidebar { grid-column: 1; grid-row: 4; border: 0; border-top: 1px solid var(--rule); padding: 16px; }
  .wordmark-row { grid-column: 1; grid-row: 5; border: 0; }
  .hero { flex-wrap: wrap; }
  .cols { flex-wrap: wrap; }
  .col-img { max-width: 100%; }
  .tiles { gap: 14px; }
  .tile { display: none; }
  .tile-globe { display: block; width: 60px; height: 60px; }
  .logo { width: 60px; height: 60px; }
}
