/*
 * Rebuilt from the live News Pro (Genesis child theme) style.css design
 * tokens — see MIGRATION.md Phase 2 "Extract design tokens" note. Same
 * palette/type/grid, clean CSS with no WP/plugin-specific selectors.
 */

@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/raleway-v22-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/raleway-v22-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Droid Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/DroidSerif-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Droid Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/DroidSerif-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "Droid Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/DroidSerif-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Droid Serif";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/DroidSerif-BoldItalic.woff2") format("woff2");
}

:root {
  --color-primary-orange: #f36518;
  --color-accent-brown: #242021;
  --color-accent-brown-light: #d45f1d;
  --color-accent-orange-light: #f9a717;
  --color-accent-orange-lighter: rgba(249, 167, 23, 0.2);
  --color-accent-green: #0c6133;
  --color-accent-green-light: #d9e684;
  --color-accent-green-lighter: rgba(12, 97, 51, 0.2);
  --color-body-bg: #f6f5f2;
  --color-body-text: #666;
  --color-border: #e3e3e3;
  --color-muted: #999;
  --font-body: Raleway, Arial, Helvetica, sans-serif;
  --font-serif: "Droid Serif", "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-body-bg);
  color: var(--color-body-text);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.625;
}

html {
  font-size: 62.5%;
}

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

a {
  color: var(--color-accent-brown);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary-orange);
}

p {
  font-family: var(--font-serif);
  margin: 0 0 2.4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-accent-brown);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.6rem;
}

h1 {
  font-size: 3.6rem;
}
h2 {
  font-size: 2.4rem;
}
h3 {
  font-size: 2rem;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 1rem;
}
.skip-link:focus {
  left: 0;
}

/* Header + nav */

.nav-secondary {
  border-bottom: 1px solid var(--color-border);
  font-size: 1.2rem;
}
.nav-secondary ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: 0.8rem 0;
}
.nav-secondary a {
  font-weight: 700;
  text-transform: uppercase;
}

.site-header {
  background-color: #fff;
  border-bottom: 3px solid var(--color-primary-orange);
}
.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  text-align: center;
}
.site-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
}
.site-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.site-title a {
  color: var(--color-accent-brown);
}
.site-description {
  color: var(--color-muted);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.2rem;
  line-height: 1;
  margin: 1rem 0 0;
  text-transform: uppercase;
}

.nav-primary {
  border-bottom: 1px solid var(--color-border);
  background-color: #fff;
}
.nav-primary ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.2rem;
}
.nav-primary ul li a {
  display: block;
  padding: 2rem 2.4rem;
}
.nav-primary ul li.current-menu-item a {
  background-color: var(--color-primary-orange);
  color: #fff;
}

.mobile-nav {
  display: none;
}

@media only screen and (max-width: 700px) {
  .nav-secondary,
  .nav-primary {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 0.5rem solid var(--color-primary-orange);
    background: #fff;
  }
  .mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav[open] summary {
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .mobile-nav-icon {
    width: 3rem;
    height: 3rem;
  }
  .mobile-nav-wordmark {
    height: 1.3rem;
    width: auto;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 1.4rem;
    color: #000;
    text-transform: uppercase;
  }
  .mobile-nav-hamburger {
    width: 1.8rem;
    height: 1.8rem;
  }
  .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 1rem 2rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }
  .mobile-nav li {
    border-bottom: 1px dotted var(--color-border);
  }
  .mobile-nav a {
    display: block;
    padding: 1rem 0;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent-brown);
  }
  .mobile-nav li.current-menu-item a {
    color: var(--color-primary-orange);
  }
  .mobile-nav-search {
    padding: 1rem 0;
  }
  .mobile-nav-search .search-form input[type="search"] {
    display: block;
    width: 100%;
    padding: 1.6rem;
    border: 1px solid var(--color-border);
    box-sizing: border-box;
  }

  /* offset the fixed mobile-nav bar so it doesn't cover the logo below it */
  .site-header {
    padding-top: 5.5rem;
  }
}

/* Layout shell */

.site-container-wrap {
  max-width: 1140px;
  margin: 4rem auto;
  border: 1px solid var(--color-border);
  background: #fff;
}

@media only screen and (max-width: 700px) {
  .site-container-wrap {
    margin: 0 auto;
    border: none;
  }
}

