/**
 * Raucy News — listing, single, archive & search.
 *
 * Uses the global design tokens and shared classes from style.css
 * (.container, .section-pad, .section-intro, .section-eyebrow, .card-title,
 * .link-arrow, .btn). Custom selectors are prefixed (`news-`) or scoped under
 * `.widget-area` so the sidebar styling applies on every template that renders
 * a sidebar. Layout uses flexbox (no CSS grid).
 */

.news-archive {
  background: var(--color-surface-tint);
}
.wp-block-heading {
	margin: 0 0 10px 0;
}
.news-archive__title {
  margin-bottom: 14px;
}

.news-archive .archive-description {
  color: var(--color-ink-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- Two-column layout (flex) ---- */
.news-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 44px;
}

.news-main {
  flex: 1 1 0;
  min-width: 0;
}

.news-sidebar {
  flex: 0 0 320px;
  width: 320px;
  position: sticky;
  top: 96px;
}
.byline,.posted-on {
	color: var(--color-navy);
}
.author, .posted-on a {
	color: var(--color-sky-blue);
}
.cat-links {
	font-weight: 600;
	color: var(--color-navy);
}

/* ---- Card grid (flexbox) ---- */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.news-grid > .news-card {
  flex: 1 1 calc(50% - 14px);
  max-width: calc(50% - 14px);
}

/* ---- Card ---- */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface-cool);
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card__img {
  transform: scale(1.04);
}

.news-card__img--placeholder {
  background: var(--color-wash-cta);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-card__cat {
  color: var(--color-sky-blue);
  position: relative;
  padding-right: 10px;
}

.news-card__cat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-line);
}

.news-card__date {
  color: var(--color-ink-soft);
  letter-spacing: 0.08em;
}

.news-card__title {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card__title a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card__title a:hover {
  color: var(--color-sky-blue);
}

.news-card__excerpt {
  font-size: 14px;
  color: var(--color-ink-muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.news-card__link {
  margin-top: auto;
  align-self: flex-start;
}

/* ---- Load more + pagination ---- */
.news-loadmore-wrap {
  margin-top: 44px;
}

.news-loadmore[disabled] {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.news-loadmore.is-loading .news-loadmore__label {
  opacity: 0.75;
}

.news-pagination {
  margin-top: 44px;
}

.news-pagination .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.news-pagination .page-numbers:hover {
  border-color: var(--color-sky-blue);
  color: var(--color-sky-blue);
}

.news-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-sky-blue) 100%);
  border-color: transparent;
  color: #fff;
}

.news-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ---- Search results list (search.php) ---- */
.news-results article {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--color-line);
}

.news-results article:last-child {
  border-bottom: none;
}

.news-results .entry-title {
  font-size: 21px;
  margin-bottom: 8px;
}

.news-results .entry-title a {
  color: var(--color-navy);
  text-decoration: none;
}

.news-results .entry-title a:hover {
  color: var(--color-sky-blue);
}
.news-results {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-results article {
  margin: 0;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-results article:hover {
  transform: translateY(-2px);
  border-color: var(--color-sky-blue);
  box-shadow: var(--shadow-md);
}

.news-results .entry-title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.news-results .entry-title a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-results .entry-title a:hover {
  color: var(--color-sky-blue);
}

.news-results .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 12.5px;
  color: var(--color-ink-soft);
}

/* Optional — only applies if you keep the featured image in content-search.php */
.news-results .post-thumbnail {
  display: block;
  max-width: 220px;
  margin: 14px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-results .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.news-results .entry-summary {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-ink-muted);
}

.news-results .entry-summary p {
  margin: 0;
}

.news-results .entry-footer {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 12.5px;
}

.news-results .entry-footer a {
  color: var(--color-sky-blue);
  text-decoration: none;
}

.news-results .entry-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   SIDEBAR — scoped to .widget-area so it styles the sidebar on
   the news index, single posts, archives and search results.
   ============================================================ */

/* Each widget is a clean card */
.widget-area .widget {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 24px;
  margin: 0 0 22px;
}

.widget-area .widget:last-child {
  margin-bottom: 0;
}

/* Compact uppercase heading + short accent bar (beats global h-tag sizing) */
.widget-area .widget-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--color-navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line-soft);
  position: relative;
}

.widget-area .widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--color-sky-blue);
}

