/*
Theme Name: SOCroom Blog
Theme URI: https://socroom.com/
Author: OpenAI
Description: Custom SOCroom WordPress theme for the blog archive and single post experience.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: socroom-blog
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #0f1e35;
  --navy-2: #152342;
  --navy-3: #1b3a6b;
  --accent: #c0452a;
  --accent-2: #d4623f;
  --accent-pale: #faf0ed;
  --mist: #f6f7fb;
  --white: #ffffff;
  --border: #dde4ef;
  --text-1: #0f1e35;
  --text-2: #3d5470;
  --text-3: #7b93b0;
  --font-serif: "Manrope", sans-serif;
  --font-sans: "Epilogue", sans-serif;
  --shadow-soft: 0 12px 40px rgba(10, 22, 40, 0.08);
  --shadow-dark: 0 20px 46px rgba(0, 0, 0, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-nav {
  top: 32px;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 52px);
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
  max-width: 620px;
  margin: 0;
}

.btn-primary,
.btn-ghost,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  border: none;
}

.btn-primary:hover {
  background: #a03420;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #e0e8f0;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(200, 216, 232, 0.35);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(200, 216, 232, 0.7);
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 600;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  max-height: 42px;
  width: auto;
}

.nav-logo .custom-logo-image {
  max-height: 42px;
  width: auto;
}

.logo-fallback {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.logo-fallback span {
  color: var(--accent);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-link-button {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-links a:hover,
.nav-links a.is-current,
.nav-link-button:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #a03420;
}

.nav-dropdown {
  position: relative;
}

.nav-link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-link-button::after {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(27, 58, 107, 0.14);
  background-color: rgba(250, 240, 237, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23C0452A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  box-shadow: 0 4px 10px rgba(15, 30, 53, 0.06);
  transform: translateY(-1px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.nav-dropdown:hover .nav-link-button::after,
.nav-dropdown.is-open .nav-link-button::after {
  transform: translateY(-1px) rotate(180deg);
  border-color: rgba(192, 69, 42, 0.24);
  background-color: #fff;
  box-shadow: 0 8px 18px rgba(192, 69, 42, 0.14);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(640px, calc(100vw - 4rem));
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(221, 228, 239, 0.95);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(10, 22, 40, 0.12);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px;
  min-height: 124px;
  border-radius: 16px;
  border: 1px solid rgba(221, 228, 239, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 247, 251, 0.7) 100%);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 30, 53, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dropdown-item:hover {
  background: #fff;
  border-color: rgba(192, 69, 42, 0.24);
  box-shadow: 0 14px 28px rgba(15, 30, 53, 0.08);
  transform: translateY(-2px);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-pale);
  border: 1px solid rgba(192, 69, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropdown-copy {
  padding-right: 18px;
}

.dropdown-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}

.dropdown-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
}

.blog-header {
  background: var(--white);
  padding: 68px 2rem 36px;
  border-bottom: 1px solid var(--border);
}

.blog-header-inner {
  max-width: 1160px;
}

.blog-header .section-title {
  max-width: 22ch;
}

.blog-header .section-sub {
  margin-top: 0.4rem;
  max-width: 64ch;
}

.blog-lede {
  background: var(--white);
  padding: 40px 2rem 56px;
}

.blog-lede-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 2.4rem;
  align-items: start;
}

.lede-featured {
  min-width: 0;
}

.lede-featured-link {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1.1rem;
  text-decoration: none;
  color: inherit;
}

.lede-featured-media {
  aspect-ratio: 16 / 9;
  background: var(--mist);
  border-radius: 14px;
  overflow: hidden;
}

.lede-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lede-featured-link:hover .lede-featured-media img {
  transform: scale(1.02);
}

.lede-featured-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lede-featured-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.lede-featured-dek {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.9), rgba(12, 24, 43, 0.98));
  color: #fff;
  text-align: center;
}

.media-fallback span {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.post-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-pale);
  border: 1px solid rgba(192, 69, 42, 0.14);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 10px;
}

.post-meta-sep {
  color: var(--text-3);
  opacity: 0.45;
}

.lede-rail {
  min-width: 0;
  padding-top: 4px;
}

.lede-rail-label {
  margin: 0 0 1.1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.rail-item {
  border-bottom: 1px solid var(--border);
}

.rail-item-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.rail-item-link:hover .rail-item-title {
  color: var(--accent);
}

.rail-item-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-weight: 700;
  transition: color 0.2s ease;
}

.rail-item-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.rail-item-category {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 10px;
}

.blog-archive {
  background: var(--mist);
  padding: 0 2rem 88px;
}

.chip-bar {
  position: sticky;
  top: 72px;
  z-index: 60;
  margin: 0 -2rem;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

body.admin-bar .chip-bar {
  top: 104px;
}

.chip-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chip-bar-inner::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.topic-chip:hover {
  border-color: var(--text-3);
  color: var(--navy);
}

.topic-chip.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.topic-chip-count {
  color: var(--text-3);
  font-weight: 500;
}

.topic-chip.is-active .topic-chip-count {
  color: rgba(255, 255, 255, 0.62);
}

.blog-archive > .container {
  padding-top: 2.8rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.6rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
}

.post-card:hover {
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card-media {
  aspect-ratio: 16 / 9;
  background: var(--mist);
  border-radius: 12px;
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card-link:hover .post-card-media img {
  transform: scale(1.03);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
}

.post-card-title,
.post-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--navy);
  transition: color 0.2s ease;
}

.post-card-link:hover .post-card-title,
.post-card-link:hover h3 {
  color: var(--accent);
}

.post-card-dek,
.post-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination-wrap {
  margin-top: 2.5rem;
}

.nav-links.pagination {
  justify-content: center;
  gap: 0.6rem;
}

.nav-links.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.nav-links.pagination .page-numbers.current,
.nav-links.pagination .page-numbers:hover {
  border-color: rgba(192, 69, 42, 0.28);
  color: var(--navy);
}

.empty-state {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--navy);
}

.empty-state p {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--text-2);
}

.reading-progress {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 95;
  background: rgba(15, 30, 53, 0.06);
  pointer-events: none;
}

.reading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.08s linear;
}

body.admin-bar .reading-progress {
  top: 104px;
}

.single-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.single-hero {
  background: var(--white);
  padding: 32px 2rem 26px;
  border-bottom: 1px solid var(--border);
}

.single-hero .single-shell {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(220px, 280px);
  column-gap: 4rem;
  align-items: end;
}

.single-back-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 1.2rem;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.single-back-link:hover {
  color: var(--navy);
  gap: 11px;
}

.single-hero-meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin: 0 0 0.8rem;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

.single-hero-meta .post-pill {
  text-decoration: none;
}

.single-title {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
  max-width: 22ch;
}

.single-reading-controls {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
}

.reading-controls-label {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-3);
}

.reading-control-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reading-control-button {
  min-width: 42px;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.reading-control-button:hover {
  border-color: #c5d0df;
  color: var(--navy);
  transform: translateY(-1px);
}

.reading-control-button[aria-pressed="true"],
.reading-control-button.is-copied {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.reading-control-button.is-large-text {
  font-size: 15px;
}

.reading-copy-button {
  min-width: 92px;
}

body.reading-text-large .entry-content {
  font-size: 17px;
}

body.reading-theme-dark {
  background: #0f1724;
}

body.reading-theme-dark .single-hero,
body.reading-theme-dark .single-content-section {
  background: #0f1724;
  border-color: rgba(201, 213, 229, 0.16);
}

body.reading-theme-dark .single-title,
body.reading-theme-dark .entry-content,
body.reading-theme-dark .entry-content h2,
body.reading-theme-dark .entry-content h3,
body.reading-theme-dark .entry-content h4,
body.reading-theme-dark .entry-content strong {
  color: #edf4ff;
}

body.reading-theme-dark .single-back-link,
body.reading-theme-dark .single-hero-meta,
body.reading-theme-dark .reading-controls-label,
body.reading-theme-dark .entry-content p,
body.reading-theme-dark .entry-content ul,
body.reading-theme-dark .entry-content ol,
body.reading-theme-dark .entry-content blockquote,
body.reading-theme-dark .entry-content figcaption,
body.reading-theme-dark .entry-tag,
body.reading-theme-dark .sidebar-label,
body.reading-theme-dark .sidebar-form-field span,
body.reading-theme-dark .post-nav-direction {
  color: #aab8cb;
}

body.reading-theme-dark .entry-card,
body.reading-theme-dark .sidebar-cta,
body.reading-theme-dark .post-nav-link {
  background: #131d2d;
  border-color: rgba(201, 213, 229, 0.16);
  box-shadow: none;
}

body.reading-theme-dark .single-reading-controls,
body.reading-theme-dark .services-list,
body.reading-theme-dark .services-list > li,
body.reading-theme-dark .entry-tag-block,
body.reading-theme-dark .post-nav,
body.reading-theme-dark .related-posts,
body.reading-theme-dark .entry-content hr,
body.reading-theme-dark .entry-content th,
body.reading-theme-dark .entry-content td {
  border-color: rgba(201, 213, 229, 0.16);
}

body.reading-theme-dark .service-link,
body.reading-theme-dark .sidebar-cta-eyebrow,
body.reading-theme-dark .sidebar-form-field,
body.reading-theme-dark .post-nav-link-title,
body.reading-theme-dark .related-posts h2,
body.reading-theme-dark .post-card-title {
  color: #edf4ff;
}

body.reading-theme-dark .post-card-dek,
body.reading-theme-dark .post-card p {
  color: #aab8cb;
}

body.reading-theme-dark .post-card-media {
  background: #182437;
}

body.reading-theme-dark .sidebar-form-field input {
  background: #0f1724;
  border-color: rgba(201, 213, 229, 0.2);
  color: #edf4ff;
}

body.reading-theme-dark .reading-control-button {
  background: #182437;
  border-color: rgba(201, 213, 229, 0.2);
  color: #dce7f6;
}

body.reading-theme-dark .reading-control-button[aria-pressed="true"],
body.reading-theme-dark .reading-control-button.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

body.reading-theme-dark .entry-content blockquote {
  background: rgba(255, 255, 255, 0.04);
}

body.reading-theme-dark .entry-content code,
body.reading-theme-dark .entry-content pre {
  background: #0b111c;
  color: #f1f6ff;
}

.single-content-section {
  background: linear-gradient(90deg, #fff 0%, #fff 64%, #f8fafc 64%, #f8fafc 100%);
  padding: 42px 2rem 96px;
}

.single-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 320px);
  gap: 5rem;
  justify-content: center;
  align-items: stretch;
}

.single-main {
  min-width: 0;
  max-width: 680px;
}

.single-sidebar {
  min-width: 0;
  align-self: stretch;
}

.sidebar-sticky {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.sidebar-block {
  min-width: 0;
}

.sidebar-label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.services-list > li {
  border-bottom: 1px solid var(--border);
}

.service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.service-link:hover {
  color: var(--accent);
}

.service-link-arrow {
  color: var(--text-3);
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-link:hover .service-link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.sidebar-cta {
  position: sticky;
  top: 96px;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--navy);
  box-shadow: 0 18px 38px rgba(15, 30, 53, 0.07);
}

body.admin-bar .sidebar-cta {
  top: 128px;
}

.sidebar-cta-eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--navy);
}

.sidebar-cta-copy {
  margin: 0 0 1.1rem;
  font-size: 13px;
  line-height: 1.65;
  color: #c8d8e8;
}

.sidebar-lead-form {
  display: grid;
  gap: 0.75rem;
}

.sidebar-form-field {
  display: grid;
  gap: 0.35rem;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-form-field span {
  color: var(--text-2);
}

.sidebar-form-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  padding: 0.7rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-form-field input:focus {
  border-color: rgba(192, 69, 42, 0.4);
  box-shadow: 0 0 0 3px rgba(192, 69, 42, 0.1);
}

.sidebar-cta-button {
  width: 100%;
  margin-top: 0.2rem;
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

.entry-card {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.entry-content {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.9;
  max-width: 66ch;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2.1rem 0 0.8rem;
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.entry-content h2 {
  font-size: 30px;
}

.entry-content h3 {
  font-size: 24px;
}

.entry-content h4 {
  font-size: 19px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin: 0 0 1.2rem;
}

.entry-content figure,
.entry-content .wp-block-image {
  margin: 1.8rem 0;
}

.entry-content img {
  border-radius: 14px;
}

.entry-content figcaption {
  margin-top: 0.65rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.3rem;
}

.entry-content li + li {
  margin-top: 0.45rem;
}

.entry-content blockquote {
  margin-left: 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--accent);
  background: transparent;
  border-radius: 0;
  color: var(--navy);
}

.entry-content a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content strong {
  color: var(--navy);
}

.entry-content hr {
  border: none;
  height: 1px;
  margin: 2rem 0;
  background: var(--border);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--border);
  padding: 0.8rem;
  text-align: left;
}

.entry-content code {
  background: var(--mist);
  padding: 0.14rem 0.35rem;
  border-radius: 6px;
  font-size: 0.94em;
}

.entry-content pre {
  background: var(--navy);
  color: #fff;
  padding: 1.1rem;
  border-radius: 16px;
  overflow-x: auto;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
}

.entry-content iframe,
.entry-content video {
  width: 100%;
  margin: 1.6rem 0;
  border: none;
  border-radius: 14px;
}

.entry-tag-block {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.entry-tag-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.entry-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.entry-tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-tag:hover {
  color: var(--accent);
  background: transparent;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-nav-link:hover {
  border-color: rgba(192, 69, 42, 0.28);
  transform: translateY(-1px);
}

.post-nav-link.is-next {
  text-align: right;
  align-items: flex-end;
}

.post-nav-direction {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.post-nav-link-title {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.related-posts {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.related-posts h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.related-posts .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-cta {
  background: #c44d2d;
  padding: 88px 2rem;
}

.final-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.final-cta .section-label {
  color: rgba(255, 255, 255, 0.72);
}

.final-cta h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.final-cta h2 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.final-cta p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.final-cta-btns {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.site-footer {
  background: var(--navy);
  padding: 52px 2rem 28px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-name {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.9rem;
}

.footer-brand-name img {
  max-height: 44px;
  width: auto;
}

.footer-brand-name .custom-logo-image {
  max-height: 44px;
  width: auto;
}

.footer-brand-name .logo-fallback {
  color: #fff;
}

.footer-brand-name .logo-fallback span {
  color: #f0a890;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  color: #8aacc8;
  max-width: 280px;
}

.footer-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-cert {
  font-size: 10px;
  color: #8aacc8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 3px 8px;
}

.footer-col h5 {
  margin: 0 0 1rem;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  font-size: 13px;
  color: #8aacc8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #a8c4d8;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: #607d96;
}

@media (max-width: 1100px) {
  .dropdown-menu {
    width: min(560px, calc(100vw - 3rem));
  }

  .dropdown-item {
    min-height: 132px;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-nav {
    padding: 0 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(10, 22, 40, 0.1);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
  }

  .nav-links > li {
    border-top: 1px solid var(--border);
  }

  .nav-links > li:first-child {
    border-top: none;
  }

  .nav-links a,
  .nav-link-button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
  }

  .nav-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 0 16px 16px;
    border: none;
    box-shadow: none;
    background: transparent;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    grid-template-columns: 1fr;
  }

  .nav-dropdown.is-open .dropdown-menu {
    display: grid;
  }

  .nav-cta {
    margin-top: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .blog-header,
  .blog-lede,
  .blog-archive,
  .single-hero,
  .single-content-section,
  .final-cta,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .chip-bar {
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .blog-lede-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .single-layout {
    grid-template-columns: 1fr;
    gap: 2.6rem;
    align-items: start;
  }

  .sidebar-sticky {
    height: auto;
    gap: 1.2rem;
  }

  .sidebar-cta {
    position: static;
    box-shadow: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }

  body.admin-bar .reading-progress {
    top: 118px;
  }

  body.admin-bar .chip-bar {
    top: 118px;
  }
}

@media (max-width: 720px) {
  .blog-header {
    padding: 44px 1rem 24px;
  }

  .blog-lede {
    padding: 28px 1rem 40px;
  }

  .single-hero {
    padding: 30px 1rem 24px;
  }

  .single-hero .single-shell {
    display: block;
  }

  .single-back-link {
    margin-bottom: 1rem;
  }

  .single-content-section {
    background: var(--white);
    padding: 34px 1rem 72px;
  }

  .blog-header .section-title,
  .single-title {
    max-width: none;
  }

  .single-reading-controls {
    margin-top: 1.15rem;
    padding-left: 0;
    border-left: none;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .lede-featured-title {
    font-size: clamp(24px, 6vw, 30px);
  }

  .entry-content {
    font-size: 15px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-link.is-next {
    text-align: left;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-tagline {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .related-posts h2 {
    font-size: 24px;
  }

  .rail-item-title {
    font-size: 16px;
  }

  .single-title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .single-reading-controls {
    gap: 0.5rem;
  }

  .reading-control-button {
    min-width: 40px;
    min-height: 36px;
    padding: 0 10px;
  }

  .post-card-title,
  .post-card h3 {
    font-size: 20px;
  }

  .related-posts .post-grid {
    grid-template-columns: 1fr;
  }

  .final-cta p {
    font-size: 16px;
  }
}
