/* Country and region hubs (pages/market.php). Tables, cards and sources reuse .pd-* and .rd-next-* from theme.css. */
.hub-cols { margin-top: 20px; }
.hub-who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.hub-who a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); color: var(--text); transition: border-color .15s; }
.hub-who a:hover, .hub-who a:focus-visible { border-color: var(--teal); color: var(--text); }
.hub-who a:focus-visible, .hub-cat summary:focus-visible, .hub-table a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hub-who strong { font-size: 1.6rem; font-weight: 300; color: var(--teal); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hub-who-unit { font-size: .78rem; color: var(--text-muted); }
.hub-who-name { font-size: .84rem; color: var(--text); margin-top: 4px; }
.hub-who-world { font-size: .76rem; color: var(--text-muted); margin-top: auto; padding-top: 6px; }
.hub-who-table { min-width: 640px; }
.hub-who-table th[scope="row"] { min-width: 200px; }
.hub-who-table th small, .hub-who-table td small { color: var(--text-muted); font-size: .72rem; }
.hub-who-table td small { display: block; }
.hub-cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 18px; margin-bottom: 10px; }
.hub-cat summary { cursor: pointer; padding: 12px 0; display: flex; align-items: baseline; gap: 10px; list-style: none; }
.hub-cat summary::-webkit-details-marker { display: none; }
.hub-cat summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: .78rem; color: var(--teal); transition: transform .2s ease; }
.hub-cat[open] summary::after { transform: rotate(180deg); }
.hub-cat summary strong { font-weight: 600; color: var(--navy); }
.hub-cat summary span { font-size: .8rem; color: var(--text-muted); }
.hub-cat[open] { padding-bottom: 12px; }
.hub-table { min-width: 560px; }
.hub-table th[scope="row"] a { color: var(--text); }
.hub-table th[scope="row"] a:hover { color: var(--teal); }
.hub-table td { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .hub-cat summary::after, .hub-who a { transition: none; } }
html[data-theme="dark"] .hub-who a, html[data-theme="dark"] .hub-cat { background: #0F1A2B; }
html[data-theme="dark"] .hub-cat summary strong { color: var(--text); }
/* Market statistics: quick answers */
.hub-cat > p { margin: 0 0 12px; color: var(--text-muted); line-height: 1.6; font-size: .92rem; }
.hub-table td a { color: var(--teal); font-weight: 600; white-space: nowrap; }
.hub-table td a i { margin-left: 4px; font-size: .74rem; }
.growth-name .flag, .hub-table .flag { margin-right: 6px; vertical-align: -2px; }
/* Top-10 lists */
.top-table .top-rank { width: 36px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.top-grid td { text-align: left; }
.top-grid .muted { color: var(--text-muted); }
.cat-list .hub-top-link { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--teal); }
/* Compare pages */
.cmp-verdict { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 22px; }
.cmp-verdict p { margin: 0 0 6px; line-height: 1.6; color: var(--text); }
.cmp-verdict p:last-child { margin-bottom: 0; }
.cmp-table { min-width: 520px; background: #fff; }
.cmp-table th, .cmp-table td { padding: 10px 12px; }
.cmp-table thead th { font-size: .9rem; color: var(--navy); font-weight: 600; }
.cmp-table th[scope="row"] small, .cmp-table td small { color: var(--text-muted); font-size: .74rem; }
.cmp-table td { font-variant-numeric: tabular-nums; }
.cmp-table td.cmp-win { color: var(--teal); font-weight: 700; }
.cmp-table td a { color: var(--teal); font-weight: 600; }
.cmp-years { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; height: 200px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cmp-year { display: flex; flex-direction: column-reverse; gap: 6px; min-width: 0; }
.cmp-y { font-size: .68rem; color: var(--text-muted); text-align: center; }
.cmp-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.cmp-bars i { display: block; width: 40%; max-width: 18px; border-radius: 4px 4px 1px 1px; min-height: 2px; }
.cmp-a { background: var(--teal); }
.cmp-b { background: #E5AF3F; }
.cmp-legend { font-size: .8rem; color: var(--text-muted); margin: 8px 0 0; }
.cmp-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 10px; }
.cmp-key:first-child { margin-left: 0; }
html[data-theme="dark"] .cmp-verdict, html[data-theme="dark"] .cmp-table, html[data-theme="dark"] .cmp-years { background: #0F1A2B; }
html[data-theme="dark"] .cmp-table thead th { color: var(--text); }

/* Locked figure: Acuitas market numbers are never placed on these public pages. The bars only hint that a figure exists. */
.market-stat-lock { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid rgba(13,155,138,.22); border-radius: 999px;
  background: linear-gradient(135deg, rgba(13,155,138,.08), rgba(26,95,168,.06)); color: var(--navy); font-size: .76rem; font-weight: 600; line-height: 1;
  letter-spacing: 0; white-space: nowrap; vertical-align: middle; }
.market-stat-lock span { font-size: inherit; color: inherit; }
.market-stat-ic { display: grid; flex: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--teal); color: #fff !important; font-size: .6rem !important; }
/* Reset icon rules from the tables (".hub-table td a i" adds a margin), so the lock sits in the middle of its circle */
.market-stat-lock .market-stat-ic i { display: block; margin: 0; width: auto; line-height: 1; font-size: inherit; text-align: center; }
.market-stat-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.market-stat-lock .market-stat-bars i { display: block; margin: 0; width: 4px; border-radius: 2px; background: currentColor; opacity: .28; font-size: 0; }
.market-stat-bars i:nth-child(1) { height: 5px; } .market-stat-bars i:nth-child(2) { height: 8px; } .market-stat-bars i:nth-child(3) { height: 12px; }
.kpi-row .market-stat-lock { padding: 3px 14px 3px 3px; font-size: .84rem; }
.kpi-row .market-stat-ic { width: 24px; height: 24px; font-size: .66rem !important; }
.market-lock-icon { color: var(--teal); }
.market-lock-panel { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 900px; margin: 0 auto 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.market-lock-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: rgba(13,155,138,.1); font-size: 1.25rem; }
.market-lock-panel h2 { margin: 0 0 8px; color: var(--navy); }
.market-lock-panel p { max-width: 68ch; margin: 0 0 18px; color: var(--text-muted); line-height: 1.65; }
.market-lock-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.market-lock-rows { display: grid; gap: 10px; margin: 20px 0; }
.market-lock-row { display: grid; grid-template-columns: minmax(0,1fr) repeat(3,minmax(108px,140px)); gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .market-stat-lock { color: var(--text); border-color: rgba(45,212,191,.28); background: linear-gradient(135deg, rgba(13,155,138,.16), rgba(26,95,168,.14)); }
@media (max-width: 700px) { .market-lock-panel { grid-template-columns: 1fr; } .market-lock-row { grid-template-columns: 1fr; } }
.market-stat-lock[href] { text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.market-stat-lock[href]:hover, .market-stat-lock[href]:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(13,155,138,.25); }
.market-stat-lock[href]:hover .market-stat-ic, .market-stat-lock[href]:focus-visible .market-stat-ic { background: #fff; color: var(--teal) !important; }
@media (prefers-reduced-motion: reduce) { .market-stat-lock[href] { transition: none; } }
/* Top companies by market (pages/top-companies.php) */
.tc-block { margin: 0 0 34px; }
.tc-h { margin: 0 0 6px; font-size: 1.35rem; color: var(--navy); }
.tc-lead { margin: 0 0 14px; font-size: .95rem; color: var(--text-muted); max-width: 760px; }
.tc-num { width: 44px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tc-sponsors { font-size: .95rem; gap: 6px; margin-bottom: 8px; }
.tc-more { margin: 10px 0 0; font-weight: 600; }
/* Reports by place: region and country tiles (the Markets page's .geo-tile), a little more compact */
.tc-sub { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.tc-sub span { font-weight: 500; font-size: .85rem; color: var(--text-muted); opacity: .8; }
.tc-places { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tc-places .geo-tile { flex-direction: row; align-items: center; gap: 10px; padding: 11px 14px; }
.tc-places .geo-tile .flag, .tc-places .geo-tile .fa-globe { flex: none; }
.tc-places .geo-tile strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.tc-places .tc-go { flex: none; font-size: .72rem; color: var(--teal); opacity: .55; transition: opacity .2s, transform .2s; }
.tc-places .geo-tile:hover .tc-go, .tc-places .geo-tile:focus-visible .tc-go { opacity: 1; transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .tc-places .tc-go { transition: none; } }
/* Phones: two tiles a row, a little smaller, no arrow (the whole tile is the link) */
@media (max-width: 600px) {
  .tc-places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tc-places .geo-tile { gap: 8px; padding: 10px 12px; }
  .tc-places .geo-tile strong { font-size: .88rem; }
  .tc-places .tc-go { display: none; }
}
.tc-more a { color: var(--teal); }
.tc-first { display: block; margin-top: 6px; font-size: .9rem; color: var(--text-muted); line-height: 1.45; }
html[data-theme="dark"] .tc-h { color: var(--text); }
