/* ==========================================================================
   Xinshi FIBC · site-wide unified UI layer (ui-tokens.css v5)
   Loaded last. Responsibilities: type scale, colour tokens, links, cards,
   buttons, tables, form controls. No layout/grid changes.
   ========================================================================== */

:root {
  /* brand */
  --ui-brand:        #1d3a2f;
  --ui-brand-soft:   #2c5346;
  --ui-accent:       #e8ab6d;
  --ui-accent-deep:  #d99a5b;
  --ui-accent-ink:   #8a5a1e;

  /* ink & text */
  --ui-ink:          #12211c;
  --ui-text:         #3b4a44;
  --ui-muted:        #5b6f66;
  --ui-faint:        #8a9791;

  /* surfaces & lines */
  --ui-paper:        #ffffff;
  --ui-surface:      #fafbf9;
  --ui-surface-2:    #f5f6f8;
  --ui-line:         #e3e6e3;
  --ui-line-soft:    #eef1ef;

  /* semantic */
  --ui-ok:           #2f7a5b;
  --ui-warn:         #b8791f;
  --ui-danger:       #c85f57;

  /* dark sections */
  --ui-dark:         #0a0b0e;
  --ui-dark-2:       #12211c;
  --ui-on-dark:      #f4f7f5;
  --ui-on-dark-mut:  #b9c6c0;
  --ui-on-dark-line: rgba(255, 255, 255, .12);

  /* radii & shadows */
  --ui-r-sm: 8px;
  --ui-r:    12px;
  --ui-r-lg: 16px;
  --ui-shadow:    0 1px 2px rgba(18, 33, 28, .05), 0 8px 24px rgba(18, 33, 28, .06);
  --ui-shadow-lg: 0 2px 6px rgba(18, 33, 28, .06), 0 18px 48px rgba(18, 33, 28, .10);

  /* fonts */
  --ui-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
                  "Source Han Sans SC", Roboto, Arial, sans-serif;
  --ui-font-num:  "SF Pro Display", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ui-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* unified type scale (takes over brand-polish.css --fs-* variables) */
  --fs-display: clamp(2rem, 3.9vw, 3.125rem);      /* 32 -> 50px  hero */
  --fs-h1:      clamp(1.75rem, 3.1vw, 2.625rem);   /* 28 -> 42px  page title */
  --fs-h2:      clamp(1.25rem, 1.9vw, 1.625rem);   /* 20 -> 26px  section */
  --fs-h3:      clamp(1rem, 1.25vw, 1.1875rem);    /* 16 -> 19px  sub */
  --fs-body:    1rem;                               /* 16px body */
  --fs-lead:    clamp(1.0625rem, 1.2vw, 1.125rem); /* 17 -> 18px lead */
  --fs-sm:      .9375rem;                           /* 15px */
  --fs-meta:    .8125rem;                           /* 13px */
}

/* ---------- 1. type ---------- */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ui-font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* size / weight / spacing only — never colour (dark pages keep their own) */
h1, h2, h3, h4, h5 {
  font-family: var(--ui-font-sans);
  font-weight: 700;
  letter-spacing: -.014em;
  line-height: 1.26;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 16px; letter-spacing: 0; }

p, li { line-height: 1.78; }

/* eyebrow / small caps labels */
.art-eyebrow, .bc-eyebrow, .fx-eyebrow, .hub-k, .cs-tag, .pc-tag, .art-answer-h,
.snx-brand small {
  font-family: var(--ui-font-sans);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.5;
}

/* tabular numbers for prices / specs / tables */
table, .pc-specs, [class*="price"], [class*="num"] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 2. links ---------- */
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

.art-body a:not([class]),
.art-disclose a {
  color: var(--ui-brand);
  text-decoration: underline;
  text-decoration-color: rgba(232, 171, 109, .75);
}
.art-body a:not([class]):hover,
.art-disclose a:hover { color: var(--ui-accent-ink); }

/* ---------- 3. cards: geometry only (no forced background) ---------- */
.glass-card, .hub-col, .buy-card, .pc-page, .dtpl-card,
.cs-card, .hn-card, .fx-card, .vcard {
  border-radius: var(--ui-r-lg);
}

