/* The country page — the state's books, readable at a glance */

.ct-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ct-flag { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(var(--tint), .12); }
.ct-id { min-width: 0; flex: 1; }
.ct-id h1 { font-family: var(--font-display); font-size: 27px; font-weight: 900; line-height: 1.15; }
.ct-id p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.ct-jump { width: auto; flex-shrink: 0; }

/* The four numbers a leader checks first */
.ct-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.ct-stat {
  padding: 14px 16px; border-radius: 16px; text-align: left;
  background: rgba(var(--tint), .04); border: 1px solid var(--line);
}
.ct-stat span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.ct-stat b { display: block; font-family: var(--font-mono); font-size: 25px; font-weight: 700; line-height: 1.25; margin-top: 2px; }
.ct-stat small { color: var(--muted); font-size: 11.5px; }
.ct-stat.gold b { color: var(--gold); }
.ct-stat.warn { border-color: rgba(255, 201, 74, .4); }
.ct-stat.warn b { color: var(--gold); }
.ct-stat.hot { border-color: rgba(255, 77, 109, .45); }
.ct-stat.hot b { color: var(--red); }

.ct-note {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 14px;
  border-radius: 12px; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25);
  color: var(--muted); font-size: 12.5px;
}
.ct-note i { color: var(--cyan); font-size: 16px; }

/* Two columns on a wide screen, one on a narrow one */
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ct-grid > .panel-card { margin-bottom: 0; }

.ct-fields { display: grid; gap: 12px; }
.ct-fields .field { display: grid; gap: 5px; }
.ct-fields label { color: var(--muted); font-size: 12px; font-weight: 600; }
.ct-fields .btn { width: auto; justify-self: start; margin-top: 2px; }

/* A figure that should stand out from the rows around it */
.kv.big b { font-family: var(--font-mono); font-size: 19px; }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ct-hero { flex-wrap: wrap; gap: 12px; }
  .ct-flag { width: 50px; height: 50px; }
  .ct-id h1 { font-size: 22px; }
  .ct-jump { width: 100%; }
  .ct-stat b { font-size: 21px; }
}

/* This page has four tabs; the shared strip is built for three */
.co-tabs.four { grid-template-columns: repeat(4, 1fr); max-width: 680px; }
.co-tabs.four .seg-glider { width: calc((100% - 8px) / 4); }

/* ===== A company seen from the outside ===== */
.firm-icon {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 32px;
  background: rgba(var(--tint), .05); border: 1px solid var(--line);
}
.firm-workers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.firm-worker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(var(--tint), .05); border: 1px solid var(--line);
  transition: border-color .2s;
}
.firm-worker:hover { border-color: var(--cyan); }
.firm-worker .w-av {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #1f1400; font-weight: 900; font-size: 12px;
}
.firm-worker em { font-style: normal; color: var(--muted); }

/* the nation's era, beside its name */
.ct-era { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-weight: 700; color: var(--gold); background: rgba(255, 201, 74, .1); border: 1px solid rgba(255, 201, 74, .3); }
.ct-stat .coins { font-size: inherit; }
/* coins inside a stat card: one row, the size of the number (not the small label style of its spans) */
.ct-stat b .coins, .ct-stat b .coin-amt { display: inline-flex; flex-direction: row; font: inherit; color: inherit; text-transform: none; letter-spacing: 0; margin: 0; }
.ct-stat b .coins { gap: 10px; }

.ct-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ct-warn { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  background: rgba(255, 159, 67, .1); border: 1px solid rgba(255, 159, 67, .4); color: var(--text); }
.ct-warn i { color: #ff9f43; font-size: 20px; flex: 0 0 auto; }
