/*
Theme Name: Lit-Aid
Theme URI: https://lit-aid.jp/
Description: AI検索対応WordPressテーマ「C-AID」を中核とした医療DX向けテーマ
Author: Lit-Aid
Author URI: https://lit-aid.jp/
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lit-aid
Domain Path: /languages
*/

/* ========================================
   Design Tokens
   ======================================== */
:root {
  --bg: #f3f4f6;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --muted-surface: #eef1f5;
  --text: #0c1629;
  --muted: #4a5565;
  --brand: #0a3f72;
  --brand-500: #0b4f8c;
  --brand-600: #083862;
  --brand-700: #072c4f;
  --accent-gradient: linear-gradient(135deg, #0b4f8c 0%, #072c4f 100%);
  --border: #d6d9e0;
  --shadow-sm: 0 1px 3px rgba(12, 22, 41, 0.04);
  --shadow-md: 0 3px 10px rgba(12, 22, 41, 0.06);
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --content-max: 1200px;
  --section-gap: 3.5rem;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-alt);
}

.desktop-only { display: inline; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s ease, text-decoration-color 0.25s ease, box-shadow 0.25s ease;
}

a:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin-bottom: 0.6em;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 2vw + 1.5rem, 3rem); }
h2 { font-size: clamp(1.8rem, 1.6vw + 1.1rem, 2.5rem); }
h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.7rem); }

p { margin-bottom: 1em; color: var(--muted); }

ul { margin: 0 0 1.1em 0; padding-left: 1.25rem; }
ul li::marker { color: var(--brand-600); }

/* ========================================
   Layout
   ======================================== */
main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  margin-bottom: var(--section-gap);
  padding: 2.2rem 0;
}

.section-title,
.section h2 {
  position: relative;
  padding-bottom: 0.45rem;
  color: var(--text);
}

.section-title::after,
.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 78px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(14, 120, 210, 0.35));
  border-radius: 999px;
}

h2 { border: none; margin-top: 1.25em; }
h3 { color: var(--brand-600); margin-top: 1.1em; }

.breadcrumb {
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.entry-header {
  margin: 0 0 1.75rem;
  padding: 0.6rem 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  position: static;
}

.entry-title {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.entry-content ul {
  padding-left: 0;
  color: var(--muted);
  list-style: none;
  border-left: 2px solid var(--border);
  margin-left: 0;
  padding-left: 1rem;
}

.entry-content li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 0.35rem;
}

.entry-content li::before {
  content: '';
  position: absolute;
  left: -0.7rem;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--brand-600);
}
.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--brand);
  background: rgba(15, 123, 215, 0.06);
  border-radius: var(--radius-sm);
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--brand-600);
  font-weight: 700;
}

