/* ===== Header, menu, contact form - Terry Lewis Books static site (hand-written; matches the Polo look) ===== */
:root{--accent:rgb(72,25,13);--bar:rgb(37,37,37)}

/* ---------- header (not sticky on the live site) ---------- */
.th{position:relative;z-index:1000;height:80px;font-family:"Open Sans",Helvetica,Arial}
.th-bar{background:var(--bar);border-bottom:1px solid rgb(41,41,41);min-height:81px}
.th-in{position:relative;height:80px;padding:0 30px;display:flex;align-items:center;justify-content:space-between}
.th-logo{display:block;line-height:0}
.th-logo img{width:239px;height:80px;max-width:none;object-fit:contain}
.th-nav ul{list-style:none;margin:0;padding:0;display:flex}
.th-nav li{height:80px;display:flex;align-items:center;transition:.3s}
.th-nav li.current{background:var(--accent)}
.th-nav a{display:inline-block;padding:11px 14px;font-family:Raleway,Helvetica,Arial,sans-serif;font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;line-height:14px;color:#fff;transition:.3s}
.th-toggle{display:none}

/* ---------- under 992px: hamburger left, logo centred, menu drops down in the page ---------- */
@media (max-width:991.98px){
  .th.open{height:auto}
  .th-in{height:auto;min-height:80px;padding:0 15px;justify-content:center;flex-wrap:wrap}
  .th-logo{height:80px;display:flex;align-items:center}
  .th-toggle{display:flex;align-items:center;position:absolute;left:15px;top:0;width:16px;height:80px;padding:0;border:0;background:none;cursor:pointer}
  .th-toggle span,.th-toggle span::before,.th-toggle span::after{display:block;width:16px;height:2px;background:#fff;transition:.3s}
  .th-toggle span{position:relative}
  .th-toggle span::before,.th-toggle span::after{content:"";position:absolute;left:0}
  .th-toggle span::before{top:-5px}.th-toggle span::after{top:5px}
  .th.open .th-toggle span{background:transparent}
  .th.open .th-toggle span::before{top:0;transform:rotate(45deg)}
  .th.open .th-toggle span::after{top:0;transform:rotate(-45deg)}
  .th-nav{flex:0 0 100%;max-height:0;overflow:hidden;opacity:0;padding:0;transition:max-height .8s cubic-bezier(.79,.14,.15,.86),opacity .8s cubic-bezier(.79,.14,.15,.86)}
  .th.open .th-nav{max-height:400px;opacity:1}
  .th-nav ul{display:block;padding:0 0 20px}
  .th-nav li{display:block;height:39px}
  .th-nav li.current{background:none}
  .th-nav a{display:block;padding:12px 0;font-size:13px;line-height:15px;color:rgb(238,238,238)}
  .th-nav li.current a{color:rgb(86,86,86)}
}

/* ---------- Get in Touch form (native replacement for the DNN module) ---------- */
.tf-hp{position:absolute!important;left:-5000px!important;width:1px;height:1px;overflow:hidden}
.tf-msg{margin:15px 0 0;padding:12px 15px;font-size:14px;line-height:22px}
.tf-msg.ok{background:#eaf5ea;color:#2d5d2d}
.tf-msg.err{background:#fbeaea;color:#8a1f1f}
