/*
Theme Name: AI-Insight Hub Child
Theme URI: https://aiinsighthub.cc
Description: Child theme for AI-Insight Hub redesign step2 based on v2 mockup.
Author: AI-Insight Hub Dev
Template: generatepress
Version: 0.1.6
Text Domain: aiinsighthub-child
*/

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111827;
  min-height: 100vh;
  line-height: 1.6;
  margin: 0;
}

body,
button,
input,
select,
textarea {
  font-family: 'Inter', sans-serif !important;
}

h1,
.display-xl,
.entry-title,
.site-main h1 {
  font-family: 'Lora', serif !important;
}

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

a:hover {
  color: #1d4ed8;
}

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

.aiih-site {
  background: #ffffff;
}

.aiih-container {
  width: min(100%, 1152px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

nav.aiih-nav {
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.aiih-nav-inner {
  min-height: 72px;
  position: relative;
}

.aiih-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aiih-logo-mark {
  width: 28px;
  height: 28px;
  background: #111827;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.aiih-logo-mark-footer {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  font-size: 0.55rem;
}

.aiih-logo-mark-with-image {
  background: transparent;
  color: inherit;
  overflow: hidden;
}

.aiih-logo-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aiih-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #111827;
}

.ai-menu-list,
.ai-menu-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-menu-list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.ai-menu-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.15s;
  letter-spacing: 0;
}

.ai-menu-list a:hover,
.ai-menu-list .current-menu-item > a,
.ai-menu-list .current-menu-parent > a {
  color: #111827;
}

.ai-menu-fallback {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ai-menu-fallback a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.aiih-mobile-menu {
  display: none;
}

.aiih-mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.aiih-mobile-menu-toggle::-webkit-details-marker {
  display: none;
}

.aiih-mobile-menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.aiih-mobile-menu-icon span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.aiih-mobile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  right: 20px;
  display: none;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
  z-index: 80;
}

.aiih-mobile-menu[open] .aiih-mobile-menu-panel {
  display: block;
}

.ai-menu-list-mobile {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.ai-menu-list-mobile a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
}

.ai-menu-list-mobile a:hover,
.ai-menu-list-mobile .current-menu-item > a,
.ai-menu-list-mobile .current-menu-parent > a {
  background: #f9fafb;
}

.display-xl {
  font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #111827;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.aiih-home-hero-title,
.aiih-single-title,
.aiih-archive-title {
  font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.aiih-home-hero-title {
  max-width: 720px;
}

.aiih-hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
}

.aiih-hero-copy {
  max-width: 52rem;
}

.aiih-hero-title {
  margin-bottom: 2rem;
}

.aiih-hero-lead {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.aiih-hero-media {
  display: block;
  width: 100%;
  max-width: 640px;
  justify-self: end;
  border-radius: 10px;
  overflow: hidden;
}

.aiih-hero-media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.serif-lead {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.75;
  font-style: italic;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  transition: color 0.15s;
}

.tag:hover {
  color: #1e40af;
}

.divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 0;
}

.btn-primary {
  display: inline-block;
  background: #111827;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: #111827;
  color: #111827;
}

.btn-rss {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-rss:hover {
  border-color: #f97316;
  color: #f97316;
}

.btn-rss .rss-dot {
  color: #f97316;
  font-size: 1rem;
}

.article-card {
  transition: all 0.2s;
}

.card-title {
  letter-spacing: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.article-card:hover .card-title {
  color: #1d4ed8;
}

.article-card .card-img {
  transition: transform 0.3s;
  overflow: hidden;
}

.article-card:hover .card-img img,
.article-card:hover .card-img .img-ph {
  transform: scale(1.02);
}

.img-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.3s;
  background: #f3f4f6;
}

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111827;
}

.recent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.15s;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-item:hover .recent-title {
  color: #1d4ed8;
}

.recent-num {
  flex: 0 0 20px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #e5e7eb;
  min-width: 20px;
  padding-top: 2px;
}

.recent-body {
  flex: 1 1 auto;
  min-width: 0;
}

.recent-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f9fafb;
}

.recent-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-thumb .aiih-card-thumb-fallback-label {
  font-size: 0.58rem;
  line-height: 1.15;
}

.follow-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 28px;
}

.follow-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.15s;
}

.follow-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.follow-link:hover {
  color: #111827;
}

.follow-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cat-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.cat-row:last-child {
  border-bottom: none;
}

.cat-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.15s;
}

.cat-row:hover .cat-name {
  color: #1d4ed8;
}

.cat-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.15s;
  margin: 4px;
}

