/* ============================================================
   TEZ ERP — TEZ Accounting Module Stylesheet
   Unified Design Language aligned with Products-Suite (Education / ERP / Urja)
   Palette: Royal Blue (#0568ff), Deep Midnight Navy (#081a2e), Slate Ink (#10243e),
            Pale Ice/Sky (#f4f7fb / #e9f3ff), Dark Card (#0f2742), Sky (#38bdf8)
   Typography: Swiss Editorial, Inter (-0.055em / -0.05em tracking for headlines)
   ============================================================ */

:root {
  --acctBlue: #0568ff;
  --acctBlueHover: #0052cc;
  --acctDark: #0b1720;
  --acctInk: #10243e;
  --acctDarkBg: #081a2e;
  --acctDarkCard: #0f2742;
  --acctDarkHover: #14355a;
  --acctSky: #38bdf8;
  --acctSkyBg: #e9f3ff;
  --acctBody: #44566d;
  --acctMuted: #64748b;
  --acctSurface: #f4f7fb;
  --acctBorder: #d8e1ee;
  --acctBorderLight: #e2e8f0;
  --acctWhite: #ffffff;
}

.accountingPage {
  color: var(--acctInk);
  background: #ffffff;
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ 1. HERO SECTION ============ */
.accountingHero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1.2fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  min-height: 680px;
  padding: clamp(64px, 6vw, 90px) 8vw 90px 7vw;
  background: radial-gradient(circle at 82% 28%, rgba(5, 104, 255, 0.09), transparent 38%),
    linear-gradient(135deg, #f7fbff 0%, #edf7ff 55%, #eaf8f0 100%);
  overflow: hidden;
}

/* Subtle decorative circle motif */
.accountingHero::after {
  content: '';
  position: absolute;
  right: -7vw;
  bottom: -23vw;
  width: 44vw;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 36, 62, 0.08);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 4vw rgba(255, 255, 255, 0.3), 0 0 0 8vw rgba(255, 255, 255, 0.15);
}

.accountingCopy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.accountingCopy>span,
.accountingFinal>span {
  letter-spacing: 0.18em;
  color: var(--acctBlue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
}

.accountingHero h1 {
  margin: 20px 0;
  color: var(--acctInk);
}

.accountingHero h1 em {
  color: var(--acctBlue);
  font-style: normal;
}

.accountingCopy>p {
  color: var(--acctBody);
  max-width: 620px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}

.accountingCopy .accountingSubtext {
  margin-top: 14px;
}

.accountingActions {
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
}

.btn-accounting-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--acctInk);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 36, 62, 0.16);
}

.btn-accounting-primary:hover {
  background: var(--acctBlue);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(5, 104, 255, 0.28);
}

