/*
Theme Name: BIG Launcher Blog
Theme URI: https://blog.biglauncher.com
Description: Official BIG Launcher blog theme - high contrast, accessible design for seniors
Version: 1.0
Author: 2BIG s.r.o.
Author URI: https://biglauncher.com
Tags: accessibility, high-contrast, blog, responsive
Text Domain: bl-blog
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bl-blue:          #2563eb;
  --bl-blue-dark:     #1d4ed8;
  --bl-blue-light:    #eff6ff;
  --bl-blue-mid:      #bfdbfe;
  --bl-dark:          #1e293b;
  --bl-dark-2:        #334155;
  --bl-muted:         #64748b;
  --bl-border:        #e2e8f0;
  --bl-bg:            #ffffff;
  --bl-bg-soft:       #f8fafc;
  --bl-bg-slate:      #f1f5f9;
  --bl-success:       #16a34a;
  --bl-radius:        8px;
  --bl-radius-lg:     12px;
  --bl-radius-xl:     16px;
  --bl-shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --bl-shadow:        0 4px 12px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
  --bl-shadow-lg:     0 10px 25px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);
  --bl-font:          'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --bl-font-mono:     ui-monospace, 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  --bl-transition:    all 0.2s ease;
  --bl-max-w:         800px;
  --bl-max-w-wide:    1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--bl-font);
  font-size: 18px;
  line-height: 1.75;
  color: var(--bl-dark);
  background-color: var(--bl-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--bl-blue);
  text-decoration: none;
  transition: var(--bl-transition);
}

a:hover {
  color: var(--bl-blue-dark);
  text-decoration: underline;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--bl-blue);
  color: #fff;
  font-weight: 700;
  border-radius: var(--bl-radius);
  text-decoration: none;
  font-size: 14px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--bl-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bl-font);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bl-dark);
}

h1 {
  font-size: 2.4rem;
  color: var(--bl-dark);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.6rem;
  color: var(--bl-blue);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--bl-dark);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.05rem;
  color: var(--bl-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

h5, h6 {
  font-size: 1rem;
  color: var(--bl-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1.4rem;
  color: var(--bl-dark);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
}

/* ============================================================
   LISTS
   ============================================================ */
ul, ol {
  margin: 0 0 1.4rem 0;
  padding-left: 1.75rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background-color: var(--bl-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

ol {
  list-style: decimal;
}

ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

ol li::marker {
  color: var(--bl-blue);
  font-weight: 700;
}

li > ul,
li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ============================================================
   BLOCKQUOTES
   ============================================================ */
blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  border-left: 4px solid var(--bl-blue);
  background: var(--bl-blue-light);
  border-radius: 0 var(--bl-radius) var(--bl-radius) 0;
  font-style: italic;
  color: var(--bl-dark-2);
}

blockquote p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bl-muted);
}

blockquote cite::before {
  content: '— ';
}

/* ============================================================
   CODE
   ============================================================ */
code,
kbd,
samp {
  font-family: var(--bl-font-mono);
  font-size: 0.875em;
}

code {
  background: var(--bl-bg-slate);
  color: var(--bl-blue-dark);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--bl-border);
}

pre {
  background: var(--bl-dark);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--bl-radius-lg);
  overflow-x: auto;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* ============================================================
   TABLES
   ============================================================ */
.entry-content table,
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  border-radius: var(--bl-radius-lg);
  overflow: hidden;
  box-shadow: var(--bl-shadow-sm);
}

.entry-content table th,
.page-content table th {
  background: var(--bl-blue);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-content table td,
.page-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bl-border);
  vertical-align: top;
  line-height: 1.5;
}

.entry-content table tr:nth-child(even) td,
.page-content table tr:nth-child(even) td {
  background: var(--bl-bg-soft);
}

.entry-content table tr:last-child td,
.page-content table tr:last-child td {
  border-bottom: none;
}

.entry-content table tr:hover td,
.page-content table tr:hover td {
  background: var(--bl-blue-light);
  transition: background 0.15s;
}

/* ============================================================
   IMAGES
   ============================================================ */
.entry-content img,
.page-content img {
  width: 100%;
  height: auto;
  border-radius: var(--bl-radius-lg);
  box-shadow: var(--bl-shadow);
  margin: 1.5rem 0;
}

figure {
  margin: 2rem 0;
}

figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--bl-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================================
   HORIZONTAL RULE
   ============================================================ */
hr {
  border: none;
  border-top: 2px solid var(--bl-border);
  margin: 2.5rem 0;
}

