/*
Theme Name: The Chaos Calendar
Theme URI: https://github.com/kelseyhopkins/chaoscalendar
Author: Antigravity
Author URI: https://deepmind.google/
Description: A modern, mobile-first WordPress theme designed for personal blogging, motherhood, entrepreneurship, and intentional living. Styled with a photography-driven "Chaos Grid" calendar layout, color-coded Command Center categories, and high-energy modern aesthetics.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chaos-calendar
Tags: one-column, two-columns, grid-layout, custom-menu, featured-images, flexible-header, theme-options, translation-ready, blog
*/

/* ==========================================================================
   1. Design System & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Great+Vibes&family=Permanent+Marker&family=Architects+Daughter&display=swap');

:root {
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-sharpie: 'Architects Daughter', var(--font-sans);
  --font-marker: 'Permanent Marker', var(--font-cursive);

  /* Theme Color Palette (Inspired by Google Calendar but refined & premium) */
  --color-recurring: hsl(217, 91%, 60%);      /* Google Blue - #4285F4 */
  --color-urgent: hsl(4, 90%, 58%);           /* Google Red - #EA4335 */
  --color-block: hsl(142, 72%, 29%);          /* Google Green - #34A853 */
  --color-ooo: hsl(38, 92%, 50%);             /* Google Amber - #FBBC05 */
  --color-all-posts: hsl(262, 70%, 60%);      /* Google Purple - #8E24AA */
  --color-notifications: hsl(24, 95%, 53%);   /* Google Orange - #FF5722 */
  --color-dark-layout: hsl(222, 12%, 20%);    /* Premium Dark Gray / Soft Charcoal */

  /* Light Theme Colors */
  --color-bg-base: hsl(210, 20%, 98%);
  --color-bg-card: hsl(0, 0%, 100%);
  --color-text-main: hsl(222, 47%, 11%);
  --color-text-muted: hsl(215, 16%, 47%);
  --color-text-light: hsl(210, 40%, 96%);
  
  /* Layout Borders & Lines */
  --color-border: hsl(220, 13%, 91%);
  --color-border-dark: hsl(222, 47%, 11%);
  
  /* Shadow Systems */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-premium: 0 20px 25px -5px rgb(15 23 42 / 0.05), 0 8px 10px -6px rgb(15 23 42 / 0.05);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Max Content Width */
  --max-width: 1240px;
}

/* ==========================================================================
   2. Reset & Core Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

#page {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   3. Global Layout Elements
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Announcement Mantra Bar */
.announcement-bar {
  background-color: var(--color-text-main);
  color: var(--color-bg-card);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 100;
  line-height: 1.4;
}

.announcement-bar .mantra-highlight {
  color: var(--color-ooo);
  font-style: italic;
  font-family: var(--font-serif);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.3rem;
  display: inline-block;
}

/* Base Category Badges */
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  width: fit-content;
  transition: transform var(--transition-fast);
}

.badge-category:hover {
  transform: translateY(-1px);
}

.badge-category.cat-repeat-appts {
  background-color: var(--color-recurring);
}

.badge-category.cat-fire-drills {
  background-color: var(--color-urgent);
  animation: pulse-red 2s infinite;
}

.badge-category.cat-focused-blocks {
  background-color: var(--color-block);
}

.badge-category.cat-out-of-office {
  background-color: var(--color-ooo);
  color: hsl(222, 47%, 11%);
}

.badge-category.cat-notifications {
  background-color: var(--color-notifications);
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Sharpie Category (Dry-erase Board Style) */
.sharpie-category {
  display: inline-block;
  margin-bottom: 0.6rem;
  transform: rotate(-1.5deg);
  width: fit-content;
}

.sharpie-category a {
  display: inline-block;
  font-family: var(--font-sharpie) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.2rem 0.55rem !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--color-border-dark) !important;
  border-radius: 3px !important;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.06) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
  line-height: 1.2 !important;
}

.sharpie-category a:hover {
  transform: scale(1.05) rotate(1deg) !important;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Category Specific Sharpie Colors (mimics dry-erase marker colors) */
.card-repeat-appts .sharpie-category a,
.post-header .cat-repeat-appts a {
  color: var(--color-recurring) !important;
  border-color: var(--color-recurring) !important;
}
.card-fire-drills .sharpie-category a,
.post-header .cat-fire-drills a {
  color: var(--color-urgent) !important;
  border-color: var(--color-urgent) !important;
}
.card-focused-blocks .sharpie-category a,
.post-header .cat-focused-blocks a {
  color: var(--color-block) !important;
  border-color: var(--color-block) !important;
}
.card-out-of-office .sharpie-category a,
.post-header .cat-out-of-office a {
  color: var(--color-ooo) !important;
  border-color: var(--color-ooo) !important;
}
.card-notifications .sharpie-category a,
.post-header .cat-notifications a {
  color: var(--color-notifications) !important;
  border-color: var(--color-notifications) !important;
}

/* Single Post header sharpie category adjustment */
.post-header .sharpie-category {
  transform: rotate(-1deg);
  margin-bottom: 0.8rem;
}

/* Site Header */
.site-header {
  background-color: var(--color-dark-layout);
  border-bottom: 1.5px solid var(--color-border-dark);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: background-color var(--transition-normal);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo-link {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-sans) !important;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em !important;
  color: white;
  line-height: 1.1;
  text-transform: uppercase !important;
}

.logo-subtitle {
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--color-text-light);
  font-weight: 600;
  margin-top: 0.1rem;
}

/* Nav Menu (Desktop) */
.desktop-nav {
  display: none;
}

