/*
Theme Name: TrafficLawFirm
Theme URI: https://trafficlawfirm.zibsuri.com
Author: Tion
Description: 교통사고 법률정보 검색 플랫폼 전용 테마 — 딥네이비·앰버 디자인 시스템
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: trafficlawfirm
*/

/* ============================================================
   1. Design Tokens (8pt scale)
   ============================================================ */
:root {
  --tl-navy: #1B2A4A;
  --tl-navy-deep: #14213D;
  --tl-navy-soft: #23375F;
  --tl-amber: #E8A33D;
  --tl-amber-strong: #D98F23;
  --tl-amber-soft: #F9EDD6;
  --tl-ivory: #F7F5F1;
  --tl-ink: #232936;
  --tl-muted: #5B6472;
  --tl-line: #E5E2DB;
  --tl-red: #C8452E;
  --tl-white: #FFFFFF;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgba(20,33,61,.06), 0 4px 14px rgba(20,33,61,.07);
  --shadow-m: 0 2px 4px rgba(20,33,61,.06), 0 14px 36px rgba(20,33,61,.11);
  --shadow-l: 0 8px 24px rgba(20,33,61,.14);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', Georgia, serif;

  --content-max: 760px;
  --wrap-max: 1200px;
  --radius-card: var(--radius-m);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tl-ink);
  background: var(--tl-white);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; }
a { color: var(--tl-navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tl-amber-strong); }
:focus-visible { outline: 3px solid var(--tl-amber); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--tl-navy); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   2. Layout
   ============================================================ */
.tl-wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 24px; }
.tl-section { padding: var(--space-7) 0; }
.tl-section--ivory { background: var(--tl-ivory); }
.tl-section--navy { background: var(--tl-navy); color: #fff; }

.tl-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--tl-amber-strong); text-transform: uppercase;
}
.tl-kicker::before { content: ""; width: 22px; height: 2px; background: var(--tl-amber); border-radius: 2px; }
.tl-section--navy .tl-kicker { color: var(--tl-amber); }

.tl-h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--tl-navy-deep);
  margin: 12px 0 16px;
}
.tl-section--navy .tl-h2 { color: #fff; }
.tl-lead { font-size: 17px; color: var(--tl-muted); max-width: 640px; line-height: 1.8; }
.tl-section--navy .tl-lead { color: rgba(255,255,255,.78); }

/* ============================================================
   3. Header / Nav
   ============================================================ */
.tl-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tl-line);
}
.tl-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.tl-brand { display: flex; align-items: center; gap: 12px; }
.tl-brand__mark { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; background: var(--tl-navy); }
.tl-brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: var(--tl-navy-deep); letter-spacing: -0.01em; line-height: 1.2; }
.tl-brand__sub { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--tl-muted); letter-spacing: .02em; }

.tl-nav { display: flex; align-items: center; gap: 4px; }
.tl-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 14.5px; font-weight: 600; color: var(--tl-ink); border-radius: 10px;
}
.tl-nav a:hover { background: var(--tl-ivory); color: var(--tl-navy-deep); }
.tl-nav a.tl-nav__cta {
  background: var(--tl-navy); color: #fff; margin-left: 8px; padding: 0 18px;
  border-radius: var(--radius-pill);
}
.tl-nav a.tl-nav__cta:hover { background: var(--tl-navy-soft); color: #fff; }

.tl-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.tl-burger span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--tl-navy-deep); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

@media (max-width: 980px) {
  .tl-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--tl-line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px;
    display: none; box-shadow: var(--shadow-m);
  }
  .tl-nav.is-open { display: flex; }
  .tl-nav a { padding: 12px 14px; border-radius: 10px; }
  .tl-burger { display: block; }
  body.nav-open { overflow: hidden; }
}

/* ============================================================
   4. Buttons
   ============================================================ */
