/*
Theme Name: PLWAA
Description: A lightweight, accessible WordPress theme built on Pico.css Light.
Version: 1csdddd.0

Text Domain: plwaa
*/
:root {
  --plwaa-primary: #165d96;
  --plwaa-dark: #1b1b1b;
  --plwaa-light: #f5f7fa;
  --plwaa-accent: #f0f3f8;
}
body {
 color: #222;
 line-height: 1.6;
}
a {
 color: #0074d9;
}
a:hover, a:focus {
 text-decoration: underline;
}

header, footer {
 padding-right: var(--pico-spacing);
  padding-left: var(--pico-spacing);
}
article {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
 box-shadow: none;
}
article header{box-shadow: none; border: none}
/* ========== Logo ========== */
.site-logo {
  display: inline-block;
  align-items: center;
  text-decoration: none;
width: 100%; max-width: 300px; height: auto
}

.site-logo svg {
 max-width: 300px;
  vertical-align: middle;
  fill: #165d96; /* your logo color */
  transition: transform 0.2s ease;
}



/* ========== Accessibility: Skip Link ========== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Hide screen-reader text visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}



/* Desktop */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: inherit;
  margin-left: 1rem;
}

  .nav-menu li {
white-space: nowrap;
  }

/* Mobile */
@media (max-width: 1000px) {
  .nav-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    border-top: 1px solid #ddd;
    order: 2;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
  }
}




/* ================================
   Layout: Content + Sidebar
   ================================ */

/* Desktop and tablet */
.layout-grid {
  display: grid;
  grid-template-columns: 4fr 1fr; /* content 80%, sidebar 20% */
  gap: 2rem;
  align-items: start;
}

/* Optional variations (Bootstrap-like ratios) */
.col-8-4 { grid-template-columns: 8fr 4fr; } /* 66/33 split */
.col-9-3 { grid-template-columns: 9fr 3fr; } /* 75/25 split */
.col-10-2 { grid-template-columns: 10fr 2fr; } /* 83/17 split */

/* Responsive stacking */
@media (max-width: 768px) {
  .layout-grid,
  .col-8-4,
  .col-9-3,
  .col-10-2 {
    grid-template-columns: 1fr;
  }

  aside.sidebar {
    margin-top: 2rem;
  }
}

/* Sidebar refinement */
.sidebar {
  max-width: 320px; /* limit the visual width of widgets */
  width: 100%;
}

/* Content area */
.content {
  min-width: 0; /* prevents overflow inside grids */
}

.widget {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--border-radius);
}

.widget h2 {
  margin-bottom: 0.5rem;
}

/* ==========================
   Image Alignment & Styling
   ========================== */

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

/* Default spacing for all images inside posts */
.entry-content img,
.post-content img,
.article-content img {
  margin: 1.25rem 0;
  border-radius: 4px;
}

/* Align left */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}

/* Align right */
.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 50%;
}

/* Align center */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  float: none;
}

/* Full width (for banners or hero images) */
.alignfull {
  width: 100%;
  display: block;
  margin: 1.5rem 0;
}

/* Wide width (when using Gutenberg “wide” setting) */
.alignwide {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
  }
}
