/* FX Design System 3.0 case · page extras (prefix .ds-) */

/* 02 audit: the same primary button, fourteen ways */
.ds-audit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 16px; padding: clamp(8px, 3vw, 28px) 0; }
.ds-audit span { display: inline-flex; align-items: center; justify-content: center; height: var(--h); padding: 0 calc(var(--h) * .55); border-radius: var(--r); background: var(--b); color: #fff; font: var(--w, 600) 14px/1 var(--font-sans); letter-spacing: 0; white-space: nowrap; }

/* 04 architecture: stacked layers */
.ds-layers { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; }
.ds-layers li { display: grid; grid-template-columns: 120px minmax(0, 260px) minmax(0, 1fr); align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.ds-layers li.is-prod { border-style: dashed; background: transparent; }
.ds-layers li.is-theme { border-color: var(--accent-line); background: var(--accent-soft); }
.ds-layers b { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--text); }
.ds-layers p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.ds-tag { justify-self: start; font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-strong); border-radius: 2px; padding: 4px 8px; }
.is-theme .ds-tag { color: var(--accent); border-color: var(--accent-line); }
@media (max-width: 760px) {
  .ds-layers li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 18px; }
}

/* 05 theme levers table */
.rtable.ds-lev .rt-row { grid-template-columns: 1.15fr 1.3fr .8fr .55fr 1fr; }
.rtable.ds-lev .rt-role { align-items: center; }
@media (max-width: 760px) { .rtable.ds-lev .rt-row { grid-template-columns: minmax(0, 1fr); } }
.ds-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

/* 08 product tabs */
.ds-prod { margin-top: 32px; }
.ds-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-tabs button { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--muted); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
html[lang^="zh"] .ds-tabs button { font-family: var(--font-sans); letter-spacing: 0; font-size: 13px; }
.ds-tabs button:hover { color: var(--text); border-color: var(--accent-line); }
.ds-tabs button[aria-selected="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.ds-tabs button:focus-visible { outline: none; box-shadow: var(--focus); }
.ds-panel .media { margin-top: 16px; }
.ds-cap { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.ds-phones { display: flex; justify-content: center; gap: clamp(16px, 4vw, 56px); }
.ds-phones img { width: min(300px, 42%); height: auto; border-radius: clamp(18px, 3vw, 36px) !important; }

/* 09 governance: five steps */
.tline.ds-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .tline.ds-5 { grid-template-columns: minmax(0, 1fr); } }

/* 10 origin link */
.ds-origin { display: block; }
.ds-origin img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.ds-origin:hover img { transform: scale(1.01); }
@media (prefers-reduced-motion: reduce) { .ds-origin img { transition: none; } }

/* links inside product captions */
.ds-cap a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