.tl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.tl-btn--navy { background: var(--tl-navy); color: #fff; }
.tl-btn--navy:hover { background: var(--tl-navy-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.tl-btn--amber { background: var(--tl-amber); color: var(--tl-navy-deep); }
.tl-btn--amber:hover { background: var(--tl-amber-strong); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.tl-btn--ghost { background: transparent; color: var(--tl-navy-deep); border-color: var(--tl-line); }
.tl-btn--ghost:hover { border-color: var(--tl-navy); background: var(--tl-ivory); }
.tl-btn--white { background: #fff; color: var(--tl-navy-deep); }
.tl-btn--white:hover { background: var(--tl-ivory); transform: translateY(-1px); box-shadow: var(--shadow-m); }

/* ============================================================
   5. Hero
   ============================================================ */
.tl-hero {
  position: relative; overflow: hidden;
  background: var(--tl-navy-deep);
  color: #fff;
}
.tl-hero__media { position: absolute; inset: 0; }
.tl-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.tl-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,33,61,.94) 8%, rgba(20,33,61,.62) 48%, rgba(27,42,74,.35) 100%);
}
.tl-hero__inner { position: relative; z-index: 2; padding: 128px 0 120px; max-width: var(--wrap-max); margin: 0 auto; }
.tl-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--tl-amber);
  background: rgba(232,163,61,.14); border: 1px solid rgba(232,163,61,.4);
  padding: 8px 16px; border-radius: var(--radius-pill); margin-bottom: 24px;
}
.tl-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.18; letter-spacing: -0.02em;
  margin: 0 0 20px; max-width: 720px;
}
.tl-hero__sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; color: rgba(255,255,255,.85); max-width: 620px; margin: 0 0 36px; }
.tl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.tl-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: rgba(255,255,255,.75); }
.tl-hero__meta b { color: #fff; font-weight: 700; }

/* ============================================================
   6. Cards
   ============================================================ */
.tl-card {
  background: #fff; border: 1px solid var(--tl-line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-s); overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.tl-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tl-ivory); }
.tl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tl-card:hover .tl-card__media img { transform: scale(1.04); }
.tl-card__body { padding: 22px 24px 24px; }
.tl-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--tl-amber-strong); margin-bottom: 8px; display: block; }
.tl-card__title { font-family: var(--font-serif); font-size: 19px; line-height: 1.45; color: var(--tl-navy-deep); margin: 0 0 10px; }
.tl-card__title a { color: inherit; }
.tl-card__title a:hover { color: var(--tl-amber-strong); }
.tl-card__excerpt { font-size: 14.5px; color: var(--tl-muted); line-height: 1.75; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-card__more { font-size: 14px; font-weight: 700; color: var(--tl-navy); display: inline-flex; align-items: center; gap: 6px; }
.tl-card__more::after { content: "→"; transition: transform .2s ease; }
.tl-card:hover .tl-card__more::after { transform: translateX(4px); }

.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tl-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .tl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tl-grid, .tl-grid--2 { grid-template-columns: 1fr; } }

/* Carousel */
.tl-carousel { position: relative; }
.tl-carousel__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; scrollbar-width: none; }
.tl-carousel__track::-webkit-scrollbar { display: none; }
.tl-carousel__track .tl-card { flex: 0 0 320px; scroll-snap-align: start; }
@media (max-width: 640px) { .tl-carousel__track .tl-card { flex: 0 0 84%; } }

/* ============================================================
   7. Region search
   ============================================================ */
.tl-region { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tl-region__form { background: #fff; border: 1px solid var(--tl-line); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-s); }
.tl-region__row { margin-bottom: 18px; }
.tl-region__row label { display: block; font-size: 13px; font-weight: 700; color: var(--tl-navy-deep); margin-bottom: 8px; }
.tl-region__select {
  width: 100%; min-height: 48px; padding: 0 44px 0 16px;
  font-size: 15px; font-family: var(--font-sans); color: var(--tl-ink);
  border: 1px solid var(--tl-line); border-radius: 12px; background: var(--tl-white);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231B2A4A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.tl-region__select:disabled { background-color: var(--tl-ivory); color: var(--tl-muted); cursor: not-allowed; }
.tl-region__status { font-size: 13.5px; color: var(--tl-muted); min-height: 22px; margin-bottom: 14px; }
.tl-region__result { border-top: 1px solid var(--tl-line); padding-top: 20px; }
.tl-region__result h3 { font-family: var(--font-serif); font-size: 18px; color: var(--tl-navy-deep); margin: 0 0 16px; }
.tl-region__item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--tl-line); }
.tl-region__item:last-child { border-bottom: 0; }
.tl-region__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tl-amber-soft); color: var(--tl-amber-strong); display: grid; place-items: center; font-size: 18px; }
.tl-region__item b { display: block; font-size: 14.5px; color: var(--tl-navy-deep); margin-bottom: 2px; }
.tl-region__item p { margin: 0; font-size: 13.5px; color: var(--tl-muted); line-height: 1.7; }
.tl-region__visual img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
@media (max-width: 980px) { .tl-region { grid-template-columns: 1fr; } }

/* ============================================================
   8. Process / checklist sections
   ============================================================ */
.tl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tl-split img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }
.tl-split--rev .tl-split__text { order: 2; }
@media (max-width: 980px) { .tl-split { grid-template-columns: 1fr; } }

