/* ============================================================
   True Haven Press — Stylesheet
   Brand palette aligned with index/about:
     Primary   #754633 (warm brown) — buttons, header band
     Secondary #182470 (navy)       — headings
     Tertiary  #cbb299 (cream/tan)  — soft borders, hover tints
     Contrast  #4b5236 (olive)      — dark surfaces
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:      #754633;
  --color-secondary:    #182470;
  --color-accent:       #754633;
  --color-accent-dark:  #5a3527;
  --color-primary-dark: #5a3527;
  --color-tertiary:     #cbb299;
  --color-contrast:     #4b5236;
  --color-bg:           #ffffff;
  --color-bg-alt:       #f6f3ee;
  --color-dark:         #182470;
  --color-text:         #1f2647;
  --color-text-light:   #666670;
  --color-border:       #e6dfd1;
  --font-serif:         'Poppins', system-ui, -apple-system, sans-serif;
  --font-sans:          'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width:          1100px;
  --section-pad:        5rem;

  /* Tunable: minimum width per book card. Lower = more books per row.
     ~140 ⇒ 6/row at 1280px · ~180 ⇒ 5/row · ~220 ⇒ 4/row · ~280 ⇒ 3/row */
  --book-card-min:      180px;
  --book-image-height:  260px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-secondary);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem;   margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background-color: rgba(255,255,255,0.25);
  text-decoration: none;
}

.btn-light {
  background-color: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-light:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  text-decoration: none;
}

.btn-outline-light {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--color-primary);
  padding: 0.85rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.logo-link img {
  height: 68px;
  width: auto;
  display: block;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-navigation a {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.main-navigation a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('/media/bw-office-cropped.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo {
  height: 145px;
  width: auto;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-intro {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

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

/* ============================================================
   VALUES SECTION
   ============================================================ */

.values-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.values-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.value-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 4px;
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
  padding: var(--section-pad) 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-image-col img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.about-content-col h2 {
  margin-bottom: 1.5rem;
}

.about-leadership {
  background: var(--color-bg-alt);
  padding: 2.5rem 2rem;
  border-left: 5px solid var(--color-secondary);
  border-radius: 0 4px 4px 0;
}

.about-leadership h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ============================================================
   WHY WE EXIST SECTION
   ============================================================ */

.why-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.why-section h2 {
  text-align: center;
  margin-bottom: 1.25rem;
}

.why-section > .container > p {
  max-width: 760px;
  margin: 0 auto 1rem;
  text-align: center;
}

.differentiators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.diff-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  border-bottom: 3px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.diff-card h4 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.diff-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================================
   WHAT WE EVALUATE SECTION
   ============================================================ */

.evaluate-section {
  padding: var(--section-pad) 0;
  background: var(--color-primary);
  color: #fff;
}

.evaluate-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.evaluate-section > .container > p {
  text-align: center;
  color: rgba(255,255,255,0.82);
  margin-bottom: 3rem;
}

.evaluate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.eval-card {
  background: rgba(255,255,255,0.08);
  padding: 1.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}

.eval-card h3 {
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.eval-card p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}

.evaluate-cta {
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BOOK STORE / PORTFOLIO SECTION
   ============================================================ */

.books-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.books-section h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.books-section > .container > p {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--book-card-min), 1fr));
  gap: 1.25rem;
}

.portfolio-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(24, 36, 112, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-tertiary);
  box-shadow: 0 8px 20px rgba(24, 36, 112, 0.1);
}

.portfolio-image {
  width: 100%;
  height: var(--book-image-height);
  object-fit: contain;
  display: block;
  background: var(--color-bg-alt);
  padding: 0.75rem;
}

.portfolio-content {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.15rem;
}

.portfolio-content h3 {
  font-size: 0.92rem;
  line-height: 1.25;
  margin-bottom: 0.1rem;
  color: var(--color-secondary);
}

.portfolio-content .client {
  color: var(--color-text-light);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.portfolio-link {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-accent);
  color: #fff;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: auto;
  transition: background 0.2s;
}

.portfolio-link:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */

.gallery-section-wrapper {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.gallery-section-wrapper h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.photo-item {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.09);
}

.photo-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.photo-item:hover img {
  transform: scale(1.04);
}

/* ============================================================
   PRESS / REVIEWS SECTION
   ============================================================ */

.press-section {
  padding: var(--section-pad) 0;
  background: var(--color-primary);
  color: #fff;
}

.press-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 3rem;
}