.btn-accounting-link {
  color: var(--acctInk);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.btn-accounting-link:hover {
  color: var(--acctBlue);
}

/* ============ CARD: SIDEBAR RAIL + SCREENSHOT ============ */
.accountingClose {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(16, 36, 62, .14);
  box-shadow: 13px 15px 0 rgba(16, 36, 62, .09), 0 22px 48px rgba(16, 36, 62, .16);
  overflow: hidden;
  transform: rotate(1deg);
  transform-origin: center;
}

/* -- Sidebar rail -- */
.acctMockSidebar {
  flex: 0 0 52px;
  background: var(--acctDarkBg, #0f2742);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}

.acctMockIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
}

.acctMockIcon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acctMockIcon--active {
  background: var(--acctBlue, #0568ff);
  color: #ffffff;
  margin-bottom: 6px;
}

/* -- Screenshot fills the rest -- */
.acctMockMain {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 0;
}

.acctMockMain img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ 2. PROOF PILLARS STRIP ============ */
.accountingProof {
  background: var(--acctDarkBg);
  color: #ffffff;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 6vw;
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accountingProof span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.12em;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #e2e8f0;
}

.accountingProof span:last-child {
  border-right: none;
}

/* ============================================================
   REUSABLE SECTION SYSTEM — CONTENT SECTIONS 3–30
   ============================================================ */

/* --- Base Section --- */
.acctSection {
  padding: 100px 7vw;
  max-width: 100%;
}

.acctSection--light {
  background: #ffffff;
}

.acctSection--surface {
  background: var(--acctSurface);
}

.acctSection--dark {
  background: var(--acctDarkBg);
  color: #ffffff;
}

.acctSection--compact {
  padding: 80px 7vw;
}

/* --- Section Head --- */
.acctSectionHead {
  margin-bottom: 48px;
}

.acctSectionHead>span {
  letter-spacing: 0.18em;
  color: var(--acctBlue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}

.acctSectionHead h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.95;
  font-weight: 400;
  color: var(--acctInk);
  margin: 0 0 18px;
}

.acctSectionHead p {
  color: var(--acctBody);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  margin: 0 0 10px;
}

.acctSectionHead p:last-child {
  margin-bottom: 0;
}

/* Dark variant */
.acctSectionHead--dark>span {
  color: var(--acctSky);
}

.acctSectionHead--dark h2 {
  color: #ffffff;
}

.acctSectionHead--dark p {
  color: #94a3b8;
}

/* --- Feature Block --- */
.acctFeatureBlock h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--acctInk);
  margin: 0 0 12px;
}

.acctFeatureBlock p {
  color: var(--acctBody);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.acctFeatureBlock--dark h3 {
  color: #ffffff;
}

.acctFeatureBlock--dark p {
  color: #94a3b8;
}

/* --- Lists --- */
.acctList {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.acctList li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--acctInk);
  border-bottom: 1px solid rgba(16, 36, 62, 0.07);
}

.acctList li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acctBlue);
}

/* Multi-column list */
.acctList--cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 40px;
}

/* Dark variant */
.acctList--dark li {
  color: #e2e8f0;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.acctList--dark li::before {
  background: var(--acctSky);
}

/* --- Closing Line --- */
.acctClosingLine {
  font-size: 16px;
  font-weight: 500;
  color: var(--acctBody);
  margin: 28px 0 0;
  line-height: 1.6;
  font-style: italic;
}

.acctClosingLine--center {
  text-align: center;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.acctClosingLine--dark {
  color: #94a3b8;
}

.acctClosingLine--emphasis {
  font-weight: 600;
  font-style: normal;
  margin-top: 8px;
}

/* --- Voucher Grid --- */
.acctVoucherGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: transparent;
  margin-bottom: 40px;
}

.acctVoucherGrid--5cols {
  grid-template-columns: repeat(5, 1fr);
}

.acctVoucherGrid article {
  background: var(--acctDarkCard);
  padding: 36px 32px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.acctVoucherGrid article:hover {
  background: var(--acctDarkHover);
  transform: translateY(-3px);
}

.acctVoucherGrid h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}

.acctVoucherGrid p {
  color: #94a3b8;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Light variant of Voucher / Stock Grid */
.acctVoucherGrid--light {
  background: var(--acctBorderLight);
  border: 1px solid var(--acctBorderLight);
}

.acctVoucherGrid--light article {
  background: #ffffff;
}

.acctVoucherGrid--light article:hover {
  background: var(--acctSkyBg);
  transform: translateY(-3px);
}

.acctVoucherGrid--light h3 {
  color: var(--acctInk);
}

.acctVoucherGrid--light p {
  color: var(--acctBody);
}

@media (max-width: 1200px) {
  .acctVoucherGrid--5cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .acctVoucherGrid--5cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .acctVoucherGrid--5cols {
    grid-template-columns: 1fr;
  }
}

/* --- Proof Strip (inline) --- */
.acctProofStrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 24px 0;
  border: 1px solid var(--acctBorderLight);
  border-radius: 6px;
  overflow: hidden;
}