/* ============================================================
   BUTTONS & CTA
   ============================================================ */
.btn,
button.btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  background: var(--bl-blue);
  color: #fff;
  font-family: var(--bl-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--bl-radius);
  cursor: pointer;
  transition: var(--bl-transition);
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--bl-blue-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}

.btn:focus-visible {
  outline: 3px solid var(--bl-blue);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--bl-blue);
  border-color: var(--bl-blue);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--bl-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}

.btn-white {
  background: #fff;
  color: var(--bl-blue);
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.btn-white:hover {
  background: var(--bl-blue-light);
  color: var(--bl-blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.125rem;
  padding: 14px 32px;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 8px 18px;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--bl-max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--bl-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bl-border);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--bl-blue) 0%, var(--bl-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  line-height: 1.2;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-title a {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  background: inherit;
  -webkit-background-clip: inherit;
  -webkit-text-fill-color: inherit;
  background-clip: inherit;
}

.site-title a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.tagline {
  font-size: 0.7rem;
  color: var(--bl-muted);
  font-weight: 400;
  display: block;
  letter-spacing: 0;
  -webkit-text-fill-color: var(--bl-muted);
  background: none;
}

/* Primary Navigation */
.primary-navigation {
  display: flex;
  align-items: center;
}

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

.nav-menu li::before {
  display: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bl-dark-2);
  border-radius: var(--bl-radius);
  transition: var(--bl-transition);
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--bl-blue);
  background: var(--bl-blue-light);
  text-decoration: none;
}

.header-cta {
  margin-left: 0.75rem;
}

.header-cta .btn {
  font-size: 0.875rem;
  padding: 9px 18px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--bl-radius);
  color: var(--bl-dark-2);
  transition: var(--bl-transition);
}

.nav-toggle:hover {
  background: var(--bl-bg-slate);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--bl-transition);
}

.nav-toggle span + span {
  margin-top: 5px;
}

/* ============================================================
   HERO / PAGE HEADER
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--bl-blue) 0%, var(--bl-blue-dark) 100%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-header .page-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   BLOG ARCHIVE / INDEX
   ============================================================ */
.blog-archive {
  padding: 4rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Post Card */
.post-card {
  background: var(--bl-bg);
  border-radius: var(--bl-radius-xl);
  border: 1px solid var(--bl-border);
  overflow: hidden;
  box-shadow: var(--bl-shadow-sm);
  transition: var(--bl-transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bl-shadow-lg);
  border-color: var(--bl-blue-mid);
}

.post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bl-bg-slate);
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.04);
}

.post-card-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bl-blue-light) 0%, var(--bl-blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bl-blue);
  font-size: 3rem;
}

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.post-card-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bl-blue-light);
  color: var(--bl-blue-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card-cat:hover {
  background: var(--bl-blue);
  color: #fff;
  text-decoration: none;
}

.post-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bl-dark);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--bl-blue);
  text-decoration: none;
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--bl-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--bl-muted);
  border-top: 1px solid var(--bl-border);
  padding-top: 1rem;
  margin-top: auto;
}

.post-card-meta .meta-date,
.post-card-meta .meta-reading-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bl-blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: auto;
}

.post-card-read-more:hover {
  color: var(--bl-blue-dark);
  text-decoration: none;
  gap: 0.55rem;
}

.post-card-read-more::after {
  content: '→';
  transition: margin 0.2s;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0 1rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bl-dark-2);
  border: 2px solid var(--bl-border);
  border-radius: var(--bl-radius);
  text-decoration: none;
  transition: var(--bl-transition);
  background: var(--bl-bg);
}

.pagination .page-numbers:hover {
  border-color: var(--bl-blue);
  color: var(--bl-blue);
  background: var(--bl-blue-light);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--bl-blue);
  border-color: var(--bl-blue);
  color: #fff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-layout {
  padding: 0 0 4rem;
}

/* Featured Image - Full Width */
.post-featured-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 0;
}

.post-featured-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.post-hero {
  background: var(--bl-dark);
  padding: 3rem 0 2.5rem;
  margin-bottom: 3rem;
}

.post-hero .post-categories {
  margin-bottom: 1rem;
}

.post-hero .entry-title {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
}

.post-hero .entry-meta {
  color: rgba(255,255,255,.7);
}

/* Post Categories (pill badges) */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,.25);
}

.cat-badge:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
  text-decoration: none;
}

