/*
Theme Name: ByoDirectory ND3 Bylines
Theme URI: https://www.newsdirectory3.com/
Description: Child theme for newsdirectory3.com Bylines journalists directory and clean site design.
Author: BYO / Claude
Template: byodirectory
Version: 1.0.0
*/

:root {
  --ink: #14213D;
  --accent: #C8431F;
  --accent-bright: #E4572E;
  --paper: #F7F3EA;
  --card: #FFFFFF;
  --card-border: #E5DECD;
  --gold: #F2A541;
  --gold-dark: #8A5A00;
  --teal: #12756A;
  --teal-hover: #0B4F47;
  --muted: #5B6478;
  --subtle: #D9D3C4;
  --border-subtle: #EFE8D8;
  --header-input: #1E2B4A;
  --header-border: #3A4766;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--teal-hover);
}

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

/* Header */
.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
}

.site-header a {
  text-decoration: none;
}

.header-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.brand-link {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--paper) !important;
  letter-spacing: -0.01em;
}

.brand-3 {
  color: var(--accent-bright);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.main-nav a {
  color: var(--subtle);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--paper);
  font-weight: 600;
}

.header-search {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex: 1 1 240px;
  max-width: 340px;
}

.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--header-border);
  background: var(--header-input);
  color: var(--paper);
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
}

.header-search input[type="search"]::placeholder {
  color: #8A93A6;
}

.header-search button {
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Hero */
.hero-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.hero-overline {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.hero-title {
  margin: 0 0 16px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 52px;
  line-height: 1.08;
  max-width: 760px;
  color: var(--paper);
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--subtle);
  max-width: 640px;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
}

.hero-search input {
  flex: 1 1 300px;
  min-width: 0;
  height: 54px;
  border-radius: 10px;
  border: 0;
  padding: 0 18px;
  font-size: 17px;
  color: var(--ink);
  font-family: inherit;
}

.hero-search button {
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

/* Main Layout */
.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Cards & Layout Grid */
.bylines-grid-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.content-column {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-column {
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
}

/* Top Profile Card */
.profile-top-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.initials-disc-lg {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  user-select: none;
}

.profile-main-meta {
  flex: 999 1 380px;
  min-width: 0;
}

.profile-overline {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.profile-name {
  margin: 0 0 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
}

.profile-role-line {
  margin: 0;
  font-size: 17px;
  color: #3A4458;
}

.profile-role-line a {
  font-weight: 600;
}

/* Rating Box */
.rating-hero-box {
  flex: 1 1 260px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 20px;
}

.rating-score-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rating-big-num {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.rating-sub-count {
  font-size: 14px;
  color: var(--subtle);
}

.star-group {
  display: flex;
  gap: 4px;
  margin: 12px 0 14px;
}

.star-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1E2B4A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.1s ease, background 0.15s ease;
}

.star-btn:hover {
  background: #2B3A60;
  transform: scale(1.05);
}

.star-btn svg {
  width: 24px;
  height: 24px;
}

.btn-primary-red {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 10px;
  background: var(--accent);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  width: 100%;
}

.btn-primary-red:hover {
  background: #B23A19;
}

/* Criteria Bars */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crit-label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 6px;
}

.crit-bar-bg {
  height: 8px;
  border-radius: 4px;
  background: var(--border-subtle);
  overflow: hidden;
}

.crit-bar-fill {
  height: 8px;
  border-radius: 4px;
  background: var(--teal);
}

/* Facts List */
.facts-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 16px 0 0;
  font-size: 15px;
}

.facts-dl dt {
  color: var(--muted);
}

.facts-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

/* Headings */
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--ink);
}

.section-title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.2;
}

/* Chips */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.15s ease;
}

.chip-link:hover {
  background: #F0EBE1;
  border-color: #D5CEBD;
}

/* Review Article */
.review-item {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.review-stars {
  color: var(--gold-dark);
  font-size: 18px;
}

.review-body {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #2A3347;
}

/* Article Page Layout (680px readable column) */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.article-content {
  font-size: 18px;
  line-height: 1.7;
  color: #2A3347;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content h2 {
  font-size: 28px;
  margin: 36px 0 16px;
}

.journalists-in-story {
  margin-top: 40px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px;
}

/* Mobile Sticky Review Bar */
.mobile-review-bar {
  display: none;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 34px;
  }
  .profile-name {
    font-size: 30px;
  }
  .initials-disc-lg {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
  .criteria-grid,
  .facts-dl {
    grid-template-columns: 1fr;
  }
  .header-search {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }
  .mobile-review-bar {
    display: block;
    position: fixed;
    left: 16px;
    right: 96px;
    bottom: 20px;
    z-index: 100;
  }
  .mobile-review-bar .btn-primary-red {
    box-shadow: 0 6px 18px rgba(20,33,61,.25);
    height: 52px;
    border-radius: 12px;
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 24px 64px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--subtle);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.footer-copy {
  font-size: 14px;
  color: #8A93A6;
  margin: 0;
}

/* Claude r2 */
body header.site-header, body .site-header.nd3-header { background: var(--ink) !important; color: var(--paper) !important; border-bottom: 0 !important; box-shadow: none !important; }
body .site-header .brand-link { color: var(--paper) !important; opacity: 1 !important; font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-weight: 700; text-decoration: none; }
body .site-header .brand-link .brand-3 { color: var(--accent-bright) !important; }
body .site-header .main-nav a { color: var(--subtle) !important; opacity: 1 !important; }
body .site-header .main-nav a:hover { color: var(--paper) !important; }
.rating-score-row { flex-wrap: wrap; }
.rating-empty-title { display: block; width: 100%; font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-weight: 700; line-height: 1.2; }
.rating-empty-sub { display: block; width: 100%; font-size: 14px; color: var(--subtle); margin-top: 4px; }
.star-btn.is-on svg path, .star-btn:hover svg path { fill: #F2A541; }
