/* ==============
   Variables
   ============== */
:root {
  --primary: #1a2a44; /* Deep navy */
  --secondary: #3a4b6b; /* Soft navy */
  --accent: #d4af37; /* Metallic gold - backgrounds, borders, dark surfaces */
  --accent-dark: #8a6d1d; /* Antique gold - text links on light surfaces (WCAG AA) */
  --light: #f9f7f3; /* Warm white */
  --dark: #121212;
  --highlight: #fff9e6; /* Gold tint */
  --text: #333333;
  --text-light: #5f5f5f; /* Was #777 - darkened to meet 4.5:1 contrast */
}

/* ==============
   Reset
   ============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Links within running text are underlined so they are not identified by colour alone */
.main-content p a,
.main-content li a,
.sidebar p a:not(.button),
.sidebar2 p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==============
   Accessibility
   ============== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--primary);
  padding: 10px;
  z-index: 200;
  font-weight: bold;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* <main> receives focus from the skip link; no ring needed on the whole region */
main:focus {
  outline: none;
}

/* Gold focus ring on dark surfaces */
.menutop a:focus-visible,
.hero-content a:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--accent);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==============
   Layout
   ============== */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ==============
   Header
   ============== */
.masthead {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

a.logo:hover {
  text-decoration: none;
}

.logo-badge {
  position: relative;
  padding: 8px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid var(--accent);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  text-align: center;
}

.site-name {
  display: block;
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.tagline {
  display: block;
  font-size: 1.2rem;
  color: var(--secondary);
  font-style: italic;
  letter-spacing: 1px;
}

/* ==============
   Navigation
   ============== */
.menutop-wrapper {
  background: linear-gradient(to right, var(--primary), #223254);
  padding: 15px 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.menutop {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 25px;
}

.menutop li a {
  position: relative;
  display: inline-block;
  color: white;
  padding: 8px 2px;
  font-weight: 500;
  font-size: 1.1rem;
}

.menutop li a:hover {
  color: white;
  text-decoration: none;
}

.menutop li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.menutop li a:hover::after,
.menutop li a:focus-visible::after,
.menutop li a[aria-current="page"]::after {
  width: 100%;
}

/* ==============
   Hero Banner
   ============== */
.hero-banner {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Darkening layer so hero text keeps sufficient contrast over the bright parts of the photo */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(rgba(18, 26, 44, 0.45), rgba(18, 26, 44, 0.65));
}

.hero-banner--compact {
  min-height: 280px;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #f9f7f3;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 auto 1.5rem;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.4);
  max-width: 800px;
}

.hero-banner--compact .hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hero-content p {
  font-size: 1.25rem;
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-button.secondary {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.hero-button:hover {
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}

.hero-button.secondary:hover {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--accent);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeIn 0.8s ease-out both;
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content p { animation-delay: 0.3s; }
.hero-buttons { animation-delay: 0.5s; }

/* ==============
   Main Content
   ============== */
.columns-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.main-content, .sidebar, .sidebar2 {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  min-width: 0; /* lets long words/URLs wrap inside grid cells */
  overflow-wrap: break-word;
}

.main-content h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2rem;
  line-height: 1.25;
}

.main-content h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin: 30px 0 12px;
}

.main-content p,
.main-content ul,
.main-content ol,
.main-content dl {
  margin-bottom: 1em;
}

.main-content ul,
.main-content ol {
  padding-left: 1.5em;
}

.main-content li {
  margin-bottom: 0.5em;
}

.main-content address {
  font-style: normal;
  margin-bottom: 1em;
}

.main-content hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 30px 0;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--dark);
}

.updated {
  color: var(--text-light);
  font-style: italic;
}

.appointment-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--highlight);
  padding: 15px;
  border-left: 4px solid var(--accent);
  margin: 25px 0;
}

.appointment-notice p {
  margin: 0;
}