.note {
  color: var(--muted);
  background: rgba(15, 123, 215, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}

.article-context {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.article-context h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.article-context p {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.article-context .context-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem 1rem;
  padding-left: 1.1rem;
  margin: 0.8rem 0 0;
}

.article-context .context-links a {
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: none;
}

.article-context .context-links a:hover,
.article-context .context-links a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.media-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  margin: 1.75rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.media-frame {
  position: relative;
  width: 100%;
  min-height: 240px;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, rgba(11, 79, 140, 0.08), rgba(11, 79, 140, 0.02));
  border: 1px dashed rgba(11, 79, 140, 0.35);
}

.media-ghost {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(11, 79, 140, 0.5);
  color: var(--brand-700);
  font-weight: 700;
  text-align: center;
  background: rgba(11, 79, 140, 0.06);
}

.media-ghost span {
  display: block;
  max-width: 90%;
  line-height: 1.4;
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.7rem;
  background: rgba(15, 123, 215, 0.95);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.media-caption {
  color: var(--muted);
  line-height: 1.6;
}

.media-caption strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
}

@media (max-width: 960px) {
  .media-block {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
  background: #fff;
  color: var(--text);
  padding: 0.8rem 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-kicker {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 38px;
  width: auto;
}

.logo-name {
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.home-banner {
  padding: 0.55rem 0.9rem;
  background: var(--muted-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
}

.home-banner:hover { background: #e8ebf0; text-decoration: none; }

.logo a:hover { color: var(--brand-600); text-decoration: none; }

nav ul {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

nav { position: relative; }

nav li { position: relative; }

nav ul ul {
  margin-top: 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  display: block;
  position: static;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta .btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
}

.nav-cta .btn:hover,
.nav-cta .btn:focus-visible {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

nav a:hover,
nav a:focus-visible {
  color: var(--brand-700);
  background: #e8ecf2;
  text-decoration: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

  .menu-toggle__icon { font-size: 1.1rem; }

  @media (max-width: 768px) {
    .menu-toggle { display: block; }

    .desktop-only { display: none; }

    #site-navigation {
      display: none;
      position: absolute;
      top: 64px;
      left: 0;
      right: 0;
      background: #0f172a;
      color: #fff;
      padding: 1rem 1.25rem 1.5rem;
      box-shadow: 0 16px 30px rgba(0,0,0,0.16);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      z-index: 20;
    }

    #site-navigation.active { display: block; }

    #site-navigation ul {
      flex-direction: column;
      gap: 0.5rem;
      align-items: flex-start;
    }

    #site-navigation a {
      width: 100%;
      color: #fff;
    }

    #site-navigation a:hover,
    #site-navigation a:focus-visible {
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
    }

    .nav-cta {
      width: 100%;
      margin-top: 0.75rem;
      border-top: 1px solid rgba(255,255,255,0.12);
      padding-top: 0.75rem;
    }

    .nav-cta .btn {
      width: 100%;
      align-items: center;
      text-align: left;
    }

    .archive-item {
      grid-template-columns: 1fr;
    }
  }

.floating-cta {
  position: fixed;
  right: 1.2rem;
  top: 45%;
  transform: translateY(-50%);
  z-index: 50;
}

.floating-cta .btn {
  border-radius: var(--radius-md);
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.floating-cta .btn:hover,
.floating-cta .btn:focus-visible {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1024px) {
  .floating-cta {
    top: auto;
    bottom: 1.1rem;
    left: 1.1rem;
    right: 1.1rem;
    transform: none;
  }

  .floating-cta .btn {
    width: 100%;
    justify-content: center;
    align-items: center;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(90deg, rgba(7, 44, 79, 0.9), rgba(11, 79, 140, 0.88));
  color: white;
  padding: 4.5rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.hero .container { max-width: 980px; position: relative; z-index: 1; }

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 3vw + 1.6rem, 3.5rem);
}

.hero-definition {
  font-size: 0.98rem;
  margin: -0.3rem auto 1rem;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.01em;
}

.hero p {
  font-size: 1.08rem;
  margin-bottom: 2rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Buttons & CTAs
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand-700);
  color: #fff;
  border-color: var(--brand-700);
}

.btn-ghost {
  background: #fff;
  color: var(--brand-700);
  border: 1px solid var(--brand-700);
}

.btn-primary:hover {
  background: var(--brand-600);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-600);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--muted-surface);
  text-decoration: none;
  border-color: rgba(15, 123, 215, 0.35);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(10, 79, 140, 0.35); }

.cta-banner {
  background: #fff;
  color: var(--text);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 3rem 0;
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: none;
}

.cta-banner h2 {
  color: var(--text);
  border: none;
  margin-bottom: 1.25rem;
}

.cta-banner p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
}

/* ========================================
   Content Sections
   ======================================== */
.content-block {
  background: transparent;
  padding: 1.5rem 0;
  border-radius: 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-block h3 { margin-top: 0; color: var(--text); letter-spacing: -0.01em; }

/* ========================================
   Grid & Cards
   ======================================== */
.grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.25rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--brand-700);
  background: #f8fafc;
}

.card h3 { margin-top: 0; color: var(--text); }
.card p { color: var(--muted); }
.card .card-body { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; }
.card .work-structure {
  font-size: 0.98rem;
  line-height: 1.6;
  background: transparent;
  border-left: 3px solid var(--brand-600);
  padding: 0.35rem 0.6rem;
  border-radius: 0;
}
.card-thumb { margin: 0 0 0.75rem; overflow: hidden; border: 1px solid var(--border); border-radius: 0; }
.card-thumb img { width: 100%; height: 220px; display: block; object-fit: cover; }
.text-link { color: var(--brand); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.text-link:hover { color: var(--brand-600); text-decoration: underline; }
.list-block { border: 1px solid var(--border); border-radius: 0; background: #fff; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.list-item { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.list-thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: 0; overflow: hidden; border: 1px solid var(--border); background: #fff; display: inline-flex; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-item:last-child { border-bottom: none; padding-bottom: 0; }

/* ========================================
   FAQ Section
   ======================================== */
.faq-section { margin: 3rem 0; }

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

details { padding: 1rem 1.25rem; cursor: pointer; }

details summary {
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details summary:hover { color: var(--brand-700); }

details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

details p { margin: 0; color: var(--muted); }

/* ========================================
   Footer
   ======================================== */
footer {
  background: linear-gradient(180deg, #0c1a2f, #0a1324);
  color: #e8edf7;
  padding: 3.25rem 1.5rem 1.75rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 { color: #fff; border: none; margin-bottom: 1rem; letter-spacing: -0.01em; }

.footer-section ul { list-style: none; }

.footer-section a {
  color: #cfd4e3;
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-section a:hover { color: #ffffff; text-decoration: underline; }

.footer-nav ul { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 0.55rem; }
.footer-nav a { padding: 0.25rem 0; display: block; }
.footer-nav ul ul {
  margin-top: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #cfd4e3;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pagination a:hover {
  background-color: var(--muted-surface);
  color: var(--brand-700);
  text-decoration: none;
  border-color: rgba(31, 111, 235, 0.35);
}

.pagination .current {
  background-color: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 10px 20px rgba(31, 111, 235, 0.15);
}

/* ========================================
   Error Page
   ======================================== */
.error-404 {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.error-404 h1 { margin-top: 0; }
.error-404 p { color: var(--muted); }
.error-links { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.5rem; }
.error-links a { color: var(--brand-600); }

/* ========================================
   Forms
   ======================================== */
form { margin: 2rem 0; }

.download-form {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.download-form h2 {
  margin-top: 0;
  color: var(--text);
}

.download-form p { color: var(--muted); }

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.14);
}

textarea { resize: vertical; min-height: 160px; }

/* ========================================
   Posts & Archives
   ======================================== */
.post,
.archive-item {
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.archive-header {
  padding: 1rem 0 1.4rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}

.archive-header h1 { margin: 0 0 0.35rem; }

.archive-header p,
.archive-description { color: var(--muted); margin: 0; }

.archive-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}

.archive-thumb-small { width: 120px; height: 90px; }

.archive-thumb-small .thumb-placeholder {
  width: 100%;
  height: 100%;
}

.archive-body h2 { margin-top: 0; }

.archive-thumb-small img,
.archive-thumbnail img { border-radius: var(--radius-sm); width: 100%; height: auto; object-fit: cover; }

.thumb-placeholder {
  width: var(--thumb-w, 100%);
  height: var(--thumb-h, 120px);
  background: linear-gradient(135deg, rgba(11, 79, 140, 0.08), rgba(11, 79, 140, 0.02));
  border: 1px dashed rgba(11, 79, 140, 0.4);
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.post h2 a,
.archive-item h2 a { color: var(--text); }

.post-meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

.single-meta { color: var(--muted); margin-bottom: 1rem; }
.single-content img { max-width: 100%; border-radius: var(--radius-sm); }
.single-content p { color: var(--muted); }
.single-content h2,
.single-content h3 { margin-top: 1.5em; }
.single-content ul { padding-left: 1.2rem; }

.archive-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.archive-card {
  background: #fff;
  border-radius: 0;
  padding: 1.1rem;
  border: 1px solid var(--border);
}

.archive-card h3 { margin-top: 0; color: var(--text); }

.single-content img { max-width: 100%; border-radius: var(--radius-sm); }

/* ========================================
   Tables
   ======================================== */
table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }

th, td { border: 1px solid var(--border); padding: 0.9rem 1rem; text-align: left; }

th { background: var(--muted-surface); color: var(--text); }

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 992px) {
  main { padding: 2.5rem 1.25rem; }
  .section { padding: 2rem 0; }
  .hero { padding: 3.5rem 1.25rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  .hero { padding: 3rem 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  main { padding: 1.5rem 1.25rem; }
  .section { padding: 1.5rem 0; }
  .content-block { padding: 1.5rem; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  nav ul { gap: 0.8rem; }
  .logo img { height: 32px; }
}