.portal-nav{display:flex;align-items:center;flex-wrap:wrap;gap:1.4rem;margin-top:1.5rem}.portal-nav>a{text-decoration:underline;text-underline-offset:4px}.portal-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1.2rem}.portal-form{max-width:48rem;margin-top:2rem}.portal-form p{margin-bottom:1.2rem}.portal-form label{display:block;font-weight:650;margin-bottom:.4rem}.portal-form input:not([type=checkbox]),.portal-form select,.portal-form textarea{width:100%;border:1px solid #879daa;border-radius:5px;padding:.7rem;background:white;color:#102c45}.portal-form input[type=checkbox]{width:1.3rem;height:1.3rem}.portal-form select[multiple]{min-height:8rem}.portal-form textarea{max-height:20rem}.portal-form .helptext{display:block;font-size:.8rem;color:#536775}.portal-form .errorlist{padding:1rem;border-left:3px solid #ae3217;background:#fff4ed;color:#8e2611}.portal-form>.button{margin-right:1rem}.portal-login{max-width:36rem;margin:auto}.audit-snapshot{margin-top:1rem;overflow-wrap:anywhere}.audit-snapshot dt{font-weight:700;margin-top:1rem}.audit-snapshot dd{white-space:pre-wrap}.portal-list .card{overflow-wrap:anywhere}details>summary{cursor:pointer;font-weight:650}details[open]>summary{margin-bottom:1rem}
.schedule-filters{display:flex;flex-wrap:wrap;gap:1rem;align-items:end;margin-bottom:2rem}.schedule-filters label{display:block;font-weight:650;font-size:.85rem}.schedule-filters select,.schedule-filters input{width:100%;min-height:44px}.schedule-filters>div{flex:1;min-width:140px}.schedule-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:2rem}.schedule-summary>div{border:1px solid #dce3e7;border-radius:5px;padding:1rem;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between}.schedule-summary strong{font-size:1.7rem}.status-badge{display:inline-block;padding:.25rem .6rem;border-radius:4px;font-size:.75rem;font-weight:650;letter-spacing:0}.status-draft{background:#edf1f4;color:#314d60}.status-pending{background:#fff0cf;color:#785017}.status-published{background:#e6f2e7;color:#245335}.status-cancelled{background:#f9e8e6;color:#842c25}.quarter-board{margin-bottom:2.5rem;border:1px solid #dce3e7;padding:1.4rem;border-radius:6px}.quarter-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}.quarter-months section{min-width:0;background:#f5f7f6;padding:1rem;border-radius:4px}.quarter-months h3{text-transform:capitalize;font-size:1.1rem}.quarter-event{display:flex;flex-direction:column;gap:.25rem;background:white;border-left:3px solid #b64b16;padding:.8rem;margin-top:1rem;font-size:.8rem}.quarter-event time{font-size:.72rem;color:#536775}.quarter-event strong{font-weight:600}.quarter-event:focus-visible{outline:3px solid #b64b16;outline-offset:3px}@media(max-width:760px){.schedule-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.quarter-months{grid-template-columns:1fr}.quarter-board{padding:1rem}}

/* IASD Sabadell — Navegación institucional privada */
.portal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: 1.8rem;
    padding: 1rem;
    background: #282d2b;
    border-radius: 12px;
}

.portal-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .7rem 1rem;
    border-radius: 8px;
    color: #f5efe5;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.portal-nav > a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.portal-nav > a[aria-current="page"] {
    background: #a94318;
    color: #ffffff;
    font-weight: 750;
    box-shadow: inset 3px 0 0 #ffc694;
}

.portal-nav > a:focus-visible,
.portal-nav button:focus-visible {
    outline: 3px solid #ffc694;
    outline-offset: 3px;
}

.portal-nav form {
    margin: 0 0 0 auto;
}

.portal-nav form .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .7rem 1rem;
    border: 1px solid #777b75;
    border-radius: 8px;
    background: transparent;
    color: #f5efe5;
    font-size: .86rem;
    text-decoration: none;
}

.portal-nav form .text-link:hover {
    background: #474c48;
    color: #ffffff;
}

@media (max-width: 760px) {
    .portal-nav {
        flex-direction: column;
        align-items: stretch;
        padding: .75rem;
    }

    .portal-nav > a {
        width: 100%;
    }

    .portal-nav form {
        margin: .4rem 0 0;
    }

    .portal-nav form .text-link {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-nav > a {
        transition: none;
    }
}
