/* Public form look — "option C" (owner, 2026-12-05): titles above the fields, thin outlines,
   every control 46px, one spacing step, calendar open, times grouped Mañana / Tarde / Noche,
   slim 2px hard shadows only on things you choose or press. Used by PublicCalendar and
   PublicTimePills; the public pages restyle their own fields to the same tokens.
   Colors come from the --public-* tokens (PublicStyle re-points them for the flat sandbox look,
   which also removes the shadows). Never hardcode the lime here. */
:root {
    --pf-ink: #0a0a0a;
    --pf-dim: #4b5563;
    --pf-muted: #6b7280;
    --pf-edge: #c4c8cf;
    --pf-edge-hover: #8b9098;
    --pf-soft: #eef0f2;
    --pf-h: 46px;
    --pf-gap: 1rem;
    --pf-radius: 10px;
    --pf-shadow: 2px 2px 0 var(--pf-ink);
    --pf-shadow-hover: 3px 3px 0 var(--pf-ink);
}

/* Outlined container (calendar, times) */
.pf-box {
    border: 1px solid var(--pf-edge);
    border-radius: 12px;
    padding: 0.85rem;
    background: #ffffff;
}

/* ── Calendar ───────────────────────────── */
.pf-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.pf-cal-month { font-weight: 700; font-size: 0.92rem; color: var(--pf-ink); }
.pf-cal-nav {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--pf-edge); background: #ffffff; color: var(--pf-ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem;
}
.pf-cal-nav:hover:not(:disabled) { border-color: var(--pf-ink); }
.pf-cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.pf-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.pf-cal-dow {
    font-size: 0.66rem; font-weight: 600; color: var(--pf-muted);
    text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 0.15rem;
}
.pf-cal-day {
    height: 38px; border-radius: 999px; border: 1px solid transparent; background: transparent;
    font: inherit; font-size: 0.86rem; color: var(--pf-ink); cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.pf-cal-day:hover:not(:disabled) { border-color: var(--pf-ink); }
.pf-cal-day.today:not(.on) { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pf-cal-day:disabled { color: #b4b8bf; cursor: not-allowed; text-decoration: line-through; }
.pf-cal-day.on {
    background: var(--public-accent); border-color: var(--pf-ink); font-weight: 700;
    box-shadow: var(--pf-shadow);
}
.pf-cal-chosen {
    margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--pf-soft);
    font-size: 0.84rem; color: var(--pf-dim);
}
.pf-cal-chosen b { color: var(--pf-ink); }
.pf-cal-chosen b::first-letter { text-transform: uppercase; }

/* ── Time pills ─────────────────────────── */
.pf-seg {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    padding: 3px; gap: 2px; margin-bottom: 0.75rem;
    border-radius: 999px; background: var(--pf-soft);
}
.pf-seg button {
    border: 0; background: transparent; border-radius: 999px;
    padding: 0.35rem 0.5rem; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--pf-dim); cursor: pointer;
}
.pf-seg button.on { background: #ffffff; color: var(--pf-ink); box-shadow: inset 0 0 0 1px var(--pf-ink); }
.pf-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.pf-slot {
    min-height: 36px; padding: 0.3rem 0.4rem; border-radius: 999px;
    border: 1px solid var(--public-outline, var(--pf-ink)); background: #ffffff; color: var(--pf-ink);
    font: inherit; font-size: 0.83rem; font-weight: 600; white-space: nowrap; cursor: pointer;
    box-shadow: var(--pf-shadow);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.pf-slot:hover:not(:disabled), .pf-slot:focus-visible:not(:disabled) { transform: translate(-1px, -1px); box-shadow: var(--pf-shadow-hover); }
.pf-slot.on { background: var(--public-accent); font-weight: 700; }
.pf-slot:disabled {
    cursor: not-allowed; color: #9ca3af; border-color: #d1d5db; background: #f3f4f6;
    box-shadow: none; text-decoration: line-through;
}

@media (prefers-reduced-motion: reduce) {
    .pf-slot { transition: none; }
}

/* ── "Powered by LogiKore | Encore" (PoweredByEncore) ── */
.pbe {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem;
    margin-top: 1rem; font-size: 0.7rem; color: var(--pf-muted); letter-spacing: 0.01em;
}
.pbe img { height: 13px; width: auto; display: block; opacity: 0.85; }
.pbe.on-dark { color: #9ca3af; }