.desktop-nav .menu,
.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav a {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em !important;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  padding: 0.5rem 0;
  display: block;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width var(--transition-normal);
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item a,
.desktop-nav .current_page_item a {
  color: white;
}

.desktop-nav a:hover::after,
.desktop-nav .current-menu-item a::after,
.desktop-nav .current_page_item a::after {
  width: 100%;
}

/* Color-coded top navigation menu items permanently */
.desktop-nav a.nav-link-repeat-appts,
.desktop-nav a[href*="repeat-appts"],
.desktop-nav a[href*="repeat-appointments"],
.desktop-nav a[href*="recurring-events"],
.desktop-nav li[class*="repeat-appts"] a,
.desktop-nav li[class*="repeat-appointments"] a,
.desktop-nav li[class*="recurring-events"] a {
  color: var(--color-recurring) !important;
}
.desktop-nav a.nav-link-repeat-appts::after,
.desktop-nav a[href*="repeat-appts"]::after,
.desktop-nav a[href*="repeat-appointments"]::after,
.desktop-nav a[href*="recurring-events"]::after,
.desktop-nav li[class*="repeat-appts"] a::after,
.desktop-nav li[class*="repeat-appointments"] a::after,
.desktop-nav li[class*="recurring-events"] a::after {
  background-color: var(--color-recurring) !important;
}

.desktop-nav a.nav-link-fire-drills,
.desktop-nav a[href*="fire-drills"],
.desktop-nav a[href*="urgent-alerts"],
.desktop-nav li[class*="fire-drills"] a,
.desktop-nav li[class*="urgent-alerts"] a {
  color: var(--color-urgent) !important;
}
.desktop-nav a.nav-link-fire-drills::after,
.desktop-nav a[href*="fire-drills"]::after,
.desktop-nav a[href*="urgent-alerts"]::after,
.desktop-nav li[class*="fire-drills"] a::after,
.desktop-nav li[class*="urgent-alerts"] a::after {
  background-color: var(--color-urgent) !important;
}

.desktop-nav a.nav-link-focused-blocks,
.desktop-nav a[href*="focused-blocks"],
.desktop-nav a[href*="block-scheduling"],
.desktop-nav li[class*="focused-blocks"] a,
.desktop-nav li[class*="block-scheduling"] a {
  color: var(--color-block) !important;
}
.desktop-nav a.nav-link-focused-blocks::after,
.desktop-nav a[href*="focused-blocks"]::after,
.desktop-nav a[href*="block-scheduling"]::after,
.desktop-nav li[class*="focused-blocks"] a::after,
.desktop-nav li[class*="block-scheduling"] a::after {
  background-color: var(--color-block) !important;
}

.desktop-nav a.nav-link-out-of-office,
.desktop-nav a[href*="out-of-office"],
.desktop-nav a[href*="ooo"],
.desktop-nav li[class*="out-of-office"] a,
.desktop-nav li[class*="ooo"] a {
  color: var(--color-ooo) !important;
}
.desktop-nav a.nav-link-out-of-office::after,
.desktop-nav a[href*="out-of-office"]::after,
.desktop-nav a[href*="ooo"]::after,
.desktop-nav li[class*="out-of-office"] a::after,
.desktop-nav li[class*="ooo"] a::after {
  background-color: var(--color-ooo) !important;
}

.desktop-nav a.nav-link-notifications,
.desktop-nav a[href*="notifications"],
.desktop-nav a[href*="mom-lifesaving-products"],
.desktop-nav li[class*="notifications"] a,
.desktop-nav li[class*="mom-lifesaving-products"] a {
  color: var(--color-notifications) !important;
}
.desktop-nav a.nav-link-notifications::after,
.desktop-nav a[href*="notifications"]::after,
.desktop-nav a[href*="mom-lifesaving-products"]::after,
.desktop-nav li[class*="notifications"] a::after,
.desktop-nav li[class*="mom-lifesaving-products"] a::after {
  background-color: var(--color-notifications) !important;
}

.desktop-nav a.nav-link-all-posts,
.desktop-nav a[href*="view=list"],
.desktop-nav li[class*="all-posts"] a,
.desktop-nav li[class*="all-entries"] a {
  color: white !important;
}
.desktop-nav a.nav-link-all-posts::after,
.desktop-nav a[href*="view=list"]::after,
.desktop-nav li[class*="all-posts"] a::after,
.desktop-nav li[class*="all-entries"] a::after {
  background-color: white !important;
}

/* Color-coded top navigation for categories */

/* Custom Tooltip Styling for Top Navigation */
.desktop-nav a[data-tooltip] {
  position: relative;
}

.desktop-nav a[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: var(--color-text-main);
  color: white;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: none; /* Keep natural letter casing */
  letter-spacing: normal;
  white-space: normal;
  width: max-content;
  max-width: 250px;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast) ease, transform var(--transition-fast) ease;
}

/* Tooltip Hover Color Customizations */

.desktop-nav a.nav-link-repeat-appts[data-tooltip]::before,
.desktop-nav a[href*="repeat-appts"][data-tooltip]::before {
  background-color: var(--color-recurring) !important;
}

.desktop-nav a.nav-link-fire-drills[data-tooltip]::before,
.desktop-nav a[href*="fire-drills"][data-tooltip]::before {
  background-color: var(--color-urgent) !important;
}

.desktop-nav a.nav-link-focused-blocks[data-tooltip]::before,
.desktop-nav a[href*="focused-blocks"][data-tooltip]::before {
  background-color: var(--color-block) !important;
}

.desktop-nav a.nav-link-out-of-office[data-tooltip]::before,
.desktop-nav a[href*="out-of-office"][data-tooltip]::before {
  background-color: var(--color-ooo) !important;
}

