/*
Theme Name: WorkToolbox
Theme URI: https://worktoolbox.net
Author: WorkToolbox
Description: 仕事効率化のためのツール大全 のデザインをそのまま再現したカスタムテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: worktoolbox
*/

:root {
  --deep-navy: #1E3A5F;
  --blue: #3B82F6;
  --cyan: #06B6D4;
  --white: #FFFFFF;
  --light-gray: #F8FAFC;
  --light-blue: #EFF6FF;
  --text-dark: #1F2937;
  --border-gray: #E5E7EB;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.16);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--deep-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-navy);
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

main {
  padding: 0 0 36px;
}

.hero-section {
  margin: 0 calc(50% - 50vw) 36px;
  width: 100vw;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--light-gray);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.1);
  border-radius: 0;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 520px;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide img {
  height: 520px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__content {
  position: absolute;
  inset: auto 32px 32px 32px;
  max-width: 640px;
  padding: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95));
  backdrop-filter: blur(4px);
  border: 1px solid rgba(59, 130, 246, 0.16);
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.12);
}

.hero-slide__content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: var(--deep-navy);
}

.hero-slide__content p {
  margin: 0;
  color: rgba(31, 41, 55, 0.72);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.22);
  cursor: pointer;
}

.dot.is-active {
  background: var(--blue);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--deep-navy);
}

.section-heading .section-intro {
  margin: 6px 0 0;
  color: rgba(31, 41, 55, 0.65);
  font-size: 0.95rem;
}

.highlight-section {
  margin-bottom: 36px;
}

.highlight-section .section-heading {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-gray);
}

.highlight-section .section-heading h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
}

.highlight-primary {
  display: block;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.1);
}

.highlight-primary img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.highlight-primary__body {
  padding: 22px 24px 24px;
}

.highlight-primary__body .entry-category-badge {
  margin-bottom: 12px;
}

.highlight-primary__body h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--deep-navy);
}

.highlight-primary__body p {
  margin: 0;
  color: rgba(31, 41, 55, 0.68);
  font-size: 0.95rem;
  line-height: 1.7;
}

.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.08);
}

.highlight-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 76px;
}

.highlight-item__body h4 {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--deep-navy);
}

.feature-card,
.news-card,
.category-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.06);
}

.feature-card {
  display: block;
  position: relative;
  background: var(--white);
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.1);
}

.feature-card img {
  height: 170px;
  object-fit: cover;
  width: 100%;
}

.card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 12px 14px;
  background: linear-gradient(180deg, rgba(30, 58, 95, 0) 0%, rgba(30, 58, 95, 0.78) 100%);
}

.card-body h3,
.news-card h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.45;
  color: var(--white);
}

.card-body h3,
.news-card h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.45;
  color: var(--deep-navy);
}

.feature-card .card-body h3 {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(30, 58, 95, 0.65);
}

.card-body p,
.news-card p {
  margin: 0 0 8px;
  color: rgba(31, 41, 55, 0.65);
  font-size: 0.92rem;
  line-height: 1.7;
}

.card-body a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--blue);
  font-weight: 800;
}


.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 320px;
  gap: 24px;
  align-items: start;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.1);
}

.news-card img {
  height: 100px;
  object-fit: cover;
}

.news-card > div {
  padding: 18px 20px 18px 0;
}

.news-card h3 {
  padding-bottom: 6px;
}

.news-card p {
  padding-bottom: 4px;
}

.category-column {
  display: grid;
  gap: 16px;
}

.theme-panel {
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  padding: 18px;
}

.category-list {
  display: grid;
  gap: 12px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.category-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), var(--light-gray));
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.category-illustration::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(59, 130, 246, 0.25);
  border-radius: 12px;
}

.category-illustration svg {
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
}

.category-illustration img {
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  object-fit: cover;
  border-radius: 8px;
}

.category-card span {
  display: block;
  padding: 0;
  font-weight: 700;
  color: var(--deep-navy);
}

.news-list-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--deep-navy), var(--blue));
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.news-list-link:hover {
  opacity: 0.92;
}

.page-shell {
  padding-top: 28px;
}

