:root {
  --navy: #15233f;
  --red: #b42335;
  --yellow: #f5cc45;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #243047;
  --muted: #64748b;
  --border: #e7ebf1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 18px 60px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body > div {
  max-width: 1100px;
  margin: 0 auto;
}

a, a:link, a:visited {
  color: var(--navy);
  text-decoration: none;
}

a:hover { color: var(--red); }

#pagetitle1 {
  margin: 0;
  padding: 35px 24px 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px 18px 0 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 750;
  letter-spacing: -0.7px;
  text-align: left;
}

.subtitle {
  margin: 0 0 32px;
  padding: 0 24px 30px;
  background: var(--navy);
  color: #cbd5e1;
  border-radius: 0 0 18px 18px;
  text-align: left;
}

.subtitle b { color: var(--yellow); }

table {
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
}

table[width="710"] {
  width: 100%;
  max-width: 100%;
  margin: 30px 0 12px;
}

td {
  padding: 6px 9px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  border-radius: 5px;
}

.headlinebg {
  background: var(--navy);
  border-radius: 10px;
}

.headtext {
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 650;
  text-align: left;
  border-radius: 9px;
}

.tdtop, .hicell, .hicell10 {
  background: #edf1f6;
}

.rankc, .rankc10, .rankc10center {
  background: #f0f3f8;
}

.hirankc, .hirankc10center {
  background: #e2e9f2;
  font-weight: 700;
}

.male, .male a { color: #2563eb; }
.female, .female a { color: #db2777; }
.bot, .bot a { color: #0891b2; }

.small, .asmall {
  font-family: inherit;
  color: var(--muted);
  font-size: 11px;
}

#footer {
  margin: 40px auto 0;
  max-width: 100%;
}

@media (max-width: 768px) {
  body { padding: 12px 10px 35px; }

  #pagetitle1 {
    padding: 24px 18px 10px;
  }

  .subtitle { padding: 0 18px 24px; }

  td { padding: 4px; font-size: 11px; }

  table { max-width: 100%; }

  body > div { overflow-x: auto; }
}


/* IRC Londrina — Light Premium V1.1 */

.irc-header {
  margin: 0 0 24px;
  background: #ffffff;
  border: 1px solid #e7ebf1;
  border-radius: 16px;
}

.irc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}

.irc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.irc-brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f5cc45;
  color: #15233f;
  font-size: 24px;
  font-weight: 800;
}

.irc-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.irc-brand-text strong {
  color: #15233f;
  font-size: 16px;
}

.irc-brand-text small {
  color: #64748b;
  font-size: 12px;
}

.irc-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.irc-nav a {
  padding: 9px 15px;
  border-radius: 9px;
  background: #f5f7fa;
  color: #15233f;
  font-size: 13px;
  font-weight: 650;
}

.irc-nav a:hover {
  background: #fff0f1;
  color: #b42335;
  text-decoration: none;
}

.irc-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 45px auto 0;
  padding: 25px 15px;
  border-top: 1px solid #e7ebf1;
  color: #64748b;
  font-size: 12px;
}

.irc-footer strong {
  color: #15233f;
}

@media (max-width: 650px) {
  .irc-header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .irc-nav a {
    flex: 1;
    text-align: center;
  }
}


/* IRC Londrina - Rankings Premium V1.2 */

/* Organização geral */
body > div {
  width: 100%;
  max-width: 1100px;
}

body > div > br {
  display: block;
  content: "";
  margin: 14px 0;
}

/* Cabeçalhos das estatísticas */
table[width="710"] {
  margin-top: 36px;
  margin-bottom: 14px;
  border-spacing: 0;
}

.headlinebg {
  background: #ffffff;
  border: 1px solid #e7ebf1;
  border-radius: 13px;
  padding: 4px;
}

.headtext {
  background: #ffffff;
  color: #15233f;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.25px;
  text-align: left;
  padding: 12px 15px;
  border-radius: 10px;
}

/* Células e rankings */
td {
  transition: background-color .15s ease;
}

.tdtop {
  background: #eaf0f7;
  color: #15233f;
  font-weight: 700;
}

.rankc,
.rankc10,
.rankc10center {
  background: #ffffff;
  border-bottom: 1px solid #edf0f5;
}

.hirankc,
.hirankc10center {
  background: #fff7e3;
  color: #15233f;
  font-weight: 750;
  border-bottom: 1px solid #f4e6c4;
}

.hicell,
.hicell10 {
  background: #f2f5fa;
}

/* Nicks e links */
.male,
.male a {
  color: #2563eb;
  font-weight: 650;
}

.female,
.female a {
  color: #db2777;
  font-weight: 650;
}

.bot,
.bot a {
  color: #0891b2;
}

a:hover {
  color: #b42335;
  text-decoration: underline;
}

