/* HesabShop Magazine V3 — scoped styles for the magazine hub and article templates. */

.magazine-page,
.article-page {
  background: #f8fafc;
  color: var(--ink);
}

.article-page .seo-top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #e8edf5}
.article-page .seo-top-inner{max-width:1140px;margin:auto;padding:15px 22px;display:flex;gap:18px;align-items:center;justify-content:space-between}
.article-page .seo-brand{font-size:1.1rem;font-weight:900;color:#163c72;text-decoration:none}
.article-page .seo-nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.article-page .seo-nav a{color:#39485d;text-decoration:none;font-weight:750}
.article-page .seo-wrap{max-width:920px;margin:auto;padding:42px 22px 68px}
.article-page .breadcrumb{margin-bottom:24px;color:#65758c;font-size:.9rem}
.article-page .breadcrumb a{color:#1765d7;text-decoration:none}
.article-page .article-hero,.article-page .article-section{margin:18px 0;padding:28px;border:1px solid #e2e8f0;border-radius:22px;background:#fff}
.article-page .article-hero{background:linear-gradient(135deg,#edf5ff,#fff)}
.article-page .article-hero h1{margin:8px 0 14px;color:#12386b;font-size:clamp(1.8rem,4vw,2.65rem);line-height:1.55}
.article-page .article-hero p,.article-page .article-section p,.article-page .article-section li{color:#405066;line-height:2}
.article-page .article-section h2,.article-page .related-box h2{color:#183f76;line-height:1.7}
.article-page .article-section li+li{margin-top:8px}
.article-page .article-section details{padding:14px 0;border-bottom:1px solid #edf1f6}
.article-page .article-section summary{color:#1f3f70;font-weight:850;cursor:pointer}
.article-page .related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.article-page .related-card{padding:18px;border:1px solid #e1eaf6;border-radius:16px;background:#fff;text-decoration:none}
.article-page .related-card strong,.article-page .related-card span{display:block}
.article-page .related-card strong{color:#173d72;margin-bottom:7px}
.article-page .related-card span{color:#5b6a7f;line-height:1.8}
.article-page .seo-footer{padding:24px;text-align:center;color:#66758c}

@media(max-width:700px){
  .article-page .seo-top-inner{align-items:flex-start;flex-direction:column}
  .article-page .seo-wrap{padding:28px 16px 50px}
  .article-page .article-hero,.article-page .article-section{padding:22px 18px}
  .article-page .related-grid{grid-template-columns:1fr}
}

.skip-link {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.magazine-page a:focus-visible,
.magazine-page button:focus-visible,
.magazine-page input:focus-visible,
.article-page a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .32);
  outline-offset: 3px;
}

.magazine-page .desktop-nav a[aria-current="page"],
.article-page .desktop-nav a[aria-current="page"] {
  color: var(--blue);
}

.magazine-main {
  overflow: hidden;
}

.magazine-breadcrumb,
.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
}

.magazine-breadcrumb a,
.article-breadcrumb a {
  color: #2563eb;
}

.magazine-breadcrumb span[aria-hidden="true"],
.article-breadcrumb span[aria-hidden="true"] {
  color: #cbd5e1;
}

.magazine-hero {
  position: relative;
  padding: 42px 0 72px;
}

.magazine-hero::before,
.magazine-hero::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(12px);
  content: "";
  pointer-events: none;
}

.magazine-hero::before {
  width: 360px;
  height: 360px;
  top: -110px;
  right: -120px;
  background: rgba(147, 197, 253, .34);
}

.magazine-hero::after {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: -90px;
  background: rgba(110, 231, 183, .22);
}

.magazine-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: 52px;
}

.magazine-hero-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.magazine-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 5.1vw, 66px);
  line-height: 1.42;
  letter-spacing: -.035em;
  font-weight: 1000;
}

.magazine-hero h1 span {
  color: #2563eb;
}

.magazine-hero-lead {
  max-width: 720px;
  color: #475569;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 2;
}

.magazine-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.magazine-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.magazine-hero-points li::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #059669;
  content: "✓";
  font-size: 12px;
  font-weight: 1000;
}

.question-board {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 30px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .13);
}

.question-board::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(16, 185, 129, .12));
  content: "";
  transform: rotate(-2.5deg);
}

.question-board-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 1000;
}

.question-board-label span:last-child {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
}

.question-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.8;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.question-card b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 19px;
}

.magazine-section {
  padding: 72px 0;
}

.magazine-section-white {
  background: #fff;
}

.magazine-section-soft {
  border-block: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.magazine-heading {
  display: grid;
  justify-items: start;
  max-width: 780px;
  margin-bottom: 30px;
}

.magazine-heading h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.55;
  font-weight: 1000;
}

.magazine-heading p {
  margin-top: 10px;
  color: #64748b;
  font-size: 17px;
  line-height: 2;
}

.featured-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 30px;
  background: linear-gradient(135deg, #eff6ff, #fff 58%);
  box-shadow: 0 24px 70px rgba(37, 99, 235, .1);
}

.featured-guide-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: clamp(26px, 4vw, 46px);
}

.content-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
}

.content-label::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.featured-guide h2 {
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.65;
  font-weight: 1000;
}

.featured-guide p {
  color: #475569;
  font-size: 17px;
  line-height: 2;
}

.featured-guide-media {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 32px;
  background: linear-gradient(145deg, #1d4ed8, #2563eb);
}

.featured-guide-media img {
  display: block;
  width: min(100%, 430px);
  height: auto !important;
  aspect-ratio: auto;
  align-self: center;
  object-fit: contain;
  border: 7px solid rgba(255, 255, 255, .82);
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, .28);
}

.magazine-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .05);
}