.appointment-notice svg {
  width: 24px;
  height: 24px;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.author-bio {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.author-bio h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 0 15px;
}

.author-bio p {
  font-style: italic;
}

/* Article index & sitemap lists */
.link-list {
  list-style: none;
  padding-left: 0 !important;
}

.link-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.link-list ul {
  list-style: none;
  padding-left: 1.5em;
  margin-top: 8px;
}

/* ==============
   Sidebars
   ============== */
.sidebar, .sidebar2 {
  background-color: var(--highlight);
}

.sidebar h2, .sidebar2 h2 {
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.25;
}

.sidebar2 h2 {
  font-size: 1.3rem;
}

.sidebar p, .sidebar2 p {
  margin-bottom: 1em;
}

.sidebar2 ol {
  padding-left: 1.5em;
}

/* ==============
   Buttons
   ============== */
.button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 600;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #b89930;
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

button.button {
  font: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

/* ==============
   Cookie Banner
   ============== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--primary);
  color: var(--light);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.cookie-banner:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.cookie-banner h2 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover {
  color: white;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Both choices deliberately look the same - rejecting must be as easy as accepting */
.cookie-banner button {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 4px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--primary);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background: #b89930;
  border-color: #b89930;
}

.cookie-banner a:focus-visible,
.cookie-banner button:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}

/* Footer "Cookie settings" button styled to match the footer links */
.link-button {
  font: inherit;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--text-light);
  cursor: pointer;
}

.link-button:hover {
  color: var(--primary);
  text-decoration: underline;
}

.link-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ==============
   Books for Sale (home page)
   ============== */
.books-for-sale {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 40px;
  scroll-margin-top: 90px; /* keeps the heading clear of the sticky menu when linked to */
}

.books-for-sale > h2 {
  color: var(--primary);
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 15px;
}

.book-listing {
  border-top: 1px solid #eee;
  padding: 30px 0;
}

.book-listing:last-child {
  padding-bottom: 0;
}

.book-listing h3 {
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.book-meta {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.book-listing__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.book-listing__body > * {
  min-width: 0;
}

.book-listing__text p {
  margin-bottom: 1em;
}

.book-listing__text p a,
.book-details a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-gallery img {
  display: block;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.book-gallery__main {
  display: block;
  max-width: 420px;
  margin: 0 auto;
}

.book-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 120px));
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.book-gallery a {
  border-radius: 4px;
}

.book-gallery a:hover img {
  box-shadow: 0 0 0 3px var(--accent);
}

.book-details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.book-details dt {
  font-weight: bold;
  color: var(--primary);
}

.book-details dd {
  margin: 0;
}

/* Loading / empty / error messages (js/books.js) */
.books-message {
  padding: 20px 0;
  color: var(--text-light);
}

.books-message a {
  text-decoration: underline;
}

.books-cta {
  text-align: center;
  margin-top: 30px;
}

/* Search & filters on the Books for Sale page */
.book-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px 20px;
  margin: 25px 0 10px;
  padding: 20px;
  background-color: var(--highlight);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.book-search__field label,
.book-search__features legend {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: var(--primary);
}

.book-search input[type="search"],
.book-search select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: white;
  border: 1px solid #8a8a8a;
  border-radius: 4px;
}

.book-search input[type="search"]:focus-visible,
.book-search select:focus-visible,
.book-search input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.book-search__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.book-search__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 20px;
}

.book-search__features {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}

.book-search__features legend {
  float: left;
  width: 100%;
}

.book-search__features label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}

.book-search__features input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.book-search__clear {
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-search__count {
  margin: 15px 0 0;
  font-style: italic;
  color: var(--text-light);
}

.book-search__count:empty {
  display: none;
}

@media (min-width: 768px) {
  .book-search {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .book-search__row {
    grid-column: 1 / -1;
  }
}

/* Grid of book cards - filled from Shopify by js/books.js */
.book-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 30px;
  margin-top: 25px;
}

.book-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.book-card__image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background-color: var(--highlight);
}

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

.book-card--sold .book-card__image img {
  opacity: 0.6;
}

.book-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 3px;
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.book-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.book-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.book-card h3 a {
  color: var(--primary);
}

.book-card__price {
  margin-top: auto;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.book-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.book-card__more {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Single book page */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 10px;
  color: var(--text-light);
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-description p,
.book-description ul,
.book-description ol {
  margin-bottom: 1em;
}

.book-description ul,
.book-description ol {
  padding: 15px 0 15px 1.5em;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.book-description li {
  margin-bottom: 4px;
}

.book-description strong {
  color: var(--primary);
}

.book-description h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin: 20px 0 10px;
}

.book-help {
  margin-top: 20px;
}

.book-help a {
  text-decoration: underline;
}

/* Price + "Buy now" panel on the single book page */
.book-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px 25px;
  background-color: var(--highlight);
  border-left: 4px solid var(--accent);
  padding: 18px 20px;
  margin-top: 10px;
}

.book-buy p.book-buy__price,
.book-buy p.buy-status {
  margin: 0;
}

.book-buy p.buy-status {
  margin-top: 8px;
}

.book-buy__price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
}