.cat-badge-blue {
  background: var(--bl-blue-light);
  color: var(--bl-blue-dark);
  border-color: var(--bl-blue-mid);
}

.cat-badge-blue:hover {
  background: var(--bl-blue);
  color: #fff;
}

/* Entry Meta */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--bl-muted);
  margin-bottom: 2rem;
}

.entry-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.entry-meta .meta-icon {
  width: 16px;
  height: 16px;
  color: var(--bl-blue);
  flex-shrink: 0;
}

.entry-meta time {
  font-weight: 500;
}

.entry-meta .meta-reading-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.entry-meta .meta-sep {
  color: var(--bl-border);
}

/* Article Content */
.entry-content {
  max-width: var(--bl-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Article wrapper for single post */
article.single-article {
  padding: 3rem 0;
}

article.single-article .entry-header {
  max-width: var(--bl-max-w);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

/* ============================================================
   AUTHOR BIO
   ============================================================ */
.author-bio {
  max-width: var(--bl-max-w);
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  background: var(--bl-bg-soft);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-xl);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.author-bio-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--bl-shadow-sm);
  margin: 0;
  border-radius: 50%;
}

.author-bio-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bl-blue) 0%, var(--bl-blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.author-bio-content {
  flex: 1;
}

.author-bio-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bl-dark);
  margin: 0 0 0.25rem;
}

.author-bio-role {
  font-size: 0.8rem;
  color: var(--bl-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.author-bio-description {
  font-size: 0.9rem;
  color: var(--bl-dark-2);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   POST NAVIGATION (prev/next)
   ============================================================ */
.post-navigation {
  max-width: var(--bl-max-w);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.post-nav-item {
  background: var(--bl-bg-soft);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg);
  padding: 1.25rem 1.5rem;
  transition: var(--bl-transition);
  text-decoration: none;
  display: block;
}

.post-nav-item:hover {
  border-color: var(--bl-blue);
  background: var(--bl-blue-light);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--bl-shadow-sm);
}

.post-nav-item.nav-next {
  text-align: right;
}

.post-nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bl-blue);
  margin-bottom: 0.35rem;
}

.post-nav-label::before {
  content: '← ';
}

.nav-next .post-nav-label::before {
  content: '';
}

.nav-next .post-nav-label::after {
  content: ' →';
}

.post-nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bl-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   CTA BLOCK (within content + standalone)
   ============================================================ */
.cta-block {
  background: linear-gradient(135deg, var(--bl-blue) 0%, var(--bl-blue-dark) 100%);
  border-radius: var(--bl-radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  max-width: var(--bl-max-w);
  margin: 3rem auto;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-block-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.7);
  margin-bottom: 0.5rem;
}

.cta-block-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-block-description {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.cta-block .btn-white {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  padding: 12px 28px;
}

/* Pre-footer CTA banner */
.pre-footer-cta {
  background: linear-gradient(135deg, var(--bl-blue) 0%, var(--bl-blue-dark) 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: #fff;
}

.pre-footer-cta h2 {
  font-size: 1.85rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.pre-footer-cta p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  max-width: var(--bl-max-w);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.related-posts-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bl-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bl-border);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.related-post-item {
  background: var(--bl-bg-soft);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg);
  overflow: hidden;
  transition: var(--bl-transition);
}

.related-post-item:hover {
  border-color: var(--bl-blue);
  box-shadow: var(--bl-shadow-sm);
  transform: translateY(-2px);
}

.related-post-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bl-bg-slate);
}

.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumb img {
  transform: scale(1.04);
}

.related-post-body {
  padding: 1rem 1.25rem;
}

.related-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bl-dark);
  line-height: 1.4;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-title a {
  color: inherit;
  text-decoration: none;
}

.related-post-title a:hover {
  color: var(--bl-blue);
}

.related-post-date {
  font-size: 0.8rem;
  color: var(--bl-muted);
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-template {
  padding: 4rem 0;
}

.page-content {
  max-width: var(--bl-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-entry-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.page-entry-meta {
  font-size: 0.875rem;
  color: var(--bl-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--bl-border);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 84px;
}

.widget {
  background: var(--bl-bg-soft);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bl-muted);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bl-border);
}

.widget ul {
  margin: 0;
}

.widget ul li {
  padding-left: 1rem;
  margin-bottom: 0.6rem;
}

.widget ul li::before {
  width: 6px;
  height: 6px;
  top: 0.7em;
}

.widget ul li a {
  font-size: 0.9rem;
  color: var(--bl-dark-2);
  text-decoration: none;
}

.widget ul li a:hover {
  color: var(--bl-blue);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--bl-blue) 0%, var(--bl-blue-dark) 100%);
  border-radius: var(--bl-radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  border: none;
}

