:root {
  --bg: #f2f3f6;
  --paper: #ffffff;
  --ink: #26282d;
  --muted: #5a5e67;
  --line: #d6d9df;
  --line-2: #e7e9ed;
  --plum: #74204a;
  --plum-deep: #571637;
  --plum-tint: #f5e9ef;
  --plum-mid: #e3c6d4;
  --fds: #f0f1f4;
  --warn: #8a4b00;
  --warn-bg: #fdf3e4;
  --display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --text: 'Source Sans 3', system-ui, sans-serif;
  --w: 1140px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); overflow-x: hidden; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: 'opsz' 48; line-height: 1; margin: 0 0 .45em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.35rem; font-weight: 700; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--muted); max-width: 36em; margin: 0 0 1.4rem; }

/* Topo: faixa de argolas, como um calendário de parede */
.rings { height: 12px; background: radial-gradient(circle at 50% 55%, var(--bg) 2.6px, transparent 3.2px) 0 0 / 24px 12px repeat-x, var(--ink); }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.65rem/1 var(--display); font-variation-settings: 'opsz' 40; }
.brand b, .foot-brand b { color: var(--plum); font-weight: 800; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; font-weight: 600; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--plum-mid); }
.nav a[aria-current] { border-bottom-color: var(--plum); color: var(--plum); }

/* Hero */
.hero { padding: 48px 0 56px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; gap: 48px; align-items: start; }
.hero .panel { background: var(--bg); }
.help { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }

