/* ============================================================
   John F. Lehman — Design System
   This is the single source of truth for visual design.
   Change colors, fonts, or spacing here.
   ============================================================ */

/* ----------------------------------------------------------
   1. Fonts
   ---------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* Source Serif Pro is self-hosted in wp-content (WP theme font for headings) */

/* ----------------------------------------------------------
   2. Design Tokens
   ---------------------------------------------------------- */

:root {
  /* Colors */
  --color-dark-navy:      #222E3D;  /* footer background */
  --color-gold:           #E9BD6A;  /* nav hover, accent */
  --color-white:          #ffffff;
  --color-black:          #000000;
  --color-text-gray:      #7A7A7A;
  --color-light-gray:     #d3d0d0;  /* fraction numbers */
  --color-border-gray:    #DDDDDD;  /* article borders */
  --color-active-bg:      #b7afb2;  /* active media selector */
  --color-ribbon-primary: #4d5f74;  /* ribbon badge front */
  --color-ribbon-secondary: #122337; /* ribbon badge shadow */

  /* Typography */
  --font-display:  "Playfair Display", serif;
  --font-system:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif:    "Source Serif Pro", serif;

  /* ----------------------------------------------------------
     Elementor kit variable overrides
     These control the global defaults Elementor uses across
     all templates. Edit here to change site-wide defaults.
     ---------------------------------------------------------- */
  --e-global-color-primary:   #6EC1E4;
  --e-global-color-secondary: #54595F;
  --e-global-color-text:      #7A7A7A;
  --e-global-color-accent:    #61CE70;

  --e-global-typography-primary-font-family:   "Playfair Display";
  --e-global-typography-secondary-font-family: "Playfair Display";
  --e-global-typography-text-font-family:      "Playfair Display";
  --e-global-typography-accent-font-family:    "Roboto";

  --e-global-typography-primary-font-size:   40px;
  --e-global-typography-secondary-font-size: 26px;
  --e-global-typography-text-font-size:      24px;

  /* ----------------------------------------------------------
     WordPress theme variable overrides (used by base styles)
     ---------------------------------------------------------- */
  --wp--preset--color--primary:    #1a4548;
  --wp--preset--color--secondary:  #ffe2c7;
  --wp--preset--color--tertiary:   #F6F6F6;
  --wp--preset--color--foreground: #000000;
  --wp--preset--color--background: #ffffff;
}

/* Responsive font size scaling (mirrors Elementor kit breakpoints) */
@media (max-width: 1366px) {
  :root { --e-global-typography-primary-font-size: 36px; }
}
@media (max-width: 767px) {
  :root {
    --e-global-typography-primary-font-size:   22px;
    --e-global-typography-secondary-font-size: 20px;
    --e-global-typography-text-font-size:      18px;
  }
}
@media (min-width: 2400px) {
  :root {
    --e-global-typography-primary-font-size:   60px;
    --e-global-typography-secondary-font-size: 30px;
    --e-global-typography-text-font-size:      28px;
  }
}

/* ----------------------------------------------------------
   3. Custom Site Styles
   (moved from wp-content/themes/twenty-twenty-two-child/style.css)
   ---------------------------------------------------------- */

body {
  counter-reset: fraction-number;
}

span.fraction {
  counter-increment: fraction-number;
}

span.fraction:before {
  content: "0" counter(fraction-number);
  font-size: 84px;
  font-family: var(--font-display);
  color: var(--color-light-gray);
  line-height: 0;
}

.overlay-button .elementor-button-icon svg {
  width: 1.5em;
}

.overlay-button span.elementor-button-text {
  line-height: 1.9;
}

.media-page-selector .elementor-heading-title:hover {
  color: var(--color-white) !important;
}

.media-page-selector.active .elementor-heading-title {
  color: var(--color-black) !important;
}

.media-page-selector.active .elementor-widget-container {
  background-color: var(--color-active-bg) !important;
}

.media-page-selector .elementor-heading-title {
  cursor: pointer;
}

.overlay-button a.elementor-button.elementor-button-link.elementor-size-sm {
  padding: 5px 10px;
}

.articles-blocks .e-loop-item.article {
  border: var(--color-border-gray) solid 2px;
  padding: 5px;
}

.elementor-element-49f0cd7 .elementor-loop-container.elementor-grid {
  grid-column-gap: 0;
  grid-row-gap: 0;
}

