/*
Theme Name: Neue Gotha for Salient
Theme URI: https://neuegotha.com/
Description: A Salient child theme for the Neue Gotha historical and genealogical register, with a fully editable Salient WPBakery homepage.
Author: Neue Gotha Editorial Office
Template: salient
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: neue-gotha-salient
*/

:root {
  --ng-onyx: #0d0d0f;
  --ng-charcoal: #1a1a1d;
  --ng-gold: #b88942;
  --ng-gold-dark: #7e5b28;
  --ng-parchment: #f2f0ec;
  --ng-paper: #faf9f6;
  --ng-line: rgba(26, 26, 29, .14);
  --ng-serif: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --ng-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { color: var(--ng-charcoal); background: var(--ng-parchment); }
body, #header-outer, #footer-outer { font-family: var(--ng-sans); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ng-serif); }

/* Salient owns the header; these rules supply the Neue Gotha character. */
#header-outer { background-color: rgba(250, 249, 246, .97); border-bottom: 1px solid var(--ng-line); }
#header-outer #logo, #header-outer #top nav > ul > li > a { color: var(--ng-charcoal); }
#header-outer #top nav > ul > li > a { font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
#header-outer #logo { font-family: var(--ng-serif); letter-spacing: .22em; text-transform: uppercase; }
#footer-outer { background: linear-gradient(100deg, #121214, #202022); }

/* Fully editable Salient/WPBakery homepage. */
.ng-home-hero-row { min-height: 620px; background: #ece8df; border-bottom: 1px solid var(--ng-line); }
.ng-home-hero-row > .row_col_wrap_12 { min-height: 620px; }
.ng-home-hero-copy > .vc_column-inner { display: flex; min-height: 620px; flex-direction: column; justify-content: center; background: linear-gradient(90deg, #f2f0ec 0%, rgba(242, 240, 236, .97) 84%, rgba(242, 240, 236, .7) 100%); }
.ng-home-map-column > .vc_column-inner { min-height: 620px; background-image: linear-gradient(90deg, rgba(242, 240, 236, .25), transparent 30%), url("assets/images/europe-1700s-map.jpg"); background-position: center; background-size: cover; filter: sepia(.08) saturate(.82) contrast(.95); }
.ng-home-map-description { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ng-home-kicker { margin-bottom: 18px !important; color: var(--ng-gold-dark); font-family: var(--ng-sans); font-size: 12px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.ng-home-kicker p::before { display: inline-block; width: 30px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--ng-gold); content: ""; }
.ng-home-display h1 { max-width: 620px; margin: 0; color: var(--ng-charcoal); font-size: clamp(52px, 5.3vw, 88px); font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.ng-home-intro { max-width: 470px; margin-top: 25px; font-family: var(--ng-serif); font-size: 17px; line-height: 1.55; }
.ng-home-overview-row { background: var(--ng-parchment); border-bottom: 1px solid var(--ng-line); }
.ng-home-section-label { color: var(--ng-gold-dark); font-family: var(--ng-sans); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.ng-home-section-label p::after { display: inline-block; width: 28px; height: 1px; margin-left: 11px; vertical-align: middle; background: var(--ng-gold); content: ""; }
.ng-home-mission-title h2 { margin-top: 18px; font-size: clamp(31px, 3vw, 47px); font-weight: 400; line-height: 1.12; }
.ng-home-featured-column, .ng-home-recent-column { border-left: 1px solid var(--ng-line); }
.ng-featured-record { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; min-height: 220px; padding: 24px; border: 1px solid var(--ng-line); background: rgba(255, 255, 255, .28); }
.ng-featured-record:has(.ng-record-image) { grid-template-columns: 120px minmax(0, 1fr); }
.ng-featured-record:not(:has(.ng-record-image)) { grid-template-columns: 1fr; }
.ng-record-image img { width: 120px; height: 145px; object-fit: contain; background: #fff; }
.ng-record-type { display: block; color: var(--ng-gold-dark); font-family: var(--ng-sans); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ng-featured-record h3 { margin: 6px 0 8px; font-size: 25px; font-weight: 400; line-height: 1.1; }
.ng-featured-record p { margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
.ng-record-link { color: var(--ng-gold-dark); font-family: var(--ng-sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ng-recent-records { border-top: 1px solid var(--ng-line); }
.ng-recent-record { position: relative; min-height: 78px; padding: 14px 35px 14px 0; border-bottom: 1px solid var(--ng-line); }
.ng-recent-record h3 { margin: 3px 0 0; font-size: 18px; font-weight: 400; line-height: 1.2; }
.ng-recent-record > span:last-child { position: absolute; top: 50%; right: 3px; color: var(--ng-gold-dark); font-size: 24px; transform: translateY(-50%); }
.ng-empty-register { padding: 24px; border: 1px solid var(--ng-line); color: #5e5b58; font-family: var(--ng-serif); }
.ng-home-metrics-row { background: rgba(255, 255, 255, .25); border-bottom: 1px solid var(--ng-line); }
.ng-home-metrics-row .wpb_column { border-right: 1px solid var(--ng-line); }
.ng-home-metrics-row .wpb_column:last-child { border-right: 0; }
.ng-live-metric { display: flex; min-height: 122px; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.ng-live-metric strong { color: var(--ng-charcoal); font-family: var(--ng-serif); font-size: 31px; font-weight: 400; line-height: 1; }
.ng-live-metric span { margin-top: 7px; color: #5e5b58; font-family: var(--ng-sans); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }

/* Register templates retain compact almanac typography inside Salient. */
.ng-register-shell { padding: 0 0 80px; }
.ng-register-hero { padding: 52px 0 30px; border-bottom: 1px solid var(--ng-line); }
.ng-register-hero h1 { max-width: 980px; margin: 0; color: var(--ng-charcoal); font-size: clamp(42px, 5vw, 72px); font-weight: 400; line-height: 1.03; }
.ng-register-kicker { margin-bottom: 14px; color: var(--ng-gold-dark); font-family: var(--ng-sans); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.ng-register-dek { max-width: 820px; margin-top: 14px; font-family: var(--ng-serif); font-size: 20px; line-height: 1.42; }
.ng-register-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 25px 0 0; border: 1px solid var(--ng-line); background: var(--ng-line); }
.ng-register-facts div { min-width: 0; padding: 11px 14px; background: var(--ng-paper); }
.ng-register-facts dt { color: #696560; font-family: var(--ng-sans); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.ng-register-facts dd { margin: 4px 0 0; font-family: var(--ng-serif); font-size: 15px; line-height: 1.25; }
.ng-register-content { max-width: 960px; margin: 0 auto; padding-top: 36px; font-family: var(--ng-serif); font-size: 16px; line-height: 1.52; }
.ng-register-content p { margin-bottom: .82em; }
.ng-register-content h2 { margin: 1.9em 0 .55em; padding-bottom: .25em; border-bottom: 1px solid var(--ng-line); color: var(--ng-gold-dark); font-size: 25px; font-weight: 400; line-height: 1.18; }
.ng-register-content h3 { margin: 1.5em 0 .45em; font-size: 19px; font-weight: 400; }
/* Legacy pages frequently used consecutive headings as a title and subtitle. */
.ng-register-content > div:has(> h2:only-child) { margin: 1.9em 0 .55em; }
.ng-register-content > div:has(> h2:only-child) > h2 { margin: 0; }
.ng-register-content > div:has(> h2:only-child) + div:has(> h2:only-child) { margin-top: -.4em; }
.ng-register-content > div:has(> h2:only-child) + div:has(> h2:only-child) > h2 { font-size: 20px; }
.ng-register-content .ng-figure { margin: 1.4rem auto; text-align: center; }
.ng-register-content .ng-figure img { display: inline-block; width: auto; max-width: 100%; max-height: 660px; border: 1px solid var(--ng-line); background: #fff; }
.ng-register-content table { display: block; width: 100%; max-width: 100%; margin: 1.1em 0 1.5em; overflow-x: auto; border-collapse: collapse; font-size: 13px; line-height: 1.35; }
.ng-register-content th, .ng-register-content td { padding: 5px 7px; border: 1px solid var(--ng-line); vertical-align: top; }
.ng-register-content th { background: #e8e3da; font-family: var(--ng-sans); font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.ng-register-content .ng-gallery-grid { columns: 3 250px; column-gap: 16px; }
.ng-register-content .ng-gallery-grid .ng-figure { break-inside: avoid; margin: 0 0 16px; }
.ng-register-content .ng-image-placeholder { display: grid; min-height: 150px; place-items: center; border: 1px solid var(--ng-line); background: #e8e3da; color: #696560; font-family: var(--ng-sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ng-register-results { padding-top: 40px; }
.ng-register-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ng-register-card { min-width: 0; border: 1px solid var(--ng-line); background: var(--ng-paper); }
.ng-register-card .archive-card__body { padding: 22px; }
.ng-register-card .archive-card__title { margin: 7px 0 10px; font-size: 23px; font-weight: 400; line-height: 1.15; }
.ng-register-card .archive-card__meta { color: var(--ng-gold-dark); font-family: var(--ng-sans); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ng-register-card p { font-size: 14px; line-height: 1.45; }

@media (max-width: 999px) {
  .ng-home-hero-row, .ng-home-hero-row > .row_col_wrap_12, .ng-home-hero-copy > .vc_column-inner { min-height: auto; }
  .ng-home-hero-copy > .vc_column-inner { padding-block: 70px !important; }
  .ng-home-map-column > .vc_column-inner { min-height: 440px; }
  .ng-home-featured-column, .ng-home-recent-column { margin-top: 35px; padding-top: 30px; border-top: 1px solid var(--ng-line); border-left: 0; }
  .ng-home-metrics-row .wpb_column { width: 50%; border-bottom: 1px solid var(--ng-line); }
  .ng-register-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-register-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
  .ng-home-display h1 { font-size: 48px; }
  .ng-home-map-column > .vc_column-inner { min-height: 330px; }
  .ng-home-metrics-row .wpb_column { width: 100%; border-right: 0; }
  .ng-featured-record { grid-template-columns: 1fr; }
  .ng-register-facts, .ng-register-grid { grid-template-columns: 1fr; }
  .ng-register-hero h1 { font-size: 40px; }
}
