/*
 * Editorial Minimalism Design System — Customer Support Documents
 * Scoped strictly to .acc-ed-main inside:
 *   /huong-dan-mua-hang/ (.ed-doc--guide)
 *   /bao-hanh-va-hoan-tien/ (.ed-doc--warranty)
 *   /dieu-khoan-dich-vu/ (.ed-doc--terms)
 *   /flash-sale/ (.ed-doc--deals)
 * Never alters .site-header, .site-footer, homepage, or single product pages.
 */

.acc-ed-main {
  --ed-ground: #fcfaf8;
  --ed-ground-tint: #f5f7fb;
  --ed-ground-soft: #f6f3ef;
  --ed-ink: #0f172a;
  --ed-muted: #4b596b;
  --ed-faint: #64748b;
  --ed-accent: #1769e8;
  --ed-accent-text: #1258cc;
  --ed-rule: rgba(15, 23, 42, 0.12);
  --ed-ink-hair: rgba(15, 23, 42, 0.24);
  --ed-serif: "Times New Roman", "Noto Serif", Times, serif;
  --ed-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  background-color: var(--ed-ground);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  overflow-x: clip;
  padding-bottom: clamp(64px, 8vw, 112px);
}

.acc-ed-main *,
.acc-ed-main *::before,
.acc-ed-main *::after {
  box-sizing: border-box;
}

.acc-ed-shell {
  width: min(1364px, calc(100% - 124px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 1180px) {
  .acc-ed-shell {
    width: min(1364px, calc(100% - 56px));
  }
}

@media (max-width: 960px) {
  .acc-ed-shell {
    width: min(1364px, calc(100% - 36px));
  }
}

@media (max-width: 640px) {
  .acc-ed-shell {
    width: calc(100% - 24px);
  }
}

/* Subtle top reading progress hairline */
.ed-progress-track {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 2px;
  background: rgba(15, 23, 42, 0.05);
  pointer-events: none;
}

.ed-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--ed-accent);
  transform-origin: left center;
  transform: scaleX(var(--ed-progress, 0));
  transition: transform 90ms linear;
}

/* Decorative background geometric curves (desktop subtle layer, non-interactive) */
.ed-backdrop-motif {
  position: absolute;
  top: -40px;
  right: max(-180px, calc(50% - 860px));
  width: clamp(380px, 44vw, 680px);
  height: clamp(380px, 44vw, 680px);
  pointer-events: none;
  z-index: 1;
  color: rgba(23, 105, 232, 0.085);
}

.ed-backdrop-motif svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ed-backdrop-motif--orbit svg {
  animation: ed-gentle-orbit 56s linear infinite;
}

.ed-backdrop-motif--sweep svg {
  animation: ed-gentle-float 24s ease-in-out infinite alternate;
}

@keyframes ed-gentle-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ed-gentle-float {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-12px, 16px, 0) rotate(6deg);
  }
}

/* Anchored scroll margin under header / progress hairline */
.acc-ed-main [id] {
  scroll-margin-top: 114px;
}