.sidebar-cta .widget-title {
  color: rgba(255,255,255,.75);
  border-bottom-color: rgba(255,255,255,.2);
}

.sidebar-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  padding: 6rem 0;
  text-align: center;
}

.error-404 .error-number {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--bl-blue-mid);
  display: block;
  margin-bottom: 0.25rem;
}

.error-404 h1 {
  font-size: 2rem;
  color: var(--bl-dark);
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.1rem;
  color: var(--bl-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.error-404 .search-form {
  max-width: 400px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 0.5rem;
}

.error-404 .search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid var(--bl-border);
  border-radius: var(--bl-radius);
  background: var(--bl-bg);
  color: var(--bl-dark);
  font-family: var(--bl-font);
  transition: var(--bl-transition);
}

.error-404 .search-form input[type="search"]:focus {
  border-color: var(--bl-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bl-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .site-title-footer {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.footer-brand .site-title-footer:hover {
  text-decoration: none;
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin: 0;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

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

.footer-links li {
  padding: 0;
  margin-bottom: 0.6rem;
}

.footer-links li::before {
  display: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

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

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

.footer-copyright a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #fff;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links li::before {
  display: none;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,.8);
}

/* ============================================================
   FORMS (Comment / Search / Generic)
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
  font-family: var(--bl-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bl-dark);
  background: var(--bl-bg);
  border: 2px solid var(--bl-border);
  border-radius: var(--bl-radius);
  padding: 10px 14px;
  width: 100%;
  transition: var(--bl-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--bl-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bl-dark);
  margin-bottom: 0.35rem;
}

.comment-respond {
  max-width: var(--bl-max-w);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.comment-reply-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.comment-form p {
  margin-bottom: 1.25rem;
}

.comments-area {
  max-width: var(--bl-max-w);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bl-border);
}

.comment {
  margin-bottom: 1.5rem;
}

.comment-body {
  background: var(--bl-bg-soft);
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg);
  padding: 1.25rem 1.5rem;
}

.comment-author .fn {
  font-size: 0.95rem;
  font-weight: 700;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--bl-muted);
  margin-bottom: 0.75rem;
}

.comment-metadata a {
  color: inherit;
}

.comment-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--bl-border);
  margin-bottom: 2.5rem;
}

.search-results-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.search-results-count {
  font-size: 0.9rem;
  color: var(--bl-muted);
}

.search-results-count strong {
  color: var(--bl-blue);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-muted   { color: var(--bl-muted); }
.text-blue    { color: var(--bl-blue); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bl-blue);
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================================
   RESPONSIVE — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --bl-max-w: 100%;
  }

  body {
    font-size: 17px;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* Header */
  .site-header .container {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .primary-navigation {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem;
    border-top: 1px solid var(--bl-border);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .primary-navigation.is-open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .header-cta {
    width: 100%;
    margin: 1rem 0 0;
  }

  .header-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
  }

  /* Posts Grid */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Single post */
  .post-featured-image img {
    height: 240px;
  }

  .post-hero .entry-title {
    font-size: 1.75rem;
  }

  .entry-content,
  article.single-article .entry-header {
    padding: 0 1rem;
  }

  /* Post nav */
  .post-navigation {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  /* Author bio */
  .author-bio {
    flex-direction: column;
    padding: 1.25rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  /* Related posts */
  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .related-posts {
    padding: 0 1rem;
  }

  /* CTA block */
  .cta-block {
    margin: 2rem 1rem;
  }

  .cta-block-title {
    font-size: 1.4rem;
  }

  /* Content with sidebar */
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Page header */
  .page-header {
    padding: 2.5rem 0;
  }

  .page-header h1 {
    font-size: 1.85rem;
  }

  /* Error 404 */
  .error-404 .error-number {
    font-size: 5rem;
  }

  /* Table responsive */
  .entry-content table,
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Pre-footer */
  .pre-footer-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding: 0 1rem;
  }

  .entry-content,
  .page-content {
    padding: 0 1rem;
  }

  .post-card-body {
    padding: 1.25rem;
  }

  .cta-block {
    padding: 2rem 1.25rem;
    margin: 2rem 0.5rem;
  }

  .pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .pre-footer-cta,
  .cta-block,
  .post-navigation,
  .related-posts,
  .sidebar,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    box-shadow: none !important;
  }
}
