/*
Theme Name: Wiseones
Theme URI: https://wiseones.substack.com
Author: Wiseones
Author URI: https://wiseones.substack.com
Description: A clean, Substack-inspired WordPress theme for Wiseones — financial guidance that makes sense. Features a centrally-aligned blog layout, coming soon mode, and brand owl characters.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wiseones
Tags: blog, one-column, custom-logo, editor-style, featured-images
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ===== RESET & BASE ===== */
:root {
  --navy: #1B2838;
  --navy-mid: #2A3F55;
  --blue-bright: #5BC0EB;
  --blue-light: #87D4F0;
  --blue-ice: #B8E5F7;
  --blue-pale: #E1F4FC;
  --blue-wash: #EEF8FD;
  --white: #FFFFFF;
  --brown: #8B6543;
  --orange-beak: #E88B3A;
  --text-primary: #1B2838;
  --text-secondary: #2A3F55;
  --text-muted: #6B7C8D;
  --border: #E5E7EB;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.header-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.header-brand span {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

/* ===== NAVIGATION ===== */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-navigation a {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.main-navigation a:hover {
  color: var(--text-primary);
}

.btn-subscribe {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-subscribe:hover {
  background: var(--navy-mid);
  color: var(--white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--navy);
}

/* ===== HERO ===== */
.site-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.site-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.site-hero .site-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== POSTS FEED ===== */
.posts-feed {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.post-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.post-card:last-child {
  border-bottom: none;
}

.post-meta {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.post-meta a {
  color: var(--blue-bright);
}

.post-meta a:hover {
  text-decoration: underline;
}

.post-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h2 a:hover {
  color: var(--navy-mid);
}

.post-excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.post-read-more {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-bright);
  text-decoration: none;
}

.post-read-more:hover {
  text-decoration: underline;
}

/* Featured image on post cards */
.post-card-image {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: auto;
}

/* ===== SINGLE POST / PAGE ===== */
.single-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.single-header {
  margin-bottom: 2rem;
}

.single-header h1 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.single-meta {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.single-meta a {
  color: var(--blue-bright);
}

.single-featured-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

/* Post body content */
.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
  color: var(--text-primary);
}

.entry-content a {
  color: var(--blue-bright);
  text-decoration: underline;
}

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

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 3px solid var(--blue-bright);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.entry-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.entry-content figure {
  margin: 2rem 0;
}

.entry-content figcaption {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.entry-content pre {
  background: var(--blue-wash);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.entry-content code {
  background: var(--blue-wash);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

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

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

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

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

.entry-content th {
  background: var(--blue-wash);
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Post navigation */
.post-navigation {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-navigation a {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-bright);
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* ===== PAGINATION ===== */
.pagination {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: 'Sora', sans-serif;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  margin: 0 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  background: var(--blue-wash);
  color: var(--text-primary);
}

.pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
}

/* ===== COMMENTS ===== */
.comments-area {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
}

.comment-body {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.comment-meta .fn {
  font-weight: 600;
  color: var(--text-primary);
}

.comment-content {
  font-size: 1rem;
  line-height: 1.65;
}

.comment-respond {
  margin-top: 2rem;
}

.comment-respond label {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.3rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
}

.comment-respond .submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-respond .submit:hover {
  background: var(--navy-mid);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.site-footer p {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--blue-bright);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== COMING SOON PAGE ===== */
.coming-soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.coming-soon::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-wash) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.coming-soon::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cs-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  padding: 2rem;
}

.cs-owl {
  width: 100px;
  height: auto;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
  border-radius: 18px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cs-brand {
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.cs-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.cs-badge {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  background: var(--blue-wash);
  border: 1px solid var(--blue-ice);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.cs-divider {
  width: 40px;
  height: 3px;
  background: var(--blue-bright);
  border-radius: 2px;
  margin: 0 auto 2rem;
}

.cs-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cs-substack-link {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.cs-substack-link a {
  color: var(--blue-bright);
  font-weight: 600;
}

.cs-substack-link a:hover {
  text-decoration: underline;
}

.cs-footer {
  position: absolute;
  bottom: 2rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  z-index: 1;
}

/* ===== SEARCH RESULTS ===== */
.search-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.search-header h1 {
  font-size: 1.4rem;
}

/* ===== 404 ===== */
.error-404 {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.error-404 h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.error-404 .btn-home {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.error-404 .btn-home:hover {
  background: var(--navy-mid);
}

/* ===== WIDGETS / SIDEBAR (if needed) ===== */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.8rem;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .site-hero h1 {
    font-size: 1.4rem;
  }

  .post-card h2 {
    font-size: 1.2rem;
  }

  .single-header h1 {
    font-size: 1.6rem;
  }

  .cs-brand {
    font-size: 1.8rem;
  }

  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== WORDPRESS CORE STYLES ===== */
.alignnone {
  margin: 1rem 0;
}

.aligncenter {
  display: block;
  margin: 1rem auto;
}

.alignright {
  float: right;
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 0.5rem 0;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.sticky .post-card {
  border-left: 3px solid var(--blue-bright);
  padding-left: 1rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Gallery */
.wp-block-gallery {
  margin-bottom: 1.5rem;
}

/* WordPress admin bar fix */
body.admin-bar .site-header {
  top: 32px;
}

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

/* ===== NEWSLETTER SIGNUP ===== */
.newsletter-signup {
  text-align: center;
}

.newsletter-signup .newsletter-owl {
  margin-bottom: 1rem;
}

.newsletter-signup .newsletter-owl img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: inline-block;
}

.newsletter-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.newsletter-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto 0.8rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--blue-bright);
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 0 8px 8px 0;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--navy-mid);
}

.newsletter-privacy {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Card style */
.newsletter-card {
  background: var(--blue-wash);
  border: 1px solid var(--blue-ice);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
}

/* Banner style */
.newsletter-banner {
  padding: 2.5rem 1.5rem;
}

/* After-post newsletter */
.newsletter-after-post {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.after-post-widgets {
  margin-top: 1.5rem;
}

/* ===== FOOTER NEWSLETTER SECTION ===== */
.footer-newsletter {
  border-top: 1px solid var(--border);
  background: var(--blue-wash);
}

.footer-newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-newsletter .newsletter-banner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-newsletter .newsletter-form input[type="email"] {
  background: var(--white);
}

/* ===== FOOTER WIDGETS ===== */
.footer-widgets {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-widgets-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col .widget {
  margin-bottom: 1.5rem;
}

.footer-col .widget-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-bright);
  display: inline-block;
}

.footer-col .widget ul {
  list-style: none;
}

.footer-col .widget ul li {
  margin-bottom: 0.4rem;
}

.footer-col .widget ul li a {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-col .widget p,
.footer-col .textwidget {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== FOOTER NAV ===== */
.site-footer-inner {
  max-width: 680px;
  margin: 0 auto;
}

.footer-navigation {
  margin-bottom: 1rem;
}

.footer-navigation .footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-navigation .footer-menu li a {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-navigation .footer-menu li a:hover {
  color: var(--blue-bright);
}

/* ===== SIDEBAR LAYOUT ===== */
.layout-with-sidebar {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.layout-with-sidebar .single-content {
  padding: 2.5rem 0;
  max-width: none;
  margin: 0;
}

.sidebar {
  padding-top: 2.5rem;
  position: sticky;
  top: 80px;
}

.sidebar .widget {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar .widget:last-child {
  border-bottom: none;
}

.sidebar .widget-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget ul li {
  margin-bottom: 0.5rem;
}

.sidebar .widget ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.sidebar .widget p,
.sidebar .textwidget {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Sidebar newsletter widget compact style */
.sidebar .newsletter-signup {
  text-align: left;
}

.sidebar .newsletter-form {
  flex-direction: column;
}

.sidebar .newsletter-form input[type="email"] {
  border-right: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.sidebar .newsletter-form button {
  border-radius: 8px;
  width: 100%;
}

.sidebar .newsletter-desc {
  margin-left: 0;
  margin-right: 0;
}

/* ===== RESPONSIVE — WIDGETS ===== */
@media (max-width: 768px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    position: static;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
  }

  .footer-widgets-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter-form input[type="email"] {
    border-right: 1.5px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }

  .newsletter-form button {
    border-radius: 8px;
  }

  .footer-navigation .footer-menu {
    gap: 1rem;
  }
}

/* ===== SUBSTACK EMBED SECTIONS ===== */
.subscribe-section {
  border-top: 1px solid var(--border);
  background: var(--blue-wash);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.subscribe-inner {
  max-width: 520px;
  margin: 0 auto;
}

.subscribe-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.subscribe-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.subscribe-embed {
  display: flex;
  justify-content: center;
}

.subscribe-embed iframe {
  max-width: 100%;
  border-radius: 6px;
}

/* Coming soon page embed */
.cs-substack-embed {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.cs-substack-embed iframe {
  max-width: 100%;
  border-radius: 6px;
}

@media (max-width: 520px) {
  .subscribe-embed iframe,
  .cs-substack-embed iframe {
    width: 100%;
    min-width: 0;
  }
}


/* ═══════════════════════════════════════════════════════
   WISEONES v2 — WIDE LAYOUT + SIDEBAR + RESPONSIVE NAV
   Append to bottom of style.css (after restoring .bak)
   ═══════════════════════════════════════════════════════ */

/* ─── WIDER HEADER ─── */
.header-inner {
  max-width: 1100px;
  padding: 0.8rem 2rem;
  gap: 1.5rem;
}

/* ─── NAV — COMFORTABLE SPACING ─── */
.main-navigation {
  gap: 0.5rem;
}

.main-navigation ul {
  gap: 0.25rem;
}

.main-navigation ul li {
  white-space: nowrap;
}

.main-navigation ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  color: var(--text-primary);
  background: var(--blue-wash);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.25rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-subscribe:hover {
  transform: translateY(-1px);
}

/* ─── TABLET NAV (960px) ─── */
@media (max-width: 960px) {
  .header-inner {
    padding: 0.7rem 1rem;
  }
  .main-navigation ul li a {
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }
  .btn-subscribe {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ─── MOBILE NAV (768px) — hamburger ─── */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .main-navigation.toggled ul {
    display: flex;
  }
  .main-navigation ul li {
    white-space: normal;
    width: 100%;
  }
  .main-navigation ul li a {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .main-navigation ul li:last-child a {
    border-bottom: none;
  }
  .btn-subscribe {
    display: block;
    text-align: center;
    margin: 0.75rem 0 0 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  .site-header {
    position: sticky;
    top: 0;
  }
}


/* ═══════════════════════════════════════════════════════
   WIDE SIDEBAR LAYOUT — UNIVERSAL
   ═══════════════════════════════════════════════════════ */

.layout-with-sidebar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.layout-with-sidebar .main-content {
  min-width: 0; /* prevent grid blowout from iframes/images */
  padding: 2rem 0;
}

/* Override old .single-content max-width when inside sidebar layout */
.layout-with-sidebar .single-content {
  max-width: none;
  margin: 0;
  padding: 2rem 0;
}

/* Posts feed inside sidebar layout */
.layout-with-sidebar .posts-feed {
  max-width: none;
  padding: 0;
}

/* Hero inside sidebar layout */
.layout-with-sidebar .site-hero {
  max-width: none;
  padding: 2.5rem 0 2rem;
  text-align: left;
}

/* Archive header */
.layout-with-sidebar .archive-header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.layout-with-sidebar .archive-header h1 {
  font-size: 1.6rem;
}

.archive-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.4rem;
}

/* Post navigation inside sidebar layout */
.layout-with-sidebar .post-navigation {
  max-width: none;
  padding: 2rem 0;
}

/* Comments inside sidebar layout */
.layout-with-sidebar .comments-area {
  max-width: none;
  padding: 2rem 0;
}

/* Entry content — comfortable reading width */
.layout-with-sidebar .entry-content {
  max-width: 720px;
}

/* ─── SIDEBAR ─── */
.sidebar {
  padding-top: 2rem;
  position: sticky;
  top: 80px;
}

.sidebar .widget {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--blue-wash);
  border-radius: 10px;
  border: 1px solid var(--blue-pale, #E1F4FC);
}

.sidebar .widget-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-bright);
  display: inline-block;
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget ul li {
  margin-bottom: 0.5rem;
}

.sidebar .widget ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.sidebar .widget p,
.sidebar .textwidget {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Sidebar newsletter widget */
.sidebar .newsletter-signup {
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.sidebar .newsletter-title {
  font-size: 1.05rem;
}

.sidebar .newsletter-form {
  flex-direction: column;
  max-width: 100%;
}

.sidebar .newsletter-form input[type="email"] {
  border-right: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.sidebar .newsletter-form button {
  border-radius: 8px;
  width: 100%;
}

.sidebar .newsletter-desc {
  margin-left: 0;
  margin-right: 0;
}

/* ─── SIDEBAR RESPONSIVE ─── */
@media (max-width: 768px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem;
  }

  .sidebar {
    position: static;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
  }

  .layout-with-sidebar .site-hero {
    text-align: center;
  }

  .layout-with-sidebar .entry-content {
    max-width: none;
  }
}


/* ═══════════════════════════════════════════════════════
   CENTRED SUBSTACK CTA — FOOTER
   ═══════════════════════════════════════════════════════ */

.subscribe-section {
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
  border-top: none;
}

.subscribe-inner {
  max-width: 560px;
  margin: 0 auto;
}

.subscribe-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 8px;
}

.subscribe-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6) !important;
  margin-bottom: 20px;
  line-height: 1.5;
}

.subscribe-embed {
  display: flex;
  justify-content: center;
}

.subscribe-embed iframe {
  max-width: 480px;
  width: 100%;
  border: none !important;
  border-radius: 10px;
  background: transparent;
}

/* ─── DARK FOOTER ─── */
.site-footer {
  background: #0F1C2A;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  line-height: 1.7;
  border-top: none;
}

.site-footer p {
  color: rgba(255,255,255,0.4);
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--blue-bright);
  text-decoration: none;
}

.site-footer-disclaimer {
  max-width: 700px;
  margin: 8px auto 0;
  font-size: 0.68rem;
  opacity: 0.7;
}

/* ─── ADMIN BAR FIX FOR STICKY SIDEBAR ─── */
body.admin-bar .sidebar {
  top: 112px;
}

@media (max-width: 782px) {
  body.admin-bar .sidebar {
    top: auto;
  }
}

/* ═══════════════════════════════════════════════════════
   WISEONES v3 — WIDE LAYOUT, DROPDOWNS, SIDEBAR,
   FULL-WIDTH TEMPLATE, CENTRED FOOTER
   Append to bottom of style.css (after restoring .bak)
   ═══════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────
   1. WIDER HEADER + NAV WITH DROPDOWNS
   ───────────────────────────────────────────────────── */

.header-inner {
  max-width: 1200px;
  padding: 0.75rem 2rem;
  gap: 1.5rem;
}

/* Nav items — comfortable spacing */
.main-navigation {
  gap: 0.35rem;
}

.main-navigation ul {
  gap: 0;
}

.main-navigation ul li {
  white-space: nowrap;
  position: relative;
}

.main-navigation ul li a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  color: var(--text-primary);
  background: var(--blue-wash);
}

/* Subscribe button */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-subscribe:hover {
  transform: translateY(-1px);
}

/* ─── DROPDOWN SUB-MENUS (DESKTOP) ─── */
.main-navigation .menu-item-has-children {
  position: relative;
}

.main-navigation .menu-item-has-children > a {
  padding-right: 1.4rem;
}

/* Chevron indicator on parent items */
.main-navigation .menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-muted);
  transition: transform 0.2s;
}

/* Dropdown toggle button (for mobile — hidden on desktop) */
.dropdown-toggle {
  display: none;
}

/* Sub-menu styling */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 200;
  list-style: none;
  flex-direction: column;
  gap: 0;
}

.main-navigation .sub-menu li {
  white-space: normal;
  width: 100%;
}

.main-navigation .sub-menu li a {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  border-radius: 0;
  color: var(--text-secondary);
}

.main-navigation .sub-menu li a:hover {
  background: var(--blue-wash);
  color: var(--text-primary);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
  .main-navigation .menu-item-has-children:hover > .sub-menu {
    display: flex;
  }

  .main-navigation .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
}


/* ─────────────────────────────────────────────────────
   2. TABLET NAV (960px)
   ───────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .header-inner {
    padding: 0.7rem 1.25rem;
  }
  .main-navigation ul li a {
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
  }
  .main-navigation .menu-item-has-children > a {
    padding-right: 1.1rem;
  }
  .btn-subscribe {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }
}


/* ─────────────────────────────────────────────────────
   3. MOBILE NAV (768px) — HAMBURGER + DROPDOWNS
   ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation ul li {
    white-space: normal;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .main-navigation ul li:last-child {
    border-bottom: none;
  }

  .main-navigation ul li a {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 0;
  }

  .main-navigation .menu-item-has-children > a::after {
    display: none;
  }

  /* Show dropdown toggle button on mobile */
  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0.75rem;
    top: 0.55rem;
    width: 32px;
    height: 32px;
    background: var(--blue-wash);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.2s, transform 0.2s;
  }

  .dropdown-toggle:hover {
    background: var(--blue-pale);
  }

  .sub-menu-open > .dropdown-toggle {
    background: var(--blue-pale);
  }

  .sub-menu-open > .dropdown-toggle svg {
    transform: rotate(180deg);
  }

  /* Mobile sub-menus — slide down */
  .main-navigation .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--blue-wash);
    padding: 0;
    min-width: 0;
  }

  .main-navigation .sub-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .main-navigation .sub-menu li:last-child {
    border-bottom: none;
  }

  .main-navigation .sub-menu li a {
    padding: 0.7rem 1.5rem 0.7rem 2.5rem;
    font-size: 0.88rem;
  }

  /* Show/hide sub-menu on mobile */
  .main-navigation .sub-menu {
    display: none;
  }

  .main-navigation .sub-menu-open > .sub-menu {
    display: flex;
  }

  /* Subscribe button in mobile menu */
  .btn-subscribe {
    display: block;
    text-align: center;
    margin: 0.75rem 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }
}


/* ─────────────────────────────────────────────────────
   4. SIDEBAR LAYOUT — FOR REGULAR PAGES & POSTS
   ───────────────────────────────────────────────────── */

.layout-with-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.layout-with-sidebar .main-content {
  min-width: 0;
  padding: 2rem 0;
}

.layout-with-sidebar .single-content {
  max-width: none;
  margin: 0;
  padding: 2rem 0;
}

.layout-with-sidebar .posts-feed {
  max-width: none;
  padding: 0;
}

.layout-with-sidebar .site-hero {
  max-width: none;
  padding: 2.5rem 0 2rem;
  text-align: left;
}

.layout-with-sidebar .archive-header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

.archive-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.4rem;
}

.layout-with-sidebar .post-navigation {
  max-width: none;
  padding: 2rem 0;
}

.layout-with-sidebar .comments-area {
  max-width: none;
  padding: 2rem 0;
}

.layout-with-sidebar .entry-content {
  max-width: 740px;
}

/* ─── SIDEBAR WIDGETS ─── */
.sidebar {
  padding-top: 2rem;
  position: sticky;
  top: 80px;
}

.sidebar .widget {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--blue-wash);
  border-radius: 10px;
  border: 1px solid var(--blue-pale, #E1F4FC);
}

.sidebar .widget-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-bright);
  display: inline-block;
}

.sidebar .widget ul { list-style: none; }
.sidebar .widget ul li { margin-bottom: 0.5rem; }
.sidebar .widget ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar .widget ul li a:hover { color: var(--blue-bright); }

.sidebar .widget p,
.sidebar .textwidget {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Sidebar newsletter compact */
.sidebar .newsletter-signup {
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.sidebar .newsletter-title { font-size: 1.05rem; }
.sidebar .newsletter-form {
  flex-direction: column;
  max-width: 100%;
}
.sidebar .newsletter-form input[type="email"] {
  border-right: 1.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.sidebar .newsletter-form button {
  border-radius: 8px;
  width: 100%;
}
.sidebar .newsletter-desc {
  margin-left: 0;
  margin-right: 0;
}

/* Sidebar responsive */
@media (max-width: 768px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1rem;
  }
  .sidebar {
    position: static;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
  }
  .layout-with-sidebar .site-hero {
    text-align: center;
  }
  .layout-with-sidebar .entry-content {
    max-width: none;
  }
}


/* ─────────────────────────────────────────────────────
   5. FULL-WIDTH LAYOUT — FOR CALCULATORS & TOOLS
   ───────────────────────────────────────────────────── */

.full-width-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

.full-width-content .single-header h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.full-width-content .entry-content {
  max-width: none;
}

/* Let iframes breathe inside full-width pages */
.full-width-content .entry-content iframe {
  width: 100%;
  min-height: 800px;
  border: none;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .full-width-content {
    padding: 1rem 1rem 2rem;
  }
  .full-width-content .entry-content iframe {
    min-height: 600px;
  }
}


/* ─────────────────────────────────────────────────────
   6. CENTRED SUBSTACK CTA — FOOTER
   ───────────────────────────────────────────────────── */

.subscribe-section {
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
  border-top: none;
}

.subscribe-inner {
  max-width: 560px;
  margin: 0 auto;
}

.subscribe-heading {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 8px;
}

.subscribe-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6) !important;
  margin-bottom: 20px;
  line-height: 1.5;
}

.subscribe-embed {
  display: flex;
  justify-content: center;
}

.subscribe-embed iframe {
  max-width: 480px;
  width: 100%;
  border: none !important;
  border-radius: 10px;
  background: transparent;
}


/* ─────────────────────────────────────────────────────
   7. DARK FOOTER
   ───────────────────────────────────────────────────── */

.site-footer {
  background: #0F1C2A;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  line-height: 1.7;
  border-top: none;
}

.site-footer p {
  color: rgba(255,255,255,0.4);
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--blue-bright);
  text-decoration: none;
}

.site-footer-disclaimer {
  max-width: 700px;
  margin: 8px auto 0;
  font-size: 0.68rem;
  opacity: 0.7;
}


/* ─────────────────────────────────────────────────────
   8. ADMIN BAR FIXES
   ───────────────────────────────────────────────────── */

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

@media (max-width: 782px) {
  body.admin-bar .sidebar {
    top: auto;
  }
}

/* ─── HEADER PADDING FIX ─── */
.header-inner {
  max-width: 1200px;
  padding: 0.75rem 2.5rem;
}

/* ─── FULL WIDTH CONTENT — no title, proper spacing ─── */
.full-width-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2.5rem 3rem;
}

.full-width-content .entry-content {
  max-width: none;
}

.full-width-content .entry-content iframe {
  width: 100%;
  min-height: 800px;
  border: none;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.7rem 1.25rem;
  }
  .full-width-content {
    padding: 0.5rem 1rem 2rem;
  }
  .full-width-content .entry-content iframe {
    min-height: 600px;
  }
}

/* Footer privacy & legal links */
.site-footer-links {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.site-footer-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-footer-links a:hover {
    opacity: 0.8;
}


/* ═══════════════════════════════════════════════════════
   SECTION LANDING PAGES
   ═══════════════════════════════════════════════════════ */

/* Hero */
.section-hero {
  background: linear-gradient(135deg, #0f4c75, #3282b8);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
}
.section-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.section-hero .section-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: var(--blue-bright);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .separator {
  margin: 0 0.4rem;
  color: var(--border);
}

/* Card Grid */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.section-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.section-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.section-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.section-card .card-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-bright);
}

/* Sub-section headers in landing pages */
.subsection-header {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-bright);
  display: inline-block;
}

/* Cross-links at bottom of pages */
.cross-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.cross-links h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cross-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.cross-link-card {
  background: var(--blue-wash);
  border: 1px solid var(--blue-pale);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  display: block;
}
.cross-link-card:hover {
  background: var(--blue-pale);
}
.cross-link-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.cross-link-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Section sidebar navigation */
.section-nav-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-nav-widget ul li {
  margin-bottom: 0.3rem;
}
.section-nav-widget ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  display: block;
  transition: background 0.2s, color 0.2s;
}
.section-nav-widget ul li a:hover,
.section-nav-widget ul li.current a {
  background: var(--blue-wash);
  color: var(--blue-bright);
}
.section-nav-widget ul ul {
  padding-left: 1rem;
}
.section-nav-widget .nav-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0.75rem 0 0.3rem 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   WIKI PAGE
   ═══════════════════════════════════════════════════════ */

.wiki-search {
  margin-bottom: 1.5rem;
}
.wiki-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.wiki-search input:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(91, 192, 235, 0.15);
}
.wiki-search input::placeholder {
  color: var(--text-muted);
}

.wiki-letter-group {
  margin-bottom: 2rem;
}
.wiki-letter-group h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--blue-bright);
  display: inline-block;
  margin-bottom: 1rem;
}

.wiki-term {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--blue-wash);
  border-radius: 8px;
  border: 1px solid var(--blue-pale);
}
.wiki-term h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.wiki-term p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.wiki-term a {
  color: var(--blue-bright);
  text-decoration: none;
}
.wiki-term a:hover {
  text-decoration: underline;
}
.wiki-term.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .section-hero {
    padding: 2rem 1rem;
  }
  .section-hero h1 {
    font-size: 1.5rem;
  }
  .section-cards {
    grid-template-columns: 1fr;
  }
  .cross-links-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== SECTION KEY POSTS WIDGET ===== */