/* Links & directional action links */
.acc-ed-main a {
  color: var(--ed-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(18, 88, 204, 0.36);
  transition: color 180ms ease, text-decoration-color 220ms ease;
}

.acc-ed-main a:hover,
.acc-ed-main a:focus-visible {
  color: var(--ed-ink);
  text-decoration-color: var(--ed-ink);
}

.acc-ed-main a:focus-visible,
.acc-ed-main button:focus-visible {
  outline: 2px solid var(--ed-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   EDITORIAL HERO
   ========================================================================== */
.ed-hero {
  padding: clamp(48px, 6.5vw, 96px) 0 clamp(38px, 4.6vw, 64px);
  border-bottom: 1px solid var(--ed-ink-hair);
}

.ed-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(260px, 4.3fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: end;
}

.ed-hero__title {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 4.05vw, 3.65rem);
  line-height: 1.09;
  letter-spacing: -0.02em;
  color: var(--ed-ink);
  text-wrap: balance;
}

.ed-hero__title em {
  font-style: italic;
  color: var(--ed-accent-text);
}

.ed-hero__lead {
  margin-top: clamp(18px, 2.3vw, 28px);
  max-width: 64ch;
}

.ed-hero__lead p {
  margin: 0 0 1em;
  font-size: clamp(1.01rem, 1.18vw, 1.13rem);
  line-height: 1.72;
  color: var(--ed-muted);
}

.ed-hero__lead p:last-child {
  margin-bottom: 0;
}

.ed-hero__aside {
  border-top: 1px solid var(--ed-ink);
}

.ed-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ed-rule);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ed-meta-row__label {
  color: var(--ed-faint);
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ed-meta-row__value {
  color: var(--ed-ink);
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ed-meta-row__value a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 88, 204, 0.35);
  padding-bottom: 1px;
}

.ed-meta-row__value a:hover {
  border-bottom-color: var(--ed-ink);
}

/* ==========================================================================
   COMMON EDITORIAL TYPOGRAPHY & LEDGER TABLES
   ========================================================================== */
.ed-prose p {
  margin: 0 0 1.15em;
  font-size: 1.015rem;
  line-height: 1.78;
  color: var(--ed-muted);
  max-width: 68ch;
}

.ed-prose p:last-child {
  margin-bottom: 0;
}

.ed-prose strong {
  color: var(--ed-ink);
  font-weight: 600;
}

.ed-prose ul,
.ed-prose ol {
  margin: 0.6em 0 1.35em;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}

.ed-prose ul:last-child,
.ed-prose ol:last-child {
  margin-bottom: 0;
}

.ed-prose > ul > li,
.ed-prose > ol > li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.075);
  font-size: 0.99rem;
  line-height: 1.72;
  color: var(--ed-muted);
}

.ed-prose > ul > li:first-child,
.ed-prose > ol > li:first-child {
  border-top: 1px solid rgba(15, 23, 42, 0.075);
}

.ed-prose > ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.24em;
  width: 9px;
  height: 1.5px;
  background: var(--ed-accent);
}

.ed-prose > ol {
  counter-reset: ed-list-counter;
}

.ed-prose > ol > li {
  counter-increment: ed-list-counter;
  padding-left: 38px;
}

.ed-prose > ol > li::before {
  content: counter(ed-list-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ed-accent-text);
  font-variant-numeric: tabular-nums;
}

/* Nested lists (e.g. VietQR / ATM bullet options inside step 3) */
.ed-prose li ul,
.ed-step__body li ul {
  margin: 10px 0 4px;
  padding: 0 0 0 18px;
  list-style: none;
  border-left: 1px solid rgba(23, 105, 232, 0.25);
}

.ed-prose li ul li,
.ed-step__body li ul li {
  position: relative;
  padding: 5px 0 5px 14px;
  border: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ed-muted);
}

.ed-prose li ul li::before,
.ed-step__body li ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.02em;
  width: 6px;
  height: 1px;
  background: var(--ed-faint);
}

/* Editorial Tables */
.ed-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25em 0 0.5em;
  border-top: 1.5px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-ink-hair);
}

.ed-prose table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.58;
  margin: 0;
}

.ed-prose th {
  padding: 15px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-ink);
  background: var(--ed-ground-tint);
  border-bottom: 1px solid var(--ed-ink-hair);
  white-space: nowrap;
}

.ed-prose td {
  padding: 15px 16px;
  vertical-align: top;
  color: var(--ed-muted);
  border-bottom: 1px solid var(--ed-rule);
  font-variant-numeric: tabular-nums;
}

.ed-prose tr:last-child td {
  border-bottom: 0;
}

.ed-prose tbody tr {
  transition: background-color 180ms ease;
}

.ed-prose tbody tr:hover {
  background-color: rgba(23, 105, 232, 0.035);
}

.ed-prose td:first-child {
  color: var(--ed-ink);
  font-weight: 500;
}

/* Subtle section rule reveal (starts visible at opacity 1; sweeps hairline) */
.ed-band-rule {
  position: relative;
  border-top: 1px solid var(--ed-rule);
}

.ed-band-rule::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(240px, 38%);
  height: 1px;
  background: var(--ed-ink);
  transform-origin: left center;
  transform: scaleX(0.35);
  transition: transform 700ms var(--ed-ease);
}

.ed-band-rule.is-inview::after {
  transform: scaleX(1);
}

/* Shared Section Headings */
.ed-sec-num {
  display: inline-block;
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--ed-accent-text);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.ed-sec-title {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.35vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ed-ink);
  text-wrap: balance;
}

