/* =========================================
GLOBAL
========================================= */

:root {

  /* Global news */
  --worldnews: #ff3b3b;
  --news: #ff6a00;
  --geopolitics: #ff9500;
  --PoliticalDiscussion: #ffcc00;
  --politics: #e8ff00;

  /* Conspiracy / fringe */
  --conspiracy: #b4ff00;

  /* Ideological spectrum */
  --Conservative: #7dff00;
  --Liberal: #37ff00;
  --Republican: #00ff1e;
  --Democrats: #00ff5a;
  --moderatepolitics: #00ff9c;
  --Libertarian: #00ffd9;
  --Socialism: #00e5ff;
  --Anarchism: #00b7ff;
  --PoliticalHumor: #0091ff;
  --NeutralPolitics: #2f6cff;

  /* Military / conflict */
  --CredibleDefense: #4f5cff;
  --CombatFootage: #6a5cff;

  /* Middle East focus */
  --MiddleEast: #8a4cff;
  --AskMiddleEast: #a14cff;
  --IsraelPalestine: #b34cff;
  --Israel: #d94cff;
  --Palestine: #ff3bc1;
  --Iraq: #ff3b93;
  --Kurdistan: #ff3b6e;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: #e6e6e6 !important;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  background:
    radial-gradient(1400px 900px at 8% -10%, rgba(0, 110, 170, 0.18), transparent 55%),
    radial-gradient(1100px 700px at 92% 0%, rgba(0, 180, 140, 0.10), transparent 52%),
    radial-gradient(900px 600px at 50% 35%, rgba(40, 50, 90, 0.10), transparent 58%),
    linear-gradient(180deg, #071018 0%, #09111a 30%, #0a0f16 60%, #080c12 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 112px,
      rgba(255, 255, 255, 0.015) 113px,
      transparent 114px);
  opacity: 0.24;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.16)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.035), transparent 35%);
  z-index: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.container-fluid,
.row,
main,
aside,
footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.text-secondary {
  color: #8c97a3 !important;
}


/* =========================================
HEADER
========================================= */