.desktop-nav a.nav-link-notifications[data-tooltip]::before {
  background-color: var(--color-notifications) !important;
}

/* Show Tooltip on Hover */
.desktop-nav a[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.1rem;
  z-index: 101;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  transform-origin: left center;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 1px);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  padding: 5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  z-index: 100;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer .menu-menu-container,
.mobile-drawer .menu,
.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-drawer li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-drawer a {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-sans) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--color-text-main);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-drawer a:hover,
.mobile-drawer .current-menu-item a,
.mobile-drawer .current_page_item a {
  color: var(--color-recurring);
  border-bottom-color: var(--color-recurring);
}

/* Automatically show category colors on mobile navigation links */
/* 1. Repeat Appts (Blue) */
.mobile-drawer a.nav-link-repeat-appts,
.mobile-drawer a[href*="repeat-appts"],
.mobile-drawer a[href*="repeat-appointments"],
.mobile-drawer a[href*="recurring-events"],
.mobile-drawer li[class*="repeat-appts"] a,
.mobile-drawer li[class*="repeat-appointments"] a,
.mobile-drawer li[class*="recurring-events"] a,
.mobile-navigation a.nav-link-repeat-appts,
.mobile-navigation a[href*="repeat-appts"],
.mobile-navigation a[href*="repeat-appointments"],
.mobile-navigation a[href*="recurring-events"],
.mobile-navigation li[class*="repeat-appts"] a,
.mobile-navigation li[class*="repeat-appointments"] a,
.mobile-navigation li[class*="recurring-events"] a {
  color: var(--color-recurring) !important;
  border-bottom-color: var(--color-recurring) !important;
}

/* 2. Fire Drills (Red) */
.mobile-drawer a.nav-link-fire-drills,
.mobile-drawer a[href*="fire-drills"],
.mobile-drawer a[href*="urgent-alerts"],
.mobile-drawer li[class*="fire-drills"] a,
.mobile-drawer li[class*="urgent-alerts"] a,
.mobile-navigation a.nav-link-fire-drills,
.mobile-navigation a[href*="fire-drills"],
.mobile-navigation a[href*="urgent-alerts"],
.mobile-navigation li[class*="fire-drills"] a,
.mobile-navigation li[class*="urgent-alerts"] a {
  color: var(--color-urgent) !important;
  border-bottom-color: var(--color-urgent) !important;
}

/* 3. Focused Blocks (Green) */
.mobile-drawer a.nav-link-focused-blocks,
.mobile-drawer a[href*="focused-blocks"],
.mobile-drawer a[href*="block-scheduling"],
.mobile-drawer li[class*="focused-blocks"] a,
.mobile-drawer li[class*="block-scheduling"] a,
.mobile-navigation a.nav-link-focused-blocks,
.mobile-navigation a[href*="focused-blocks"],
.mobile-navigation a[href*="block-scheduling"],
.mobile-navigation li[class*="focused-blocks"] a,
.mobile-navigation li[class*="block-scheduling"] a {
  color: var(--color-block) !important;
  border-bottom-color: var(--color-block) !important;
}

/* 4. Out of Office (Amber) */
.mobile-drawer a.nav-link-out-of-office,
.mobile-drawer a[href*="out-of-office"],
.mobile-drawer a[href*="ooo"],
.mobile-drawer li[class*="out-of-office"] a,
.mobile-drawer li[class*="ooo"] a,
.mobile-navigation a.nav-link-out-of-office,
.mobile-navigation a[href*="out-of-office"],
.mobile-navigation a[href*="ooo"],
.mobile-navigation li[class*="out-of-office"] a,
.mobile-navigation li[class*="ooo"] a {
  color: var(--color-ooo) !important;
  border-bottom-color: var(--color-ooo) !important;
}

/* 5. Notifications (Orange) */
.mobile-drawer a.nav-link-notifications,
.mobile-drawer a[href*="notifications"],
.mobile-drawer a[href*="mom-lifesaving-products"],
.mobile-drawer li[class*="notifications"] a,
.mobile-drawer li[class*="mom-lifesaving-products"] a,
.mobile-navigation a.nav-link-notifications,
.mobile-navigation a[href*="notifications"],
.mobile-navigation a[href*="mom-lifesaving-products"],
.mobile-navigation li[class*="notifications"] a,
.mobile-navigation li[class*="mom-lifesaving-products"] a {
  color: var(--color-notifications) !important;
  border-bottom-color: var(--color-notifications) !important;
}

/* 6. All Posts (Black) */
.mobile-drawer a.nav-link-all-posts,
.mobile-drawer a[href*="view=list"],
.mobile-drawer li[class*="all-posts"] a,
.mobile-navigation a.nav-link-all-posts,
.mobile-navigation a[href*="view=list"],
.mobile-navigation li[class*="all-posts"] a {
  color: var(--color-text-main) !important;
  border-bottom-color: var(--color-text-main) !important;
}

/* 7. Fallbacks (make sure all posts/uncategorized text stays black by default if not matching above) */
.mobile-drawer li[class*="all-entries"] a,
.mobile-navigation li[class*="all-entries"] a,
.mobile-drawer a[href*="view=list"] {
  color: var(--color-text-main) !important;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   4. Blog Layout & Homepage Template
   ========================================================================== */

/* Blog Intro Section */
.site-intro-section {
  margin-bottom: 2rem;
  width: 100%;
}

.intro-card {
  background-color: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.intro-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.intro-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.intro-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-main);
  opacity: 0.88;
  margin: 0;
}

/* Main Layout Grid (Content + Sidebar) */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.main-layout > * {
  min-width: 0;
}