.tl-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.tl-steps__item { position: relative; background: #fff; border: 1px solid var(--tl-line); border-radius: var(--radius-m); padding: 24px 18px 20px; box-shadow: var(--shadow-s); }
.tl-steps__item::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-weight: 700; font-size: 15px; color: var(--tl-amber-strong);
  display: block; margin-bottom: 10px;
}
.tl-steps__item b { display: block; font-size: 15px; color: var(--tl-navy-deep); margin-bottom: 6px; }
.tl-steps__item p { margin: 0; font-size: 13px; color: var(--tl-muted); line-height: 1.65; }
@media (max-width: 900px) { .tl-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tl-steps { grid-template-columns: 1fr; } }

.tl-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tl-checks li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--tl-line); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--tl-navy-deep);
  box-shadow: var(--shadow-s);
}
.tl-checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--tl-amber); 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3 3 7-7' stroke='%2314213D' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat;
}

/* ============================================================
   9. CTA band
   ============================================================ */
.tl-cta { background: linear-gradient(120deg, var(--tl-navy-deep), var(--tl-navy)); color: #fff; border-radius: var(--radius-l); padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.tl-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232,163,61,.25), transparent 70%); }
.tl-cta h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; }
.tl-cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; line-height: 1.8; }

/* ============================================================
   10. Footer
   ============================================================ */
.tl-footer { background: var(--tl-navy-deep); color: rgba(255,255,255,.78); }
.tl-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: var(--space-6) 0 var(--space-5); }
.tl-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tl-footer__brand img { width: 44px; height: 44px; border-radius: 12px; }
.tl-footer__brand b { font-family: var(--font-serif); font-size: 18px; color: #fff; }
.tl-footer p { font-size: 14px; line-height: 1.8; margin: 0 0 8px; }
.tl-footer h3 { font-size: 13px; letter-spacing: .1em; color: var(--tl-amber); margin: 0 0 16px; }
.tl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.tl-footer a:hover { color: var(--tl-amber); }
.tl-footer__notice {
  border-top: 1px solid rgba(255,255,255,.12); padding: var(--space-4) 0 var(--space-5);
  font-size: 12.5px; line-height: 1.85; color: rgba(255,255,255,.6);
  display: grid; gap: 8px;
}
.tl-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .tl-footer__top { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   11. Single post / page layout
   ============================================================ */
.tl-page-hero { background: linear-gradient(120deg, var(--tl-navy-deep), var(--tl-navy)); color: #fff; padding: 72px 0 56px; }
.tl-page-hero__wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.tl-page-hero h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.3; margin: 10px 0 12px; }
.tl-page-hero .tl-kicker { color: var(--tl-amber); }
.tl-page-hero p { color: rgba(255,255,255,.75); margin: 0; font-size: 14px; }

.tl-single__thumb { margin: 0 auto; max-width: var(--content-max); padding: 32px 24px 0; }
.tl-single__thumb img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-m); }

.tl-single__body { max-width: var(--content-max); margin: 0 auto; padding: 40px 24px 0; }
.tl-entry { font-size: 16.5px; line-height: 1.85; color: var(--tl-ink); }
.tl-entry > *:first-child { margin-top: 0; }
.tl-entry p { margin: 0 0 22px; }
.tl-entry h2 {
  font-family: var(--font-serif); font-size: 25px; line-height: 1.4; color: var(--tl-navy-deep);
  margin: 56px 0 18px; padding-top: 8px; letter-spacing: -0.01em;
}
.tl-entry h2::before { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: var(--tl-amber); margin-bottom: 16px; }
.tl-entry h3 { font-size: 19px; color: var(--tl-navy-deep); margin: 36px 0 14px; }
.tl-entry ul, .tl-entry ol { margin: 0 0 24px; padding-left: 22px; }
.tl-entry li { margin-bottom: 8px; }
.tl-entry ul li::marker { color: var(--tl-amber-strong); }
.tl-entry ol li::marker { color: var(--tl-navy); font-weight: 700; }
.tl-entry strong { color: var(--tl-navy-deep); }
.tl-entry a { color: var(--tl-amber-strong); font-weight: 600; border-bottom: 1px solid rgba(217,143,35,.35); }
.tl-entry a:hover { color: var(--tl-navy); border-bottom-color: var(--tl-navy); }
.tl-entry blockquote {
  margin: 0 0 26px; padding: 18px 22px; border-left: 4px solid var(--tl-amber);
  background: var(--tl-amber-soft); border-radius: 0 12px 12px 0;
  font-size: 15.5px; color: var(--tl-ink); line-height: 1.8;
}
.tl-entry blockquote p { margin: 0; }

