/* GK Feed — prototype card + detail UI (matches gk_feed_app.html) */

:root {
  --gk-brand: #0f5132;
  --gk-brand-light: #e8f5e9;
  --gk-accent: #2563eb;
  --gk-accent-light: #eff6ff;
  --gk-highlight: #fef08a;
  --gk-bg: #f3f4f6;
  --gk-text: #1f2937;

  --gk-cat-national-bg: #ffedd5;
  --gk-cat-national-text: #9a3412;
  --gk-cat-national-icon: #7c2d12;
  --gk-cat-international-bg: #e0f2fe;
  --gk-cat-international-text: #075985;
  --gk-cat-international-icon: #0c4a6e;
  --gk-cat-economy-bg: #e0e7ff;
  --gk-cat-economy-text: #3730a3;
  --gk-cat-economy-icon: #312e81;
  --gk-cat-banking-bg: #ecfdf5;
  --gk-cat-banking-text: #047857;
  --gk-cat-banking-icon: #065f46;
  --gk-cat-schemes-bg: #fef3c7;
  --gk-cat-schemes-text: #92400e;
  --gk-cat-schemes-icon: #78350f;
  --gk-cat-science-bg: #f3e8ff;
  --gk-cat-science-text: #6b21a8;
  --gk-cat-science-icon: #581c87;
  --gk-cat-environment-bg: #dcfce7;
  --gk-cat-environment-text: #166534;
  --gk-cat-environment-icon: #14532d;
  --gk-cat-defence-bg: #fee2e2;
  --gk-cat-defence-text: #991b1b;
  --gk-cat-defence-icon: #7f1d1d;
  --gk-cat-polity-bg: #fce7f3;
  --gk-cat-polity-text: #9d174d;
  --gk-cat-polity-icon: #831843;
  --gk-cat-reports-bg: #f1f5f9;
  --gk-cat-reports-text: #334155;
  --gk-cat-reports-icon: #1e293b;
  --gk-cat-awards-bg: #fef9c3;
  --gk-cat-awards-text: #854d0e;
  --gk-cat-awards-icon: #713f12;
  --gk-cat-days-bg: #fee2e2;
  --gk-cat-days-text: #991b1b;
  --gk-cat-days-icon: #7f1d1d;
  --gk-cat-sports-bg: #dbeafe;
  --gk-cat-sports-text: #1d4ed8;
  --gk-cat-sports-icon: #1e40af;
  --gk-cat-states-bg: #fae8ff;
  --gk-cat-states-text: #a21caf;
  --gk-cat-states-icon: #86198f;
  --gk-cat-obituaries-bg: #f5f5f4;
  --gk-cat-obituaries-text: #57534e;
  --gk-cat-obituaries-icon: #44403c;
  --gk-cat-misc-bg: #f3f4f6;
  --gk-cat-misc-text: #4b5563;
  --gk-cat-misc-icon: #374151;
}