/* Formulários */
.panel { display: grid; gap: 16px; background: var(--paper); padding: 20px; border: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .98rem; }
label small, .check small { font-weight: 400; color: var(--muted); display: block; font-size: .88rem; }
input, select { font: 500 1.05rem var(--text); color: var(--ink); background: var(--paper); border: 1.5px solid #b9bdc6; border-radius: 2px; padding: 10px 12px; width: 100%; min-height: 48px; font-variant-numeric: tabular-nums; }
input:focus, select:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--plum-tint); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--plum); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; font-size: .98rem; }
.opts { border-top: 1px solid var(--line); padding-top: 14px; }
.seg { grid-template-columns: 1fr 1fr; gap: 0; }
.seg legend { grid-column: 1 / -1; }
.seg label { display: block; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px 8px; border: 1.5px solid #b9bdc6; font-weight: 600; background: var(--paper); }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.quick-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-btns button { font: 600 .92rem var(--text); color: var(--plum); background: transparent; border: 1.5px solid var(--plum-mid); padding: 7px 12px; border-radius: 2px; cursor: pointer; min-height: 40px; }
.quick-btns button:hover { background: var(--plum-tint); border-color: var(--plum); }
[hidden] { display: none !important; }

/* Folha de resultado */
.sheet-col { min-width: 0; }
.sheet { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 0; padding: 26px 24px 20px; margin-top: 12px; }
.sheet::before { content: ''; position: absolute; left: -1px; right: -1px; top: -12px; height: 12px; background: radial-gradient(circle at 50% 55%, var(--paper) 2.6px, transparent 3.2px) 0 0 / 24px 12px repeat-x, var(--plum); }
.sheet-kicker { margin: 0 0 6px; font-weight: 600; color: var(--muted); }
.sheet-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sheet-big strong, .sheet-date strong { font: 900 clamp(4.6rem, 11vw, 7.6rem)/.82 var(--display); font-variation-settings: 'opsz' 72; color: var(--plum); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sheet-big span { font: 700 1.5rem/1.1 var(--display); font-variation-settings: 'opsz' 30; }
.sheet-date { display: flex; align-items: flex-end; gap: 14px; }
.sheet-date span { display: grid; font-size: 1.05rem; color: var(--muted); padding-bottom: 6px; }
.sheet-date span b { font: 750 1.9rem/1 var(--display); color: var(--ink); }
.sheet-sub { margin: 14px 0 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 18px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .86rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.hol-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: .95rem; }
.hol-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hol-list b { font-variant-numeric: tabular-nums; }
.hol-list em { font-style: normal; font-size: .82rem; color: var(--plum); border: 1px solid var(--plum-mid); padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.mini { font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
.warn { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; margin: 14px 0 0; font-size: .95rem; border-left: 3px solid var(--warn); }
.err { color: #a3262a; font-weight: 600; margin: 0; }
.sheet-link { margin: 16px 0 0; font-weight: 600; }

/* Mini-calendário */
.cals { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px 22px; margin-top: 22px; }
.cal { margin: 0; min-width: 0; }
.cal figcaption { font: 700 1.15rem/1 var(--display); padding-bottom: 6px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.cal figcaption b { text-transform: capitalize; font-weight: 800; }
.cal table { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.cal th { font: 600 .74rem var(--text); color: var(--muted); padding: 2px 0; }
.cal td { text-align: center; padding: 0; height: 28px; position: relative; font: 600 .98rem/28px var(--display); font-variation-settings: 'opsz' 20; font-variant-numeric: tabular-nums; }
.cal td.fds { color: #8a8e97; }
.cal td.in { background: var(--plum-tint); color: var(--ink); }
.cal td.in.off { background: repeating-linear-gradient(135deg, var(--fds) 0 3px, #e1e3e8 3px 5px); color: #8a8e97; }
.cal td.ini, .cal td.end, .cal td.alvo, .cal td.in.ini, .cal td.in.end { background: var(--plum); color: #fff; }
.cal td.ini.skip { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 2px var(--plum); }
.cal td.bruto { box-shadow: inset 0 0 0 2px var(--ink); }
.cal td.hoje { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 800; }
.cal td.fer::after, .cal td.fac::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--plum); }
.cal td.fac::after { background: transparent; box-shadow: inset 0 0 0 1.5px var(--plum); }
.cal td.ini.fer::after, .cal td.end.fer::after, .cal td.alvo.fer::after { background: #fff; }
.cal td.fer span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cal-gap { display: flex; align-items: center; justify-content: center; margin: 0; padding: 16px; border: 1.5px dashed var(--line); color: var(--muted); font-weight: 600; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 14px 0 0; padding: 0; font-size: .86rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 16px; height: 16px; display: inline-block; position: relative; }
.lg-in, .lg-util { background: var(--plum-tint); }
.lg-ini, .lg-end, .lg-alvo { background: var(--plum); }
.lg-off { background: repeating-linear-gradient(135deg, var(--fds) 0 3px, #e1e3e8 3px 5px); }
.lg-hoje, .lg-bruto { box-shadow: inset 0 0 0 2px var(--ink); }
.lg-fer::after, .lg-fac::after { content: ''; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--plum); }
.lg-fac::after { background: transparent; box-shadow: inset 0 0 0 1.5px var(--plum); }

/* Blocos da home */
.block { padding: 48px 24px; }
.block + .block { border-top: 1px solid var(--line); }
.tool-grid-home { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-left: 1px solid var(--line); background: var(--paper); }
.tool-grid-home li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tool-grid-home a { display: grid; gap: 6px; align-content: start; padding: 14px 16px 22px; min-height: 168px; color: var(--ink); text-decoration: none; height: 100%; }
.tool-grid-home a:hover { background: var(--plum-tint); }
.tg-n { font: 800 2.4rem/1 var(--display); color: var(--plum); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.tg-name { font: 750 1.4rem/1.05 var(--display); font-variation-settings: 'opsz' 30; }
.tg-desc { color: var(--muted); font-size: .97rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.next-hol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.next-hol li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nh-date { display: grid; justify-items: center; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--plum); padding: 4px 0 6px; }
.nh-date b { font: 800 1.9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.nh-date small { font-size: .74rem; color: var(--muted); }
.nh-name { font-weight: 600; }
.nh-name small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.nh-in { font: 700 1.1rem var(--display); color: var(--plum); white-space: nowrap; }
.months-bar { border-top: 2px solid var(--ink); }
.mb-row { display: grid; grid-template-columns: 44px 1fr 32px; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.mb-m { font-weight: 600; text-transform: capitalize; color: var(--muted); }
.mb-bar { height: 12px; background: var(--line-2); }
.mb-bar i { display: block; height: 100%; background: var(--plum); }
.mb-v { font: 800 1.15rem var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: .93rem; color: var(--muted); margin-top: 12px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 2px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.pl-title { font: 750 1.35rem/1.1 var(--display); font-variation-settings: 'opsz' 30; color: var(--plum); }
.pl-desc { color: var(--muted); }
.post-list time { font-size: .85rem; color: var(--muted); }

/* Ferramenta */
.tool-page { padding-top: 24px; padding-bottom: 48px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.tool-head { margin-bottom: 20px; }
.tool-grid { display: grid; grid-template-columns: minmax(290px, 380px) 1fr; gap: 32px; align-items: start; }
.how { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); }
.more { margin-top: 32px; }
.more h2 { font-size: 1.5rem; }
.more ul { padding-left: 1.2em; margin: 0; }
.more li { margin: 6px 0; }

/* Artigo */
.article { max-width: 780px; padding-top: 28px; padding-bottom: 56px; }
.article-head { border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 28px; }
.byline { font-size: .93rem; color: var(--muted); margin: 0; }
.prose { font-size: 1.125rem; line-height: 1.65; }
.prose h2 { margin: 1.7em 0 .5em; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; max-width: 40em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 1rem; line-height: 1.4; background: var(--paper); font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose thead th { border-bottom: 2px solid var(--ink); }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { font-weight: 700; font-size: .92rem; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--plum); color: var(--muted); }
.prose strong { font-weight: 700; }
.prose code { font-size: .92em; background: var(--fds); padding: 1px 5px; }
.countdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 2px solid var(--ink); background: var(--paper); margin: 1.2em 0 1.6em; }
.countdown div { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.countdown b { display: block; font: 900 3.6rem/.9 var(--display); color: var(--plum); font-variant-numeric: tabular-nums; }
.countdown span { display: block; font-size: .95rem; color: var(--muted); margin-top: 4px; }
.tool-callout { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--plum); padding: 14px 18px; margin-bottom: 28px; }
.tool-callout p { margin: 0; font-weight: 500; max-width: 32em; }
.btn { display: inline-block; background: var(--plum); color: #fff; text-decoration: none; padding: 11px 16px; font-weight: 700; }
.btn:hover { background: var(--plum-deep); }
.sources { margin-top: 36px; font-size: .97rem; }
.sources h2 { font-size: 1.4rem; }
.sources ul { padding-left: 1.2em; }
.disclaimer { font-size: .93rem; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.contact-pending { background: var(--plum-tint); padding: 12px 14px; }
.list-page { padding-top: 32px; padding-bottom: 56px; }
.list-page .post-list { border-top: 2px solid var(--ink); max-width: 820px; }

/* Rodapé */
.foot { background: var(--ink); color: #cfd2d8; margin-top: 24px; padding: 40px 0 20px; }
.foot a { color: #fff; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.foot-in p { max-width: 36em; margin: 0 0 8px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 800 1.5rem/1 var(--display); color: #fff; --plum: #d58bb0; }
.foot-brand b { color: #e6a9c7; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: start; }
.foot-copy { font-size: .86rem; color: #a3a7b0; margin-top: 24px; }

@media (max-width: 980px) {
  .tool-grid-home { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero-in, .tool-grid, .split, .foot-in { grid-template-columns: 1fr; }
  .post-list.two { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Celular */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top-in { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .brand { padding-bottom: 4px; }
  .nav { width: calc(100% + 32px); margin: 0 -16px; padding: 0 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 10px 10px 8px; }
  h1 { font-size: 2.6rem; }
  .hero { padding: 22px 0 32px; }
  .hero-in { gap: 20px; }
  .lede { font-size: 1.08rem; margin-bottom: 1rem; }
  .panel { padding: 16px; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .sheet { padding: 22px 16px 16px; }
  .sheet-big strong, .sheet-date strong { font-size: 5rem; }
  .sheet-big span { font-size: 1.3rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cals { grid-template-columns: 1fr; gap: 16px; }
  .cal td { height: 34px; line-height: 34px; font-size: 1.05rem; }
  .block { padding: 32px 16px; }
  .tool-grid-home { grid-template-columns: 1fr; }
  .tool-grid-home a { min-height: 0; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 14px 12px 16px; }
  .tg-n { grid-row: 1 / span 2; font-size: 2rem; margin: 0; }
  .split { gap: 36px; }
  .next-hol li { grid-template-columns: 56px 1fr; }
  .nh-date { grid-row: span 2; }
  .nh-in { grid-column: 2; font-size: 1rem; }
  .tool-page { padding-top: 16px; }
  .prose { font-size: 1.07rem; }
  .countdown b { font-size: 3rem; }
  .foot-in { gap: 20px; }
}
