/* ============================================================
   Portal widgets — weather + calendar cards on the login page.
   Scoped to .pw-* classes only, so nothing here can collide
   with the login page's Bootstrap/Tailwind styles or with the
   homecare section's .hc-* design system.
   Matches the portal's current look: warm off-white background,
   deep-green accents, white rounded cards, one font stack.
   ============================================================ */

.pw-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    gap: 16px;
    width: 100%;
    max-width: 1280px;
    margin-top: 14px;
    margin-left: auto;
    margin-right: auto;
    align-self: stretch;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #20302a;
}

.pw-card {
    flex: 1 1 0;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e2e6df;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(20, 60, 40, 0.05), 0 10px 30px rgba(20, 60, 40, 0.06);
    padding: 16px 18px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
}

.pw-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.pw-card-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #14532d;
}
.pw-card-meta { font-size: 13px; color: #71807a; }

/* ---------- Weather ---------- */
.pw-weather-now {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.pw-temp {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    color: #14532d;
}
.pw-cond { font-size: 16px; font-weight: 600; color: #3d4a44; }
.pw-meta { font-size: 13px; color: #71807a; margin-top: 4px; }
.pw-unavailable { font-size: 14px; color: #71807a; margin: 6px 0 2px; }

.pw-outlook {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid #e2e6df;
    padding-top: 10px;
}
.pw-day { flex: 1 1 0; min-width: 0; text-align: center; }
.pw-day-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71807a;
}
.pw-day-temps { font-size: 13.5px; font-weight: 700; color: #20302a; margin-top: 3px; }
.pw-day-cond { font-size: 11.5px; color: #3d4a44; margin-top: 2px; }

/* ---------- Calendar ---------- */
.pw-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pw-cal th {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #71807a;
    padding: 4px 0 8px;
    text-align: center;
}
.pw-cal td { padding: 2px 0; text-align: center; }
.pw-cal-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12.5px;
    color: #3d4a44;
}
.pw-cal-weekend { color: #98a69e; }
.pw-cal-out { color: #c3cec5; }
.pw-cal-today {
    background: #1d5c3f;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(20, 60, 40, 0.25);
}

/* ---------- Greeting + current-condition icon ---------- */
.pw-greet-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 6px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
.pw-greet-wrap #welcome-text {
    font-size: 40px;
    line-height: 1.15;
    transform: none; /* text and icon share one center line */
}
.pw-greet-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    animation: pw-fade-in 0.9s ease-in-out;
}
@keyframes pw-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ---------- Phones: stack, weather first ---------- */
@media (max-width: 760px) {
    .pw-row { grid-template-columns: 1fr; padding: 0 12px; }
}

/* ---------- Weather: three campus locations (Dec 1, 2026) ---------- */
.pw-loc-head { margin-bottom: 6px; }
.pw-loc-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #71807a;
}
.pw-loc-sep {
    border-top: 1px solid #e2e6df;
    margin-top: 16px;
    padding-top: 14px;
}

/* ---------- Date line under the greeting (Dec 1, 2026) ---------- */
.pw-date-line {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    text-align: center;
    font-size: 14.5px;
    letter-spacing: 0.04em;
    color: #71807a;
    margin-bottom: 14px;
}
