/* Home — feed estilo Perplexity + widget clima */
.manha-briefing {
  min-height: 100vh;
  width: min(920px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 28px 26px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.manha-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: none;
  width: min(100%, 42em);
  margin: 0 auto;
  text-align: center;
}
.manha-hora {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0;
}

.manha-sintese strong {
  font-weight: 600;
  color: var(--ink, #1a1a18);
}

.manha-sintese {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.48;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
  text-align: center;
}
.manha-btn-atualizar {
  width: min(360px, 100%);
  justify-content: center;
}
.manha-btn-calibrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
  box-shadow: var(--shadow-1);
}
.manha-btn-calibrar .manha-btn-arrow {
  font-size: 17px;
  line-height: 1;
}

.manha-perplexity {
  display: grid;
  grid-template-columns: minmax(0, min(100%, 760px));
  justify-content: center;
  width: 100%;
  gap: 22px;
  align-items: start;
}
.manha-feed {
  min-width: 0;
}
.manha-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: var(--hud-inset-top, 12px);
}
body.lee-desktop .manha-perplexity {
  gap: 22px;
  grid-template-columns: minmax(0, min(100%, 760px));
}
.manha-feed-content {
  width: 100%;
  min-width: 0;
}
.manha-sinais-head {
  margin-bottom: 14px;
  max-width: 36em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.manha-sinais-title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.manha-rail-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.85;
}
.manha-rail .wx-card,
.manha-rail .manha-musica-compact {
  border-color: var(--border);
  background: var(--panel);
}

/* Clima — widget Perplexity */
.wx-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px 14px;
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.wx-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.wx-now {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wx-icon { display: flex; color: var(--ink-soft); line-height: 0; }
.wx-svg { display: block; }
.wx-temp {
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.wx-unit {
  font-size: 14px;
  color: var(--ink-faint);
  align-self: flex-start;
  margin-top: 8px;
}
.wx-condition {
  font-size: 15px;
  color: var(--ink-soft);
  text-align: right;
  padding-top: 8px;
}
.wx-mid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.wx-loc { flex: 1; min-width: 0; }
.wx-hilo { white-space: nowrap; color: var(--ink-faint); }
.wx-hourly {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.wx-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wx-slot-icon { color: var(--ink-soft); line-height: 0; }
.wx-slot-temp { font-size: 13px; color: var(--ink); }
.wx-slot-muted { opacity: 0.4; }

/* Música compacta na rail */
.manha-musica-compact {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 14px 16px;
}
.manha-musica-compact .manha-block-title { margin-bottom: 10px; text-align: center; width: 100%; }
.manha-musica-compact {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.manha-musica-compact .manha-musica-image {
  width: min(100%, 132px);
  max-width: 132px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 10px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.manha-musica-compact .manha-musica-image-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  background: var(--surface-alt);
  color: var(--ink-faint);
  font-size: 12px;
}
.manha-musica-compact .manha-musica-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.manha-musica-compact .manha-musica-title {
  font-size: 17px;
  margin: 0 0 2px;
  width: 100%;
  text-align: center;
}
.manha-musica-compact .manha-musica-artist {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  width: 100%;
  text-align: center;
}
.manha-musica-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
  text-align: center;
  margin: -4px 0 10px;
  width: 100%;
}
.manha-musica-why {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 4px 12px;
  width: 100%;
  letter-spacing: 0.02em;
}
.manha-musica-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.manha-musica-link,
.manha-musica-swap {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Feed notícias — layout Perplexity; rolagem na página */
.feed-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}
.feed-more-hint {
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  padding: 10px 0 4px;
}
.feed-empty, .feed-loading {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  padding: 18px 0;
}
.feed-skeleton {
  background: linear-gradient(90deg, var(--surface-alt), var(--border), var(--surface-alt));
  background-size: 200% 100%;
  animation: feed-shimmer 1.2s ease infinite;
  border-radius: 8px;
  min-height: 120px;
}
.feed-loading--perplexity {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feed-skeleton-feature {
  min-height: 220px;
  border-radius: 12px;
}
.feed-skeleton-feature--flip { min-height: 200px; }
.feed-skeleton-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feed-skeleton-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-skeleton-list div {
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-alt), var(--border), var(--surface-alt));
  background-size: 200% 100%;
  animation: feed-shimmer 1.2s ease infinite;
}
@keyframes feed-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.feed-perplexity {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-feature {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(36, 37, 31, 0.04);
}
.news-feature-link {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.news-feature-body {
  order: 1;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-feature-media { order: 2; }
.news-feature--flip .news-feature-body { order: 2; }
.news-feature--flip .news-feature-media { order: 1; }
.news-feature-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: none;
  min-height: 180px;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-alt);
}
.news-feature--flip .news-feature-body {
  padding: 18px 20px 16px;
}
.news-feature-media img,
.news-tile-media img,
.news-hero-media img,
.news-list-thumb img {
  background: var(--surface-alt);
}
.news-feature-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.news-feature-title {
  font-family: var(--font);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 8px;
}
.news-feature-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.news-feature-summary {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-hero {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.news-hero-link {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.news-hero-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--surface-alt);
}
.news-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-hero-body { padding: 18px 20px 16px; }
.news-hero-title {
  font-family: var(--font);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
}
.news-hero-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.news-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  width: 100%;
}
.news-tiles--lead {
  align-items: stretch;
}
.news-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(36, 37, 31, 0.04);
}
.news-tile-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  min-height: 100%;
}
.news-tile-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}
.news-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-tile-title {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  padding: 11px 12px 7px;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.news-list-item + .news-list-item { border-top: 1px solid var(--border); }
.news-list-link {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
}
.news-list-thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-alt);
}
.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-list-body { min-width: 0; flex: 1; }
.news-list-title {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sources {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 12px 10px;
  font-size: 11px;
  color: var(--ink-faint);
  font-family: system-ui, -apple-system, sans-serif;
}
.news-feature .news-sources { padding: 0; }
.news-tile .news-sources { padding: 0 12px 10px; margin-top: auto; }
.news-list .news-sources { padding: 0; }
.news-hero .news-sources { padding: 0; }
.news-favicon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.8);
}
.news-favicon-stack {
  display: inline-flex;
  align-items: center;
  min-width: 18px;
}
.news-favicon-stack .news-favicon + .news-favicon {
  margin-left: -6px;
}
.news-source-dot { opacity: 0.6; }
.news-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  width: 100%;
  height: 100%;
}