.cat-tag:hover {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.aiih-section-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

.aiih-footer-link {
  font-size: 0.875rem;
  color: #6b7280;
  transition: color 0.15s;
}

.aiih-footer-link:hover {
  color: #111827;
}

.tracking-tight {
  letter-spacing: 0 !important;
}

.aiih-entry-content > * {
  margin-top: 0;
  margin-bottom: 1.55rem;
}

.aiih-entry-content > :last-child {
  margin-bottom: 0;
}

.aiih-entry-content p,
.aiih-entry-content li {
  line-height: 1.95;
}

@media (min-width: 769px) {
  .aiih-entry-content {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Pretendard", "Segoe UI", "Inter", sans-serif;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.86;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .aiih-entry-content p,
  .aiih-entry-content li {
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.86;
    color: inherit;
  }

  .aiih-entry-content blockquote {
    font-family: inherit;
    font-size: 1.02rem;
    line-height: 1.8;
    letter-spacing: 0;
  }

  .aiih-entry-content figcaption {
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.65;
    letter-spacing: 0;
  }
}

.aiih-main-featured {
  border-radius: 10px;
  overflow: hidden;
}

.aiih-main-featured .wp-post-image,
.aiih-main-featured img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.aiih-pick-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 16px;
  align-items: center;
}

.aiih-pick-thumb,
.aiih-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #f9fafb;
  color: #d1d5db;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.aiih-pick-thumb {
  aspect-ratio: 4 / 3;
}

.aiih-card-thumb {
  aspect-ratio: 4 / 3;
}

.aiih-pick-thumb img,
.aiih-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aiih-card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 12px;
  border-radius: inherit;
  color: #374151;
  overflow: hidden;
  text-align: center;
}

.aiih-main-featured > .aiih-card-thumb-fallback {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border-radius: 6px;
}

.aiih-card-thumb-fallback-label {
  display: block;
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.aiih-main-featured .aiih-card-thumb-fallback-label {
  font-size: 1rem;
}

.aiih-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #f3f4f6;
}

.aiih-list-card-body {
  min-width: 0;
}

.aiih-list-card-text-link {
  display: block;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.aiih-list-card-text-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 5px;
}


