/* ==========================================================================
   GetMint Dashboard — Design System v2
   8px grid · 5-stop type scale · Minimal color palette
   ========================================================================== */

/* ── Gate system (keep intact — dashboard-gate.js depends on these) ──────── */
.tools-grid { visibility: hidden; }
html.gate-ready .tools-grid { visibility: visible; }
html.gate-ready .tool-card { display: none; }
html.gate-ready .tool-card.gate-visible { display: flex; }

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #080A09;
  --surface:    #0E1110;
  --surface-hi: #161918;

  /* Borders */
  --border:     rgba(255,255,255,0.07);
  --border-hi:  rgba(255,255,255,0.13);

  /* Text */
  --text-1:     #EFF1EE;
  --text-2:     #8A8F87;
  --text-3:     #767C72;  /* ≥4.5:1 contrast on both --bg and --surface */

  /* Brand */
  --accent:     #A8FF3E;
  --accent-bg:  rgba(168,255,62,0.10);

  /* Semantic */
  --green:      #4ADE80;
  --amber:      #FFCC47;
  --red:        #FF6B6B;
  --blue:       #60A5FA;

  /* Type scale */
  --text-xs:    0.75rem;    /* 12px — labels, badges, meta */
  --text-sm:    0.875rem;   /* 14px — body, list items */
  --text-base:  1rem;       /* 16px — card titles */
  --text-lg:    1.125rem;   /* 18px — section headers */
  --text-xl:    1.5rem;     /* 24px — page title */

  /* Spacing (4px base) */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;

  /* Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;

  /* Nav height */
  --nav-h: 52px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* Global focus ring — keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ── Top nav ──────────────────────────────────────────────────────────────── */
.gm-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--sp-5);
  background: rgba(8,10,9,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.gm-logo {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.logo-get  { color: var(--text-1); }
.logo-mint { color: var(--accent); }
.logo-dot  { color: var(--text-3); }

.gm-nav-right { display: flex; align-items: center; gap: var(--sp-3); }

/* ── Guest login button ───────────────────────────────────────────────────── */
.gm-login-btn {
  display: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 5px var(--sp-3);
  border: 1px solid rgba(168,255,62,0.3);
  border-radius: var(--r-md);
  transition: background 0.15s;
}
.gm-login-btn:hover { background: rgba(168,255,62,0.08); }
.gate-guest .gm-login-btn { display: flex; align-items: center; }
.gate-guest .apps-wrap { display: none; }

/* ── User avatar ──────────────────────────────────────────────────────────── */
.gm-user-wrap { position: relative; }

.gm-user-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0A0C0B;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.gm-user-btn:hover { opacity: 0.85; }
.gm-user-btn.is-open {
  box-shadow: 0 0 0 2px rgba(168,255,62,0.35);
}

/* ── User popover ─────────────────────────────────────────────────────────── */
.gm-user-popover {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  min-width: 210px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  z-index: 300;
  overflow: hidden;
}
.gm-user-email {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gm-user-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  font-family: inherit;
}
.gm-user-item:hover { background: rgba(255,255,255,0.05); color: var(--text-1); }
.gm-user-logout { color: var(--red); }
.gm-user-logout:hover { background: rgba(255,107,107,0.07); color: var(--red); }

/* ── Apps launcher button ─────────────────────────────────────────────────── */
.apps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.apps-btn:hover,
.apps-btn.is-open {
  background: var(--surface-hi);
  color: var(--text-1);
  border-color: var(--border-hi);
}

/* ── Apps popover ─────────────────────────────────────────────────────────── */
.apps-wrap    { position: relative; }
.apps-popover {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  z-index: 200;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.apps-popover-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--sp-3);
}
.apps-no-access {
  font-size: var(--text-xs);
  color: var(--text-3);
  padding: var(--sp-2) 0;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-hi);
  transition: border-color 0.15s, background 0.15s;
}
.app-item:hover {
  border-color: var(--border-hi);
  background: rgba(168,255,62,0.06);
}
.app-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--tile-bg, var(--surface));
  border: 1px solid var(--tile-border, var(--border));
  flex-shrink: 0;
  margin-bottom: 4px;
  transition: background 0.15s, border-color 0.15s;
}
.app-item:hover .app-icon-tile {
  background: var(--tile-bg-hover, var(--tile-bg, var(--surface)));
  border-color: var(--tile-border-hover, var(--tile-border, var(--border-hi)));
}
.app-icon-tile svg {
  width: 18px;
  height: 18px;
}
.app-name {
  font-size: var(--text-xs);
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.apps-popover-footer {
  display: flex;
  gap: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.apps-footer-link {
  font-size: var(--text-xs);
  color: var(--text-3);
  transition: color 0.15s;
}
.apps-footer-link:hover { color: var(--text-2); }

/* ── Page layout ──────────────────────────────────────────────────────────── */
.gm-main {
  min-height: calc(100vh - var(--nav-h));
  padding: var(--sp-6) var(--sp-5);
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Country Pulse wrapper ────────────────────────────────────────────────── */
.cp-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.cp-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cp-title-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cp-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-1);
}

.cp-date {
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: 400;
  min-width: 10ch; /* reserve space to prevent layout shift */
}

.cp-subtitle {
  font-size: var(--text-sm);
  color: var(--text-3);
  line-height: 1.5;
  margin-top: calc(-1 * var(--sp-2));
}

/* ── Country / view switcher ──────────────────────────────────────────────── */
.country-switcher {
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: fit-content;
}

.country-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.country-btn:hover:not(.active) {
  background: var(--surface-hi);
  color: var(--text-1);
}
.country-btn:active { opacity: 0.7; }
.country-btn.active {
  background: rgba(255,255,255,0.10);
  color: var(--text-1);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.country-btn--it.active { color: var(--blue); }

/* Visual separator between geo tabs and IT News tab */
.country-btn--it {
  position: relative;
  margin-left: var(--sp-3);
}
.country-btn--it::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-3) - 0.5px);
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-hi);
}

