/*
Theme Name:     Kadence Child — RAF Chronicle
Theme URI:      n/a
Template:       kadence
Author:         Pro Author
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
/* ═══════════════════════════════════════════
   THE RAF CHRONICLE — GLOBAL STYLES
   ═══════════════════════════════════════════ */

/* Body font refinement */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAVIGATION ──────────────────────────── */
.header-navigation[class*=header-navigation-style-underline]
.header-menu-container > ul > li > a::after {
  bottom: 0;
  height: 1.5px;
  background: #1b1b1f;
}

/* ── RAF LABEL (blue line + uppercase text) ── */
.raf-label {
  position: relative;
  padding-left: 30px;
}
.raf-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 1.5px;
  background: #003087;
}

/* ═══════════════════════════════════════════
   ARTICLE / POST STYLES
   ═══════════════════════════════════════════ */

.single-post .entry-content p {
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: #2a2a30;
  margin-bottom: 1.4em;
}

.single-post .entry-content > p,
.single-post .entry-content > h2,
.single-post .entry-content > h3 {
  max-width: 680px;
}

.single-post .entry-content h2 {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: #1b1b1f;
  margin-top: 2em;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

/* Pull quotes */
.wp-block-pullquote {
  border-left: 3px solid #003087;
  border-top: none;
  border-bottom: none;
  padding: 4px 0 4px 28px;
  margin: 2em 0;
  text-align: left;
}
.is-style-standfirst p,
.wp-block-pullquote blockquote p {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: #4a4a55;
}
.single-post .wp-block-pullquote blockquote p {
  font-size: 24px;
  color: #1b1b1f;
}
.wp-block-pullquote cite {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767676;
  font-style: normal;
}

/* Figure captions */
.wp-block-image figcaption,
.single-post .wp-block-image figcaption {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #767676;
  font-style: italic;
  line-height: 1.5;
  margin-top: 8px;
}

/* Remove default block padding */
.entry-content > * {
  max-width: 100%;
}

/* Article tag pills */
.article-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid #ebebeb;
  margin-top: 54px;
}
.article-tags a,
.article-tag {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #767676;
  border: 1px solid #ebebeb;
  padding: 5px 13px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  display: inline-block;
  line-height: 1;
}
.article-tags a:hover,
.article-tag:hover {
  border-color: #1b1b1f;
  color: #1b1b1f;
}

/* On This Day year */
.otd-year {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 700;
  color: #1b1b1f;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

/* Sidebar widget labels */
.sidebar .widget-title,
.sidebar .wp-block-heading {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #767676;
  border-bottom: 1px solid #1b1b1f;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

/* Subscribe button */
.sidebar .wp-block-button__link,
.sidebar input[type="submit"] {
  background: #1b1b1f !important;
  color: #ffffff !important;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0 !important;
  padding: 12px 20px;
  border: none;
}
.sidebar input[type="text"],
.sidebar input[type="email"] {
  border: 1px solid #ebebeb;
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 10px 14px;
  width: 100%;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   AIRCRAFT PROFILE
   ═══════════════════════════════════════════ */

/* Type label with RAF blue rule */
.aircraft-type-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #003087;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aircraft-type-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: #003087;
  flex-shrink: 0;
}

/* Role pills */
.aircraft-roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.role-pill {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767676;
  border: 1px solid #c8c6bf;
  padding: 4px 12px;
}
.role-pill.primary {
  background: #1b1b1f;
  color: #ffffff;
  border-color: #1b1b1f;
}

/* Quick stats panel */
.quick-stats {
  background: #f7f6f3;
  border: 1px solid #ebebeb;
  padding: 28px;
}
.qs-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #767676;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.qs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #ebebeb;
  gap: 12px;
}
.qs-row:last-child { border-bottom: none; }
.qs-key {
  font-size: 11px;
  font-weight: 400;
  color: #767676;
  flex-shrink: 0;
}
.qs-val {
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1b1b1f;
  text-align: right;
}

/* Section divider rule */
.section-rule {
  border: none;
  border-top: 2px solid #1b1b1f;
  margin: 48px 0 0;
}

/* In-page navigation */
.inpage-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ebebeb;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 0;
}
.inpage-nav::-webkit-scrollbar { display: none; }
.inpage-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767676;
  padding: 14px 26px;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
  text-decoration: none;
}
.inpage-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1.5px;
  background: #003087;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.inpage-nav a:hover { color: #1b1b1f; }
