.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: white;
    color: var(--navy);
    border-radius: 8px;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer
}

.button:hover {
    background: #edf2ff
}

.button.primary {
    background: var(--blue);
    color: white
}

.button[aria-disabled=true] {
    opacity: .4;
    pointer-events: none
}

.card {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr)
}

.cardimage-link {
    grid-row: span 2;
    height: 100%;
    display: block;
    background: #f2f5fa;
    overflow: hidden
}

.campus-photo {
    width: 100%;
    height: 100%;
    min-height: 235px;
    object-fit: cover;
    display: block
}

.no-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #eaf0fb;
    color: #516b9e
}

.no-photo span {
    font: 42px Georgia, serif
}

.no-photo small {
    font-size: 12px
}

.card .cardmain {
    padding: 20px
}

.card .cardbottom {
    grid-column: 2
}

.card .facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 15px
}

.card .facts>div:last-child {
    grid-column: span 2
}

.card .cardbottom {
    display: block;
    padding: 12px 20px
}

.card .branchpreview {
    display: block;
    max-width: 100%;
    margin-bottom: 10px
}

.card .cardactions {
    margin-left: 0
}

.cardactions .button {
    font-size: 13px;
    padding: 9px 13px
}

.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    padding: 24px 0
}

.breadcrumbs a {
    color: var(--blue)
}

.college-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 35px
}

.hero-photo {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    display: block
}

.hero-photo.no-photo {
    display: flex
}

.college-intro {
    padding: 36px
}

.college-intro h1 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 12px 0
}

.college-intro>.primary {
    margin-top: 23px
}

.college-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 35px;
    align-items: start
}

.profile-section {
    padding: 0 0 28px;
    margin-bottom: 27px;
    border-bottom: 1px solid var(--line)
}

.profile-section h2 {
    font-size: 23px;
    letter-spacing: -.4px
}

.profile-section p {
    white-space: pre-line;
    color: #52627d
}

.counsellor-sticky {
    position: sticky;
    top: 24px;
    border: 0;
    padding: 27px;
    border-radius: 14px;
    background: var(--navy);
    color: white
}

.counsellor-sticky p,
.counsellor-sticky li {
    color: #cad5e9;
    font-size: 14px
}

.counsellor-sticky ul {
    padding-left: 19px;
    line-height: 2
}

.counsellor-sticky button {
    width: 100%;
    color: var(--blue)
}

.counsellor-sticky .small {
    font-size: 12px
}

.statebanner {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 25px
}

footer a[href='/admin'] {
    margin-left: 18px;
    color: var(--blue)
}

.adminmain {
    padding-bottom: 45px
}

.adminheading {
    padding-top: 40px
}

.adminheading h1 {
    font-size: 33px;
    letter-spacing: -1px;
    margin: 10px 0
}

.adminlabel {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--muted)
}

.adminstats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 25px 0
}

.adminstats>div {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px
}

.adminstats strong {
    font-size: 32px;
    display: block;
    color: var(--blue)
}

.adminstats span {
    font-size: 14px;
    color: var(--muted)
}

.admintabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px
}

.admintabs button {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 14px 20px;
    background: white
}

.admintabs [aria-selected=true] {
    color: var(--blue);
    border-color: var(--blue)
}

.adminbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    align-items: center
}

.adminbar input {
    width: 360px;
    max-width: 60%
}

.adminbar h2 {
    margin: 0;
    font-size: 22px
}

.tablewrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    max-height: 720px
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px
}

th {
    text-align: left;
    background: var(--light);
    font-weight: 600;
    position: sticky;
    top: 0
}

td,
th {
    padding: 15px;
    border-bottom: 1px solid var(--line)
}

td:first-child {
    min-width: 340px
}

td:last-child {
    white-space: nowrap
}

.tablerowname {
    display: flex;
    gap: 13px;
    align-items: center
}

.tablerowname img {
    object-fit: cover;
    border-radius: 5px
}

