/* Base needed by product.cfm */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
img { max-width:100%; height:auto; display:block; }
body {
  font-family: Arial, sans-serif;
  color:#111;
  background:#f3ebe0;
}
a { color: inherit; text-decoration: none; }
.container { max-width:1200px; margin:0 auto; padding:0 16px; }
.section { padding:24px 0; }
h1,h2,h3 { margin:0 0 12px; line-height:1.25; }
h2 { font-size:22px; }
.tiny { font-size:12px; color:#6b7280; }

/* Buttons used by product.cfm */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  line-height:1.2;
  border-radius:8px;
  border:1px solid transparent;
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  font-size:15px;
}
.btn-primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-secondary { background:#fff; color:#111; border:1px solid #111; padding:8px 16px; font-weight:500; }
.btn:hover{ filter:brightness(1.05); }
.btn-primary:hover{ filter:brightness(1.08); }
.btn-secondary:hover{ background:var(--primary); color:#fff; }

/* Alerts used by product error view */
.alert {
  display: none;
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}
.alert.show { display: block; }
.alert-error {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
@keyframes shake {
  0%,100%{ transform: translateX(0); }
  20%{ transform: translateX(-6px); }
  40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); }
  80%{ transform: translateX(4px); }
}
.alert.attention { animation: shake .36s ease both; }
@media (max-width: 900px){
  .alert{ margin: 8px 0 12px; }
}

/* =========================================
   PRODUCT PAGE (product.cfm)
   ========================================= */
.product-page { padding: 0 0 20px; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items:start;
  overflow:visible;
}

/* Image area */
.product-images {
  position: relative;
  padding: 12px;
  background: transparent;
  border: none;
  overflow: visible;
  box-sizing: border-box;
}

.product-images .carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3ebe0;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px){
  .product-images .carousel-container { aspect-ratio: 1.1; }
}
@media (min-width:901px){
  .product-images{ padding-bottom:90px; }
}
.product-images .carousel-slides-inner,
#carousel-slides {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform .3s ease-in-out;
  will-change: transform;
}

.carousel-slide { 
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}
.carousel-slide img { 
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.carousel-nav:hover { opacity: 1; }
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

@media (max-width: 900px) {
  .carousel-container { position: relative; }
  .carousel-nav {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    opacity: .9;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
  }
  .carousel-nav.prev { left: 6px; }
  .carousel-nav.next { right: 6px; }
}

.product-images,
.carousel-slide img {
  max-height: 85vh;
}

/* Guarantee seal overlay */
#carousel-slides{position:relative}
.hero-badge{position:absolute;top:8px;left:8px;width:clamp(56px,18vw,88px);z-index:9;pointer-events:none}
.hero-badge img{width:100%;height:auto;display:block}
@media (min-width:768px){.hero-badge{width:112px;top:10px;left:10px}}

/* Thumbnails */
.product-images .thumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  justify-content:center;
}
.product-images .thumbs img{
  width:70px !important;
  height:70px !important;
  flex:0 0 70px;
  object-fit:contain;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}
#image-thumbnails.thumbs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}
#image-thumbnails.thumbs img {
  width: 60px; 
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}
#image-thumbnails.thumbs img.active { border-color: #007bff; }

/* Details column */
.product-details {
  background:#fff;
  border:1px solid #ddd;
  border-radius:10px;
  padding:16px;
}
.product-details h1 {
  font-size:24px;
  margin:0 0 6px;
}
.product-title{ font-size: clamp(1.25rem, 5.2vw, 1.75rem); margin: 0 16px; }
.product-details .price {
  font-size:22px;
  font-weight:800;
  margin:0;
}
.product-details, .product-details * { pointer-events: auto !important; }

.product-details .purchase-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:100%;
  flex-wrap:nowrap;
  overflow:hidden;
}
.product-details .purchase-row .price{
  font-size:22px;
  font-weight:800;
  margin:0;
  line-height:1;
  flex:0 1 auto;
  min-width:0;
}
.product-details .purchase-row .purchase-actions{
  display:flex;
  gap:8px;
  margin-left:auto;
  flex:0 0 auto;
  position:static;
  float:none;
}
.product-details .purchase-row .purchase-actions .btn{
  display:inline-flex;
  width:auto;
  min-width:0;
  white-space:nowrap;
  font-size:.85rem;
  padding:4px 12px;
}
.product-details .purchase-row .purchase-actions .btn i{ margin-right:4px; }
.purchase-note {
  margin: 10px 0 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: center;
  line-height: 1.4;
}