/* Featured Hero Section */
.featured-hero {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--color-border);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-hero:hover .hero-image-wrap img {
  transform: scale(1.03);
}

/* Text fallback pattern for Hero */
.hero-image-wrap.no-image {
  background-image: linear-gradient(135deg, hsl(210, 20%, 96%) 25%, transparent 25%), 
                    linear-gradient(225deg, hsl(210, 20%, 96%) 25%, transparent 25%), 
                    linear-gradient(45deg, hsl(210, 20%, 96%) 25%, transparent 25%), 
                    linear-gradient(315deg, hsl(210, 20%, 96%) 25%, var(--color-bg-card) 25%);
  background-position: 20px 0, 20px 0, 0 0, 0 0;
  background-size: 40px 40px;
  background-repeat: repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap.no-image::after {
  content: 'The Chaos Calendar';
  font-family: var(--font-serif);
  font-size: 2.5rem;
  opacity: 0.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  transform: rotate(-10deg);
}

.hero-meta-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.hero-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}

.hero-date-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-date-block .date-bullet {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-recurring);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-title a:hover {
  color: var(--color-recurring);
}

.hero-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-text-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.read-more-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.featured-hero:hover .read-more-link::after {
  transform: translateX(4px);
}

/* Category Filter Navigation Bar */
.command-center-nav {
  margin-bottom: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.2rem 0 0.6rem 0;
  display: flex;
  gap: 0.8rem;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.command-center-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.filter-pill .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-text-main);
  transition: background-color var(--transition-fast);
}

.filter-pill:hover {
  border-color: var(--color-text-main);
  color: var(--color-text-main);
  transform: translateY(-1px);
}

.filter-pill.active {
  background-color: var(--color-text-main);
  color: white;
  border-color: var(--color-text-main);
}

.filter-pill.active .pill-dot {
  background-color: white;
}

/* Map category colors to dots and backgrounds in inactive state */
.filter-pill.cat-repeat-appts {
  border-color: var(--color-recurring);
  color: var(--color-recurring);
  background-color: hsl(217, 95%, 97%);
}
.filter-pill.cat-repeat-appts .pill-dot {
  background-color: var(--color-recurring);
}

.filter-pill.cat-fire-drills {
  border-color: var(--color-urgent);
  color: var(--color-urgent);
  background-color: hsl(4, 95%, 97%);
}
.filter-pill.cat-fire-drills .pill-dot {
  background-color: var(--color-urgent);
}

.filter-pill.cat-focused-blocks {
  border-color: var(--color-block);
  color: var(--color-block);
  background-color: hsl(142, 75%, 97%);
}
.filter-pill.cat-focused-blocks .pill-dot {
  background-color: var(--color-block);
}

.filter-pill.cat-out-of-office {
  border-color: var(--color-ooo);
  color: hsl(38, 92%, 25%);
  background-color: hsl(45, 95%, 95%);
}
.filter-pill.cat-out-of-office .pill-dot {
  background-color: var(--color-ooo);
}

.filter-pill.cat-notifications {
  border-color: var(--color-notifications);
  color: var(--color-notifications);
  background-color: hsl(24, 95%, 97%);
}
.filter-pill.cat-notifications .pill-dot {
  background-color: var(--color-notifications);
}

/* Map individual colors to active/hover pills */
.filter-pill.cat-repeat-appts:hover,
.filter-pill.cat-repeat-appts.active {
  border-color: var(--color-recurring);
  background-color: var(--color-recurring);
  color: white;
}
.filter-pill.cat-repeat-appts:hover .pill-dot,
.filter-pill.cat-repeat-appts.active .pill-dot {
  background-color: white;
}

.filter-pill.cat-fire-drills:hover,
.filter-pill.cat-fire-drills.active {
  border-color: var(--color-urgent);
  background-color: var(--color-urgent);
  color: white;
}
.filter-pill.cat-fire-drills:hover .pill-dot,
.filter-pill.cat-fire-drills.active .pill-dot {
  background-color: white;
}

.filter-pill.cat-focused-blocks:hover,
.filter-pill.cat-focused-blocks.active {
  border-color: var(--color-block);
  background-color: var(--color-block);
  color: white;
}
.filter-pill.cat-focused-blocks:hover .pill-dot,
.filter-pill.cat-focused-blocks.active .pill-dot {
  background-color: white;
}

.filter-pill.cat-out-of-office:hover,
.filter-pill.cat-out-of-office.active {
  border-color: var(--color-ooo);
  background-color: var(--color-ooo);
  color: var(--color-text-main);
}
.filter-pill.cat-out-of-office:hover .pill-dot,
.filter-pill.cat-out-of-office.active .pill-dot {
  background-color: var(--color-text-main);
}

.filter-pill.cat-notifications:hover,
.filter-pill.cat-notifications.active {
  border-color: var(--color-notifications);
  background-color: var(--color-notifications);
  color: white;
}
.filter-pill.cat-notifications:hover .pill-dot,
.filter-pill.cat-notifications.active .pill-dot {
  background-color: white;
}

/* ==========================================================================
   4. Weekly Planner Layout & Grid Styling
   ========================================================================== */