/* Use full viewport width (override app shell 600/960px cap) */
body.gkfeed-tab-active .main-container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
body.gkfeed-tab-active .app-header,
body.gkfeed-tab-active .bottom-nav {
  max-width: 100% !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.gkfeed-tab-active #feed-container,
body.gkfeed-tab-active .feed-container.gk-feed-container {
  display: block !important;
  height: calc(100dvh - 56px - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(100dvh - 56px - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  overflow: hidden !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  background: var(--gk-bg);
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.gk-loading,
.gk-empty {
  text-align: center;
  padding: 48px 16px;
  color: #64748b;
  font-size: 14px;
}

.gk-desktop-only { display: none !important; }
.gk-mobile-only { display: block; }
.gk-mcat-strip.gk-mobile-only { display: flex; }
.gk-rev-cta-mobile-wrap.gk-mobile-only { display: block; }
.gk-desktop-inline { display: none; }

@media (min-width: 1024px) {
  .gk-desktop-only { display: flex !important; }
  .gk-mobile-only { display: none !important; }
  .gk-desktop-inline { display: inline; }
}

/* Layout */
.gk-app-layout {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #f9fafb;
  color: var(--gk-text);
}

.gk-sidebar {
  display: none;
}

.gk-feed-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(249, 250, 251, 0.85);
  position: relative;
}

/* Hero banner */
.gk-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  flex-shrink: 0;
  z-index: 10;
}
.gk-hero-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gk-hero-banner-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fef9c3;
  color: #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.gk-hero-banner h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}
.gk-hero-banner p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.gk-hero-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gk-hero-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 4px;
  padding: 2px 8px;
}
.gk-hero-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.gk-hero-close:hover { color: #4b5563; }

/* Sticky filters */
.gk-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 0 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.gk-sticky-top {
  padding: 0 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gk-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.gk-date-btn,
.gk-exam-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gk-date-btn i,
.gk-exam-btn i { margin-right: 4px; color: var(--gk-brand); }
.gk-notes-link {
  background: none;
  border: none;
  color: var(--gk-brand);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.gk-notes-link:hover { text-decoration: underline; }

.gk-exam-opt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 46vh;
  overflow-y: auto;
}
.gk-exam-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  background: #fff;
}
.gk-exam-opt.is-active {
  border-color: var(--gk-brand);
  background: var(--gk-brand-light);
  color: var(--gk-brand);
}
.gk-exam-opt input {
  width: 16px;
  height: 16px;
  accent-color: var(--gk-brand);
  flex-shrink: 0;
}
.gk-exam-clear-sheet {
  background: none;
  border: none;
  color: var(--gk-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  padding: 0;
}

.gk-mcat-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 8px;
  scrollbar-width: none;
}
.gk-mcat-strip::-webkit-scrollbar { display: none; }
.gk-mcat-chip {
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.gk-mcat-chip i { margin-right: 4px; }
.gk-mcat-chip.is-active {
  background: var(--gk-brand-light);
  border-color: var(--gk-brand);
  color: var(--gk-brand);
}

.gk-rev-cta-mobile-wrap { padding: 0 16px 8px; }
.gk-rev-cta-mobile {
  width: 100%;
  background: var(--gk-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.gk-rev-cta-mobile i { color: #fde047; }

/* News list */
.gk-news-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.gk-news-list-spacer { height: 24px; flex-shrink: 0; }

.gk-lang-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #78350f;
}
.gk-lang-notice-icon { font-size: 18px; color: #d97706; flex-shrink: 0; }
.gk-lang-notice-body strong { color: #92400e; }

.gk-rev-cta-desktop {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: var(--gk-accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s;
  position: relative;
}
.gk-rev-cta-desktop:hover { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12); }
.gk-rev-cta-copy {
  flex: 1;
  min-width: 0;
  padding: 0 8px 0 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.gk-rev-cta-chevron-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gk-rev-cta-copy h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gk-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gk-rev-cta-copy h3 i { color: #eab308; }
.gk-rev-cta-copy p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}
.gk-rev-cta-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.gk-rev-cta-chevron { color: var(--gk-accent); }
.gk-rev-cta-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.gk-rev-cta-close:hover { color: #475569; background: rgba(15, 23, 42, 0.06); }
.gk-rev-cta-mobile-wrap { position: relative; }
.gk-rev-cta-mobile-close {
  position: absolute;
  top: 6px;
  right: 22px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.gk-feed-empty {
  text-align: center;
  padding: 64px 16px;
  color: #9ca3af;
}
.gk-feed-empty i {
  font-size: 28px;
  opacity: 0.4;
  margin-bottom: 12px;
  display: block;
}
.gk-feed-empty p { font-size: 14px; margin: 0 0 12px; }
.gk-feed-empty button {
  background: none;
  border: none;
  color: var(--gk-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.gk-load-more {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--gk-brand);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}
.gk-load-more span {
  font-weight: 600;
  color: #6b7280;
  margin-left: 4px;
}
.gk-load-more:hover {
  background: var(--gk-brand-light);
  border-color: var(--gk-brand);
}

/* News cards — match gk_feed_app.html prototype */
.gk-news-list .gk-news-card,
.gk-news-card {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 140px !important;
  height: auto !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  box-shadow: none;
  transition: box-shadow 0.15s;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}
.gk-news-card:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); }
.gk-news-card.is-active {
  border-color: var(--gk-accent) !important;
  box-shadow: 0 0 0 1px var(--gk-accent);
}

.gk-news-card-visual {
  width: 100% !important;
  height: 112px !important;
  min-height: 112px !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  border-bottom: 1px solid #f3f4f6;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}
.gk-news-card-visual i {
  font-size: 32px !important;
  opacity: 0.85;
  line-height: 1 !important;
  display: block !important;
}
.gk-news-card-visual span {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2 !important;
  display: block !important;
  text-align: center;
  padding: 0 8px;
}

.gk-news-card-body {
  padding: 16px !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.gk-news-card-meta-row {
  margin-bottom: 8px !important;
  display: block !important;
}
.gk-cat-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
.gk-cat-pill i { font-size: 10px; }

.gk-news-card-title {
  margin: 0 0 6px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #111827 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
}
.gk-news-card:hover .gk-news-card-title { color: var(--gk-accent) !important; }
.gk-news-card-snippet {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #4b5563 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: normal !important;
}
.gk-news-card-footer {
  margin-top: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 16px !important;
  font-size: 12px !important;
  color: #6b7280 !important;
  line-height: 1.4 !important;
  visibility: visible !important;
}
.gk-news-card-footer span {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.gk-news-card-footer i { margin-right: 4px; }
.gk-news-card-tags { color: #9ca3af; }

@media (min-width: 640px) {
  .gk-news-list .gk-news-card,
  .gk-news-card {
    flex-direction: row !important;
    min-height: 148px !important;
  }
  .gk-news-card-visual {
    width: 11rem !important;
    max-width: 11rem !important;
    height: auto !important;
    min-height: 148px !important;
    align-self: stretch !important;
    border-bottom: none !important;
    border-right: 1px solid #f3f4f6 !important;
  }
}

/* Category color bindings */
.gk-cat-national .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-national,
.gk-rev-card.gk-cat-national .gk-rev-strip { background: var(--gk-cat-national-bg); }
.gk-cat-national .gk-news-card-visual i,
.gk-cat-icon.gk-cat-national { color: var(--gk-cat-national-icon); }
.gk-cat-national .gk-news-card-visual span,
.gk-cat-pill.gk-cat-national,
.gk-cat-national .gk-cat-pill {
  background: var(--gk-cat-national-bg);
  color: var(--gk-cat-national-text);
}

.gk-cat-international .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-international,
.gk-rev-card.gk-cat-international .gk-rev-strip { background: var(--gk-cat-international-bg); }
.gk-cat-international .gk-news-card-visual i,
.gk-cat-icon.gk-cat-international { color: var(--gk-cat-international-icon); }
.gk-cat-international .gk-news-card-visual span,
.gk-cat-pill.gk-cat-international,
.gk-cat-international .gk-cat-pill {
  background: var(--gk-cat-international-bg);
  color: var(--gk-cat-international-text);
}

.gk-cat-economy .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-economy,
.gk-rev-card.gk-cat-economy .gk-rev-strip { background: var(--gk-cat-economy-bg); }
.gk-cat-economy .gk-news-card-visual i,
.gk-cat-icon.gk-cat-economy { color: var(--gk-cat-economy-icon); }
.gk-cat-economy .gk-news-card-visual span,
.gk-cat-pill.gk-cat-economy,
.gk-cat-economy .gk-cat-pill {
  background: var(--gk-cat-economy-bg);
  color: var(--gk-cat-economy-text);
}

.gk-cat-banking .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-banking,
.gk-rev-card.gk-cat-banking .gk-rev-strip { background: var(--gk-cat-banking-bg); }
.gk-cat-banking .gk-news-card-visual i,
.gk-cat-icon.gk-cat-banking { color: var(--gk-cat-banking-icon); }
.gk-cat-banking .gk-news-card-visual span,
.gk-cat-pill.gk-cat-banking,
.gk-cat-banking .gk-cat-pill {
  background: var(--gk-cat-banking-bg);
  color: var(--gk-cat-banking-text);
}

.gk-cat-schemes .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-schemes,
.gk-rev-card.gk-cat-schemes .gk-rev-strip { background: var(--gk-cat-schemes-bg); }
.gk-cat-schemes .gk-news-card-visual i,
.gk-cat-icon.gk-cat-schemes { color: var(--gk-cat-schemes-icon); }
.gk-cat-schemes .gk-news-card-visual span,
.gk-cat-pill.gk-cat-schemes,
.gk-cat-schemes .gk-cat-pill {
  background: var(--gk-cat-schemes-bg);
  color: var(--gk-cat-schemes-text);
}

.gk-cat-science .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-science,
.gk-rev-card.gk-cat-science .gk-rev-strip { background: var(--gk-cat-science-bg); }
.gk-cat-science .gk-news-card-visual i,
.gk-cat-icon.gk-cat-science { color: var(--gk-cat-science-icon); }
.gk-cat-science .gk-news-card-visual span,
.gk-cat-pill.gk-cat-science,
.gk-cat-science .gk-cat-pill {
  background: var(--gk-cat-science-bg);
  color: var(--gk-cat-science-text);
}

.gk-cat-environment .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-environment,
.gk-rev-card.gk-cat-environment .gk-rev-strip { background: var(--gk-cat-environment-bg); }
.gk-cat-environment .gk-news-card-visual i,
.gk-cat-icon.gk-cat-environment { color: var(--gk-cat-environment-icon); }
.gk-cat-environment .gk-news-card-visual span,
.gk-cat-pill.gk-cat-environment,
.gk-cat-environment .gk-cat-pill {
  background: var(--gk-cat-environment-bg);
  color: var(--gk-cat-environment-text);
}

.gk-cat-defence .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-defence,
.gk-rev-card.gk-cat-defence .gk-rev-strip { background: var(--gk-cat-defence-bg); }
.gk-cat-defence .gk-news-card-visual i,
.gk-cat-icon.gk-cat-defence { color: var(--gk-cat-defence-icon); }
.gk-cat-defence .gk-news-card-visual span,
.gk-cat-pill.gk-cat-defence,
.gk-cat-defence .gk-cat-pill {
  background: var(--gk-cat-defence-bg);
  color: var(--gk-cat-defence-text);
}

.gk-cat-polity .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-polity,
.gk-rev-card.gk-cat-polity .gk-rev-strip { background: var(--gk-cat-polity-bg); }
.gk-cat-polity .gk-news-card-visual i,
.gk-cat-icon.gk-cat-polity { color: var(--gk-cat-polity-icon); }
.gk-cat-polity .gk-news-card-visual span,
.gk-cat-pill.gk-cat-polity,
.gk-cat-polity .gk-cat-pill {
  background: var(--gk-cat-polity-bg);
  color: var(--gk-cat-polity-text);
}

.gk-cat-reports .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-reports,
.gk-rev-card.gk-cat-reports .gk-rev-strip { background: var(--gk-cat-reports-bg); }
.gk-cat-reports .gk-news-card-visual i,
.gk-cat-icon.gk-cat-reports { color: var(--gk-cat-reports-icon); }
.gk-cat-reports .gk-news-card-visual span,
.gk-cat-pill.gk-cat-reports,
.gk-cat-reports .gk-cat-pill {
  background: var(--gk-cat-reports-bg);
  color: var(--gk-cat-reports-text);
}

.gk-cat-awards .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-awards,
.gk-rev-card.gk-cat-awards .gk-rev-strip { background: var(--gk-cat-awards-bg); }
.gk-cat-awards .gk-news-card-visual i,
.gk-cat-icon.gk-cat-awards { color: var(--gk-cat-awards-icon); }
.gk-cat-awards .gk-news-card-visual span,
.gk-cat-pill.gk-cat-awards,
.gk-cat-awards .gk-cat-pill {
  background: var(--gk-cat-awards-bg);
  color: var(--gk-cat-awards-text);
}

.gk-cat-days .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-days,
.gk-rev-card.gk-cat-days .gk-rev-strip { background: var(--gk-cat-days-bg); }
.gk-cat-days .gk-news-card-visual i,
.gk-cat-icon.gk-cat-days { color: var(--gk-cat-days-icon); }
.gk-cat-days .gk-news-card-visual span,
.gk-cat-pill.gk-cat-days,
.gk-cat-days .gk-cat-pill {
  background: var(--gk-cat-days-bg);
  color: var(--gk-cat-days-text);
}

.gk-cat-sports .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-sports,
.gk-rev-card.gk-cat-sports .gk-rev-strip { background: var(--gk-cat-sports-bg); }
.gk-cat-sports .gk-news-card-visual i,
.gk-cat-icon.gk-cat-sports { color: var(--gk-cat-sports-icon); }
.gk-cat-sports .gk-news-card-visual span,
.gk-cat-pill.gk-cat-sports,
.gk-cat-sports .gk-cat-pill {
  background: var(--gk-cat-sports-bg);
  color: var(--gk-cat-sports-text);
}

.gk-cat-states .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-states,
.gk-rev-card.gk-cat-states .gk-rev-strip { background: var(--gk-cat-states-bg); }
.gk-cat-states .gk-news-card-visual i,
.gk-cat-icon.gk-cat-states { color: var(--gk-cat-states-icon); }
.gk-cat-states .gk-news-card-visual span,
.gk-cat-pill.gk-cat-states,
.gk-cat-states .gk-cat-pill {
  background: var(--gk-cat-states-bg);
  color: var(--gk-cat-states-text);
}

.gk-cat-obituaries .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-obituaries,
.gk-rev-card.gk-cat-obituaries .gk-rev-strip { background: var(--gk-cat-obituaries-bg); }
.gk-cat-obituaries .gk-news-card-visual i,
.gk-cat-icon.gk-cat-obituaries { color: var(--gk-cat-obituaries-icon); }
.gk-cat-obituaries .gk-news-card-visual span,
.gk-cat-pill.gk-cat-obituaries,
.gk-cat-obituaries .gk-cat-pill {
  background: var(--gk-cat-obituaries-bg);
  color: var(--gk-cat-obituaries-text);
}

.gk-cat-misc .gk-news-card-visual,
.gk-detail-hero-wrap.gk-cat-misc,
.gk-rev-card.gk-cat-misc .gk-rev-strip { background: var(--gk-cat-misc-bg); }
.gk-cat-misc .gk-news-card-visual i,
.gk-cat-icon.gk-cat-misc { color: var(--gk-cat-misc-icon); }
.gk-cat-misc .gk-news-card-visual span,
.gk-cat-pill.gk-cat-misc,
.gk-cat-misc .gk-cat-pill {
  background: var(--gk-cat-misc-bg);
  color: var(--gk-cat-misc-text);
}

/* Detail panel */
.gk-detail-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
}
.gk-detail-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}
.gk-detail-mobile-head,
.gk-detail-desktop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  flex-shrink: 0;
  font-weight: 700;
  color: #1f2937;
}
.gk-detail-back,
.gk-detail-close {
  background: #f9fafb;
  border: none;
  color: #4b5563;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gk-detail-spacer { width: 36px; }
.gk-detail-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: rgba(249, 250, 251, 0.4);
}
.gk-detail-empty {
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #9ca3af;
}
.gk-detail-empty i {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
}
.gk-detail-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  max-width: 260px;
}
.gk-detail-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gk-detail-headline {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}
.gk-detail-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
}
.gk-detail-hero-wrap {
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-height: 96px;
}
.gk-detail-section { margin-bottom: 20px; }
.gk-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
}
.gk-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.gk-key-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gk-key-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
}
.gk-key-points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
}
.gk-fact-highlight,
.gk-fmt-accent {
  background: var(--gk-highlight);
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}
.gk-fmt-underline { text-decoration: underline; }

.gk-why-box {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.gk-why-box h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gk-why-box h3 i { color: #16a34a; }
.gk-why-body {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(20, 83, 45, 0.85);
}

.gk-practice-box {
  border: 1px solid #fed7aa;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.gk-practice-head {
  background: #fff7ed;
  border-bottom: 1px solid #ffedd5;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gk-practice-head i { color: #f97316; }
.gk-practice-body { padding: 14px; }
.gk-q-text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #1f2937;
}
.gk-q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.gk-q-opt {
  position: relative;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  color: #1f2937;
  transition: background 0.15s;
}
.gk-q-opt:hover { background: #f9fafb; }
.gk-q-opt.is-correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}
.gk-q-opt.is-wrong {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}
.gk-q-opt.is-disabled { pointer-events: none; }
.gk-q-opt i {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #22c55e;
  font-size: 12px;
}
.gk-q-opt.is-wrong i { color: #ef4444; }
.gk-q-answer-row { margin-top: 4px; }
.gk-q-answer {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  background: rgba(220, 252, 231, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
}

.gk-detail-footer {
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.gk-detail-share {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
}
.gk-detail-share:hover { background: #f9fafb; color: #1f2937; }
.gk-detail-notes {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Desktop 3-column */
@media (min-width: 1024px) {
  body.gkfeed-tab-active #feed-container,
  body.gkfeed-tab-active .feed-container.gk-feed-container {
    height: calc(100dvh - 56px - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 56px - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
  }

  .gk-sidebar {
    display: flex;
    flex-direction: column;
    width: 16rem;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 16px 12px 20px;
  }

  .gk-side-banner {
    background: var(--gk-brand);
    color: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  }
  .gk-side-banner-icon {
    font-size: 22px;
    color: var(--gk-brand-light);
    flex-shrink: 0;
    margin-top: 2px;
  }
  .gk-side-banner-title {
    font-size: 13px;
    font-weight: 700;
  }
  .gk-side-banner-exams {
    font-size: 9px;
    line-height: 1.45;
    color: var(--gk-brand-light);
    margin-top: 6px;
  }
  .gk-side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
  }
  .gk-side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border: none;
    background: transparent;
    color: #4b5563;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
  }
  .gk-side-link:hover { background: #f3f4f6; }
  .gk-side-link.is-active {
    background: var(--gk-brand-light);
    color: var(--gk-brand);
    font-weight: 600;
  }
  .gk-side-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .gk-side-left i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
  }
  .gk-side-left span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gk-side-count {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
  }
  .gk-side-link.is-active .gk-side-count {
    background: rgba(15, 81, 50, 0.15);
    color: var(--gk-brand);
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
  }
  .gk-side-quote {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    font-style: italic;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.45;
  }

  .gk-rev-cta-desktop { display: flex !important; }

  .gk-detail-panel {
    position: relative;
    inset: auto;
    transform: none !important;
    visibility: visible;
    width: 24rem;
    flex-shrink: 0;
    border-left: 1px solid #e5e7eb;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
  }
  /* Empty detail pane wastes space — expand feed until a card is selected */
  .gk-detail-panel:not(.has-content) {
    display: none !important;
  }
  .gk-detail-mobile-head { display: none !important; }
  .gk-detail-desktop-head { display: flex !important; }
}

/* Date sheet */
.gk-date-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gk-date-sheet {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 28px;
  max-height: 70vh;
  overflow-y: auto;
}
.gk-date-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.gk-date-sheet-head button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #64748b;
}
.gk-date-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.gk-date-opt.is-active {
  border-color: var(--gk-brand);
  background: var(--gk-brand-light);
  color: var(--gk-brand);
}
.gk-custom-range {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.gk-custom-range label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gk-custom-range input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
.gk-apply-btn {
  background: var(--gk-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* Intro beta modal */
.gk-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gk-intro-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, #0f5132 0%, #14532d 45%, #166534 100%);
  color: #ecfdf5;
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.gk-intro-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 14px;
  color: #bbf7d0;
}
.gk-intro-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.gk-intro-body {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(236, 253, 245, 0.92);
}
.gk-intro-body p { margin: 0 0 10px; }
.gk-intro-body p:last-child { margin-bottom: 0; }
.gk-intro-body strong { color: #fff; font-weight: 700; }
.gk-intro-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.gk-intro-share,
.gk-intro-dismiss {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gk-intro-share {
  background: #fff;
  color: #0f5132;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gk-intro-dismiss {
  background: rgba(255, 255, 255, 0.12);
  color: #ecfdf5;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* My Notes overlay */
.gk-notes-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gk-notes-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 82vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gk-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: #111827;
  flex-shrink: 0;
}
.gk-notes-head button {
  background: none;
  border: none;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
}
.gk-notes-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gk-notes-empty {
  text-align: center;
  padding: 48px 16px;
  color: #9ca3af;
}
.gk-notes-empty i {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.5;
}
.gk-note-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.gk-note-body {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: none;
  padding: 12px 14px;
  cursor: pointer;
}
.gk-note-meta {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}
.gk-note-headline {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 4px;
}
.gk-note-snip {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}
.gk-note-delete {
  width: 44px;
  flex-shrink: 0;
  border: none;
  border-left: 1px solid #f3f4f6;
  background: #fafafa;
  color: #9ca3af;
  cursor: pointer;
}
.gk-note-delete:hover { color: #dc2626; background: #fef2f2; }

@media (min-width: 640px) {
  .gk-notes-overlay { align-items: center; padding: 24px; }
  .gk-notes-sheet {
    border-radius: 16px;
    max-height: 70vh;
  }
}

/* Heroes (detail) */
.gk-hero {
  border-radius: 0;
  padding: 16px;
}
.gk-hero-awards { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.gk-hero-appointments { background: #f8fafc; }
.gk-hero-economy { background: transparent; display: flex; gap: 16px; align-items: center; }
.gk-hero-rankings { display: flex; gap: 14px; align-items: flex-start; background: transparent; }
.gk-hero-days { background: transparent; }
.gk-hero-sports { background: transparent; }
.gk-hero-science { background: transparent; }
.gk-hero-defence { background: transparent; }
.gk-hero-books { display: flex; gap: 14px; align-items: stretch; background: transparent; }
.gk-hero-obituary { background: transparent; }
.gk-hero-generic { background: transparent; }

.gk-story-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.gk-hero-title { font-size: 18px; font-weight: 800; line-height: 1.25; color: #0f172a; }
.gk-hero-sub { font-size: 14px; font-weight: 600; color: #334155; margin-top: 6px; }
.gk-hero-context { font-size: 13px; color: #64748b; margin-top: 8px; line-height: 1.5; }

.gk-hero-post { font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 12px; color: #1e40af; }
.gk-appt-row { display: flex; align-items: center; gap: 8px; }
.gk-appt-box { flex: 1; border-radius: 12px; padding: 12px; }
.gk-appt-left { background: #eff6ff; }
.gk-appt-right { background: #ecfdf5; }
.gk-appt-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #64748b; }
.gk-appt-name, .gk-appt-role { font-size: 15px; font-weight: 800; margin-top: 4px; }
.gk-appt-prev { font-size: 12px; color: #64748b; margin-top: 4px; }
.gk-appt-arrow { font-size: 20px; color: #94a3b8; }

.gk-econ-num { font-size: 32px; font-weight: 900; color: #312e81; line-height: 1; }
.gk-econ-badge { font-size: 12px; font-weight: 700; color: #3730a3; margin-top: 6px; }
.gk-econ-micro { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #64748b; }
.gk-econ-desc { font-size: 14px; line-height: 1.5; margin-top: 4px; }

.gk-rank-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: #1e293b; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gk-rank-num { font-size: 22px; font-weight: 900; line-height: 1; }
.gk-rank-total { font-size: 11px; opacity: 0.85; }
.gk-rank-report { font-size: 14px; font-weight: 800; }
.gk-rank-body { font-size: 13px; line-height: 1.5; margin-top: 6px; color: #334155; }
.gk-rank-change { font-size: 12px; color: #64748b; margin-top: 6px; }

.gk-days-chip {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.gk-days-name { font-size: 22px; font-weight: 900; color: #991b1b; }
.gk-days-theme-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #64748b; margin-top: 8px; }
.gk-days-theme {
  font-style: italic;
  border-left: 3px solid #dc2626;
  padding-left: 10px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.gk-sports-event { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #64748b; }
.gk-sports-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.gk-sports-team { flex: 1; font-size: 15px; font-weight: 800; text-align: center; }
.gk-sports-vs { background: #e2e8f0; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; }
.gk-sports-result { font-size: 13px; text-align: center; color: #334155; background: #dcfce7; padding: 8px; border-radius: 8px; }

.gk-sci-badge { display: inline-block; background: #7c3aed; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gk-sci-name { font-size: 18px; font-weight: 900; margin: 8px 0; color: #5b21b6; }
.gk-sci-type { display: inline-block; background: #ede9fe; color: #6d28d9; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.gk-sci-desc { font-size: 13px; line-height: 1.5; margin-top: 10px; }

.gk-def-type { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #991b1b; }
.gk-def-name { font-size: 18px; font-weight: 900; color: #7f1d1d; margin: 6px 0; }
.gk-def-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gk-def-tag { background: #fee2e2; color: #991b1b; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.gk-def-obj { font-size: 13px; line-height: 1.5; }

.gk-book-spine {
  width: 36px;
  background: var(--gk-brand);
  border-radius: 4px 8px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 100px;
}
.gk-book-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 0;
}
.gk-book-author { font-size: 12px; color: #64748b; }
.gk-book-title { font-size: 16px; font-weight: 800; margin: 6px 0; }
.gk-book-note { display: inline-block; background: #ecfdf5; color: #065f46; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }

.gk-obit-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: #78716c; }
.gk-obit-name { font-size: 20px; font-weight: 900; margin: 6px 0; color: #44403c; }
.gk-obit-known { font-size: 14px; color: #57534e; }
.gk-obit-years, .gk-obit-age { font-size: 12px; color: #78716c; margin-top: 4px; }

/* Revision / quiz overlays — full viewport above header + bottom nav */
body.gk-overlay-open {
  overflow: hidden !important;
}
body.gk-overlay-open .bottom-nav,
body.gk-overlay-open .app-header,
body.gk-overlay-open header.app-header {
  visibility: hidden !important;
  pointer-events: none !important;
}
#gk-mode-overlays {
  position: relative;
  z-index: 12050;
}
.gk-overlay-mode {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  z-index: 12050 !important;
  background: #0f172a !important;
  display: flex !important;
  flex-direction: column !important;
  color: #fff;
  box-sizing: border-box !important;
}
.gk-overlay-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  flex-shrink: 0;
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gk-overlay-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff !important;
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.gk-overlay-close:hover { background: rgba(255,255,255,0.16); color: #fff; }
.gk-overlay-close-right {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.gk-overlay-cancel-label { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.gk-overlay-progress { flex: 1; padding: 0 8px; min-width: 0; }
.gk-overlay-progress span {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #e5e7eb;
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.gk-overlay-track {
  width: 100%;
  height: 6px;
  background: #374151;
  border-radius: 999px;
  overflow: hidden;
}
.gk-overlay-fill {
  height: 100%;
  background: var(--gk-accent);
  border-radius: 999px;
  transition: width 0.3s;
}
.gk-overlay-fill-quiz { background: #fbbf24; }
.gk-overlay-spacer { width: 36px; flex-shrink: 0; }
.gk-overlay-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px 16px 8px;
  width: 100%;
  box-sizing: border-box;
}
.gk-overlay-footer {
  flex-shrink: 0;
  width: 100%;
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.gk-overlay-actions {
  display: flex;
  gap: 12px;
  padding: 14px 16px 8px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
}
.gk-overlay-test-row {
  display: flex;
  padding: 0 16px 14px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
}
.gk-overlay-btn {
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.gk-overlay-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.gk-overlay-btn-muted {
  flex: 1;
  background: #1f2937;
  color: #fff;
  border: 1px solid #374151;
}
.gk-overlay-btn-primary {
  flex: 2;
  background: var(--gk-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.39);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gk-overlay-btn-test {
  width: 100%;
  background: #0f5132;
  color: #fff;
  border: 1px solid #14532d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gk-overlay-btn-test:hover { background: #0c3f27; }
.gk-overlay-actions .gk-overlay-btn-primary:only-child { flex: 1; }

.gk-rev-card {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto;
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  align-self: flex-start;
}
.gk-rev-strip { height: 8px; width: 100%; background: var(--gk-brand-light); }
.gk-rev-card-body { padding: 22px 20px 24px; }
.gk-rev-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
  background: #f3f4f6;
  color: #374151;
}
.gk-rev-card.gk-cat-economy .gk-rev-cat { background: var(--gk-cat-economy-bg); color: var(--gk-cat-economy-text); }
.gk-rev-card.gk-cat-environment .gk-rev-cat { background: var(--gk-cat-environment-bg); color: var(--gk-cat-environment-text); }
.gk-rev-card.gk-cat-science .gk-rev-cat { background: var(--gk-cat-science-bg); color: var(--gk-cat-science-text); }
.gk-rev-card.gk-cat-national .gk-rev-cat { background: var(--gk-cat-national-bg); color: var(--gk-cat-national-text); }
.gk-rev-card.gk-cat-banking .gk-rev-cat { background: var(--gk-cat-banking-bg); color: var(--gk-cat-banking-text); }
.gk-rev-card.gk-cat-defence .gk-rev-cat { background: var(--gk-cat-defence-bg); color: var(--gk-cat-defence-text); }
.gk-rev-card.gk-cat-sports .gk-rev-cat { background: var(--gk-cat-sports-bg); color: var(--gk-cat-sports-text); }
.gk-rev-card.gk-cat-polity .gk-rev-cat { background: var(--gk-cat-polity-bg); color: var(--gk-cat-polity-text); }
.gk-rev-card.gk-cat-schemes .gk-rev-cat { background: var(--gk-cat-schemes-bg); color: var(--gk-cat-schemes-text); }
.gk-rev-card.gk-cat-awards .gk-rev-cat { background: var(--gk-cat-awards-bg); color: var(--gk-cat-awards-text); }
.gk-rev-card.gk-cat-days .gk-rev-cat { background: var(--gk-cat-days-bg); color: var(--gk-cat-days-text); }
.gk-rev-card.gk-cat-reports .gk-rev-cat { background: var(--gk-cat-reports-bg); color: var(--gk-cat-reports-text); }
.gk-rev-card.gk-cat-states .gk-rev-cat { background: var(--gk-cat-states-bg); color: var(--gk-cat-states-text); }
.gk-rev-card.gk-cat-international .gk-rev-cat { background: var(--gk-cat-international-bg); color: var(--gk-cat-international-text); }
.gk-rev-card.gk-cat-obituaries .gk-rev-cat { background: var(--gk-cat-obituaries-bg); color: var(--gk-cat-obituaries-text); }
.gk-rev-card.gk-cat-misc .gk-rev-cat { background: var(--gk-cat-misc-bg); color: var(--gk-cat-misc-text); }

.gk-rev-headline {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
  text-align: center;
}
.gk-rev-keyfact {
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 14px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}
.gk-rev-facts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gk-rev-fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px;
}
.gk-rev-fact-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gk-rev-fact p { margin: 0; font-size: 13px; line-height: 1.5; color: #334155; }
.gk-rev-why {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 12px 14px;
  color: #065f46;
}
.gk-rev-why strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.gk-rev-why p { margin: 0; font-size: 13px; line-height: 1.5; }

.gk-quiz-card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  color: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  align-self: flex-start;
}
.gk-quiz-card-head {
  background: #fff7ed;
  border-bottom: 1px solid #ffedd5;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gk-quiz-card-head i { color: #f97316; }
.gk-quiz-q {
  margin: 0;
  padding: 18px 18px 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.gk-quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px 8px;
}
.gk-quiz-opt {
  position: relative;
  text-align: left;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
}
.gk-quiz-opt strong { color: #64748b; margin-right: 4px; }
.gk-quiz-opt.is-correct {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #166534;
}
.gk-quiz-opt.is-wrong {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
.gk-quiz-opt.is-disabled { pointer-events: none; }
.gk-quiz-mark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.gk-quiz-feedback {
  margin: 8px 18px 18px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.gk-quiz-feedback.hidden { display: none; }
.gk-quiz-feedback.is-correct {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.gk-quiz-feedback.is-wrong {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.gk-quiz-feedback p { margin: 6px 0 0; }
.gk-quiz-score-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  color: #0f172a;
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.gk-quiz-score-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gk-brand-light);
  color: var(--gk-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.gk-quiz-score-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.gk-quiz-score-text {
  font-size: 18px;
  color: #64748b;
  margin: 0 0 24px;
}
.gk-quiz-score-card .gk-overlay-btn-primary {
  width: 100%;
  background: var(--gk-brand);
  box-shadow: none;
}

/* Profile Connect — mentor row (side by side) */
.profile-connect-mentor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}
.profile-connect-mentor-half { min-width: 0; }
.profile-connect-mentor-row .mv2-side-card {
  padding: 16px;
  margin-bottom: 0;
  border-radius: 16px;
  height: auto;
}
.profile-connect-mentor-row .mv2-hero { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.profile-connect-mentor-row .mv2-hero-top { flex-direction: row; align-items: center; gap: 12px; }
.profile-connect-mentor-row .mv2-hero-avatar { width: 52px; height: 52px; margin: 0; flex-shrink: 0; }
.profile-connect-mentor-row .mv2-hero-identity { text-align: left; flex: 1; min-width: 0; }
.profile-connect-mentor-row .mv2-hero h3 { font-size: 15px; margin: 0 0 2px; line-height: 1.25; }
.profile-connect-mentor-row .mv2-hero-role { margin: 0; font-size: 10px; }
.profile-connect-mentor-row .mv2-about-toggle { padding: 9px 10px; font-size: 12px; margin: 0; }
.profile-connect-mentor-row .mv2-hero-phase,
.profile-connect-mentor-row .mv2-community-link { padding: 10px 12px; margin: 0; }
.profile-connect-mentor-row .mv2-hero-phase-val { font-size: 13px; }
.profile-connect-mentor-row .mv2-wa-header { margin-bottom: 10px; gap: 10px; }
.profile-connect-mentor-row .mv2-wa-icon { width: 40px; height: 40px; font-size: 18px; flex-shrink: 0; }
.profile-connect-mentor-row .mv2-wa h4 { font-size: 14px; margin: 0 0 2px; }
.profile-connect-mentor-row .mv2-wa-sub { font-size: 11px; line-height: 1.35; }
.profile-connect-mentor-row .mv2-wa-chips { gap: 6px; margin-bottom: 12px; }
.profile-connect-mentor-row .mv2-wa-chips span { font-size: 10px; padding: 4px 8px; }
.profile-connect-mentor-row .mv2-btn-full { font-size: 11px; padding: 10px 12px; line-height: 1.35; white-space: normal; min-height: 0; }
@media (max-width: 520px) {
  .profile-connect-mentor-row { grid-template-columns: 1fr; }
}

.profile-mentor-card-wrap { margin-top: 4px; }
.profile-mentor-card-wrap .mv2-side-card { margin-bottom: 12px; }

/* Bottom nav: GK Feed label must not truncate to "GK F..." */
.bottom-nav .nav-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding-left: 2px;
  padding-right: 2px;
  font-size: 0.62rem;
}
.bottom-nav .nav-item > span:not(.tab-notification-badge) {
  max-width: 100%;
  line-height: 1.15;
}
#tab-mentor-label {
  font-size: 0.58rem;
  letter-spacing: -0.02em;
}
