/*
Theme Name: HR Leadership Weekly — Insights
Theme URI: https://hrleadershipweekly.com
Description: Editorial theme for HR Leadership Weekly. Navy and gold, Lora for long-form body copy, Inter for headings and UI. Premium industry-intelligence publication.
Author: HR Leadership Weekly
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Template: twentytwentyfive
Text Domain: hrlw-insights
*/

/* ---------- Page background (warm paper tint) ---------- */
body {
  background: #FDFBF7;
}

/* ---------- Masthead (editorial) ---------- */
.wp-site-blocks > header {
  background: linear-gradient(180deg, #0C1A30 0%, var(--wp--preset--color--navy-900) 100%);
  border-bottom: 4px double var(--wp--preset--color--gold-500);
}
.hrlw-masthead-topline {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(212, 186, 101, 0.75); /* gold-400 at 75% */
  border-bottom: 1px solid rgba(212, 186, 101, 0.25);
  padding-bottom: var(--wp--preset--spacing--sm);
}
.hrlw-masthead-topline > * {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  margin: 0;
}
.hrlw-wordmark { margin-top: var(--wp--preset--spacing--lg); }
.hrlw-wordmark,
.hrlw-wordmark a {
  font-family: var(--wp--preset--font-family--lora);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--wp--preset--color--gold-400);
  text-decoration: none;
}
.hrlw-wordmark a:hover { color: var(--wp--preset--color--gold-300); }
.hrlw-masthead .wp-block-site-tagline {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-300);
}
.hrlw-masthead-nav {
  margin-top: var(--wp--preset--spacing--md);
  border-top: 1px solid rgba(212, 186, 101, 0.25);
  padding-top: var(--wp--preset--spacing--sm);
  padding-bottom: var(--wp--preset--spacing--sm);
}
.hrlw-masthead .wp-block-navigation a {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-300);
  text-decoration: none;
}
.hrlw-masthead .wp-block-navigation a:hover { color: var(--wp--preset--color--gold-300); }
.hrlw-masthead .wp-block-navigation .current-menu-item a {
  color: var(--wp--preset--color--gold-400);
  border-bottom: 2px solid var(--wp--preset--color--gold-400);
}

/* ---------- Editorial rules ---------- */
.hrlw-rule {
  border: 0;
  border-top: 2px solid var(--wp--preset--color--gold-400);
  width: 3rem;
  margin: 0 0 var(--wp--preset--spacing--lg) 0;
}
/* full-width hairline with a centered diamond — the publication's signature rule */
.hrlw-rule-ornament {
  border: 0;
  border-top: 1px solid var(--wp--preset--color--gold-400);
  width: 100%;
  max-width: none;
  overflow: visible;
  text-align: center;
  margin: var(--wp--preset--spacing--2xl) auto;
}
.hrlw-rule-ornament::after {
  content: "◆";
  position: relative;
  top: -0.62em;
  padding: 0 var(--wp--preset--spacing--sm);
  background: #FDFBF7;
  color: var(--wp--preset--color--gold-500);
  font-size: 0.75rem;
}
.hrlw-eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
}
/* kicker above a headline reads gold */
.hrlw-article .wp-block-post-terms.hrlw-eyebrow a {
  color: var(--wp--preset--color--gold-600);
  text-decoration: none;
}
.hrlw-article .wp-block-post-terms.hrlw-eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Byline / dateline row ---------- */
.hrlw-byline {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
}
.hrlw-byline > * {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  margin: 0;
}
.hrlw-byline .wp-block-shortcode::before {
  content: "◆";
  font-size: 0.6rem;
  vertical-align: 0.15em;
  color: var(--wp--preset--color--gold-500);
  margin-right: var(--wp--preset--spacing--md);
}