/* ==========================================================================
   PAGE 1: GUIDE (/huong-dan-mua-hang/) — VISUAL PROCESS EDITORIAL
   ========================================================================== */
.ed-guide-prep {
  padding: clamp(44px, 5.5vw, 72px) 0;
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  gap: clamp(24px, 4.5vw, 72px);
  align-items: start;
}

.ed-guide-process {
  padding: clamp(52px, 6.5vw, 88px) 0;
  display: grid;
  grid-template-columns: minmax(220px, 3.6fr) minmax(0, 8.4fr);
  gap: clamp(28px, 4.5vw, 76px);
  align-items: start;
}

.ed-guide-process__sticky {
  position: sticky;
  top: 106px;
}

.ed-guide-process__intro {
  margin-top: 16px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ed-muted);
}

.ed-step-rail {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ed-rule);
}

.ed-step-rail__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ed-rule);
  font-size: 0.86rem;
  color: var(--ed-faint);
  text-decoration: none;
  transition: color 180ms ease, padding-left 220ms var(--ed-ease);
}

.ed-step-rail__link:hover,
.ed-step-rail__link.is-active {
  color: var(--ed-accent-text);
  padding-left: 8px;
}

.ed-step-rail__num {
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.ed-step-list {
  display: flex;
  flex-direction: column;
}

.ed-step-row {
  display: grid;
  grid-template-columns: clamp(64px, 7.2vw, 108px) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 36px);
  padding: clamp(28px, 3.2vw, 44px) 0;
  border-top: 1px solid var(--ed-rule);
  position: relative;
}

.ed-step-row:last-child {
  border-bottom: 1px solid var(--ed-rule);
}

.ed-step-row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ed-accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 520ms var(--ed-ease);
}

.ed-step-row:hover::before,
.ed-step-row.is-active::before {
  transform: scaleX(1);
}

.ed-step-row__num {
  font-family: var(--ed-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.1vw, 3.9rem);
  line-height: 0.88;
  color: rgba(18, 88, 204, 0.72);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
  transition: transform 300ms var(--ed-ease), color 220ms ease;
}

.ed-step-row:hover .ed-step-row__num,
.ed-step-row.is-active .ed-step-row__num {
  transform: translateX(4px);
  color: var(--ed-accent-text);
}

.ed-step__body {
  font-size: 1.02rem;
  line-height: 1.76;
  color: var(--ed-muted);
}

.ed-step__body strong:first-child {
  display: block;
  margin-bottom: 10px;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.22rem, 1.55vw, 1.44rem);
  line-height: 1.3;
  color: var(--ed-ink);
}

.ed-guide-split-band {
  padding: clamp(48px, 5.5vw, 76px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.ed-guide-table-band {
  padding: clamp(48px, 5.5vw, 76px) 0;
}

.ed-guide-table-band__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.ed-guide-cta-band {
  margin-top: clamp(44px, 5vw, 68px);
  padding: clamp(34px, 4vw, 54px) 0;
  border-top: 1.5px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-rule);
  display: grid;
  grid-template-columns: minmax(0, 7.5fr) minmax(240px, 4.5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.ed-guide-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.ed-btn-primary,
.ed-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms var(--ed-ease);
}

.ed-btn-primary {
  background: var(--ed-ink);
  color: #ffffff !important;
  border: 1px solid var(--ed-ink);
}

.ed-btn-primary:hover {
  background: var(--ed-accent-text);
  border-color: var(--ed-accent-text);
  transform: translateY(-1px);
}

.ed-btn-ghost {
  background: transparent;
  color: var(--ed-ink) !important;
  border: 1px solid var(--ed-ink-hair);
}

.ed-btn-ghost:hover {
  border-color: var(--ed-ink);
  background: rgba(15, 23, 42, 0.03);
}

/* Editorial FAQ Ledger (Shared & Adaptable) */
.ed-faq-band {
  padding: clamp(48px, 6vw, 84px) 0 0;
}

.ed-faq-band__head {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.ed-faq-list {
  border-top: 1px solid var(--ed-ink);
}

.ed-faq-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 4.8fr) minmax(0, 6.2fr);
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(22px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--ed-rule);
  align-items: baseline;
  transition: background-color 220ms ease;
}

.ed-faq-row:hover {
  background: rgba(23, 105, 232, 0.022);
}

.ed-faq-row__idx {
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ed-accent-text);
  font-variant-numeric: tabular-nums;
}