.home img.swiper-slide-image {
  object-fit: cover;
}

.elementor-social-icon- {
  background-color: var(--color-white) !important;
}

/* Nav dropdown text alignment on tablet */
@media (max-width: 1024px) {
  .elementor-104 .elementor-element.elementor-element-4b999eb .elementor-nav-menu--dropdown .elementor-item,
  .elementor-104 .elementor-element.elementor-element-4b999eb .elementor-nav-menu--dropdown .elementor-sub-item {
    text-align: center;
  }
}

/* Mobile hero */
@media only screen and (max-width: 767px) {
  .home img.swiper-slide-image {
    height: 400px;
    width: 100vw;
    object-fit: cover;
  }
  .not-mob-abs {
    position: relative !important;
    top: unset !important;
    bottom: unset !important;
  }
}

/* Tablet hero + carousel dots */
@media only screen and (min-width: 768px) {
  .elementor-loop-container .add-dot:before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--color-black);
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 48.8%;
  }
  .home img.swiper-slide-image {
    height: 480px;
    width: 100vw;
  }
}

/* Desktop hero */
@media only screen and (min-width: 1025px) {
  .home img.swiper-slide-image {
    height: 100vh;
    width: 100vw;
  }
}

/* Widescreen carousel dot positions */
@media only screen and (min-width: 1160px) {
  .elementor-loop-container .add-dot:before {
    left: 49.25%;
  }
}
@media only screen and (min-width: 1260px) {
  .elementor-loop-container .add-dot:before {
    left: 49.25%;
  }
}
@media only screen and (min-width: 1920px) {
  .elementor-loop-container .add-dot:before {
    left: 49.6%;
  }
}

/* ----------------------------------------------------------
   4. Ribbon Badges
   (C-SPAN, GD, 9/11 Commission, Press corner ribbons)
   ---------------------------------------------------------- */

.ccspan {
  --text: 'C-SPAN';
  --first-color: var(--color-ribbon-primary);
  --second-color: var(--color-ribbon-secondary);
  position: relative;
}

.gd {
  --text: 'GD';
  --first-color: var(--color-ribbon-primary);
  --second-color: var(--color-ribbon-secondary);
  position: relative;
}

.commission {
  --text: '9/11 Com.';
  --first-color: var(--color-ribbon-primary);
  --second-color: var(--color-ribbon-secondary);
  position: relative;
}

.cpress {
  --text: 'PRESS';
  --first-color: var(--color-ribbon-primary);
  --second-color: var(--color-ribbon-secondary);
  position: relative;
}

.ccspan .myRibbon,
.cpress .myRibbon,
.commission .myRibbon,
.gd .myRibbon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100px;
  height: 98px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ccspan .myRibbon::before,
.cpress .myRibbon::before,
.gd .myRibbon::before,
.commission .myRibbon::before {
  content: var(--text);
  position: absolute;
  width: 150%;
  height: 30px;
  background: var(--first-color);
  transform: rotate(45deg) translateY(-20px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.1em;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.ccspan .myRibbon::after,
.cpress .myRibbon::after,
.gd .myRibbon::after,
.commission .myRibbon::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--second-color);
  z-index: -1;
  box-shadow: 140px -140px var(--second-color);
}

/* ----------------------------------------------------------
   5. Base Reset & Body
   ---------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--color-white);
  color: #54595f;
  font-family: var(--font-system);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: inherit; }

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

h2, h3 { font-weight: 600; }
h4 { font-weight: 600; }

p { margin: 0 0 1rem; }

/* ----------------------------------------------------------
   6. Site Header — Inner Pages
   ---------------------------------------------------------- */

.site-header {
  position: relative;
  background-color: #000;
  background-image: url('/wp-content/uploads/2024/09/john_f_lehman_secretary_of_navy_swear_in.jpg');
  background-size: cover;
  background-position: center top;
  min-height: 35vh;
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,0,0,0.75) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2vw 4vw;
  gap: 2rem;
}

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

.logo {
  width: 45%;
  max-width: 300px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Nav toggle (mobile burger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Main nav */
.site-nav { flex-grow: 1; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 32px);
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.1em 0;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-gold);
}

/* ----------------------------------------------------------
   7. Site Header — Homepage (hero carousel)
   ---------------------------------------------------------- */