.magazine-search {
  position: relative;
}

.magazine-search::before {
  position: absolute;
  top: 50%;
  right: 17px;
  color: #64748b;
  content: "⌕";
  font-size: 26px;
  line-height: 1;
  transform: translateY(-52%);
  pointer-events: none;
}

.magazine-search input {
  width: 100%;
  height: 50px;
  padding: 0 52px 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.magazine-search input::placeholder {
  color: #94a3b8;
}

.magazine-result-count {
  min-width: 150px;
  color: #64748b;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.category-filter {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}

.category-filter:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.category-filter[aria-pressed="true"] {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.magazine-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(15, 23, 42, .06);
  transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s ease;
}

.magazine-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .1);
  transform: translateY(-5px);
}

.magazine-card[hidden] {
  display: none;
}

.magazine-card-media {
  display: grid;
  height: 205px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
}

.magazine-card:nth-child(3n + 2) .magazine-card-media {
  background: linear-gradient(145deg, #ecfdf5, #f8fafc);
}

.magazine-card:nth-child(3n) .magazine-card-media {
  background: linear-gradient(145deg, #fff7ed, #f8fafc);
}

.magazine-card-media img {
  width: 138px;
  height: 184px;
  object-fit: cover;
  object-position: top;
  border: 4px solid rgba(255, 255, 255, .92);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .17);
  transform: translateY(18px);
}

.magazine-card-media.landscape img {
  width: min(86%, 310px);
  height: auto !important;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 18px;
  transform: none;
}

.magazine-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.magazine-card h3 {
  margin: 11px 0 8px;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 1000;
}

.magazine-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.magazine-card h3 a {
  position: static;
}

.magazine-card-body {
  position: relative;
}

.magazine-card p {
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.95;
}

.magazine-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #2563eb;
  font-size: 14px;
  font-weight: 950;
}

.magazine-card-link::after {
  content: "←";
  transition: transform .2s ease;
}

.magazine-card:hover .magazine-card-link::after {
  transform: translateX(-4px);
}

.magazine-empty {
  margin-top: 18px;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  background: #fff;
  color: #475569;
  text-align: center;
}

.evidence-grid,
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.evidence-card,
.pillar-card {
  border: 1px solid #e2e8f0;
  border-radius: 23px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .05);
}

.evidence-number {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
  font-weight: 1000;
}

.evidence-card:nth-child(2) .evidence-number {
  background: #ecfdf5;
  color: #059669;
}

.evidence-card:nth-child(3) .evidence-number {
  background: #fff7ed;
  color: #d97706;
}

.evidence-card h3,
.pillar-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 1000;
}

.evidence-card p,
.pillar-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.95;
}

.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pillar-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  transition: .22s var(--ease);
}

.pillar-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .09);
  transform: translateY(-4px);
}

.pillar-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: #2563eb;
  font-size: 14px;
}