/* Content + sidebar shell — the live site's "sidebar" widget area
   (search, Latest News, Recent Features) is sitewide, not homepage-only. */

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0 3rem;
  align-items: start;
}

.sidebar {
  padding: 3rem 3rem 3rem 0;
}

@media only screen and (max-width: 1023px) {
  .content-sidebar-wrap {
    display: block;
  }
  .sidebar {
    display: none;
  }
}

.sidebar .widget {
  margin-bottom: 3rem;
}
.sidebar .search-widget {
  display: block;
  margin-bottom: 3rem;
}
.sidebar .search-widget input[type="search"] {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  color: var(--color-body-text);
  font-family: var(--font-body);
  font-size: 1.4rem;
}
.sidebar .widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .widget-list > li {
  padding: 0 0 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px dotted var(--color-border);
  font-weight: 400;
  font-size: 1.8rem;
}
.sidebar .widget-list-thumbs > li {
  margin-bottom: 2.7rem;
}
.sidebar .widget-thumb {
  display: block;
}
.sidebar .widget-thumb img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.3rem;
}
.sidebar .widget-list-thumbs time {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 400;
}

/* Related posts (single post pages) — reproduces production's Related
   Posts by Taxonomy gallery shortcode markup/styling exactly (confirmed via
   getComputedStyle against the live restore): no section heading, a plain
   flex-wrap gallery of centered thumbnail-over-caption items, ~2 per row,
   caption text at body size/weight (not the big bold .entry-title style —
   deliberately namespaced under .related-post-title instead of .entry-title
   so it can't collide with the .single-entry .entry-title 3.6rem override). */

.related-posts {
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.related-posts-grid {
  display: flex;
  flex-wrap: wrap;
}
.related-post {
  flex: 1 1 50%;
  max-width: 50%;
  text-align: center;
  padding: 0 1.5rem 3rem;
  box-sizing: border-box;
}
.related-post-thumb {
  display: block;
}
.related-post-thumb img {
  width: auto;
  max-width: 15rem;
  height: auto;
  display: inline-block;
}
.related-post-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.625;
}
.related-post-title a {
  color: var(--color-accent-brown);
}
/* Stays 2-up at every width, including mobile — confirmed against the live
   restore at 390px (no single-column collapse). */

/* Homepage grid — reproduces the GFPC section layouts driven by
   exports/content/homepage-widgets.json (layout-three / layout-seven) */

.widget-title {
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--color-accent-orange-lighter);
  border-left: 0.3rem solid var(--color-primary-orange);
  border-right: 0.3rem solid var(--color-primary-orange);
  padding: 1.6rem;
  margin: 0 0 1.6rem;
}

.home-top {
  padding: 2rem 2rem 0;
}
.home-top .featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.home-top .featured-grid > .entry-full {
  flex-basis: 100%;
}
.home-top .featured-grid > .entry-half {
  flex-basis: calc(50% - 1rem);
}
.home-top .entry-header {
  border-left: 0.3rem solid var(--color-primary-orange);
  border-top: 0.3rem solid var(--color-accent-orange-light);
  padding: 1rem 0 0 1rem;
}
.home-top .entry-thumb img {
  box-shadow: 0.1rem 0.1rem 1rem 0.1rem var(--color-accent-brown);
  padding: 0.3rem;
  background: #fff;
}

.home-middle-top {
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.home-middle-top .widget-section {
  flex-basis: calc(50% - 1rem);
}
.home-middle-top .entry {
  border-bottom: none;
  padding: 0;
}
.home-middle-top .entry-thumb {
  display: block;
  margin-bottom: 2rem;
}
.home-middle-top .entry-thumb img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0.1rem 0.1rem 0.2rem 0.1rem var(--color-accent-brown);
}

.home-bottom {
  border-top: 1px solid var(--color-border);
  padding: 2rem;
}
.home-bottom .entry {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  margin-bottom: 1.4rem;
}
.home-bottom .entry-thumb {
  flex: 0 0 48%;
}
.home-bottom .entry-thumb img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0.1rem 0.1rem 0.2rem 0.1rem var(--color-accent-brown);
}
.home-bottom .entry-categories {
  margin: 0;
  font-size: 1.8rem;
}
.home-bottom .entry-categories a {
  color: var(--color-accent-brown);
}

@media only screen and (max-width: 900px) {
  .home-middle-top .widget-section {
    flex-basis: 100%;
  }
  .home-bottom .entry {
    flex-direction: column;
  }
}

