:root {
  --green: #73D169;
  --green-bright: #86F37A;
  --green-soft: #A8FC9F;
  --petroleum: #00485F;
  --slate: #294752;
  --gray: #8BA0A7;
  --coral: #F27457;
  --terracotta: #BF6655;

  --ink: #06384A;
  --text: #365B69;
  --muted: #758D96;
  --page: #F7FAFA;
  --white: #FFFFFF;
  --line: #DCE8E9;

  --green-card: #EBF9EF;
  --coral-card: #FFF1EC;

  --shadow: 0 18px 50px rgba(0, 72, 95, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  width: 100vw;
  height: 100vh;

  display: grid;
  grid-template-rows: 130px minmax(0, 1fr) 86px 5px;

  background:
    radial-gradient(
      circle at 72% 15%,
      rgba(115, 209, 105, 0.055),
      transparent 27%
    ),
    linear-gradient(
      120deg,
      #FFFFFF 0%,
      #FFFFFF 67%,
      #F1F7F6 100%
    );
}


/* ==================================================
   CABEÇALHO
   ================================================== */

.header {
  position: relative;

  display: flex;
  align-items: center;

  padding: 22px 46px;

  background: rgba(255, 255, 255, 0.98);

  border-bottom: 1px solid rgba(0, 72, 95, 0.08);
}

.identity {
  display: flex;
  align-items: center;
  gap: 30px;
}

.identity img {
  width: 290px;
  height: 94px;

  display: block;

  object-fit: contain;
  object-position: left center;
}

.identity-divider {
  width: 1px;
  height: 73px;

  background: rgba(0, 72, 95, 0.22);
}

.identity-copy {
  min-width: 520px;
position: relative;  
}

.identity-copy::after {
  content: "";

  width: 48px;
  height: 4px;

  display: block;

  margin-top: 12px;

  background: linear-gradient(
    90deg,
    var(--green),
    var(--green-bright)
  );

  border-radius: 999px;
}

.identity-copy small {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  margin-bottom: 8px;
  padding: 6px 12px;

  color: var(--petroleum);

  background: rgba(115, 209, 105, 0.15);

  border: 1px solid rgba(115, 209, 105, 0.28);
  border-radius: 999px;

  font-size: 12px;
  font-weight: 850;

  letter-spacing: 0.22em;
}


.identity-copy h1 {
  margin: 0;

  color: var(--ink);

  font-size: clamp(34px, 2.45vw, 44px);
  font-weight: 800;

  line-height: 0.98;

  letter-spacing: -0.045em;
}

.identity-copy p {
  margin: 10px 0 0;

  color: #617D88;

  font-size: 11px;
  font-weight: 650;

  letter-spacing: 0.20em;

  text-transform: uppercase;
}


/* ==================================================
   BLOCO DATA / RELÓGIO
   ================================================== */

.status {
  position: absolute;

  top: 0;
  right: 0;

  width: 485px;
  height: 130px;

  padding: 18px 34px 16px 42px;

  display: grid;
  grid-template-columns: 1fr 110px 126px;
  align-items: center;
  gap: 20px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #00485F 0%,
      #003A4B 100%
    );

  border-radius: 0 0 0 42px;

  box-shadow:
    -8px 14px 38px rgba(0, 72, 95, 0.12);
}

.status-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-date > small {
  color: var(--green-soft);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.18em;
}

.status-date > span {
  margin-top: 5px;

  color: rgba(255, 255, 255, 0.86);

  font-size: 10px;
}

.status-date em {
  margin-top: 12px;
  padding-top: 8px;

  width: 100%;

  display: flex;
  align-items: center;
  gap: 8px;

  color: rgba(255, 255, 255, 0.70);

  border-top: 1px solid rgba(255, 255, 255, 0.16);

  font-size: 9px;
  font-style: normal;
}

.status-date em i {
  width: 8px;
  height: 8px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--green-bright);

  box-shadow: 0 0 0 5px rgba(134, 243, 122, 0.10);
}

.status > strong {
  text-align: center;

  color: white;

  font-size: 42px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: -0.04em;
}