.page-hero {
  margin-bottom: 24px;
  padding: 28px 28px 24px;
  background: linear-gradient(145deg, var(--white) 0%, var(--light-gray) 100%);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 5px;
}

.page-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-hero h1,
.page-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  color: var(--deep-navy);
}

.page-hero__description {
  margin: 0 0 12px;
  color: rgba(31, 41, 55, 0.72);
  max-width: 760px;
}

.page-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(31, 41, 55, 0.65);
  font-size: 0.92rem;
}

.page-breadcrumbs a {
  color: var(--blue);
  font-weight: 700;
}

.category-hero {
  margin-bottom: 28px;
}

.category-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.4;
  color: var(--deep-navy);
}

.category-hero .page-breadcrumbs {
  margin: 0 0 20px;
}

.category-hero__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 16px;
}

.category-hero__description {
  margin: 0;
  color: rgba(31, 41, 55, 0.72);
  max-width: 760px;
}

.page-toolbar {
  margin-bottom: 20px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--deep-navy);
  font-size: 0.92rem;
  font-weight: 700;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--deep-navy), var(--blue));
  color: var(--white);
  border-color: transparent;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 280px;
  gap: 24px;
  align-items: start;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 280px;
  grid-template-areas:
    "content sidebar"
    "related sidebar"
    "samecategory sidebar";
  gap: 24px;
  align-items: start;
}

.entry-layout > .entry-content,
.entry-layout > .related-section,
.entry-layout > .same-category-section,
.entry-layout > .content-sidebar {
  min-width: 0;
}

.entry-layout > .entry-content {
  grid-area: content;
}

.entry-layout > .related-section,
.entry-layout > .same-category-section {
  margin-top: 0;
}

.entry-layout > .related-section {
  grid-area: related;
}

.entry-layout > .same-category-section {
  grid-area: samecategory;
}

.entry-layout > .content-sidebar {
  grid-area: sidebar;
}

.entry-layout > .detail-mobile-banner {
  display: none;
}

.card-list {
  display: grid;
  gap: 16px;
}

.post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 58, 95, 0.1);
}

.post-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
}

.post-card__body h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--deep-navy);
}

.post-card__body p {
  margin: 0 0 8px;
  color: rgba(31, 41, 55, 0.65);
  font-size: 0.95rem;
}

.post-card__meta {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card .tag-list {
  margin: 0 0 8px;
}

.content-sidebar {
  display: grid;
  gap: 16px;
}

.sidebar-box {
  padding: 18px;
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  border-radius: 5px;
}

.sidebar-box h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--deep-navy);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.sidebar-list a {
  color: rgba(31, 41, 55, 0.85);
  font-weight: 600;
}

.sidebar-list a:hover {
  color: var(--blue);
}

.entry-hero {
  margin-bottom: 28px;
}

.entry-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.4;
  color: var(--deep-navy);
}

.entry-hero .page-breadcrumbs {
  margin: 0 0 16px;
}

.entry-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-gray);
}

.entry-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--deep-navy), var(--blue));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.entry-date {
  color: rgba(31, 41, 55, 0.6);
  font-size: 0.88rem;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-gray);
  background: var(--light-gray);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-pill::before {
  content: "#";
  margin-right: 1px;
  color: var(--cyan);
}

.entry-cover {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 24px;
}

.entry-content h2 {
  margin: 36px 0 12px;
  color: var(--deep-navy);
  font-size: 1.3rem;
}

.entry-content h2:first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 16px;
  color: rgba(31, 41, 55, 0.78);
  line-height: 1.85;
}

.entry-list {
  margin: 0 0 20px;
  padding-left: 20px;
}

.entry-list li {
  margin-bottom: 6px;
  color: rgba(31, 41, 55, 0.78);
  line-height: 1.8;
}

.sidebar-featured {
  display: grid;
  gap: 12px;
}

.sidebar-featured .feature-card img {
  height: 120px;
}

