/*
Theme Name: RRST Blog
Theme URI: https://www.realresultssalestraining.com/blog/
Author: Real Results Sales Training
Author URI: https://www.realresultssalestraining.com/
Description: Custom blog theme built to match the Real Results Sales Training website: Roboto typography, navy header, cyan accents. No page builders, no plugins required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rrst-blog
Tags: blog, custom-theme, two-columns, right-sidebar
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --navy: #2d4977;
  --navy-dark: #1c3155;
  --navy-deep: #152340;
  --accent: #0fafeb;
  --accent-ink: #0a6b8f;
  --accent-soft: #e6f6fd;
  --btn: #0b6d96;
  --btn-hover: #0a5c7e;
  --ink: #2f3a48;
  --body: #4a5464;
  --muted: #64707f;
  --line: #e3e8ef;
  --line-soft: #eef1f6;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(21, 35, 64, .06), 0 2px 8px rgba(21, 35, 64, .05);
  --shadow-md: 0 6px 18px rgba(21, 35, 64, .10), 0 2px 6px rgba(21, 35, 64, .06);
  --shadow-lg: 0 18px 44px rgba(21, 35, 64, .16);
  --wrap: 1180px;
  --font: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ============================================================
   2. Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.24;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 20px; }
ul, ol { margin: 0 0 22px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
th { background: var(--bg-alt); color: var(--navy); font-weight: 700; }

blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--accent);
  color: var(--navy);
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--muted); }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}
code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; color: var(--navy-dark); }
pre { background: var(--navy-deep); color: #e9eef7; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; color: inherit; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  width: auto; height: auto; clip: auto; clip-path: none;
  background: #fff; color: var(--navy); padding: 10px 16px;
  border-radius: 6px; box-shadow: var(--shadow-md); font-weight: 700;
}

/* ============================================================
   3. Layout
   ============================================================ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

.site-content { padding: 46px 0 70px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 54px;
  align-items: start;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin: 0 0 28px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin: 0; font-weight: 700;
}
.section-head h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px;
  background: var(--accent); border-radius: 2px; margin-right: 10px;
  transform: translateY(-1px);
}
.section-head a { font-size: 14px; font-weight: 500; }

/* ============================================================
   4. Buttons & chips
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 13px 24px; border-radius: 6px; border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .88); color: var(--navy-dark); }
.btn--onDark { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--navy-dark); }

.chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 11px; border-radius: 4px; line-height: 1;
}
a.chip:hover { text-decoration: none; background: #d3eefa; }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
}
.meta .dot { color: #c2cbd8; }

/* ============================================================
   5. Header
   ============================================================ */
.site-header { position: relative; z-index: 60; }

