/*
Theme Name: Bennernet
Theme URI: https://bennernet.com
Author: Benjamin Rogers
Author URI: https://bennernet.com
Description: A clean, printer-friendly blog theme combining elegant typography with powerful customization. Features Playfair Display and Source Sans Pro fonts, warm sage green color palette, comprehensive print styles, and email sharing. Perfect for recipe blogs and content that needs to look great both on screen and on paper.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bennernet
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, post-formats, theme-options, translation-ready, food-and-drink
*/

/* ==========================================================================
   CSS Custom Properties (Theme Colors & Settings)
   ========================================================================== */

:root {
  /* Primary Colors - Sage Green Palette */
  --primary: #9eb89f;
  --primary-dark: #7a9a7b;
  --primary-light: #c8d9c9;

  /* Secondary Colors - Warm Tones */
  --secondary: #d4c4a8;
  --accent: #8b7355;

  /* Neutral Colors */
  --background: #faf9f7;
  --surface: #ffffff;
  --text: #3d3d3d;
  --text-light: #6b6b6b;
  --border: #e8e4df;

  /* Status Colors */
  --error: #c75b5b;
  --success: #7a9a7b;
  --warning: #d4a84d;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius: 4px;
  --radius-lg: 8px;

  /* Typography */
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Layout */
  --container-width: 1200px;
  --content-width: 800px;
  --sidebar-width: 320px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  font-style: italic;
  font-size: 1.1rem;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--text-light);
}

pre, code {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9rem;
}

pre {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
}