/* Planner Header Block */
.weekly-planner-header {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

@media (min-width: 768px) {
  .weekly-planner-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.planner-title-group {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.planner-title-serif {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.planner-title-sans {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-main);
  opacity: 0.85;
  line-height: 1;
  margin-left: 0.2rem;
}

/* Handwriting Lines on the right */
.planner-meta-lines {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 280px;
}

.planner-meta-line {
  display: flex;
  align-items: flex-end;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  gap: 0.5rem;
}

.meta-underline {
  flex-grow: 1;
  border-bottom: 1.5px solid var(--color-text-muted);
  padding-bottom: 2px;
  font-family: var(--font-cursive);
  font-size: 1.8rem;
  color: var(--color-recurring); /* Elegant blue handwritten font color */
  text-transform: none;
  font-weight: 400;
  line-height: 0.8;
  min-height: 1.8rem;
  display: flex;
  align-items: flex-end;
  padding-left: 0.5rem;
}

/* The Planner Grid Layout */
.weekly-planner-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Planner Column */
.planner-column {
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.planner-column .column-header {
  background-color: #f7f7f7;
  border: 1.5px solid var(--color-border);
  padding: 0.6rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--color-text-main);
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.planner-column .column-header .day-name-label {
  font-weight: 700;
  opacity: 0.9;
}

.planner-column.today .column-header {
  background-color: var(--color-text-main);
  border-color: var(--color-text-main);
  color: white;
}

.planner-column .column-content {
  border: 1.5px solid var(--color-border);
  margin-top: 5px; /* Vertical gap between day header and column body */
  padding: 1rem;
  min-height: 120px;
  background-color: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: background-color var(--transition-fast);
}

/* Empty State visual indicator */
.planner-column .column-content:empty::after {
  content: 'No entries';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: var(--color-text-muted);
  opacity: 0.35;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 500;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
}

/* Calendar Card Design (Post-It Note Aesthetic) */
.calendar-card {
  background-color: hsl(54, 95%, 92%) !important; /* Default soft yellow post-it background */
  border: none !important;
  border-radius: 1px !important; /* Sharp post-it corners */
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.05), 0 6px 12px rgba(0, 0, 0, 0.04) !important;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  padding: 1.2rem !important;
  border-bottom-right-radius: 18px 4px !important; /* Subtle folded bottom corner crease */
  background-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%) !important;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

/* Color Coding for Post-it Notes */
.calendar-card.card-repeat-appts {
  background-color: hsl(217, 95%, 92%) !important;
}
.calendar-card.card-fire-drills {
  background-color: hsl(4, 95%, 92%) !important;
  animation: pulse-red-postit 2.5s infinite;
}
.calendar-card.card-focused-blocks {
  background-color: hsl(142, 75%, 92%) !important;
}
.calendar-card.card-out-of-office {
  background-color: hsl(45, 95%, 89%) !important;
}

.calendar-card.card-notifications {
  background-color: hsl(24, 95%, 92%) !important;
}

@keyframes pulse-red-postit {
  0% { box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.05), 0 0 0 0px rgba(239, 68, 68, 0.15); }
  50% { box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.05), 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.05), 0 0 0 0px rgba(239, 68, 68, 0); }
}

.calendar-card:hover {
  transform: translateY(-5px) scale(1.03) rotate(0deg) !important;
  box-shadow: 4px 10px 18px rgba(0, 0, 0, 0.1) !important;
  z-index: 10;
}

/* Custom Calendar-like Header (Hidden on Post-it Notes) */
.card-calendar-header {
  display: none !important;
}

.calendar-card .card-image-wrap {
  aspect-ratio: 4/3 !important;
  border: 5px solid white !important; /* Polaroid border */
  border-bottom: 14px solid white !important; /* Thicker polaroid bottom */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
  transform: rotate(-1.5deg);
  margin: 0.2rem auto 0.6rem auto !important;
  overflow: hidden;
  width: 95%;
  background-color: white !important;
  border-radius: 0 !important;
}

.calendar-card:hover .card-image-wrap {
  transform: scale(1.02) rotate(0deg);
}

.calendar-card .card-image-wrap.no-image {
  display: none !important; /* Hide fallback pattern on post-it notes */
}

.calendar-card .card-body {
  padding: 0 !important;
  gap: 0.4rem !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.calendar-card .calendar-event-time {
  font-family: var(--font-sans);
  font-size: 0.68rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.75;
  color: var(--color-text-main);
  margin-bottom: 0.1rem;
}

.calendar-card .card-title {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--color-text-main) !important;
  margin-top: 0.1rem;
}

.calendar-card .card-title a:hover {
  text-decoration: underline;
}

/* Stretched Link to make the entire Post-it card clickable */
.calendar-card .card-title a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
}

/* Ensure other links remain clickable over the stretched link */
.calendar-card .badge-category,
.calendar-card .card-image-wrap a {
  position: relative;
  z-index: 10;
}

.calendar-card .card-excerpt {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  color: var(--color-text-muted) !important;
  opacity: 0.95;
  -webkit-line-clamp: 3 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.calendar-card .card-footer {
  border-top: none !important;
  padding: 0.4rem 0 0 0 !important;
  margin-top: auto;
  font-size: 0.72rem !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
}

.calendar-card .read-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: rgba(255, 255, 255, 0.45) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.04) !important;
  padding: 0.1rem 0.4rem !important;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   5. Sidebar & Customized Widgets
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.widget {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-sans) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-size: 1.15rem !important;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-border-dark);
}

/* Author Bio Widget: Meet the Team Grid Styles */
.widget-bio {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-member-card {
  background-color: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  padding: 1.2rem 1rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
}

.team-member-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.8rem;
  border: 2px solid var(--color-border);
  background-color: var(--color-border);
  flex-shrink: 0;
}

.team-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-name {
  font-family: var(--font-sans) !important;
  font-size: 1.1rem !important;
  font-weight: 700;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;
}

.team-member-title {
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--color-text-muted);
  letter-spacing: 0.04em !important;
  line-height: 1.1 !important;
  margin-bottom: 0.5rem;
}

.team-member-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Weekly Reel Column Styles */
.weekly-reel-box-content {
  padding: 1rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.weekly-reel-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 1.2rem;
}