.topbar { background: var(--navy-deep); color: #cfd8e6; font-size: 13.5px; }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 42px; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: none; border-bottom: 1px solid var(--accent); }
.topbar .topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar .topbar__phone { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .02em; }
.topbar .topbar__label { color: #9fb0c9; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; }

.masthead { background: var(--navy); box-shadow: 0 2px 10px rgba(21, 35, 64, .18); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 92px; flex-wrap: nowrap;
}
.brand {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  flex: 0 0 auto; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 168px; height: auto; }
.brand__divider { width: 1px; height: 34px; background: rgba(255, 255, 255, .28); }
.brand__text { color: #fff; line-height: 1.15; white-space: nowrap; }
.brand__name { display: block; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand__tag {
  display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: #d5e3f3; font-weight: 700; padding-left: 13px; border-left: 3px solid var(--accent);
  line-height: 1.1;
}

.nav-toggle {
  display: none; align-items: center; gap: 9px; background: rgba(255, 255, 255, .1);
  color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 10px 14px; cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 16px; height: 2px; background: #fff; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: #fff;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; position: relative; flex: 0 0 auto; }
.site-nav a {
  display: block; padding: 10px 12px; color: #eaf1fa; font-size: 14px;
  font-weight: 500; border-radius: 5px; text-decoration: none; white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
.site-nav { flex: 0 1 auto; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a {
  color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none;
}
.site-nav .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 8px; flex-direction: column; gap: 0; z-index: 70;
}
.site-nav li:hover > ul { display: flex; }
.site-nav ul ul a { color: var(--ink); font-weight: 500; border-radius: 5px; }
.site-nav ul ul a:hover { background: var(--bg-alt); color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ============================================================
   6. Featured post
   ============================================================ */
.featured {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 0;
  background: var(--bg-alt); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 54px;
  border: 1px solid var(--line-soft);
}
.featured__media { position: relative; min-height: 340px; background: var(--navy-dark); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured__body { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured__body .chip { align-self: flex-start; margin-bottom: 18px; }
.featured__title { font-size: 33px; margin: 0 0 16px; line-height: 1.18; }
.featured__title a { color: var(--navy); text-decoration: none; }
.featured__title a:hover { color: var(--accent-ink); text-decoration: none; }
.featured__excerpt { font-size: 16.5px; color: var(--body); margin: 0 0 22px; }
.featured__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.readmore { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.readmore:hover { color: var(--accent-ink); text-decoration: none; }
.readmore svg { transition: transform .18s ease; }
.readmore:hover svg { transform: translateX(3px); }

/* ============================================================
   7. Post cards
   ============================================================ */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 0 0 10px; }
.post-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d6deea; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__body .chip { align-self: flex-start; margin-bottom: 13px; }
.card__title { font-size: 21px; line-height: 1.28; margin: 0 0 10px; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { color: var(--accent-ink); text-decoration: none; }
.card__excerpt { font-size: 15px; color: var(--body); margin: 0 0 18px; }
.card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.card--wide { flex-direction: row; align-items: stretch; }
.card--wide .card__media { flex: 0 0 40%; aspect-ratio: auto; }
.card--wide .card__body { padding: 26px 28px; }

/* ============================================================
   8. Sidebar
   ============================================================ */
.sidebar { position: sticky; top: 24px; display: grid; gap: 26px; }
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.widget__title {
  font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: var(--navy);
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-weight: 700;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin: 0 0 2px; }
.widget ul li a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; color: var(--ink); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.widget ul li:last-child a { border-bottom: 0; }
.widget ul li a:hover { color: var(--accent-ink); text-decoration: none; }
.widget .count { color: var(--muted); font-size: 13px; font-weight: 400; }

.mini-posts { display: grid; gap: 14px; }
.mini-post { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 13px; align-items: center; }
.mini-post__thumb { width: 74px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--bg-alt); }
.mini-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post__title { font-size: 14.5px; line-height: 1.35; margin: 0 0 4px; font-weight: 500; }
.mini-post__title a { color: var(--ink); }
.mini-post__title a:hover { color: var(--accent-ink); text-decoration: none; }
.mini-post__date { font-size: 12.5px; color: var(--muted); }

.widget--cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); border: 0; color: #dbe5f2; }
.widget--cta .widget__title { color: #fff; border-bottom-color: rgba(255, 255, 255, .2); }
.widget--cta p { font-size: 14.5px; color: #cfdcec; }
.widget--cta .cta-phone { display: block; font-size: 23px; font-weight: 700; color: #fff; margin: 4px 0 18px; letter-spacing: .01em; }
.widget--cta .cta-phone:hover { text-decoration: none; color: var(--accent); }

/* Search */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"], .search-form input[type="text"] {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.search-form input::placeholder { color: #98a3b3; }
.search-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(15, 175, 235, .18); }
.search-form button {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--btn); color: #fff; border: 0; border-radius: 6px;
  padding: 0 17px; cursor: pointer;
}
.search-form button:hover { background: var(--btn-hover); }

/* ============================================================
   9. Pagination
   ============================================================ */
.pagination { margin: 46px 0 0; }
.pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 13px;
  font-size: 14.5px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  text-decoration: none; transition: all .16s ease;
}
.pagination .page-numbers:hover { border-color: var(--navy); background: var(--bg-alt); text-decoration: none; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; min-width: auto; }
.pagination .prev, .pagination .next { padding: 0 16px; }
.pagination .page-numbers .screen-reader-text { display: none; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 46px 0 0; }
.post-nav a {
  display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.post-nav a:hover { border-color: #cdd8e6; box-shadow: var(--shadow-sm); text-decoration: none; }
.post-nav .dir { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-weight: 700; }
.post-nav .ttl { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.35; display: block; }
.post-nav .next { text-align: right; }

/* ============================================================
   10. Single post
   ============================================================ */
.post-header { margin: 0 0 30px; }
.post-header .chip { margin-bottom: 18px; }
.post-header h1 { font-size: 40px; line-height: 1.16; margin: 0 0 18px; letter-spacing: -0.015em; }
.post-header .post-lede { font-size: 19px; color: var(--body); line-height: 1.6; margin: 0 0 22px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line-soft); }
.post-meta .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.post-meta .author-name { color: var(--ink); font-weight: 600; }

.post-thumb { margin: 0 0 34px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-thumb img { width: 100%; height: auto; }

.prose { font-size: 17.5px; line-height: 1.75; color: var(--body); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 28px; margin: 42px 0 16px; }
.prose h3 { font-size: 21px; margin: 32px 0 12px; color: var(--navy-dark); }
.prose h4 { font-size: 18px; margin: 26px 0 10px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--btn-hover); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose img { border-radius: var(--radius); margin: 26px 0; }
.prose figure { margin: 30px 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose blockquote { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.prose hr { margin: 40px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.tags a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 6px 13px;
}
.tags a:hover { color: var(--navy); border-color: var(--navy); text-decoration: none; }

.author-box {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 20px;
  margin: 36px 0 0; padding: 26px; background: var(--bg-alt);
  border-radius: var(--radius); border: 1px solid var(--line-soft);
}
.author-box .avatar-lg {
  width: 62px; height: 62px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
}
.author-box h3 { font-size: 17px; margin: 0 0 6px; }
.author-box p { font-size: 14.5px; margin: 0; }

.cta-band {
  margin: 54px 0 0; padding: 40px 44px; border-radius: var(--radius-lg); color: #dbe5f2;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 78%);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 25px; margin: 0 0 8px; }
.cta-band p { margin: 0; color: #c6d5e8; font-size: 15.5px; max-width: 560px; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.related { margin: 54px 0 0; }

/* ============================================================
   11. Archive / page / search / 404
   ============================================================ */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); padding: 44px 0 40px; }
.page-hero h1 { font-size: 36px; margin: 0 0 12px; }
.page-hero .desc { font-size: 17px; color: var(--body); max-width: 720px; margin: 0; }
.page-hero .eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }

.entry-page { font-size: 17.5px; line-height: 1.75; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h1, .empty-state h2 { font-size: 30px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

.error-404 { text-align: center; padding: 70px 20px 30px; }
.error-404 .code { font-size: 84px; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -0.03em; }
.error-404 .code span { color: var(--accent); }
.error-404 h1 { font-size: 30px; margin: 20px 0 12px; }
.error-404 p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.error-404 .search-form { max-width: 420px; margin: 0 auto; }

/* ============================================================
   12. Comments
   ============================================================ */
.comments-area { margin: 60px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 22px; margin: 0 0 26px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list li.comment { margin: 0 0 22px; }
.comment-list .comment-body { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 22px; }
.comment-list .comment-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.comment-list .comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-list .comment-author .fn { font-style: normal; font-weight: 700; color: var(--navy); font-size: 15px; }
.comment-list .reply a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.comment-form p { margin-bottom: 16px; }
.comment-form p.comment-form-comment,
.comment-form p.comment-form-url,
.comment-form p.form-submit,
.comment-form .comment-notes,
.comment-form .logged-in-as,
.comment-form .comment-form-cookies-consent { grid-column: 1 / -1; }
.comment-form p.comment-form-author,
.comment-form p.comment-form-email { grid-column: span 1; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) {
  .comment-form { grid-template-columns: minmax(0, 1fr); }
  .comment-form p.comment-form-author,
  .comment-form p.comment-form-email { grid-column: 1 / -1; }
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(15, 175, 235, .16); }
.comment-form .submit {
  background: var(--btn); color: #fff; border: 0; border-radius: 6px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 26px;
}
.comment-form .submit:hover { background: var(--btn-hover); }

/* ============================================================
   13. Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: #b9c6d8; padding: 58px 0 0; margin-top: 0; }
.site-footer a { color: #dbe5f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: none; border-bottom: 1px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; }
.footer-brand img { width: 168px; margin-bottom: 18px; }
.footer-brand p { font-size: 14.5px; line-height: 1.7; color: #a8b7cb; margin: 0; }
.footer-col h3 { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 18px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 11px; font-size: 14.5px; color: #b9c6d8; }
.footer-col address { font-style: normal; font-size: 14.5px; line-height: 1.65; color: #b9c6d8; }
.footer-col .label { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8fa2bc; margin-bottom: 3px; font-weight: 700; }
.footer-col .block { margin-bottom: 18px; }
.footer-bottom {
  margin-top: 46px; border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8fa2bc;
}
.footer-bottom p { margin: 0; }
.footer-bottom .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(21, 35, 64, .78); color: #fff; font-size: 17px;
  display: none; align-items: center; justify-content: center;
  transition: background-color .18s ease;
}
.to-top:hover { background: var(--navy); }
.to-top.is-visible { display: inline-flex; }

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; }
  .featured__body { padding: 34px 32px; }
  .featured__title { font-size: 28px; }
  .post-header h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .masthead .wrap { min-height: 76px; }
  .nav-toggle { display: inline-flex; }
  .masthead { position: relative; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-dark); box-shadow: var(--shadow-lg);
    padding: 10px 16px 18px; z-index: 80;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 13px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .site-nav ul ul { position: static; display: flex; background: transparent; box-shadow: none; padding: 0 0 0 14px; }
  .site-nav ul ul a { color: #cfdcec; font-size: 14px; }
  .site-nav ul ul a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .featured__media { min-height: 240px; position: relative; }
  .post-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .site-content { padding: 32px 0 54px; }
  .brand img { width: 140px; }
  .brand__divider, .brand__text { display: none; }
  .topbar .topbar__label { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .topbar__right { gap: 14px; }
  .post-grid, .post-grid--three { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .featured__body { padding: 26px 22px 28px; }
  .featured__title { font-size: 24px; }
  .post-header h1 { font-size: 28px; }
  .post-header .post-lede { font-size: 17px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 24px; }
  .page-hero h1 { font-size: 28px; }
  .card--wide { flex-direction: column; }
  .card--wide .card__media { flex: none; aspect-ratio: 16 / 9; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .next { text-align: left; }
  .cta-band { padding: 28px 24px; }
  .cta-band h2 { font-size: 21px; }
  .author-box { grid-template-columns: 48px minmax(0, 1fr); padding: 20px; gap: 14px; }
  .author-box .avatar-lg { width: 48px; height: 48px; font-size: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .error-404 .code { font-size: 62px; }
}

@media (max-width: 400px) {
  .post-header h1 { font-size: 25px; }
  .featured__title { font-size: 22px; }
}

/* WordPress core alignment classes */
.alignleft { float: left; margin: 6px 26px 20px 0; }
.alignright { float: right; margin: 6px 0 20px 26px; }
.aligncenter { display: block; margin: 26px auto; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky .card__title::after { content: " *"; color: var(--accent); }

@media print {
  .site-header, .sidebar, .site-footer, .cta-band, .related, .post-nav, .to-top { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