.aiih-list-card-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.aiih-category-badge {
  display: inline-flex;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.aiih-category-separator {
  color: #9CA3AF;
  font-size: 0.72rem;
  line-height: 1;
  margin: 0 1px;
}

.aiih-list-card-title {
  margin-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Pretendard", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.52;
  letter-spacing: -0.025em;
  color: #111827;
}

.aiih-list-card-excerpt {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.78;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.aiih-list-card-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.aiih-share {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

.aiih-share-title {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.aiih-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aiih-share-button {
  --aiih-share-bg: #ffffff;
  --aiih-share-fg: #374151;
  --aiih-share-border: #e5e7eb;
  --aiih-share-shadow: rgba(17, 24, 39, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--aiih-share-border);
  border-radius: 999px;
  background: var(--aiih-share-bg);
  color: var(--aiih-share-fg);
  box-shadow: 0 8px 18px var(--aiih-share-shadow);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.aiih-share-button::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
}

.aiih-share-button:hover,
.aiih-share-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px var(--aiih-share-shadow);
  filter: brightness(0.98);
  outline: none;
}

.aiih-share-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.aiih-share-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.aiih-share-button-x {
  --aiih-share-bg: #000000;
  --aiih-share-fg: #ffffff;
  --aiih-share-border: #000000;
  --aiih-share-shadow: rgba(0, 0, 0, 0.18);
}

.aiih-share-button-x::before {
  content: "𝕏";
}

.aiih-share-button-threads {
  --aiih-share-bg: #101010;
  --aiih-share-fg: #ffffff;
  --aiih-share-border: #101010;
  --aiih-share-shadow: rgba(16, 16, 16, 0.18);
}

.aiih-share-button-threads::before {
  content: "@";
  font-family: ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aiih-share-button-instagram {
  --aiih-share-bg: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 72%, #515bd4 100%);
  --aiih-share-fg: #ffffff;
  --aiih-share-border: rgba(221, 42, 123, 0.32);
  --aiih-share-shadow: rgba(221, 42, 123, 0.24);
}

.aiih-share-button-instagram::before {
  content: "◎";
}

.aiih-share-button-kakao {
  --aiih-share-bg: #fee500;
  --aiih-share-fg: #191919;
  --aiih-share-border: #f2d900;
  --aiih-share-shadow: rgba(254, 229, 0, 0.28);
}

.aiih-share-button-kakao::before {
  content: "톡";
  width: 22px;
  font-size: 0.7rem;
  letter-spacing: -0.08em;
}

.aiih-share-copy {
  --aiih-share-bg: #f8fafc;
  --aiih-share-fg: #334155;
  --aiih-share-border: #cbd5e1;
  --aiih-share-shadow: rgba(51, 65, 85, 0.10);
}

.aiih-share-copy::before {
  content: "↗";
  font-size: 0.92rem;
}

.aiih-share-status {
  min-height: 1.4rem;
  margin: 0.65rem 0 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.aiih-entry-content h2,
.aiih-entry-content h3,
.aiih-entry-content h4 {
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Pretendard", "Segoe UI", "Inter", sans-serif;
  letter-spacing: 0;
  color: #111827;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
  scroll-margin-top: 96px;
}

.aiih-entry-content h2 {
  position: relative;
  padding: 1.05rem 0 0.55rem;
  border-top: 1px solid #e5e7eb;
  font-size: 1.68rem;
  font-weight: 800;
  line-height: 1.42;
}

.aiih-entry-content h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 1px;
  background: #111827;
}

.aiih-entry-content h3 {
  position: relative;
  padding-bottom: 0.45rem;
  font-size: 1.24rem;
  font-weight: 850;
  line-height: 1.46;
}

.aiih-entry-content h3::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 0.55rem;
  background: #d1d5db;
}

.aiih-entry-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

.aiih-entry-content ul,
.aiih-entry-content ol {
  padding-left: 1.35rem;
  margin-bottom: 1.4rem;
}

.aiih-entry-content table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.aiih-entry-content th,
.aiih-entry-content td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

.aiih-entry-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.aiih-entry-content .aiih-table-scroll {
  max-width: 100%;
}

.aiih-entry-content figure,
.aiih-entry-content blockquote,
.aiih-entry-content pre {
  margin: 1.8rem 0;
}

.aiih-empty-state {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 22px;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.aiih-pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.aiih-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aiih-pagination ul.page-numbers li {
  display: flex;
  margin: 0;
  padding: 0;
}

.aiih-pagination a.page-numbers,
.aiih-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 38px;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1;
  white-space: nowrap;
}

.aiih-pagination span.page-numbers.current {
  border-color: #111827;
  color: #111827;
  font-weight: 600;
}

.aiih-pagination span.page-numbers.dots {
  min-width: auto;
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}

@media (max-width: 480px) {
  .aiih-pagination {
    gap: 6px;
  }

  .aiih-pagination ul.page-numbers {
    gap: 6px;
  }

  .aiih-pagination a.page-numbers,
  .aiih-pagination span.page-numbers {
    min-width: 34px;
    height: 34px;
    padding: 7px 10px;
    font-size: 0.8rem;
  }
}

.aiih-search-form {
  display: flex;
  gap: 8px;
}

.aiih-search-form input[type='search'] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 0.9rem;
}

.aiih-search-form button {
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 1240px) {
  .aiih-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ai-menu-list-desktop {
    display: none;
  }

  .aiih-mobile-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .aiih-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .aiih-entry-content table {
    font-size: 0.92rem;
  }

  .aiih-entry-content th,
  .aiih-entry-content td {
    padding: 0.5rem;
  }

  .aiih-entry-content h2,
  .aiih-entry-content h3,
  .aiih-entry-content h4 {
    margin-top: 2.2rem;
  }

  .aiih-entry-content h2 {
    padding: 0.95rem 0 0.45rem;
    font-size: 1.48rem;
  }

  .aiih-entry-content h2::before {
    width: 2.75rem;
  }

  .aiih-entry-content h3 {
    font-size: 1.17rem;
  }

  .aiih-entry-content .aiih-table-scroll {
    display: block;
    max-width: 100%;
    margin: 1.5rem 0 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .aiih-entry-content .aiih-table-scroll table {
    width: max-content;
    min-width: 40rem;
    max-width: none;
    margin: 0;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 0.92rem;
  }

  .aiih-entry-content .aiih-table-scroll th,
  .aiih-entry-content .aiih-table-scroll td {
    min-width: 9rem;
    padding: 0.65rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
    line-height: 1.55;
    vertical-align: top;
  }

  .aiih-entry-content .aiih-table-scroll th:first-child,
  .aiih-entry-content .aiih-table-scroll td:first-child {
    min-width: 5.75rem;
  }

  .display-xl {
    font-size: clamp(1.875rem, 5.5vw, 2.5rem);
    line-height: 1.35;
  }

  .aiih-home-hero-title {
    font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  }

  .aiih-single-title {
    font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  }

  .aiih-list-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
    padding: 20px 0;
  }

  
.aiih-list-card-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.aiih-category-badge {
  display: inline-flex;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.aiih-category-separator {
  color: #9CA3AF;
  font-size: 0.72rem;
  line-height: 1;
  margin: 0 1px;
}

.aiih-list-card-title {
    font-size: 1rem;
    line-height: 1.48;
  }

  .aiih-list-card-excerpt {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .aiih-pick-list-card {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 12px;
  }

  .aiih-share-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .aiih-share-button {
    width: auto;
  }

  .aiih-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .aiih-hero-title {
    margin-bottom: 1.4rem;
  }

  .follow-section {
    padding: 20px;
  }

  .aiih-nav-inner {
    gap: 10px;
  }

  .btn-rss {
    padding: 10px 12px;
  }

  .aiih-mobile-menu-panel {
    left: 16px;
    right: 16px;
  }

  .aiih-footer-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .aiih-list-card {
    grid-template-columns: 1fr;
  }

  .aiih-card-thumb {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .aiih-share-actions {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
