/* ==========================================================================
   Genesis E.W.
   Built to match the original ewgenesis.com. Every colour below was sampled
   straight off a rendered screenshot of the original site:

     page surround   #AAA8A8      content panel   #565454
     nav panel       #4E4C4C      image panel     #4A4A4A
     button face     #C8C6C6 -> #A8A6A6
     button label    #B51212      body text       #FFFFFF
     highlight       #E87979      banner border   #F3F3F3

   Layout: a fixed 980px column on a grey surround, the banner across the top,
   a row of buttons beneath it, and a second column of buttons down the left
   side of the content.
   ========================================================================== */

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* the side buttons jump here — leave a little air above the landing point */
.sect[id]{scroll-margin-top:16px}
body,h1,h2,h3,h4,p,figure,ul,ol,dl,dd{margin:0}
ul[class],ol[class]{list-style:none;padding:0}
/* the nav and footer lists carry no class of their own — strip their markers too */
.topnav ul,.side ul,.foot ul,.org-kids{list-style:none;margin:0;padding:0}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* ---------- tokens ---------- */
:root{
  --site:      980px;

  --surround:  #AAA8A8;
  --panel:     #565454;
  --nav-panel: #4E4C4C;
  --imgbox:    #4A4A4A;
  --edge:      #F3F3F3;
  --edge-dim:  #6E6C6C;

  --btn-1:     #D2D0D0;
  --btn-2:     #A8A6A6;
  --btn-1-h:   #E6E4E4;
  --btn-2-h:   #BEBCBC;
  --btn-txt:   #B51212;

  --txt:       #FFFFFF;
  --txt-dim:   #DCDADA;

  /* The original highlighted phrases in salmon #E87979. Measured against the
     #565454 panel that is 2.67:1 — far below the 4.5:1 needed to read as text,
     which is why it looked muddy. Gold sits in the same warm family as the
     banner's red-orange and measures 4.68:1. Brand red survives where it
     belongs: on the light button faces, where it runs about 7:1. */
  --hl:        #FFC24D;   /* 4.68:1 on the panel */
  --hl-soft:   #FFD9A0;   /* 5.62:1 — for longer runs of highlighted text */
  --hl-rule:   rgba(255,194,77,.38);

  --f: Arial, Helvetica, sans-serif;
  /* the original set the highlighted phrases in Comic Sans.
     Change this one line to var(--f) to retire it site-wide. */
  --f-hl: "Comic Sans MS", "Comic Sans", var(--f);
}

/* ---------- base ---------- */
body{
  background:var(--surround);
  color:var(--txt);
  font-family:var(--f);
  font-size:16px;
  line-height:1.6;
}
/* Phones get a size up: the column is narrower there, so the same text is
   harder work than on a desktop screen. */
@media (max-width:820px){ body{font-size:17px;line-height:1.62} }

.wrap{
  width:var(--site);
  max-width:100%;
  margin:0 auto;
  background:var(--panel);
}

/* ---------- banner ----------
   The antenna photo is masked into a circle, and the wedge outside it in the
   top-left corner is filled with a flat #D1D6DB. Editing that out of the file
   would mean re-encoding a five-frame animated GIF, so the wedge is covered
   here instead and the animation is left untouched.

   Measured off the artwork (759x116): the circle sits at (101.5, 100.7) with
   radius 101.6. The overlay box is 13% of the banner width, so in its own
   coordinates the circle lands at 102.87% / 86.81% with radii 102.97% / 87.59%.
   Everything is expressed in percentages, so it holds at any rendered size. */
.banner{
  position:relative;
  border:3px solid var(--edge);
  border-bottom:0;
  background:var(--panel);
  line-height:0;
}
.banner img{width:100%}
.banner::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:13%;
  pointer-events:none;
  background:radial-gradient(
    ellipse 102.97% 87.59% at 102.87% 86.81%,
    transparent 99.3%, var(--panel) 99.7%);
}

