@charset "UTF-8";

/* ============================================================
   lovinweb magazine — TCD036 MAG Style CSS
   Pure CSS (no framework)
   ============================================================ */

/* Google Fonts: loaded via <link> in HTML for performance */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg: #ffffff;
  --card-bg: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --header-bg: #0c1929;
  --header-bg-alt: #152d50;
  --text: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #bfdbfe;
  --border-light: #dbeafe;
  --font-heading: 'Shippori Mincho', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
  --sidebar-width: 320px;
  --gap: 40px;
  --radius: 2px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.4; }

/* ---------- Layout ---------- */
.mag-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5px;
  background: #fff;
}
.footer-banner .mag-container {
  background: transparent;
}
.mag-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
}
.mag-main { min-width: 0; }
.mag-sidebar { position: sticky; top: 80px; }

/* ---------- Header ---------- */
.mag-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.mag-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.mag-logo a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
}
.mag-logo a span {
  color: var(--accent);
}
.mag-logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  color: #9ca3af !important;
  display: inline;
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  vertical-align: middle;
  opacity: 0.9;
}
.mag-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.mag-nav a {
  color: #ccc;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 20px 16px;
  transition: color .2s, background .2s;
}
.mag-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.mag-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mag-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.mag-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mag-hamburger.active span:nth-child(2) { opacity: 0; }
.mag-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero / Tagline ---------- */
.mag-hero {
  background: linear-gradient(160deg, #0c1929 0%, #152d50 55%, #1e3a5f 100%);
  text-align: center;
  padding: 48px 20px 40px;
}
.mag-hero-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.mag-hero-title span { color: #60a5fa; }
.mag-hero-sub {
  font-size: 14px;
  color: #aaa;
  letter-spacing: 1px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ---------- Article Cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.article-card a { color: inherit; display: block; }
.article-card-img {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.article-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .article-card-img img {
  transform: scale(1.05);
}
.article-card-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.cat-label {
  position: absolute;
  top: 12px;
  left: 0;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
}
.article-card-body { padding: 20px; }
.article-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-card-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-readmore {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 12px;
  letter-spacing: 0.5px;
}
.article-card-readmore:hover { color: var(--accent-hover); }

/* Featured Card (top page) */
.article-card--featured {
  grid-column: 1 / -1;
}
.article-card--featured .article-card-img { padding-top: 45%; }
.article-card--featured .article-card-title { font-size: 22px; }
.article-card--featured .article-card-excerpt { -webkit-line-clamp: 4; }

/* ---------- Sidebar ---------- */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.sidebar-widget-title {
  background: var(--header-bg-alt);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
}
.sidebar-widget-body { padding: 16px 20px; }

/* Sidebar: Profile */
.sidebar-profile { text-align: center; padding: 24px 20px; }
.sidebar-profile-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sidebar-profile-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Sidebar: Category List */
.sidebar-cat-list li {
  border-bottom: 1px solid var(--border-light);
}
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text);
}
.sidebar-cat-list a:hover { color: var(--accent); }
.sidebar-cat-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Sidebar: Post List (Popular / New) */
.sidebar-post-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-thumb {
  width: 70px; height: 50px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-title:hover { color: var(--accent); }
.sidebar-post-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sidebar: Search */
.sidebar-search {
  display: flex;
  gap: 0;
}
.sidebar-search input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
}
.sidebar-search input:focus { border-color: var(--accent); }
.sidebar-search button {
  background: var(--header-bg-alt);
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.sidebar-search button:hover { background: var(--accent); }

/* Sidebar: Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.tag-cloud a:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Article Page ---------- */
.article-header { margin-bottom: 32px; }
.article-cat-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 12px;
}
.article-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  align-items: center;
}
.article-meta time { display: flex; align-items: center; gap: 4px; }

.article-eyecatch {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 32px;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c0 50%, #d4c0a8 100%);
  aspect-ratio: 16/9;
}
.article-eyecatch img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* TOC */
.toc {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.toc-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.toc ol { counter-reset: toc-counter; }
.toc li {
  counter-increment: toc-counter;
  padding: 6px 0;
  font-size: 13px;
}
.toc li::before {
  content: counter(toc-counter) ".";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}
.toc li a { color: var(--text); }
.toc li a:hover { color: var(--accent); }
.toc ol ol {
  margin-left: 24px;
  counter-reset: toc-sub;
}
.toc ol ol li { counter-increment: toc-sub; }
.toc ol ol li::before {
  content: counter(toc-counter) "." counter(toc-sub);
}

/* Article Body */
.article-body { margin-bottom: 48px; }
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding: 16px 0 16px 20px;
  margin: 48px 0 24px;
  border-left: 4px solid var(--accent);
  background: #fafafa;
}
.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 8px;
  margin: 36px 0 16px;
  border-bottom: 1px solid var(--border);
}
.article-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 12px;
}
.article-body p {
  margin-bottom: 20px;
  line-height: 2;
}
.article-body ul, .article-body ol {
  margin: 16px 0 20px 24px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: #eff6ff;
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-light);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-body th {
  background: #f5f5f5;
  font-weight: 700;
}
.article-body strong { font-weight: 700; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
}
.article-body img {
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Inline Tool Promo */
.tool-promo-inline {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #93c5fd;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tool-promo-inline-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.tool-promo-inline-text { flex: 1; }
.tool-promo-inline-text p {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}
.tool-promo-inline-text a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.tool-promo-inline-text a:hover { text-decoration: underline; }

/* FAQ Section */
.faq-section {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
}
.faq-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.faq-item { margin-bottom: 20px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 12px 16px;
  background: #fff;
  border-left: 3px solid var(--accent);
  margin-bottom: 8px;
}
.faq-q::before {
  content: "Q.";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}
.faq-a {
  font-size: 14px;
  color: var(--text-light);
  padding: 8px 16px 8px 28px;
  line-height: 1.8;
}
.faq-a::before {
  content: "A.";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* Related Articles */
.related-articles { margin: 48px 0; }
.related-articles .sidebar-widget { max-width: 100%; }
.related-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Footer Banner ---------- */
.footer-banner {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #3b82f6 100%);
  color: #fff;
  text-align: center;
  padding: 40px 24px;
  margin: 0;
}
.footer-banner-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-banner-desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.footer-banner-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.footer-banner-links a {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background .2s;
}
.footer-banner-links a:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
}
.footer-banner-links a.banner-cta-main {
  background: #fff;
  color: var(--accent);
}
.footer-banner-links a.banner-cta-main:hover {
  background: #f5f5f5;
}

/* ---------- Operator Info (LLMO) ---------- */
.operator-info {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 32px 0;
}
.operator-info-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.operator-info dl {
  font-size: 12px;
  color: #fff;
}
.operator-info dt {
  font-weight: 700;
  color: #fff;
  min-width: 6rem;
  display: inline-block;
}
.operator-info dd {
  display: inline;
  margin-bottom: 8px;
}
.operator-info .info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.operator-info a { color: #fff; text-decoration: underline; }

/* ---------- SNS Share ---------- */
.sns-share { margin: 24px 0; }
.sns-share-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sns-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  color: #fff;
  transition: opacity .2s;
}
.sns-btn:hover { opacity: 0.85; color: #fff; }
.sns-btn svg { width: 14px; height: 14px; fill: currentColor; }
.sns-btn--x { background: #000; }
.sns-btn--fb { background: #1877f2; }
.sns-btn--line { background: #06c755; }
.sns-btn--hatena { background: #00a4de; }
.sns-btn--pocket { background: #ef3f56; }
.sns-btn--linkedin { background: #0a66c2; }
.sns-btn--threads { background: #000; }
.sns-btn--pinterest { background: #e60023; }
.sns-btn--copy {
  background: #fff;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.sns-btn--copy:hover { background: #f5f5f5; color: var(--text); }

/* ---------- Footer ---------- */
.mag-footer {
  background: var(--header-bg);
  color: #fff;
  padding: 40px 0 24px;
  margin-top: 0;
  font-size: 12px;
}
.mag-footer a { color: #fff; }
.mag-footer a:hover { color: var(--accent); }
.mag-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.mag-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
}
.mag-footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.mag-footer-links li { margin-bottom: 8px; }
.mag-footer-links a { font-size: 12px; }
.mag-footer-disclaimer {
  font-size: 11px;
  color: #fff;
  line-height: 1.7;
  padding: 20px 0;
  border-top: 1px solid #555;
  margin-top: 20px;
}
.mag-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  font-size: 11px;
  color: #fff;
}
.mag-footer-bottom a { color: #fff; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 48px 0 24px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all .2s;
}
.pagination a {
  color: var(--text-light);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}
.pagination a:hover {
  color: #fff;
  background: var(--accent);
}
.pagination .current {
  color: #fff;
  background: var(--header-bg-alt);
}
.pagination .dots {
  width: auto;
  background: none;
  box-shadow: none;
  color: var(--text-muted);
}
.pagination-arrow {
  color: var(--accent) !important;
}
.pagination-arrow:hover {
  color: #fff !important;
}

/* ---------- Category Page Header ---------- */
.cat-header {
  background: var(--header-bg);
  border-left: 5px solid var(--accent);
  padding: 20px 24px;
  margin-bottom: 32px;
  border-radius: 2px;
}
.cat-header-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.cat-header-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 10px;
}
.cat-header-count {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ---------- Category Post List (TCD036 style) ---------- */
.cat-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cat-post-item {
  display: flex;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.cat-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.cat-post-img-link {
  flex: 0 0 240px;
  width: 240px;
  height: 144px;
  display: block;
  overflow: hidden;
  border-radius: 2px;
}
.cat-post-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cat-post-item:hover .cat-post-img-link img {
  transform: scale(1.05);
}
.cat-post-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
}
.cat-post-desc {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cat-post-date {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.cat-post-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}
.cat-post-title a {
  color: var(--text);
  text-decoration: none;
}
.cat-post-title a:hover {
  color: var(--accent);
}
.cat-post-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-post-more {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.cat-post-more:hover {
  color: var(--accent-hover);
}
@media (max-width: 640px) {
  .cat-post-item { flex-direction: column; gap: 12px; }
  .cat-post-img-link { flex: none; width: 100%; height: 200px; }
  .cat-post-title { font-size: 15px; }
}

/* ---------- Section Title ---------- */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--header-bg-alt);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: "";
  width: 4px; height: 20px;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  background: var(--header-bg-alt);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background .2s;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }

/* ---------- Search Results ---------- */
.search-results {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: -1px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
.search-results.active { display: block; }
.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item a { color: var(--text); display: block; }
.search-result-item a:hover { color: var(--accent); }
.search-result-cat {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Utility ---------- */
.content-area { padding: 32px 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .mag-grid {
    grid-template-columns: 1fr;
  }
  .mag-sidebar {
    position: static;
  }
  .mag-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .mag-nav.active { display: flex; }
  .mag-nav a { padding: 14px 20px; border-bottom: 1px solid #333; }
  .mag-hamburger { display: block; }
  .mag-hero-title { font-size: 32px; }
  .mag-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 22px; }
  .article-body h2 { font-size: 18px; padding: 12px 0 12px 16px; }
  .article-body h3 { font-size: 16px; }
  .mag-hero { padding: 32px 16px 28px; }
  .mag-hero-title { font-size: 26px; }
  .footer-banner { padding: 28px 16px; }
  .footer-banner-title { font-size: 17px; }
  .faq-section { padding: 20px; }
  .toc { padding: 16px; }
  .tool-promo-inline { flex-direction: column; text-align: center; }
}
