/* Juara em Destaque - tema do portal (cores tiradas do logo) */
:root {
  --orange: #f7700a;      /* laranja do "d" e do selo "em" */
  --orange-dark: #d85a00; /* laranja para texto sobre branco */
  --blue: #0062bc;        /* azul do "j" */
  --navy: #003272;        /* azul-marinho da faixa do slogan */
  --navy-dark: #00224f;
  --urgent: #d7141a;      /* só para a faixa URGENTE */
  --red: var(--orange);   /* nome antigo, mantido por compatibilidade */
  --ink: #16181d;
  --muted: #5f6672;
  --line: #e4e6ea;
  --bg: #f4f6f9;
  --card: #fff;
  --radius: 10px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; /* títulos */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* Urgente */
.breaking { background: var(--urgent); color: #fff; font-weight: 600; }
.breaking .wrap { display: flex; gap: 12px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.breaking-tag { background: #fff; color: var(--urgent); text-transform: uppercase; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 4px; animation: pulse 1.6s infinite; flex-shrink: 0; }
.breaking a:hover { color: #fff; text-decoration: underline; }
@keyframes pulse { 50% { opacity: .55; } }

/* Cabeçalho */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar { background: var(--navy-dark); color: #c5d3e8; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 5px; padding-bottom: 5px; }
.topbar .social a { margin-left: 14px; }
.topbar .social a:hover { color: #fff; }
.brand-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { flex-shrink: 0; }
.brand img { height: 84px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); margin: 0; }
.brand-name b { color: var(--red); }
.search { display: flex; margin-left: auto; max-width: 340px; width: 100%; }
.search input { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 14px; font: inherit; background: var(--bg); min-width: 0; }
.search button { border: 1px solid var(--line); background: var(--bg); border-radius: 0 999px 999px 0; padding: 0 14px; cursor: pointer; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; padding: 4px 8px; }
.main-nav { background: var(--navy); border-bottom: 3px solid var(--orange); }
.main-nav .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.main-nav a { padding: 12px 14px; font: 700 14px var(--serif); text-transform: uppercase; letter-spacing: .3px; color: #fff; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.main-nav a.active, .main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); border-bottom-color: var(--orange); }

main { padding-top: 20px; padding-bottom: 40px; min-height: 60vh; }

/* Categoria (selo) */
.cat { display: inline-block; font: 800 12px var(--serif); text-transform: uppercase; letter-spacing: .4px; color: var(--c, var(--orange-dark)); margin-bottom: 4px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card .thumb { display: block; aspect-ratio: 16/9; background: #dde0e5; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.03); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card h2, .card h3 { margin: 0 0 8px; line-height: 1.25; font-family: var(--serif); font-weight: 700; letter-spacing: -.2px; }
.card h3 { font-size: 16px !important; }
.card-big h3 { font-size: 21px !important; }
.card-list h3 { font-size: 19px !important; }
.card-compact h3 { font-size: 14px !important; }
.card h3 { font-size: 17px; }
.card time { margin-top: auto; font-size: 13px; color: var(--muted); }
.card .sub, .card .exc { color: var(--muted); margin: 0 0 8px; font-size: 15px; }

.card-hero { position: relative; min-height: 420px; }
.card-hero .thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.card-hero .card-body { position: relative; margin-top: auto; padding: 80px 24px 22px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.card-hero h2 { font-size: 32px; font-family: var(--serif); }
.card-hero .cat { color: #fff; background: var(--c, var(--orange)); padding: 3px 8px; border-radius: 4px; align-self: flex-start; }
.card-hero .sub, .card-hero time { color: #e6e6e6; }
.card-hero a:hover { color: #fff; text-decoration: underline; }

.card-compact { flex-direction: row; gap: 12px; padding: 10px; }
.card-compact .thumb { width: 120px; flex-shrink: 0; border-radius: 6px; aspect-ratio: 4/3; }
.card-compact .card-body { padding: 0; }
.card-compact h3 { font-size: 15px; }

.card-big h3 { font-size: 22px; font-family: var(--serif); }

.card-list { flex-direction: row; gap: 16px; padding: 14px; }
.card-list .thumb { width: 260px; flex-shrink: 0; border-radius: 8px; }
.card-list .card-body { padding: 0; }
.card-list h3 { font-size: 20px; }

/* Grades */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 28px; }
.hero-side { display: grid; gap: 10px; align-content: start; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.cat-grid > div { display: grid; gap: 10px; align-content: start; }
.list { display: grid; gap: 14px; }
.cat-section { margin-top: 34px; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--line); margin: 0 0 16px; font-size: 14px; }
.section-title span { font: 800 19px var(--serif); text-transform: uppercase; color: var(--navy); padding-bottom: 6px; margin-bottom: -2px; border-bottom: 3px solid var(--c, var(--orange)); }
.section-title a { color: var(--blue); font-weight: 600; }

/* Sidebar */
.sidebar { display: grid; gap: 20px; position: sticky; top: 150px; }
.box { background: #fff; border-radius: var(--radius); padding: 16px; }
.box { padding-top: 0; overflow: hidden; }
.box-title { font: 800 15px var(--serif); text-transform: uppercase; letter-spacing: .3px; color: #fff; background: var(--navy); margin: 0 -16px 12px; padding: 11px 16px; border-bottom: 3px solid var(--orange); }
.most-read ol, .plantao { list-style: none; margin: 0; padding: 0; }
.most-read li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.3; }
.most-read li:last-child, .plantao li:last-child { border: 0; }
.most-read .n { font: 800 28px var(--serif); color: var(--orange); line-height: 1; min-width: 24px; }
.plantao li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plantao time { color: var(--blue); font-weight: 700; min-width: 44px; }

/* Anúncios */
.ad { text-align: center; margin: 16px auto; }
.ad img { margin: 0 auto 8px; border-radius: 6px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.sidebar .ad { margin: 0; background: #fff; padding: 10px; border-radius: var(--radius); }

/* Artigo */
.article { background: #fff; border-radius: var(--radius); padding: 28px 36px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.article h1 { font-family: var(--serif); font-weight: 800; color: var(--navy-dark); font-size: 36px; line-height: 1.18; margin: 4px 0 12px; letter-spacing: -.5px; }
.article .subtitle { font-size: 20px; color: var(--muted); margin: 0 0 16px; line-height: 1.4; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cover { margin: 18px 0; }
.cover img { width: 100%; border-radius: 8px; }
.cover figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.credit { font-style: italic; }
.content { font-size: 20px; line-height: 1.7; font-family: var(--font); color: #24272d; overflow-wrap: anywhere; }
.content p { margin: 0 0 1.1em; }
.content h2, .content h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 1.4em 0 .5em; }
.content img { border-radius: 6px; margin: 1em auto; }
.content a { color: var(--blue); text-decoration: underline; }
.content blockquote { border-left: 4px solid var(--orange); margin: 1.2em 0; padding: .2em 0 .2em 18px; color: #333; font-style: italic; }
.content iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 6px; }
.content table { border-collapse: collapse; width: 100%; font-family: var(--font); font-size: 16px; }
.content td, .content th { border: 1px solid var(--line); padding: 6px 10px; }
.content .text-center { text-align: center; } .content .text-right { text-align: right; } .content .text-justify { text-align: justify; }
.content .ad { font-family: var(--font); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags a { background: var(--bg); padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.preview-note { background: #fff7d6; border: 1px solid #f0d36b; padding: 10px 14px; border-radius: 8px; }

/* Compartilhar */
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.sh { display: inline-flex; align-items: center; border: 0; border-radius: 999px; padding: 7px 14px; font: 600 14px var(--font); color: #fff; cursor: pointer; }
.sh:hover { color: #fff; filter: brightness(.9); }
.sh-whatsapp { background: #1fa855; } .sh-facebook { background: #1877f2; } .sh-x { background: #111; } .sh-telegram { background: #229ed9; }
.sh-copy, .sh-native { background: #e8eaee; color: var(--ink); }
.sh-copy:hover, .sh-native:hover { color: var(--ink); }
.share-bottom { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.share-bottom p { margin: 0 0 8px; font-weight: 700; }
.related { margin-top: 32px; }

/* Listagens */
.listing-head { background: #fff; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; border-left: 6px solid var(--c, var(--orange)); }
.listing-head h1 { margin: 0 0 4px; font: 800 28px var(--serif); color: var(--navy); }
.listing-head p { margin: 0; color: var(--muted); }
.search-big { max-width: none; margin-top: 14px; }
.search-big button { padding: 0 20px; background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 700; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; background: #fff; font-weight: 600; }
.pagination .current { background: var(--orange); color: #fff; }
.notfound, .empty { background: #fff; border-radius: var(--radius); padding: 30px; }

/* Rodapé */
.site-footer { background: var(--navy); border-top: 4px solid var(--orange); color: #c5d3e8; padding: 36px 0 18px; font-size: 15px; }
.footer-logo { margin: 0 0 12px; }
.footer-logo img { background: #fff; padding: 8px 12px; border-radius: 10px; height: auto; width: 200px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: #fff; font: 800 15px var(--serif); text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 14px; font-size: 13px; }

/* Responsivo */
@media (max-width: 1024px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .brand img { height: 54px; }
  .brand-row { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .search { max-width: none; order: 3; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav .wrap { flex-direction: column; }
  .site-header { position: static; }
  .hero-grid, .cat-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .card-hero { min-height: 320px; }
  .card-hero h2 { font-size: 24px; }
  .card-list { flex-direction: column; padding: 0; }
  .card-list .thumb { width: 100%; border-radius: 0; }
  .card-list .card-body { padding: 12px 14px 14px; }
  .article { padding: 18px 16px; border-radius: 0; margin: 0 -16px; }
  .article h1 { font-size: 28px; }
  .content { font-size: 18px; }
}
