:root {
  --red: #9b0000;
  --red-dark: #5f0000;
  --red-soft: #b13a32;
  --panel: #DCDCDC;
  --paper: #ffffff;
  --ink: #161616;
  --muted: #666666;
  --rule: #b8796f;
  --cream: #ffffcc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}
a { color: var(--red); font-weight: 700; text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
.site-container {
  width: min(1396px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.site-header { background: #110000; }
.header-photo {
  min-height: 88px;
  color: white;
  background:
    linear-gradient(90deg, rgba(75,0,0,.96), rgba(170,20,20,.76) 48%, rgba(40,0,0,.92)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 5px, transparent 5px 23px);
  border-bottom: 1px solid #c42b2b;
}
.masthead-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
}
.masthead-title {
  color: white;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
}
.masthead-title:hover { color: white; text-decoration: none; }
.site-tagline {
  display: inline-block;
  margin: 2px 0 0 28px;
  color: #fff7f7;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}
.signin-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 520px;
}
.signin-panel label { margin: 0; color: white; font-size: 11px; font-weight: 700; }
.signin-panel span { display: block; background: var(--red-dark); padding: 1px 4px; }
.signin-panel input {
  width: 150px;
  height: 18px;
  border: 1px solid #330000;
  background: #e8e8e8;
}
.signin-panel button, .small-button {
  display: inline-block;
  min-height: 20px;
  padding: 2px 9px;
  border: 1px solid #9b6238;
  background: #f6f1ec;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.signin-panel button { color: white; background: var(--red-dark); border-color: #c78170; }
.tab-bar {
  height: auto;
  min-height: 24px;
  background: #f1ece9;
  border-top: 1px solid #d0463f;
  border-bottom: 1px solid #d0463f;
}
.tab-link {
  display: inline-block;
  margin: 0 4px 0 0;
  padding: 6px 12px 5px;
  border-left: 1px solid #b8776f;
  border-right: 1px solid #b8776f;
  background: white;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}
.tab-item { position: relative; display: inline-block; }
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 210px;
  gap: 6px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #d0463f;
  box-shadow: 0 8px 18px rgba(30, 10, 8, .14);
}
.tab-item:hover .submenu,
.tab-item:focus-within .submenu { display: grid; }
.submenu a {
  color: #666;
  font-size: 11px;
  font-weight: 400;
}
.page-frame { padding: 14px 0 36px; }
.catalog-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.sidebar { display: grid; gap: 14px; align-content: start; }
.side-panel {
  background: white;
  border: 1px dotted #c8c8c8;
  color: var(--muted);
  padding: 4px;
}
.cart-note {
  padding: 8px;
  border-color: var(--rule);
  text-align: center;
  color: #111;
}
.side-panel h2 {
  margin: 0 0 5px;
  color: #666;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}
.nav-link {
  display: block;
  padding: 2px 0;
  color: #666;
  border-bottom: 1px dotted #d8d8d8;
  font-size: 14px;
  font-weight: 400;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-cloud span {
  border: 1px dotted var(--rule);
  background: var(--cream);
  color: var(--red);
  padding: 1px 5px;
}
.main-panel {
  min-width: 0;
  min-height: 528px;
  padding: 22px 12px 32px;
  background: var(--panel);
  border: 1px dotted var(--red-soft);
}
h1, h2, h3, h4 {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}
h1 { margin: 0 0 10px; font-size: 23px; }
h2 { margin: 16px 0 12px; font-size: 21px; color: #722020; }
h3 { margin: 14px 0 8px; font-size: 17px; }
.kicker {
  margin: 0 0 4px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
}
.lead { color: #3b3b3b; font-size: 13px; margin-bottom: 8px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.album-list { display: grid; gap: 14px; }
.album-card, .photo-card, .content-fragment {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.photo-card, .content-fragment { display: block; }
.content-image { margin: 8px 0 12px; }
.content-image img, .gallery-grid img, .album-card img, .photo-card img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--red-soft);
  background: #eee;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 156px));
  gap: 10px;
  margin: 8px 0 12px;
}
.table-responsive { margin: 8px 0 12px; }
.table { --bs-table-bg: transparent; font-size: 12px; }
.table td, .table th {
  padding: 4px 6px;
  border-color: rgba(155,0,0,.22);
}
blockquote {
  margin: 12px 0;
  padding: 8px 12px;
  background: #eee;
  border-left: 3px solid var(--red);
}
.toc {
  margin: 12px 0;
  padding: 8px 10px;
  background: #eee;
  border: 1px dotted var(--rule);
}
.source-links {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dotted var(--rule);
}
.source-links h2 { font-size: 15px; }
.source-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.source-links a {
  color: #666;
  font-size: 11px;
  font-weight: 400;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #999; }
.site-footer {
  padding: 8px 0 30px;
  color: #6a3333;
  font-size: 11px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}
.ssri-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 2px dotted #333;
  color: #333;
  font-size: 16px;
  font-weight: 800;
}
.footer-grid p { margin: 0 0 4px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) {
  body { font-size: 13px; }
  .masthead-inner, .signin-panel, .catalog-layout, .footer-grid { display: block; }
  .signin-panel { margin-top: 10px; }
  .signin-panel label, .signin-panel input, .signin-panel button { display: block; width: 100%; margin-bottom: 4px; }
  .site-tagline { margin-left: 0; }
  .sidebar { margin-bottom: 14px; }
  .main-panel { padding: 16px 10px 24px; }
  .album-card { grid-template-columns: 96px minmax(0, 1fr); }
}