.acctProofStrip span {
  flex: 1 1 auto;
  padding: 14px 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acctInk);
  border-right: 1px solid var(--acctBorderLight);
  background: #ffffff;
}

.acctProofStrip span:last-child {
  border-right: none;
}

.acctProofStrip--dark {
  border-color: rgba(255, 255, 255, 0.1);
}

.acctProofStrip--dark span {
  background: rgba(255, 255, 255, 0.04);
  color: var(--acctSky);
  border-right-color: rgba(255, 255, 255, 0.1);
}

/* --- Drill Path --- */
.acctDrillPath {
  margin: 36px 0;
  text-align: center;
}

.acctDrillPath>span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--acctMuted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.acctDrillChain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 28px;
  background: var(--acctSurface);
  border: 1px solid var(--acctBorderLight);
  border-radius: 8px;
}

.acctDrillChain b {
  font-size: 15px;
  font-weight: 600;
  color: var(--acctInk);
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--acctBorderLight);
  border-radius: 4px;
}

.acctDrillChain i {
  font-style: normal;
  color: var(--acctBlue);
  font-size: 16px;
  font-weight: 600;
}

.acctDrillPath>p {
  color: var(--acctBody);
  font-size: 15px;
  margin: 16px 0 0;
}

.acctDrillPath--dark .acctDrillChain {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.acctDrillPath--dark .acctDrillChain b {
  background: var(--acctDarkCard);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.acctDrillPath--dark .acctDrillChain i {
  color: var(--acctSky);
}

/* --- Sub-blocks (cards inside a section) --- */
.acctSubBlocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: transparent;
  margin-top: 12px;
}

.acctSubBlocks--2,
.acctSubBlocks:has(> :last-child:nth-child(2)) {
  grid-template-columns: repeat(2, 1fr);
}

.acctSubBlocks article {
  background: #ffffff;
  padding: 36px 32px;
}

.acctSubBlocks h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--acctInk);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}

.acctSubBlocks p {
  color: var(--acctBody);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.acctSubBlocks p:last-child {
  margin-bottom: 0;
}

.acctSubBlocks--dark {
  background: transparent;
}

.acctSubBlocks--dark article {
  background: var(--acctDarkCard);
}

.acctSubBlocks--dark h3 {
  color: #ffffff;
}

.acctSubBlocks--dark p {
  color: #94a3b8;
}

/* --- Callout --- */
.acctCallout {
  margin: 32px 0 0;
  padding: 28px 32px;
  background: var(--acctSkyBg);
  border-left: 4px solid var(--acctBlue);
  border-radius: 0 8px 8px 0;
}

.acctCallout p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--acctInk);
  margin: 0 0 6px;
}

.acctCallout p:last-child {
  margin-bottom: 0;
}

.acctCallout--center {
  text-align: center;
  border-left: none;
  border-radius: 8px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Questions --- */
.acctQuestions {
  margin: 20px 0;
}

.acctQuestions p {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--acctInk);
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 36, 62, 0.07);
}

.acctQuestions p:last-child {
  border-bottom: none;
}

.acctQuestions--dark p {
  color: #e2e8f0;
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.acctQuestions--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 40px;
}

.acctQuote {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--acctSky) !important;
  font-style: italic;
  margin: 12px 0 16px !important;
}

/* --- Drill Steps --- */
.acctDrillSteps {
  margin: 0 0 32px;
}

.acctDrillSteps p {
  font-size: 17px;
  font-weight: 500;
  color: #e2e8f0;
  padding: 12px 0 12px 24px;
  margin: 0;
  border-left: 2px solid var(--acctSky);
  position: relative;
}

.acctDrillSteps p::before {
  content: none;
  display: none;
}

/* --- Drill Notes --- */
.acctDrillNotes {
  margin: 0 0 32px;
}

.acctDrillNotes p {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  padding: 8px 0;
}

.acctDrillNotes--dark p {
  color: #94a3b8;
}

