/* The Dockestra theme's own styles: the news pages, the ribbon and the homepage's News link.
   The site's tokens come from assets/css/style.css (--navy, --brass, --cream, --serif, --sans, --mono). */

/* ---------- the homepage header: News beside the CTA ---------- */
.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  pointer-events: auto;
}
.site-header .header-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.site-header .header-link:hover { color: var(--brass); }

/* ---------- the dated ribbon ---------- */
.ribbon {
  background: var(--brass);
  color: var(--navy-deep);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
  white-space: nowrap;          /* one line, always: the homepage header sits exactly one ribbon below the top */
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .ribbon { font-size: 0.62rem; letter-spacing: 0.08em; padding: 0.5rem 0.6rem; }
}
.ribbon a { color: inherit; text-decoration: none; }
.ribbon a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ribbon-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
}
body.has-ribbon .site-header:not(.news-header) { top: 2rem; }
body.has-ribbon .hud { top: 7.6rem; }

/* ---------- the news pages ---------- */
body.news-page {
  margin: 0;
  background: var(--cream);
  color: var(--ink-on-light);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* the same navy band the homepage shows over its light half */
.site-header.news-header {
  position: static;
  pointer-events: auto;
  padding: 0.7rem clamp(1.2rem, 4vw, 2.2rem);
  border-bottom: 1px solid rgba(196, 154, 71, 0.25);
  background: var(--navy-deep);
  gap: 1rem;
}
.news-header .logo img { height: 64px; width: auto; margin: 0; opacity: 0.96; }
.news-header .site-nav { flex: 1; display: flex; justify-content: center; }
.news-header .nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.6rem;
}
.news-header .nav-list a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
}
.news-header .nav-list a:hover,
.news-header .current-menu-item > a,
.news-header .current_page_parent > a { color: var(--brass); }
.news-header .header-cta { backdrop-filter: none; }

.news-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem clamp(1.2rem, 4vw, 1.6rem) 5rem;
}

.news-intro { margin-bottom: 2.8rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.8rem;
}
.news-intro h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15;
  margin: 0;
}
.news-intro-text p { color: rgba(20, 41, 59, 0.75); line-height: 1.7; }
.news-intro-text a, .news-empty a { color: var(--brass); }

.news-list { display: grid; gap: 2.6rem; }
.news-card {
  border-top: 1px solid rgba(20, 41, 59, 0.14);
  padding-top: 1.6rem;
}
.news-card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1.2rem;
}
.post-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20, 41, 59, 0.55);
  margin: 0 0 0.5rem;
}
.post-meta a { color: var(--brass); text-decoration: none; }
.news-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}
.news-card-title a { color: var(--ink-on-light); text-decoration: none; }
.news-card-title a:hover { color: var(--brass); }
.news-card-excerpt p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(20, 41, 59, 0.78);
  margin: 0 0 0.8rem;
}
.news-card-more, .back-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
}
.news-card-more:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-empty { color: rgba(20, 41, 59, 0.6); }

.pagination .nav-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pagination a { color: var(--brass); text-decoration: none; }
.pagination .current { color: var(--ink-on-light); }

/* ---------- one post, one page ---------- */
.post-header { margin-bottom: 2rem; }
.post-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  margin: 0.2rem 0 0.8rem;
}
.post-standfirst {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(20, 41, 59, 0.72);
  margin: 0;
}
.post-hero { margin: 0 0 2.2rem; }
.post-hero img { display: block; width: 100%; height: auto; border-radius: 4px; }

.entry-content { font-size: 1.02rem; line-height: 1.75; color: rgba(20, 41, 59, 0.86); }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-top: 2.4rem; line-height: 1.25; }
.entry-content h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-top: 1.8rem; }
.entry-content a { color: var(--brass); }
.entry-content img { max-width: 100%; height: auto; border-radius: 4px; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; color: rgba(20, 41, 59, 0.55); margin-top: 0.5rem; }
.entry-content blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--brass);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: rgba(20, 41, 59, 0.8);
}
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content .wp-block-button__link {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.75rem 1.3rem;
  text-decoration: none;
}
.entry-content .wp-block-button__link:hover { background: var(--brass); color: var(--navy-deep); }
.entry-content .alignwide { margin-left: calc(50% - 45vw); margin-right: calc(50% - 45vw); max-width: 90vw; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid rgba(20, 41, 59, 0.14); }

.post-footer { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(20, 41, 59, 0.14); }
.post-tags { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 1rem; }
.post-tags a { color: var(--brass); text-decoration: none; margin-right: 0.8rem; }

/* ---------- the footer on the news pages ---------- */
.news-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.news-footer nav a { color: var(--cream-dim); text-decoration: none; }
.news-footer nav a:hover { color: var(--brass); }
.news-footer .foot-tag { flex-basis: 100%; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .site-header.news-header { flex-wrap: wrap; }
  .news-header .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin-top: 0.6rem; }
  .news-header .logo img { height: 48px; }
  .entry-content .alignwide, .entry-content .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
}
