:root {
  --ee-bg: #f9fafb;
  --ee-surface: #ffffff;
  --ee-text: #111827;
  --ee-muted: #6b7280;
  --ee-border: #e5e7eb;
  --ee-accent: #15803d;
  --ee-accent-soft: #f0fdf4;
  --ee-max: 72rem;
  --ee-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--ee-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ee-text);
  background: var(--ee-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ee-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.ee-header {
  border-bottom: 1px solid var(--ee-border);
  background: var(--ee-surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.ee-header__nav {
  max-width: var(--ee-max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ee-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ee-accent);
  text-decoration: none;
  white-space: nowrap;
}

.ee-logo:hover {
  text-decoration: none;
}

.ee-nav--desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.ee-nav__link {
  color: #374151;
  text-decoration: none;
  transition: color 0.15s;
}

.ee-nav__link:hover,
.ee-nav__link--active {
  color: var(--ee-accent);
  text-decoration: none;
}

.ee-nav__link--active {
  font-weight: 600;
}

.ee-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #374151;
  cursor: pointer;
}

.ee-menu-toggle:hover {
  background: #f3f4f6;
}

.ee-menu-toggle[aria-expanded="true"] .ee-menu-toggle__icon:not(.ee-menu-toggle__icon--close) {
  display: none;
}

.ee-menu-toggle[aria-expanded="true"] .ee-menu-toggle__icon--close {
  display: block !important;
}

.ee-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.3);
}

.ee-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 16rem;
  height: 100%;
  background: var(--ee-surface);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.ee-mobile-panel[hidden],
.ee-mobile-overlay[hidden] {
  display: none !important;
}

.ee-mobile-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.ee-mobile-panel__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.ee-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.ee-mobile-close:hover {
  background: #f3f4f6;
}

.ee-mobile-panel__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  overflow-y: auto;
}

.ee-mobile-panel__links a {
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
}

.ee-mobile-panel__links a:hover,
.ee-mobile-panel__active {
  background: var(--ee-accent-soft);
  color: var(--ee-accent);
}

.ee-main {
  max-width: var(--ee-max);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.ee-layout {
  display: grid;
  gap: 2rem;
}

.ee-page-header {
  margin-bottom: 1.5rem;
}

.ee-page-title {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ee-text);
}

.ee-page-desc {
  margin: 0;
  color: var(--ee-muted);
}

.ee-post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ee-card {
  display: grid;
  gap: 1rem;
  background: var(--ee-surface);
  border: 1px solid var(--ee-border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.ee-card__thumb {
  display: block;
  line-height: 0;
  background: #f9fafb;
  padding: 1rem;
}

.ee-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.ee-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.ee-card__date,
.ee-article__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--ee-muted);
  margin-bottom: 0.5rem;
}

.ee-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.ee-card__title a {
  color: var(--ee-text);
  text-decoration: none;
}

.ee-card__title a:hover {
  color: var(--ee-accent);
}

.ee-card__excerpt {
  color: #4b5563;
  font-size: 0.9375rem;
}

.ee-card__excerpt p {
  margin: 0;
}

.ee-card__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ee-accent);
}

.ee-article {
  background: var(--ee-surface);
  border: 1px solid var(--ee-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.ee-article__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.ee-article__featured {
  margin: 1.25rem 0;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
}

.ee-article__featured img {
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.ee-article__content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.ee-article__content h2,
.ee-article__content h3 {
  margin-top: 1.75rem;
  line-height: 1.3;
}

.ee-article__content p {
  margin: 0 0 1rem;
}

.ee-article__footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ee-border);
}

.ee-back-link {
  font-size: 0.875rem;
  font-weight: 600;
}

.ee-sidebar .widget {
  background: var(--ee-surface);
  border: 1px solid var(--ee-border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.ee-sidebar .widget-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.ee-sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ee-pagination {
  margin-top: 2rem;
}

.ee-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ee-pagination a,
.ee-pagination span {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--ee-border);
  background: var(--ee-surface);
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
}

.ee-pagination .current {
  background: var(--ee-accent);
  border-color: var(--ee-accent);
  color: #fff;
}

.ee-empty {
  color: var(--ee-muted);
}

.ee-footer {
  border-top: 1px solid var(--ee-border);
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--ee-muted);
}

.ee-footer__inner {
  max-width: var(--ee-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ee-footer__inner p {
  margin: 0;
}

.ee-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.ee-footer__nav a {
  color: var(--ee-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.ee-footer__nav a:hover {
  color: var(--ee-accent);
}

@media (min-width: 768px) {
  .ee-nav--desktop {
    display: flex;
  }

  .ee-menu-toggle {
    display: none;
  }

  .ee-layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
    align-items: start;
  }

  .ee-card {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .ee-card__thumb img {
    height: 100%;
    min-height: 8rem;
  }

  .ee-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .ee-footer__nav {
    justify-content: flex-end;
  }
}

body.ee-menu-open {
  overflow: hidden;
}