.tablerowname small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    max-width: 390px;
    overflow-wrap: anywhere
}

.imagepending {
    display: flex;
    width: 56px;
    min-width: 56px;
    height: 42px;
    background: var(--light);
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--muted);
    border-radius: 5px
}

.statuspill {
    background: #eaf5ef;
    color: #287b51;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 12px
}

.statuspill.draft {
    background: #fff3dc;
    color: #8c661e
}

.adminseo {
    padding: 22px;
    background: var(--light);
    border-radius: 10px;
    margin-top: 30px;
    font-size: 14px;
    color: var(--muted)
}

.adminseo p {
    margin-bottom: 0
}

.adminsuccess:not(:empty),
.adminerror:not(:empty) {
    padding: 14px;
    border-radius: 7px;
    margin: 15px 0;
    background: #ebf6ef;
    color: #247749;
    font-size: 14px
}

.adminerror:not(:empty) {
    background: #fff0ef;
    color: #a33b35
}

textarea {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    color: var(--navy);
    resize: vertical;
    width: 100%;
    font-size: 14px
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px
}

legend {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600
}

.photofield img {
    max-height: 160px;
    max-width: 100%;
    border-radius: 6px
}

.photofield label {
    margin-top: 12px
}

.photofield input[type=file] {
    width: 100%;
    font-size: 13px
}

.formgrid .consent {
    display: flex;
    flex-direction: row
}

.formgrid .consent input {
    width: 18px
}

.formgrid h3 {
    margin-bottom: 0
}

.formgrid .full {
    grid-column: 1/-1
}

.leadcard {
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 16px;
    font-size: 14px
}

.leadcard h3 {
    font-size: 20px;
    margin: 0
}

.leadcard label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    min-width: 130px;
    gap: 8px
}

.leadcard a {
    color: var(--blue)
}

#saveError,
#submitError {
    color: #ac2828;
    font-size: 14px
}

#editor {
    width: min(850px, 94vw)
}

@media(max-width:1050px) {
    .card {
        grid-template-columns: 145px minmax(0, 1fr)
    }

    .card .cardactions {
        flex-wrap: wrap
    }

    .college-hero {
        grid-template-columns: 1fr 1fr
    }

    .college-intro {
        padding: 26px
    }

    .college-intro h1 {
        font-size: 29px
    }

    .college-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 25px
    }
}

@media(max-width:720px) {
    .card {
        display: block
    }

    .cardimage-link {
        height: 170px
    }

    .campus-photo {
        height: 170px;
        min-height: 170px
    }

    .card .cardactions {
        flex-wrap: nowrap
    }

    .cardactions .button {
        flex: 1;
        font-size: 12px
    }

    .college-hero {
        display: block
    }

    .hero-photo {
        height: 230px;
        min-height: 230px
    }

    .college-intro {
        padding: 23px
    }

    .college-intro h1 {
        font-size: 27px
    }

    .college-layout {
        display: flex;
        flex-direction: column
    }

    .counsellor-sticky {
        position: static;
        width: 100%
    }

    .profile-section h2 {
        font-size: 21px
    }

    .breadcrumbs {
        font-size: 11px
    }

    .adminheading h1 {
        font-size: 27px
    }

    .adminstats {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .adminstats>div {
        padding: 15px
    }

    .adminstats span {
        font-size: 12px
    }

    .admintabs button {
        font-size: 12px;
        padding: 12px 9px
    }

    .adminbar {
        gap: 10px
    }

    .adminbar input {
        font-size: 13px
    }

    .adminbar .primary {
        font-size: 12px;
        padding: 12px
    }

    .adminlabel {
        display: none
    }

    .leadcard {
        flex-direction: column
    }

    .leadcard label {
        max-width: 180px
    }

    footer a[href='/admin'] {
        display: inline-block
    }

    .adminstats strong {
        font-size: 28px
    }
}