.site-header--home {
  position: relative;
  height: 100vh;
  min-height: 400px;
  background: #000;
  overflow: hidden;
}

.site-header--home::after { display: none; }

.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-carousel .swiper-wrapper,
.hero-carousel .swiper-slide { height: 100%; }

.hero-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .swiper-pagination {
  bottom: 1rem;
}

.hero-carousel .swiper-pagination-bullet {
  background: var(--color-white);
  opacity: 0.6;
}

.hero-carousel .swiper-pagination-bullet-active { opacity: 1; }

.site-header--home .header-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
  flex-direction: column;
  justify-content: flex-start;
  padding: 3vw;
}

.site-header--home .logo { width: 50%; max-width: 320px; }

/* ----------------------------------------------------------
   8. Page Layout
   ---------------------------------------------------------- */

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 4vw;
}

.page-hero {
  padding: 2rem 4vw 1.5rem;
  background: var(--color-white);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  margin: 0;
}

/* ----------------------------------------------------------
   9. Homepage Sections
   ---------------------------------------------------------- */

.home-sections { max-width: 1200px; margin: 0 auto; background: #F6F6F6; }

.home-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #ddd;
  background: #F6F6F6;
}

.home-section-cell {
  padding: 4rem 4vw;
}

/* Watermark seal image in the first home section left cell */
.home-section:first-child .home-section-cell:first-child {
  position: relative;
}
.home-section:first-child .home-section-cell:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2024/07/Flag_of_the_United_States_Secretary_of_the_Navy.svg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 55%;
  opacity: 0.12;
  pointer-events: none;
}

.home-section-cell h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.home-section-cell h2 { font-weight: 300; margin-top: 0; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.75rem;
  border: 1px solid var(--color-black);
  border-radius: 50px;
  font-family: var(--font-system);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  background: var(--color-dark-navy);
  transition: background 0.2s, color 0.2s;
  margin-top: 1rem;
}

.btn:hover { background: #1a2f47; }

.btn--dark {
  background: #122337;
  color: var(--color-white);
  border-color: #122337;
  border-radius: 25px;
}

.btn--dark:hover { background: #1a2f47; border-color: #1a2f47; }

/* Books carousel section */
.books-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 40vh;
  border-top: 1px solid #eee;
}

.books-carousel-col {
  background: #f5f5f5;
  position: relative;
  min-height: 300px;
  overflow: hidden;
  min-width: 0;
}

#books-carousel {
  height: 100%;
  min-height: 300px;
}

#books-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#books-carousel .swiper-slide img {
  max-height: 300px;
  width: auto;
  object-fit: contain;
}

#books-carousel .swiper-button-next,
#books-carousel .swiper-button-prev {
  color: var(--color-dark-navy);
}

#books-carousel .swiper-pagination { position: static; text-align: left; margin-top: 1rem; }

.books-text-col {
  padding: 3rem 4vw;
  background: var(--color-dark-navy);
  color: var(--color-white);
}

.books-text-col h2 { color: var(--color-white); font-size: 1.25rem; margin-bottom: 1.5rem; }

.book-quote { font-style: italic; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.7; }

.book-attribution { text-align: right; margin-top: 1rem; font-size: 0.95rem; }

/* ----------------------------------------------------------
   10. Articles
   ---------------------------------------------------------- */

.article-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--color-border-gray);
  position: relative;
}

.article-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  line-height: 1.4;
}

.article-card h2 a {
  color: var(--color-dark-navy);
  text-decoration: none;
}

.article-card h2 a:hover { color: var(--color-gold); text-decoration: underline; }

.article-meta {
  font-size: 0.875rem;
  color: var(--color-text-gray);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.article-meta-row { display: flex; gap: 0.5rem; align-items: baseline; }
.article-meta-label { font-weight: 700; color: #333; white-space: nowrap; }
.article-meta-publication { font-style: italic; }

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-system);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.print-btn:hover { background: #f5f5f5; }
.print-btn svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------
   11. Books
   ---------------------------------------------------------- */

.books-list { max-width: 1200px; margin: 0 auto; padding: 0 4vw 3rem; }

/* Books split header: h2 left, subtitle right — same row */
.books-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 0;
  padding: 1.5rem 0;
}
.books-header h1 { font-weight: 600; margin: 0; flex-shrink: 0; }
.books-header .subtitle { color: var(--color-text-gray); margin: 0; font-size: 1rem; }

.book-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  border-bottom: 1px solid var(--color-border-gray);
}