/* --- Register Grid --- */
.acctBooksGrid {
  max-width: 100%;
}

.acctBooksGrid>h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--acctInk);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}

.acctRegisterGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--acctBorderLight);
  border: 1px solid var(--acctBorderLight);
}

.acctRegisterGrid article {
  background: #ffffff;
  padding: 32px 28px;
  transition: background 0.2s ease;
}

.acctRegisterGrid article:hover {
  background: var(--acctSkyBg);
}

.acctRegisterGrid b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--acctInk);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.acctRegisterGrid p {
  color: var(--acctBody);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* --- Terms List (Indian Accounting) --- */
.acctTermsList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0 0 32px;
}

.acctTermsList span {
  font-size: 18px;
  font-weight: 500;
  color: var(--acctInk);
  padding: 10px 20px;
  border: 1px solid var(--acctBorderLight);
  border-right: none;
  background: #ffffff;
}

.acctTermsList span:last-child {
  border-right: 1px solid var(--acctBorderLight);
}

/* ============ 31. CLOSING FINAL BAND ============ */
.accountingFinal {
  text-align: center;
  background: linear-gradient(135deg, #dfe9ff, #edf7d3);
  color: var(--acctInk);
  padding: 135px 7vw;
}

.accountingFinal h2 {
  font-family: var(--font-display, 'Inter', sans-serif);
  letter-spacing: -0.055em;
  max-width: 950px;
  margin: 26px auto 28px;
  font-size: clamp(44px, 5.5vw, 86px);
  line-height: 0.95;
  font-weight: 400;
  color: var(--acctInk);
}

.acctFinalDesc {
  color: var(--acctBody);
  font-size: 17px;
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto 40px;
}

.acctFinalPillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0 auto 36px;
  max-width: 900px;
}

.acctFinalPillars span {
  padding: 12px 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acctInk);
  border: 1px solid rgba(16, 36, 62, 0.12);
  background: rgba(255, 255, 255, 0.65);
  margin: -0.5px;
}

.acctFinalTagline {
  font-size: 17px;
  font-weight: 500;
  color: var(--acctBody);
  margin: 0 0 32px;
  font-style: italic;
}

.btn-accounting-final {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--acctBlue);
  color: #ffffff !important;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 104, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-accounting-final:hover {
  background: var(--acctBlueHover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(5, 104, 255, 0.35);
}