.section-key-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-key-posts li {
  margin-bottom: 0.6rem;
}
.section-key-posts li a {
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7b8d);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.section-key-posts li a:hover {
  color: var(--blue-bright, #5BC0EB);
}
.section-key-posts li.current a {
  color: var(--navy, #1B2838);
  font-weight: 600;
}

/* ===== RELATED TOOLS WIDGET ===== */
.related-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-tools-list li {
  margin-bottom: 0.5rem;
}
.related-tools-list li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--blue-bright, #5BC0EB);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.related-tools-list li a:hover {
  background: rgba(91, 192, 235, 0.08);
}

/* ===== ARTICLE CARDS (thumbnail + body) ===== */
.article-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.article-thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.article-thumb:hover img {
  transform: scale(1.05);
}

.article-body {
  flex: 1;
  min-width: 0;
}

.article-body h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.article-body .post-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

@media (max-width: 500px) {
  .article-card {
    flex-direction: column;
  }
  .article-thumb {
    flex: none;
    width: 100%;
    height: 160px;
  }
}

/* ===== NEWS STORY SUMMARIES ===== */
.news-card {
  padding: 1.5rem 0;
}

.news-stories {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.8rem;
}

.news-stories li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.news-stories li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--blue-bright, #3282b8);
  font-weight: 700;
}