.status-message {
  height: 94px;

  padding-left: 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.status-message span {
  color: rgba(255, 255, 255, 0.94);

  font-size: 12px;
  font-weight: 500;

  line-height: 1.25;

  letter-spacing: 0.12em;
}

.status-message i {
  width: 48px;
  height: 4px;

  margin-top: 13px;

  display: block;

  background: var(--green-bright);

  border-radius: 99px;
}


/* ==================================================
   CONTEÚDO PRINCIPAL
   ================================================== */

main {
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}


/* ==================================================
   ARTIGO
   ================================================== */

.content {
  min-width: 0;
  min-height: 0;

  padding: 26px 38px 18px 54px;

  display: flex;
  flex-direction: column;

  background: var(--white);
}

.storyTop {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 14px;
}

.category {
  padding: 8px 17px;

  display: inline-flex;
  align-items: center;

  color: var(--petroleum);

  background:
    linear-gradient(
      90deg,
      rgba(115, 209, 105, 0.26),
      rgba(168, 252, 159, 0.54)
    );

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 0.045em;
}

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

.storyNav b {
  margin-right: 7px;

  color: var(--gray);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.08em;
}

.storyNav button {
  width: 33px;
  height: 33px;

  display: grid;
  place-items: center;

  padding: 0;

  color: var(--petroleum);

  background: transparent;

  border: 1px solid rgba(0, 72, 95, 0.14);

  border-radius: 50%;

  font-size: 20px;

  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.storyNav button:hover {
  color: white;

  background: var(--petroleum);

  border-color: var(--petroleum);

  transform: translateY(-1px);
}


/* ==================================================
   TÍTULO + IMAGEM
   ================================================== */

.lead {
  min-width: 0;

  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(390px, 0.92fr);

  gap: 34px;

  align-items: center;
}

.lead-copy {
  min-width: 0;

  overflow: hidden;
}

.lead h2 {
  max-width: 100%;

  margin: 0 0 13px;

  color: var(--ink);

  font-size: clamp(30px, 2.45vw, 43px);
  font-weight: 700;

  line-height: 1.08;

  letter-spacing: -0.03em;

  text-wrap: balance;
  overflow-wrap: break-word;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  overflow: hidden;
}

.lead-copy > p {
  max-width: 100%;

  margin: 0;

  color: var(--text);

  font-size: clamp(17px, 1.35vw, 21px);

  line-height: 1.46;

  overflow-wrap: break-word;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  overflow: hidden;
}

.lead-image {
  position: relative;

  min-width: 0;
  height: 245px;

  margin: 0;

  overflow: hidden;

  background: #E6EEEE;

  border-radius: 18px;

  box-shadow:
    0 18px 45px rgba(0, 72, 95, 0.11);
}

.lead-image::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      transparent 60%,
      rgba(0, 51, 66, 0.32)
    );
}

.lead-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.lead-image figcaption {
  position: absolute;

  right: 16px;
  bottom: 14px;

  z-index: 2;

  color: white;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.30);
}


/* ==================================================
   INSIGHTS
   ================================================== */

.insights {
  margin-top: auto;
  padding-top: 12px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 16px;
}

.insights article {
  min-height: 96px;

  padding: 14px 18px;

  border-radius: 16px;
}

.insights .why {
  background:
    linear-gradient(
      135deg,
      #E8F8ED,
      #F1FBF4
    );
}

.insights .pull {
  background:
    linear-gradient(
      135deg,
      #FFF0EB,
      #FFF7F4
    );
}

.insight-header {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 10px;
}

.insight-icon {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  flex: 0 0 auto;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 800;
}

.why .insight-icon {
  color: var(--petroleum);

  background: rgba(115, 209, 105, 0.35);
}

.pull .insight-icon {
  color: white;

  background: var(--coral);
}

.insight-header strong {
  font-size: 12px;
  font-weight: 850;

  letter-spacing: 0.07em;
}

.why .insight-header strong {
  color: var(--petroleum);
}

.pull .insight-header strong {
  color: #D95037;
}

.insights p {
  margin: 0;

  color: var(--ink);

  font-size: 16px;

  line-height: 1.45;
}


/* ==================================================
   FONTE
   ================================================== */

.source {
  margin-top: 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  flex-shrink: 0;
}
.source-info {
  display: flex;
  align-items: center;
  gap: 7px;

  color: #708891;
  font-size: 11px;
}

.source-symbol {
  margin-right: 3px;

  color: var(--petroleum);

  font-size: 15px;
  font-weight: 700;
}

.source-info b {
  color: var(--petroleum);
  font-weight: 750;
}

.source-info i {
  color: #A7B9BD;
  font-style: normal;
}

.source a {
  padding: 11px 18px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: white;
  background: var(--petroleum);

  border-radius: 10px;

  box-shadow:
    0 10px 24px rgba(0, 72, 95, 0.11);

  font-size: 12px;
  font-weight: 800;

  text-decoration: none;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.source a:hover {
  transform: translateY(-1px);

  box-shadow:
    0 13px 30px rgba(0, 72, 95, 0.18);
}


/* ==================================================
   PAINEL LATERAL
   ================================================== */

aside {
  min-height: 0;

  padding: 22px 24px 16px;

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      180deg,
      #F3F8F8,
      #EEF5F5
    );

  border-left:
    1px solid rgba(0, 72, 95, 0.06);
}

.radar-top h3 {
  margin: 0 0 14px;

  color: var(--petroleum);

  font-size: 12px;
  font-weight: 850;

  letter-spacing: 0.10em;
}