.ed-faq-row__q {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.12rem, 1.45vw, 1.32rem);
  line-height: 1.38;
  color: var(--ed-ink);
}

.ed-faq-row__a p {
  margin: 0 0 0.85em;
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--ed-muted);
}

.ed-faq-row__a p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PAGE 2 & 3 COMMON: STICKY TOC MANUAL / LEGAL WORKSPACE
   ========================================================================== */
.ed-dossier-layout {
  padding-top: clamp(44px, 5.5vw, 76px);
  display: grid;
  grid-template-columns: minmax(220px, 3.1fr) minmax(0, 8.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.ed-toc-rail {
  position: sticky;
  top: 106px;
  padding-top: 18px;
  border-top: 2px solid var(--ed-ink);
}

.ed-toc-rail__title {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-ink);
}

.ed-toc-nav {
  display: flex;
  flex-direction: column;
}

.ed-toc-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--ed-rule);
  text-decoration: none !important;
  color: var(--ed-muted) !important;
  font-size: 0.89rem;
  line-height: 1.42;
  transition: color 180ms ease, padding-left 220ms var(--ed-ease), border-color 180ms ease;
}

.ed-toc-link__num {
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ed-faint);
  font-variant-numeric: tabular-nums;
}

.ed-toc-link:hover {
  color: var(--ed-ink) !important;
  padding-left: 6px;
}

.ed-toc-link.is-active {
  color: var(--ed-accent-text) !important;
  font-weight: 600;
  padding-left: 8px;
  border-bottom-color: var(--ed-accent);
}

.ed-toc-link.is-active .ed-toc-link__num {
  color: var(--ed-accent-text);
}

.ed-dossier-body {
  display: flex;
  flex-direction: column;
  gap: clamp(46px, 5.5vw, 72px);
}

.ed-chapter {
  padding-top: clamp(26px, 3vw, 38px);
}

.ed-chapter__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.ed-chapter__tag {
  font-family: var(--ed-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ed-accent-text);
  font-variant-numeric: tabular-nums;
}

/* Page 2 specifics: Warranty Policy Manual */
.ed-rule-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.ed-chapter--eligible .ed-prose > ul > li {
  padding-left: 26px;
  border-left: 2px solid var(--ed-accent);
  padding-right: 12px;
  background: linear-gradient(90deg, rgba(23, 105, 232, 0.028) 0%, rgba(252, 250, 248, 0) 65%);
}

.ed-chapter--eligible .ed-prose > ul > li::before {
  left: 10px;
}

.ed-chapter--excluded .ed-prose > ul > li {
  border-left: 2px solid rgba(100, 116, 139, 0.35);
  padding-left: 26px;
}

.ed-chapter--excluded .ed-prose > ul > li::before {
  left: 10px;
  background: var(--ed-faint);
}

.ed-subsection-grid {
  display: grid;
  gap: clamp(22px, 2.8vw, 32px);
  margin-top: 8px;
}

.ed-subsection {
  padding: clamp(18px, 2.2vw, 26px) 0 4px clamp(18px, 2.5vw, 28px);
  border-left: 1.5px solid var(--ed-ink-hair);
}

.ed-subsection__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.ed-subsection__letter {
  font-family: var(--ed-serif);
  font-style: italic;
  color: var(--ed-accent-text);
  font-size: 1.05rem;
}

.ed-subsection__title {
  margin: 0;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: clamp(1.16rem, 1.55vw, 1.4rem);
  line-height: 1.3;
  color: var(--ed-ink);
}

/* Page 3 specifics: Modern Legal Editorial (#dieu-khoan-dich-vu/) */
.ed-doc--terms .ed-toc-rail__title {
  letter-spacing: 0.1em;
}

.ed-legal-clause {
  display: grid;
  grid-template-columns: clamp(86px, 9vw, 128px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-top: clamp(28px, 3.2vw, 40px);
  align-items: start;
}

.ed-legal-clause__article {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-accent-text);
  padding-top: 8px;
  font-variant-numeric: tabular-nums;
}

