/* 1.2.8: public native prices, three-tier hierarchy; no payment styling overrides. */
body.xhc-cosmos .xhc-tiered-chip { display:none !important; }
body.xhc-cosmos .posts-item.card .xhc-course-quotes {
  display:block; margin-top:16px; padding-top:14px;
  border-top:1px solid var(--xhc-border); color:var(--xhc-ink);
  text-decoration:none; font-variant-numeric:tabular-nums;
}
body.xhc-cosmos .xhc-quote-main { display:flex; justify-content:space-between; align-items:center; gap:6px; padding:0 2px 10px; }
body.xhc-cosmos .xhc-quote-label { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--xhc-muted); }
body.xhc-cosmos .xhc-quote-main .xhc-quote-amount { color:var(--xhc-money); }
body.xhc-cosmos .xhc-quote-amount { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px; line-height:1.25; min-width:0; }
body.xhc-cosmos .xhc-quote-amount b { font-size:27px; font-weight:800; letter-spacing:-.7px; }
body.xhc-cosmos .xhc-quote-amount small { font-size:10px; font-weight:650; letter-spacing:0; }
body.xhc-cosmos .xhc-quote-members { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
body.xhc-cosmos .xhc-quote-tier { display:flex; flex-direction:column; min-width:0; gap:6px; padding:12px 10px 10px; border:1px solid var(--xhc-gold-border); border-radius:13px; background:var(--xhc-gold-bg); color:var(--xhc-gold-ink); transition:box-shadow .2s, border-color .2s; }
body.xhc-cosmos .xhc-quote-tier-2 { color:var(--xhc-vip-ink); background:var(--xhc-vip-bg); border-color:var(--xhc-vip-border); }
body.xhc-cosmos .xhc-quote-tier-name { display:flex; align-items:center; gap:5px; font-size:11px; font-weight:650; white-space:normal; }
body.xhc-cosmos .xhc-course-quotes svg { width:17px; height:17px; flex:0 0 auto; fill:currentColor; fill-opacity:.10; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
body.xhc-cosmos .xhc-quote-tier .xhc-quote-amount b { font-size:23px; letter-spacing:-.5px; }
body.xhc-cosmos .xhc-quote-tier .xhc-quote-note { font-size:10px; font-weight:500; line-height:1.3; opacity:.85; }
body.xhc-cosmos .xhc-quote-main.xhc-public-free .xhc-quote-amount { color:var(--xhc-download); }
body.xhc-cosmos .xhc-quote-main.xhc-public-free .xhc-quote-amount b { font-size:23px; letter-spacing:0; }
body.xhc-cosmos .xhc-public-free .xhc-quote-label { color:var(--xhc-download); }
body.xhc-cosmos .xhc-quote-tier .xhc-quote-pending, body.xhc-cosmos .xhc-quote-restricted { font-size:14px !important; line-height:29px; letter-spacing:0; }
body.xhc-cosmos .xhc-course-quotes:focus-visible { outline:2px solid var(--xhc-download); outline-offset:5px; border-radius:12px; }
@media (hover:hover) {
  body.xhc-cosmos:not(.xhc-still) .xhc-course-quotes:hover .xhc-quote-tier-1 { box-shadow:0 3px 14px rgba(194,145,41,.12); }
  body.xhc-cosmos:not(.xhc-still) .xhc-course-quotes:hover .xhc-quote-tier-2 { box-shadow:0 3px 16px rgba(145,104,214,.15); }
}
@media (max-width:767px) {
  body.xhc-cosmos .posts-item.card .xhc-course-quotes { margin-top:12px; padding-top:11px; }
  body.xhc-cosmos .xhc-quote-main { padding-bottom:9px; }
  body.xhc-cosmos .xhc-quote-label { font-size:10px; }
  body.xhc-cosmos .xhc-quote-amount b { font-size:25px; }
  body.xhc-cosmos .xhc-quote-members { gap:5px; }
  body.xhc-cosmos .xhc-quote-tier { padding:9px 6px 8px; gap:5px; border-radius:10px; }
  body.xhc-cosmos .xhc-quote-tier-name { font-size:10px; gap:3px; }
  body.xhc-cosmos .xhc-course-quotes svg { width:13px; height:13px; }
  body.xhc-cosmos .xhc-quote-tier .xhc-quote-amount b { font-size:21px; }
  body.xhc-cosmos .xhc-quote-amount small { font-size:9px; }
  body.xhc-cosmos .xhc-quote-tier .xhc-quote-note { font-size:9px; }
  body.xhc-cosmos .xhc-quote-tier .xhc-quote-pending, body.xhc-cosmos .xhc-quote-restricted { font-size:12px !important; }
}
@media (prefers-reduced-motion:reduce) {
  body.xhc-cosmos .xhc-quote-tier { transition:none; }
}
body.xhc-cosmos.xhc-still .xhc-quote-tier { transition:none; }
/* Truly public-free resources have one distinct status, not three repeated tiers. */
body.xhc-cosmos .posts-item.card .xhc-course-quotes.xhc-single-free {
  display:flex; align-items:center; gap:13px; padding:19px 14px;
  border:1px solid var(--xhc-download-border); border-radius:15px;
  color:var(--xhc-download); background:var(--xhc-download-bg);
  min-height:108px; position:relative; overflow:hidden;
}
body.xhc-cosmos .xhc-free-emblem { display:grid; place-items:center; width:43px; height:43px; flex:0 0 auto; border:1px solid var(--xhc-download-border); border-radius:14px; background:var(--xhc-surface); }
body.xhc-cosmos .xhc-free-emblem svg { width:26px; height:26px; }
body.xhc-cosmos .xhc-free-content { display:flex; flex-direction:column; gap:7px; min-width:0; }
body.xhc-cosmos .xhc-free-title { font-size:29px; font-weight:800; line-height:1; letter-spacing:1px; }
body.xhc-cosmos .xhc-free-description { font-size:10px; opacity:.85; }
body.xhc-cosmos .xhc-free-arrow { margin-left:auto; font-size:20px; opacity:.6; }
/* Grid stretches a row without inventing a price or padding every free tier. */
body.xhc-cosmos .widget-ajaxpager.xhc-quote-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
body.xhc-cosmos .xhc-quote-grid > .posts-item.card { display:flex; flex-direction:column; margin:0 !important; width:100% !important; height:100%; min-width:0; }
body.xhc-cosmos .xhc-quote-grid > .posts-item.card .item-body { display:flex; flex-direction:column; flex:1; min-width:0; }
body.xhc-cosmos .xhc-quote-grid > .posts-item.card .item-meta { margin-bottom:14px; }
body.xhc-cosmos .xhc-quote-grid .xhc-course-quotes { margin-top:auto !important; }
body.xhc-cosmos .xhc-quote-grid > .pagenav,body.xhc-cosmos .xhc-quote-grid > .post_ajax_loader { grid-column:1/-1; }
body.xhc-cosmos .xhc-quote-grid::before,body.xhc-cosmos .xhc-quote-grid::after { display:none; }
@media(max-width:1100px) and (min-width:768px){body.xhc-cosmos .widget-ajaxpager.xhc-quote-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }}
@media(max-width:767px){
  body.xhc-cosmos .widget-ajaxpager.xhc-quote-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  body.xhc-cosmos .posts-item.card .xhc-course-quotes.xhc-single-free { gap:8px; padding:15px 9px; min-height:96px; }
  body.xhc-cosmos .xhc-free-emblem { width:31px; height:35px; border-radius:10px; }
  body.xhc-cosmos .xhc-free-emblem svg { width:22px; height:22px; }
  body.xhc-cosmos .xhc-free-title { font-size:25px; }
  body.xhc-cosmos .xhc-free-description { font-size:9px; }
  body.xhc-cosmos .xhc-free-arrow { display:none; }
}
/* 1.2.23 · 价格行可换行；会员徽标不竖排、不裁切（不改数值） */
.xhc-course-quotes{display:flex!important;flex-wrap:wrap!important;align-items:flex-end;row-gap:8px;column-gap:8px}
.xhc-quote-main{flex:1 1 auto;min-width:0;max-width:100%}
.xhc-quote-amount{overflow-wrap:anywhere}
.xhc-quote-members{display:flex!important;flex-wrap:wrap;gap:6px;flex:0 0 auto;max-width:100%;margin-left:auto}
.xhc-quote-tier{white-space:nowrap!important;min-width:fit-content!important;flex:0 0 auto;writing-mode:horizontal-tb}
.xhc-quote-tier *{white-space:nowrap!important}