/* ---------- buttons (shared by the top row and the side column) ---------- */
.btn{
  display:block;
  padding:11px 10px;
  background:linear-gradient(180deg,var(--btn-1) 0%,var(--btn-1) 45%,var(--btn-2) 100%);
  border:1px solid #8E8C8C;
  border-radius:6px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(0,0,0,.35);
  color:var(--btn-txt);
  font-size:13px;font-weight:bold;
  letter-spacing:.06em;text-transform:uppercase;
  text-align:center;text-decoration:none;
  white-space:nowrap;
}
.btn:hover{
  background:linear-gradient(180deg,var(--btn-1-h) 0%,var(--btn-1-h) 45%,var(--btn-2-h) 100%);
}
.btn[aria-current]{
  background:linear-gradient(180deg,#FFFFFF 0%,#EDEBEB 100%);
  box-shadow:inset 0 0 0 1px #B51212, 0 1px 2px rgba(0,0,0,.35);
}
/* the Genesis System House button carries a longer, mixed-case label */
.btn.btn-wide{text-transform:none;letter-spacing:.02em;font-size:12.5px}

/* --- top row --- */
.topnav{
  background:var(--nav-panel);
  border:3px solid var(--edge);
  border-top:0;border-bottom:0;
  padding:10px 12px;
}
.topnav ul{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.topnav li{flex:0 1 auto}
.topnav .btn{min-width:118px}

/* --- mobile: fold the top row behind a Menu button ---
   Seven buttons stacked took over 200px, so on a phone more than half the first
   screen was navigation before a word of content. Closed by default; the button
   itself stays, so nothing is unreachable without JavaScript — the list simply
   renders open when the script has not run. */
.navtoggle{
  display:none;
  width:100%;
  padding:13px 14px;
  background:var(--nav-panel);
  border:3px solid var(--edge);
  border-top:0;border-bottom:0;
  color:var(--hl);
  font-family:var(--f);
  font-size:15px;font-weight:bold;
  letter-spacing:.1em;text-transform:uppercase;
  text-align:center;cursor:pointer;
}
.navtoggle::after{content:" \25BE";display:inline-block;transition:transform .2s}
.navtoggle[aria-expanded="true"]::after{transform:rotate(180deg)}

/* The collapse only engages once site.js has marked the document, so with
   JavaScript off there is no dead Menu button and the full row stays visible. */
@media (max-width:800px){
  .topnav{padding:0 12px}
  .topnav ul{flex-direction:column;gap:7px;padding:11px 0 13px}
  .topnav .btn{min-width:0;width:100%;padding:13px 10px}

  .js-nav .navtoggle{display:block}
  .js-nav .topnav ul{display:none}
  .js-nav .topnav.is-open ul{display:flex}
}

/* --- side column --- */
.side{
  flex:0 0 168px;
  background:var(--nav-panel);
  border:1px solid var(--edge-dim);
  border-radius:4px;
  padding:12px 10px;
  align-self:flex-start;
}
.side h2{
  color:var(--hl);
  font-size:13px;font-weight:bold;
  letter-spacing:.1em;text-transform:uppercase;
  margin-bottom:9px;text-align:center;
  padding-bottom:7px;
  border-bottom:1px solid var(--hl-rule);
}
.side ul{display:flex;flex-direction:column;gap:9px}
.side .btn{padding:12px 8px;white-space:normal}

/* ---------- body shell ---------- */
.shell{
  border:3px solid var(--edge);
  border-top:0;
  background:var(--panel);
  padding:16px 14px 22px;
}
.cols{display:flex;gap:16px;align-items:flex-start}
.main{flex:1 1 auto;min-width:0}

@media (max-width:820px){
  .cols{flex-direction:column}
  .side{flex:1 1 auto;width:100%}
  .side ul{flex-direction:row;flex-wrap:wrap}
  .side li{flex:1 1 150px}
}

/* ---------- typography ---------- */
h1,h2,h3,h4{color:var(--txt);line-height:1.25;font-weight:bold}

/* Justified text needs room. On a phone the lines are short enough that
   justification opens ragged gaps between words — white rivers running down the
   column — so below 700px it reverts to a plain left edge.
   The measure cap keeps desktop lines readable: the panel runs about 760px and
   unbroken technical prose across all of it is tiring to track. */
p{margin-bottom:11px;text-align:justify;max-width:74ch}
p:last-child{margin-bottom:0}
ul.bul{max-width:74ch}
@media (max-width:700px){ p{text-align:left} }
strong{font-weight:bold;color:#fff}

/* the original's highlighted phrases, recoloured to gold so they actually read */
.hl{font-family:var(--f-hl);font-weight:bold;color:var(--hl)}

a.link{color:var(--hl);text-decoration:underline}
a.link:hover{color:#fff}

.small{font-size:14px}
.dim{color:var(--txt-dim)}

/* ---------- section headings ----------
   These were getting lost: an 18px white h2 sitting directly on white body copy
   read as another paragraph. Each level now carries a device of its own —
   a gold bar and a tinted plate for sections, a gold rule for sub-headings —
   so the hierarchy is obvious before a word is read. */
.head{
  background:rgba(0,0,0,.24);
  border-left:5px solid var(--hl);
  border-bottom:1px solid var(--edge-dim);
  padding:9px 14px;
  margin-bottom:15px;
}
.head h1,.head h2{margin-bottom:0}
.head h1{font-size:25px;letter-spacing:.005em}
.head h2{font-size:20px;letter-spacing:.05em;text-transform:uppercase}

/* bare headings, used inside boxes and cards */
h1{font-size:25px;margin-bottom:10px}
h2{font-size:20px;margin-bottom:9px}

/* sub-heading — product and component names */
h3{
  font-size:17px;
  color:var(--hl);
  margin:19px 0 7px;
  padding-bottom:4px;
  border-bottom:1px solid var(--hl-rule);
}
h3:first-child{margin-top:0}
h4{font-size:15px;margin-bottom:5px;color:var(--hl-soft)}

.sect{margin-bottom:26px}
.sect:last-child{margin-bottom:0}

/* ---------- content boxes ---------- */
.box{
  background:var(--imgbox);
  border:1px solid var(--edge-dim);
  border-top:3px solid var(--hl);
  padding:13px 15px;
}
.box h3{margin-top:0}

.row{display:flex;flex-wrap:wrap;gap:14px}
.col{flex:1 1 260px;min-width:0}

/* ---------- lists ---------- */
ul.bul{margin:0 0 11px}
ul.bul li{position:relative;padding-left:14px;margin-bottom:4px}
ul.bul li::before{
  content:"";position:absolute;left:0;top:.6em;
  width:5px;height:5px;background:var(--hl);
}

/* ---------- spec tables ---------- */
table.specs{width:100%;border-collapse:collapse;margin-bottom:11px}
table.specs th,table.specs td{
  text-align:left;vertical-align:top;
  padding:7px 9px;border-bottom:1px solid var(--edge-dim);font-size:15px;
}
table.specs th{width:130px;color:var(--hl);font-weight:bold;white-space:nowrap}
@media (max-width:560px){
  table.specs th,table.specs td{display:block;width:auto;border-bottom:0;padding:2px 0}
  table.specs td{border-bottom:1px solid var(--edge-dim);padding-bottom:7px;margin-bottom:5px}
}

/* ---------- images ---------- */
figure.pic{
  margin-bottom:12px;
  background:var(--imgbox);
  border:1px solid var(--edge-dim);
  padding:5px;
}
figure.pic img{width:100%}
figure.pic figcaption{
  padding:7px 3px 2px;font-size:14px;color:var(--hl);text-align:center;
}
.pic-row{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.pic-row figure.pic{flex:1 1 260px;margin-bottom:0;display:flex;flex-direction:column}
/* keep side-by-side pictures the same height even when their sources differ */
.pic-row figure.pic img{flex:1 1 auto;object-fit:cover;min-height:0}

/* the right-hand image panel the original home page carried */
.aside{flex:0 0 250px}
.aside figure.pic{margin-bottom:12px}
@media (max-width:820px){.aside{flex:1 1 auto;width:100%}}

/* ---------- people ---------- */
.person{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:18px}
.person-photo{flex:0 0 140px}
.person-photo img{width:140px;border:1px solid var(--edge-dim)}
.person-body{flex:1 1 320px;min-width:0}
.person-body h3{margin-bottom:1px;color:#fff;font-size:16px}
.person-role{color:var(--hl);font-weight:bold;font-size:14px;margin-bottom:8px}

/* ---------- org chart ---------- */
.org{text-align:center;margin-bottom:12px}
.org-top{
  display:inline-block;border:1px solid var(--edge);
  background:var(--imgbox);padding:9px 16px;font-weight:bold;
}
.org-line{width:2px;height:14px;background:var(--edge);margin:0 auto}
.org-kids{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.org-kid{flex:1 1 240px;border:1px solid var(--edge-dim);padding:9px 12px;background:var(--imgbox)}
.org-kid b{display:block}
.org-kid span{font-size:14px;color:var(--txt-dim)}

/* ---------- timeline ---------- */
dl.tl{margin:0}
dl.tl dt{color:var(--hl);font-weight:bold;font-size:14px;margin-top:10px}
dl.tl dd{margin:0 0 3px}

/* ---------- footer ---------- */
/* One address line and a copyright line. The navigation is already in two
   places above; repeating it a third time here earned nothing. */
.foot{
  border:3px solid var(--edge);
  border-top:1px solid var(--edge-dim);
  background:var(--nav-panel);
  padding:13px 16px;
  font-size:14px;color:var(--txt-dim);
  text-align:center;
}
.foot a{color:var(--hl)}
.foot a:hover{color:#fff}
.foot address{font-style:normal;line-height:1.9}
.foot address strong{color:#fff}
.foot-base{
  border-top:1px solid var(--edge-dim);
  margin-top:10px;padding-top:9px;
  display:flex;flex-wrap:wrap;gap:5px 18px;justify-content:space-between;
  font-size:13px;
}
@media (max-width:640px){.foot-base{justify-content:center;text-align:center}}

/* ---------- album ----------
   Thumbnails are plain links to the full-size picture, so with JavaScript off
   the album still works — a click just opens the image. With JavaScript on,
   the viewer below takes over. */
.album{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:10px;
  margin-bottom:12px;
}
.album a{
  display:block;position:relative;
  border:1px solid var(--edge-dim);
  background:var(--imgbox);
  padding:4px;
  text-decoration:none;
}
.album a:hover,.album a:focus-visible{border-color:var(--hl)}
.album img{width:100%;display:block}
.album .cap{
  display:block;padding:6px 2px 2px;
  font-size:14px;color:var(--hl);text-align:center;line-height:1.35;
}
/* magnifier badge, so it reads as "opens larger" */
.album a::after{
  content:"";position:absolute;top:9px;right:9px;
  width:20px;height:20px;border-radius:50%;
  background:rgba(0,0,0,.55) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFC24D' stroke-width='1.8'%3E%3Ccircle cx='7' cy='7' r='4.2'/%3E%3Cpath d='M10.2 10.2 14 14' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
  opacity:0;transition:opacity .18s;
}
.album a:hover::after{opacity:1}

/* ---------- album viewer ---------- */
.viewer{
  position:fixed;inset:0;z-index:200;
  display:none;
  background:rgba(0,0,0,.92);
  padding:52px 58px 66px;
}
.viewer.is-on{display:block}
.viewer-stage{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
}
.viewer-stage img{max-width:100%;max-height:100%;object-fit:contain;border:1px solid var(--edge-dim)}
.viewer-cap{
  position:absolute;left:0;right:0;bottom:22px;
  text-align:center;color:#fff;font-size:14px;padding:0 20px;
}
.viewer-cap b{color:var(--hl);font-weight:bold}
.viewer-count{
  position:absolute;top:18px;left:22px;
  font-size:12px;letter-spacing:.14em;color:var(--hl);
}
.viewer button{
  position:absolute;
  background:linear-gradient(180deg,var(--btn-1) 0%,var(--btn-1) 45%,var(--btn-2) 100%);
  border:1px solid #8E8C8C;border-radius:6px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 2px 6px rgba(0,0,0,.5);
  color:var(--btn-txt);cursor:pointer;
  font-family:var(--f);font-size:15px;font-weight:bold;line-height:1;
}
.viewer button:hover{background:linear-gradient(180deg,var(--btn-1-h) 0%,var(--btn-1-h) 45%,var(--btn-2-h) 100%)}
.viewer .v-prev,.viewer .v-next{top:50%;transform:translateY(-50%);width:40px;height:56px}
.viewer .v-prev{left:10px}
.viewer .v-next{right:10px}
.viewer .v-close{top:14px;right:14px;width:40px;height:34px}
@media (max-width:600px){
  .viewer{padding:48px 12px 74px}
  .viewer .v-prev,.viewer .v-next{top:auto;bottom:16px;transform:none;width:52px;height:38px}
  .viewer .v-prev{left:16px}
  .viewer .v-next{right:16px}
}

/* ---------- video ---------- */
.videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.vid{border:1px solid var(--edge-dim);background:var(--imgbox);padding:5px}
.vid video{width:100%;display:block;background:#000}
.vid h3{margin:8px 4px 3px;border:0;padding:0;font-size:15px}
.vid p{margin:0 4px 6px;font-size:14px;color:var(--txt-dim);text-align:left;max-width:none}
.vid .missing{
  display:block;padding:34px 14px;text-align:center;
  color:var(--txt-dim);font-size:13px;line-height:1.6;
  background:repeating-linear-gradient(45deg,#3E3C3C,#3E3C3C 10px,#444242 10px,#444242 20px);
}

/* ---------- back to top ----------
   Appears once the reader is a screen down, in the same button language as the
   navigation. Hidden from the accessibility tree while it is invisible so it
   never becomes a stray tab stop. */
.totop{
  position:fixed;
  right:18px;bottom:18px;z-index:60;
  display:flex;align-items:center;gap:7px;
  padding:9px 14px;
  background:linear-gradient(180deg,var(--btn-1) 0%,var(--btn-1) 45%,var(--btn-2) 100%);
  border:1px solid #8E8C8C;
  border-radius:6px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 2px 6px rgba(0,0,0,.5);
  color:var(--btn-txt);
  font-family:var(--f);
  font-size:13px;font-weight:bold;
  letter-spacing:.06em;text-transform:uppercase;
  text-decoration:none;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .22s,transform .22s,visibility .22s,background .2s;
}
.totop.is-on{opacity:1;visibility:visible;transform:none}
.totop:hover{background:linear-gradient(180deg,var(--btn-1-h) 0%,var(--btn-1-h) 45%,var(--btn-2-h) 100%)}
.totop svg{width:11px;height:11px;flex:none}
@media (max-width:600px){
  .totop{right:12px;bottom:12px;padding:9px 11px}
  .totop span{display:none}
}
@media (prefers-reduced-motion:reduce){.totop{transition:none}}

/* ---------- skip link ---------- */
.skip{
  position:absolute;top:6px;left:6px;z-index:99;
  background:#fff;color:var(--btn-txt);padding:7px 13px;
  font-size:13px;font-weight:bold;text-decoration:none;
  transform:translateY(-160%);transition:transform .2s;
}
.skip:focus{transform:none}

/* ---------- print ---------- */
@media print{
  .topnav,.side,.skip{display:none}
  body{background:#fff;color:#000;font-size:11pt}
  .wrap,.shell,.box,figure.pic{background:#fff;border-color:#bbb;color:#000}
  h1,h2,h3,h4,strong{color:#000}
  .hl{color:#000;font-family:var(--f)}
}