/* ===== HIERARCHICAL SECTION TREE NAV ===== */
.section-tree ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-tree > ul {
  margin-top: 0.4rem;
}

.section-tree ul ul {
  padding-left: 0.8rem;
  margin-top: 0.15rem;
  border-left: 2px solid var(--border, #dee2e6);
}

.section-tree li {
  margin-bottom: 0.2rem;
}

.section-tree li a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary, #6b7b8d);
  text-decoration: none;
  padding: 0.15rem 0;
  line-height: 1.35;
  transition: color 0.15s;
}

.section-tree li a:hover {
  color: var(--blue-bright, #3282b8);
}

.section-tree li.current > a {
  color: var(--navy, #1B2838);
  font-weight: 700;
}

.section-tree li.expanded > a {
  color: var(--navy-mid, #0f4c75);
  font-weight: 600;
}

/* ===== TOOLS PAGE CARD SPACING ===== */
.full-width-content .wp-block-columns {
  gap: 10px;
}

.full-width-content .wp-block-column {
  margin-bottom: 10px;
}

.full-width-content .wp-block-group {
  margin-bottom: 10px;
}

/* ===== KEY ARTICLES BLUE DOT ===== */
.section-key-posts li {
  position: relative;
  padding-left: 0.9rem;
}

.section-key-posts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-bright, #3282b8);
}
