/* assinatura: edufertanapo */
:root {
  --royal: #1646c7;
  --royal-dark: #0b2d86;
  --royal-light: #eaf0ff;
  --ink: #172033;
  --muted: #5d6678;
  --line: #cfd7e8;
  --surface: #ffffff;
  --page: #f4f7fc;
  --sunday: #e7efff;
  --holiday: #ffe2e2;
  --optional: #fff0c9;
  --commemorative: #e5f7e9;
  --today: #1646c7;
  --past: #6d7481;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); }
button, select { font: inherit; }
button, select, .day-cell { min-height: 48px; }
button { border: 2px solid var(--royal); border-radius: 10px; padding: .75rem 1rem; color: var(--royal-dark); background: white; font-weight: 800; cursor: pointer; }
button:hover, button:focus-visible { color: white; background: var(--royal); }
:focus-visible { outline: 4px solid #ffbf00; outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 10000; padding: .8rem; background: #fff; color: var(--royal-dark); font-weight: bold; }
.skip-link:focus { top: 1rem; }
.site-header { padding: 2.4rem 1rem; color: white; text-align: center; background: linear-gradient(135deg, var(--royal-dark), var(--royal)); }
.site-header h1 { margin: .35rem 0; font-size: clamp(2rem, 7vw, 4rem); letter-spacing: .04em; }
.eyebrow, .subtitle { margin: 0; font-weight: 800; letter-spacing: .08em; }
.eyebrow { font-size: .78rem; }.subtitle { font-size: clamp(.8rem, 2vw, 1rem); }
.install-button { margin-top: 1.2rem; border-color: white; color: var(--royal-dark); background: white; }.install-button:hover, .install-button:focus-visible { color: white; background: transparent; }
main { width: min(1180px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }
.clock-panel, .cycles-panel, .controls, .calendar-section { margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 26px rgba(18, 49, 119, .08); }
.clock-panel { padding: 1.5rem; }
.clock-panel h2, .cycles-panel h2, .controls h2 { color: var(--royal-dark); font-size: 1.1rem; letter-spacing: .08em; }
.clock-panel h2, .cycles-panel h2 { text-align: center; }
.cycles-panel { padding: 1.5rem; }
.cycles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding: 1rem; border-left: 6px solid var(--royal); border-radius: 10px; background: var(--royal-light); }
.info-icon { width: 2.5rem; font-size: 2.1rem; color: var(--royal); text-align: center; }
.label, .value, .period { margin: .15rem 0; }.label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }.value { font-size: 1.2rem; font-weight: 900; }.period { color: var(--muted); font-size: .86rem; font-weight: 700; }
.complete-info { margin: 0; font-size: .92rem; font-weight: 900; line-height: 1.55; }
.clock-column { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.clock { position: relative; width: 190px; aspect-ratio: 1; border: 8px solid var(--royal-dark); border-radius: 50%; background: white; box-shadow: inset 0 0 0 4px var(--royal-light); }
.clock::before, .clock::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; pointer-events: none; }
.clock::before { background: repeating-conic-gradient(from -0.5deg, #71809f 0 1deg, transparent 1deg 6deg); -webkit-mask: radial-gradient(circle, transparent 0 82%, #000 83% 100%); mask: radial-gradient(circle, transparent 0 82%, #000 83% 100%); }
.clock::after { background: repeating-conic-gradient(from -1deg, var(--royal-dark) 0 2deg, transparent 2deg 30deg); -webkit-mask: radial-gradient(circle, transparent 0 76%, #000 77% 100%); mask: radial-gradient(circle, transparent 0 76%, #000 77% 100%); }
.clock-number { position: absolute; z-index: 2; top: 50%; left: 50%; min-width: 1.4rem; color: var(--ink); font-size: .86rem; font-weight: 900; line-height: 1; text-align: center; transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-62px) rotate(calc(var(--i) * -30deg)); }
.hand { position: absolute; z-index: 3; bottom: 50%; left: calc(50% - 2px); width: 4px; border-radius: 4px; background: var(--ink); transform-origin: bottom; }.hour-hand { height: 45px; width: 6px; left: calc(50% - 3px); }.minute-hand { height: 59px; }.second-hand { height: 65px; width: 2px; left: calc(50% - 1px); background: #d71920; }.clock-center { position: absolute; z-index: 4; top: 50%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--royal); transform: translate(-50%, -50%); }
.time-text { max-width: 440px; margin: 1rem 0 .35rem; color: var(--royal-dark); font-weight: 900; line-height: 1.5; }.date-text { margin: 0; color: var(--muted); font-weight: 800; }
.controls { padding: 1.25rem; }.control-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; align-items: end; }.control-grid label { display: grid; gap: .4rem; color: var(--muted); font-size: .72rem; font-weight: 900; }.control-grid select { width: 100%; border: 2px solid var(--line); border-radius: 10px; padding: .65rem; color: var(--ink); background: white; font-weight: 800; }.primary-button { color: white; background: var(--royal); }
.calendar-section { padding: 1.5rem; }.calendar-heading { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; text-align: center; }.calendar-heading h2 { margin: .1rem; color: var(--royal-dark); font-size: clamp(1.7rem, 5vw, 2.8rem); }.year-title { margin: 0; color: var(--muted); font-weight: 900; }.round-button { width: 48px; padding: 0; border-radius: 50%; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1rem 0; }.legend-item { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 900; }.sunday { background: var(--sunday); }.holiday { background: var(--holiday); }.optional { background: var(--optional); }.commemorative { background: var(--commemorative); }
.calendar-grid { display: grid; grid-template-columns: 85px repeat(7, minmax(76px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); overflow-x: auto; }
.weekday, .week-number, .day-cell, .empty-cell { min-width: 76px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weekday, .week-number { display: grid; place-items: center; padding: .7rem .3rem; color: white; background: var(--royal-dark); font-size: .7rem; font-weight: 900; text-align: center; }.week-number { background: var(--royal); }
.day-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .08rem; min-height: 102px; padding: .4rem; border-top: 0; border-left: 0; border-radius: 0; color: var(--ink); background: white; }.day-cell:hover, .day-cell:focus-visible { color: var(--ink); background: var(--royal-light); box-shadow: inset 0 0 0 4px var(--royal); }.day-word, .day-number, .day-detail { position: relative; z-index: 2; pointer-events: none; user-select: none; }.day-word { color: var(--muted); font-size: .62rem; font-weight: 400; letter-spacing: .08em; }.day-number { font-size: 1.85rem; font-weight: 900; line-height: 1; }.day-detail { min-height: 1.7em; max-width: 100%; overflow: hidden; font-size: .58rem; font-weight: 400; line-height: 1.2; text-align: center; text-overflow: ellipsis; }
.day-cell.is-sunday { background: var(--sunday); }.day-cell.is-holiday { background: var(--holiday); }.day-cell.is-optional { background: var(--optional); }.day-cell.is-commemorative { background: var(--commemorative); }.day-cell.is-today { color: white; background: var(--today); box-shadow: inset 0 0 0 4px #ffca28; }.day-cell.is-past::after { position: absolute; content: "×"; z-index: 1; color: rgba(75, 82, 96, .38); font-size: 5rem; font-weight: 400; line-height: 1; pointer-events: none; }.day-cell.is-past > * { position: relative; z-index: 2; }.empty-cell { min-height: 102px; background: #f7f8fb; }
.selected-date { width: min(760px, 100%); margin: 1.25rem auto 0; padding: 1rem; border: 3px solid var(--royal); border-radius: 12px; text-align: center; }.selected-value { margin: .35rem 0 0; color: var(--royal-dark); font-size: clamp(1.2rem, 4vw, 2rem); font-weight: 900; }
footer { padding: 2rem 1rem; color: white; text-align: center; background: var(--royal-dark); font-size: .78rem; font-weight: 800; line-height: 1.7; } footer p { margin: .2rem; } footer a { color: white; }
@media (max-width: 820px) { .cycles-grid { grid-template-columns: 1fr; }.control-grid { grid-template-columns: 1fr 1fr; }.primary-button { grid-column: 1 / -1; }.calendar-section { padding: 1rem .5rem; }.calendar-grid { grid-template-columns: 68px repeat(7, minmax(64px, 1fr)); }.weekday, .week-number, .day-cell, .empty-cell { min-width: 64px; }.weekday { font-size: .58rem; }.day-cell { min-height: 90px; }.day-number { font-size: 1.5rem; } }
@media (max-width: 520px) { main { width: min(100% - 1rem, 1180px); }.site-header { padding: 1.8rem .7rem; }.control-grid { grid-template-columns: 1fr; }.primary-button { grid-column: auto; }.calendar-heading { grid-template-columns: 44px 1fr 44px; }.round-button { width: 42px; min-height: 42px; }.legend { justify-content: flex-start; }.calendar-grid { grid-template-columns: 58px repeat(7, minmax(58px, 1fr)); }.weekday, .week-number, .day-cell, .empty-cell { min-width: 58px; }.day-detail { max-width: 52px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