.hub-col, .buy-card, .hn-card {
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.hub-col:hover, .buy-card:hover, .hn-card:hover {
  border-color: rgba(29, 58, 47, .22);
  box-shadow: var(--ui-shadow-lg);
}

.hub-col h3, .buy-card h3, .cs-title, .hn-title, .dtpl-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.4;
}

/* ---------- 4. buttons ---------- */
.art-cta a, .btn, .hn-btn, .hub-more, a.primary, a.ghost, .dtpl-btn, .buy-btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .15s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}
a.primary, .art-cta a.primary, .dtpl-btn, .buy-btn {
  background: var(--ui-brand);
  border: 1px solid var(--ui-brand);
  color: #fff;
}
a.primary:hover, .art-cta a.primary:hover, .dtpl-btn:hover, .buy-btn:hover {
  background: var(--ui-brand-soft);
  border-color: var(--ui-brand-soft);
  transform: translateY(-1px);
}
a.ghost { background: transparent; border: 1px solid var(--ui-line); color: var(--ui-brand); }
a.ghost:hover { border-color: var(--ui-brand); }

/* ---------- 5. tables (article family only) ---------- */
.art-table table, .art-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r);
  overflow: hidden;
}
.art-table th, .art-body thead th {
  background: var(--ui-brand);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  letter-spacing: .02em;
}
.art-table td, .art-body td {
  padding: 9px 12px;
  border-top: 1px solid var(--ui-line-soft);
  vertical-align: top;
}
.art-body tbody tr:nth-child(even) td { background: var(--ui-surface); }

/* ---------- 6. form controls ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], input:not([type]), textarea, select {
  font-family: var(--ui-font-sans);
  font-size: 15px;
  border-radius: 10px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ui-brand);
  box-shadow: 0 0 0 3px rgba(29, 58, 47, .12);
}
button, .btn, input[type="submit"] { font-family: var(--ui-font-sans); }

/* ---------- 7. callouts / meta ---------- */
.art-note {
  background: #fdf7ef;
  border: 1px solid #f0dfc8;
  border-left: 3px solid var(--ui-accent);
  border-radius: var(--ui-r);
  color: #4a3a24;
  font-size: 13.5px;
  line-height: 1.75;
}
.art-note b { color: var(--ui-accent-ink); }

