/*
 * Storage Container Hub Theme CSS
 * Professional, clean design with excellent typography and spacing
 */

/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  --theme-primary:    #2563eb;
  --theme-primary-dk: #1e40af;
  --theme-amazon:     #ea580c;
  --theme-success:    #16a34a;
  --theme-warning:    #d97706;
  --theme-danger:     #dc2626;

  --theme-bg:         #ffffff;
  --theme-bg-alt:     #f8fafc;
  --theme-bg-dark:    #1e293b;

  --theme-text:       #1a1a2e;
  --theme-text-muted: #64748b;
  --theme-border:     #e2e8f0;

  --theme-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --theme-radius:     8px;
  --theme-radius-lg:  12px;
  --theme-shadow:     0 1px 3px rgba(0,0,0,.08);
  --theme-shadow-md:  0 4px 6px rgba(0,0,0,.08);

  --max-width:        1200px;
}

/* ============================================================
   Reset & Base Styles
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--theme-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--theme-text);
  background: var(--theme-bg);
}

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--theme-primary-dk);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .75rem;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: .5rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Layout Containers
   ============================================================ */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1;
  padding: 2rem 0;
}

.site-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .site-container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .site-container { padding: 0 2rem; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--theme-bg);
  border-bottom: 1px solid var(--theme-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--theme-shadow);
}

.site-header__wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .site-header__wrap { padding: 0 1.5rem; }
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
}

.site-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: var(--theme-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.site-logo-default {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo-img {
  max-width: 100%;
  height: auto;
}

.site-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-name-text {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.1;
  max-width: 220px;
}

.site-name-text:hover {
  color: #0b2244;
  text-decoration: none;
}

.site-info {
  flex: 1;
}

.site-info h1 {
  font-size: 1.35rem;
  margin: 0 0 .15rem;
  font-weight: 800;
}

.site-info h1 a {
  color: var(--theme-text);
  text-decoration: none;
}

.site-info h1 a:hover {
  color: var(--theme-primary);
}

.site-description {
  font-size: .8rem;
  color: var(--theme-text-muted);
  margin: 0;
}

/* Navigation */
.site-navigation {
  flex: 1 1 auto;
  min-width: 250px;
}

.site-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}

.site-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--theme-text);
  transition: all .3s ease;
}

.site-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-nav-toggle { display: flex; }
  
  .primary-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--theme-bg);
    border-bottom: 1px solid var(--theme-border);
    padding: 1.5rem 1rem;
  }

  .primary-menu-container.is-open {
    display: block;
  }
}

.primary-menu {
  display: flex;
  list-style: none;
  gap: .5rem;
}

.primary-menu a {
  display: block;
  padding: .5rem 1rem;
  color: var(--theme-text);
  font-weight: 500;
  border-radius: var(--theme-radius);
  transition: background .2s ease;
}

.primary-menu a:hover {
  background: var(--theme-bg-alt);
  text-decoration: none;
  color: var(--theme-primary);
}

.primary-menu > .current-menu-item > a {
  background: var(--theme-primary);
  color: white;
}

.primary-menu > .current-menu-item > a:hover {
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .primary-menu {
    flex-direction: column;
    gap: .75rem;
  }
}

/* Search */
.site-search {
  display: flex;
}

/* Search removed from header by template update */
.site-header .site-search {
  display: none !important;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--theme-bg-alt);
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  padding: .35rem .75rem;
  gap: .5rem;
  width: 100%;
  max-width: 300px;
}

.search-form-input {
  flex: 1;
  border: none;
  background: none;
  font-size: .9rem;
  padding: .35rem 0;
  color: var(--theme-text);
}

.search-form-input::placeholder {
  color: var(--theme-text-muted);
}

.search-form-input:focus {
  outline: none;
}

.search-form-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  color: var(--theme-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-form-button:hover {
  color: var(--theme-primary);
}

.search-form-button svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   Contact Form (SCH shortcode)
   ============================================================ */
.sch-contact-form {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow);
}

.sch-contact-form p {
  margin: 0 0 1rem;
}

.sch-contact-form p:last-child {
  margin-bottom: 0;
}

.sch-contact-form label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: .4rem;
}

