/* ===== Days To Live — three-line ("hamburger") menu =====
   Used by default.html, Signs.html, About.html, ArtPage.html.
   Markup lives in each page inside <nav class="dtl-nav">; behaviour is in js/dtl-menu.js. */

/* takes the place of the old link bar, so the page content below doesn't move */
.dtl-nav{position:relative;height:47px;z-index:1000;font-family:Georgia,"Times New Roman",serif}

/* the three-line button */
.dtl-burger{position:absolute;top:2px;left:12px;width:48px;height:44px;padding:0;margin:0;
  background:transparent;border:0;border-radius:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dtl-burger:focus-visible{outline:2px solid #ff3b30;outline-offset:2px}
.dtl-burger span{position:absolute;left:9px;width:30px;height:3px;border-radius:2px;background:red;
  transition:transform .25s ease,opacity .2s ease,top .25s ease}
.dtl-burger span:nth-child(1){top:12px}
.dtl-burger span:nth-child(2){top:21px}
.dtl-burger span:nth-child(3){top:30px}
@media (hover:hover){ .dtl-burger:hover span{background:rgb(102,178,255)} }  /* mouse only: phones keep "hover" stuck after a tap */
/* open: the lines become an X */
.dtl-nav.open .dtl-burger span:nth-child(1){top:21px;transform:rotate(45deg)}
.dtl-nav.open .dtl-burger span:nth-child(2){opacity:0}
.dtl-nav.open .dtl-burger span:nth-child(3){top:21px;transform:rotate(-45deg)}

/* the drop-down panel */
.dtl-panel{position:absolute;top:52px;left:12px;width:min(300px,calc(100vw - 24px));margin:0;padding:0;list-style:none;
  background:#141414;border:1px solid #3a3a3a;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.7);overflow:hidden}
.dtl-panel[hidden]{display:none}
.dtl-panel li{margin:0;padding:0;border-top:1px solid #333}
.dtl-panel li:first-child{border-top:0}

/* links (strong selectors so the site's older link rules don't add padding or colour) */
.dtl-nav .dtl-panel a,
.dtl-nav .dtl-panel a:link,
.dtl-nav .dtl-panel a:visited{display:block;margin:0;padding:15px 22px;font-size:22px;line-height:1.2;
  color:#f2f2f2;background:transparent;text-decoration:none;border:0;text-align:left}
.dtl-nav .dtl-panel a:hover,
.dtl-nav .dtl-panel a:focus-visible{background:#2a2a2a;color:#fff;outline:none}
.dtl-nav .dtl-panel a[aria-current="page"]{color:red}

/* Art row with its own sub-menu */
.dtl-row{display:flex;align-items:stretch}
.dtl-row a{flex:1}
.dtl-sub-toggle{width:56px;background:transparent;border:0;border-left:1px solid #333;color:#f2f2f2;cursor:pointer}
.dtl-sub-toggle:hover{background:#2a2a2a}
.dtl-sub-toggle svg{width:16px;height:16px;transition:transform .2s ease}
.dtl-sub-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.dtl-sub{margin:0;padding:0;list-style:none;background:#0d0d0d;border-top:1px solid #333}
.dtl-sub[hidden]{display:none}
.dtl-nav .dtl-sub a,
.dtl-nav .dtl-sub a:link,
.dtl-nav .dtl-sub a:visited{font-size:18px;padding:12px 22px 12px 40px;color:#cfcfcf}

@media (prefers-reduced-motion: reduce){
  .dtl-burger span,.dtl-sub-toggle svg{transition:none}
}

/* Art pages: the button floats in the empty top-left corner instead of taking up a row */
.dtl-nav.dtl-nav--overlay{height:0}