.book-card:first-of-type { border-top: 1px solid var(--color-border-gray); }

/* Even books: image on right, text on left */
.book-card--reverse { flex-direction: row-reverse; }

.book-cover {
  flex: 0 0 50%;
  background: #efefef;
  padding: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.book-cover img { max-width: 270px; width: 100%; height: auto; }

.book-info {
  flex: 0 0 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-info h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-weight: 600;
  color: #122337;
  margin: 0 0 1rem;
  font-family: var(--font-display);
}

.book-info p { color: var(--color-text-gray); font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.book-attribution { font-style: italic; text-align: right; color: var(--color-text-gray); font-size: 0.95rem; margin-bottom: 1.5rem !important; }

/* ----------------------------------------------------------
   12. Timelines
   ---------------------------------------------------------- */

.timeline-list {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

/* Vertical spine */
.timeline-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #000;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 5vw;
}

/* Odd items: text on left side, border on right */
.timeline-item--left {
  text-align: right;
  border-right: 1px solid #000;
  padding-right: 40px;
}

/* Even items: text on right side, border on left */
.timeline-item--right {
  text-align: left;
  border-left: 1px solid #000;
  padding-left: 40px;
  margin-left: 50%;
}

/* Dot on the spine */
.timeline-item--left::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-item--right::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-size: 3.875rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #262e33;
}

.timeline-event {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: #262e33;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .timeline-list::before { left: 20px; transform: none; }
  .timeline-item,
  .timeline-item--left,
  .timeline-item--right {
    width: 100%;
    margin-left: 0;
    text-align: left;
    border-right: none;
    border-left: 1px solid #000;
    padding-left: 50px;
    padding-right: 1rem;
  }
  .timeline-item--left::after,
  .timeline-item--right::after {
    left: 10px;
    right: auto;
  }
}

/* ----------------------------------------------------------
   13. Gallery
   ---------------------------------------------------------- */

.gallery-intro { max-width: 1200px; margin: 0 auto; padding: 1rem 4vw; }

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 4vw 3rem;
  columns: 4;
  column-gap: 10px;
}

.gallery-item {
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

@media (max-width: 1024px) { .gallery-grid { columns: 3; } }
@media (max-width: 767px) { .gallery-grid { columns: 2; } }

/* ----------------------------------------------------------
   14. Videos / Media Coverage
   ---------------------------------------------------------- */

.media-page { max-width: 1400px; margin: 0 auto; padding: 2rem 4vw 3rem; }

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.35rem 1.25rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-family: var(--font-system);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-active-bg);
  color: var(--color-black);
  border-color: var(--color-active-bg);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.video-card { display: flex; flex-direction: column; gap: 0; border: 1px solid #ddd; overflow: visible; position: relative; }
.video-card h3 { padding: 0.75rem; margin: 0; }
.video-card .video-date { padding: 0 0.75rem 0.75rem; }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin: 0;
  padding: 0.75rem;
  line-height: 1.4;
}

.video-card .video-date { font-size: 0.875rem; color: var(--color-text-gray); }

.video-card--external .video-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.video-card--external .video-placeholder {
  background: var(--color-dark-navy);
  color: var(--color-white);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
  min-height: 120px;
  transition: background 0.2s;
}

.video-card--external .video-link:hover .video-placeholder {
  background: #1a2430;
}

/* ----------------------------------------------------------
   15. Posts
   ---------------------------------------------------------- */

.posts-grid { max-width: 1200px; margin: 0 auto; padding: 0 4vw 3rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card a { text-decoration: none; color: inherit; }

.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1rem; }

.post-card h3 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.post-card p { font-size: 0.95rem; color: var(--color-text-gray); margin: 0 0 0.5rem; }

.post-card time { font-size: 0.875rem; color: var(--color-text-gray); }
.post-meta { font-size: 0.875rem; color: var(--color-text-gray); margin: 0.25rem 0 0.75rem; }
.post-read-more { font-size: 0.875rem; color: var(--color-dark-navy); text-decoration: none; }
.post-read-more:hover { text-decoration: underline; }
.post-card h3 { margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--color-dark-navy); }