.sch-contact-form input[type="text"],
.sch-contact-form input[type="email"],
.sch-contact-form textarea {
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: #fff;
  color: var(--theme-text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sch-contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.sch-contact-form input:focus,
.sch-contact-form textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.sch-contact-form button[type="submit"] {
  border: none;
  cursor: pointer;
  min-width: 180px;
  font-weight: 700;
}

.sch-contact-alert {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .92rem;
  border: 1px solid transparent;
}

.sch-contact-alert--ok {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.sch-contact-alert--error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

@media (max-width: 640px) {
  .sch-contact-form {
    padding: 1rem;
  }

  .sch-contact-form button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header__wrap { gap: 1rem; }
  .site-search { display: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--theme-bg-alt);
  border-top: 1px solid var(--theme-border);
  margin-top: 3rem;
}

.footer-widgets {
  padding: 3rem 0 2rem;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .footer-widgets-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-widget-area {
  font-size: .95rem;
}

.footer-widget-area .widget {
  margin-bottom: 1.5rem;
}

.footer-widget-area .widget-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-widget-area .widget ul {
  list-style: none;
  margin: 0;
}

.footer-widget-area .widget li {
  margin-bottom: .5rem;
}

.footer-widget-area .widget a {
  color: var(--theme-text-muted);
}

.footer-widget-area .widget a:hover {
  color: var(--theme-primary);
  text-decoration: underline;
}

.footer-bottom {
  background: var(--theme-text);
  color: white;
  padding: 1.5rem 0;
}

.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: .75rem;
  flex-wrap: wrap;
}

.footer-menu a {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  text-decoration: none;
}

.footer-menu a:hover {
  color: white;
  text-decoration: underline;
}

.site-copyright {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

.site-copyright p {
  margin: 0;
}

.footer-credit {
  font-size: .75rem;
  margin-top: .25rem;
}

.footer-credit code {
  background: rgba(0,0,0,.2);
  padding: .15rem .35rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,.9);
}

@media (max-width: 768px) {
  .footer-bottom-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ============================================================
   Page Content (pages, archives, posts)
   ============================================================ */
.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  margin-bottom: .5rem;
}

.archive-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 2.5rem 0;
  margin: -2rem 0 2rem;
  padding-left: calc((100vw - var(--max-width)) / 2 + 1rem);
  padding-right: calc((100vw - var(--max-width)) / 2 + 1rem);
}

.archive-header .page-title {
  color: white;
}

.archive-description {
  color: rgba(255,255,255,.8);
  margin: 0.5rem 0 0;
}

/* ============================================================
   Blog Posts Grid
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  box-shadow: var(--theme-shadow);
}

.post-card:hover {
  box-shadow: var(--theme-shadow-md);
  transform: translateY(-2px);
}

.post-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

.post-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.post-card:hover .post-card__image-link img {
  transform: scale(1.05);
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

.post-card__title {
  margin: 0;
  font-size: 1.25rem;
}

.post-card__title a {
  color: var(--theme-text);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--theme-primary);
}

.post-card__meta {
  display: flex;
  gap: 1rem;
  font-size: .85rem;
  color: var(--theme-text-muted);
  flex-wrap: wrap;
}

.post-card__date,
.post-card__author {
  display: flex;
  align-items: center;
}

.post-card__author a {
  color: var(--theme-primary);
}

.post-card__excerpt {
  flex: 1;
  margin: 0.25rem 0;
  color: var(--theme-text-muted);
  line-height: 1.5;
}

.post-card__read-more {
  align-self: flex-start;
  font-weight: 600;
  color: var(--theme-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.post-card__read-more:hover {
  text-decoration: underline;
}

/* ============================================================
   Single Post
   ============================================================ */
.site-content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .site-content-with-sidebar {
    grid-template-columns: 1fr;
  }
}

.post-single {
  background: var(--theme-bg);
}

.featured-image-wrapper {
  margin: -2rem 0 2rem;
  max-height: 500px;
  overflow: hidden;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title {
  margin-bottom: .5rem;
}

.entry-meta {
  display: flex;
  gap: 1.5rem;
  font-size: .95rem;
  color: var(--theme-text-muted);
  flex-wrap: wrap;
}

.entry-meta a {
  color: var(--theme-primary);
}

.entry-content {
  line-height: 1.8;
  margin-bottom: 2rem;
}

.entry-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content h3 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25rem;
}

.entry-content li {
  margin-bottom: .5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--theme-primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--theme-text-muted);
}

.entry-content code {
  background: var(--theme-bg-alt);
  padding: .2rem .4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: .9em;
}

