/*
Theme Name: Newstap Editorial
Theme URI: https://newstap.co.uk/
Author: Newstap
Author URI: https://newstap.co.uk/
Description: An original dark-blue editorial WordPress theme for Newstap.co.uk, designed for news, analysis, opinion, business, culture, and magazine publishing.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newstap-editorial
Tags: news, magazine, blog, two-columns, three-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, editor-style
*/

:root {
  --nt-navy-950: #06172d;
  --nt-navy-900: #081f3d;
  --nt-navy-800: #0a2c57;
  --nt-blue-600: #2f6fed;
  --nt-blue-100: #eaf1ff;
  --nt-ink: #111827;
  --nt-muted: #5d6675;
  --nt-line: #d9dee7;
  --nt-soft: #f4f7fb;
  --nt-paper: #ffffff;
  --nt-cream: #fbfaf7;
  --nt-danger: #b42318;
  --nt-radius: 3px;
  --nt-shadow: 0 12px 35px rgba(6, 23, 45, 0.08);
  --nt-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nt-paper);
  color: var(--nt-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--nt-navy-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nt-blue-600); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  background: #fff;
  color: #000;
  z-index: 99999;
  box-shadow: var(--nt-shadow);
}

.nt-container {
  width: min(calc(100% - 32px), var(--nt-container));
  margin-inline: auto;
}

.site-header {
  background: var(--nt-paper);
  border-bottom: 1px solid var(--nt-line);
}
.nt-topbar {
  background: var(--nt-navy-950);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nt-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nt-topbar a { color: #fff; text-decoration: none; }
.nt-topbar__links { display: flex; gap: 18px; flex-wrap: wrap; }
.nt-date { white-space: nowrap; }

.nt-masthead {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--nt-line);
}
.nt-masthead__left,
.nt-masthead__right { display: flex; align-items: center; gap: 12px; }
.nt-masthead__right { justify-content: flex-end; }
.nt-branding { text-align: center; }
.custom-logo-link { display: inline-flex; justify-content: center; }
.custom-logo { max-height: 68px; width: auto; }
.site-title {
  margin: 0;
  color: var(--nt-navy-950);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
}
.site-title a { color: inherit; text-decoration: none; }
.site-description {
  margin: 8px 0 0;
  color: var(--nt-muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nt-icon-button,
.nt-subscribe {
  min-height: 40px;
  border-radius: var(--nt-radius);
  border: 1px solid var(--nt-line);
  background: #fff;
  color: var(--nt-navy-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
}
.nt-icon-button:hover { border-color: var(--nt-navy-800); color: var(--nt-navy-800); }
.nt-subscribe {
  background: var(--nt-blue-600);
  border-color: var(--nt-blue-600);
  color: #fff;
}
.nt-subscribe:hover { background: var(--nt-navy-800); color: #fff; }

.nt-nav-wrap {
  background: var(--nt-paper);
  border-bottom: 3px solid var(--nt-navy-950);
  position: relative;
  z-index: 30;
}
.nt-primary-nav { min-height: 48px; display: flex; align-items: center; justify-content: center; }
.nt-menu-toggle { display: none; }
.nt-primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
  margin: 0;
  padding: 0;
}
.nt-primary-nav li { position: relative; }
.nt-primary-nav a {
  display: block;
  padding: 14px 0 12px;
  color: var(--nt-navy-950);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .065em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.nt-primary-nav a:hover,
.nt-primary-nav .current-menu-item > a,
.nt-primary-nav .current-menu-ancestor > a { color: var(--nt-blue-600); }
.nt-primary-nav .sub-menu {
  display: none;
  position: absolute;
  left: -18px;
  top: 100%;
  min-width: 220px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--nt-line);
  box-shadow: var(--nt-shadow);
}
.nt-primary-nav li:hover > .sub-menu,
.nt-primary-nav li:focus-within > .sub-menu { display: block; }
.nt-primary-nav .sub-menu a { padding: 9px 0; }

.nt-search-panel {
  display: none;
  background: var(--nt-soft);
  border-bottom: 1px solid var(--nt-line);
  padding: 18px 0;
}
.nt-search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid #b8c1d0;
  border-radius: var(--nt-radius);
  background: #fff;
  padding: 10px 14px;
}
.search-submit {
  min-height: 48px;
  border: 0;
  border-radius: var(--nt-radius);
  padding: 10px 20px;
  background: var(--nt-navy-800);
  color: #fff;
  font-weight: 700;
}

.nt-breaking {
  border-bottom: 1px solid var(--nt-line);
  background: var(--nt-cream);
}
.nt-breaking__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}
.nt-breaking__label {
  flex: 0 0 auto;
  background: var(--nt-danger);
  color: #fff;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nt-breaking__link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--nt-ink);
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

.site-main { padding: 34px 0 64px; }
.home .site-main { padding-top: 26px; }
.nt-section { margin-top: 42px; }
.nt-section:first-child { margin-top: 0; }
.nt-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--nt-navy-950);
}
.nt-section-heading h2,
.nt-section-heading h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.05;
  color: var(--nt-navy-950);
}
.nt-section-heading a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}