.weekly-reel-slides {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.reel-item {
  display: none;
  width: 100%;
  max-width: 145px;
  flex-shrink: 0;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  margin: 0 auto;
}

.reel-item.active {
  display: block;
}

.reel-polaroid-frame {
  background-color: #ffffff;
  padding: 8px 8px 12px 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 1px;
}

.reel-image-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: #f7f7f7;
}

.reel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
  display: block;
}

.reel-caption {
  margin-top: 6px;
  font-family: var(--font-sharpie) !important;
  font-size: 0.85rem !important;
  color: var(--color-text-main);
  text-align: center;
  font-weight: 700;
  white-space: normal !important;
  width: 100%;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.reel-item:hover {
  transform: translateY(-4px) scale(1.05) rotate(0deg) !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
  z-index: 10;
}

.reel-item:hover img {
  transform: scale(1.08);
}

/* Navigation Arrows */
.reel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-sharpie), sans-serif;
  font-size: 1.2rem;
  color: var(--color-text-main);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 15;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.08);
  padding: 0;
  line-height: 1;
}

.reel-nav-btn:hover {
  background-color: var(--color-bg-card);
  border-color: var(--color-border-dark);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
}

.reel-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.reel-nav-btn.prev-btn {
  left: -4px;
}

.reel-nav-btn.next-btn {
  right: -4px;
}

/* Category Sidebar Calendar layers styling */
.widget-categories ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.widget-categories li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.widget-categories li a:hover {
  background-color: var(--color-bg-base);
}

.widget-categories li a::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.widget-categories li.cat-item-repeat-appts a::before { background-color: var(--color-recurring); }
.widget-categories li.cat-item-fire-drills a::before { background-color: var(--color-urgent); }
.widget-categories li.cat-item-focused-blocks a::before { background-color: var(--color-block); }
.widget-categories li.cat-item-out-of-office a::before { background-color: var(--color-ooo); }
.widget-categories li.cat-item-notifications a::before { background-color: var(--color-notifications); }

/* Newsletter Form Widget */
.widget-newsletter .widget-title {
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background-color: var(--color-bg-base);
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--color-text-main);
}

.newsletter-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-text-main);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color var(--transition-fast);
}

.newsletter-submit:hover {
  background-color: var(--color-recurring);
}

/* Globally hide search, recent comments widgets, block-based widgets, and comments area from all layouts */
.widget_search,
.widget_recent_comments,
.widget-search,
.widget-recent-comments,
#recentcomments,
.wp-block-search,
.wp-block-latest-comments,
.widget:not(.widget_search_custom):has(.wp-block-search),
.widget:not(.widget_search_custom):has(.search-form),
.widget:has(.wp-block-latest-comments),
.widget_block:not(.widget_search_custom):has(.wp-block-search),
.widget_block:not(.widget_search_custom):has(.search-form),
.widget_block:has(.wp-block-latest-comments) {
  display: none !important;
}

/* Sidebar Stack Container (Groups newsletter and search on homepage) */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Custom Homepage Search Widget Styling */
.widget_search_custom .search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.widget_search_custom label {
  flex-grow: 1;
  margin: 0;
}

.widget_search_custom .search-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background-color: var(--color-bg-base);
  transition: border-color var(--transition-fast);
}

.widget_search_custom .search-field:focus {
  border-color: var(--color-text-main);
  outline: none;
}

.widget_search_custom .search-submit {
  padding: 0.75rem 1.2rem;
  background-color: var(--color-text-main);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.widget_search_custom .search-submit:hover {
  background-color: var(--color-recurring);
}

/* Style Recent Posts widget title to use the default sans-serif font */
.widget_recent_entries .widget-title,
.widget_recent_entries .widgettitle,
.widget-recent-posts .widget-title {
  font-family: var(--font-sans) !important;
}

/* ==========================================================================
   6. Single Post & Page Templates
   ========================================================================== */
.post-header {
  padding-bottom: 0.6rem !important;
  border-bottom: 1px solid var(--color-border) !important;
  margin-bottom: 0.8rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-meta-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

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

.post-meta-item::after {
  content: '•';
  margin-left: 1rem;
}

.post-meta-item:last-child::after {
  display: none;
}

.post-title-single {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.single-post-image {
  margin-bottom: 0.8rem !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Article Copy Typography */
.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-main);
}

.article-content > *:first-child {
  margin-top: 0 !important;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.article-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content iframe,
.article-content embed,
.article-content video {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

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

.article-content p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.6rem;
  margin-top: 0.1rem;
  color: var(--color-text-main);
}

.article-content h2, 
.article-content h3 {
  font-family: var(--font-sans) !important;
  color: var(--color-text-main);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
  text-transform: uppercase !important;
}

.article-content h2 { font-size: 1.8rem !important; font-weight: 700 !important; }
.article-content h3 { font-size: 1.5rem !important; font-weight: 700 !important; }

.article-content blockquote {
  border-left: 4px solid var(--color-text-main);
  padding: 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

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

/* Survival Strategy Custom Callout Box in Posts */
.survival-callout {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.survival-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--color-block);
}

.survival-callout-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-block);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.survival-callout-content {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
}

/* Post Navigation (Prev / Next Cards) */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-nav-card {
  padding: 1.2rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.post-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-text-main);
}

.post-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.post-nav-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.3;
}

/* ==========================================================================
   7. Comments Template Styling
   ========================================================================== */
.comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.comment-body {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.comment-author-name {
  font-weight: 700;
  color: var(--color-text-main);
}

.comment-metadata {
  color: var(--color-text-muted);
}

.comment-content {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.5;
}

/* Comment Form */
.comment-respond {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 1.8rem;
  border-radius: var(--radius-md);
}

.comment-reply-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.comment-notes,
.comment-form-comment,
.comment-form-cookies-consent,
.form-submit {
  grid-column: 1 / -1;
}

.comment-form textarea, 
.comment-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-base);
  font-size: 0.9rem;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form input:focus, 
.comment-form textarea:focus {
  border-color: var(--color-text-main);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.comment-form-cookies-consent input {
  width: auto;
}

.form-submit {
  margin-top: 0.5rem;
}

.submit-button {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-text-main);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color var(--transition-fast);
}

.submit-button:hover {
  background-color: var(--color-recurring);
}

/* ==========================================================================
   8. Footer Layout
   ========================================================================== */
.site-footer {
  background-color: var(--color-dark-layout);
  color: white;
  padding: 4rem 0 2rem 0;
  border-top: 1.5px solid var(--color-border-dark);
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-widgets .footer-widget:first-child {
    grid-column: span 2;
  }
}

.footer-widget-title {
  font-family: var(--font-sans) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-size: 1.25rem !important;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: white;
}

.site-footer .footer-about-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75) !important;
  opacity: 1;
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.footer-social-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.site-footer .footer-socials .footer-social-link.instagram-link {
  color: hsl(335, 80%, 70%) !important; /* Vibrant soft brand magenta/pink */
}

.site-footer .footer-socials .footer-social-link.instagram-link:hover {
  color: hsl(335, 100%, 80%) !important; /* Brighter brand pink on hover, not white */
  transform: translateY(-1px);
}

.site-footer .footer-socials .footer-social-link.pinterest-link {
  color: hsl(353, 85%, 68%) !important; /* Warm soft brand red */
}

.site-footer .footer-socials .footer-social-link.pinterest-link:hover {
  color: hsl(353, 100%, 78%) !important; /* Brighter brand red on hover, not white */
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.9;
}

.footer-bottom a {
  color: white;
}

