:root {
  color-scheme: light;
  --brown: #5c3c25;
  --deep-brown: #422d1c;
  --paper: #f3edd6;
  --cream: #f0efcd;
  --line: #d1bd9d;
  --accent: #b92314;
  --text: #25201b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: #a98d5a;
  font: 13px/1.6 Verdana, Arial, sans-serif;
}
a { color: #642; }
a:hover { color: #970000; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #b92314;
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 3;
  padding: 6px 10px;
  background: #fff;
}
.skip-link:focus { top: 12px; }
.site-shell {
  width: min(766px, 100%);
  margin: 0 auto;
  padding: 8px;
  background: #fff;
}
.hero {
  position: relative;
  height: 170px;
  background: #422d1c url("/assets/images/header.jpg") center center / cover no-repeat;
}
.brand {
  position: absolute;
  top: 40px;
  left: 0;
  width: 222px;
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #513c1e;
  border-top: 1px solid #66563e;
  border-bottom: 1px solid #66563e;
}
.brand a { display: block; line-height: 0; }
.brand img { max-width: 100%; width: 220px; height: 92px; object-fit: contain; }
.subnav {
  display: flex;
  flex-wrap: wrap;
  min-height: 39px;
  background: #77624e url("/assets/images/nav.gif") repeat-x;
  border-top: 1px solid #ddd;
}
.subnav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  padding: 5px 14px;
  border-right: 1px solid rgba(255,255,255,.25);
  color: #f9f5de;
  text-decoration: none;
}
.subnav a:hover,
.subnav a[aria-current="page"] { background-color: rgba(40,20,10,.3); color: #fff; }
.site-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  padding-top: 8px;
  min-height: 390px;
  background: #fff;
}
.sidebar { padding-right: 1px; }
.sidebar h2 {
  margin: 12px 0 0;
  padding: 5px 14px;
  background: #b92314;
  color: #fff;
  border-top: 2px solid #ea9a8e;
  border-bottom: 2px solid #ea9a8e;
  font-size: 13px;
  line-height: 1.5;
}
.search-form {
  display: flex;
  gap: 5px;
  padding: 10px 5px;
  background: var(--cream);
}
.search-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-form input {
  min-width: 0;
  flex: 1;
  padding: 5px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
.search-form button {
  border: 1px solid var(--line);
  padding: 4px 6px;
  background: #f9f7ed;
  color: #433023;
  font: 11px Verdana, sans-serif;
  cursor: pointer;
}
.sidebar-list {
  list-style: none;
  margin: 4px 0 10px;
  padding: 2px 15px 5px;
  background: var(--cream);
}
.sidebar-list li + li { border-top: 1px solid var(--line); }
.sidebar-list a {
  display: block;
  padding: 6px 0 6px 12px;
  color: #553;
  text-decoration: none;
  line-height: 1.45;
  background: url("/assets/images/point.gif") no-repeat left 11px;
}
.sidebar-list a:hover,
.sidebar-list a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.mobile-catalog { display: none; }
.main-content {
  min-width: 0;
  padding: 12px 8px 28px 10px;
}
.main-content h1 {
  margin: 0 0 14px;
  padding: 2px 0 8px;
  font: normal 25px/1.2 Verdana, sans-serif;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
.entry {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.entry h1 { border-bottom: 0; margin: 8px 0; font-size: 22px; text-align: left; }
.entry h2 { margin: 16px 0 7px; font-size: 18px; color: #553522; }
.entry h3 { margin: 14px 0 8px; font-size: 16px; }
.entry h4 { margin: 12px 0 5px; font-size: 14px; }
.entry p { margin: 0 0 11px; }
.entry ul, .entry ol { padding-left: 24px; margin: 8px 0 15px; }
.entry li { margin: 4px 0; }
.entry table {
  border-collapse: collapse;
  max-width: 100%;
  width: auto;
  margin: 15px auto;
}
.entry th, .entry td {
  border: 1px solid #c7c0b4;
  padding: 7px 12px;
  vertical-align: middle;
}
.entry th { background: var(--paper); }
.entry div { max-width: 100%; }
.entry img { max-width: 100%; height: auto; }
.entry a { overflow-wrap: anywhere; }
.footer {
  clear: both;
  margin-top: 4px;
  padding: 12px 14px;
  border-top: 1px solid #e0d5c3;
  background: var(--paper);
  color: #553;
  font-size: 12px;
}
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-size: 16px; font-weight: bold; }
.search-results p { margin: 4px 0 0; color: #625b51; }
.search-count { margin: 0 0 14px; color: #5c554c; }
.category-pills { display: none; }

@media (max-width: 680px) {
  .site-shell { padding: 5px; }
  .hero { height: 142px; background-position: 56% center; }
  .brand { top: 24px; width: min(222px, 62%); }
  .brand img { max-width: 100%; }
  .subnav a {
    flex: 1 1 50%;
    justify-content: center;
    min-width: 0;
    min-height: 35px;
    padding: 7px 4px;
    font-size: 11px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
  .site-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-catalog { display: block; margin: 0 3px; }
  .mobile-catalog summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 8px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--brown);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
  }
  .mobile-catalog summary::-webkit-details-marker { display: none; }
  .mobile-catalog summary::marker { content: ""; }
  .mobile-catalog summary:hover { background: #e9e3c8; }
  .mobile-catalog .catalog-chevron { font-size: 22px; line-height: 1; }
  .mobile-catalog details[open] .catalog-chevron { transform: rotate(180deg); }
  .mobile-catalog-inner { border: 1px solid var(--line); border-top: 0; }
  .mobile-catalog h2 {
    margin: 0;
    padding: 6px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
  }
  .mobile-catalog .sidebar-list { margin: 0; padding: 4px 12px 8px; }
  .mobile-catalog .sidebar-list a { min-height: 36px; padding-top: 8px; padding-bottom: 8px; }
  .mobile-catalog .search-form { padding: 9px; }
  .main-content { padding: 12px 12px 28px; }
  .main-content h1 { font-size: 23px; }
  .entry h1 { font-size: 20px; }
}

@media (max-width: 380px) {
  .sidebar-list { grid-template-columns: 1fr; }
  .hero { height: 130px; }
  .brand { width: 190px; min-height: 80px; }
  .brand img { width: 185px; height: auto; }
  .subnav a { font-size: 10px; }
}

@media print {
  body { background: #fff; }
  .site-shell { width: 100%; }
  .sidebar, .mobile-catalog, .subnav { display: none; }
  .site-layout { display: block; }
  .hero { height: 90px; }
  .main-content { padding: 15px 0; }
  a { color: #222; text-decoration: none; }
}
