/* GCC1734 — estilo próprio, sem frameworks */
:root {
  --ink: #172033;
  --muted: #5b6475;
  --paper: #ffffff;
  --surface: #f3f6fa;
  --line: #d9e0ea;
  --brand: #173f6f;
  --brand-2: #23669e;
  --accent: #dceeff;
  --success: #e8f5ed;
  --warning: #fff4d8;
  --danger: #fde9e8;
  --dark: #111b2d;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(19, 44, 76, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--brand-2); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: .75rem 1rem; background: #fff; color: #000; z-index: 99;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.hero {
  color: #fff;
  background: linear-gradient(135deg, #0e2746, #175586);
  padding: 4.5rem 0 3.8rem;
}
.eyebrow { margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .83rem; }
h1 { margin: 0; max-width: 900px; font-size: clamp(1.32rem, 3.6vw, 2.7rem); line-height: 1.05; }
.subtitle { font-size: 1.2rem; color: #d8e8f7; }
.quick-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .72rem 1rem; border: 1px solid currentColor; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 700;
}
.button.primary { color: var(--brand); background: #fff; border-color: #fff; }
.button.small { color: var(--brand); padding: .55rem .85rem; }
.button:hover { transform: translateY(-1px); }

.site-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-inner { display: flex; gap: 1rem; overflow-x: auto; padding-block: .7rem; }
.nav-inner a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }

.section { padding: 4rem 0; scroll-margin-top: 4rem; }
.section.alt { background: var(--surface); }
.section.dark { color: #eef5ff; background: var(--dark); }
.section.dark a { color: #9fd4ff; }
h2 { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
h3 { margin-top: 1.5rem; line-height: 1.25; }
.lead { font-size: 1.22rem; color: #c6d5e8; }
.section-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.section-heading p { margin-top: -.5rem; color: var(--muted); }

.cards, .grid { display: grid; gap: 1rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 1.35rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card.accent { background: var(--accent); }
.card h3 { margin-top: 0; }
.note { color: var(--muted); font-size: .93rem; }
.metric { display: flex; flex-direction: column; gap: .25rem; }
.metric strong { font-size: 2rem; color: var(--brand); }
.metric span { color: var(--muted); }

.study-flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem;
  padding: 0; margin: 2rem 0; list-style: none; counter-reset: step;
}
.study-flow li {
  position: relative; padding: 1rem; min-height: 120px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.study-flow li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
}
.study-flow strong, .study-flow span { display: block; }
.study-flow strong { margin-top: .55rem; }
.study-flow span { color: var(--muted); font-size: .92rem; }

.callout {
  margin-top: 1.3rem; padding: 1rem 1.15rem;
  border-left: 5px solid var(--brand-2); background: var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout.warning { background: var(--warning); border-color: #b47b00; }
.callout.inverse { color: #eaf4ff; background: rgba(255,255,255,.08); border-color: #78bfff; }

.resource-list { padding-left: 1.1rem; }
.resource-list li { margin: .55rem 0; }
.file-name { display: block; color: var(--muted); font-size: .83rem; font-family: ui-monospace, monospace; }
.resource-list.columns { columns: 2; column-gap: 2.5rem; }

.legend { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.legend-item, .tag {
  display: inline-block; padding: .25rem .55rem; border-radius: 999px;
  font-size: .8rem; font-weight: 800;
}
.legend-item.class, tr.class .tag { background: #edf3fa; color: #234a72; }
.legend-item.practice, tr.practice .tag { background: var(--success); color: #24603a; }
.legend-item.assessment, tr.assessment .tag { background: var(--warning); color: #714b00; }
.legend-item.holiday, tr.holiday .tag { background: var(--danger); color: #812d27; }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--brand); }
tbody tr:last-child td { border-bottom: 0; }
tr.assessment { background: #fffbef; }
tr.holiday { background: #fff4f2; }
tr.practice { background: #f5fbf7; }

footer { color: #dce7f2; background: #0c1524; padding: 2.2rem 0; }
footer a { color: #9fd4ff; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; }

@media (max-width: 820px) {
  .cards.three, .grid.two, .footer-inner { grid-template-columns: 1fr; }
  .study-flow { grid-template-columns: 1fr 1fr; }
  .section-heading { display: block; }
  .resource-list.columns { columns: 1; }
}
@media (max-width: 520px) {
  .hero { padding: 3.2rem 0 2.8rem; }
  .section { padding: 3rem 0; }
  .study-flow { grid-template-columns: 1fr; }
  .quick-links .button { width: 100%; }
  .nav-inner { gap: .8rem; }
  table { min-width: 0; }
  thead { display: none; }
  tbody, tr, td { display: block; width: 100%; }
  tr { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: .35rem .8rem; }
  td::before { content: attr(data-label) ": "; font-weight: 800; }
}

@media print {
  :root { --ink: #000; --paper: #fff; --surface: #fff; }
  body { font-size: 10.5pt; }
  .hero { color: #000; background: #fff; padding: 1rem 0; border-bottom: 2px solid #000; }
  .subtitle, .eyebrow { color: #000; }
  .site-nav, .quick-links, .button, .skip-link { display: none !important; }
  .section { padding: 1.2rem 0; }
  .section.alt, .section.dark { color: #000; background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 8.5pt; }
  tr { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  footer { color: #000; background: #fff; border-top: 1px solid #000; }
}