/* ----------------------------------------------------------
   16. Awards
   ---------------------------------------------------------- */

.awards-page { max-width: 1200px; margin: 0 auto; padding: 0 4vw 3rem; }

/* 3-column card grid — matches live site layout */
.award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.award-card {
  background: #f5f8f8;
  padding: 2rem 1.5rem;
  text-align: center;
}

.award-card-year {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-dark-navy);
  margin: 0 0 0.75rem;
}

.award-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #000;
}

.award-org { font-size: 0.9rem; color: var(--color-text-gray); margin: 0 0 0.1rem; }

.award-detail { font-size: 0.9rem; color: var(--color-text-gray); margin: 0.1rem 0 0; font-style: italic; }

/* ----------------------------------------------------------
   17. Sitemap
   ---------------------------------------------------------- */

.sitemap-page { max-width: 800px; margin: 0 auto; padding: 0 4vw 3rem; }

.sitemap-page h2 { font-weight: 600; margin-bottom: 0.75rem; }

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.sitemap-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--color-border-gray); }

.sitemap-list a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-dark-navy);
}

.sitemap-list a:hover { color: var(--color-gold); }

/* ----------------------------------------------------------
   18. Bio Page
   ---------------------------------------------------------- */

.bio-page { max-width: 1200px; margin: 0 auto; padding: 2rem 4vw 3rem; }

.bio-page h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; margin-bottom: 2rem; }

/* Section 1: portrait left, navy text right */
.bio-section-1 {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.bio-photo img { width: 100%; height: auto; }

.bio-navy-text h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.bio-navy-text p { line-height: 1.75; margin-bottom: 1rem; color: var(--color-text-gray); }

/* Section 2: three standalone paragraphs */
.bio-section-2 {
  padding: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 2.5rem;
}

.bio-section-2 p { line-height: 1.75; margin-bottom: 1rem; color: var(--color-text-gray); }
.bio-section-2 p:last-child { margin-bottom: 0; }

/* Section 3: military career + secretary two-column */
.bio-section-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-military h4, .bio-secretary h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.bio-military p, .bio-secretary p { line-height: 1.75; margin-bottom: 1rem; color: var(--color-text-gray); }

/* ----------------------------------------------------------
   19. Footer
   ---------------------------------------------------------- */

.site-footer {
  background: var(--color-dark-navy);
  color: var(--color-white);
  padding: 2vw 10vw;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 0.75rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 0.5rem;
}

.footer-contact p { font-size: 1.1rem; line-height: 1.7; margin: 0; }

.footer-nav-col nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
}

.footer-nav-col nav ul li {
  flex-basis: 100%;
}

.footer-nav-col nav ul li + li::before {
  content: '';
}

.footer-nav-col a {
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: inline;
  padding: 0 0.5rem;
  border-right: 1px solid var(--color-white);
}

.footer-nav-col a:hover { color: var(--color-gold); }