/* ── Country view container ───────────────────────────────────────────────── */
#view-country {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* ── Action banner ────────────────────────────────────────────────────────── */
.cp-action-banner {
  display: flex;
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-3);
  background: var(--surface);
}

.banner-launch  { border-left-color: var(--green); background: rgba(74,222,128,0.07); }
.banner-caution { border-left-color: var(--amber); background: rgba(255,204,71,0.06); }
.banner-pause   { border-left-color: var(--red);   background: rgba(255,107,107,0.07); }
.banner-prepare { border-left-color: var(--blue);  background: rgba(96,165,250,0.07); }
.banner-normal  { border-left-color: var(--text-3); }

.cp-action-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.cp-action-badge {
  font-size: var(--text-base);
  font-weight: 700;
}
.action-launch  { color: var(--green); }
.action-caution { color: var(--amber); }
.action-pause   { color: var(--red); }
.action-prepare { color: var(--blue); }
.action-normal  { color: var(--text-2); }

.cp-action-reason {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 72ch;
}

.cp-action-sources {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  margin-top: var(--sp-3);
}
.cp-action-sources-label {
  font-size: var(--text-xs);
  color: var(--text-3);
  flex-shrink: 0;
}
.cp-action-source-link {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
  transition: color 0.15s, border-bottom-color 0.15s;
}
.cp-action-source-link:hover {
  color: var(--text-2);
  border-bottom-color: var(--text-3);
}
.cp-action-source-link + .cp-action-source-link::before {
  content: '·';
  margin-right: var(--sp-2);
  color: var(--text-3);
  border-bottom: none;
  display: inline;
}

/* ── DO / DON'T ───────────────────────────────────────────────────────────── */
.cp-dodonts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

/* DO is visually dominant — elevated surface, thicker accent border */
.cp-do-col,
.cp-dont-col {
  padding: var(--sp-4);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.cp-do-col {
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  border-left: 3px solid var(--green);
}
.cp-dont-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--red);
}

.cp-do-title,
.cp-dont-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--sp-3);
}
.cp-do-title   { color: var(--green); }
.cp-dont-title { color: var(--red); }

.cp-do-list,
.cp-dont-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-left: var(--sp-4);
}
.cp-do-list li,
.cp-dont-list li {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.5;
  list-style: disc;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cp-do-list   li::marker { color: var(--green); }
.cp-dont-list li::marker { color: var(--red); }

/* ── Content grid ─────────────────────────────────────────────────────────── */
.cp-grid {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: var(--sp-6);
  align-items: start;
}

/* ── Trends column ────────────────────────────────────────────────────────── */
.cp-trends-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}