/* Lists: categories, archives, recent posts/comments, pages, meta */
.widget-area .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-area .widget li {
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 14px;
  color: var(--color-ink-muted);
  line-height: 1.55;
}

.widget-area .widget li:last-child {
  border-bottom: none;
}

.widget-area .widget li a {
  display: inline-block;
  padding: 9px 0;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.widget-area .widget li a:hover {
  color: var(--color-sky-blue);
  transform: translateX(3px);
}

.widget-area .widget li .children,
.widget-area .widget li .sub-menu {
  margin-top: 0;
  padding-left: 14px;
  border-top: 1px solid var(--color-line-soft);
}

/* Dropdowns: custom .news-select + core category/archive dropdowns */
.widget-area .news-select,
.widget-area select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  background-color: #fff;
  border: 1.5px solid var(--color-line);
  border-radius: 999px;
  padding: 12px 44px 12px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232D94D8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.widget-area .news-select:hover,
.widget-area select:hover {
  border-color: var(--color-sky-blue-300);
}

.widget-area .news-select:focus,
.widget-area select:focus {
  outline: none;
  border-color: var(--color-sky-blue);
  box-shadow: 0 0 0 3px rgba(45, 148, 216, 0.15);
}

/* Search form (classic widget + block search) */
.widget-area .search-form,
.widget-area .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.widget-area .search-form label {
  flex: 1;
  margin: 0;
}

.widget-area .search-field,
.widget-area input[type="search"],
.widget-area .wp-block-search__input {
  width: 100%;
  font-size: 14px;
  color: var(--color-ink);
  background: #fff;
  border: 1.5px solid var(--color-line) !important;
  border-radius: 999px !important;
  padding: 11px 18px;
}

.widget-area .search-field:focus,
.widget-area input[type="search"]:focus,
.widget-area .wp-block-search__input:focus {
  outline: none;
  border-color: var(--color-sky-blue) !important;
  box-shadow: 0 0 0 3px rgba(45, 148, 216, 0.15);
}

.widget-area .search-submit,
.widget-area .wp-block-search__button {
  flex-shrink: 0;
  margin: 0 !important;
  border: none !important;
  cursor: pointer;
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px !important;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-sky-blue) 100%) !important;
  box-shadow: 0 6px 16px rgba(45, 148, 216, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-area .search-submit:hover,
.widget-area .wp-block-search__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(45, 148, 216, 0.34);
}

/* ---- Author box (sits flush inside its widget card) ---- */
.widget-area .news-author {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.news-author__media {
  margin-bottom: 14px;
}

.news-author__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.news-author__name {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 2px;
}
.news-single  .entry-meta {
	margin-bottom: 30px;
}

.news-author__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sky-blue);
  margin-bottom: 12px;
}

.news-author__bio {
  font-size: 13.5px;
  color: var(--color-ink-muted);
  line-height: 1.65;
  margin: 0 0 16px;
}

.news-author__link {
  font-size: 13px;
}

/* ---- Single post within the layout ---- */
.news-single .entry-title {
  margin-bottom: 12px;
}

.news-single .entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-ink-muted);
}

/* Featured image */
.news-single .post-thumbnail {
  margin: 0 0 30px;
}

.news-single .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Post meta under the title */
.news-single .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13.5px;
  margin-bottom: 26px;
}

/* Content rhythm */
.news-single .entry-content > * {
  margin-bottom: 22px;
}

.news-single .entry-content > *:last-child {
  margin-bottom: 0;
}

/* Headings within the article (sized for the content column) */
.news-single .entry-content h1,
.news-single .entry-content h2,
.news-single .entry-content h3,
.news-single .entry-content h4,
.news-single .entry-content h5,
.news-single .entry-content h6 {
  font-family: 'Fraunces', serif;
  color: var(--color-navy);
  line-height: 1.2;
  margin: 36px 0 12px;
}

.news-single .entry-content h1 { font-size: clamp(30px, 4vw, 40px); }
.news-single .entry-content h2 { font-size: clamp(28px, 3.6vw, 36px); }
.news-single .entry-content h3 { font-size: clamp(26px, 3.2vw, 34px); }
.news-single .entry-content h4 { font-size: clamp(23px, 2.6vw, 30px); }
.news-single .entry-content h5 { font-size: clamp(20px, 2.2vw, 26px); }
.news-single .entry-content h6 { font-size: clamp(18px, 1.8vw, 22px); }