.art-disclose { font-size: 13.5px; line-height: 1.75; }
.art-toc, .art-crumb, .art-meta, .ni-meta, .art-refs {
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 8. focus ---------- */
:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* pills / badges */
[class*="pill"], [class*="chip"], [class*="badge"], .ni-tag, .cs-tag {
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .02em;
}

/* ---------- 9. print ---------- */
@media print {
  body { color: #000; }
  .snx-nav, .m-tabbar, .art-float-ch, .dtpl { display: none !important; }
}

/* ==========================================================================
   10. hard scale enforcement — beats template-level !important rules
   ========================================================================== */
.art-body p, .art-body li, .art-answer p, .cs-row dd, .pc-desc {
  font-size: 16px !important;
  line-height: 1.8 !important;
}

html body h1, html body .art-h1, html body .bc-title, html body main h1 {
  font-size: var(--fs-h1) !important;
  line-height: 1.22 !important;
  font-weight: 700 !important;
}
html body .hero h1, html body .hero-dark h1, html body [class*="hero"] h1 {
  font-size: var(--fs-display) !important;
  line-height: 1.14 !important;
}
html body h2, html body .art-body h2, html body main h2 {
  font-size: var(--fs-h2) !important;
  line-height: 1.32 !important;
}
html body h3, html body .art-body h3, html body main h3 {
  font-size: var(--fs-h3) !important;
  line-height: 1.42 !important;
}
/* section headings that used a class instead of a tag */
html body .fx-h, html body .sec-h, html body h2.fx-h, html body .hub-head h2 {
  font-size: var(--fs-h2) !important;
  line-height: 1.32 !important;
}

.art-table table, .art-body table, .art-table td, .art-body td,
.art-table th, .art-body th { font-size: 14.5px !important; }

.art-body > p + p { margin-top: 1.05em !important; }
.art-body > h2 { margin-top: 2.1em !important; margin-bottom: .7em !important; }
.art-body > h3 { margin-top: 1.5em !important; margin-bottom: .5em !important; }

/* v7: 移动端宽表格不再撑破页面（覆盖模板 min-width，表格自身横向滚动） */
@media (max-width:900px){
  html body article table,
  html body .art-table,
  html body .art-body table,
  html body .tw table{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  html body article table > thead,
  html body article table > tbody,
  html body article table > tr{
    display:table;
    width:100%;
    min-width:520px;
  }
}

/* v8: 移动端宽表格——滚动交给 .art-table 容器，table 保持 display:table
   （v7 把 table 变成 display:block，tbody 的 min-width 溢出会被裁掉且无法横滑） */
@media (max-width:900px){
  html body .art-table{
    display:block; width:100%; max-width:100%;
    overflow-x:auto; overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  html body .art-table table{
    display:table !important;
    width:auto !important;
    max-width:none !important;
    min-width:520px !important;
  }
  html body .art-table table > thead,
  html body .art-table table > tbody{
    display:table-row-group;
    width:auto;
    min-width:0;
  }
  html body .art-table table > thead{ display:table-header-group; }
  html body .art-table th,
  html body .art-table td{ white-space:normal; }
  /* 没有 .art-table 包裹的裸表格：不撑破页面，靠换行而不是裁切 */
  html body article > table,
  html body .art-body > table{
    display:table; width:100%; max-width:100%; min-width:0;
    table-layout:auto;
  }
  html body article > table th,
  html body article > table td,
  html body .art-body > table th,
  html body .art-body > table td{ white-space:normal; word-break:break-word; }
}

/* ==========================================================================
   v9 — unified palette: black ground, yellow accent, white text (2026-11-21)
   Appended after every earlier layer, so it wins on equal specificity.
   ========================================================================== */
:root{
  --ui-accent:#e8ab6d;
  --ui-accent-deep:#d99a5b;
  --ui-accent-ink:#14161a;
  --ui-on-dark:#f5f6f8;
  --ui-on-dark-mut:rgba(245,246,248,.66);
  --ui-on-dark-line:rgba(255,255,255,.12);
  --ui-paper:#12141a;
  --ui-surface:#12141a;
  --ui-surface-2:#101216;
  --ui-line:rgba(255,255,255,.12);
  --ui-line-soft:rgba(255,255,255,.07);
  --ui-ink:#f5f6f8;
  --ui-text:rgba(245,246,248,.78);
  --ui-muted:rgba(245,246,248,.60);
  --ui-faint:rgba(245,246,248,.45);
}

/* --- content panels ------------------------------------------------------ */
.art-table,
.art-table > table,
.geo-glance{
  background:#12141a !important;
  border-color:rgba(255,255,255,.12) !important;
  color:rgba(245,246,248,.80) !important;
}
.art-table th,
.geo-glance th,
.art-body table th,
article table th{
  background:#191d24 !important;
  color:#f5f6f8 !important;
  border-color:rgba(255,255,255,.12) !important;
}
.art-table td,
.art-body table td,
article table td,
.art-table tbody td{
  background:transparent !important;
  color:rgba(245,246,248,.82) !important;
  border-color:rgba(255,255,255,.10) !important;
}
.art-table tr:nth-child(even) > td,
.art-body table tr:nth-child(even) > td{
  background:rgba(255,255,255,.028) !important;
}

/* notes / highlight blocks: yellow tint instead of cream */
.art-note,
.art-note-small{
  background:rgba(232,171,109,.075) !important;
  border-color:rgba(232,171,109,.30) !important;
  color:rgba(245,246,248,.86) !important;
}
.art-note b,
.art-note strong,
.art-note-small b{
  color:#e8ab6d !important;
}
.scope-foot{
  background:#101216 !important;
  border-color:rgba(255,255,255,.12) !important;
  color:rgba(245,246,248,.78) !important;
}

/* --- floating contact bar ----------------------------------------------- */
.uis-tel{background:#1f232c !important;color:#f5f6f8 !important;border-color:rgba(255,255,255,.14) !important}
.uis-tel svg,.uis-wa svg,.uis-ask svg{color:inherit !important}
.uis-wa{background:#1f232c !important;color:#e8ab6d !important;border-color:rgba(255,255,255,.14) !important}
.uis-ask{background:#e8ab6d !important;color:#14161a !important}
.uis-qr{background:#12141a !important;border-color:rgba(255,255,255,.18) !important}

/* --- header / search ---------------------------------------------------- */
.snx-login{background:#e8ab6d !important;color:#14161a !important}
.snx-login:hover{background:#f0bd85 !important}
.nav-search-btn{background:#1f232c !important;color:#f5f6f8 !important;border-color:rgba(255,255,255,.12) !important}

/* --- v10: generated inline blocks (region ring / content index / diagrams) -- */
[data-region-ring],
[data-content-index],
[data-cross],
[data-pianqu],
[data-region-links],
[data-geo-summary],
[data-sku-guide],
[data-sku-price-link],
[data-price-link],
[data-au-price-link],
[data-selection-link],
[data-rfq-panel]{
  background:#12141a !important;
  border-color:rgba(255,255,255,.12) !important;
  color:rgba(245,246,248,.80) !important;
}
[data-region-ring] h2,[data-region-ring] h3,[data-region-ring] b,
[data-content-index] h2,[data-content-index] h3,[data-content-index] b,
[data-cross] h2,[data-cross] h3,[data-cross] b,
[data-pianqu] h2,[data-pianqu] h3,[data-pianqu] b,
[data-region-links] h2,[data-region-links] b,
[data-geo-summary] p[style*="font-weight:700"]{
  color:#f5f6f8 !important;
}
[data-region-ring] p,[data-region-ring] li,[data-region-ring] span,[data-region-ring] em,
[data-content-index] p,[data-content-index] li,[data-content-index] span,
[data-cross] p,[data-cross] li,[data-cross] span,
[data-pianqu] p,[data-pianqu] li,[data-pianqu] span,
[data-region-links] p,[data-region-links] li,[data-region-links] span,
[data-geo-summary] li,[data-geo-summary] p{
  color:rgba(245,246,248,.78) !important;
}
[data-region-ring] a,[data-content-index] a,[data-cross] a,[data-pianqu] a,
[data-region-links] a,[data-geo-summary] a{
  color:#f5f6f8 !important;
  text-decoration-color:rgba(232,171,109,.55);
}
[data-region-ring] a:hover,[data-content-index] a:hover,[data-cross] a:hover,
[data-pianqu] a:hover,[data-region-links] a:hover,[data-geo-summary] a:hover{
  color:#e8ab6d !important;
}
svg[style*="#fafbf9"]{background:#12141a !important}
svg[style*="#fafbf9"] rect[fill="#fafbf9"],svg[style*="#fafbf9"] rect[fill="#ffffff"]{fill:#12141a !important}

/* --- v11: tailwind tables, brand buttons, ICP widget ---------------------- */
table tr{background:transparent !important;border-color:rgba(255,255,255,.10) !important}
table tr:nth-child(even){background:rgba(255,255,255,.028) !important}
table thead th{background:#191d24 !important;color:#f5f6f8 !important;border-color:rgba(255,255,255,.12) !important}
table tbody td{border-color:rgba(255,255,255,.10) !important}
a[class*="bg-brand"],button[class*="bg-brand"],
a[class*="bg-brand-copper"],button[class*="bg-brand-copper"]{
  background:#e8ab6d !important;color:#14161a !important;border-color:#e8ab6d !important;
}
a[class*="bg-brand"]:hover,button[class*="bg-brand"]:hover,
a[class*="bg-brand-copper"]:hover,button[class*="bg-brand-copper"]:hover{
  background:#f0bd85 !important;color:#14161a !important;
}
#icp-record-container{background:#0b0c10 !important;border-top-color:rgba(255,255,255,.10) !important}
#icp-record-container *{color:rgba(245,246,248,.66) !important}
#icp-record-container a{color:#e8ab6d !important}
/* QR codes must stay on a light card so phones can scan them */
.uis-qr{background:#ffffff !important;border-color:rgba(255,255,255,.20) !important}
/* ===== dark text normalisation (v13) ===== */
html body main :where(h1,h2,h3,h4,h5,h6){color:#f5f6f8!important}
html body main :where(p,li,dd,dt,td,th,span,b,strong,em,small,figcaption,summary,label,time,blockquote,
  div,section,article,tr,ul,ol,dl,form,thead,tbody){color:rgba(245,246,248,.82)!important}
html body main :where(h1,h2,h3,h4,h5,h6,b,strong,figcaption b){color:#f5f6f8!important}
html body main :where(a){color:#e8ab6d!important}
html body main button{color:#f5f6f8!important}
html body main a :where(span,b,strong,em,small){color:inherit!important}
html body main button :where(span,b,strong,em,small){color:inherit!important}
html body main thead th{color:rgba(245,246,248,.7)!important}
/* ---- light / accent surfaces keep dark ink ---- */
.rdp-cta,.rdp-cta :where(p,span,b,h2,h3){color:#14161a!important}
.rdp-cta a.pri{background:#14161a!important;color:#e8ab6d!important}
.rdp-cta a.gho{color:#14161a!important;border:1px solid rgba(20,22,26,.45)!important}
.rd-cta a.rd-btn--p,a.rd-btn--p,.art-cta a.primary,.art-channel-cta a.primary,a[class*="bg-brand"],
button[class*="bg-brand"],.art-float-ch,.rwy__cta:not([disabled]){background:#e8ab6d!important;color:#14161a!important}
.rd-cta a.rd-btn--g,.rd-cta a.rd-btn--d,.rd-btn--g,.rd-btn--d,.art-cta a.ghost,.art-channel-cta a.ghost{
  background:transparent!important;color:#f5f6f8!important;border:1px solid rgba(245,246,248,.32)!important}
.glass-btn{color:#f5f6f8!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.16)!important}
.uis-qr{background:#fff!important}
.uis-qr :where(p,span,b,strong){color:#14161a!important}
/* ---- home .rd internals ---- */
.rd .pr,.rd .big,.rd .nm,.rd dd,.rd dt,.rd .val,.rd .num{color:#f5f6f8!important}
.rd .pr small,.rd .n,.rd .lbl{color:rgba(245,246,248,.7)!important}
.rd-more{color:#e8ab6d!important}
.rd-eyebrow{color:#e8ab6d!important}
/* ---- legacy content blocks ---- */
.art-table th,.geo-glance b,.scope-foot b{color:#f5f6f8!important}
.art-table td,.geo-glance li,.scope-foot{color:rgba(245,246,248,.82)!important}
html body main table :where(tr,td,th,thead,tbody){color:rgba(245,246,248,.82)!important}
html body main table thead th{color:rgba(245,246,248,.7)!important}
/* ---- inline dark colours written straight into the markup ---- */
[style*="color:#1d3a2f"],[style*="color: #1d3a2f"],[style*="color:#22312b"],[style*="color: #22312b"],
[style*="color:#3b5a4d"],[style*="color: #3b5a4d"],[style*="color:#3f4f48"],[style*="color: #3f4f48"],
[style*="color:#41554e"],[style*="color: #41554e"],[style*="color:#4a5e57"],[style*="color: #4a5e57"],
[style*="color:#5b6f66"],[style*="color: #5b6f66"],[style*="color:#5d716a"],[style*="color: #5d716a"],
[style*="color:#6b7d76"],[style*="color: #6b7d76"],[style*="color:#2f3f38"],[style*="color: #2f3f38"]{
  color:#f5f6f8!important}


/* ===== final light-block normalisation (v15, round 30) ===== */
[style*="background:#fafbf9"],[style*="background: #fafbf9"]{background:#12141a !important}
[style*="background:#fafbf9"] p,[style*="background:#fafbf9"] li,[style*="background:#fafbf9"] span,
[style*="background:#fafbf9"] div,[style*="background:#fafbf9"] label,[style*="background:#fafbf9"] b,
[style*="background:#fafbf9"] strong,[style*="background:#fafbf9"] h3,[style*="background:#fafbf9"] h4,
[style*="background:#fafbf9"] dt,[style*="background:#fafbf9"] dd{color:rgba(245,246,248,.85) !important}
[style*="background:#fafbf9"] a{color:#e8ab6d !important}
#est-out{background:#12141a !important;color:rgba(245,246,248,.85) !important;border-color:rgba(255,255,255,.12) !important}
#est-out b,#est-out strong{color:#e8ab6d !important}

/* ===== news index cards (v16) ===== */
a.ni{background:#12141a;border:1px solid rgba(255,255,255,.07);border-radius:14px;transition:border-color .15s ease}
a.ni:hover{border-color:#e8ab6d}

/* ===== wheel row-add touch target (v17) ===== */
@media (max-width:1023px){
  .rwy__pin{position:relative}
  .rwy__pin::after{content:"";position:absolute;inset:-6px}
}

/* ===== wheel add/tick touch target (v18) ===== */
@media (max-width:1023px){
  .rwy__add,.rwy__tick{position:relative}
  .rwy__add::after{content:"";position:absolute;inset:-7px}
  .rwy__tick::after{content:"";position:absolute;inset:-7px}
}

/* ===== touch target pass (v19) ===== */
main .nc, body .nc{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
a.rd-more{display:inline-block;padding:10px 0}
.art-toc a{min-height:44px;display:flex;align-items:center}

/* ===== language switcher tap targets (v20) ===== */
.rd-foot-langs a,[data-lang-sw] a,[data-foot-item] a{position:relative;display:inline-block}
.rd-foot-langs a::after,[data-lang-sw] a::after,[data-foot-item] a::after{content:"";position:absolute;left:-3px;right:-3px;top:-12px;bottom:-12px}

/* ===== .tw table wrappers (v21) ===== */
.tw{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
.tw table{display:table!important;width:auto!important;max-width:none!important;min-width:520px!important}
.tw thead,.tw tbody{display:table-row-group;width:auto;min-width:0}
.tw thead{display:table-header-group}

/* ===== .tw scroll fix (v21b) ===== */
.tw,.wrap .tw{overflow-x:auto!important;overflow-y:hidden!important}

/* ===== iOS-like motion (v23) ===== */
html{-webkit-tap-highlight-color:transparent}
button,summary,.nc,.rwy__tick,.rwy__add,.rdp-cat{transition:transform .16s ease,opacity .16s ease}
button:active,summary:active,.nc:active,.rwy__tick:active,.rwy__add:active,.rdp-cat:active{transform:scale(.94);opacity:.8}
a{transition:opacity .16s ease}
a:active{opacity:.68}
@supports (interpolate-size:allow-keywords){
:root{interpolate-size:allow-keywords}
details::details-content{opacity:0;block-size:0;overflow-y:clip;transition:content-visibility .32s allow-discrete,opacity .3s ease,block-size .34s cubic-bezier(.33,1,.68,1)}
details[open]::details-content{opacity:1;block-size:auto}
}
@media (max-width:640px){
html body .rdp-grid,html body .rd-cats,html body .rd-scene{display:flex!important;flex-flow:row nowrap;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scroll-padding:6px;gap:10px;padding-bottom:10px}
html body .rdp{max-width:100%!important;width:100%!important}.rdp-grid>*,.rd-cats>*,.rd-scene>*{flex:0 0 78%;scroll-snap-align:start;scroll-snap-stop:normal}
}


/* ===== ios-like page transitions (v24) ===== */
@view-transition{navigation:auto}
::view-transition-old(root){animation:iosOut .26s cubic-bezier(.4,0,.2,1) both}
::view-transition-new(root){animation:iosIn .30s cubic-bezier(.22,1,.36,1) both}
@keyframes iosOut{from{opacity:1;transform:translateX(0)}to{opacity:.5;transform:translateX(-9%)}}
@keyframes iosIn{from{opacity:.4;transform:translateX(18%)}to{opacity:1;transform:translateX(0)}}
@keyframes iosPageIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
html{overflow-x:clip}
body > main, body > .art-wrap, body > .wrap, body .rd{animation:iosPageIn .28s cubic-bezier(.22,1,.36,1) both}
.rdp-grid,.rd-cats,.rd-scene{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root),::view-transition-new(root),body > main,body > .art-wrap,body > .wrap,body .rd{animation:none!important}
}