/* ---------- Article body ---------- */
.hrlw-article .entry-content { max-width: 65ch; }
.hrlw-article .entry-content > p {
  margin-bottom: var(--wp--preset--spacing--lg);
}
/* editorial convention: indent every paragraph after the first */
.hrlw-article .entry-content > p:not(:first-of-type) { text-indent: 2em; }
.hrlw-article .entry-content > h2 {
  margin-top: var(--wp--preset--spacing--2xl);
  margin-bottom: var(--wp--preset--spacing--md);
}
.hrlw-article .entry-content > h3 {
  margin-top: var(--wp--preset--spacing--xl);
  margin-bottom: var(--wp--preset--spacing--sm);
}
.hrlw-article .entry-content > ul,
.hrlw-article .entry-content > ol {
  margin-bottom: var(--wp--preset--spacing--lg);
  padding-left: 1.4em;
}
.hrlw-article .entry-content > ul li { margin-bottom: var(--wp--preset--spacing--sm); }
.hrlw-article .entry-content strong { color: var(--wp--preset--color--charcoal); font-weight: 600; }
.hrlw-article .entry-content a {
  color: var(--wp--preset--color--navy-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--wp--preset--color--gold-400);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.hrlw-article .entry-content a:hover {
  color: var(--wp--preset--color--gold-600);
  text-decoration-color: var(--wp--preset--color--gold-600);
  text-decoration-thickness: 2px;
}
.hrlw-article .entry-content blockquote {
  border-left: 3px solid var(--wp--preset--color--gold-500);
  padding-left: var(--wp--preset--spacing--lg);
  margin: var(--wp--preset--spacing--xl) 0;
  font-style: italic;
  color: var(--wp--preset--color--charcoal);
}
.hrlw-article .entry-content blockquote cite {
  display: block;
  margin-top: var(--wp--preset--spacing--md);
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
}
.hrlw-article .entry-content blockquote cite::before {
  content: "— ";
  color: var(--wp--preset--color--gold-500);
}
/* drop cap on the opening paragraph of every article */
body.single-post .hrlw-article .entry-content > p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--lora);
  font-weight: 600;
  font-size: 3.6em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--wp--preset--color--navy-900);
}
/* pull quotes: framed in gold, set large and italic */
.hrlw-article .entry-content .wp-block-pullquote {
  max-width: 40rem;
  margin: var(--wp--preset--spacing--2xl) auto;
  padding: var(--wp--preset--spacing--xl) 0;
  border-top: 2px solid var(--wp--preset--color--gold-500);
  border-bottom: 1px solid var(--wp--preset--color--gold-400);
  text-align: center;
}
.hrlw-article .entry-content .wp-block-pullquote blockquote {
  border-left: 0;
  padding-left: 0;
  margin: 0;
}
.hrlw-article .entry-content .wp-block-pullquote blockquote p {
  font-family: var(--wp--preset--font-family--lora);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  text-indent: 0;
  color: var(--wp--preset--color--charcoal);
}
.hrlw-article .entry-content .wp-block-pullquote cite {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-600);
}
.hrlw-article .entry-content code,
.hrlw-article .entry-content kbd {
  font-family: var(--wp--preset--font-family--jetbrains-mono);
  font-size: 0.9em;
  background: var(--wp--preset--color--gray-50);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

/* ---------- Featured analysis hero ---------- */
.hrlw-feature {
  position: relative;
  background: linear-gradient(135deg, #0C1A30 0%, var(--wp--preset--color--navy-900) 45%, var(--wp--preset--color--navy-800) 100%);
  border: 1px solid var(--wp--preset--color--navy-700);
  border-top: 4px solid var(--wp--preset--color--gold-500);
  border-radius: 4px;
  padding: var(--wp--preset--spacing--2xl);
  min-height: 20rem;
}
.hrlw-feature::after {
  content: "◆";
  position: absolute;
  right: var(--wp--preset--spacing--2xl);
  bottom: var(--wp--preset--spacing--xl);
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.12);
  pointer-events: none;
}
.hrlw-feature-eyebrow {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-500);
  margin: 0;
}
.hrlw-feature .wp-block-post-title {
  font-family: var(--wp--preset--font-family--lora);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.hrlw-feature .wp-block-post-title a {
  color: var(--wp--preset--color--white);
  text-decoration: none;
}
.hrlw-feature .wp-block-post-title a:hover { color: var(--wp--preset--color--gold-300); }
.hrlw-feature .wp-block-post-excerpt__excerpt {
  font-family: var(--wp--preset--font-family--lora);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--wp--preset--color--gray-200);
  max-width: 68ch;
  margin-bottom: var(--wp--preset--spacing--md);
}
.hrlw-feature .wp-block-post-excerpt__more-text {
  display: block;
  margin-top: var(--wp--preset--spacing--md);
}
.hrlw-feature .wp-block-post-excerpt__more-link {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-400);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--preset--color--gold-500);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hrlw-feature .wp-block-post-excerpt__more-link:hover {
  color: var(--wp--preset--color--gold-300);
  border-bottom-color: var(--wp--preset--color--gold-300);
}
.hrlw-feature .hrlw-byline,
.hrlw-feature .hrlw-byline > * { color: var(--wp--preset--color--gold-300); }

/* ---------- Section headers with gold diamond + rule ---------- */
.hrlw-section-head {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--sm);
  margin-bottom: var(--wp--preset--spacing--lg);
}
.hrlw-section-head::before {
  content: "◆";
  color: var(--wp--preset--color--gold-500);
  font-size: 0.75rem;
}
.hrlw-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wp--preset--color--gold-400);
  opacity: 0.4;
}
.hrlw-section-head .hrlw-eyebrow {
  margin: 0;
  white-space: nowrap;
}