.hp-header {
  position: relative;
  overflow: hidden;
  padding-top: 12px;
  padding-bottom: 6px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(0, 140, 220, 0.16), transparent 58%),
    radial-gradient(700px 340px at 82% 8%, rgba(0, 255, 170, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.70), rgba(8, 14, 22, 0.44));
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.site-title {
  margin: 15px 0 1px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 0.88;
  color: #f2f6fb;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.32);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand,
.brand-accent {
  color: #9ab6d9;
}

.hero-subrow {
  margin-top: 0;
  margin-bottom: 6px;
  padding-left: 16px;
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hp-subrow {
  margin-bottom: 0;
}

.hp-tagline {
  font-family: "Roboto", sans-serif;
  color: #d7e0ea;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -0.1px;
  max-width: 900px;
  margin: 0;
  overflow-wrap: anywhere;
}

.support-button {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  /* inherit normal button sizing */
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 600;
  min-width: auto;

  border-radius: 16px;

  background: linear-gradient(180deg, #ffd84d 0%, #ffbf00 100%) !important;
  border: 1px solid rgba(120, 85, 0, 0.35) !important;

  color: #111 !important;

  box-shadow: none;

  transition: transform 0.15s ease;
}

.support-button:hover {

  background: linear-gradient(180deg, #ffe066 0%, #ffc61a 100%) !important;

  transform: translateY(-1px);

}


/* =========================================
CONTROL PANEL
========================================= */

.hp-control-panel {
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 14px 16px 12px 16px;
  background: rgba(11, 19, 29, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.hp-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.hp-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  margin-bottom: 4px !important;
  width: 100%;
}

.hp-search input {
  flex: 1;
  min-width: 0;
}

.hp-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}


/* =========================================
SEARCH
========================================= */

.search-form {
  width: 100%;
}

.search-form input {
  width: 100%;
  max-width: 460px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.60);
  border: 1px solid #33404d;
  border-radius: 16px;
  color: #eef4fb;
  font-size: 17px;
  transition: all 0.15s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.search-form input:focus {
  outline: none;
  border-color: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.16);
}

.search-btn-inline {
  white-space: nowrap;
}

.hp-buttons .btn,
.search-form .btn {
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 12px;
}


/* =========================================
RESULTS BAR
========================================= */

.results-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 4px 0;
  padding-left: 16px;
}

.badge-results,
.badge-query,
.meta-badge {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: #dce6f0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.badge-label {
  color: #9ab0c5;
  font-weight: 600;
}

.badge-value {
  color: #f0f5fa;
  font-weight: 800;
}


/* =========================================
SIDEBAR
========================================= */

.sidebar {
  padding-right: 10px;
  min-width: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  --sb-color: #888;
}

.sidebar-color {
  width: 6px;
  min-width: 6px;
  height: 34px;
  border-radius: 4px;
  background: var(--sb-color);
  box-shadow:
    0 0 8px var(--sb-color),
    0 0 16px rgba(0, 0, 0, 0.38);
}

.sidebar-link {
  font-weight: 700;
  font-size: 17px;
  color: #eef3f8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar-link:hover {
  color: #ffffff;
}

.tiny-link {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #8b97a5;
}

.tiny-link:hover {
  color: #ffffff;
}


/* =========================================
POST LIST
========================================= */

.post-row,
.post-item,
.post-cell,
.title-wrapper {
  min-width: 0;
}

.post-title {
  display: block;
  width: 100%;
  margin-top: 3px;
  margin-bottom: 5px;
  color: #f4f7fb;
  font-size: 1.24rem;
  line-height: 1.28;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-title:hover {
  color: #ffffff;
  text-decoration: underline;
}

.meta {
  font-size: 14px;
  line-height: 1.4;
  color: #8e98a6;
  overflow-wrap: anywhere;
}


/* =========================================
FAVICON
========================================= */

.source-favicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-right: 6px;
  margin-top: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}


/* =========================================
GENERIC BUTTONS
========================================= */

button,
.btn {
  padding: 10px 22px;
  border-radius: 16px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #e6e6e6;
  transition: all 0.25s ease;
}

button:hover,
.btn:hover {
  background: #2d7df0;
  border-color: #2d7df0;
  color: white;
  box-shadow: 0 0 12px rgba(30, 136, 255, 0.7);
  text-decoration: none;
}

button:active,
.btn:active {
  background: #0f5fcc;
  border-color: #0f5fcc;
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 0 6px rgba(30, 136, 255, 0.4) inset;
}

button:focus,
.btn:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(30, 136, 255, 0.6);
}

.btn,
.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-ai {
  background: linear-gradient(90deg, #2d7df0, #19b8d8);
  border: none;
  color: white;
}

.btn-ai:hover {
  background: linear-gradient(90deg, #3a8fff, #25c8e6);
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.9);
}

.btn-ai:active {
  transform: scale(0.97);
}


/* =========================================
PAGER
========================================= */

.pagination-container {
  margin-top: 28px;
  margin-bottom: 10px;
  text-align: center;
}

.pager-btn {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 8px;
  border-radius: 8px;
  background: #1c63b4;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pager-btn:hover {
  background: #2a7be0;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.pager-info {
  display: inline-block;
  margin: 0 10px;
  color: #9aa3ad;
  font-size: 14px;
}


/* =========================================
SCROLL BUTTONS
========================================= */

.scroll-btn {
  position: fixed;
  right: 14px;
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(30, 34, 44, 0.92);
  color: #fff;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scroll-top {
  bottom: 68px;
}

.scroll-end {
  bottom: 18px;
}


/* =========================================
FOOTER
========================================= */

.hp-footer {
  margin-top: 60px;
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #8c97a3;
  border-top: 1px solid #2b2f36;
}

.footer-text {
  max-width: 800px;
  margin: 0 auto 1px auto;
}

.footer-links a {
  color: #1c63b4;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}


/* =========================================
AI RADAR
========================================= */

.ai-radar {
  position: absolute;
  right: 40px;
  top: 30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.2);
  animation: radar-spin 14s linear infinite;
}

.ai-radar::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 200, 255, 0.2);
}

@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* =========================================
SUBREDDIT SCROLLER
========================================= */

@media (max-width: 768px) {
  .subreddit-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .subreddit-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 8px;
    width: max-content;
  }

  .subreddit-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 10px;
    white-space: nowrap;
  }
}


/* =========================================
BRIEFING BODY
========================================= */

.briefing-body h1 {
  color: #6fd3ff;
  border-bottom: 1px solid rgba(111, 211, 255, 0.25);
  padding-bottom: 8px;
  text-shadow: 0 0 10px rgba(111, 211, 255, 0.25);
}

.briefing-body h2 {
  color: #8af5c8;
  margin-top: 26px;
  position: relative;
}

.briefing-body h2::before {
  content: "◆";
  color: #ffd166;
  margin-right: 8px;
}

.briefing-body h3 {
  color: #ffd166;
}

.briefing-body p {
  color: #dce5ef;
}