aside ul {
  margin: 0;
  padding: 0;

  display: grid;
  gap: 8px;

  list-style: none;
}

aside li {
  display: flex;
  align-items: center;

  gap: 12px;

  color: #355A68;

  font-size: 11px;
}

aside li i {
  width: 10px;
  height: 10px;

  flex: 0 0 auto;

  border-radius: 3px;
}

.c1,
.c7 {
  background: var(--green);
}

.c2,
.c8 {
  background: var(--coral);
}

.c3,
.c5 {
  background: var(--gray);
}

.c4,
.c9 {
  background: #2EB7C9;
}

.c6 {
  background: var(--green-bright);
}


/* ==================================================
   RELEVÂNCIA
   ================================================== */

.relevance {
  margin-top: 18px;

  padding-top: 21px;

  border-top:
    1px solid rgba(0, 72, 95, 0.15);
}

.relevance > span {
  display: block;

  margin-bottom: 13px;

  color: var(--petroleum);

  font-size: 11px;
  font-weight: 850;

  line-height: 1.45;

  letter-spacing: 0.06em;
}

.relevance-score {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 14px;

  margin-bottom: 8px;
}

.meter {
  height: 12px;

  overflow: hidden;

  background: #D9E5E6;

  border-radius: 999px;
}

.meter i {
  display: block;

  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #58C96D,
      var(--green-bright)
    );

  border-radius: inherit;

  transition: width 0.4s ease;
}

.relevance b {
  color: #16814D;

  font-size: 22px;
  font-weight: 780;

  letter-spacing: -0.025em;
}

.relevance small {
  display: block;

  color: #647F89;

  font-size: 11px;

  line-height: 1.42;
}


/* ==================================================
   PRÓXIMAS NOTÍCIAS
   ================================================== */

.queue {
  display: grid;

  grid-template-columns:
    200px
    minmax(0, 1fr);

  align-items: center;

  padding: 8px 42px;

  background:
    linear-gradient(
      90deg,
      #F8FBFA,
      #F1F6F6
    );

  border-top:
    1px solid rgba(0, 72, 95, 0.09);
}

.queue-title {
  padding-right: 28px;
}

.queue-title span {
  display: block;

  color: var(--petroleum);

  font-size: 11px;
  font-weight: 850;

  letter-spacing: 0.10em;
}

.queue-title i {
  width: 34px;
  height: 3px;

  margin-top: 13px;

  display: block;

  background: var(--green);

  border-radius: 99px;
}

.queue > div:last-child {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 0;
}

.queue article {
  min-width: 0;

  padding: 2px 24px;

  border-left:
    1px solid rgba(0, 72, 95, 0.14);
}

.queue article b {
  color: var(--petroleum);

  font-size: 10px;
}

.queue article p {
  margin: 5px 0;

  color: var(--ink);

  font-size: 13px;

  line-height: 1.3;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
}

.queue article small {
  color: #85989F;

  font-size: 10px;
}


/* ==================================================
   BARRA DE ROTAÇÃO
   ================================================== */

.auto {
  background: #DFE8E9;
}

.auto i {
  display: block;

  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--green),
      var(--green-bright)
    );
}


/* ==================================================
   TELAS MENORES
   ================================================== */

@media (max-width: 1280px) {

  .identity img {
    width: 235px;
  }

  .identity-copy {
    min-width: 390px;
  }

  .identity-copy h1 {
    font-size: 31px;
  }

  .status {
    width: 405px;
  }

  main {
    grid-template-columns:
      minmax(0, 1fr)
      260px;
  }

  .lead {
    grid-template-columns:
      minmax(0, 1fr)
      360px;
  }

  .lead h2 {
    font-size: 34px;
  }
}


@media (max-width: 960px) {

  body {
    overflow: auto;
  }

  .app {
    height: auto;
    min-height: 100vh;

    display: block;
  }

  .header {
    min-height: 100px;

    padding: 15px 20px;
  }

  .identity img {
    width: 190px;
    height: 65px;
  }

  .identity-divider,
  .identity-copy {
    display: none;
  }

  .status {
    position: static;

    width: auto;
    min-width: 220px;
    height: auto;

    margin-left: auto;

    padding: 12px 16px;

    grid-template-columns: 1fr auto;

    border-radius: 14px;
  }

  .status-message {
    display: none;
  }

  main {
    display: block;

    padding: 16px;
  }

  .content {
    padding: 22px;

    border-radius: 20px;

    box-shadow: var(--shadow);
  }

  aside {
    display: none;
  }

  .lead {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .lead h2 {
    font-size: 32px;
  }

  .lead-image {
    height: 245px;
  }

  .insights {
    grid-template-columns: 1fr;
  }

  .queue {
    display: none;
  }
}