/* Options */
.option-group { margin-top:0.25rem; margin-bottom:0.25rem; }
.option-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.option-label {
  display: inline-block;
  font-weight: 600;
  color: #374151;
  margin-right: 6px;
  white-space: nowrap;
}
.option-row .colors {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* Size buttons */
.sizes .size-btn{
  height:50px;
  min-width:50px;
  padding:0 16px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  color:#111;
  font-weight:700;
  font-size:14px;
  line-height:50px;
  cursor:pointer;
  transition:background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.sizes .size-btn:is(:hover,:focus){ border-color: var(--primary); box-shadow:0 0 0 2px rgba(30,64,175,.10); outline:none; }
.sizes .size-btn.is-selected{ background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 0 0 2px rgba(30,64,175,.15); }
@media (max-width: 900px) {
  .sizes .size-btn {
    min-width: 40px;
    height: 34px;
    font-size: 0.8rem;
    padding: 0 6px;
  }
}

/* Color buttons */
.colors .color-btn{
  width:50px;
  height:50px;
  border:3px solid #999;
  border-radius:50%;
  margin:0 6px 6px 0;
  cursor:pointer;
  display:inline-block;
  position:relative;
  transition:border-color .15s, box-shadow .15s, transform .05s;
}
.colors .color-btn:is(:hover,:focus){ border-color:var(--primary); box-shadow:0 0 0 2px rgba(30,64,175,.10); outline:none; }
.colors .color-btn.is-selected{ border-color:var(--primary); box-shadow:0 0 0 2px rgba(30,64,175,.25); }
.colors .color-btn.is-selected::after{
  content:"\2713";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-size:22px;
  font-weight:900;
  color:var(--checkmark-color, #fff);
  text-shadow:0 1px 2px rgba(0,0,0,.25);
}
.colors .color-btn.is-selected::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.18);
  pointer-events:none;
}

#selected-color-name {
  display: inline-block;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
#selected-color-name::after {
  content: "";
  display: block;
  flex-basis: 100%;
  height: 0;
}
.product-details .option-group.colors .option-row {
  display: flex;
  flex-wrap: wrap;
}
.product-details .option-group.colors .option-label {
  flex: 1 0 100%;
  margin-bottom: 6px;
}
.product-details .option-group.colors .option-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Qty */
.quantity select,
.qty select {
  padding:8px 10px;
  border:1px solid #d1d5db;
  border-radius:8px;
}