@media only screen and (max-width: 600px) {
  .home-top,
  .home-middle-top,
  .home-bottom {
    padding: 1rem;
  }
  .home-top .featured-grid > .entry-half {
    flex-basis: 100%;
  }
}

/* Entry / article */

.entry-title {
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.entry-title a {
  color: var(--color-accent-brown);
}
.single-entry .entry-title,
.archive-list .entry-title {
  font-size: 3.6rem;
}
/* Single posts (not static pages, which also use .single-entry markup)
   underline the H1 in the accent green — confirmed against the live
   restore: /webinars-white-papers/ (a WP Page) has no such underline,
   only actual blog posts do, so this is scoped via the "single" body
   class post.njk sets rather than .single-entry alone. */
body.single .single-entry .entry-title {
  border-bottom: 3px solid var(--color-accent-green);
  padding-bottom: 0.5rem;
  text-align: center;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0.5rem 0 1rem;
}

.entry-author {
  color: var(--color-accent-brown);
}

.entry-content h2 {
  border-left: 0.3rem solid var(--color-accent-orange-light);
  padding-left: 1rem;
}
.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 2.6rem;
}
.entry-content ul,
.entry-content ol {
  margin-left: 4rem;
}
.entry-content img {
  box-shadow: 0.1rem 0.1rem 0.2rem 0.1rem var(--color-accent-brown);
}
.entry-content a {
  color: var(--color-primary-orange);
  border-bottom: 0.1rem solid var(--color-primary-orange);
}

.single-entry {
  border-bottom: 1px solid var(--color-border);
  padding: 4rem;
}

@media only screen and (max-width: 700px) {
  .single-entry {
    padding: 2rem;
  }
}

/* Archive listing */

.archive {
  padding-top: 2rem;
}

.archive .archive-list {
  padding: 0 2rem;
}
.archive-list .entry {
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}
.archive-list .entry-thumb {
  display: block;
  margin-bottom: 1.5rem;
}
.archive-list .entry-thumb img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0.1rem 0.1rem 0.2rem 0.1rem var(--color-accent-brown);
}

.archive-pagination {
  display: flex;
  justify-content: space-between;
  margin: 4rem 0;
  padding: 0 2rem 2.5rem;
  font-weight: 600;
}

/* Search */

.search-form {
  display: flex;
  gap: 0.5rem;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--color-border);
}
.search-form input[type="submit"] {
  padding: 0.8rem 1.6rem;
  background: var(--color-primary-orange);
  color: #fff;
  border: none;
  cursor: pointer;
}
.search-status {
  color: var(--color-muted);
  font-size: 1.4rem;
  margin: 2rem 0 0;
}

/* In-content search form (404 page) — reproduces WP's get_search_form()
   output exactly (confirmed via getComputedStyle on the live restore):
   block-stacked input then button, not the flex/inline layout used by the
   sidebar search widget or the /search/ page's live-search box. */
.inline-search-form {
  display: block;
  max-width: 40rem;
}
.inline-search-form input[type="search"] {
  display: block;
  width: 100%;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  box-sizing: border-box;
}
.inline-search-form input[type="submit"] {
  display: block;
  margin-top: 1.5rem;
  padding: 1.6rem;
  background: var(--color-accent-brown);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  text-transform: uppercase;
  cursor: pointer;
}
.archive-list mark {
  background-color: var(--color-accent-orange-lighter);
  color: inherit;
}

/* Footer */

.site-footer-widgets {
  background-color: var(--color-accent-brown);
  color: #fff;
  padding: 4rem 2rem 1.6rem;
}
.site-footer-widgets .footer-nav {
  display: grid;
  grid-template-columns: repeat(6, 16rem);
  gap: 0 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

@media only screen and (max-width: 900px) {
  .site-footer-widgets .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}
.site-footer-widgets a {
  color: #fff;
  font-size: 1.8rem;
}
.site-footer-widgets a:hover,
.site-footer-widgets a:focus {
  color: var(--color-primary-orange);
}

.site-footer {
  background-color: var(--color-accent-brown);
  border-top: 1px solid #333;
  color: var(--color-muted);
  font-size: 1.4rem;
  text-align: center;
  padding: 4rem 0;
}
.site-footer a {
  color: #aaa;
}
.site-footer a:hover,
.site-footer a:focus {
  color: var(--color-primary-orange);
}