.ed-legal-clause__content {
  min-width: 0;
}

.ed-legal-clause__content .ed-sec-title {
  margin-bottom: clamp(16px, 2vw, 24px);
}

/* Prominent editorial highlight for #thuong-hieu (linked from 69 product pages) */
.ed-legal-clause--brand {
  padding: clamp(26px, 3.2vw, 38px) clamp(20px, 3vw, 34px);
  border-left: 2.5px solid var(--ed-accent);
  border-top: 1px solid rgba(23, 105, 232, 0.22);
  border-bottom: 1px solid rgba(23, 105, 232, 0.22);
  background: linear-gradient(95deg, rgba(23, 105, 232, 0.05) 0%, rgba(252, 250, 248, 0.4) 85%);
}

.ed-legal-clause--brand::after {
  display: none;
}

/* ==========================================================================
   PAGE 4: EDITORIAL COMMERCE FLASH SALE (/flash-sale/)
   ========================================================================== */
.ed-deals-showcase {
  padding: clamp(44px, 5.5vw, 72px) 0 clamp(24px, 3vw, 40px);
}

.ed-deals-showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--ed-ink);
}

.ed-deals-showcase__sub {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ed-faint);
}

.ed-deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--ed-rule);
}

.ed-deal-item {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px);
  border-right: 1px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
  background: var(--ed-ground);
  transition: background-color 220ms ease;
}

.ed-deal-item:hover {
  background: var(--ed-ground-tint);
}

.ed-deal-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.ed-deal-item__cat {
  color: var(--ed-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-deal-item__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid rgba(18, 88, 204, 0.35);
  color: var(--ed-accent-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ed-deal-item__media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--ed-rule);
  margin-bottom: 16px;
}

.ed-deal-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 420ms var(--ed-ease);
}

.ed-deal-item:hover .ed-deal-item__media img {
  transform: scale(1.03);
}

.ed-deal-item__title {
  margin: 0 0 14px;
  font-family: var(--ed-serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ed-ink);
}

.ed-deal-item__title a {
  color: inherit;
  text-decoration: none;
}

.ed-deal-item__title a:hover {
  color: var(--ed-accent-text);
}

.ed-deal-item__prices {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ed-rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ed-deal-item__price-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.ed-deal-item__now {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ed-ink);
}

.ed-deal-item__was {
  font-size: 0.86rem;
  color: var(--ed-faint);
  text-decoration: line-through;
}

.ed-deal-item__link {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Override scheduled [acc_flash_sale] shortcode styling smoothly on /flash-sale/ */
.ed-doc--deals .acc-flash-sale-section {
  background: transparent;
  padding: clamp(28px, 3.5vw, 44px) 0 8px;
  margin: 0;
}

.ed-doc--deals .acc-flash-sale-section .acc-shell {
  width: 100%;
  margin: 0;
}

/* Structured sections beneath showcase on /flash-sale/ */
.ed-deals-band {
  padding: clamp(44px, 5vw, 68px) 0;
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  gap: clamp(24px, 4.5vw, 72px);
  align-items: start;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .ed-deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ed-hero__grid,
  .ed-guide-prep,
  .ed-guide-process,
  .ed-guide-split-band,
  .ed-guide-table-band__head,
  .ed-guide-cta-band,
  .ed-dossier-layout,
  .ed-deals-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ed-guide-process__sticky,
  .ed-toc-rail {
    position: static;
  }

  .ed-toc-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .ed-guide-cta-band__actions {
    justify-content: flex-start;
  }

  .ed-faq-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px 18px;
  }

  .ed-faq-row__a {
    grid-column: 2;
  }

  .ed-legal-clause {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ed-legal-clause__article {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .ed-toc-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .ed-step-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ed-faq-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ed-faq-row__a {
    grid-column: 1;
  }

  .ed-deal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ed-prose table {
    min-width: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-backdrop-motif--orbit svg,
  .ed-backdrop-motif--sweep svg {
    animation: none;
  }

  .ed-progress-bar,
  .ed-band-rule::after,
  .ed-step-row::before,
  .ed-step-row__num,
  .ed-deal-item__media img,
  .ed-toc-link,
  .ed-step-rail__link {
    transition: none;
  }
}