.magazine-cta {
  padding: 70px 0 82px;
  background: #fff;
}

.magazine-cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 5vw, 50px);
  border-radius: 32px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 30px 90px rgba(37, 99, 235, .22);
}

.magazine-cta-card h2 {
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.55;
  font-weight: 1000;
}

.magazine-cta-card p {
  max-width: 760px;
  margin-top: 10px;
  color: #dbeafe;
  line-height: 1.95;
}

.magazine-footer-links {
  display: flex;
  justify-content: center;
  gap: 9px 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.magazine-footer-links a:hover {
  color: #2563eb;
}

/* Article template. The template itself stays outside the deploy payload. */
.article-shell {
  width: min(940px, calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: 80px;
}

.article-header {
  margin-top: 24px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid #dbeafe;
  border-radius: 30px;
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 22px 64px rgba(15, 23, 42, .07);
}

.article-header h1 {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.55;
  letter-spacing: -.025em;
  font-weight: 1000;
}

.article-deck {
  margin-top: 15px;
  color: #475569;
  font-size: 18px;
  line-height: 2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.article-hero-image {
  margin: 24px 0 0;
}

.article-hero-image img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  object-fit: contain;
  background: #eff6ff;
}

.article-hero-image figcaption,
.article-figure figcaption {
  margin-top: 9px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.article-toc,
.article-answer,
.article-content-section,
.article-related {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .045);
}

.article-toc h2,
.article-answer h2,
.article-content-section h2,
.article-related h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.7;
  font-weight: 1000;
}

.article-toc ol,
.article-content-section ul,
.article-content-section ol {
  margin: 0;
  padding-right: 22px;
}

.article-toc a {
  color: #2563eb;
  font-weight: 850;
}

.article-answer {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.article-answer h2 {
  color: #047857;
}

.article-answer p,
.article-content-section p,
.article-content-section li {
  color: #334155;
  font-size: 16px;
  line-height: 2.1;
}

.article-content-section p + p,
.article-content-section p + ul,
.article-content-section p + ol,
.article-content-section ul + p,
.article-content-section ol + p {
  margin-top: 14px;
}

.article-content-section h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 1000;
}

.article-figure {
  margin: 22px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #f8fafc;
}

.article-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.article-table-wrap table {
  min-width: 620px;
  background: #fff;
}

.article-faq details {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.article-faq details:last-child {
  border-bottom: 0;
}

.article-faq summary {
  color: #0f172a;
  font-weight: 950;
  cursor: pointer;
}

.article-faq details p {
  margin-top: 10px;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-related-card {
  padding: 17px;
  border: 1px solid #dbeafe;
  border-radius: 17px;
  background: #f8fbff;
  color: #1e3a8a;
  font-weight: 900;
}

.article-related-card:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.article-page .magazine-cta-card {
  margin-top: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .magazine-hero-grid,
  .featured-guide {
    grid-template-columns: 1fr;
  }

  .question-board {
    width: min(100%, 680px);
  }

  .featured-guide-media {
    min-height: 330px;
  }

  .magazine-grid,
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .magazine-page .header-actions {
    gap: 6px;
  }

  .magazine-hero {
    padding: 28px 0 54px;
  }

  .magazine-hero-grid {
    gap: 30px;
  }

  .magazine-hero h1 {
    font-size: 36px;
    line-height: 1.5;
  }

  .question-board {
    padding: 17px;
    border-radius: 23px;
  }

  .magazine-section {
    padding: 54px 0;
  }

  .featured-guide-media {
    min-height: 270px;
    padding: 22px;
  }

  .magazine-tools {
    grid-template-columns: 1fr;
  }

  .magazine-result-count {
    text-align: right;
  }

  .magazine-grid,
  .evidence-grid,
  .pillar-grid,
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .magazine-card-media {
    height: 190px;
  }

  .magazine-cta-card {
    grid-template-columns: 1fr;
  }

  .magazine-cta-card .btn {
    width: 100%;
  }

  .article-shell {
    width: min(100% - 28px, 940px);
  }

  .article-header,
  .article-toc,
  .article-answer,
  .article-content-section,
  .article-related {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magazine-card,
  .pillar-card,
  .magazine-card-link::after,
  .skip-link {
    transition: none !important;
  }

  .question-board::before {
    transform: none;
  }
}

/* HesabShop Magazine V3 — long-form M01 article. */
.deep-article-page {
  overflow-x: clip;
  background:
    radial-gradient(circle at 94% 9%, rgba(191, 219, 254, .45), transparent 25rem),
    radial-gradient(circle at 7% 36%, rgba(204, 251, 241, .34), transparent 24rem),
    #f8fafc;
}

.deep-article {
  width: min(1040px, calc(100% - 40px));
  padding-bottom: 92px;
}

.deep-article-header {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5.5vw, 58px);
  border-color: #bfdbfe;
  background:
    radial-gradient(circle at 8% 18%, rgba(45, 212, 191, .18), transparent 16rem),
    linear-gradient(135deg, #eff6ff 0%, #fff 62%, #ecfeff 100%);
}

.deep-article-header::after {
  position: absolute;
  width: 210px;
  height: 210px;
  bottom: -120px;
  left: -70px;
  border: 30px solid rgba(37, 99, 235, .07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.deep-article-header h1 {
  max-width: 900px;
  color: #102f5e;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.52;
}

.deep-article-header .article-deck {
  max-width: 900px;
  color: #3f516a;
  font-size: clamp(16px, 1.8vw, 19px);
}

.deep-hero-figure {
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, .1);
}

.deep-hero-figure img {
  border: 0;
  border-radius: 20px;
}

.direct-answer {
  position: relative;
  overflow: hidden;
  padding-right: clamp(24px, 5vw, 44px);
  border-color: #99f6e4;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa 68%, #fff);
}

.direct-answer::before {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 7px;
  background: linear-gradient(#10b981, #14b8a6);
  content: "";
}

.answer-eyebrow {
  margin: 0 0 4px;
  color: #047857;
  font-size: 13px;
  font-weight: 1000;
}

.direct-answer strong {
  color: #065f46;
}

.article-toc-grid ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  counter-reset: toc;
  padding: 0;
  list-style: none;
}

.article-toc-grid li {
  counter-increment: toc;
}

.article-toc-grid a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 8px;
  padding: 7px 0;
  color: #334155;
  line-height: 1.8;
}

.article-toc-grid a::before {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb;
  content: counter(toc);
  font-size: 12px;
  font-weight: 1000;
}

.article-toc-grid a:hover {
  color: #2563eb;
}

.deep-article .article-content-section {
  position: relative;
  scroll-margin-top: 90px;
  padding: clamp(25px, 4vw, 38px);
}

.deep-article .article-content-section h2 {
  padding-left: 56px;
  color: #173d72;
}

.section-number {
  position: absolute;
  top: 27px;
  left: 28px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
}

.check-list,
.question-list {
  display: grid;
  gap: 10px;
  padding: 0 !important;
  list-style: none;
}

.check-list li,
.question-list li {
  position: relative;
  padding: 11px 46px 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #f8fafc;
}

.check-list li::before,
.question-list li::before {
  position: absolute;
  top: 13px;
  right: 14px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  background: #dbeafe;
  color: #2563eb;
  content: "؟";
  font-size: 13px;
  font-weight: 1000;
}

.question-list li::before {
  background: #ede9fe;
  color: #7c3aed;
}

.workflow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 9px;
  margin: 28px 0;
  direction: rtl;
}

.workflow > i {
  align-self: center;
  color: #60a5fa;
  font-size: 25px;
  font-style: normal;
  font-weight: 1000;
}

.workflow-step {
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  padding: 16px 10px;
  border: 1px solid #dbeafe;
  border-radius: 17px;
  background: linear-gradient(160deg, #fff, #f8fbff);
  text-align: center;
}

.workflow-step span {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 11px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.workflow-step strong {
  color: #173d72;
  font-size: 15px;
}

.workflow-step small {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.7;
}

.note-card,
.warning-card {
  padding: 17px 19px;
  border: 1px solid #bae6fd;
  border-radius: 17px;
  background: #f0f9ff;
}

.warning-card {
  border-color: #fed7aa;
  background: #fff7ed;
}

.warning-card strong {
  color: #c2410c;
}

.deep-article .article-figure {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 23px;
  background: #fff;
}

.deep-article .article-figure img {
  border: 0;
  border-radius: 16px;
}

.deep-article .article-table-wrap {
  box-shadow: 0 12px 35px rgba(15, 23, 42, .04);
}

.deep-article table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.deep-article th,
.deep-article td {
  padding: 15px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 14px;
  line-height: 1.85;
  vertical-align: top;
}

.deep-article thead th {
  background: #eff6ff;
  color: #173d72;
  font-weight: 1000;
}

.deep-article tbody th {
  width: 19%;
  color: #1e3a5f;
  font-weight: 950;
}

.deep-article tbody tr:last-child th,
.deep-article tbody tr:last-child td {
  border-bottom: 0;
}

.feature-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.feature-check-grid article {
  position: relative;
  padding: 22px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: linear-gradient(155deg, #fff, #f8fbff);
}

.feature-check-grid article:last-child {
  grid-column: 1 / -1;
}

.feature-check-grid b {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 14px;
}

.feature-check-grid h3 {
  margin: 0 0 6px;
  color: #173d72;
  font-size: 18px;
}

.feature-check-grid p {
  margin: 0;
  font-size: 14px;
}

.scenario-grid,
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 24px 0;
}

.scenario-grid article {
  padding: 21px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #f8fafc;
}

.scenario-grid article:nth-child(2) {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.scenario-grid article:nth-child(3) {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.scenario-grid span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 1000;
}

.scenario-grid h3 {
  margin: 8px 0 5px;
  color: #1e3a5f;
  font-size: 17px;
}

.scenario-grid p {
  margin: 0;
  font-size: 14px;
}

.test-steps {
  display: grid;
  gap: 10px;
  counter-reset: teststep;
  padding: 0 !important;
  list-style: none;
}

.test-steps li {
  position: relative;
  counter-increment: teststep;
  padding: 14px 58px 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.test-steps li::before {
  position: absolute;
  top: 12px;
  right: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  content: counter(teststep);
  font-size: 13px;
  font-weight: 1000;
}

.fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fit-card {
  padding: 23px;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  background: #ecfdf5;
}

.fit-card-caution {
  border-color: #fed7aa;
  background: #fff7ed;
}

.fit-card h3 {
  margin: 0 0 8px;
  color: #047857;
}

.fit-card-caution h3 {
  color: #c2410c;
}

.fit-card ul {
  margin: 0;
}

.deep-article .article-faq details {
  border-bottom-color: #e2e8f0;
}

.deep-article .article-faq summary {
  position: relative;
  padding: 2px 0 2px 42px;
  list-style: none;
}

.deep-article .article-faq summary::-webkit-details-marker {
  display: none;
}

.deep-article .article-faq summary::after {
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  content: "+";
  font-size: 20px;
}

.deep-article .article-faq details[open] summary::after {
  content: "−";
}

.editorial-note {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px dashed #94a3b8;
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
}

.editorial-note strong {
  color: #334155;
}

.editorial-note p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 2;
}

.article-final-cta {
  margin-top: 20px;
}

@media (max-width: 920px) {
  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .deep-article-page .header-actions {
    min-width: 0;
    gap: 6px;
  }

  .deep-article-page .header-actions .btn {
    width: auto;
    padding-inline: 13px;
    font-size: 13px;
  }

  .deep-article-page .menu-button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .deep-article {
    width: min(100% - 28px, 1040px);
  }

  .deep-article-header h1 {
    font-size: 31px;
  }

  .article-toc-grid ol,
  .feature-check-grid,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .feature-check-grid article:last-child {
    grid-column: auto;
  }

  .deep-article .article-content-section h2 {
    min-height: 42px;
    padding-left: 48px;
  }

  .section-number {
    top: 23px;
    left: 20px;
  }

  .deep-hero-figure,
  .deep-article .article-figure {
    padding: 6px;
  }
}

@media print {
  .deep-article-page .site-header,
  .deep-article-page .sticky-mobile-cta,
  .deep-article-page .site-footer,
  .deep-article-page .article-final-cta,
  .deep-article-page .scroll-progress {
    display: none !important;
  }

  .deep-article {
    width: 100%;
  }

  .deep-article .article-content-section,
  .deep-article .article-answer,
  .deep-article .article-toc,
  .deep-article .article-related {
    box-shadow: none;
    break-inside: avoid;
  }
}