/* ── Section labels ───────────────────────────────────────────────────────── */
.cp-col-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
}
.cp-col-title svg { opacity: 0.5; flex-shrink: 0; }
.cp-col-title--secondary { margin-top: var(--sp-4); }

/* Calendar urgency micro-legend — right-aligned in section header */
.cal-legend {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ── News cards (top 5) ───────────────────────────────────────────────────── */
.cp-trends-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.trend-card {
  display: block;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.trend-card--link:hover {
  border-color: var(--border-hi);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.trend-card--link:active {
  opacity: 0.85;
  box-shadow: none;
}

.trend-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.trend-summary { margin-top: var(--sp-3); }
.trend-opportunity { margin-top: var(--sp-3); }

.trend-rank {
  flex-shrink: 0;
  width: 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-3);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
/* Rank importance gradient — #1 most prominent, #3+ muted */
.trend-rank--1 { color: var(--accent); }
.trend-rank--2 { color: var(--text-2); }

.trend-card-meta { flex: 1; min-width: 0; }

.trend-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: var(--sp-1);
  transition: color 0.15s;
}
.trend-card--link:hover .trend-title { color: var(--accent); }

.trend-sources {
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* Score circle hidden — importance shown by rank position */
.trend-score { display: none; }

.trend-summary {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.trend-opportunity {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface-hi);
  border-left: 2px solid var(--border-hi);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--text-xs);
  color: var(--text-2);
  line-height: 1.5;
}
.trend-opp-icon { flex-shrink: 0; color: var(--accent); }
.trend-opportunity span:last-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ── Skeleton loaders ─────────────────────────────────────────────────────── */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.6; }
}
.trend-skeleton {
  height: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

/* ── Secondary news list ──────────────────────────────────────────────────── */
.cp-secondary-list {
  display: flex;
  flex-direction: column;
}
.secondary-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
  transition: color 0.15s;
}
.secondary-item:last-child { border-bottom: none; }
.secondary-item:hover .secondary-title { color: var(--text-1); }

.secondary-source {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secondary-title {
  font-size: var(--text-sm);
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
  min-width: 0;
}

/* ── Aside: holidays + outlook ─────────────────────────────────────────────── */
.cp-aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
}

.cp-holidays-card,
.cp-events-card,
.cp-insight-card {
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* ── Holiday calendar tiles ──────────────────────────────────────────────── */
.cp-holidays-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.holiday-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-3);
  border-radius: var(--r-md);
}
.holiday--critical { border-left-color: var(--red); }
.holiday--high     { border-left-color: var(--amber); }
.holiday--medium   { border-left-color: var(--blue); }

.holiday-date-block {
  flex-shrink: 0;
  width: 34px;
  text-align: center;
}
.holiday-date-day {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}
.holiday-date-month {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.holiday-info { flex: 1; min-width: 0; }
.holiday-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.holiday-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: 3px;
  flex-wrap: wrap;
}
.holiday-note {
  font-size: var(--text-xs);
  color: var(--text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  cursor: default;
}

/* ── Key events (AI days_to_watch) ───────────────────────────────────────── */
.cp-events-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-3);
  border-radius: var(--r-md);
}
.event--launch  { border-left-color: var(--green); }
.event--pause   { border-left-color: var(--red); }
.event--caution { border-left-color: var(--amber); }
.event--prepare { border-left-color: var(--blue); }

.event-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 1px;
}
.event-info { flex: 1; min-width: 0; }
.event-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-1);
}
.event-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: 3px;
  flex-wrap: wrap;
}
.event-date { font-size: var(--text-xs); color: var(--text-3); }
.event-note {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--sp-1);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  cursor: default;
}

/* Shared days pill (used by holidays + outlook) */
.cal-days-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 1px var(--sp-2);
  border-radius: 20px;
  white-space: nowrap;
}
.pill-urgent { background: rgba(255,107,107,0.12); color: var(--red); }
.pill-soon   { background: rgba(255,204,71,0.12);  color: var(--amber); }
.pill-ahead  { background: rgba(96,165,250,0.12);  color: var(--blue); }
.pill-far    { background: var(--surface-hi);      color: var(--text-3); }