.footer-nav-col nav ul {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav-col nav ul li { flex-basis: auto; }

.footer-nav-col nav ul li:last-child a { border-right: none; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #e00;
  border-radius: 4px;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-social a:last-child { background: var(--color-white); }

.footer-social a:hover { opacity: 0.85; }

.footer-social svg { width: 22px; height: 22px; fill: currentColor; }

.footer-social a:last-child svg path { fill: inherit; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-bottom p { margin: 0 0 0.25rem; }

.footer-bottom a { color: var(--color-white); text-decoration: underline; }

/* ----------------------------------------------------------
   20. Single Blog Post
   ---------------------------------------------------------- */

.post-article { max-width: 800px; margin: 0 auto; padding: 2rem 4vw 3rem; }

.post-article h1 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 300; margin-bottom: 0.5rem; }

.post-date { color: var(--color-text-gray); font-size: 0.95rem; margin-bottom: 2rem; }

.post-article h2 { font-size: 1.5rem; font-weight: 600; margin: 2rem 0 0.75rem; }

.post-article p { line-height: 1.8; margin-bottom: 1rem; }

.post-article ol { padding-left: 1.5rem; }
.post-article li { margin-bottom: 0.5rem; line-height: 1.7; }

/* ----------------------------------------------------------
   21. Responsive
   ---------------------------------------------------------- */

@media (max-width: 767px) {
  .home-section { grid-template-columns: 1fr; }
  .books-section { grid-template-columns: 1fr; }
  .bio-section-1 { grid-template-columns: 1fr; }
  .bio-section-3 { grid-template-columns: 1fr; }
  .award-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .site-header { min-height: 25vh; }
  .site-header--home { height: 100vw; max-height: 100vh; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7,0,0,0.95);
    padding: 1rem 2rem;
    z-index: 100;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; gap: 0.5rem; }

  .logo { width: 70%; max-width: none; }

  .book-card,
  .book-card--reverse { flex-direction: column; }
  .book-cover { flex: none; min-height: 200px; }
  .book-info { flex: none; }

  .timeline-item { grid-template-columns: 70px 1fr; }

  .award-item { grid-template-columns: 60px 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  .site-footer { padding: 2vw; }

  .video-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   POLISH — refined visual details
   ============================================================= */

/* --- Logo: remove underline, tighten spacing --- */
.logo-link { text-decoration: none; display: inline-block; }
.logo-link:hover { opacity: 0.9; }

/* --- Nav: tighter tracking, letter-spacing refinement --- */
.site-nav a {
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* --- Inner header: min-height tuned for presence --- */
.site-header { min-height: 38vh; }

/* --- Page-hero: add a thin gold rule under the h1 --- */
.page-hero {
  padding: 2.5rem 4vw 2rem;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 0;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--color-dark-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.15em;
}
.page-hero h1::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--color-gold);
  margin-top: 0.6rem;
}

/* --- Homepage: de-bold the <strong> tags — they're ALL bold which is exhausting --- */
.home-section-cell strong {
  font-weight: 500;
}

/* --- Homepage h1 "Bio" heading --- */
.home-section-cell h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  color: var(--color-dark-navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

/* --- CTA buttons: more refined --- */
.btn {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* --- Article cards: label weight polish --- */
.article-meta-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.article-card h2 { font-size: 1rem; line-height: 1.45; }

/* --- Article grid: subtle card shadow on hover --- */
.article-card {
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-color: #bbb;
}

/* --- Bio page h1 --- */
.bio-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-dark-navy);
  padding-bottom: 1rem;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 2.5rem;
}

/* --- Bio section-2: gentle separator --- */
.bio-section-2 {
  background: #f8f8f8;
  padding: 2rem 2.5rem;
  border-top: none;
  border-bottom: none;
  border-left: 3px solid var(--color-gold);
  margin-bottom: 2.5rem;
}

/* --- Bio section headings --- */
.bio-navy-text h4,
.bio-military h4,
.bio-secretary h4 {
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark-navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e0e0e0;
}

/* --- Awards page h1 --- */
.awards-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--color-dark-navy);
  letter-spacing: -0.01em;
}

/* --- Award cards: shadow on hover --- */
.award-card {
  transition: transform 0.18s, box-shadow 0.18s;
}
.award-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.award-card-year {
  color: var(--color-dark-navy);
  letter-spacing: -0.02em;
}

/* --- Books: title refinement --- */
.book-info h3 {
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.book-cover {
  background: #f0f0f0;
}

/* --- Timeline: slight padding refinement --- */
.timeline-year {
  color: var(--color-dark-navy);
  letter-spacing: -0.02em;
}
.timeline-event {
  color: #444;
  font-size: 1.5rem;
}

/* --- Footer: refined link separator --- */
.footer-nav-col a {
  font-size: 1rem;
}
.footer-bottom {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: rgba(255,255,255,0.9); }

/* --- Print button: more refined --- */
.print-btn {
  border-radius: 4px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #555;
  padding: 0.45rem 0.9rem;
}

/* --- Filter buttons: refined --- */
.filter-btn {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.filter-btn.active {
  background: var(--color-dark-navy);
  color: var(--color-white);
  border-color: var(--color-dark-navy);
}

/* --- Video cards: refined title --- */
.video-card h3 {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

/* --- Post cards --- */
.post-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}
.post-read-more {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --- Books header refined --- */
.books-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--color-dark-navy);
}

/* --- Sitemap links --- */
.sitemap-list a { font-size: 1rem; letter-spacing: 0.01em; }

/* --- General link polish: no underline by default, only on hover --- */
.article-card h2 a { text-decoration: none; }
.article-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--color-gold); }
