/* Engagement additions: news ticker, notice board, sidebar community/rating block, reviews, footer rating */
:root{--tk-h:40px}
.stars{display:inline-block;letter-spacing:2px;font-size:18px;line-height:1;background:linear-gradient(90deg,#f5a623 calc(var(--r,0)/5*100%),#d3d9de 0);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}

/* ---- Ticker (TV-news style) ---- */
.ticker{display:flex;align-items:stretch;height:var(--tk-h);background:linear-gradient(90deg,#10261c,#173a2a);color:#fff;border-bottom:1px solid rgba(255,255,255,.08);overflow:hidden}
.tk-label{flex:none;display:flex;align-items:center;gap:7px;padding:0 16px;background:linear-gradient(135deg,#e5484d,#c4262b);font-weight:800;font-size:13px;letter-spacing:.02em;position:relative;z-index:2;box-shadow:6px 0 14px rgba(0,0,0,.25)}
.tk-label svg{width:16px;height:16px;animation:tkPulse 1.6s ease-in-out infinite}
.tk-view{flex:1;min-width:0;overflow:hidden;position:relative;display:flex;align-items:center;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)}
.tk-track{display:flex;flex:none;width:max-content;animation:tkRun var(--tk-sec,30s) linear infinite;will-change:transform}
.ticker:hover .tk-track,.ticker:focus-within .tk-track{animation-play-state:paused}
.tk-group{display:flex;flex:none;min-width:100vw;align-items:center}
.tk-item{display:inline-flex;align-items:center;gap:10px;padding:0 26px 0 6px;font-size:14px;font-weight:600;white-space:nowrap}
.tk-item a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:3px}
.tk-dot{width:7px;height:7px;border-radius:50%;background:#f5a623;box-shadow:0 0 0 3px rgba(245,166,35,.25);flex:none}
@keyframes tkRun{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes tkPulse{50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){.tk-track{animation:none}.tk-view{overflow-x:auto}.tk-label svg{animation:none}}
@media(max-width:700px){.tk-label{padding:0 10px;font-size:12px}.tk-item{font-size:13px}}

/* ---- Notice icon next to the bell ---- */
.top-bell.notice-bell{color:#b45309}
.top-bell.notice-bell.new{animation:none}

/* ---- Notice board page ---- */
.nb-list{display:grid;gap:12px}
.nb-card{display:flex;gap:14px;padding:16px 18px;background:var(--card,#fff);border:1px solid var(--ui-line,#e3eae6);border-radius:16px;box-shadow:0 6px 18px rgba(31,46,39,.05)}
.nb-card.is-new{border-color:#f0c36a;background:linear-gradient(180deg,#fffaf0,#fff)}
.nb-ico{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff1d6;color:#b45309}
.nb-ico svg{width:20px;height:20px}
.nb-main{min-width:0}.nb-main h3{margin:0 0 6px;font-size:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nb-main p{margin:0 0 8px;color:var(--muted,#5d7269);line-height:1.75;font-size:14.5px}
.nb-main small{display:inline-flex;align-items:center;gap:5px;color:var(--muted,#5d7269);font-size:12.5px}.nb-main small svg{width:13px;height:13px}
.nb-new{font-size:11px;font-weight:800;color:#fff;background:#e5484d;border-radius:99px;padding:2px 9px}

/* ---- Sidebar footer: community + rating ---- */
.side-foot{margin-top:16px;padding-top:6px;border-top:1px dashed var(--border,#dfe6e2)}
.sf-block{margin-bottom:12px}
.sf-sub{margin:-2px 8px 8px;color:var(--muted,#5d7269);font-size:12px;line-height:1.5}
.sf-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:8px}
.sf-links a{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 4px 8px;border-radius:12px;background:#fff;border:1px solid var(--border,#dfe6e2);color:var(--ink,#1d2b24);font-weight:700;font-size:11.5px;text-decoration:none;text-align:center}
.sf-links a:hover{border-color:var(--social-tint,var(--primary,#6a4ccf));box-shadow:0 4px 12px rgba(31,46,39,.08)}
.sf-ico{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--social-tint,#6a4ccf);color:#fff}
.sf-ico svg{width:18px;height:18px}.sf-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sf-rate{display:grid;gap:2px;padding:10px 12px;border-radius:14px;background:linear-gradient(160deg,rgba(245,166,35,.14),rgba(106,76,207,.08));border:1px solid #f3dfb4;text-decoration:none;color:var(--ink,#1d2b24)}
.sf-rate .stars{font-size:20px}.sf-rate b{font-size:13.5px}.sf-rate small{color:var(--muted,#5d7269);font-size:12px}

/* ---- Review page ---- */
.rv-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:start}
@media(max-width:860px){.rv-grid{grid-template-columns:1fr}}
.rv-form,.rv-summary{padding:20px}.rv-form h3,.rv-summary h3{margin:0 0 14px}
.rv-stars{display:inline-flex;flex-direction:row-reverse;gap:4px;margin-bottom:16px}
.rv-stars input{position:absolute;opacity:0;pointer-events:none}
.rv-stars label{font-size:38px;line-height:1;color:#d3d9de;cursor:pointer;transition:color .12s}
.rv-stars input:checked~label,.rv-stars label:hover,.rv-stars label:hover~label{color:#f5a623}
.rv-stars input:focus-visible+label{outline:2px solid var(--primary,#6a4ccf);outline-offset:2px;border-radius:6px}
.rv-actions{margin-top:14px}
.rv-avg{display:grid;gap:4px;margin-bottom:14px}.rv-avg b{font-size:38px;line-height:1}.rv-avg small{color:var(--muted,#5d7269)}
.rv-bar{display:grid;grid-template-columns:34px 1fr 28px;gap:8px;align-items:center;font-size:12.5px;margin:6px 0;color:var(--muted,#5d7269)}
.rv-bar i{height:8px;border-radius:99px;background:#eceff1;overflow:hidden}.rv-bar em{display:block;height:100%;background:linear-gradient(90deg,#f5a623,#f7c04a);border-radius:99px}

/* ---- Homepage footer rating ---- */
.sfRating{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;padding:9px 14px;width:fit-content;max-width:100%;border-radius:99px;background:rgba(245,166,35,.12);border:1px solid rgba(245,166,35,.35);font-size:13.5px}
.sfRating b{font-size:16px}.sfRating .stars{font-size:16px}
@media(prefers-color-scheme:dark){.nb-card{background:#1a2420}.nb-card.is-new{background:#2a2414}.sf-links a{background:#18221d}}

/* Ticker on the member dashboard: a rounded strip at the top of the content column (not full-width, not sticky).
   The doubled class beats theme.css, which sets a bottom border for the old full-width strip. */
html body.shell .ticker.tk-in-page.tk-in-page{position:relative;top:auto;z-index:1;margin:0 0 18px;border:1px solid rgba(38,148,91,.28);border-radius:14px}
html[data-theme="dark"] body.shell .ticker.tk-in-page.tk-in-page{border-color:#405b49}
