/* Light TDS introduction aligned with the GST and Billing outer frames. */
.tds-page { padding-top: 26px; }
.tds-page .section-inner { width: 100%; }

.tds-intro { position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; width: 100%; max-width: none; margin-inline: 0; padding: 36px 32px; border: 1px solid #d9eaf2; border-radius: 8px; background: radial-gradient(ellipse at 85% 15%,#dff3ff,transparent 46%),radial-gradient(ellipse at 8% 70%,#fff0df,transparent 42%),#fcfeff; color: #0b3b3b; box-shadow: 0 18px 48px #0b304414; }
.tds-intro::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; pointer-events: none; background: linear-gradient(90deg,#fb923c,#f97316 25%,#38bdf8 65%,#0284c7); }
.tds-intro-copy { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.tds-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #0369a1; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tds-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f6a65e; box-shadow: 0 0 0 5px #f6a65e15; }
.tds-intro h1 { margin: 18px 0 16px; font: 800 clamp(34px,4.2vw,60px)/1.15 'Plus Jakarta Sans',sans-serif; letter-spacing: -.04em; }
.tds-intro h1 span { color: #f47a22; }
.tds-intro h1 em { color: #0b3b3b; font-style: normal; }
.tds-page .tds-lead { max-width: 710px; margin: 0 auto 14px; color: #0369a1; font-size: clamp(18px,2vw,25px); font-weight: 600; line-height: 1.4; }
.tds-page .tds-description { max-width: 760px; margin: 0 auto 20px; color: #496779; font-size: 14px; line-height: 1.75; }
.tds-highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.tds-highlights li { padding: 7px 12px; border: 1px solid #dbeaf2; border-radius: 30px; background: #ffffffd9; color: #0c4a6e; font-size: 11px; font-weight: 600; }
.tds-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.tds-primary,.tds-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; box-sizing: border-box; padding: 12px 20px; border: 0; border-radius: 30px; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; touch-action: manipulation; }
.tds-primary { color: #fff; background: linear-gradient(135deg,#0284c7,#0369a1); box-shadow: 0 6px 18px #0284c721; }
.tds-primary:hover { color: #fff; background: #0369a1; }
.tds-primary:disabled { opacity: .65; cursor: wait; }
.tds-secondary { color: #0c4a6e; padding-inline: 0; }
.tds-secondary:hover { color: #ea580c; }
.tds-preview { box-sizing: border-box; width: 100%; max-width: none; margin: auto; overflow: hidden; border: 1px solid #d6e4ec; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px #174e6510; color: #14384b; scroll-margin-top: 110px; }
.tds-preview-header { display: flex; align-items: center; gap: 10px; padding: 16px 24px; background: linear-gradient(90deg,#fff8ef,#eef9ff); border-bottom: 1px solid #dfeaf0; color: #173e51; }
.tds-preview-header small { display: block; margin-top: 2px; font-size: 11px; color: #648092; }
.tds-sample-tag { margin-left: auto; border: 1px solid #bfdce8; border-radius: 6px; padding: 5px 9px; font-size: 10px; color: #396b83; }
.tds-preview-body { padding: 24px 28px; }
.tds-page .tds-preview-heading h2 { margin: 0 0 5px; color: #0b3b3b; font-size: 23px; letter-spacing: -.025em; }
.tds-page .tds-preview-heading p { margin: 0 0 20px; color: #67818e; font-size: 12px; }
.tds-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }
.tds-tabs button { min-height: 48px; border: 1px solid #dae6ed; border-radius: 8px; background: #f6f9fc; color: #567081; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.tds-tabs button[aria-selected="true"] { color: #0369a1; background: #e4f5ff; border-color: #92cfe8; box-shadow: inset 0 -3px #f6a65e; }
.tds-panel { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 16px 24px; min-height: 225px; align-items: start; }
.tds-panel[hidden] { display: none; }
.tds-metric { grid-column: 1; grid-row: 1 / span 2; border-right: 1px solid #e0eaf0; padding: 12px 18px 12px 0; min-height: 160px; }
.tds-metric div>span { color: #65808e; font-size: 12px; line-height: 1.5; }
.tds-metric strong { display: block; margin: 12px 0 16px; color: #164c68; font-size: 48px; line-height: 1; letter-spacing: -.04em; }
.tds-status { display: inline-block; padding: 6px 8px; border-radius: 5px; background: #edf5f8; color: #4e7587; font-size: 10px; }
.tds-form-map { grid-column: 2; }
.tds-form-map table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.tds-form-map caption { margin-bottom: 8px; color: #31566a; font-weight: 700; text-align: left; }
.tds-form-map th { color: #597887; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: #eef5f9; }
.tds-form-map :is(th,td) { padding: 7px 12px; border-bottom: 1px solid #e7eef3; }
.tds-form-map td:first-child { color: #557182; }
.tds-form-map td:last-child { color: #136b8a; font-weight: 700; }
.tds-checklist { grid-column: 2; list-style: none; margin: 0; padding: 0; }
.tds-checklist li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e8eff3; color: #526e7f; font-size: 12px; line-height: 1.5; }
.tds-checklist b { color: #1e596d; font-size: 12px; text-align: right; }
.tds-demo-check { display: flex; align-items: center; gap: 20px; margin-top: 20px; padding: 16px; border: 1px solid #e0eaf1; border-radius: 10px; background: #f4f8fb; }
.tds-demo-check .tds-primary { flex-shrink: 0; color: #fff; background: linear-gradient(135deg,#0284c7,#0369a1); }
.tds-page .tds-check-result { margin: 0; color: #557080; font-size: 12px; line-height: 1.6; }
.tds-page .tds-demo-note { margin: 12px 0 0; color: #728a97; font-size: 10px; line-height: 1.5; text-align: right; }
.tds-intro :is(a,button,[tabindex]):focus-visible { outline: 3px solid #ed913c; outline-offset: 3px; }
@media(max-width:700px) {
 .tds-intro { padding: 28px 18px; border-radius: 8px; }
 .tds-preview-body { padding: 18px 16px; }
 .tds-preview-header { padding: 14px 16px; }
 .tds-panel { grid-template-columns: 1fr; gap: 14px; }
 .tds-metric { grid-column: 1; grid-row: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid #e0eaf0; min-height: 0; }
 .tds-metric strong { margin: 6px 0 0; font-size: 36px; }
 .tds-form-map,.tds-checklist { grid-column: 1; }
 .tds-demo-check { flex-direction: column; align-items: stretch; gap: 12px; }
 .tds-tabs { gap: 6px; }
 .tds-checklist li { flex-wrap: wrap; gap: 3px 10px; }
 .tds-checklist b { text-align: left; }
 .tds-page .tds-demo-note { text-align: left; }
}

@media(max-width:640px) { .tds-page { padding: 26px 10px 34px; } }

/* Visual return upload demo. */
.tds-filing-content { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,1fr); gap: 20px; align-items: center; padding: 24px 32px; }
.tds-filing-art { min-width: 0; }
.tds-filing-art svg { display: block; width: 100%; height: auto; }
.tds-filing-controls { min-width: 0; padding: 10px 0; }
.tds-filing-kicker { color: #da721f; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.tds-page .tds-filing-controls h2 { margin: 8px 0 18px; color: #0b3b3b; font-size: clamp(25px,3vw,38px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.tds-filing-controls label { display: block; margin-bottom: 8px; color: #587687; font-size: 12px; }
.tds-filing-controls select { box-sizing: border-box; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bddce9; border-radius: 9px; background: #f8fcff; color: #164c68; font: inherit; font-size: 14px; }
.tds-filing-controls .tds-primary { width: 100%; margin-top: 12px; }
.tds-upload-progress-label { display: flex; justify-content: space-between; margin: 20px 0 7px; font-size: 11px; color: #617e8d; }
.tds-upload-progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 10px; background: #e6f1f7; overflow: hidden; accent-color: #039cc8; }
.tds-upload-progress::-webkit-progress-bar { background: #e6f1f7; }
.tds-upload-progress::-webkit-progress-value { background: linear-gradient(90deg,#38bdf8,#009cc0); border-radius: 10px; }
.tds-upload-progress::-moz-progress-bar { background: #039cc8; border-radius: 10px; }
.tds-page .tds-upload-status { min-height: 38px; margin: 10px 0 0; color: #547485; font-size: 12px; line-height: 1.5; }
.tds-filing-steps { display: flex; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: filing-step; }
.tds-filing-steps li { display: flex; align-items: center; gap: 7px; color: #678695; font-size: 12px; }
.tds-filing-steps li::before { counter-increment: filing-step; content: counter(filing-step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf5fa; color: #638697; font-size: 10px; font-weight: 800; }
.tds-filing-steps li.is-current { color: #0369a1; font-weight: 700; }
.tds-filing-steps li.is-current::before { background: #d9f1fd; color: #0369a1; }
.tds-filing-steps li.is-done::before { content: '✓'; background: #dff7ec; color: #23846a; }
.tds-filing-footer { display: flex; align-items: center; gap: 32px; padding: 20px 32px; background: linear-gradient(90deg,#fff9f2,#effaff); border-top: 1px solid #e3eef3; }
.tds-filing-count { display: flex; flex-direction: column; gap: 5px; }
.tds-filing-count strong { display: inline-block; color: #0284c7; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tds-filing-count:nth-child(2) strong { color: #219675; }
.tds-filing-count span { font-size: 11px; color: #5e7e8d; }
.tds-filing-footer .tds-demo-note { margin: 0 0 0 auto; }
.tds-filed-stamp { opacity: 0; transform-origin: 352px 170px; }
.tds-filing-demo[data-stage="upload"] .tds-return-file { animation: tds-file-transfer 1.8s ease-in-out both; }
.tds-filing-demo:is([data-stage="validate"],[data-stage="filed"]) .tds-return-file { opacity: 0; }
.tds-filing-demo[data-stage="filed"] .tds-filed-stamp { opacity: 1; animation: tds-stamp-in .4s ease-out; }
.tds-filing-demo[data-stage="filed"] .tds-screen-upload { opacity: 0; }
.tds-filing-demo:is([data-stage="validate"],[data-stage="filed"]) .tds-upload-route { opacity: 0; }
.tds-filing-demo[data-stage="filed"] .tds-upload-status { color: #23846a; }
.tds-extra-features { padding: 14px 32px; border-top: 1px solid #e3eef3; }
.tds-extra-features summary { min-height: 32px; cursor: pointer; color: #446b80; font-size: 12px; }
.tds-extra-features > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 8px 0; }
.tds-page .tds-extra-features p { margin: 0; font-size: 12px; line-height: 1.6; color: #668293; }
.tds-extra-features strong { color: #315b70; }
.tds-filing-demo :is(select,summary):focus-visible { outline: 3px solid #ed913c; outline-offset: 3px; }
@keyframes tds-file-transfer { 0%,12% { transform: translate(0,0) rotate(0); opacity: 1; } 72% { opacity: 1; } 100% { transform: translate(220px,-25px) scale(.65); opacity: 0; } }
@keyframes tds-stamp-in { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media(max-width:760px) {
 .tds-filing-content { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 14px; }
 .tds-filing-art { max-width: 580px; width: 100%; margin: auto; }
 .tds-page .tds-filing-controls h2 br { display: none; }
 .tds-filing-footer { padding: 18px 16px; gap: 24px; flex-wrap: wrap; }
 .tds-filing-footer .tds-demo-note { margin: 0; flex-basis: 100%; }
 .tds-extra-features { padding: 14px 16px; }
 .tds-extra-features > div { grid-template-columns: 1fr; gap: 12px; }
}
@media(prefers-reduced-motion:reduce) {
 .tds-filing-demo .tds-return-file,.tds-filing-demo .tds-filed-stamp { animation: none !important; }
}

/* Native form picker retains mobile and keyboard selection behavior. */
.tds-form-select { position: relative; display: flex; align-items: center; border: 1px solid #b5dce9; border-radius: 12px; background: linear-gradient(110deg,#fff8ee,#f2fbff 65%); box-shadow: 0 4px 12px #187b9c09; transition: border-color .2s, box-shadow .2s; }
.tds-form-select-icon { position: absolute; left: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #ffedd8; color: #c46a20; pointer-events: none; }
.tds-form-select-icon svg { width: 18px; height: 18px; }
.tds-form-select::after { content: ''; position: absolute; right: 17px; top: 21px; width: 7px; height: 7px; border-right: 2px solid #078bb5; border-bottom: 2px solid #078bb5; transform: rotate(45deg); pointer-events: none; }
.tds-filing-controls .tds-form-select select { appearance: none; -webkit-appearance: none; min-height: 54px; padding: 13px 40px 13px 52px; border: 0; border-radius: 12px; background: transparent; color: #164c68; font-size: 13px; font-weight: 700; cursor: pointer; }
.tds-form-select select option { background: #fff; color: #164c68; font-weight: 500; }
.tds-form-select:focus-within { border-color: #009dcc; box-shadow: 0 0 0 4px #00a9d51a; }
.tds-form-select select:disabled { cursor: wait; opacity: .65; }
@media(hover:hover) { .tds-form-select:hover { border-color: #6dbfd8; box-shadow: 0 5px 16px #0284c714; } }
@media(prefers-reduced-motion:reduce) { .tds-form-select { transition: none; } }

/* Styled option panel for the return picker. */
.tds-form-select { z-index: 3; }
.tds-form-select.is-open { z-index: 20; border-color: #69bed8; box-shadow: 0 0 0 3px #00a9d512; }
.tds-form-select.is-open::after { transform: rotate(225deg); top: 25px; }
.tds-form-trigger { display: block; box-sizing: border-box; width: 100%; min-height: 54px; padding: 13px 40px 13px 52px; border: 0; border-radius: 12px; background: transparent; color: #164c68; line-height: 1.5; font-family: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; touch-action: manipulation; }
.tds-form-trigger:disabled { opacity: .65; cursor: wait; }
.tds-form-menu[hidden],.tds-form-select select[hidden] { display: none; }
.tds-form-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 7px; border: 1px solid #cfe5ef; border-radius: 14px; background: #fff; box-shadow: 0 14px 32px #164c6826; }
.tds-form-menu-heading { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px 10px; color: #698898; font-size: 10px; }
.tds-form-menu-heading span { color: #cf792e; }
.tds-form-option { display: flex; align-items: center; gap: 9px; min-height: 58px; box-sizing: border-box; padding: 9px 8px; border-radius: 9px; color: #28556b; cursor: pointer; touch-action: manipulation; }
.tds-form-option + .tds-form-option { margin-top: 3px; }
.tds-form-option:is(:hover,.is-active) { background: #f0f8fc; }
.tds-form-option[aria-selected="true"] { background: linear-gradient(100deg,#edf9ff,#f4fcfa); }
.tds-option-document { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 32px; border: 1px solid #d3e8f2; border-radius: 7px; background: #f4faff; color: #259bc0; font-size: 19px; }
.tds-option-copy { min-width: 0; flex: 1; }
.tds-option-copy strong { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12px; font-weight: 650; }
.tds-option-copy i { color: #c58c51; font-style: normal; }
.tds-option-copy small { display: block; margin-top: 3px; color: #75909e; font-size: 10px; }
.tds-option-check { visibility: hidden; color: #249677; font-weight: 800; font-size: 14px; }
.tds-form-option[aria-selected="true"] .tds-option-check { visibility: visible; }
.tds-filing-demo { overflow: visible; }
.tds-filing-demo .tds-preview-header { border-radius: 16px 16px 0 0; }

/* Clear separators between old/new certificate pairs. */
.tds-highlights .tds-certificate-chip { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
.tds-certificate-pairs { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.tds-certificate-pairs > span { display: inline-flex; align-items: center; white-space: nowrap; color: #0b3b3b; font-weight: 700; }
.tds-certificate-pairs > span + span::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; margin-inline: 10px; border-radius: 50%; background: #0b3b3b; }


/* Match the GST frames using its shared layout and artwork. */
/* Repository image backgrounds for the three GST feature frames. */
:is(#tds-returns, #tds-compliance, #tds-register).gst-feature-row {
  background-color: #f5f9fc;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
}
/* Bright multicolour TDS workflows with individual artwork and motion paths. */
#tds-returns.gst-feature-row {
 background-color:#FFDEBA;
 background-image:url("../asset/frms_bg/tds-returns-workflow.svg?v=20261001"),
 radial-gradient(ellipse at 8% 90%,#FFF0DC 0%,transparent 58%),
 linear-gradient(115deg,#FFC897 0%,#FFDEBA 47%,#FFF0D8 100%);
 background-size:100% 100%,cover,cover; background-position:center; background-repeat:no-repeat;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}
#tds-compliance.gst-feature-row {
 background-color:#C4EFDA;
 background-image:url("../asset/frms_bg/tds-compliance-workflow.svg?v=20261001"),
 radial-gradient(ellipse at 8% 85%,#EEFFF5 0%,transparent 58%),
 linear-gradient(115deg,#A5E3C2 0%,#C4EFDA 48%,#E1FAEA 100%);
 background-size:100% 100%,cover,cover; background-position:center; background-repeat:no-repeat;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}
#tds-register.gst-feature-row {
 background-color:#F9CDDF;
 background-image:url("../asset/frms_bg/tds-register-workflow.svg?v=20261001"),
 radial-gradient(ellipse at 92% 85%,#FFF0F5 0%,transparent 58%),
 linear-gradient(115deg,#F4B5CF 0%,#F9CDDF 48%,#FFE4EE 100%);
 background-size:100% 100%,cover,cover; background-position:center; background-repeat:no-repeat;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}
#tds-register .gst-feature-row-copy > ul {
  background: url("../asset/frms_bg/tds-register-bullet-art.svg?v=20261001") center / contain no-repeat;
}
:is(#tds-returns, #tds-compliance, #tds-register) > .gst-motion-frame {
  display: none;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy :is(h2, p, li) {
  color: #12364c;
  text-shadow: none;
}

/* Frosted bullet points: keep the full text column transparent. */
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy li {
  background: transparent;
  border-color: rgba(255, 255, 255, .65);
  box-shadow: 0 8px 24px rgba(18, 54, 76, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy li {
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    backdrop-filter: blur(40px) saturate(150%);
  }
}

/* Transparent 3D artwork behind the Returns bullet list only. */
#tds-returns .gst-feature-row-copy > ul {
  background-image: url("../asset/frms_bg/tds-returns-bullet-art.svg?v=20261001");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Shared sharp copy on the bright Returns and Reports frames. */
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy :is(h2, p, li) {
  color: #17382e;
  text-shadow: none;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy p {
  color: #284536;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy li {
  color: #17382e;
  background: transparent;
  border-color: rgba(235, 255, 247, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font-weight: 650;
  letter-spacing: 0;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-typing-keyword {
  padding: 2px 5px;
  border-radius: 4px;
  color: #17382e;
  font-weight: 800;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 -2px 0 rgba(244, 122, 34, .8);
}

/* Return paragraph to normal text rendering after its entrance animation. */
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy > p {
  color: #18372e;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy > p.gst-typing-ready .gst-typing-word {
  will-change: auto;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy.gst-animation-visible > p,
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy.gst-animation-visible > p.gst-typing-ready .gst-typing-word {
  opacity: 1;
  transform: none;
  animation-fill-mode: backwards;
}

/* Let a little of the Returns artwork show through the existing glass. */
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy li {
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}

/* Full transparent Reports illustration; contain preserves the entire platform. */
#tds-compliance .gst-feature-row-copy > ul {
  background-image: url("../asset/frms_bg/tds-compliance-bullet-art.svg?v=20261001");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Preserve the full screenshots at tablet and desktop sizes. */
@media (min-width: 641px) {
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-media img {
    height: auto;
  }
}

/* Compact desktop frames for laptop viewports; never crop the content. */
@media (min-width: 901px) and (max-width: 1500px), (min-width: 901px) and (max-height: 820px) {
  #tds-returns.gst-feature-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  #tds-compliance.gst-feature-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy { padding: 20px 24px; }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy h2 {
    font-size: clamp(24px, 2.05vw, 30px);
    line-height: 1.15;
    margin-bottom: 10px;
  }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy > p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy ul { gap: 8px; }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy li {
    padding: 9px 12px;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
  }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy li::before {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-media {
    padding: 16px;
    margin: 0;
  }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-media img {
    height: auto;
    max-height: max(260px, calc(100dvh - 150px));
    object-fit: contain;
  }
}
/* Narrow windows stack naturally instead of squeezing the text column. */
@media (min-width: 641px) and (max-width: 900px) {
  :is(#tds-returns, #tds-compliance, #tds-register).gst-feature-row { grid-template-columns: minmax(0, 1fr); }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-media {
    order: 0;
    padding: 18px;
    margin: 0;
  }
  :is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy {
    order: 1;
    padding: 20px 24px 28px;
  }
}

/* Desktop baseline: grow naturally whenever the screenshot or copy needs space. */
:is(#tds-returns, #tds-compliance, #tds-register).gst-feature-row {
  height: auto;
  min-height: 530px;
}
@media (max-width: 900px) {
  :is(#tds-returns, #tds-compliance, #tds-register).gst-feature-row {
    min-height: 0;
  }
}


/* Consistent feature titles and crisp bullet text. */
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy h2 {
  position: relative;
  color: #0b3b3b;
  font-weight: 800;
  letter-spacing: -.025em;
  text-shadow: none;
  padding-bottom: 12px;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: #0b3b3b;
  opacity: .65;
}
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy li {
  color: #17382e;
}

/* Consistent content-sized glass bullets with visible outlines across all GST frames. */
:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy > ul > li {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(11, 59, 59, .38);
}

/* Corner-only reconciliation artwork; all existing layout and backgrounds stay intact. */
:is(#tds-traces, #tds-reports).gst-feature-card {
  position: relative;
  isolation: isolate;
}
#tds-traces.gst-feature-card { --reconciliation-art: url("../asset/frms_bg/gst-invoice-match-corner.svg"); }
#tds-reports.gst-feature-card { --reconciliation-art: url("../asset/frms_bg/gst-itc-match-corner.svg"); }
:is(#tds-traces, #tds-reports).gst-feature-card::before,
:is(#tds-traces, #tds-reports).gst-feature-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: var(--reconciliation-art) center / contain no-repeat;
}
:is(#tds-traces, #tds-reports).gst-feature-card::before {
  width: 52px;
  height: 45px;
  top: -12px;
  left: -14px;
  opacity: .28;
  transform: rotate(-12deg);
}
:is(#tds-traces, #tds-reports).gst-feature-card::after {
  width: clamp(76px, 8vw, 116px);
  height: 100px;
  top: -12px;
  right: -8px;
  opacity: .4;
}
:is(#tds-traces, #tds-reports).gst-feature-card > .gst-feature-copy,
:is(#tds-traces, #tds-reports).gst-feature-card > .gst-feature-browser {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  :is(#tds-traces, #tds-reports).gst-feature-card::after {
    width: 76px;
    height: 66px;
    opacity: .24;
  }
}

.tds-page #tds-deductors { margin-top: 24px; }
@media(max-width: 900px) {
 .tds-page .gst-feature-row .gst-feature-row-media { order: 0; aspect-ratio: auto; }
 .tds-page .gst-feature-row .gst-feature-row-copy { order: 1; }
}



:is(#tds-returns, #tds-compliance, #tds-register) .gst-feature-row-copy.gst-animation-visible { opacity: 1; transform: none; animation-fill-mode: backwards; }

/* Minimal, static TaxPower illustrations; no plants or animated backdrop. */
.tds-page #tds-deductors {
  isolation: isolate;
  background: #edf8fd url("../asset/frms_bg/tds-client-minimal.webp") center top / 100% auto no-repeat;
}
.tds-page #tds-deductors .gst-dashboard-heading {
  max-width: 620px;
  width: 70%;
  background: transparent;
}
.tds-page #tds-deductors .gst-dashboard-heading h2 { color: #0b3b3b; }
@media (max-width: 700px) {
  .tds-page #tds-deductors .gst-dashboard-heading {
    width: 100%;
    padding-top: 52px;
  }
}

/* Subtle document → validation → completion motif, confined to the top edge. */
#tds-deductors .tds-processing-art {
  position: absolute;
  top: 8px;
  left: 50%;
  width: min(42%, 420px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
#tds-deductors .tds-processing-art svg { display: block; width: 100%; height: auto; }
#tds-deductors .tds-processing-paper { animation: tdsDocumentProcess 8s linear infinite; }
#tds-deductors .tds-processing-done { animation: tdsCompletionGlow 8s ease-in-out infinite; }
@keyframes tdsDocumentProcess {
  0%, 5% { opacity: 0; transform: translateX(0); }
  12% { opacity: 1; }
  46%, 54% { opacity: 1; transform: translateX(192px); }
  86% { opacity: 1; transform: translateX(400px); }
  92%, 100% { opacity: 0; transform: translateX(400px); }
}
@keyframes tdsCompletionGlow {
  0%, 78%, 100% { opacity: .55; }
  88%, 94% { opacity: 1; }
}
@media (max-width: 700px) {
  #tds-deductors .tds-processing-art { top: 18px; width: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  #tds-deductors .tds-processing-paper { display: none; animation: none; }
  #tds-deductors .tds-processing-done { animation: none; opacity: 1; }
}

/* Random pastel geometry, confined behind the client dashboard content. */
#tds-deductors > .tds-floating-shapes {
 position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0;
 overflow:hidden; border-radius:inherit; pointer-events:none; z-index:0;
 contain:layout paint;
}
#tds-deductors > .tds-floating-shapes > li {
 position:absolute; display:block; list-style:none;
 left:var(--shape-left,25%); width:var(--shape-size,60px); height:var(--shape-size,60px);
 backface-visibility:hidden;
 bottom:-150px; background:none; border:0; padding:0; margin:0;
 animation:tdsFloatingShapeRise var(--shape-duration,30s) linear var(--shape-delay,-24s) infinite;
 animation-play-state:paused;
}
#tds-deductors .tds-floating-shapes > li::before {
 content:""; position:absolute; inset:0; box-sizing:border-box; border-radius:3px;
 background:rgba(173,145,225,.30); border:1.5px solid rgba(135,100,190,.52);
}
#tds-deductors .tds-floating-shapes > li[data-tone="peach"]::before {
 background:rgba(255,177,125,.34); border-color:rgba(225,138,80,.55);
}
#tds-deductors .tds-floating-shapes > li[data-shape="triangle"]::before {
 border:0; border-radius:0;
 background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M50%205%2096%2094H4Z%22%20fill%3D%22%23ad91e1%22%20fill-opacity%3D%22.34%22%20stroke%3D%22%238764be%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
#tds-deductors .tds-floating-shapes > li[data-shape="triangle"][data-tone="peach"]::before {
 background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M50%205%2096%2094H4Z%22%20fill%3D%22%23ffb17d%22%20fill-opacity%3D%22.34%22%20stroke%3D%22%23e18a50%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}
#tds-deductors .tds-floating-shapes > li[data-shape="diamond"]::before {
 inset:14%; transform:rotate(45deg);
}
@keyframes tdsFloatingShapeRise {
 0% { transform:translate3d(0,0,0) rotate(var(--shape-angle,0deg)); opacity:0; }
 8%,85% { opacity:1; }
 100% { transform:translate3d(var(--shape-drift,20px),var(--tds-shape-travel,-1200px),0) rotate(var(--shape-turn,90deg)); opacity:0; }
}
#tds-deductors > .tds-floating-shapes[data-motion-running="true"] > li {
 animation-play-state:running; will-change:transform,opacity;
}
@media(max-width:767px) {
 #tds-deductors > .tds-floating-shapes > li {
  left:var(--shape-left-mobile,10%);
  width:calc(var(--shape-size,60px) * .7);
  height:calc(var(--shape-size,60px) * .7);
 }
 #tds-deductors > .tds-floating-shapes > li:nth-child(n+7) { display:none; }
}
@media(prefers-reduced-motion:reduce) {
 #tds-deductors > .tds-floating-shapes { display:none; }
}

/* TDS feature introduction: centred heading and three horizontal workflow cards. */
.tds-page .tds-feature-explorer {
 display:block; position:relative; box-sizing:border-box;
 width:100%; max-width:none; margin:0 0 28px; padding:32px;
 border:1px solid #DCEAF1; border-radius:16px;
 background:radial-gradient(ellipse at 0% 0%,#FFF0E0,transparent 48%),
 radial-gradient(ellipse at 100% 100%,#E1F5FF,transparent 55%),#FAFDFE;
 box-shadow:0 8px 24px rgba(32,82,102,.04);
}
.tds-page .tds-feature-explorer::before {
 content:""; position:absolute; inset:0; z-index:0;
 pointer-events:none; border-radius:inherit;
 background:url("../asset/frms_bg/tds-explorer-illustrations.svg?v=20261001") center / 100% 100% no-repeat;
}
.tds-page .tds-feature-explorer::after { content:none; }
@media(max-width:767px) {
 .tds-page .tds-feature-explorer::before {
  background-size:auto 100%; opacity:.35;
 }
}
.tds-feature-explorer .gst-features-intro { text-align:center; }
.tds-feature-explorer .gst-features-kicker {
 display:inline-flex; align-items:center; gap:8px; padding:6px 12px;
 border:1px solid #E5D9C9; border-radius:20px; background:#FFF8EE;
}
.tds-page .tds-feature-explorer h2 {
 margin:14px auto 10px; max-width:900px;
 color:#0B3B3B; font-size:clamp(27px,3vw,39px); line-height:1.25;
 letter-spacing:-.035em;
}
.tds-feature-explorer .tds-explorer-brand { color:#E87921; }
.tds-page .tds-feature-explorer .gst-features-intro p {
 max-width:720px; margin:0 auto; color:#5C7888; font-size:14px; line-height:1.7;
}
.tds-feature-explorer .gst-features-nav {
 display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
 gap:12px; margin:24px 0 0; padding:0; border:0; counter-reset:tds-workflow;
}
.tds-feature-explorer .gst-features-nav-label {
 grid-column:1 / -1; margin:0 0 2px; text-align:center;
 font-size:10px; letter-spacing:.12em; color:#64808E;
}
.tds-feature-explorer .gst-features-nav a {
 display:flex; align-items:center; gap:12px; min-width:0; min-height:78px;
 box-sizing:border-box; padding:16px; border:1px solid #D5E5ED;
 border-radius:12px; background:rgba(255,255,255,.88);
 box-shadow:0 4px 12px rgba(36,78,100,.04);
 transition:background .2s,border-color .2s,box-shadow .2s;
}
.tds-feature-explorer .gst-features-link-icon { flex-shrink:0; }
.tds-feature-explorer .gst-features-link-copy { flex:1; min-width:0; }
.tds-feature-explorer .gst-features-link-copy strong { display:block; font-size:13px; line-height:1.5; color:#194D60; }
.tds-feature-explorer .gst-features-link-copy small { display:block; margin-top:3px; font-size:11px; line-height:1.5; }
.tds-feature-explorer .gst-features-link-arrow { flex-shrink:0; }
.tds-feature-explorer .gst-features-nav a:hover {
 padding:16px; background:#F0FAFF; border-color:#8CCADB;
 box-shadow:0 5px 16px rgba(36,78,100,.09);
}
.tds-feature-explorer .gst-features-nav a:focus-visible { outline:3px solid #E9944E; outline-offset:3px; }
@media(max-width:767px) {
 .tds-page .tds-feature-explorer { padding:24px 18px; }
 .tds-feature-explorer .gst-features-nav { grid-template-columns:1fr; gap:9px; }
 .tds-feature-explorer .gst-features-nav a { min-height:68px; }
}
@media(prefers-reduced-motion:reduce) {
 .tds-feature-explorer .gst-features-nav a { transition:none; }
}

/* Distinct TDS tools: document downloads and numerical reports. */
#tds-traces.gst-feature-card {
 --reconciliation-art:url("../asset/frms_bg/tds-traces-documents.svg?v=20261001");
 background:radial-gradient(ellipse at 100% 0%,#F5EDFF,transparent 60%),
 linear-gradient(125deg,#CBB3F0 0%,#E0CEF8 48%,#EFE3FF 100%);
}
#tds-reports.gst-feature-card {
 --reconciliation-art:url("../asset/frms_bg/tds-numerical-reports.svg?v=20261001");
 background:radial-gradient(ellipse at 0% 0%,#FFFCDF,transparent 58%),
 linear-gradient(125deg,#FFE38F 0%,#FFF0B5 48%,#FFF8D7 100%);
}
:is(#tds-traces,#tds-reports).gst-feature-card::after {
 width:clamp(90px,10vw,138px); height:132px; top:-12px; right:-5px; opacity:.48;
}
:is(#tds-traces,#tds-reports) .gst-feature-copy { padding-right:clamp(30px,5vw,74px); }
:is(#tds-traces,#tds-reports) .gst-feature-copy h2 { color:#0B3B3B; }
:is(#tds-traces,#tds-reports) .gst-feature-copy p { color:#244B50; }
#tds-traces .gst-feature-copy :is(.gst-typing-keyword,strong) {
 color:#51406E; background:rgba(255,255,255,.88); border-radius:4px;
 padding:2px 5px; font-weight:800; box-shadow:inset 0 -2px #AA91D0;
}
#tds-reports .gst-feature-copy .gst-typing-keyword {
 color:#245C4A; background:rgba(255,255,255,.88); box-shadow:inset 0 -2px #7BB69D;
}
@media(max-width:600px) {
 :is(#tds-traces,#tds-reports).gst-feature-card::after { width:84px; height:94px; opacity:.3; }
 :is(#tds-traces,#tds-reports) .gst-feature-copy { padding-right:24px; }
}

/* Match the GST glass treatment while keeping TDS filing artwork distinct. */
#tds-returns .gst-feature-row-copy :is(h2,p,li),
#tds-returns .gst-typing-keyword { color:#0B3B3B; }
#tds-returns .gst-feature-row-copy > ul > li {
 background:rgba(255,255,255,.46); border-color:#96AEC8;
 -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
#tds-returns .gst-feature-row-copy > ul > li::before {
 background:#658FB8; box-shadow:0 2px 8px rgba(101,143,184,.25);
}

/* Consistent glass treatment across the three TDS feature frames. */
#tds-returns { --tds-feature-accent:#B8793E; --tds-feature-border:#C89C72; --tds-bullet-tint:rgba(255,249,242,.65); }
#tds-compliance { --tds-feature-accent:#279B95; --tds-feature-border:#73B2A0; --tds-bullet-tint:rgba(244,255,248,.57); }
#tds-register { --tds-feature-accent:#B3638A; --tds-feature-border:#C18DA5; --tds-bullet-tint:rgba(255,244,249,.65); }
:is(#tds-returns,#tds-compliance,#tds-register) .gst-feature-row-copy :is(h2,p,li),
:is(#tds-returns,#tds-compliance,#tds-register) .gst-typing-keyword { color:#0B3B3B; }
:is(#tds-returns,#tds-compliance,#tds-register) .gst-feature-row-copy > ul > li {
 background:var(--tds-bullet-tint); border-color:var(--tds-feature-border);
 -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
:is(#tds-returns,#tds-compliance,#tds-register) .gst-feature-row-copy > ul > li::before {
 background:var(--tds-feature-accent); box-shadow:0 2px 8px rgba(36,60,80,.15);
}

/* Share the copy row so both TDS screenshots start at the same height. */
@media(min-width:641px) {
 .tds-page .tds-tools-pair {
  grid-template-rows:auto auto;
 }
 .tds-page .tds-tools-pair > :is(#tds-traces,#tds-reports) {
  display:grid; grid-row:span 2; grid-template-rows:subgrid; row-gap:0;
 }
 .tds-tools-pair > :is(#tds-traces,#tds-reports) > .gst-feature-copy {
  box-sizing:border-box; margin:0;
 }
 .tds-tools-pair > :is(#tds-traces,#tds-reports) > .gst-feature-browser {
  align-self:start;
 }
}
