@import url('/assets/long-page-nav.css?v=2');

.pcg-inner-content {
  padding: 0 !important;
  background: var(--pcg-paper) !important;
}
.pcg-inner-content > .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.books-kicker {
  margin: 0 0 1.2rem !important;
  color: var(--pcg-bronze);
  font: 600 var(--pcg-type-eyebrow)/1.2 var(--pcg-font-sans);
  letter-spacing: var(--pcg-tracking-eyebrow);
  text-transform: uppercase;
}

/* Image-led editorial hero. */
.books-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(680px, 64vw, 860px);
  overflow: hidden;
  background: var(--pcg-deep);
  color: var(--pcg-light);
}
.books-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 43, 35, .98) 0%, rgba(0, 43, 35, .94) 28%, rgba(0, 43, 35, .72) 47%, rgba(0, 43, 35, .2) 76%, rgba(0, 43, 35, .08) 100%);
}
.books-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
}
.books-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.books-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(76rem, calc(100% - 2 * var(--pcg-gutter)));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) 0;
}
.books-hero .books-kicker { color: var(--pcg-accent-soft); }
.books-hero h1 {
  max-width: 10ch;
  margin: 0 0 clamp(24px, 3vw, 42px);
  color: inherit;
  font: 600 clamp(3.5rem, 7vw, 7.25rem)/.92 var(--pcg-font-sans);
  letter-spacing: -.06em;
}
.books-hero h1 em,
.books-section h2 em {
  font-family: var(--pcg-font-editorial);
  font-weight: 400;
  color: var(--pcg-accent-soft);
}
.books-section:not(.books-dark):not(.books-cta) h2 em {
  color: #765817;
}
.books-hero h1 em { display: block; }
.books-hero h2 {
  max-width: 24ch;
  margin: 0 0 clamp(28px, 3vw, 44px);
  color: inherit;
  font: 500 clamp(1.25rem, 2vw, 1.9rem)/1.3 var(--pcg-font-sans);
  letter-spacing: -.025em;
}
.books-hero-copy > p:last-child {
  max-width: 41rem;
  margin: 0;
  padding-top: clamp(22px, 2.5vw, 34px);
  border-top: 1px solid var(--pcg-bronze);
  font: 400 clamp(1.05rem, 1.35vw, 1.25rem)/1.65 var(--pcg-font-sans);
}

.books-hero-intro {
  padding: clamp(64px, 7vw, 104px) var(--pcg-gutter);
  background: var(--pcg-surface-soft);
  color: var(--pcg-ink);
}
.books-inner {
  width: min(100%, 76rem);
  margin: 0 auto;
}
.books-hero-body,
.books-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(40px, 6vw, 88px);
}
.books-hero-body p,
.books-copy p {
  margin: 0;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(9, 40, 32, .18);
  font: 400 var(--pcg-type-body)/var(--pcg-leading-body) var(--pcg-font-sans);
}
.books-hero-body p:first-child,
.books-hero-body p:nth-child(2) {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}
.books-hero-body p:has(> strong:only-child) {
  padding-left: 1.15rem;
  border-left: 2px solid var(--pcg-bronze);
  border-top-color: transparent;
}

.books-section {
  padding: var(--pcg-space-section) var(--pcg-gutter);
  background: var(--pcg-paper);
  color: var(--pcg-ink);
}
.books-section + .books-section { border-top: 1px solid rgba(9, 40, 32, .12); }
.books-section h2 {
  max-width: 17ch;
  margin: 0 0 clamp(40px, 5vw, 72px);
  color: inherit;
  font: 600 var(--pcg-type-section)/1 var(--pcg-font-sans);
  letter-spacing: var(--pcg-tracking-display);
  text-wrap: balance;
}
.books-dark {
  background: var(--pcg-deep);
  color: var(--pcg-light);
}
.books-dark h2 { color: var(--pcg-light); }
.books-dark .books-copy p { border-color: rgba(255, 255, 255, .16); }
.books-warm { background: #e9dfca; }

/* Three deliberate image-and-text interruptions. */
.books-editorial-split .books-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas:
    'kicker image'
    'heading image'
    'copy image';
  gap: 0 clamp(44px, 6vw, 88px);
  align-items: start;
}
.books-editorial-split .books-kicker { grid-area: kicker; }
.books-editorial-split h2 { grid-area: heading; margin-bottom: clamp(28px, 3vw, 44px); }
.books-editorial-split .books-copy {
  grid-area: copy;
  display: block;
  max-width: 38rem;
}
.books-section-image {
  grid-area: image;
  align-self: stretch;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--pcg-bronze);
}
.books-section-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}
.books-photo-right .books-section-image img,
.books-photo-left .books-section-image img { object-position: center; }
.books-photo-left .books-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas:
    'image kicker'
    'image heading'
    'image copy';
}
#pawn-accounting .books-section-image img { object-position: 57% center; }
.books-photo-break .books-section-image {
  min-height: 0;
  margin: 0 0 clamp(40px, 5vw, 68px);
  aspect-ratio: 16 / 7;
}
.books-photo-break .books-section-image img {
  min-height: 0;
  object-position: center 46%;
}

