/* IME — blog article styles.
   Shared by every article page (Blog1–Blog4). Previously duplicated
   inline in each file.

   Header and footer are NOT here: every blog page links tokens.css,
   header.css and footer.css for those, exactly like index.php does.
   The palette below is the article palette only, and its names are
   prefixed --b-* so they cannot shadow the site tokens the shared
   header and footer read. */
:root {
  --b-ink: #0A0F1E;
  --ink2: #1E2535;
  --b-muted: #6B7280;
  --faint: #9CA3AF;
  --border: #E5E7EB;
  --border2: #F3F4F6;
  --bg: #F8F9FB;
  --b-white: #fff;
  --b-blue: #1B5EF7;
  --blue-l: #EEF4FF;
  --blue-b: #C7D7FF;
  --green: #00A878;
  --green-l: #E6F7F3;
  --amber: #F59E0B;
  --b-navy: #061530;
  --navy2: #0A1F42;
  --b-ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--b-white);
  color: var(--b-ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(27, 94, 247, .18);
}

.sp {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--b-blue), var(--green));
  z-index: 300;
  transition: width .08s linear;
}

.art-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 20px;
}

.art-crumb {
  padding: 28px 0 0;
  font-size: .84rem;
  color: var(--b-muted);
}

.art-crumb a {
  color: var(--b-blue);
  font-weight: 600;
}

.art-crumb span {
  margin: 0 6px;
  opacity: .5;
}

.art-cat {
  display: inline-block;
  margin: 28px 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.art-cat.green {
  background: var(--green-l);
  color: var(--green);
}

.art-cat.amber {
  background: #FEF3E2;
  color: #B45309;
}

.art-cat.blue {
  background: var(--blue-l);
  color: var(--b-blue);
}

.art-cat.navy {
  background: #EAF0FB;
  color: var(--navy2);
}

.art-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--b-ink);
  margin-bottom: 14px;
}

.art-dek {
  font-size: 1.08rem;
  color: var(--b-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.art-hero {
  width: 100%;
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 20px 50px -20px rgba(10, 15, 30, .25);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media(max-width:600px) {
  .art-hero {
    height: 260px;
  }
}

.art-hero-cap {
  font-size: .82rem;
  color: var(--faint);
  font-style: italic;
  margin-bottom: 34px;
  line-height: 1.5;
}

.art-toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 36px;
}

.art-toc h3 {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--b-muted);
  margin-bottom: 14px;
}

.art-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

@media(max-width:600px) {
  .art-toc ol {
    columns: 1;
  }
}

.art-toc li {
  counter-increment: toc;
  margin-bottom: 10px;
  break-inside: avoid;
}

.art-toc a {
  font-size: .92rem;
  color: var(--ink2);
  font-weight: 600;
  display: flex;
  gap: 8px;
}

.art-toc a:hover {
  color: var(--b-blue);
}

.art-toc a::before {
  content: counter(toc);
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--blue-l);
  color: var(--b-blue);
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--blue-l);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 40px;
}

.art-author-av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--b-blue), #0040cc);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex: none;
}

.art-author-card h4 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}

.art-author-card .an {
  font-size: 1rem;
  font-weight: 800;
  color: var(--b-ink);
  margin-bottom: 4px;
}

.art-author-card .ab {
  font-size: .86rem;
  color: var(--ink2);
  line-height: 1.55;
}

.art-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink2);
}

.art-body p {
  margin-bottom: 24px;
}

.art-body h2 {
  font-size: 1.44rem;
  font-weight: 800;
  color: var(--b-ink);
  letter-spacing: -.01em;
  margin: 42px 0 16px;
  scroll-margin-top: 100px;
}

.art-body h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--b-ink);
  margin: 26px 0 10px;
}

.art-body ul {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.art-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
}

.art-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--b-blue);
}

.art-body ul.plain li::before {
  display: none;
}

.art-body ul.plain li {
  padding-left: 0;
}

.art-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.art-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

.art-table th {
  background: var(--b-navy);
  color: #fff;
  text-align: left;
  padding: 13px 18px;
  font-weight: 700;
  font-size: .84rem;
}

.art-table td {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  color: var(--ink2);
}

.art-table tr:nth-child(even) td {
  background: var(--bg);
}

.art-cta {
  margin-top: 40px;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--b-blue), var(--b-navy));
  text-align: center;
}

.art-cta h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.art-cta p {
  color: #cfe0ff;
  font-size: .94rem;
  margin-bottom: 20px !important;
}

.art-cta a {
  display: inline-block;
  background: #fff;
  color: var(--b-navy);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: .92rem;
  transition: transform .2s ease;
}

.art-cta a:hover {
  transform: translateY(-2px);
}

.art-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.art-share span {
  font-size: .8rem;
  font-weight: 700;
  color: var(--b-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.art-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--b-ink);
  transition: all .2s ease;
}

.art-share a:hover {
  background: var(--b-blue);
  color: #fff;
  border-color: var(--b-blue);
}

.related-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--b-ink);
  margin-bottom: 24px;
  margin-top: 8px;
}

.related-wrap {
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media(max-width:900px) {
  .related-wrap {
    grid-template-columns: 1fr;
  }
}

.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.rv.in {
  opacity: 1;
  transform: translateY(0);
}



.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s var(--b-ease), box-shadow .3s var(--b-ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(10, 15, 30, .16);
}

.ac-image {
  height: 170px;
  position: relative;
  overflow: hidden;
  flex: none;
}

.ac-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .5s var(--b-ease);
}

.article-card:hover .ac-image img {
  transform: scale(1.06);
}

.ac-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

.ac-cat-badge.green {
  background: var(--green);
}

.ac-cat-badge.amber {
  background: var(--amber);
}

.ac-cat-badge.blue {
  background: var(--b-blue);
}

.ac-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ac-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--b-ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}

.ac-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ac-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--b-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 800;
}

.ac-author-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--b-muted);
}

.nl-band {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
  margin-top: 20px;
}

.nl-band h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--b-ink);
  margin-bottom: 8px;
}

.nl-band p {
  font-size: .92rem;
  color: var(--b-muted);
  margin-bottom: 22px;
}

.nl-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.nl-form input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .9rem;
  font-family: inherit;
}

.nl-form input:focus {
  outline: 2px solid var(--b-blue);
  outline-offset: 1px;
}

.nl-form button {
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  background: var(--b-navy);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}

.nl-form button:hover {
  background: var(--b-blue);
  transform: translateY(-2px);
}

@media(max-width:480px) {
  .nl-form {
    flex-direction: column;
  }
}