/* ============ RESPONSIVE MEDIA QUERIES ============ */
@media (max-width: 960px) {
  .accountingHero {
    grid-template-columns: 1fr;
  }

  .acctRegisterGrid {
    grid-template-columns: 1fr 1fr;
  }

  .acctVoucherGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accountingProof {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .accountingHero {
    padding: 60px 20px;
    min-height: auto;
  }

  .accountingHero h1 {
    font-size: 2.2rem;
  }

  .accountingActions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-accounting-primary,
  .btn-accounting-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .accountingClose {
    margin-top: 24px;
  }

  .closeSummary,
  .accountingProof {
    grid-template-columns: 1fr;
  }

  .accountingProof {
    padding: 0 20px;
  }

  .accountingProof span {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 14px;
    text-align: center;
    display: block;
  }

  .accountingProof span:last-child {
    border-bottom: none;
  }

  .acctSection {
    padding: 60px 20px;
  }

  .acctSection--compact {
    padding: 50px 20px;
  }

  .accountingFinal {
    padding: 60px 20px;
  }

  .acctList--cols {
    grid-template-columns: 1fr;
  }

  .acctVoucherGrid {
    grid-template-columns: 1fr;
  }

  .acctRegisterGrid {
    grid-template-columns: 1fr;
  }

  .acctSubBlocks {
    grid-template-columns: 1fr;
  }

  .acctProofStrip {
    flex-direction: column;
  }

  .acctProofStrip span {
    border-right: none;
    border-bottom: 1px solid var(--acctBorderLight);
  }

  .acctProofStrip--dark span {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .acctProofStrip span:last-child {
    border-bottom: none;
  }

  .acctDrillChain {
    flex-direction: column;
    gap: 6px;
  }

  .acctQuestions--grid {
    grid-template-columns: 1fr;
  }

  .acctTermsList {
    flex-direction: column;
  }

  .acctTermsList span {
    border-right: 1px solid var(--acctBorderLight);
    border-bottom: none;
  }

  .acctTermsList span:last-child {
    border-bottom: 1px solid var(--acctBorderLight);
  }

  .acctFinalPillars {
    flex-direction: column;
    align-items: center;
  }

  .acctFinalPillars span {
    width: 100%;
    text-align: center;
  }

  .acctDrillSteps p {
    font-size: 15px;
  }
}


/* ============================================================
   ACCOUNTING CATALOGUE — SCROLL-DRIVEN ACCORDION
   A single editorial sequence of full-width expandable rows.
   Collapsed row: eyebrow + headline + toggle.
   Expanded row: lede rail on the left, capability detail on the right.
   ============================================================ */
.accountingPage .accountingCatalogue {
  --acc-ink: #10243e;
  --acc-blue: #0568ff;
  --acc-teal: #087f78;
  --acc-gold: #d89a24;
  --acc-ease: cubic-bezier(.22, .61, .28, 1);
  --acc-open: .52s;

  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  column-count: initial !important;
  column-gap: 0 !important;
}

.accountingPage .accountingCatalogue .acctAccordion {
  --acc-accent: var(--acc-blue);
  position: relative;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 1px solid rgba(16, 36, 62, .1) !important;
  border-radius: 14px !important;
  overflow: clip !important;
  background: #edf2f5 !important;
  color: var(--acc-ink) !important;
  opacity: 1;
  transition:
    background-color .4s var(--acc-ease),
    border-color .4s var(--acc-ease),
    box-shadow .4s var(--acc-ease),
    transform .4s var(--acc-ease),
    opacity .5s ease;
  scroll-margin-top: 96px;
}

/* Rotating accent so the sequence reads as a set, not a stripe. */
.accountingPage .accountingCatalogue .acctAccordion:nth-child(3n + 2) {
  --acc-accent: var(--acc-teal);
}

.accountingPage .accountingCatalogue .acctAccordion:nth-child(3n + 3) {
  --acc-accent: var(--acc-gold);
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark {
  background: var(--acc-ink) !important;
  border-color: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark {
  --acc-accent: #7fddd0;
}

/* Left accent rail — grows in when the row opens. */
.accountingPage .accountingCatalogue .acctAccordion::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--acc-accent);
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
  transition: transform .5s var(--acc-ease), opacity .3s ease;
  pointer-events: none;
}

.accountingPage .accountingCatalogue .acctAccordion.is-active::before {
  transform: scaleY(1);
  opacity: 1;
}

.accountingPage .accountingCatalogue .acctAccordion:not(.acctSection--dark):hover {
  background: #e7eef3 !important;
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark:hover {
  background: #14294a !important;
}

.accountingPage .accountingCatalogue .acctAccordion.is-active {
  background: #fff !important;
  border-color: rgba(16, 36, 62, .16) !important;
  box-shadow: 0 18px 44px -28px rgba(16, 36, 62, .45) !important;
}

.accountingPage .accountingCatalogue .acctAccordion.is-active.acctSection--dark {
  background: #0d1f36 !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow: 0 18px 44px -26px rgba(4, 12, 24, .7) !important;
}

/* Scroll-in reveal. */
@media (prefers-reduced-motion: no-preference) {
  .accountingPage .accountingCatalogue .acctAccordion:not(.is-inview) {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Collapsed row ---------- */
.accountingPage .accountingCatalogue .acctAccordionHead {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(132px, 178px) minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 8px 22px !important;
  width: 100% !important;
  min-height: 86px !important;
  margin: 0 !important;
  padding: 20px 26px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  text-align: left !important;
  -webkit-tap-highlight-color: transparent;
}

.accountingPage .accountingCatalogue .acctAccordionHead::after {
  content: '';
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 1px;
  background: rgba(16, 36, 62, .1);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform .5s var(--acc-ease), opacity .3s ease;
}

.accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionHead::after {
  transform: scaleX(1);
  opacity: 1;
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionHead::after {
  background: rgba(255, 255, 255, .14);
}

.accountingPage .accountingCatalogue .acctAccordionMeta {
  display: contents !important;
}

.accountingPage .accountingCatalogue .acctAccordionLabel {
  position: relative;
  grid-column: 1;
  padding-left: 16px;
  color: var(--acc-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.accountingPage .accountingCatalogue .acctAccordionLabel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc-accent);
  opacity: .34;
  transform: translateY(-50%) scale(.72);
  transition: opacity .35s ease, transform .35s var(--acc-ease);
}

.accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionLabel::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionLabel {
  color: #7fddd0;
}

.accountingPage .accountingCatalogue .acctAccordionHead>h2 {
  grid-column: 2;
  max-width: 900px !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: clamp(1.25rem, 1.75vw, 1.85rem) !important;
  line-height: 1.12 !important;
  font-weight: 560 !important;
  letter-spacing: -.035em !important;
  transition: color .3s ease;
}

.accountingPage .accountingCatalogue .acctAccordionHead>h2 br {
  display: none;
}

/* ---------- Toggle ---------- */
.accountingPage .accountingCatalogue .acctAccordionToggle {
  position: relative;
  display: inline-block;
  grid-column: 3;
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 36, 62, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  font-size: 0;
  transition: background-color .3s ease, border-color .3s ease, transform .4s var(--acc-ease);
}

.accountingPage .accountingCatalogue .acctAccordionToggle::before,
.accountingPage .accountingCatalogue .acctAccordionToggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--acc-ink);
  transform: translate(-50%, -50%);
  transition: transform .42s var(--acc-ease), opacity .28s ease, background-color .3s ease;
}

.accountingPage .accountingCatalogue .acctAccordionToggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionToggle {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionToggle::before,
.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionToggle::after {
  background: #cfe6e2;
}

.accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionToggle {
  border-color: var(--acc-accent);
  background: var(--acc-accent);
  transform: rotate(180deg);
}

.accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionToggle::before {
  background: #fff;
}

/* The vertical bar collapses — the row shows a true minus when open. */
.accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionToggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.accountingPage .accountingCatalogue .acctAccordion.is-active.acctSection--dark .acctAccordionToggle::before {
  background: #05261f;
}

.accountingPage .accountingCatalogue .acctAccordionHead:hover .acctAccordionToggle {
  border-color: var(--acc-accent);
}

/* ---------- Expanding panel ---------- */
.accountingPage .accountingCatalogue .acctAccordionBody {
  display: grid !important;
  grid-template-rows: 0fr !important;
  padding: 0 26px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  opacity: 0;
  transition:
    grid-template-rows var(--acc-open) var(--acc-ease),
    padding var(--acc-open) var(--acc-ease),
    opacity .3s ease;
}

.accountingPage .accountingCatalogue .acctAccordionBody>.acctAccordionInner {
  min-height: 0 !important;
  overflow: hidden !important;
}

.accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionBody {
  grid-template-rows: 1fr !important;
  padding: 26px 26px 34px !important;
  opacity: 1;
  transition:
    grid-template-rows var(--acc-open) var(--acc-ease),
    padding var(--acc-open) var(--acc-ease),
    opacity .4s ease .08s;
}

.accountingPage .accountingCatalogue .acctAccordionInner {
  display: grid !important;
  grid-template-columns: minmax(200px, 290px) minmax(0, 1fr) !important;
  gap: 32px 52px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.accountingPage .accountingCatalogue .acctAccordionInner--full {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Lede rail: the intro copy that used to sit in the collapsed row. */
.accountingPage .accountingCatalogue .acctAccordionAside {
  padding-right: 24px;
  border-right: 1px solid rgba(16, 36, 62, .1);
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionAside {
  border-right-color: rgba(255, 255, 255, .13);
}

.accountingPage .accountingCatalogue .acctAccordionAside>p {
  max-width: none !important;
  margin: 0 0 12px !important;
  color: #4a5b6b !important;
  font-size: .95rem !important;
  line-height: 1.58 !important;
}

.accountingPage .accountingCatalogue .acctAccordionAside>p:last-child {
  margin-bottom: 0 !important;
}

.accountingPage .accountingCatalogue .acctAccordionAside>p.acctAccordionLede:first-child {
  color: var(--acc-ink) !important;
  font-size: 1.04rem !important;
  font-weight: 460 !important;
  line-height: 1.48 !important;
  letter-spacing: -.012em;
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionAside>p {
  color: #b7c6d3 !important;
}

.accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionAside>p.acctAccordionLede:first-child {
  color: #f2f6f9 !important;
}

.accountingPage .accountingCatalogue .acctAccordionMain {
  min-width: 0;
}

.accountingPage .accountingCatalogue .acctAccordionMain>*+* {
  margin-top: 18px !important;
}

/* Detail content stretches across the full width of its column instead of
   sitting in two narrow lanes with dead space beside it. */
.accountingPage .accountingCatalogue .acctAccordionMain .acctList,
.accountingPage .accountingCatalogue .acctAccordionMain .acctList--cols {
  grid-template-columns: repeat(auto-fit, minmax(244px, 1fr)) !important;
  gap: 0 26px !important;
  margin: 10px 0 0 !important;
  max-width: none !important;
}

.accountingPage .accountingCatalogue .acctAccordionMain .acctVoucherGrid,
.accountingPage .accountingCatalogue .acctAccordionMain .acctSubBlocks,
.accountingPage .accountingCatalogue .acctAccordionMain .acctRegisterGrid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  max-width: none !important;
}

/* The page-wide `height: 100%` on these cards was sized against a two-column
   row; in a wider auto-fit row it lets tall cards spill over what follows.
   Stretch alignment gives the same equal-height result without the overflow. */
.accountingPage .accountingCatalogue .acctAccordionMain .acctVoucherGrid article,
.accountingPage .accountingCatalogue .acctAccordionMain .acctSubBlocks article,
.accountingPage .accountingCatalogue .acctAccordionMain .acctRegisterGrid article {
  height: auto !important;
  align-self: stretch !important;
}

.accountingPage .accountingCatalogue .acctAccordionMain .acctQuestions,
.accountingPage .accountingCatalogue .acctAccordionMain .acctQuestions--grid,
.accountingPage .accountingCatalogue .acctAccordionMain .acctDrillSteps,
.accountingPage .accountingCatalogue .acctAccordionMain .acctFeatureBlock,
.accountingPage .accountingCatalogue .acctAccordionMain .acctVoucherPills,
.accountingPage .accountingCatalogue .acctAccordionMain .acctDrillPath,
.accountingPage .accountingCatalogue .acctAccordionMain .acctTermsList,
.accountingPage .accountingCatalogue .acctAccordionMain .acctDrillNotes,
.accountingPage .accountingCatalogue .acctAccordionMain .acctProofStrip,
.accountingPage .accountingCatalogue .acctAccordionMain>ul,
.accountingPage .accountingCatalogue .acctAccordionMain>p {
  max-width: none !important;
}

.accountingPage .accountingCatalogue .acctAccordionMain .acctFeatureBlock+.acctFeatureBlock {
  margin-top: 22px !important;
}

.accountingPage .accountingCatalogue .acctAccordionMain .acctFeatureBlock h3:first-child {
  margin-top: 0 !important;
}

.accountingPage .accountingCatalogue .acctAccordionMain .acctSectionHead {
  display: block !important;
  margin-bottom: 10px !important;
}

.accountingPage .accountingCatalogue .acctAccordionMain .acctClosingLine {
  margin-bottom: 0 !important;
}

/* Staggered entrance for the panel contents. */
@media (prefers-reduced-motion: no-preference) {

  .accountingPage .accountingCatalogue .acctAccordionAside,
  .accountingPage .accountingCatalogue .acctAccordionMain>* {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .5s var(--acc-ease);
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionAside,
  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionMain>* {
    opacity: 1;
    transform: none;
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionAside {
    transition-delay: .1s;
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionMain>*:nth-child(1) {
    transition-delay: .14s;
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionMain>*:nth-child(2) {
    transition-delay: .2s;
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionMain>*:nth-child(3) {
    transition-delay: .26s;
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionMain>*:nth-child(n + 4) {
    transition-delay: .3s;
  }
}

.accountingPage .accountingCatalogue .acctAccordionHead:focus-visible,
.accountingPage .accountingCatalogue .acctAccordion:focus-visible {
  outline: 2px solid var(--acc-blue);
  outline-offset: -3px;
  border-radius: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .accountingPage .accountingCatalogue .acctAccordionInner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionAside {
    padding: 0 0 0 14px;
    border-right: 0;
    border-left: 2px solid var(--acc-accent);
  }

  .accountingPage .accountingCatalogue .acctAccordion.acctSection--dark .acctAccordionAside {
    border-left-color: var(--acc-accent);
  }
}

@media (max-width: 860px) {
  .accountingPage .accountingCatalogue .acctAccordionHead {
    grid-template-columns: minmax(0, 1fr) 38px !important;
    gap: 6px 14px !important;
    min-height: 78px !important;
    padding: 18px 20px !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionHead::after {
    left: 20px;
    right: 20px;
  }

  .accountingPage .accountingCatalogue .acctAccordionLabel {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionHead>h2 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    font-size: 1.3rem !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionToggle {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center;
  }

  .accountingPage .accountingCatalogue .acctAccordionBody {
    padding: 0 20px !important;
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionBody {
    padding: 20px 20px 26px !important;
  }
}

@media (max-width: 560px) {
  .accountingPage .accountingCatalogue {
    gap: 6px !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionHead {
    grid-template-columns: minmax(0, 1fr) 32px !important;
    min-height: 72px !important;
    padding: 16px !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionHead::after {
    left: 16px;
    right: 16px;
  }

  .accountingPage .accountingCatalogue .acctAccordionHead>h2 {
    font-size: 1.14rem !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionToggle {
    width: 30px;
    height: 30px;
  }

  .accountingPage .accountingCatalogue .acctAccordionBody {
    padding: 0 16px !important;
  }

  .accountingPage .accountingCatalogue .acctAccordion.is-active .acctAccordionBody {
    padding: 18px 16px 24px !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionMain .acctList,
  .accountingPage .accountingCatalogue .acctAccordionMain .acctList--cols {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .accountingPage .accountingCatalogue .acctAccordionMain .acctVoucherGrid,
  .accountingPage .accountingCatalogue .acctAccordionMain .acctSubBlocks,
  .accountingPage .accountingCatalogue .acctAccordionMain .acctRegisterGrid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .accountingPage .accountingCatalogue .acctAccordion,
  .accountingPage .accountingCatalogue .acctAccordion::before,
  .accountingPage .accountingCatalogue .acctAccordionBody,
  .accountingPage .accountingCatalogue .acctAccordionHead::after,
  .accountingPage .accountingCatalogue .acctAccordionToggle,
  .accountingPage .accountingCatalogue .acctAccordionToggle::before,
  .accountingPage .accountingCatalogue .acctAccordionToggle::after {
    transition: none !important;
  }
}