/* Links */
.news-single .entry-content a {
  color: var(--color-sky-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-single .entry-content a:hover {
  color: var(--color-navy);
}

/* Lists */
.news-single .entry-content ul, .news-single .entry-content ol {
	padding-left: 0;
}

.news-single .entry-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* Blockquote */
.news-single .entry-content blockquote,
.news-single .entry-content .wp-block-quote {
  margin: 30px 0;
  padding: 18px 26px;
  border-left: 4px solid var(--color-sky-blue);
  background: var(--color-surface-cool);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-navy);
}

.news-single .entry-content blockquote p {
  margin: 0 0 8px;
}

.news-single .entry-content blockquote cite {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
}

.news-single .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* ---- Entry footer: categories + tag chips ---- */
.news-single .entry-footer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  font-size: 13px;
}

.news-single .entry-footer .cat-links,
.news-single .entry-footer .tags-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news-single .tags-links a {
  display: inline-block;
  padding: 5px 13px;
  background: var(--color-surface-cool);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-navy);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-single .tags-links a:hover {
  background: var(--color-sky-blue);
  border-color: transparent;
  color: #fff;
}

.news-single .entry-footer .edit-link {
  flex-basis: 100%;
}

/* ---- Author box (after the article) ---- */
.post-author-box {
  margin-top: 40px;
  padding: 26px 28px;
  background: var(--color-surface-cool);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.post-author-box__title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0 0 18px;
}

.post-author-box .news-author {
  position: relative;
  padding-left: 84px;
  min-height: 64px;
  background: transparent;
  border: none;
}

.post-author-box .news-author__media {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
}

.post-author-box .news-author__img {
  width: 64px;
  height: 64px;
}

/* ---- Prev / Next post navigation ---- */
.news-single .post-navigation {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}

.news-single .post-navigation .nav-links {
  display: flex;
  gap: 16px;
}

.news-single .post-navigation .nav-previous,
.news-single .post-navigation .nav-next {
  flex: 1 1 50%;
}

.news-single .post-navigation .nav-next {
  text-align: right;
}

.news-single .post-navigation .nav-links a {
  display: block;
  height: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-single .post-navigation .nav-links a:hover {
  transform: translateY(-2px);
  border-color: var(--color-sky-blue);
  box-shadow: var(--shadow-md);
}

.news-single .post-navigation .nav-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sky-blue);
  margin-bottom: 6px;
}

.news-single .post-navigation .nav-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}
/* ============================================================
   RESPONSIVE — max-width breakpoints, largest → smallest.
   All responsive overrides live here so each rule has a single
   home and breakpoints cascade predictably.
   ============================================================ */

@media (max-width: 1024px) {
  .news-layout {
    gap: 25px;
  }
  .news-sidebar {
    flex: 0 0 270px;
    width: 270px;
  }
  .news-grid {
    gap: 15px;
  }
  .news-grid > .news-card {
    flex: 1 1 calc(50% - 7.5px);
    max-width: calc(50% - 7.5px);
  }
}

@media (max-width: 992px) {
  .news-layout {
    flex-direction: column;
  }
  .news-sidebar {
    position: static;
    flex-basis: auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .news-card__body {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  /* Card grid → single column */
  .news-grid {
    gap: 22px;
  }
  .news-grid > .news-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  /* Sidebar / widgets */
  .widget-area .widget {
    padding: 22px 16px;
  }
  .widget-area .search-form,
  .widget-area .wp-block-search__inside-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  .wp-block-search__label {
    display: inline-block;
    width: 100%;
    margin-bottom: 8px;
  }

  /* Single post content */
  .news-single .entry-content {
    font-size: 15px;
  }
  .news-single .entry-content blockquote,
  .news-single .entry-content .wp-block-quote {
    padding: 18px 20px;
  }

  /* Author box → stacked avatar */
  .post-author-box {
    margin-top: 35px;
    padding: 26px 20px;
  }
  .post-author-box .news-author {
    padding-left: 0;
  }
  .post-author-box .news-author__media {
    position: relative;
    margin: 0 0 10px;
  }
  .news-author__name {
    font-size: 17px;
  }
  .news-author__bio {
    margin: 0;
  }

  /* Prev / next → stacked */
  .news-single .post-navigation {
    margin-bottom: 0;
    padding-top: 0;
  }
  .news-single .post-navigation .nav-links {
    flex-direction: column;
  }
  .news-single .post-navigation .nav-next {
    text-align: left;
  }
}
