/*
 * Haynie & Associates — newsletter pages (issue + archive) and the shared content styles used inside the
 * editor, so what editors see while writing matches the published page.
 * Builds on the site's styles.css (colours, fonts, .page-hero, header, footer).
 */
:root {
  --nl-navy: var(--primary-blue, #003366);
  --nl-blue: var(--secondary-blue, #1a4d8f);
  --nl-red: var(--accent-red, #b22234);
  --nl-tan: var(--warm-tan, #d4a574);
  --nl-tan-light: var(--light-tan, #f5e6d3);
  --nl-ink: var(--dark-gray, #2c3e50);
  --nl-muted: #586869;
  --nl-line: #e5e8eb;
  --nl-paper: #ffffff;
  --nl-bg: #f6f4f0;
  --nl-serif: var(--font-serif, 'Playfair Display', Georgia, serif);
  --nl-sans: var(--font-sans, 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif);
  --nl-shadow: 0 18px 50px rgba(0, 30, 60, .10), 0 2px 6px rgba(0, 30, 60, .05);
}

/* ---------------------------------------------------------------- hero (extends .page-hero) */
.nl-hero { padding: 160px 0 128px; }
.nl-hero .hero-content { max-width: 900px; margin: 0 auto; }
.nl-hero .hero-label { margin-bottom: 18px; }
.nl-hero .nl-hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.14;
  text-shadow: none;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.nl-hero-meta {
  color: var(--nl-tan-light);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.nl-dot { margin: 0 .5em; color: var(--nl-tan); }
.nl-hero-summary {
  color: rgba(255, 255, 255, .9);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- issue page */
.nl-main { background: var(--nl-bg); padding-bottom: 96px; }
.nl-article {
  position: relative;
  z-index: 3;
  max-width: 840px;
  margin: -80px auto 0;
  background: var(--nl-paper);
  border-top: 4px solid var(--nl-red);
  box-shadow: var(--nl-shadow);
  padding: 60px 72px 44px;
}
.nl-article-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--nl-line);
}
.nl-back-link, .nl-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nl-blue);
  text-decoration: none;
}
.nl-back-link:hover, .nl-contact-link:hover { color: var(--nl-red); }
.nl-back-link .icon, .nl-contact-link .icon { transition: transform .2s ease; }
.nl-back-link:hover .icon { transform: translateX(-3px); }
.nl-contact-link:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- content typography (shared with the editor) */
.nl-content {
  font-family: var(--nl-sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--nl-ink);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.nl-content::after { content: ""; display: table; clear: both; }
.nl-content > :first-child { margin-top: 0; }
.nl-content p { margin: 0 0 1.15em; }
.nl-content h2 {
  font-family: var(--nl-serif);
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--nl-navy);
  margin: 1.7em 0 .6em;
}
.nl-content h3 {
  font-family: var(--nl-serif);
  font-size: 1.42rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--nl-blue);
  margin: 1.5em 0 .5em;
}
.nl-content a {
  color: var(--nl-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.nl-content a:hover { color: var(--nl-red); }
.nl-content strong { font-weight: 700; }
.nl-content ul, .nl-content ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.nl-content li { margin: .35em 0; padding-left: .2em; }
.nl-content li > p { margin: 0; }
.nl-content li > ul, .nl-content li > ol { margin: .35em 0 0; }
.nl-content ul > li::marker { color: var(--nl-red); }
.nl-content ol > li::marker { color: var(--nl-navy); font-weight: 600; }
.nl-content blockquote {
  margin: 1.7em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--nl-tan);
  background: #fbf6ee;
  font-family: var(--nl-serif);
  font-style: italic;
  font-size: 1.12em;
  line-height: 1.6;
  color: var(--nl-navy);
}
.nl-content blockquote p:last-child { margin-bottom: 0; }
.nl-content hr {
  border: 0;
  height: 1px;
  margin: 2.6em auto;
  max-width: 260px;
  background: linear-gradient(90deg, transparent, var(--nl-tan), transparent);
}
.nl-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.7em auto;
}
.nl-content .nl-img-size-small { width: 33%; }
.nl-content .nl-img-size-medium { width: 50%; }
.nl-content .nl-img-size-large { width: 75%; }
.nl-content .nl-img-size-full { width: 100%; }
.nl-content .nl-img-align-center { margin-left: auto; margin-right: auto; }
.nl-content .nl-img-align-left:not(.nl-img-size-full) { float: left; margin: .4em 1.75em 1em 0; }
.nl-content .nl-img-align-right:not(.nl-img-size-full) { float: right; margin: .4em 0 1em 1.75em; }

/* ---------------------------------------------------------------- archive */
.nl-archive { padding: 0; background: var(--nl-bg); }
.nl-archive-inner {
  position: relative;
  z-index: 3;
  max-width: 1120px;
  margin: -80px auto 0;
  padding: 0 20px;
}
.nl-featured {
  background: var(--nl-paper);
  border-top: 4px solid var(--nl-red);
  box-shadow: var(--nl-shadow);
  padding: 52px 60px;
}
.nl-featured-label {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  background: var(--nl-navy);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nl-featured-title {
  font-family: var(--nl-serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 16px;
}
.nl-featured-title a, .nl-card-title a { color: var(--nl-navy); text-decoration: none; overflow-wrap: anywhere; }
.nl-featured-title a:hover, .nl-card-title a:hover { color: var(--nl-red); }
.nl-featured-summary {
  color: var(--nl-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 0 28px;
}
.nl-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--nl-red);
  color: #fff;
  border: 2px solid var(--nl-red);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.nl-button:hover { background: var(--nl-navy); border-color: var(--nl-navy); color: #fff; transform: translateY(-2px); }
.nl-section-title {
  font-family: var(--nl-serif);
  font-size: 1.6rem;
  color: var(--nl-navy);
  margin: 64px 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nl-section-title::after { content: ""; flex: 1; height: 1px; background: var(--nl-line); }
.nl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.nl-featured + .nl-grid { margin-top: 28px; }
.nl-card {
  display: flex;
  flex-direction: column;
  background: var(--nl-paper);
  padding: 32px 30px 28px;
  border-top: 3px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 30, 60, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nl-card:hover { transform: translateY(-4px); border-top-color: var(--nl-red); box-shadow: 0 14px 40px rgba(0, 30, 60, .12); }
.nl-card-date {
  margin: 0 0 12px;
  color: var(--nl-red);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nl-card-title {
  font-family: var(--nl-serif);
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 12px;
}
.nl-card-summary {
  color: var(--nl-muted);
  line-height: 1.65;
  margin: 0 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nl-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nl-blue);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nl-card-cta:hover { color: var(--nl-red); }
.nl-card-cta .icon { transition: transform .2s ease; }
.nl-card:hover .nl-card-cta .icon { transform: translateX(4px); }
.nl-empty {
  background: var(--nl-paper);
  border-top: 4px solid var(--nl-red);
  box-shadow: var(--nl-shadow);
  padding: 64px 32px;
  text-align: center;
}
.nl-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--nl-tan-light);
  color: var(--nl-navy);
  margin-bottom: 20px;
}
.nl-empty h2 { font-size: 1.9rem; margin-bottom: 10px; }
.nl-empty p { color: var(--nl-muted); margin: 0 0 28px; font-size: 1.05rem; }
.nl-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.nl-page-link {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--nl-paper);
  border: 1px solid var(--nl-line);
  color: var(--nl-navy);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
a.nl-page-link:hover { border-color: var(--nl-navy); }
.nl-page-link.is-current { background: var(--nl-navy); border-color: var(--nl-navy); color: #fff; }
.nl-page-gap { color: var(--nl-muted); padding: 0 4px; }

/* ---------------------------------------------------------------- focus + private preview */
.nl-page a:focus-visible, .nl-page button:focus-visible { outline: 3px solid var(--nl-tan); outline-offset: 3px; }
.nl-preview-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 12px 16px;
  background: #18222e;
  color: #fff;
  font: 500 .92rem/1.4 var(--nl-sans);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .25);
}
.nl-preview-bar strong { color: var(--nl-tan); letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; }
.nl-preview-bar a { color: #fff; font-weight: 600; }
body.nl-preview { padding-bottom: 64px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nl-article { margin: -56px 16px 0; padding: 40px 28px 32px; }
  .nl-featured { padding: 40px 28px; }
}
@media (max-width: 640px) {
  .nl-hero { padding: 130px 0 96px; }
  .nl-hero-summary { font-size: 1.02rem; }
  .nl-article { margin: -48px 12px 0; padding: 30px 20px 26px; }
  .nl-archive-inner { margin-top: -56px; padding: 0 12px; }
  .nl-featured { padding: 32px 22px; }
  .nl-card { padding: 26px 22px 22px; }
  .nl-grid { grid-template-columns: 1fr; gap: 20px; }
  .nl-content { font-size: 17px; }
  .nl-content h2 { font-size: 1.6rem; }
  .nl-content h3 { font-size: 1.3rem; }
  .nl-content img.nl-img { float: none !important; width: 100% !important; margin: 1.5em 0 !important; }
  .nl-section-title { margin-top: 48px; }
}

@media print {
  .site-header, .main-nav, .mobile-menu-accordion, .menu-overlay, .main-footer, .nl-article-footer, .nl-preview-bar { display: none !important; }
  .nl-hero { padding: 0 0 12pt; background: none !important; color: #000; }
  .nl-hero .hero-label, .nl-hero-meta, .nl-hero-summary, .nl-hero .nl-hero-title { color: #000 !important; }
  .hero-bg-gradient { display: none; }
  .nl-main { background: none; padding: 0; }
  .nl-article { margin: 0; padding: 0; box-shadow: none; border: 0; max-width: none; }
  .nl-content a { color: #000; }
}
