.st-page { max-width: 1100px; margin: 0 auto; padding: 8px 4px 24px; line-height: 1.4; }

/* header card: same card + title bar as the eastlink_v2 pages (follow, privacy) */
.st-hero { margin: 6px 0 4px; background: var(--card, #fff); border: 1px solid var(--line, #bccadb);
  border-radius: var(--radius, 6px); box-shadow: 0 1px 3px rgba(20,40,70,.14); overflow: hidden; }
.st-hero-title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px;
  background: var(--head, #336699); color: #fff; font-size: 13px; font-weight: bold; }
.st-hero-title svg { flex: none; }

/* the stats themselves: the standard white content card */
.st-box { margin: 12px 0 14px; padding: 6px 20px 20px; background: var(--card, #fff); border: 1px solid var(--line, #bccadb);
  border-radius: var(--radius, 6px); box-shadow: 0 1px 3px rgba(20,40,70,.14); }
.st-box > .st-sec:first-child { margin-top: 14px; }
.st-box > .st-loading { margin: 14px 0 0; }
.st-years a { display: inline-block; padding: 6px 12px; background: #fff; border: 1px solid var(--line, #bccadb);
  border-radius: 8px; color: var(--link, #1f4f8f); font-size: 12px; text-decoration: none; }
.st-years a:hover { background: #f3f7fb; border-color: #9fb4cc; color: var(--link-hover, #b5330a); }
.st-years { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--alt, #f4f6f6);
  border-top: 1px solid var(--line2, #dde5ee); }
.st-years a { flex: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.st-years a.st-on, .st-years a.st-on:hover { background: #e3ecf6; border-color: #9db8d6; color: #17263f; font-weight: bold; }
.st-years-sep { flex: none; align-self: stretch; width: 1px; margin: 2px 4px; background: var(--line2, #dde5ee); }
/* single scrolling row: no scrollbar, edges fade out where there is more to see (stats.js) */
.st-years-track { position: relative; flex: 1; min-width: 0; display: flex; gap: 6px; padding: 2px 0;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.st-years-track::-webkit-scrollbar { display: none; }
.st-years-track.st-fl { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
.st-years-track.st-fr { -webkit-mask-image: linear-gradient(to left, transparent, #000 36px); mask-image: linear-gradient(to left, transparent, #000 36px); }
.st-years-track.st-fl.st-fr { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.st-years-track.st-drag { cursor: grabbing; user-select: none; }
.st-years-track.st-drag a { cursor: grabbing; }
/* arrows over the faded edges (added by stats.js); #phorum beats the theme's button styles */
.st-years-scroll { position: relative; flex: 1; min-width: 0; display: flex; }
.st-years .st-arr, #phorum .st-years .st-arr { position: absolute; top: 50%; z-index: 1; display: none;
  align-items: center; justify-content: center; width: 32px; height: 32px; margin: -16px 0 0; padding: 0;
  background: var(--head, #336699); color: #fff; border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(20,40,70,.35); cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s, background-color .15s; }
.st-years .st-arr-l { left: -2px; transform: translateX(6px); }
.st-years .st-arr-r { right: -2px; transform: translateX(-6px); }
.st-years .st-arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }
.st-years .st-arr:hover, #phorum .st-years .st-arr:hover { background: #27517f; border-color: #fff; color: #fff;
  box-shadow: 0 3px 10px rgba(20,40,70,.45); }
/* mouse/trackpad devices only; touch users swipe */
@media (hover: hover) and (pointer: fine) {
  .st-years .st-arr, #phorum .st-years .st-arr { display: flex; }
  .st-years-scroll.st-fl .st-arr-l, .st-years-scroll.st-fr .st-arr-r { opacity: 1; pointer-events: auto; transform: none; }
}

/* loading */
.st-loading { display: flex; align-items: center; gap: 16px; margin: 26px 0; padding: 22px 24px; border-radius: 12px;
  border: 1px dashed rgba(128,128,128,.45); background: rgba(128,128,128,.07); font-size: 14px; }
.st-spinner { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(128,128,128,.35);
  border-top-color: var(--st-accent, #2b6cb0); animation: st-spin .9s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }

.st-sec { margin: 28px 0 12px; font-size: 18px; padding-bottom: 6px; border-bottom: 1px solid rgba(128,128,128,.3); }
.st-pct { font-size: .55em; font-weight: normal; opacity: .6; letter-spacing: .02em; vertical-align: baseline; margin-left: 2px; }
.st-fact-v .st-pct, .st-fact-list .st-pct { font-size: .85em; }

/* in numbers: 4 per row */
.st-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-kpi { padding: 14px 16px 12px; border-radius: 10px; background: rgba(128,128,128,.10); border: 1px solid rgba(128,128,128,.2); min-width: 0; }
.st-kpi-v { font-size: 26px; font-weight: bold; line-height: 1.15; overflow-wrap: anywhere; }
.st-kpi-l { margin-top: 4px; font-size: 12px; opacity: .75; }

/* trends and rankings */
.st-one { margin-bottom: 14px; }
.st-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-card { padding: 14px 16px; border-radius: 10px; background: rgba(128,128,128,.08); border: 1px solid rgba(128,128,128,.2); min-width: 0; }
.st-card h3 { margin: 0 0 12px; font-size: 15px; }
.st-cols { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.st-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.st-bar { display: block; width: 100%; max-width: 40px; border-radius: 4px 4px 0 0; background: var(--st-accent, #2b6cb0); opacity: .85; }
.st-col:hover .st-bar { opacity: 1; }
.st-colname { margin-top: 5px; font-size: 10px; opacity: .7; white-space: nowrap; }
.st-bars { list-style: none; margin: 0; padding: 0; }
.st-bars li { margin: 0 0 10px; }
.st-bar-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 3px; }
.st-bar-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bar-val { flex: none; opacity: .75; font-size: 12px; }
.st-track { height: 6px; border-radius: 3px; background: rgba(128,128,128,.25); }
.st-track span { display: block; height: 100%; border-radius: 3px; background: var(--st-accent, #2b6cb0); }
.st-card a, .st-fact a { color: inherit; }

/* curiosities */
.st-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.st-fact { padding: 16px; border-radius: 12px; border: 1px solid rgba(128,128,128,.25);
  background: linear-gradient(160deg, rgba(128,128,128,.14), rgba(128,128,128,.04)); min-width: 0; }
.st-fact-t { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.st-fact-w { margin-top: 8px; font-size: 22px; font-weight: bold; line-height: 1.2; overflow-wrap: anywhere; }
.st-fact-v { margin-top: 2px; font-size: 14px; color: var(--st-accent2, #4299e1); }
.st-fact-c { margin-top: 6px; font-size: 12px; opacity: .7; }
.st-fact-list { margin: 10px 0 0; padding: 8px 0 0 22px; border-top: 1px solid rgba(128,128,128,.25); font-size: 13px; }
.st-fact-list li { margin: 2px 0; }
.st-fact-list span { opacity: .65; font-size: 12px; }
.st-note, .st-foot, .st-empty { margin-top: 18px; font-size: 12px; opacity: .7; }
.st-empty { font-size: 15px; }

@media (max-width: 900px) {
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid3, .st-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .st-years { padding-left: 12px; padding-right: 12px; }
  .st-box { padding-left: 12px; padding-right: 12px; }
  .st-kpi-v { font-size: 22px; }
}
/* Section header card: only themes that style .section-head show it. */
.st-page .section-block > .section-head { display: none; }