/* Gráficos antigos preservados */
img[id$="-v"],
img[id$="-h"] {
  border-radius: 3px;
}

/* Legendas */
.small,
.asmall {
  color: #64748b;
  line-height: 1.5;
}

/* Ajustes para telas pequenas */
@media (max-width: 768px) {
  table[width="710"] {
    margin-top: 25px;
  }

  .headtext {
    font-size: 14px;
    padding: 10px;
  }

  td {
    font-size: 11px;
  }

  .small,
  .asmall {
    font-size: 10px;
  }
}


/* IRC LONDRINA CARDS V1.3 */

.irc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 30px;
  text-align: left;
}

.irc-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e7ebf1;
  border-radius: 16px;
}

.irc-kpi span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.irc-kpi strong {
  color: #15233f;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.irc-kpi small {
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 650px) {
  .irc-kpis {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .irc-kpi {
    padding: 18px;
  }
}


/* IRC LONDRINA GRAFICOS V1.4 */

/* Barras originais do PISG */
img[id="blue-v"],
img[id="yellow-v"],
img[id="red-v"],
img[id="blue-h"],
img[id="yellow-h"],
img[id="red-h"] {
  border-radius: 4px 4px 2px 2px;
  opacity: .92;
  vertical-align: bottom;
}

/* Paleta institucional nos gráficos */
img[id="blue-v"],
img[id="blue-h"] {
  background: #2563eb;
}

img[id="yellow-v"],
img[id="yellow-h"] {
  background: #f5cc45;
}

img[id="red-v"],
img[id="red-h"] {
  background: #b42335;
}

/* Células que contêm gráficos */
td:has(> img[id$="-v"]) {
  padding: 8px 5px 5px;
  vertical-align: bottom;
}

td:has(> img[id$="-h"]) {
  padding: 5px 8px;
}

/* Percentuais dos gráficos */
td.asmall {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

/* Destaque suave ao passar o mouse */
td:has(> img[id$="-v"]):hover,
td:has(> img[id$="-h"]):hover {
  background: #f0f4fa;
}

/* Melhor leitura dos horários */
.rankc10center,
.hirankc10center {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
  td:has(> img[id$="-v"]) {
    padding: 5px 2px;
  }

  td.asmall {
    font-size: 10px;
  }
}


/* IRC LONDRINA FINAL V1.5 */

/* Base e espaçamentos */
html {
  scroll-behavior: smooth;
}

body {
  padding-top: 28px;
  padding-bottom: 65px;
}

body > div {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

/* Cabeçalho */
.irc-header {
  margin-top: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(21,35,63,.035);
}

.irc-brand-icon {
  flex-shrink: 0;
}

.irc-nav a {
  transition: background-color .2s, color .2s;
}

/* Indicadores */
.irc-kpis {
  gap: 18px;
  margin-top: 30px;
  margin-bottom: 36px;
}

.irc-kpi {
  min-width: 0;
  box-shadow: 0 5px 24px rgba(21,35,63,.035);
  transition: border-color .2s, box-shadow .2s;
}

.irc-kpi:hover {
  border-color: #d5deeb;
  box-shadow: 0 8px 26px rgba(21,35,63,.065);
}

.irc-kpi strong {
  overflow-wrap: anywhere;
}

/* Tabelas e rankings */
table {
  max-width: 100%;
}

table[width="710"] {
  width: 100%;
}

.headtext {
  letter-spacing: -.2px;
}

.rankc,
.rankc10,
.rankc10center,
.hirankc,
.hirankc10center {
  font-variant-numeric: tabular-nums;
}

/* Rodapé */
.irc-footer {
  margin-top: 55px;
  padding-top: 28px;
  padding-bottom: 12px;
}

.irc-footer a {
  font-weight: 650;
}

/* Tablets */
@media (max-width: 900px) {
  body {
    padding-inline: 14px;
  }

  .irc-kpis {
    gap: 12px;
  }

  .irc-kpi {
    padding: 18px;
  }
}

/* Celulares */
@media (max-width: 650px) {
  body {
    padding: 12px 10px 40px;
  }

  #pagetitle1 {
    font-size: 23px;
    line-height: 1.3;
  }

  .subtitle {
    font-size: 12px;
  }

  .irc-header {
    margin-top: 18px;
  }

  .irc-header-inner {
    padding: 16px;
  }

  .irc-nav {
    width: 100%;
  }

  .irc-nav a {
    min-width: 0;
  }

  .irc-kpis {
    grid-template-columns: 1fr;
    margin-top: 20px;
    margin-bottom: 25px;
  }

  .irc-kpi {
    padding: 18px 20px;
  }

  .irc-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Respeitar preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .irc-kpi,
  .irc-nav a {
    transition: none;
  }
}