.press-items {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.press-section .portfolio-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 5px solid var(--color-secondary);
  border-radius: 0 4px 4px 0;
  box-shadow: none;
  transition: transform 0.2s;
}

.press-section .portfolio-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.press-section .portfolio-content h3 {
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.75rem;
}

.press-section .portfolio-content .client {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(134,140,88,0.45);
  border-radius: 3px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

.press-section .portfolio-content p:not(.client) {
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.press-section .portfolio-link {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.82rem;
}

.press-section .portfolio-link:hover {
  background: rgba(255,255,255,0.25);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-section > .container > p {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-item {
  text-align: center;
}

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 0.3rem;
}

.contact-item a {
  font-size: 1.05rem;
  color: var(--color-dark);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--color-accent);
}

.contact-cta {
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo-link {
  display: block;
}

.footer-logo {
  height: 62px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer-description {
  font-size: 0.95rem;
  max-width: 420px;
  color: rgba(255,255,255,0.65);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  font-style: italic;
  max-width: 600px;
}

/* ============================================================
   EDITORIAL / NOVEL-STYLE ELEMENTS
   ============================================================ */

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}

/* Values — editorial two-column list layout */
.values-editorial {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.value-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.value-entry:first-child {
  border-top: 1px solid var(--color-border);
}

.value-entry h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  padding-top: 0.15rem;
  margin-bottom: 0;
}

.value-entry p {
  margin-bottom: 0;
}

/* Editorial list (Why We Exist differentiators) */
.editorial-list {
  list-style: none;
  max-width: 720px;
  margin: 2.5rem auto 0;
}

.editorial-list li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.editorial-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.editorial-list li strong {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 700;
}

.editorial-list li span {
  color: var(--color-text-light);
}

/* Evaluate — prose list (on dark background) */
.evaluate-prose-list {
  list-style: none;
  max-width: 720px;
  margin: 2.5rem auto 3rem;
}

.evaluate-prose-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}

.evaluate-prose-list li:first-child {
  border-top: 1px solid rgba(255,255,255,0.12);
}

.evaluate-prose-list strong {
  font-family: var(--font-serif);
  color: var(--color-secondary);
  font-size: 1.05rem;
}

.evaluate-prose-list span {
  color: rgba(255,255,255,0.82);
}

/* Books Teaser (index page) */
.books-teaser {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.books-teaser h2 {
  margin-bottom: 1rem;
}

.books-teaser > .container > p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
}

/* Page Hero (about / privacy / terms — slim banner with page title) */
.page-hero {
  background: linear-gradient(160deg, var(--color-secondary) 0%, #0d1340 100%);
  color: #fff;
  text-align: center;
  padding: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
}

.page-hero .hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero .hero-tagline {
  display: none;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.4rem, 1.4rem + ((1vw - 0.2rem) * 1), 1.8rem);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.page-hero .hero-intro {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 820px) {
  :root {
    --section-pad: 3.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-col img {
    height: 280px;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .main-navigation ul {
    justify-content: center;
    gap: 1.25rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 560px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }

  .hero {
    padding: 4rem 1.25rem;
  }

  .hero-logo {
    height: 105px;
  }

  .hero-intro {
    font-size: 1.05rem;
  }

  .hero-buttons,
  .evaluate-cta {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .values-grid,
  .differentiators-grid {
    grid-template-columns: 1fr;
  }

  .value-entry,
  .editorial-list li,
  .evaluate-prose-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .footer-links {
    gap: 1.25rem;
  }
}

/* ============================================================
   BOOKS PAGE — body wrapper sits inside WP block frame
   ============================================================ */

body.books-page {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body.books-page .books-main-wrapper {
  background: var(--color-bg-alt);
}

/* The WP brown header band sits above .page-hero — the hero handles its own
   border, no top spacing needed here. */
body.books-page .page-hero {
  margin-top: 0;
}

/* ============================================================
   QIKFILTER UI — brand overrides
   The widget injects its own baseline styles via JS; these
   higher-specificity rules retint it to match the brand palette.
   ============================================================ */

.books-section .qikfilter-controls {
  margin-bottom: 2rem;
  gap: 0.75rem;
}

.books-section .qikfilter-search {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.65rem 2.4rem 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.books-section .qikfilter-search:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(24, 36, 112, 0.12);
}

.books-section .qikfilter-search-wrap {
  flex: 1 1 240px;
}

.books-section .qikfilter-clear-btn {
  right: 12px;
}

.books-section .qikfilter-toggles {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.books-section .qikfilter-toggle-btn {
  background: transparent;
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.1rem;
  border: none;
}

.books-section .qikfilter-toggle-btn:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.books-section .qikfilter-toggle-btn:hover {
  background: rgba(203, 178, 153, 0.18);
  color: var(--color-secondary);
}

.books-section .qikfilter-toggle-btn.active {
  background: var(--color-secondary);
  color: #fff;
}

.books-section .qikfilter-group-header {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.4rem;
}

.books-section .qikfilter-group-label {
  color: var(--color-secondary);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.books-section .qikfilter-see-more-author {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding: 0.4rem 0 0;
}

.books-section .qikfilter-see-more-author:hover {
  color: var(--color-accent-dark);
}

.books-section .qikfilter-no-results {
  color: var(--color-text-light);
  font-style: italic;
  font-size: 1rem;
  padding: 3rem 1rem;
}

/* ============================================================
   SUBMIT MANUSCRIPT FORM
   ============================================================ */

body.submit-page {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.submit-main {
  padding: 0 0 4rem;
}

.submit-container {
  max-width: 760px;
  padding: 0 1.5rem;
}

.submit-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 4px 18px rgba(24, 36, 112, 0.06);
}

.submit-intro {
  margin: 0 0 1.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.submit-intro .req-mark {
  color: var(--color-accent);
  font-weight: 700;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.form-section legend {
  color: var(--color-secondary);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  padding: 0;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label,
.label-as-block {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-bottom: 0.35rem;
}

.req-mark {
  color: var(--color-accent);
  font-weight: 700;
  margin-left: 0.1rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(24, 36, 112, 0.12);
}

/* ── File drop zone ───────────────────────────────────────────── */
.file-drop {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-alt);
  transition: border-color 0.15s, background 0.15s;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--color-secondary);
  background: #fff;
}

.file-drop.is-dragover {
  border-color: var(--color-accent);
  background: rgba(203, 178, 153, 0.18);
}

.file-drop.has-file {
  border-style: solid;
  border-color: var(--color-secondary);
  background: #fff;
}

/* The real <input type="file"> is hidden but still focusable so the label triggers it. */
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The visible clickable label — needs higher specificity than .field label */
.file-drop label.file-drop-inner,
.field label.file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 1rem;
  cursor: pointer;
  text-align: center;
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}

.file-drop-icon {
  color: var(--color-secondary);
  margin-bottom: 0.15rem;
}

.file-drop.has-file .file-drop-icon {
  color: var(--color-accent);
}

.file-drop-prompt {
  font-size: 0.95rem;
  color: var(--color-text);
}

.file-drop-prompt strong {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.file-drop-status {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.file-drop.has-file .file-drop-status {
  color: var(--color-secondary);
  font-weight: 600;
}

.file-clear {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.file-clear:hover {
  background: #fff;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Keyboard focus ring on the hidden input bubbles up to the visible label */
.file-input:focus-visible + .file-drop-inner {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 6px;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem 1rem;
  margin-top: 0.25rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 0;
}

.checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-secondary);
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.submit-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.submit-btn:hover:not(:disabled) {
  background: var(--color-accent-dark);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.submit-status.is-success {
  color: var(--color-secondary);
  font-weight: 600;
}

.submit-status.is-error {
  color: #b3261e;
  font-weight: 600;
}

@media (max-width: 600px) {
  .submit-form {
    padding: 1.5rem 1.25rem;
    border-radius: 8px;
  }
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}