/* Post content components */
.tl-entry .tlc {
  border-radius: var(--radius-m); padding: 18px 20px; margin: 0 0 26px;
  font-size: 15.5px; line-height: 1.8; border: 1px solid var(--tl-line);
}
.tl-entry .tlc-amber { background: var(--tl-amber-soft); border-color: #F0D9A8; }
.tl-entry .tlc-red { background: #FBEAE5; border-color: #F0C7BC; }
.tl-entry .tl-related { background: var(--tl-ivory); }
.tl-entry .tl-related ul { margin: 12px 0 0; padding-left: 20px; }

.tl-entry .tl-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 14.5px; line-height: 1.7; }
.tl-entry .tl-table th {
  background: var(--tl-navy); color: #fff; text-align: left;
  padding: 12px 14px; font-weight: 600; font-size: 13.5px;
}
.tl-entry .tl-table th:first-child { border-radius: 10px 0 0 0; }
.tl-entry .tl-table th:last-child { border-radius: 0 10px 0 0; }
.tl-entry .tl-table td { padding: 12px 14px; border-bottom: 1px solid var(--tl-line); vertical-align: top; }
.tl-entry .tl-table tr:nth-child(even) td { background: var(--tl-ivory); }
.tl-table-wrap { overflow-x: auto; margin: 0 0 26px; -webkit-overflow-scrolling: touch; }
.tl-table-wrap .tl-table { margin-bottom: 0; }

.tl-entry .tl-bar { margin: 0 0 26px; display: grid; gap: 10px; }
.tl-entry .tl-bar-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.tl-entry .tl-bar-label { font-size: 13px; font-weight: 600; color: var(--tl-muted); text-align: right; }
.tl-entry .tl-bar-track { background: var(--tl-ivory); border-radius: 8px; height: 26px; overflow: hidden; }
.tl-entry .tl-bar-fill { height: 100%; border-radius: 8px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tl-entry .tl-fill-navy { background: var(--tl-navy); }
.tl-entry .tl-fill-amber { background: var(--tl-amber); color: var(--tl-navy-deep); }
.tl-entry .tl-fill-red { background: var(--tl-red); }

.tl-entry .tl-step { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 26px; }
.tl-entry .tl-step-item { background: var(--tl-ivory); border: 1px solid var(--tl-line); border-radius: 12px; padding: 16px 14px; }
.tl-entry .tl-step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tl-amber); color: var(--tl-navy-deep); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.tl-entry .tl-step-item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--tl-muted); }
.tl-entry .tl-step-item strong { display: block; font-size: 14px; color: var(--tl-navy-deep); margin-bottom: 2px; }
@media (max-width: 720px) { .tl-entry .tl-step { grid-template-columns: repeat(2, 1fr); } .tl-entry .tl-bar-row { grid-template-columns: 96px 1fr; } }

.tl-entry .tl-qa { display: grid; gap: 18px; margin: 0 0 26px; }
.tl-entry .tl-q { font-weight: 700; color: var(--tl-navy-deep); margin: 0 0 4px; font-size: 15.5px; }
.tl-entry .tl-q::before { content: "Q. "; color: var(--tl-amber-strong); }
.tl-entry .tl-a { margin: 0; font-size: 15px; color: var(--tl-muted); line-height: 1.8; }
.tl-entry .tl-a::before { content: "A. "; color: var(--tl-navy); font-weight: 700; }

.tl-entry .legal-notice { font-size: .85em; }
.tl-entry .ai-notice { font-size: .85em; color: #888; margin-top: 2em; }

.tl-entry img { border-radius: var(--radius-m); box-shadow: var(--shadow-s); }

/* TOC (easy-table-of-contents) */
#ez-toc-container {
  background: var(--tl-ivory) !important; border: 1px solid var(--tl-line) !important;
  border-radius: var(--radius-m) !important; padding: 20px 22px !important;
  box-shadow: var(--shadow-s);
}
#ez-toc-container .ez-toc-title { font-family: var(--font-serif); font-size: 17px !important; color: var(--tl-navy-deep) !important; }
#ez-toc-container ul { padding-left: 18px !important; }
#ez-toc-container a { color: var(--tl-ink) !important; font-size: 14px !important; }
#ez-toc-container a:hover { color: var(--tl-amber-strong) !important; }

/* Related posts */
.tl-related-grid { max-width: var(--wrap-max); margin: 0 auto; padding: 0 24px 72px; }
.tl-related-head { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.tl-related-head h2 { font-family: var(--font-serif); font-size: 24px; color: var(--tl-navy-deep); }

/* Page / archive */
.tl-archive-list { max-width: var(--wrap-max); margin: 0 auto; padding: 48px 24px 96px; }

/* ============================================================
   12. Motion & a11y
   ============================================================ */
.tl-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.tl-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tl-reveal { opacity: 1; transform: none; }
  .tl-card:hover { transform: none; }
  .tl-card:hover .tl-card__media img { transform: none; }
}