code {
  background: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

/* Lists */
ul, ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-content {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.content-area {
  flex: 1;
  min-width: 0;
}

/* Full Width */
.full-width .content-area {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* With Sidebar */
.has-sidebar .content-area {
  flex: 1;
  margin-right: 2rem;
}

.has-sidebar-left .content-area {
  margin-right: 0;
  margin-left: 2rem;
  order: 2;
}

.widget-area {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
}

.has-sidebar-left .widget-area {
  order: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.header-image {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.header-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.header-image .site-branding {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  text-align: left;
  color: #fff;
}

.header-image .site-title a,
.header-image .site-description {
  color: #fff;
}

.site-branding {
  padding: 1.5rem 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--primary-dark);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-description {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0.5rem 0 0;
}

.custom-logo {
  max-height: 100px;
  width: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--primary-dark);
  background: var(--background);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
}

.menu-toggle .hamburger {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary-dark);
  position: relative;
  transition: all 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--primary-dark);
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle .hamburger::before { top: -8px; }
.menu-toggle .hamburger::after { bottom: -8px; }

/* Social Icons in Header */
.header-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.header-social a {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.header-social a:hover {
  color: var(--primary-dark);
}

/* Navigation Wrapper */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header Search (always visible) */
.header-search {
  margin-left: auto;
}

.header-search .search-form {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.header-search .search-form label {
  display: flex;
}

.header-search .search-field,
.header-search input[type="search"] {
  width: 180px;
  height: 38px;
  padding: 0 0.875rem;
  font-size: 0.9rem;
  line-height: 38px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  box-sizing: border-box;
  background: #fff;
}

.header-search .search-field:focus,
.header-search input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
}

.header-search .search-submit,
.header-search button[type="submit"] {
  height: 38px;
  width: 38px;
  padding: 0;
  background-color: #9eb89f;
  color: #fff;
  border: 1px solid #9eb89f;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-search .search-submit:hover,
.header-search button[type="submit"]:hover {
  background-color: #7a9a7b;
  border-color: #7a9a7b;
}

.header-search .search-submit i,
.header-search button[type="submit"] i {
  font-size: 0.875rem;
  line-height: 1;
  color: #fff;
}

/* ==========================================================================
   Posts & Content
   ========================================================================== */

.hentry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  overflow: hidden;
}

.entry-header {
  padding: 2rem 2rem 0;
}

.entry-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.entry-title a {
  color: var(--text);
}

.entry-title a:hover {
  color: var(--primary-dark);
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.entry-meta a {
  color: var(--text-light);
}

.entry-meta a:hover {
  color: var(--primary-dark);
}

.entry-meta span {
  margin-right: 1rem;
}

.post-thumbnail {
  margin-bottom: 0;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-content,
.entry-summary {
  padding: 1.5rem 2rem;
}

.entry-content > *:last-child,
.entry-summary > *:last-child {
  margin-bottom: 0;
}

.entry-footer {
  padding: 1rem 2rem;
  background: var(--background);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

.cat-links,
.tags-links {
  display: inline-block;
  margin-right: 1.5rem;
}

/* Single Post Styles */
.single .hentry {
  box-shadow: var(--shadow-lg);
}

.single .entry-header {
  text-align: center;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.single .entry-title {
  font-size: 2.25rem;
}

.single .entry-content {
  padding: 2rem;
}

/* Action Buttons (Print/Email) */
.action-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

/* Read More Link */
.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.read-more:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:active,
button:active,
input[type="submit"]:active {
  transform: scale(0.98);
}

.btn-primary,
input[type="submit"] {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
input[type="submit"]:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--background);
  border-color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(158, 184, 159, 0.2);
}

::placeholder {
  color: var(--text-light);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

/* Search Form (Sidebar/Widget/Footer) */
.search-form {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.search-form label {
  flex: 1;
  display: flex;
}

.search-form .search-field {
  width: 100%;
  height: 38px;
  padding: 0 0.875rem;
  font-size: 0.9rem;
  line-height: 38px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  box-sizing: border-box;
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--primary);
}

.search-form .search-submit {
  height: 38px;
  width: 38px;
  padding: 0;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form .search-submit:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.search-form .search-submit i {
  font-size: 0.875rem;
  line-height: 1;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.widget li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget a {
  color: var(--text);
}

.widget a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* Footer Widgets */
.footer-widgets {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.footer-widgets-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-widget-area .widget {
  background: transparent;
  border: none;
  padding: 0;
}

.footer-widget-area .widget-title {
  color: var(--text);
}

/* Footer Disclaimer */
.footer-disclaimer {
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.footer-disclaimer p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* Footer Links */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.8rem;
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

.footer-divider {
  color: var(--border);
  font-size: 0.75rem;
}

/* Site Info */
.site-info {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.site-info a {
  color: var(--text-light);
}

.site-info a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-author .fn {
  font-weight: 600;
}

.comment-metadata {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.comment-content {
  margin-left: 0;
}

.children {
  list-style: none;
  margin-left: 2rem;
  padding: 0;
}

.comment-respond {
  margin-top: 2rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
}

.comment-form input,
.comment-form textarea {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination,
.post-navigation,
.comments-pagination {
  margin: 2rem 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: none;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

/* ==========================================================================
   Homepage Slider
   ========================================================================== */

.homepage-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.slider-item {
  position: relative;
}

.slider-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.slider-caption h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.slider-caption p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   Post Formats
   ========================================================================== */

/* Quote Format */
.format-quote .entry-content blockquote {
  font-size: 1.5rem;
  text-align: center;
  border-left: none;
  background: transparent;
}

/* Gallery Format */
.format-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.format-gallery .gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Video Format */
.format-video .entry-content iframe,
.format-video .entry-content video {
  width: 100%;
  aspect-ratio: 16/9;
}

/* Audio Format */
.format-audio .entry-content audio {
  width: 100%;
}

/* ==========================================================================
   WooCommerce Integration
   ========================================================================== */

.woocommerce ul.products li.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.woocommerce a.button,
.woocommerce button.button {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--primary-dark) !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.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;
}

.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 1rem auto;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.no-print {
  /* Elements with this class are hidden when printing */
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-widgets-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .has-sidebar .content-area,
  .has-sidebar-left .content-area {
    margin: 0;
    order: 1;
  }

  .widget-area {
    flex: 0 0 100%;
    width: 100%;
    order: 2;
    margin-top: 2rem;
  }

  .site-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .footer-widgets-inner {
    grid-template-columns: 1fr;
  }

  .entry-header,
  .entry-content,
  .entry-summary,
  .entry-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .single .entry-title {
    font-size: 1.75rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .slider-item img {
    height: 350px;
  }

  .slider-caption {
    padding: 1.5rem;
  }

  .slider-caption h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .action-bar {
    flex-direction: column;
  }

  .action-bar .btn {
    width: 100%;
    text-align: center;
  }

  .format-gallery .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  /* Hide non-essential elements */
  .no-print,
  .site-header nav,
  .main-navigation,
  .header-social,
  .menu-toggle,
  .sidebar,
  .widget-area,
  .footer-widgets,
  .footer-links,
  .comments-area,
  .post-navigation,
  .pagination,
  .action-bar .btn-secondary,
  .slider-controls,
  .woocommerce-cart,
  #wpadminbar {
    display: none !important;
  }

  /* Reset backgrounds and colors */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  .site-header {
    box-shadow: none;
    border-bottom: 1px solid #ddd;
  }

  .hentry {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  /* Ensure content is readable */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* Show URLs for external links */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Don't show URLs for internal links */
  a[href^="#"]::after,
  a[href^="javascript"]::after,
  .entry-title a::after {
    content: "";
  }

  /* Prevent breaks inside important content */
  .entry-content {
    page-break-inside: avoid;
  }

  li {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Optimize blockquotes for print */
  blockquote {
    border-left: 2px solid #000;
    background: transparent;
  }

  /* Footer cleanup */
  .site-footer {
    border-top: 1px solid #ddd;
    margin-top: 1rem;
    padding: 1rem 0;
  }

  .footer-disclaimer {
    border: none;
    padding: 0.5rem 0;
  }

  .site-info {
    padding: 0.5rem 0;
  }
}