.books-list-layout {
  display: grid;
  grid-template-columns: minmax(16rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}
.books-list-layout .books-copy { grid-template-columns: 1fr; }
.books-list-layout .wp-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(9, 40, 32, .22);
}
.books-list-layout li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(9, 40, 32, .22);
  font: 500 1rem/1.45 var(--pcg-font-sans);
}
.books-list-layout li:nth-child(odd) { padding-right: 1.5rem; }
.books-list-layout li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(9, 40, 32, .22);
}
.books-dark .books-list-layout li { border-color: rgba(255, 255, 255, .18); }

/* Quieter passages break the repeated band rhythm. */
#profit-loss .books-copy,
#multi-store-reporting .books-copy,
#transaction-readiness .books-copy {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
#general-ledger .books-copy,
#cpa-tax .books-copy {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
}
.books-sequence .books-copy p { font-size: clamp(1.1rem, 1.45vw, 1.35rem); }
#financial-clarity .books-inner { max-width: 64rem; }
#financial-clarity h2 { max-width: 15ch; }
#financial-clarity .books-copy { grid-template-columns: 1fr; }
#financial-clarity .books-copy p:has(> strong:only-child) {
  margin-top: clamp(24px, 3vw, 42px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-block: 1px solid var(--pcg-bronze);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.books-cta {
  background: #052a22;
  color: var(--pcg-light);
}
.books-cta h2 { color: var(--pcg-light); }
.books-cta .wp-block-buttons {
  justify-content: flex-start !important;
  margin-top: 2.5rem;
}
.books-cta .wp-block-button__link {
  padding: 1.1rem 1.6rem;
  border-radius: 0;
  background: var(--pcg-accent) !important;
  color: #071f19 !important;
  font: 700 .75rem/1 var(--pcg-font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .books-hero-body,
  .books-copy,
  #general-ledger .books-copy,
  #cpa-tax .books-copy,
  #profit-loss .books-copy,
  #multi-store-reporting .books-copy,
  #transaction-readiness .books-copy,
  .books-list-layout {
    grid-template-columns: 1fr;
  }
  .books-list-layout .books-copy { margin-bottom: 2rem; }
  .books-editorial-split .books-inner,
  .books-photo-left .books-inner {
    grid-template-columns: 1fr;
    grid-template-areas: 'kicker' 'heading' 'image' 'copy';
  }
  .books-section-image { min-height: 0; margin-bottom: 2rem; aspect-ratio: 4 / 3; }
  .books-section-image img { min-height: 0; }
}

@media (max-width: 700px) {
  .books-hero { min-height: 700px; }
  .books-hero::after { background: linear-gradient(180deg, rgba(0, 43, 35, .16), rgba(0, 43, 35, .7) 50%, rgba(0, 43, 35, .98) 78%); }
  .books-hero-copy { justify-content: flex-end; padding: 72px 0; }
  .books-hero h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .books-hero-image img { object-position: 62% center; }
}

@media (max-width: 560px) {
  .books-hero-intro,
  .books-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .books-section h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .books-list-layout .wp-block-list { grid-template-columns: 1fr; }
  .books-list-layout li:nth-child(odd),
  .books-list-layout li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}