/* ── 14-day strategic outlook ─────────────────────────────────────────────── */
.cp-insight-body { margin-top: var(--sp-3); }

.outlook-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.outlook-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.outlook-icon { flex-shrink: 0; font-size: var(--text-sm); margin-top: 1px; }
.outlook-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.outlook-label { font-size: var(--text-xs); color: var(--text-2); font-weight: 500; }
.outlook-date-row { display: flex; align-items: center; gap: var(--sp-2); }
.outlook-date  { font-size: var(--text-xs); color: var(--text-3); }
.outlook-note-inline {
  font-size: var(--text-xs);
  color: var(--text-3);
  line-height: 1.5;
}
.outlook-summary {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.outlook-note {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: var(--sp-2);
  line-height: 1.55;
  font-style: italic;
}

/* ── IT News view ─────────────────────────────────────────────────────────── */
#view-it {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Source legend bar */
.it-news-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

/* Source badge (meta bar only) */
.it-src-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--sp-2);
  border-radius: var(--r-sm);
  color: #fff;
  flex-shrink: 0;
  line-height: 1.6;
}
.src--hn { background: #C45000; }
.src--gh { background: #353D46; }
.src--lw { background: #3355AA; }
.src--lb { background: #992222; }
.src--rt { background: #CC4400; }

.it-news-note {
  font-size: var(--text-xs);
  color: var(--text-3);
}

/* News card list */
.it-news-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Each news item is a full card */
.it-news-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.it-news-row:hover {
  border-color: var(--border-hi);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.it-news-row:active { opacity: 0.85; }

/* Rank number */
.it-news-num {
  flex-shrink: 0;
  min-width: 20px;
  text-align: right;
  font-size: var(--text-sm);
  color: var(--text-3);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.it-news-num--top { color: var(--accent); }

/* Card body */
.it-news-card { flex: 1; min-width: 0; }

.it-news-card-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.45;
  margin-bottom: var(--sp-2);
  transition: color 0.15s;
}
.it-news-row:hover .it-news-card-title { color: var(--accent); }

/* Meta row: favicon · source · score · time */
.it-news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.it-favicon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.75;
  flex-shrink: 0;
}
.it-news-src-name {
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: 500;
}
.it-news-score {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-3);
}
.it-news-score::before { content: '·'; margin-right: var(--sp-2); }
.it-news-score--hot  { color: var(--accent); }
.it-news-score--warm { color: var(--amber); }
.it-news-time {
  font-size: var(--text-xs);
  color: var(--text-3);
}
.it-news-time::before { content: '·'; margin-right: var(--sp-2); }

/* IT skeleton */
.it-skeleton {
  height: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

/* ── Responsive — 800px breakpoint ────────────────────────────────────────── */
@media (max-width: 800px) {
  .gm-main {
    padding: var(--sp-4);
  }
  .cp-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .cp-aside {
    position: static;
    width: 100%;
    max-width: 100%;
  }
}

/* ── Responsive — 560px breakpoint ────────────────────────────────────────── */
@media (max-width: 560px) {
  .gm-main {
    padding: var(--sp-3);
    padding-bottom: var(--sp-7);
  }
  .gm-topnav {
    padding: 0 var(--sp-4);
  }
  .cp-title {
    font-size: 1.25rem;
  }
  .cp-dodonts {
    grid-template-columns: 1fr;
  }
  .country-switcher {
    width: 100%;
  }
  .country-btn {
    flex: 1;
    justify-content: center;
    padding: var(--sp-2) var(--sp-2);
    font-size: var(--text-xs);
    gap: var(--sp-1);
  }
  /* Hide separator — equal-width flex buttons make position unreliable */
  .country-btn--it::before { display: none; }
  .country-btn--it { margin-left: 0; }
  .it-news-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .secondary-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* ── Tooltip ────────────────────────────────────────────────────────────────── */
.gm-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 300px;
  padding: var(--sp-3) var(--sp-4);
  background: #1C2120;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  color: var(--text-2);
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  white-space: normal;
  word-break: break-word;
}
.gm-tooltip.is-visible { opacity: 1; }

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .trend-skeleton,
  .it-skeleton {
    animation: none;
    opacity: 0.4;
  }
}
