/* ── Calendar suite — hero, cards, tools, tabs, results, countdown ── */
main { max-width: 940px; margin: 0 auto; padding: 20px; }

/* Suite nav pills (used on hub + tool sub-nav) */
.sub-link { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--muted); border: 1.5px solid var(--border); background: var(--surface); text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.sub-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.sub-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Hero: dark accent icon chip + Orbitron h1 + subtitle */
.tool-hero { max-width: 940px; margin: 0 auto; padding: 36px 20px 4px; }
.tool-hero .hero-head { display: flex; align-items: center; gap: 16px; }
.tool-hero .hero-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: #0f0e0d; display: flex; align-items: center; justify-content: center; }
.tool-hero .hero-icon svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; }
.tool-hero .subtitle { color: var(--muted); font-size: 1.02rem; margin-top: 12px; max-width: 700px; }

/* Card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; margin-top: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; font-family: inherit; font-size: .95rem; font-weight: 700; border: none; border-radius: var(--radius); cursor: pointer; background: var(--accent); color: #fff; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--accent-h); } .btn:active { transform: scale(.98); } .btn svg { width: 16px; height: 16px; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); border-color: var(--muted); }
.btn:focus-visible, .sub-link:focus-visible, .nav-link:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mode tabs */
.mode-tabs { display: inline-flex; gap: 4px; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.mode-tab { appearance: none; border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: .9rem; font-weight: 700; color: var(--muted); padding: 8px 18px; border-radius: 999px; transition: background .15s, color .15s; }
.mode-tab.active { background: var(--accent); color: #fff; }

/* Form fields */
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--text); }
.field input, .field select { font-family: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); min-height: 44px; }
.field input[type="number"], .field input[type="date"] { font-family: var(--mono); }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mode-panel { display: none; } .mode-panel.active { display: block; }

/* Result readout */
.result { margin-top: 22px; padding: 22px; border-radius: var(--radius-lg); background: var(--accent-bg); border: 1px solid var(--accent); }
.result .big { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 7vw, 2.8rem); color: var(--accent-fg); line-height: 1.05; }
.result .big span { font-family: var(--mono); }
.result .sub { color: var(--accent-fg); font-weight: 600; margin-top: 6px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.rc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.rc .n { font-family: var(--mono); font-weight: 600; font-size: 1.25rem; color: var(--text); }
.rc .l { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Countdown display */
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 520px; }
.cd-cell { background: #0f0e0d; border-radius: var(--radius-lg); padding: 18px 8px; text-align: center; }
.cd-cell .num { font-family: var(--mono); font-weight: 600; font-size: clamp(1.6rem, 8vw, 2.6rem); color: #fff; line-height: 1; }
.cd-cell .lab { font-size: .72rem; color: #9aa; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.cd-headline { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(1.3rem, 5vw, 2rem); color: var(--accent-fg); margin-bottom: 4px; }
.cd-date { color: var(--muted); font-weight: 600; margin-bottom: 18px; }

/* Trust row */
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.trust-item svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; flex-shrink: 0; }

/* Sections + steps */
.section { max-width: 940px; margin: 16px auto; padding: 24px 20px; }
.section > .section-sub { color: var(--muted); margin-bottom: 20px; }
.section p { margin-bottom: 14px; }
.section h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.step-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-fg); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-body h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.step-body p { font-size: .92rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* Hub grid */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); gap: 18px; margin-top: 8px; }
.hub-card { display: block; text-decoration: none; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); text-decoration: none; }
.hub-card .hc-icon { width: 44px; height: 44px; border-radius: 11px; background: #0f0e0d; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hub-card .hc-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; }
.hub-card h2 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.hub-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* Data tables */
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 700; color: var(--text); background: var(--surface2); }
.data-table td { color: var(--muted); }
.data-table td.num, .data-table th.num { font-family: var(--mono); text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* Related links */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.related a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--text); }
.related a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* FAQ — native <details>, +/– accent marker, zero JS */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: .98rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: '\2013'; }
.faq .faq-body { padding: 0 18px 16px; font-size: .92rem; color: var(--muted); line-height: 1.7; }
.faq .faq-body code { font-family: var(--mono); font-size: .85em; background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }

.muted-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

@media (max-width: 620px) {
  .tool-hero .hero-icon { width: 48px; height: 48px; } .tool-hero .hero-icon svg { width: 26px; height: 26px; }
  .cd-grid { gap: 8px; } .cd-cell { padding: 14px 4px; }
}

/* ── Yearly calendar ── */
.cal-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 8px; }
.cal-yearnav { display: inline-flex; align-items: center; gap: 8px; }
.cal-yearnav button { width: 40px; height: 40px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.3rem; font-weight: 700; cursor: pointer; line-height: 1; }
.cal-yearnav button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal-year-label { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.4rem); color: var(--text); min-width: 120px; text-align: center; }
.cal-opt { display: flex; flex-direction: column; gap: 5px; }
.cal-opt label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-opt select { font-family: inherit; font-size: .95rem; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); min-height: 42px; }
.cal-spacer { flex: 1 1 auto; }

.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; margin-top: 22px; }
.cal-month { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 16px 16px 18px; box-shadow: var(--shadow); }
.cal-month h3 { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1rem; color: var(--accent-fg); margin-bottom: 10px; text-align: center; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow span { text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: 4px; }
.cal-dow span.we { color: #dc2626; }
.cal-day { text-align: center; font-family: var(--mono); font-size: .82rem; padding: 5px 0; border-radius: 6px; color: var(--text); }
.cal-day.we { color: #dc2626; }
.cal-day.today { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.blank { color: transparent; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: .84rem; color: var(--muted); }
.cal-legend .sw { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend .dot { width: 12px; height: 12px; border-radius: 3px; }
.cal-legend .dot.we { background: #dc2626; } .cal-legend .dot.today { background: var(--accent); }

@media print {
  .site-header, .nav-mobile-menu, .tool-hero .subtitle, .trust-row, .cal-controls, .cal-print-hide, footer.page-footer, .section.faq, .cal-legend { display: none !important; }
  body { background: #fff; }
  .tool-hero { padding: 0 0 8px; } .tool-hero h1 { font-size: 1.4rem; }
  main { max-width: 100%; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; margin: 0; }
  .cal-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cal-month { box-shadow: none; border: 1px solid #ccc; padding: 8px; break-inside: avoid; }
  .cal-day.today { background: none; color: #000; outline: 1.5px solid #000; }
  .cal-day.we, .cal-dow span.we { color: #dc2626 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
