/* ================================================================
   安全期计算器 · 页面私有样式（safety-period-calculator.css）
   ================================================================ */

/* 周期日历 */
.cal-scroll {
    overflow-x: auto;
    padding: 12px 12px 6px;
}

.safety-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    min-width: 320px;
}

.cal-head {
    display: contents;
}

.cal-head span {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    padding: 2px 0;
}

.cal-day {
    position: relative;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.cd-num {
    font-variant-numeric: tabular-nums;
}

.cd-star {
    position: absolute;
    top: 1px;
    right: 4px;
    font-size: 11px;
    color: #fff;
    line-height: 1;
}

.cal-day.safe {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.cal-day.fertile {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.cal-day.mens {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.cal-day.today {
    box-shadow: 0 0 0 2px #667eea inset;
}

.cal-day.blank {
    border-color: transparent;
    background: transparent;
}

.cal-legend {
    padding: 0 12px 12px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.cal-legend .lg {
    font-size: 11px;
}

.lg-safe {
    color: #10b981;
}

.lg-fertile {
    color: #f97316;
}

.lg-mens {
    color: #ef4444;
}

.lg-ov {
    color: #8b5cf6;
}

.cal-tip {
    margin-top: 14px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 8px;
    background: #fffbe6;
    border: 1px solid #fde68a;
    color: #92400e;
}

.cal-tip a {
    color: #b45309;
}

.summary-list .table-wrap {
    max-height: none;
    overflow: visible;
}