/* V4 Library — green-feather editorial treatment, using the current V4 shell/navigation. */

/* Keep the Library visually distinct while preserving shared V4 tokens and routes. */
body { background: var(--paper); color: var(--ink); }
::selection { background: var(--red); color: var(--white); }

/* Green-feather header treatment applied only on Library and essay pages. */
.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: rgba(236,236,237,.10);
}
.site-header .site-brand span { color: rgba(236,236,237,.54); opacity: 1; }
.site-header .site-nav > a:not(.site-nav__action) { color: rgba(236,236,237,.70); opacity: 1; }
.site-header .site-nav > a:not(.site-nav__action):hover,
.site-header .site-nav > a:not(.site-nav__action):focus-visible,
.site-header .site-nav > a[aria-current="page"] { color: var(--white); }
.site-header .site-nav__action { color: var(--white); border-color: rgba(236,236,237,.32); }
.site-header .site-nav-mobile summary { color: var(--paper); }
.site-header .site-nav-mobile nav { color: var(--ink); background: var(--white); }
.site-header .site-nav-mobile nav a { color: var(--ink); }

.library-shell { width: min(calc(100% - 44px), 1180px); margin: 0 auto; }
.library-reading { width: min(calc(100% - 44px), 720px); margin: 0 auto; }
.library-reading--hero { width: min(calc(100% - 44px), 840px); }
.library-kicker,
.library-meta {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.library-text-link {
  width: max-content;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.library-text-link:hover,
.library-text-link:focus-visible { color: var(--red); }

.library-hero {
  padding: clamp(78px,9vw,128px) 0 clamp(70px,8vw,112px);
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid rgba(5,11,32,.13);
}
.library-hero h1 {
  max-width: 20ch;
  margin: 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(48px,6.5vw,84px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}
.library-deck {
  max-width: 54ch;
  margin: 28px 0 0;
  color: #52525a;
  font-size: clamp(18px,1.7vw,22px);
  line-height: 1.48;
}

.library-section { padding: clamp(74px,8vw,112px) 0; }
.library-section--white { background: var(--white); }
.library-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.library-report {
  min-height: 320px;
  padding: 36px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.library-report--succession { background: var(--navy); }
.library-report .library-kicker { color: #ff6459; }
.library-report h2 {
  max-width: 15ch;
  margin: 0 0 18px;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(32px,3.2vw,48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}
.library-report p:not(.library-kicker) {
  max-width: 46ch;
  margin: 0;
  color: rgba(236,236,237,.68);
  font-size: 17px;
  line-height: 1.62;
}
.library-report .library-text-link { margin-top: 34px; }

.library-group { margin-top: 68px; }
.library-group--cornerstone { margin-top: 86px; }
.library-group__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.library-group__head h2 {
  margin: 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}
.library-group__head--split > p {
  max-width: 40ch;
  margin: 0 0 2px;
  color: #626268;
  font-size: 14px;
  line-height: 1.5;
}
.library-group__head .library-kicker { margin-bottom: 12px; }
.library-essay-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0 42px;
  border-top: 1px solid rgba(5,11,32,.13);
}
.library-essay-card { padding: 26px 0; border-bottom: 1px solid rgba(5,11,32,.13); }
.library-essay-card .library-meta { margin-bottom: 8px; font-size: 9px; letter-spacing: .14em; }
.library-essay-card h3 {
  margin: 0 0 9px;
  font-family: Georgia,"Times New Roman",serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.library-essay-card h3 a:hover,
.library-essay-card h3 a:focus-visible { color: var(--red); }
.library-essay-card > p:not(.library-meta) { margin: 0 0 16px; color: #626268; font-size: 14px; line-height: 1.55; }

.library-close { padding: 78px 0 88px; background: var(--navy); color: var(--paper); }
.library-close__inner { max-width: 900px; }
.library-close .library-kicker { color: #ff6459; }
.library-close h2 {
  max-width: 16ch;
  margin: 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(38px,4.8vw,62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}
.library-close__inner > p:not(.library-kicker) { max-width: 52ch; margin: 24px 0 0; color: rgba(236,236,237,.70); font-size: 18px; }
.library-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.library-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.library-btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.library-btn--red:hover,
.library-btn--red:focus-visible { background: var(--red-hover); border-color: var(--red-hover); }
.library-btn--ghost { color: var(--paper); border-color: rgba(236,236,237,.40); }
.library-btn--ghost:hover,
.library-btn--ghost:focus-visible { border-color: var(--paper); }

/* Individual essays retain the green-feather editorial reading treatment. */
.library-essay { background: var(--white); }
.library-essay__hero { padding: 80px 0 54px; border-bottom: 1px solid rgba(5,11,32,.13); }
.library-essay__hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(44px,6vw,74px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}
.library-essay__deck { max-width: 58ch; margin: 24px 0 0; color: #58585e; font-size: 19px; line-height: 1.5; }
.library-essay__body { padding: 68px 0 90px; }
.library-essay__body p { margin: 0 0 24px; font-family: Georgia,"Times New Roman",serif; font-size: 20px; line-height: 1.67; }
.library-essay__body h2 {
  margin: 52px 0 18px;
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.18;
}
.library-essay__body .pull {
  margin: 42px -30px;
  padding: 22px 30px;
  border-left: 2px solid var(--red);
  font-size: 26px;
  line-height: 1.44;
}
.library-essay__body .go-deeper { margin-top: 62px; padding-top: 30px; border-top: 1px solid rgba(5,11,32,.13); }
.library-essay__body .go-deeper .kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.library-essay__body .go-deeper__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; }
.library-essay__body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.library-essay__body .btn:hover,
.library-essay__body .btn:focus-visible { background: #20263a; }
.library-essay__body .btn--ghost { background: transparent; color: var(--ink); }
.library-back { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(5,11,32,.13); }

/* Match the green-feather footer proportions on Library surfaces without changing routes. */
.library-publication + .site-footer,
.library-essay + .site-footer { padding-top: 52px; }

@media (max-width: 900px) {
  .library-report-grid { grid-template-columns: 1fr; }
  .library-group__head--split { align-items: start; flex-direction: column; }
}
@media (max-width: 779px) and (min-width: 681px) {
  .library-essay__body .pull { margin-inline: -22px; }
}
@media (max-width: 680px) {
  .library-shell,
  .library-reading,
  .library-reading--hero { width: min(calc(100% - 32px), 1180px); }
  .library-hero h1 { font-size: clamp(42px,12vw,60px); }
  .library-report { min-height: 260px; padding: 28px; }
  .library-essay-grid { grid-template-columns: 1fr; }
  .library-essay__body .pull { margin: 38px 0; padding-left: 20px; }
  .library-actions { flex-direction: column; align-items: stretch; }
  .library-btn { width: 100%; }
}