.manha-fechamento {
  text-align: center;
  padding: 48px 24px;
}
.manha-fechamento-title {
  font-size: 22px;
  font-weight: 650;
  margin-bottom: 8px;
}
.manha-fechamento-hint {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
/* Leitor de matéria — full page estilo Perplexity (sem IA) */
body.news-reader-open { overflow: hidden; }
body.news-reader-open #map-bg,
body.news-reader-open .hud-anchor,
body.news-reader-open .modal-layer { visibility: hidden; }
.news-reader {
  position: fixed; inset: 0; z-index: 250; display: none; flex-direction: column;
  background: var(--surface);
}
.news-reader.open { display: flex; }
.news-reader-top {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px; border-bottom: 1px solid var(--border);
  background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.lee-desktop .news-reader-top {
  padding-top: 10px;
  padding-left: var(--hud-inset-x, 78px);
  padding-right: var(--hud-inset-x, 78px);
}
.news-reader-back { font-size: 14px; color: var(--ink-soft); padding: 6px 10px; border-radius: var(--radius-sm); }
.news-reader-back:hover { color: var(--ink); background: var(--surface-alt); }
.news-reader-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(28px, 1fr) minmax(0, 560px) minmax(28px, 1fr);
}
.news-reader-page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 0 72px;
  text-align: left;
  grid-column: 2;
}
.news-reader-column {
  width: 100%;
  max-width: 560px;
  margin: 0;
}
.news-reader-lead-title {
  font-family: var(--font); font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  line-height: 1.1; color: var(--ink); margin: 0 0 20px;
}
.news-reader-status { font-size: 16px; line-height: 1.5; color: var(--ink-soft); margin: 0; font-style: italic; padding-top: 20px; }
.news-reader-article-p { font-size: 17px; line-height: 1.68; color: var(--ink); margin: 0 0 16px; }
.news-reader-source-link {
  font-size: 14px; font-weight: 600; color: var(--accent, #1a4d3e);
  text-decoration: underline; text-underline-offset: 3px;
}
.news-reader-source-link:hover { color: var(--ink); }
.news-reader-lead-text { font-size: 18px; line-height: 1.62; color: var(--ink); margin: 0 0 14px; text-align: left; }
.news-reader-lead-text--warn {
  color: #8a4b12;
  font-weight: 600;
  font-style: normal;
}
.news-reader-lead-text--secondary {
  font-size: 16px;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.news-reader-meta {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  margin: 0 0 18px; font-size: 13px; color: var(--ink-faint);
}
.news-reader-meta-brand { font-weight: 600; color: var(--ink-soft); }
.news-reader-hero {
  width: 100%;
  margin: 0 0 22px;
  margin-inline: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-alt);
}
.news-reader-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.news-reader-sources {
  width: 100%;
  margin: 0 0 28px;
  margin-inline: 0;
}
.news-reader-sources-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.news-reader-sources-stack {
  display: inline-flex;
  align-items: center;
}
.news-reader-sources-stack-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -7px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.news-reader-sources-stack-icon:first-child { margin-left: 0; }
.news-reader-sources-count { color: var(--ink-faint); font-weight: 650; }
.news-reader-sources-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.news-reader-source-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: inherit;
  min-height: 108px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.news-reader-source-card:hover {
  border-color: var(--ink-faint);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.news-reader-source-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-reader-source-card-icon { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.news-reader-source-card-name {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-faint);
  text-transform: lowercase;
}
.news-reader-source-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-reader-body { margin: 0 0 24px; min-height: 80px; padding-top: 4px; border-top: 1px solid var(--border); }
.news-reader-open-main { margin-top: 4px; padding-top: 8px; }
.news-reader-more { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.news-reader-more h2 { font-size: 15px; font-weight: 650; color: var(--ink); margin: 0 0 16px; }
.news-reader-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.news-reader-more-card {
  border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.9);
  overflow: hidden; text-align: left; cursor: pointer; padding: 0;
}
.news-reader-more-card:hover { border-color: var(--ink-faint); }
.news-reader-more-media { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-alt); }
.news-reader-more-media img { width: 100%; height: 100%; object-fit: cover; }
.news-reader-more-title {
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink);
  padding: 10px 11px 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 900px) {
  .news-reader-scroll { grid-template-columns: 16px minmax(0, 1fr) 16px; }
  .news-reader-page { padding: 20px 0 56px; }
  .news-reader-sources-row, .news-reader-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .news-reader-sources-row, .news-reader-more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .manha-briefing {
    width: min(100vw - 24px, 680px);
    padding: 24px 16px;
  }
  .manha-perplexity {
    grid-template-columns: minmax(0, 1fr);
  }
  .manha-rail { position: static; }
  .manha-btn-calibrar { align-self: stretch; }
  .news-tiles { grid-template-columns: 1fr; }
  .news-feature-link { grid-template-columns: 1fr; gap: 14px; }
  .news-feature--flip .news-feature-media { order: 0; }
  .feed-skeleton-row { grid-template-columns: 1fr; }
  .news-feature-link {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