/* "Buy now" button (book cards and single book page) */
.buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.buy-button {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 26px;
  border: 0;
  border-radius: 4px;
  background-color: var(--accent);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.book-buy .buy-button {
  padding: 12px 32px;
}

.buy-button:hover {
  background-color: #b89930;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.buy-button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.buy-button:disabled {
  background-color: #dcdcdc;
  color: #4a4a4a;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.buy-status:empty {
  display: none;
}

.buy-status {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #a12a1f;
}

.buy-status a {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .book-listing__body {
    grid-template-columns: minmax(220px, 2fr) 3fr;
    align-items: start;
  }
}

/* ==============
   Contact Page
   ============== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 30px;
  margin: 40px 0;
}

.contact-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-card:hover .icon-circle {
  background: rgba(212, 175, 55, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.contact-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-dark);
}

.contact-card h3 {
  color: var(--primary);
  margin: 0 0 15px;
  font-size: 1.4rem;
}

.contact-card p,
.contact-card address {
  margin-bottom: 10px;
  font-style: normal;
  line-height: 1.6;
}

.contact-card a {
  color: var(--accent-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.map-container {
  margin-top: 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.map-container + p {
  margin-top: 12px;
}

.map-placeholder {
  padding: 24px 20px;
  text-align: center;
  background: white;
}

.map-placeholder p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.map-placeholder .button {
  margin-top: 14px;
}

/* ==============
   Footer
   ============== */
.footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  padding-top: 30px;
  border-top: 1px solid #ddd;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-light);
}

.footer-links a:hover,
.credit a:hover {
  color: var(--primary);
}

.copyright {
  font-size: 0.85rem;
}

.credit {
  font-size: 0.85rem;
  margin-top: 6px;
}

.credit a {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==============
   Valuation Page
   ============== */
.valuation-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--highlight);
  padding: 16px;
  border-left: 4px solid var(--accent);
  margin: 25px 0;
  border-radius: 0 4px 4px 0;
}

.valuation-notice p {
  margin: 0;
}

.valuation-notice svg {
  width: 24px;
  height: 24px;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.valuation-form-container {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.valuation-list,
.value-factors {
  list-style: none;
  margin: 15px 0;
}

.valuation-list li,
.value-factors li {
  padding: 8px 0 8px 25px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.valuation-list li::before,
.value-factors li::before {
  content: "•";
  color: var(--accent-dark);
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: 2px;
  line-height: 1.2;
}

/* Form iframe */
#fb_iframe {
  display: block;
  width: 100%;
  min-height: 800px;
  border: 0;
  background: transparent;
}

/* ==============
   Responsive
   ============== */
@media (min-width: 768px) {
  .columns-wrapper {
    grid-template-columns: 2fr 1fr;
  }

  .sidebar2 {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .columns-wrapper {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .sidebar2 {
    grid-column: auto;
  }

  .site-name {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .content-wrapper {
    padding: 16px;
  }

  .hero-banner {
    min-height: 400px;
  }

  .hero-banner--compact {
    min-height: 240px;
  }

  .hero-overlay,
  .hero-content {
    padding: 1rem;
  }

  .logo {
    flex-direction: column;
    gap: 10px;
  }

  .site-name {
    font-size: 2.2rem;
  }

  .main-content, .sidebar, .sidebar2 {
    padding: 20px;
  }

  .main-content h2,
  .books-for-sale > h2 {
    font-size: 1.6rem;
  }

  .books-for-sale {
    padding: 20px;
  }

  .contact-card {
    padding: 20px;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  #fb_iframe {
    min-height: 600px;
  }
}

/* Respect users who have asked their OS for less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .hero-button:hover,
  .button:hover,
  .contact-card:hover,
  .contact-card:hover .icon-circle,
  .book-card:hover,
  .buy-button:hover {
    transform: none;
  }
}

/* ==============
   Print Styles
   ============== */
@media print {
  .menutop-wrapper, .footer, .hero-buttons, .skip-link, .cookie-banner {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .main-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }

  .hero-banner {
    min-height: 0;
  }

  .hero-banner > img,
  .hero-banner::before {
    display: none;
  }

  .hero-content {
    color: black;
  }

  .hero-content h1 {
    text-shadow: none;
  }
}