.nt-kicker,
.entry-categories {
  color: var(--nt-blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.nt-kicker a,
.entry-categories a { color: inherit; text-decoration: none; }

.nt-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr) minmax(250px, .8fr);
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--nt-line);
}
.nt-lead-card { min-width: 0; }
.nt-lead-card--primary { padding-right: 24px; border-right: 1px solid var(--nt-line); }
.nt-lead-card--stack { display: grid; gap: 24px; align-content: start; }
.nt-lead-card--stack .nt-story + .nt-story { padding-top: 24px; border-top: 1px solid var(--nt-line); }
.nt-lead-card--side { padding-left: 24px; border-left: 1px solid var(--nt-line); }
.nt-story__image { margin-bottom: 14px; overflow: hidden; background: var(--nt-soft); }
.nt-story__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.nt-story:hover .nt-story__image img { transform: scale(1.015); }
.nt-story__title {
  margin: 7px 0 8px;
  color: var(--nt-navy-950);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(23px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.nt-story__title a { color: inherit; text-decoration: none; }
.nt-story__title a:hover { color: var(--nt-blue-600); }
.nt-story--small .nt-story__title { font-size: 23px; }
.nt-story__excerpt { margin: 0 0 10px; color: #374151; line-height: 1.55; }
.nt-story__meta,
.entry-meta {
  color: var(--nt-muted);
  font-size: 12px;
}

.nt-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.nt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nt-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.nt-card {
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--nt-line);
}
.nt-card__image { margin-bottom: 12px; background: var(--nt-soft); overflow: hidden; }
.nt-card__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nt-card__title {
  margin: 6px 0 7px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -.015em;
}
.nt-card__title a { color: var(--nt-navy-950); text-decoration: none; }
.nt-card__title a:hover { color: var(--nt-blue-600); }
.nt-card__excerpt { margin: 0; color: #455064; font-size: 15px; line-height: 1.55; }

.nt-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .72fr);
  gap: 36px;
}
.nt-news-list { border-top: 1px solid var(--nt-line); }
.nt-list-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--nt-line);
}
.nt-list-story__title {
  margin: 6px 0 7px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.12;
}
.nt-list-story__title a { color: var(--nt-navy-950); text-decoration: none; }
.nt-list-story__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nt-list-story__excerpt { margin: 0 0 8px; color: #455064; }

.widget-area { min-width: 0; }
.widget {
  margin-bottom: 28px;
  padding: 22px;
  background: var(--nt-soft);
  border-top: 4px solid var(--nt-navy-800);
}
.widget-title {
  margin: 0 0 14px;
  color: var(--nt-navy-950);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.1;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid #dfe5ee; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--nt-navy-950); text-decoration: none; }
.widget a:hover { color: var(--nt-blue-600); }
.nt-newsletter { background: var(--nt-navy-950); color: #fff; }
.nt-newsletter .widget-title { color: #fff; }
.nt-newsletter p { color: rgba(255,255,255,.78); }

.nt-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: start;
}
.nt-article-header { max-width: 900px; margin-bottom: 24px; }
.entry-title {
  margin: 9px 0 14px;
  color: var(--nt-navy-950);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.035em;
}
.archive-title,
.search-title,
.page-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--nt-navy-950);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}
.entry-subtitle {
  max-width: 820px;
  margin: 0 0 18px;
  color: #455064;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.4;
}
.nt-byline { margin: 16px 0; font-size: 14px; color: #374151; }
.nt-byline a { font-weight: 700; text-decoration: none; }
.nt-featured-image { margin: 28px 0; }
.nt-featured-image img { width: 100%; max-height: 700px; object-fit: cover; }
.nt-image-caption { margin-top: 7px; color: var(--nt-muted); font-size: 12px; }

.entry-content {
  max-width: 760px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.78;
}
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--nt-navy-950);
  line-height: 1.16;
  letter-spacing: -.018em;
}
.entry-content h2 { margin-top: 1.6em; font-size: 36px; }
.entry-content h3 { margin-top: 1.4em; font-size: 28px; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 8px 0 8px 24px;
  border-left: 5px solid var(--nt-blue-600);
  color: var(--nt-navy-800);
  font-size: 26px;
  line-height: 1.45;
}
.entry-content .wp-caption,
.entry-content .wp-block-image,
.entry-content .wp-block-embed { max-width: 100%; }
.entry-content .alignwide { width: min(1050px, calc(100vw - 32px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content table { width: 100%; border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
.entry-content th,
.entry-content td { padding: 11px 12px; border: 1px solid var(--nt-line); text-align: left; }
.entry-content th { background: var(--nt-soft); }

.nt-share-row {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.nt-share-row a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--nt-line);
  border-radius: var(--nt-radius);
  color: var(--nt-navy-950);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.nt-author-box {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  margin-top: 38px;
  padding: 24px;
  background: var(--nt-soft);
  border-top: 4px solid var(--nt-navy-800);
}
.nt-author-box img { border-radius: 50%; }
.nt-author-box h3 { margin: 0 0 6px; font-family: Georgia, 'Times New Roman', serif; }
.nt-tags { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--nt-line); font-size: 13px; }
.nt-tags a { display: inline-block; margin: 4px 4px 4px 0; padding: 5px 8px; background: var(--nt-blue-100); text-decoration: none; }

.comments-area { margin-top: 48px; padding-top: 32px; border-top: 3px solid var(--nt-navy-950); }
.comments-title { font-family: Georgia, 'Times New Roman', serif; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--nt-line); }
.comment-meta { font-size: 13px; }
.comment-content { margin-top: 10px; }
.comment-respond textarea { width: 100%; min-height: 160px; }
.comment-respond input[type='text'],
.comment-respond input[type='email'],
.comment-respond input[type='url'],
.comment-respond textarea { border: 1px solid #b8c1d0; padding: 10px; }
.form-submit input { border: 0; background: var(--nt-navy-800); color: #fff; padding: 11px 18px; font-weight: 700; }

.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; gap: 7px; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--nt-line);
  color: var(--nt-navy-950);
  text-decoration: none;
}
.page-numbers.current { background: var(--nt-navy-800); color: #fff; border-color: var(--nt-navy-800); }

.nt-empty-state { padding: 50px 0; text-align: center; }
.nt-empty-state h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 48px; }

.site-footer { background: var(--nt-navy-950); color: rgba(255,255,255,.78); }
.nt-footer-top { padding: 52px 0 36px; }
.nt-footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 34px; }
.nt-footer-brand .site-title { color: #fff; font-size: 38px; text-align: left; }
.nt-footer-brand p { max-width: 360px; color: rgba(255,255,255,.66); }
.site-footer .widget { margin: 0; padding: 0; background: transparent; border: 0; }
.site-footer .widget-title { color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer .widget li { border-color: rgba(255,255,255,.12); }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.nt-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.nt-footer-bottom__inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.nt-footer-menu { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .nt-lead-grid { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr); }
  .nt-lead-card--side { grid-column: 1 / -1; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--nt-line); }
  .nt-lead-card--side .nt-story { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
  .nt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .nt-masthead { grid-template-columns: auto 1fr auto; min-height: 88px; }
  .site-title { font-size: 38px; }
  .site-description { display: none; }
  .nt-subscribe span { display: none; }
  .nt-nav-wrap { border-bottom-width: 2px; }
  .nt-menu-toggle { display: inline-flex; margin: 8px 0; }
  .nt-primary-nav { justify-content: flex-start; }
  .nt-primary-nav > div { display: none; width: 100%; }
  .nt-primary-nav.is-open > div { display: block; }
  .nt-primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; padding: 6px 0 14px; }
  .nt-primary-nav a { padding: 10px 0; border-bottom: 1px solid var(--nt-line); }
  .nt-primary-nav .sub-menu { display: block; position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .nt-content-layout,
  .nt-news-layout { grid-template-columns: 1fr; gap: 34px; }
  .widget-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .widget-area .widget { margin: 0; }
  .entry-content { max-width: 100%; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .nt-topbar__links { display: none; }
  .nt-topbar__inner { justify-content: center; }
  .nt-masthead { gap: 10px; }
  .site-title { font-size: 31px; }
  .nt-icon-button { padding-inline: 10px; }
  .nt-icon-button span { display: none; }
  .nt-lead-grid { grid-template-columns: 1fr; gap: 24px; }
  .nt-lead-card--primary { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--nt-line); }
  .nt-lead-card--side { padding-top: 0; border-top: 0; }
  .nt-lead-card--side .nt-story { grid-template-columns: 1fr; }
  .nt-grid-4,
  .nt-grid-3,
  .nt-grid-2 { grid-template-columns: 1fr; }
  .nt-list-story { grid-template-columns: 1fr; }
  .nt-list-story__thumb { order: -1; }
  .widget-area { grid-template-columns: 1fr; }
  .entry-title { font-size: 43px; }
  .entry-content { font-size: 18px; }
  .entry-content h2 { font-size: 30px; }
  .entry-content blockquote { font-size: 22px; }
  .nt-footer-grid { grid-template-columns: 1fr; }
  .nt-footer-bottom__inner { padding: 20px 0; align-items: flex-start; flex-direction: column; }
  .nt-author-box { grid-template-columns: 56px 1fr; }
}

@media print {
  .nt-topbar,
  .nt-masthead__left,
  .nt-masthead__right,
  .nt-nav-wrap,
  .nt-breaking,
  .widget-area,
  .site-footer,
  .nt-share-row,
  .comments-area { display: none !important; }
  .nt-masthead { display: block; min-height: 0; padding: 20px 0; }
  .nt-content-layout { display: block; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}