.inpage-nav a.active { color: #003087; }
.inpage-nav a.active::after { transform: scaleX(1); }

/* Content sections */
.content-section { margin-bottom: 48px; }
.content-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #767676;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.content-section h2 {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: #1b1b1f;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}
.spec-table caption {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #767676;
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px solid #1b1b1f;
  caption-side: top;
}
.spec-section-head td {
  padding: 18px 0 6px;
  color: #767676;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.spec-row { border-bottom: 1px solid #ebebeb; }
.spec-row:last-child { border-bottom: none; }
.spec-row td { padding: 10px 0; font-size: 14px; vertical-align: top; }
.spec-row td:first-child {
  color: #767676;
  font-weight: 400;
  width: 200px;
  padding-right: 20px;
}
.spec-row td:last-child {
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1b1b1f;
}

/* Variants */
.variants-list { border-top: 1px solid #ebebeb; }
.variant-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #ebebeb;
  align-items: start;
}
.variant-row:last-child { border-bottom: none; }
.variant-name {
  font-family: 'Cormorant', serif;
  font-size: 17px;
  font-weight: 700;
  color: #003087;
}
.variant-desc {
  font-size: 13.5px;
  color: #767676;
  line-height: 1.55;
}

/* Squadrons grid */
.squadrons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ebebeb;
  border: 1px solid #ebebeb;
}
.squadron-cell {
  background: #ffffff;
  padding: 16px 18px;
  transition: background 0.15s;
  text-decoration: none;
  display: block;
}
.squadron-cell:hover { background: #f7f6f3; }
.sq-number {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 700;
  color: #003087;
  display: block;
  margin-bottom: 2px;
}
.sq-name { font-size: 12px; color: #767676; line-height: 1.4; display: block; }

/* Operations list */
.operations-list { border-top: 1px solid #ebebeb; }
.operation-row {
  display: grid;
  grid-template-columns: 130px 1fr 110px;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #ebebeb;
  align-items: start;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.operation-row:last-child { border-bottom: none; }
.operation-row:hover { background: #f7f6f3; }
.operation-row:hover .op-row-name { color: #003087; }
.op-row-date {
  font-family: 'Cormorant', serif;
  font-size: 14px;
  font-weight: 600;
  color: #767676;
  line-height: 1.3;
  padding-top: 3px;
}
.op-row-codename {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #003087;
  margin-bottom: 4px;
}
.op-row-name {
  font-family: 'Cormorant', serif;
  font-size: 19px;
  font-weight: 600;
  color: #1b1b1f;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.op-row-desc { font-size: 13px; color: #767676; line-height: 1.55; }
.op-row-outcome {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  color: #ffffff;
  text-align: center;
  margin-top: 4px;
  align-self: start;
  justify-self: end;
  display: inline-block;
}
.op-row-outcome.success { background: #003087; }
.op-row-outcome.costly  { background: #8c1c1c; }
.op-row-outcome.partial { background: #8a7030; }
.op-row-outcome.ongoing { background: #767676; }

/* Articles strip */
.articles-section {
  border-top: 2px solid #1b1b1f;
  padding: 48px 0 80px;
}
.articles-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}
.articles-section-head h2 {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 600;
  color: #1b1b1f;
}
.articles-section-head a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767676;
  transition: color 0.15s;
}
.articles-section-head a:hover { color: #1b1b1f; }
.linked-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #ebebeb;
  border: 1px solid #ebebeb;
  margin-bottom: 32px;
}
.linked-item {
  background: #ffffff;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
  transition: background 0.15s;
  text-decoration: none;
}
.linked-item:hover { background: #f7f6f3; }
.linked-thumb {
  width: 100px;
  height: 67px;
  background: linear-gradient(135deg, #d0d8e0 0%, #b0bcc8 100%);
  display: block;
  flex-shrink: 0;
}
.linked-thumb.b { background: linear-gradient(135deg, #d0c8bc 0%, #b0a89c 100%); }
.linked-thumb.c { background: linear-gradient(135deg, #ccd0c8 0%, #a8b0a4 100%); }
.linked-thumb.dark { background: linear-gradient(135deg, #1a2540 0%, #0d1520 100%); }
.linked-type {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #767676;
  margin-bottom: 5px;
}
.linked-item h3 {
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #1b1b1f;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.linked-item:hover h3 { color: #003087; }
.linked-meta { font-size: 11px; color: #c8c6bf; }

/* ── AIRCRAFT SIDEBAR ────────────────────── */
.aircraft-sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 32px;
}

.sidebar-block { display: block; }

.sidebar-block-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #767676;
  border-bottom: 1px solid #1b1b1f;
  padding-bottom: 10px;
  margin-bottom: 18px;
  display: block;
}

/* Service record — table layout */
.service-table {
  width: 100%;
  border-collapse: collapse;
}

.service-table tr {
  border-bottom: 1px solid #ebebeb;
}

.service-table tr:last-child {
  border-bottom: none;
}

.service-table td {
  padding: 10px 0;
  vertical-align: top;
}

.service-table .tl-year {
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 600;
  color: #003087;
  line-height: 1.2;
  width: 48px;
  padding-right: 10px;
  white-space: nowrap;
}

.service-table .tl-text {
  font-size: 13px;
  color: #767676;
  line-height: 1.5;
}

.service-table .tl-text strong {
  color: #1b1b1f;
  font-weight: 400;
}

/* Related aircraft — table layout */
.rel-ac-table {
  width: 100%;
  border-collapse: collapse;
}

.rel-ac-table tr {
  border-bottom: 1px solid #ebebeb;
}

.rel-ac-table tr:last-child {
  border-bottom: none;
}

.rel-ac-table .rel-ac-spacer {
  border-bottom: none;
}

.rel-ac-table .rel-ac-spacer td {
  padding: 0;
  height: 0;
}

.rel-ac-table td {
  padding: 12px 0;
  vertical-align: top;
}

.rel-ac-td-thumb {
  width: 72px;
  padding-right: 12px !important;
}

.rel-ac-thumb {
  width: 72px;
  height: 54px;
  background: linear-gradient(135deg, #d0d8e0 0%, #b0bcc8 100%);
  display: block;
}

.rel-ac-thumb--b {
  background: linear-gradient(135deg, #d0c8bc 0%, #b0a89c 100%);
}

.rel-ac-thumb--c {
  background: linear-gradient(135deg, #ccc8c0 0%, #aca89c 100%);
}

.rel-ac-td-info {
  vertical-align: top;
}

.rel-ac-name {
  font-family: 'Cormorant', serif;
  font-size: 15px;
  font-weight: 600;
  color: #1b1b1f;
  line-height: 1.25;
  transition: color 0.15s;
  display: block;
  margin-bottom: 3px;
  text-decoration: none;
}

.rel-ac-name:hover { color: #003087; }

.rel-ac-role {
  font-size: 11px;
  color: #767676;
  line-height: 1.4;
  display: block;
}

/* Key people */
.rel-person-item {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ebebeb;
  display: block;
}

.rel-person-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.rel-person-name {
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1b1b1f;
  display: block;
  margin-bottom: 2px;
  transition: color 0.15s;
}

.rel-person-item a:hover .rel-person-name { color: #003087; }

.rel-person-role {
  font-size: 12px;
  color: #767676;
  display: block;
}
.articles-view-all {
  text-align: center;
  margin-top: 32px;
}

.articles-view-all a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #003087;
  border-bottom: 1px solid #003087;
  padding-bottom: 2px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.articles-view-all a:hover {
  color: #1b1b1f;
  border-color: #1b1b1f;
}