/* ---------- Archive section header ---------- */
.hrlw-archive-head {
  border-top: 2px solid var(--wp--preset--color--gold-500);
  border-bottom: 1px solid var(--wp--preset--color--gray-100);
  padding: var(--wp--preset--spacing--sm) 0 var(--wp--preset--spacing--lg);
  margin-bottom: var(--wp--preset--spacing--xl);
}
.hrlw-archive-head .wp-block-query-title {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--title-xl);
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--navy-900);
  margin: 0;
}
/* lead item in the archive spans the grid and reads larger */
.hrlw-archive .wp-block-post-template > .wp-block-post:first-child {
  grid-column: 1 / -1;
}
.hrlw-archive .wp-block-post:first-child .hrlw-card {
  padding: var(--wp--preset--spacing--xl);
  border-left: 3px solid var(--wp--preset--color--gold-500);
}
.hrlw-archive .wp-block-post:first-child .hrlw-card .wp-block-post-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* ---------- Article teasers ---------- */
.hrlw-card {
  background: #FDFBF7;
  border: 1px solid var(--wp--preset--color--gray-100);
  border-top: 3px solid transparent;
  border-radius: 4px;
  padding: var(--wp--preset--spacing--lg);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s, border-top-color 0.25s;
}
.hrlw-card:hover {
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  border-color: var(--wp--preset--color--gold-400);
  border-top-color: var(--wp--preset--color--gold-500);
  transform: translateY(-2px);
}
.hrlw-card .wp-block-post-title {
  font-family: var(--wp--preset--font-family--lora);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0 0 var(--wp--preset--spacing--sm) 0;
}
.hrlw-card .wp-block-post-title a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.hrlw-card .wp-block-post-title a:hover { color: var(--wp--preset--color--navy-700); }
.hrlw-card .wp-block-post-date,
.hrlw-card .wp-block-post-terms {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
}
.hrlw-card .wp-block-post-excerpt__excerpt {
  font-family: var(--wp--preset--font-family--lora);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wp--preset--color--gray-700);
}
.hrlw-card .wp-block-read-more {
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wp--preset--color--gold-600);
  text-decoration: none;
}
.hrlw-card .wp-block-read-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- From the archive band ---------- */
.hrlw-archive-band {
  background: linear-gradient(135deg, #0C1A30 0%, var(--wp--preset--color--navy-900) 50%, var(--wp--preset--color--navy-800) 100%);
  border-top: 3px solid var(--wp--preset--color--gold-500);
  border-bottom: 3px solid var(--wp--preset--color--gold-500);
  padding: var(--wp--preset--spacing--2xl) var(--wp--preset--spacing--lg);
  margin: var(--wp--preset--spacing--3xl) 0;
}
.hrlw-archive-band .hrlw-eyebrow {
  color: var(--wp--preset--color--gold-400);
}
.hrlw-archive-band .wp-block-post-title {
  font-family: var(--wp--preset--font-family--lora);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}
.hrlw-archive-band .wp-block-post-title a {
  color: var(--wp--preset--color--white);
  text-decoration: none;
}
.hrlw-archive-band .wp-block-post-title a:hover {
  color: var(--wp--preset--color--gold-300);
}
.hrlw-archive-band .wp-block-post-date {
  color: var(--wp--preset--color--gold-300);
  font-size: 0.75rem;
}

/* ---------- Footer colophon ---------- */
.wp-site-blocks > footer {
  background: var(--wp--preset--color--navy-900);
  color: var(--wp--preset--color--gray-200);
}
.wp-site-blocks > footer a { color: var(--wp--preset--color--gold-400); text-decoration: none; }
.wp-site-blocks > footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hrlw-colophon {
  text-align: center;
  border-top: 4px double var(--wp--preset--color--gold-500);
}
.hrlw-colophon .wp-block-site-title { margin: 0; }
.hrlw-colophon .wp-block-site-title a {
  font-family: var(--wp--preset--font-family--lora);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-400);
  text-decoration: none;
}
.hrlw-colophon .wp-block-site-title a:hover { color: var(--wp--preset--color--gold-300); text-decoration: none; }
.hrlw-colophon-line {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-200);
}
.hrlw-colophon-ornament {
  color: var(--wp--preset--color--gold-500);
  font-size: 0.8rem;
  margin: 0;
}
.hrlw-colophon-fine {
  font-family: var(--wp--preset--font-family--inter);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
}

/* ---------- Small love details ---------- */
::selection {
  background: var(--wp--preset--color--gold-300);
  color: var(--wp--preset--color--navy-900);
}
a:focus-visible {
  outline: 2px solid var(--wp--preset--color--gold-500);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 600px) {
  .hrlw-article .entry-content > p:not(:first-of-type) { text-indent: 0; }
  .hrlw-feature { padding: var(--wp--preset--spacing--lg); }
  body.single-post .hrlw-article .entry-content > p:first-of-type::first-letter { font-size: 3em; }
}