/* Product form controls */
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="search"],
.form input[type="number"],
.form select {
  height:44px;
  padding:0 12px;
  border:2px solid #e6e6e6;
  border-radius:10px;
  background:#fff;
}
.form input:focus, .form select:focus { outline:none; border-color:#bfbfbf; box-shadow:0 0 0 3px rgba(0,0,0,.06); }
.form input, .form select, .form textarea { width:100%; }
.form label { margin-top: 6px; }

/* Large Add to Cart Button */
.btn-atc-large {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  margin: 16px 0 20px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-atc-large:hover { background: linear-gradient(90deg, #1d4ed8 0%, #1e40af 100%); }
.btn-atc-large:active { transform: scale(0.98); }
.add-to-cart-block { margin-top: 10px; }
@media (min-width: 900px) {
  .btn-atc-large {
    max-width: 360px;
    margin: 18px auto 24px;
    font-size: 1rem;
  }
}

/* Tabs */
.tabs { display:flex; gap:18px; border-bottom:1px solid #e5e7eb; margin-top:8px; }
.tab { padding:10px 0; background:none; border:none; font-weight:600; cursor:pointer; }
.tab.active { color: var(--primary); border-bottom:2px solid var(--primary); }
.tab-content { display:none; padding:12px 0 6px; }
.tab-content.active { display:block; }

/* Trust badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom:56px;
}
.trust-badges .badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: #374151;
  transition: box-shadow 0.2s ease-in-out;
  min-height:116px;
}
.trust-badges .badge img {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}
.trust-badges .badge:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
@media (max-width: 768px){
  .product-details + .trust-badges,
  .purchase-row + .trust-badges{
    margin-top: 10px;
    gap: 12px;
  }
  .trust-badges .badge{ padding: 12px; }
}

/* Mobile product overrides only */
@media (max-width:900px){
  html, body{ overflow-x: hidden; }
  form{
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .product-layout{
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:
      "images"
      "details";
    gap: 1px;
  }
.product-page::after{
  content:"";
  display:block;
  clear:both;
}
  .product-images{ grid-area: images; }
  .product-details{ grid-area: details; }
  .purchase-row .btn-primary{ width: auto !important; display: inline-flex !important; flex-shrink: 0; min-width:0 !important }
  .product-images .main-wrap{
    padding: 6px;
    border-radius:14px;
    background:#fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
  }
  .product-images .main-wrap img{
    width:100%;
    height:auto;
    max-height:420px;
    object-fit: contain;
    object-position: center;
  }
  .thumbs, .thumbnail-strip, .product-thumbs{ display:none !important; }
  .product-details, .tab-panel, .tab-content{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .product-title{
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .actions{ margin:12px 16px 0; display:flex; gap:12px; flex-wrap:wrap; }
  .actions .btn-primary{ width:100%; min-height:44px; border-radius:9999px; font-weight:700; }
  .sizes, .colors{ display:flex; flex-wrap:wrap; gap:8px; }
  .size-btn, .color-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    height:44px;
    padding:0 12px;
    border-radius:9999px;
    border:1px solid #e5e7eb;
    background:#fff;
    font-weight:600;
  }
  .size-btn.selected, .color-btn.selected,
  .size-btn.is-selected, .color-btn.is-selected{
    border-color:#1f4fd1;
    box-shadow:0 0 0 3px rgba(31,79,209,.12);
  }
  .trust-badges{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin:16px 16px 0;
  }
  .trust-badges .badge{
    background:#fff;
    border-radius:14px;
    box-shadow:0 6px 16px rgba(0,0,0,.06);
    padding:16px;
    text-align:center;
  }
  .trust-badges .badge img{ width:36px; height:36px; margin:0 auto 8px; }
  .trust-badges .badge div{ font-weight:700; color:#111827; }
  .tab-panel, .tab-content{ padding:12px 0; color:#374151; }
}

/* Phone purchase row */
@media (max-width: 480px){
  #product-details .product-subheading { font-size: 0.9rem; margin-top: 2px !important; line-height: 1.25; }
  #product-details h2 { margin-top: 0; margin-bottom: 0.2rem; }
  .product-details .purchase-row{
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
    display:flex;
    align-items:center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
  }
  .product-details .purchase-row .price{
    font-size: 1rem;
    margin-right: 6px;
    white-space: nowrap;
    min-width: 0;
  }
  .product-details .purchase-row .purchase-actions{
    display:flex;
    align-items:center;
    gap: 6px;
    flex: 0 0 auto;
    width: auto;
    margin-left: 0;
    white-space: nowrap;
  }
  .product-details .purchase-row .purchase-actions .btn{
    display:inline-flex;
    align-items:center;
    width:auto;
    min-width:0;
    padding: 6px 8px;
    font-size: .82rem;
  }
  .purchase-actions .btn.btn-primary{
    padding: 8px 12px;
    font-weight: 700;
  }
  .product-details .purchase-row .purchase-actions a[href*="facebook.com/sharer"]{
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
    padding: 6px 10px;
    white-space: nowrap;
  }
  .product-details .purchase-row .purchase-actions a[href*="facebook.com/sharer"] i{
    font-size: 1rem;
    margin-right: 4px;
  }
}
/* ===========================
   Cart Drawer Only CSS
   Extracted from cart-drawer.cfm
   =========================== */

/* Backdrop */
.cd-overlay{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  top:var(--promo-h,0);
  background:rgba(0,0,0,.35);
  display:none;
  z-index:9996;
}

.cd-overlay.is-open{
  display:block;
}

/* Drawer panel */
.cd-panel{
  position:fixed;
  top:var(--promo-h,0);
  right:0;
  bottom:0;
  height:auto;
  width:min(420px,88vw);
  transform:translateX(100%);
  transition:transform .22s ease;
  z-index:9997;
  background:#fff;
  box-shadow:-10px 0 30px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  visibility:hidden;
  pointer-events:none;
}

.cd-panel.is-open{
  transform:translateX(0);
  visibility:visible;
  pointer-events:auto;
}

/* Header */
.cd-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px;
  border-bottom:1px solid #eee;
}

.cd-title{
  font-weight:700;
}

.cd-close{
  border:0;
  background:transparent;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

/* Body */
.cd-body{
  padding:12px 14px;
  overflow:auto;
  flex:1;
}

/* Cart line item */
.cd-item{
  display:flex;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #f0f0f0;
}

.cd-img{
  width:64px;
  height:64px;
  flex:0 0 64px;
  background:#f6f6f6;
  border-radius:8px;
  overflow:hidden;
}

.cd-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.cd-meta{
  flex:1;
  min-width:0;
}

.cd-name{
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.cd-sub{
  font-size:12px;
  color:#555;
  margin-top:2px;
}

.cd-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:6px;
}

.cd-qty{
  font-size:12px;
  color:#333;
}

.cd-price{
  font-weight:700;
}

/* Footer */
.cd-foot{
  position:sticky;
  bottom:0;
  background:#fff;
  border-top:1px solid #eee;
  padding:12px 14px;
  display:grid;
  gap:8px;
}

/* Microcopy */
.cd-save{
  text-align:center;
  font-size:.85rem;
  color:#6B7280;
  margin:2px 0 6px;
  line-height:1.2;
}

.cd-micro{
  text-align:center;
  font-size:.85rem;
  color:#6B7280;
  margin:-4px 0 2px;
}

/* Links */
.cd-link{
  border:0;
  background:transparent;
  padding:6px 0;
  font:inherit;
  color:#2563EB;
  text-decoration:underline;
  cursor:pointer;
  justify-self:center;
}

/* Body lock */
body.cd-lock{
  overflow:hidden;
}
/* ===========================
   Header + Footer Only CSS
   Extracted after reviewing header.cfm and footer.cfm
   =========================== */

:root{
  --content-max:1200px;
  --gutter:16px;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

a{
  color:inherit;
  text-decoration:none;
}

/* Promo bar */
.promo-bar{
  background:#000;
  color:#fff;
  text-align:center;
  font-size:14px;
  font-weight:600;
  padding:6px 0;
  letter-spacing:.3px;
}

.promo-bar a{
  color:#fff;
  text-decoration:underline;
}

.promo-bar a:hover{
  opacity:.85;
}

/* Header */
header.site{
  background:#f3ebe0;
  border-bottom:1px solid #e5e7eb;
  position:sticky;
  top:0;
  z-index:100;
}

header.site .container,
.hero .container{
  max-width:var(--content-max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

header.site .topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 16px;
  position:relative;
}

header.site .brand{
  display:flex;
  align-items:center;
}

header.site .brand img{
  height:96px;
  width:auto;
  display:block;
  z-index:20;
}

header.site .tagline{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:0 96px;
  max-width:none;
  text-align:center;
  z-index:10;
  font-family:"Playfair Display", Georgia, "Times New Roman", Times, serif;
  font-size:clamp(1.15rem, 1.25vw + .7rem, 1.7rem);
  font-weight:600;
  font-style:italic;
  line-height:1.3;
  letter-spacing:.3px;
  color:#2d2d2d;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width:900px){
  header.site .tagline{
    display:none;
  }
}

/* Header search */
header.site .search{
  flex:1;
  display:flex;
  justify-content:center;
  min-width:200px;
}

header.site .search form{
  display:flex;
  align-items:center;
  gap:8px;
}

header.site .search input[type="text"],
header.site .search input[type="search"]{
  height:40px;
  padding:0 14px;
  border:1px solid #cbd5e1;
  border-radius:9999px;
  width:min(520px, 60vw);
  background:#fff;
}

header.site .search button{
  height:40px;
  padding:0 14px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
}

.header-search{
  display:flex;
  align-items:center;
  flex-direction:row-reverse;
  position:relative;
  overflow:visible;
}

.header-search-toggle{
  background:transparent;
  border:0;
  color:inherit;
  cursor:pointer;
  font:inherit;
  line-height:1;
  padding:0;
}

.header-search-form{
  display:flex;
  align-items:center;
  max-width:0;
  opacity:0;
  overflow:hidden;
  transition:max-width .25s ease, opacity .18s ease;
  margin-right:0;
}

.header-search.is-open .header-search-form{
  max-width:190px;
  opacity:1;
  margin-right:8px;
}

.header-search-input{
  box-sizing:border-box;
  width:180px;
  border:1px solid #111;
  border-radius:999px;
  padding:7px 12px;
  font-size:14px;
  background:#fff;
}

@media (max-width:640px){
  .header-search.is-open .header-search-form{
    max-width:145px;
  }

  .header-search-input{
    width:140px;
  }
}

/* Header actions */
header.site .actions{
  display:flex;
  margin-right:0;
  align-items:center;
  gap:16px;
  min-width:72px;
  position:relative;
  z-index:50;
}

header.site .actions a{
  display:inline-flex;
  align-items:center;
}

.nav-cart{
  position:relative;
  display:inline-block;
}

.nav-cart .cart-badge{
  position:absolute;
  top:0;
  right:0;
  transform:translate(50%, -50%);
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 4px;
  border-radius:9999px;
  background:#d32;
  color:#fff;
  font-size:12px;
  font-weight:700;
  border:2px solid #fff;
  box-shadow:0 1px 2px rgba(0,0,0,.15);
  line-height:1;
}

.cart-badge:empty{
  display:none;
}

/* Nav row */
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.brand{
  font-weight:bold;
  font-size:18px;
}

.navlinks a{
  margin:0 8px;
  color:#374151;
}

.navlinks a:hover{
  text-decoration:underline;
}

header.site .navlinks{
  display:flex;
  justify-content:center;
  gap:24px;
  padding:8px 0 12px;
}

header.site .navlinks a{
  color:#374151;
  font-weight:600;
}

header.site .navlinks a.active{
  color:var(--primary);
  position:relative;
}

header.site .navlinks a.active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:3px;
  background:var(--primary);
  border-radius:3px;
}

/* Hamburger */
@media (min-width:901px){
  .hamburger{
    display:none !important;
  }

  header.site .navlinks{
    display:flex !important;
  }
}

@media (max-width:900px){
  header.site{
    position:relative;
  }

  header.site .topbar{
    flex-wrap:wrap;
    row-gap:10px;
    --topbar-height:72px;
  }

  header.site .brand{
    order:1;
    justify-self:center;
  }

  header.site .brand img{
    height:56px;
  }

  header.site .search{
    order:3;
    width:100%;
    justify-content:stretch;
  }

  header.site .search input[type="text"],
  header.site .search input[type="search"]{
    width:100%;
  }

  header.site .actions{
    order:2;
  }

  header.site .header-icons,
  header.site .icons{
    justify-self:end;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:14px !important;
    white-space:nowrap;
  }

  header.site .header-icons a,
  header.site .icons a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:36px;
    min-height:36px;
  }

  header.site .navlinks,
  .navlinks{
    display:none !important;
  }

  header.site .navlinks.is-open{
    display:block !important;
    position:absolute;
    left:0;
    right:0;
    top:calc(var(--topbar-height, 72px));
    background:#fff;
    border-top:1px solid #e5e7eb;
    box-shadow:0 10px 18px rgba(0,0,0,.08);
    z-index:60;
    padding:10px 16px;
  }

  header.site .navlinks.is-open a{
    display:block;
    padding:10px 8px;
    font-weight:600;
    border-radius:10px;
  }

  .hamburger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#fff;
  }
}

/* Footer */
footer.site{
  border-top:1px solid #ddd;
  padding:20px 0;
  text-align:center;
  margin-top:40px;
  font-size:14px;
  color:#555;
  position:relative;
}

footer.site .fab{
  margin:0 8px;
  color:#555;
  transition:color .2s;
}

footer.site .fab:hover{
  color:var(--primary);
}

.tiny{
  font-size:12px;
  color:#6b7280;
}