/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 992px) {
  .site-title {
    font-size: 34px;
  }

  .hp-tagline {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .site-title {
    width: 100%;
    margin-left: 0;
    text-align: center;
    font-size: 2.6rem;
    letter-spacing: -0.9px;
    line-height: 1.05;
  }

  .hero-subrow {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hp-tagline {
    text-align: center;
    font-size: 1.55rem;
    line-height: 1.25;
    max-width: 95%;
    margin: 0 auto;
  }

  .support-button {
    min-width: 132px;
    font-size: 1.35rem;
    padding: 14px 28px;
    margin-right: 0;
  }

  .hp-control-panel {
    padding: 16px 14px;
  }

  .hp-controls,
  .hp-search,
  .hp-buttons {
    width: 100%;
  }

  .hp-search {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px !important;
    flex-wrap: nowrap;
  }

  .hp-search input,
  .search-form input {
    max-width: 100%;
    flex: 1;
    font-size: 1.0rem;
    padding: 16px 18px;
    border-radius: 20px;
  }

  .search-btn-inline {
    white-space: nowrap;
    font-size: 1.15rem !important;
    padding: 0 16px !important;
    border-radius: 16px !important;
    flex: 0 0 auto;
  }

  .hp-buttons-mobile-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .hp-buttons-mobile-row .btn {
    flex: 1 1 0;
    font-size: 0.88rem;
    padding: 10px 8px;
    white-space: nowrap;
    text-align: center;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .sidebar-item {
    margin-bottom: 0;
    align-items: flex-start;
  }

  .post-title {
    font-size: 1.02rem;
    line-height: 1.28;
  }

  .meta {
    font-size: 12px;
  }

  .badge-results,
  .badge-query,
  .meta-badge {
    font-size: 14px;
    padding: 8px 12px;
  }

  .scroll-btn {
    font-size: 0.95rem;
    padding: 8px 12px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hp-header {
    padding-top: 12px;
    padding-bottom: 6px;
  }

  .site-title {
    font-size: 2.25rem;
    margin-left: 0;
    text-align: center;
  }

  .hp-tagline {
    font-size: 1.2rem;
  }

  .hero-subrow {
    gap: 14px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hp-control-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .results-bar {
    padding-left: 12px;
  }

  .post-title {
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .meta {
    font-size: 11px;
  }

  .support-button {
    width: auto;
    min-width: 112px;
    font-size: 1.05rem;
    padding: 10px 16px;
  }

  .badge-results,
  .badge-query,
  .meta-badge {
    font-size: 13px;
    padding: 7px 11px;
  }

  .hp-buttons-mobile-row .btn {
    font-size: 0.78rem;
    padding: 10px 6px;
  }

  .search-btn-inline {
    font-size: 1rem !important;
    padding: 0 12px !important;
  }
}

/* =========================================
GENERIC BUTTONS
========================================= */

button,
.btn {
  padding: 10px 22px;
  border-radius: 16px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #e6e6e6;
  transition: all 0.25s ease;
}

button:hover,
.btn:hover {
  background: linear-gradient(90deg, #2d7df0, #19b8d8);
  border-color: rgba(37, 200, 230, 0.75);
  color: white;
  box-shadow:
    0 0 14px rgba(0, 200, 255, 0.9),
    0 0 28px rgba(45, 125, 240, 0.35);
  text-decoration: none;
}

button:active,
.btn:active {
  background: linear-gradient(90deg, #2469cb, #159fba);
  border-color: rgba(21, 159, 186, 0.85);
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 0 8px rgba(0, 200, 255, 0.35) inset,
    0 0 10px rgba(45, 125, 240, 0.25);
}

button:focus,
.btn:focus {
  outline: none;
  box-shadow:
    0 0 10px rgba(0, 200, 255, 0.55),
    0 0 20px rgba(45, 125, 240, 0.25);
}

.btn,
.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-ai {
  background: linear-gradient(90deg, #2d7df0, #19b8d8);
  border: none;
  color: white;
}

.btn-ai:hover {
  background: linear-gradient(90deg, #3a8fff, #25c8e6);
  border-color: rgba(37, 200, 230, 0.75);
  color: white;
  box-shadow:
    0 0 14px rgba(0, 200, 255, 0.9),
    0 0 28px rgba(45, 125, 240, 0.35);
}

.btn-ai:active {
  background: linear-gradient(90deg, #2469cb, #159fba);
  transform: translateY(1px) scale(0.98);
}

/* =========================================
BUTTON SYSTEM
========================================= */

button,
.btn {

  border-radius: 16px;
  padding: 10px 22px;
  font-weight: 600;

  background: linear-gradient(180deg, #2d7df0 0%, #1b63c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);

  color: white;

  transition: all .18s ease;

  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Hover */

button:hover,
.btn:hover {

  background: linear-gradient(180deg, #3a8fff 0%, #2574df 100%);
  border-color: rgba(255, 255, 255, 0.22);

  transform: translateY(-1px);

  color: white;
  text-decoration: none;
}

/* Click */

button:active,
.btn:active {

  background: linear-gradient(180deg, #1b63c7 0%, #154fa1 100%);
  transform: translateY(1px) scale(.98);

  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* Focus */

button:focus,
.btn:focus {

  outline: none;

  box-shadow:
    0 0 0 2px rgba(80, 150, 255, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.25);
}


/* AI button stays same color so UI is consistent */

.btn-ai {
  background: linear-gradient(180deg, #2d7df0 0%, #1b63c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ai:hover {
  background: linear-gradient(180deg, #3a8fff 0%, #2574df 100%);
}

/* =========================================
BUTTON SYSTEM
========================================= */

button,
.btn {

  border-radius: 16px;
  padding: 10px 22px;
  font-weight: 600;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #e6e6e6;

  transition: all .18s ease;

  /* only subtle inner highlight */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


/* Hover — blue highlight (NO outer glow) */

button:hover,
.btn:hover {

  background: #2d7df0;
  border-color: #2d7df0;

  color: white;
  text-decoration: none;

  transform: translateY(-1px);

  /* subtle inner shine only */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}


/* Click */

button:active,
.btn:active {

  background: #1b63c7;
  border-color: #1b63c7;

  transform: translateY(1px) scale(.98);

  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.35);
}


/* Focus (no glow outside border) */

button:focus,
.btn:focus {
  outline: none;
}


/* AI button same behavior */

.btn-ai {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ai:hover {
  background: #2d7df0;
  border-color: #2d7df0;
}

/* Normalize form + button heights */

.search-box {
  height: 42px;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 14px;
}

.search-btn {
  height: 42px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 14px;
}

/* Top navigation buttons */
.action-btn {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 12px;
}

/* Support button — smaller and tighter */
.support-btn {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 20px;
  font-weight: 600;
}

/* =========================================
UNIFORM BUTTON + INPUT SIZE
========================================= */

.ui-control {
  height: 44px;
  font-size: 15px;
  padding: 0 16px;
  border-radius: 14px;
}

/* search field needs inner padding */
.search-input {
  height: 44px;
  padding: 0 16px;
  font-size: 16px;
  border-radius: 14px;
}

/* support button color */
.support-btn {
  background: linear-gradient(180deg, #ffd84d, #f4b400);
  border: none;
  font-weight: 600;
}

/* =========================================
UNIFORM CONTROL SIZE
========================================= */

.hp-control {
  height: 44px;
  font-size: 15px;
  padding: 0 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* search field */
.hp-search-input {
  height: 44px;
  padding: 0 16px;
  font-size: 16px;
}

/* search form layout */
.hp-search {
  display: flex;
  gap: 10px;
}

/* support button style */
.hp-support-btn {
  font-weight: 600;
}

/* SEARCH FIELD */

.hp-search-input {
  height: 44px;
  padding: 0 16px;
  font-size: 16px;

  background: #0b0f14;
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hp-search-input::placeholder {
  color: #9aa6b2;
  opacity: 1;
}

/* SUPPORT BUTTON */

.hp-support-btn {
  background: linear-gradient(180deg, #ffd84d, #f4b400);
  border: none;
  color: #000;
  font-weight: 600;
}

.hp-support-btn:hover {
  background: linear-gradient(180deg, #ffe36a, #ffcc00);
}

/* =========================================
AI BRIEFING PAGE
========================================= */

.hero-subpage {
    padding-top: 110px;
    padding-bottom: 48px;
}

.brief-shell {
    background:
        linear-gradient(180deg, rgba(14, 21, 34, 0.92) 0%, rgba(10, 17, 28, 0.96) 100%);
    border: 1px solid rgba(130, 170, 255, 0.12);
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.brief-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    flex-wrap: wrap;
}

.brief-top-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.dot-red {
    background: #ff5f57;
}

.dot-amber {
    background: #febc2e;
}

.dot-green {
    background: #28c840;
}

.brief-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dfe9f7;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brief-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #56c2ff 0%, #4f7cff 100%);
    color: #08111e;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(86, 194, 255, 0.25);
}

.brief-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c8d6ea;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brief-pill.live {
    color: #97ffd7;
    border-color: rgba(89, 255, 189, 0.18);
    background: rgba(34, 255, 170, 0.06);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    background: #52ffb8;
    box-shadow: 0 0 12px rgba(82, 255, 184, 0.75);
}

.brief-hero {
    padding: 34px 28px 18px;
}

.brief-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #79c9ff;
    font-weight: 700;
}

.brief-eyebrow-line {
    width: 34px;
    height: 2px;
    background: linear-gradient(90deg, #79c9ff 0%, rgba(121, 201, 255, 0.2) 100%);
    border-radius: 999px;
}

.brief-headline {
    font-size: clamp(2rem, 4vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #eef4fb;
    margin: 0 0 18px 0;
    max-width: 1100px;
}

.brief-subhead {
    font-size: 1.35rem;
    line-height: 1.5;
    color: rgba(233, 240, 250, 0.78);
    max-width: 980px;
    margin: 0;
}

.brief-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 18px 28px 28px;
}

.brief-card {
    background: rgba(7, 14, 26, 0.55);
    border: 1px solid rgba(130, 170, 255, 0.1);
    border-radius: 22px;
    padding: 26px 24px;
    min-height: 130px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brief-meta-label {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(234, 239, 247, 0.5);
    margin-bottom: 16px;
    font-weight: 700;
}

.brief-meta-value {
    font-size: 1.05rem;
    line-height: 1.45;
    color: #eef4fb;
    font-weight: 700;
}

.brief-meta-value.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #79d0ff;
}

.brief-meta-value.green {
    color: #93ffd6;
}

.brief-meta-value.amber {
    color: #ffd36c;
}

.brief-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 28px;
    background: rgba(255, 209, 102, 0.08);
    border-top: 1px solid rgba(255, 209, 102, 0.1);
    border-bottom: 1px solid rgba(255, 209, 102, 0.1);
    color: #ffe7a6;
    font-size: 1rem;
    line-height: 1.55;
}

.brief-body-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.8fr);
    gap: 28px;
    padding: 28px;
    align-items: start;
}

.brief-main {
    min-width: 0;
}

.briefing-body {
    color: #dce8f5;
    font-size: 1.02rem;
    line-height: 1.72;
}

.briefing-body .brief-deck {
    font-size: 1.18rem;
    line-height: 1.6;
    color: rgba(226, 236, 248, 0.83);
    margin-bottom: 26px;
    padding: 0 0 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.briefing-body .brief-section {
    margin-bottom: 30px;
}

.briefing-body .brief-section h3 {
    font-size: 1.18rem;
    line-height: 1.3;
    margin: 0 0 14px 0;
    color: #8af0cb;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.briefing-body .brief-section p {
    margin: 0 0 16px 0;
    font-size: 1.02rem;
    line-height: 1.78;
    color: #dbe7f3;
}

.briefing-body .brief-section ul {
    margin: 0;
    padding-left: 1.2rem;
}

.briefing-body .brief-section li {
    margin-bottom: 10px;
    color: #dbe7f3;
    line-height: 1.68;
}

.brief-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brief-side-card {
    background: rgba(7, 14, 26, 0.58);
    border: 1px solid rgba(130, 170, 255, 0.1);
    border-radius: 20px;
    padding: 20px 18px;
}

.brief-side-title {
    margin: 0 0 14px 0;
    color: #eef4fb;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brief-side-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #cdd9e8;
}

.brief-side-list li {
    margin-bottom: 10px;
    line-height: 1.58;
}

.brief-side-stat {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brief-side-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.brief-side-stat-label {
    color: rgba(234, 239, 247, 0.6);
    font-size: 0.92rem;
}

.brief-side-stat-value {
    color: #eef4fb;
    font-weight: 700;
    font-size: 0.94rem;
    text-align: right;
}

.brief-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 28px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(225, 233, 244, 0.62);
    font-size: 0.9rem;
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 1199px) {
    .brief-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brief-body-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-subpage {
        padding-top: 96px;
        padding-bottom: 34px;
    }

    .brief-topbar,
    .brief-hero,
    .brief-meta-grid,
    .brief-disclaimer,
    .brief-body-wrap,
    .brief-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brief-meta-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 20px;
    }

    .brief-card {
        min-height: auto;
        padding: 18px 16px;
    }

    .brief-headline {
        font-size: 2.2rem;
    }

    .brief-subhead {
        font-size: 1rem;
    }

    .brief-disclaimer {
        font-size: 0.94rem;
    }

    .briefing-body {
        font-size: 0.97rem;
    }

    .briefing-body .brief-section h3 {
        font-size: 1.05rem;
    }
}