.footer-roster-notice {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

/* Ensure Archives and Categories sections globally (sidebar & footer) use the site's main sans-serif font, are not bolded, and links are styled properly */
.widget_archive,
.widget_categories,
.widget-categories,
.widget_archive *,
.widget_categories *,
.widget-categories * {
  font-family: var(--font-sans) !important;
}

.widget_archive ul li a,
.widget_archive li a,
.widget_categories ul li a,
.widget_categories li a,
.widget-categories ul li a,
.widget-categories li a {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  display: block;
  padding: 0.4rem 0;
  transition: color var(--transition-fast) !important;
}

/* Ensure links in footer widgets default to a readable light color */
.site-footer .footer-widget a {
  color: rgba(255, 255, 255, 0.75);
}
.site-footer .footer-widget a:hover {
  color: white;
}

/* Color category links in all widgets permanently by matching link URLs */
.widget_categories a[href*="repeat-appts"],
.widget_categories a[href*="repeat-appointments"],
.widget_categories a[href*="recurring-events"],
.widget-categories a[href*="repeat-appts"],
.widget-categories a[href*="repeat-appointments"],
.widget-categories a[href*="recurring-events"] {
  color: var(--color-recurring) !important;
}

.widget_categories a[href*="fire-drills"],
.widget_categories a[href*="urgent-alerts"],
.widget-categories a[href*="fire-drills"],
.widget-categories a[href*="urgent-alerts"] {
  color: var(--color-urgent) !important;
}

.widget_categories a[href*="focused-blocks"],
.widget_categories a[href*="block-scheduling"],
.widget-categories a[href*="focused-blocks"],
.widget-categories a[href*="block-scheduling"] {
  color: var(--color-block) !important;
}

.widget_categories a[href*="out-of-office"],
.widget_categories a[href*="ooo"],
.widget-categories a[href*="out-of-office"],
.widget-categories a[href*="ooo"] {
  color: var(--color-ooo) !important;
}

.widget_categories a[href*="notifications"],
.widget_categories a[href*="mom-lifesaving-products"],
.widget-categories a[href*="notifications"],
.widget-categories a[href*="mom-lifesaving-products"] {
  color: var(--color-notifications) !important;
}

.widget_categories a[href*="view=list"],
.widget-categories a[href*="view=list"] {
  color: var(--color-text-main) !important;
}

/* ==========================================================================
   9. Responsive Media Queries (Mobile First Breakpoints)
   ========================================================================== */

/* Small/Medium Tablets: 640px */
@media (min-width: 640px) {
  .logo-title {
    font-size: 1.8rem;
  }
  
  .chaos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .featured-hero {
    flex-direction: row;
  }
  
  .hero-image-wrap {
    flex: 1.2;
    aspect-ratio: auto;
  }
  
  .hero-content {
    flex: 1;
    padding: 2.5rem 2rem;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .post-navigation {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Tablets / Small Desktops: 768px */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }
  
  .mobile-nav-toggle {
    display: none;
  }
  
  .comment-form {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .comment-form-comment {
    grid-column: span 2;
  }
}

/* Desktops: 1024px */
@media (min-width: 1024px) {
  .main-layout {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
  
  .chaos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
  
  .footer-widgets {
    grid-template-columns: 2fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Homepage, Blog & Archive Planner Layout */
  .home .main-layout,
  .blog .main-layout,
  .archive .main-layout {
    grid-template-columns: 1fr;
  }

  .weekly-planner-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .planner-column {
    grid-column: span 3;
  }

  .planner-column .column-content {
    min-height: 280px; /* Shorter slot height for wider columns */
    background-color: var(--color-bg-card); /* Clean white card backgrounds for column slots */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
  }

  .planner-column .column-content:empty::after {
    content: '';
    display: none;
  }

  /* Alternating rotation on desktop for sticky notes */
  .planner-column .calendar-card {
    min-height: 180px;
    height: auto;
    aspect-ratio: auto !important; /* Allow card to grow to fit title and excerpt */
  }
  .planner-column .calendar-card:nth-child(odd) {
    transform: rotate(-1.5deg);
  }
  .planner-column .calendar-card:nth-child(even) {
    transform: rotate(1.5deg);
  }

  /* Dashboard style layout for sidebar widgets at bottom of homepage & blog */
  .home .sidebar,
  .blog .sidebar,
  .archive .sidebar {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    padding-top: 3rem;
  }
}

/* Capitalize all post titles globally */
.calendar-card .card-title,
.calendar-card .card-title a,
.post-title-single,
.post-nav-title,
.widget_recent_entries ul li a,
.widget-recent-posts ul li a,
.entry-title,
.entry-title a,
.recent-posts-list a {
  text-transform: uppercase !important;
}

/* Polaroid Styling for images inside all posts */
.article-content figure.wp-block-image {
  background-color: #ffffff !important;
  padding: 10px 10px 18px 10px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03) !important;
  border-radius: 1px !important;
  max-width: 220px !important;
  width: 100% !important;
  margin: 2rem auto !important; /* Centered */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.article-content figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  border-radius: 0 !important; /* Polaroid images are sharp, no border-radius */
  margin-bottom: 0 !important;
  display: block !important;
}

.article-content figure.wp-block-image figcaption {
  margin-top: 8px !important;
  font-family: var(--font-sharpie) !important; /* Use dry erase marker font */
  font-size: 1.2rem !important;
  color: var(--color-text-main) !important;
  text-align: center !important;
  font-weight: 700 !important;
  width: 100% !important;
  text-transform: uppercase !important; /* Caps dry erase style */
  line-height: 1.3 !important;
  letter-spacing: 0.04em !important;
}

.article-content figure.wp-block-image:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.polaroids-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  justify-content: center !important;
  margin: 1.5rem 0 !important;
  width: 100% !important;
}

.article-content .polaroids-row figure.wp-block-image {
  margin: 0 !important;
}

/* Category Dry-Erase Font Style for Page and Post Headings */
.page-title,
.entry-title {
  font-family: var(--font-sharpie) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* Category Archive Title and Single Post Title (Sleek Sans-Serif Style) */
.archive-title,
.post-title-single {
  font-family: var(--font-sans) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* Post Category Subtitle (Secondary Subject) and Archive Subtitle */
.archive-subtitle,
.post-category-subtitle {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.95rem !important;
  color: var(--color-text-muted) !important;
  text-align: center;
}

/* Custom Comments Styling to match "Join in Organizing the Chaos" */
.comments-area {
  background-color: var(--color-bg-card) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-border) !important;
  padding: 1.8rem !important;
  box-shadow: var(--shadow-sm) !important;
  margin-top: 3rem !important;
  display: block !important;
}

/* Comments area header styling */
.comments-area .comments-title,
.comments-area .comment-reply-title {
  font-family: var(--font-sans) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 1.2rem !important;
  position: relative !important;
  padding-bottom: 0.6rem !important;
  border-bottom: 2px solid var(--color-border-dark) !important;
  color: var(--color-text-main) !important;
}

/* Individual comments list */
.comment-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

.comment-list .comment {
  border-bottom: 1px dashed var(--color-border) !important;
  padding-bottom: 1.5rem !important;
}

.comment-list .comment:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.comment-body {
  display: flex !important;
  gap: 1rem !important;
}

.comment-meta {
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.3rem !important;
}

.comment-meta img {
  border-radius: 50% !important;
  border: 1.5px solid var(--color-border) !important;
}

.comment-meta .fn {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  color: var(--color-text-main) !important;
}

.comment-metadata {
  font-size: 0.75rem !important;
  color: var(--color-text-muted) !important;
}

.comment-content {
  flex-grow: 1 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: var(--color-text-main) !important;
}

.comment-content p {
  margin: 0 !important;
}

.reply {
  margin-top: 0.5rem !important;
}

.reply a {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border) !important;
  padding: 0.2rem 0.5rem !important;
  border-radius: var(--radius-sm) !important;
}

.reply a:hover {
  background-color: var(--color-text-main) !important;
  color: white !important;
}

/* Comment reply/form fields styling matching newsletter-input */
.comment-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.9rem !important;
  font-family: var(--font-sans) !important;
  background-color: var(--color-bg-base) !important;
  transition: border-color var(--transition-fast) !important;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--color-text-main) !important;
  outline: none !important;
}

/* Comment Form Submit Button styling matching newsletter-submit */
.comment-form .submit,
.comment-form input[type="submit"] {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  background-color: var(--color-text-main) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color var(--transition-fast) !important;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
  background-color: var(--color-recurring) !important;
}

/* Comment cookies consent checkbox styling */
.comment-form-cookies-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;
  font-size: 0.8rem !important;
  color: var(--color-text-muted) !important;
}

.comment-form-cookies-consent input {
  margin-top: 0.2rem !important;
}

/* Remove bullets from latest posts and recent posts block widgets */
.wp-block-latest-posts,
.wp-block-latest-posts li,
.widget_recent_entries ul,
.widget_recent_entries ul li,
.widget-recent-posts ul,
.widget-recent-posts ul li,
.recent-posts-list,
.recent-posts-list li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Single Post Layout styling (no sidebar) */
.single .main-layout {
  grid-template-columns: 1fr !important;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hide comments area globally and sidebar on single posts */
.comments-area,
#comments,
.single #secondary,
.single .sidebar {
  display: none !important;
}