.entry-content pre {
  background: var(--theme-bg-alt);
  padding: 1rem;
  border-radius: var(--theme-radius);
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--theme-radius);
  margin: 1.5rem 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid var(--theme-border);
  padding: .75rem;
  text-align: left;
}

.entry-content table th {
  background: var(--theme-bg-alt);
  font-weight: 600;
}

.entry-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-border);
}

.entry-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.entry-tags a {
  display: inline-block;
  background: var(--theme-bg-alt);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}

.entry-tags a:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  text-decoration: none;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--theme-border);
}

.nav-previous,
.nav-next {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.nav-previous a,
.nav-next a {
  color: var(--theme-primary);
  font-weight: 600;
  text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Sidebar (widgets)
   ============================================================ */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  padding: 1.5rem;
}

.widget-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.widget ul {
  list-style: none;
  margin: 0;
}

.widget li {
  margin-bottom: .5rem;
}

.widget a {
  color: var(--theme-primary);
  text-decoration: none;
  display: block;
  padding: .35rem 0;
}

.widget a:hover {
  text-decoration: underline;
}

/* ============================================================
   404 Page
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 3rem 0;
}

.error-404-content {
  background: var(--theme-bg-alt);
  border-radius: var(--theme-radius-lg);
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
}

.error-404 .page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--theme-text-muted);
}

.error-404 p {
  font-size: 1.1rem;
  color: var(--theme-text-muted);
  margin-bottom: 1rem;
}

.error-404-cta {
  margin: 2rem 0;
}

.error-404-search {
  margin-top: 2rem;
}

.error-404-search h3 {
  margin-bottom: 1rem;
}

/* ============================================================
   Button Styles
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.35rem;
  border-radius: var(--theme-radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--theme-font);
}

.btn:focus-visible {
  outline: 3px solid var(--theme-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--theme-primary);
  color: white;
  border-color: var(--theme-primary);
}

.btn-primary:hover {
  background: var(--theme-primary-dk);
  border-color: var(--theme-primary-dk);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: var(--theme-bg-alt);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.btn-secondary:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  text-decoration: none;
}

/* ============================================================
   Comments
   ============================================================ */
.comments-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--theme-border);
}

.comment-respond {
  background: var(--theme-bg-alt);
  border-radius: var(--theme-radius-lg);
  padding: 1.5rem;
}

.comments-title,
.comment-reply-title {
  margin-bottom: 1.5rem;
}

.comment-form p {
  margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: .5rem .75rem;
  font-family: var(--theme-font);
}

.comment-form submit {
  background: var(--theme-primary);
  color: white;
  border: none;
  border-radius: var(--theme-radius);
  padding: .65rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

.comment-form submit:hover {
  background: var(--theme-primary-dk);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination,
.posts-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
}

.pagination a,
.pagination span,
.posts-pagination a,
.posts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .75rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  font-weight: 600;
  text-decoration: none;
  color: var(--theme-text);
  transition: all .2s ease;
}

.pagination a:hover,
.posts-pagination a:hover {
  border-color: var(--theme-primary);
  background: var(--theme-primary);
  color: white;
  text-decoration: none;
}

.pagination .current,
.posts-pagination span.page-numbers.current {
  background: var(--theme-primary);
  color: white;
  border-color: var(--theme-primary);
}

.page-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .8rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  font-size: .9rem;
  text-decoration: none;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.no-content {
  background: var(--theme-bg-alt);
  border-radius: var(--theme-radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
}

.no-content h2 {
  color: var(--theme-text-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --max-width: 100%;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .site-header {
    padding: 1rem 0;
  }

  .site-header__wrap {
    align-items: center;
    gap: .75rem;
  }

  .site-branding {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 3.5rem);
  }

  .site-name-text {
    font-size: 1rem;
    max-width: none;
    overflow-wrap: anywhere;
  }

  .site-navigation {
    min-width: 0;
    flex: 0 0 auto;
  }

  .primary-menu-container {
    box-shadow: var(--theme-shadow-md);
  }

  .primary-menu a {
    padding: .75rem 0;
  }

  .archive-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-widgets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-logo {
    width: 52px;
    height: 52px;
  }

  .featured-image-wrapper {
    margin: -1rem 0 1.5rem;
  }

  .entry-content {
    overflow-wrap: anywhere;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .widget,
  .error-404-content,
  .no-content {
    padding: 1.25rem;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .pagination,
  .post-navigation {
    display: none;
  }
}