.related-section,
.same-category-section {
  margin-top: 40px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.banner-stack {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.banner-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 6 / 5;
  padding: 12px;
  border: 1px dashed var(--border-gray);
  border-radius: 5px;
  background: var(--light-gray);
  color: rgba(31, 41, 55, 0.45);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.mobile-banner-slot {
  display: none;
  aspect-ratio: 16 / 5;
  margin: 24px 0;
}

.banner-row {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.banner-slot--small {
  flex: none;
  width: 100%;
  aspect-ratio: 2 / 1;
  padding: 4px;
  font-size: 0.74rem;
}

.pr-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed var(--border-gray);
  border-radius: 5px;
  background: var(--light-gray);
  color: rgba(31, 41, 55, 0.5);
  font-size: 0.88rem;
  font-weight: 700;
}

.pr-slot--inline {
  margin: 4px 0 28px;
}

.pr-slot__badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--border-gray);
  color: rgba(31, 41, 55, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.is-hidden {
  display: none;
}

.load-more-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--deep-navy), var(--blue));
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.load-more-btn:hover {
  opacity: 0.92;
}

.site-footer {
  padding: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px 24px;
  border-radius: 0;
  background: linear-gradient(135deg, var(--deep-navy), var(--blue));
  color: var(--white);
  text-align: center;
  box-shadow: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .category-column {
    order: 2;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    order: 2;
  }

  .entry-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "sidebar"
      "related"
      "samecategory";
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.6;
  }

  .container {
    width: calc(100% - 32px);
  }

  .entry-layout {
    grid-template-areas:
      "content"
      "related"
      "samecategory"
      "adspace"
      "sidebar";
  }

  .entry-layout > .detail-mobile-banner {
    display: flex;
    grid-area: adspace;
  }

  .header-inner {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .header-inner > nav {
    width: 100%;
    order: 3;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-gray);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 8px 4px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card img {
    height: 180px;
  }

  .hero-section {
    margin: 0 0 24px;
    width: 100%;
  }

  .hero-slider,
  .hero-slide {
    min-height: 420px;
  }

  .hero-slide img {
    height: 420px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 3 / 4;
  }

  .hero-slide__content {
    inset: auto 16px 16px 16px;
    padding: 16px;
    border-radius: 5px;
  }

  .hero-slide__content h1 {
    font-size: 1.32rem;
    line-height: 1.35;
  }

  .hero-slide__content p {
    font-size: 0.93rem;
  }

  .highlight-section {
    margin-bottom: 24px;
  }

  .highlight-section .section-heading {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .section-heading h2 {
    font-size: 1.2rem;
    line-height: 1.35;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .highlight-primary img {
    height: 200px;
  }

  .card-body {
    padding: 14px 14px 16px;
  }

  .card-body h3 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .content-section {
    gap: 16px;
  }

  .news-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
  }

  .news-card img {
    height: 160px;
    border-radius: 5px;
  }

  .news-card > div {
    padding: 0 2px 6px;
  }

  .news-card h3 {
    font-size: 1rem;
  }

  .news-card p {
    font-size: 0.9rem;
  }

  .theme-panel {
    padding: 16px;
    border-radius: 5px;
  }

  .category-card {
    padding: 10px 8px;
  }

  .desktop-banner-stack {
    display: none;
  }

  .mobile-banner-slot {
    display: flex;
  }

  .banner-row {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px;
  }

  .category-illustration {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .category-card span {
    font-size: 0.95rem;
  }

  .news-list-link {
    padding: 14px 16px;
  }

  .page-shell {
    padding-top: 20px;
  }

  .page-hero {
    padding: 22px 18px;
  }

  .category-hero__image {
    height: 180px;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card img {
    height: 180px;
  }

  .card-grid-4 {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .card-grid-4 .feature-card {
    flex: 0 0 min(75vw, 260px);
    max-width: min(75vw, 260px);
    scroll-snap-align: start;
  }
}

/* WordPress-specific additions (not present in the static site) */

.entry-content img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 16px;
}

.entry-content .alignleft,
.entry-content .alignright {
  width: auto;
}

.banner-stack .widget,
.banner-row .widget,
.pr-slot .widget {
  margin: 0;
}

.banner-stack .widget img,
.banner-row .widget img,
.pr-slot .widget img {
  width: auto;
  max-width: 100%;
  border-radius: 5px;
}

.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;
}
