/* MIWAI 2026 Industry Showcase — additions on top of the MIWAI conference theme.
   Palette and typography follow the main conference site (miwai26.miwai.org). */

:root {
    --miwai-teal: #64a19d;
    --miwai-teal-dark: #4b7976;
    --miwai-purple: #7464a1;
    --miwai-gold: #e4c662;
    --miwai-ink: #1d2b2a;
    --miwai-muted: #6b7c7b;
    --miwai-line: #e3e9e8;
    --miwai-surface: #f6f8f8;
    --heading-font: "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    color: var(--miwai-ink);
    background-color: #fff;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: var(--heading-font);
}

a {
    color: var(--miwai-teal-dark);
}

a:hover {
    color: var(--miwai-purple);
}

/* ---------------------------------------------------------------- navigation */

#mainNav {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

#mainNav .navbar-brand {
    font-family: var(--heading-font);
    letter-spacing: .05rem;
    line-height: 1.1;
}

#mainNav .brand-sub {
    display: block;
    font-family: Nunito, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18rem;
    text-transform: uppercase;
    color: var(--miwai-teal);
}

#mainNav .nav-link {
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .06rem;
    text-transform: uppercase;
    color: #3c4a49;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
    color: var(--miwai-teal);
}

#mainNav .nav-admin {
    color: var(--miwai-purple);
}

.navbar-toggler {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08rem;
    padding: .6rem .9rem;
    border-color: var(--miwai-line);
}

/* --------------------------------------------------------------------- hero */

/* Compact banner: no photograph, so the partner cards sit above the fold on a
   laptop. The gate page keeps the campus image. */
.masthead {
    padding: 6.5rem 0 2.5rem;
    min-height: 0;
    background: linear-gradient(135deg, #14201f 0%, #21403d 55%, #2c5450 100%);
}

.masthead--compact {
    padding: 9rem 0 4rem;
}

.masthead .hero-kicker {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .3rem;
    text-transform: uppercase;
    color: var(--miwai-gold);
    margin-bottom: 1.25rem;
}

.masthead h1 {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    line-height: 1.05;
    letter-spacing: .5rem;
    margin: 0;
    background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .55));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.masthead .hero-lede {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: #fff;
    margin-top: .75rem;
}

.masthead .hero-blurb {
    color: rgba(255, 255, 255, .72);
    max-width: 40rem;
    margin: .85rem auto 0;
    font-size: 1rem;
}

.masthead .hero-meta {
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    letter-spacing: .1rem;
    text-transform: uppercase;
    margin-top: .9rem;
}

.masthead .hero-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 992px) {
    .masthead { padding: 7rem 0 3rem; }
    .masthead h1 { font-size: 3.4rem; letter-spacing: .55rem; }
    .masthead .hero-lede { font-size: 1.6rem; }
}

.btn-outline-light-thin {
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    background: transparent;
}

.btn-outline-light-thin:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ----------------------------------------------------------------- sections */

.section {
    padding: 3.25rem 0;
}

.section--tint {
    background: var(--miwai-surface);
}

.section-eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .25rem;
    text-transform: uppercase;
    color: var(--miwai-teal);
    margin-bottom: .75rem;
}

.section-title {
    font-size: 2.1rem;
    margin-bottom: 1rem;
}

.section-lede {
    color: var(--miwai-muted);
    font-size: 1.05rem;
    max-width: 46rem;
}

.rule-accent {
    width: 3.5rem;
    height: 3px;
    background: var(--miwai-teal);
    border-radius: 3px;
    margin: 0 0 1.5rem;
}

.rule-accent.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ------------------------------------------------------------------ filters */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--miwai-line);
    border-radius: .75rem;
    box-shadow: 0 4px 14px rgba(29, 43, 42, .05);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.chip {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--miwai-line);
    background: #fff;
    color: #495a59;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s ease;
}

.chip:hover {
    border-color: var(--miwai-teal);
    color: var(--miwai-teal-dark);
}

.chip.is-active {
    background: var(--miwai-teal);
    border-color: var(--miwai-teal);
    color: #fff;
}

.search-form {
    display: flex;
    gap: .5rem;
    flex: 1 1 18rem;
    min-width: 0;          /* let it shrink instead of pushing the button off-screen */
    max-width: 100%;
}

.search-form input {
    border: 1px solid var(--miwai-line);
    border-radius: .5rem;
    padding: .5rem .85rem;
    flex: 1 1 auto;
    min-width: 0;
    font-size: .9rem;
}

.search-form .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.search-form input:focus {
    outline: none;
    border-color: var(--miwai-teal);
    box-shadow: 0 0 0 .2rem rgba(100, 161, 157, .18);
}

/* --------------------------------------------------------------------- grid */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.showcase-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--miwai-line);
    border-radius: .85rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(29, 43, 42, .13);
    border-color: rgba(100, 161, 157, .5);
    color: inherit;
}

.showcase-card__media {
    height: 8.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2f6f6, #e8eeee);
    border-bottom: 1px solid var(--miwai-line);
    padding: 1rem;
}

.showcase-card__media img {
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
}

.showcase-card__initials {
    font-family: var(--heading-font);
    font-size: 2rem;
    letter-spacing: .1rem;
    color: var(--miwai-teal);
}

.showcase-card__body {
    padding: 1.25rem 1.35rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.showcase-card__company {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    margin-bottom: .25rem;
}

.showcase-card__title {
    color: var(--miwai-teal-dark);
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: .6rem;
}

.showcase-card__tagline {
    color: var(--miwai-muted);
    font-size: .9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.showcase-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px solid var(--miwai-line);
    padding: .75rem 1.35rem;
    background: #fcfdfd;
}

.asset-flags {
    display: flex;
    gap: .75rem;
    color: var(--miwai-muted);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05rem;
}

.asset-flags span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.card-cta {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06rem;
    color: var(--miwai-teal);
}

/* ------------------------------------------------------------------- badges */

.pill {
    display: inline-block;
    padding: .22rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06rem;
    text-transform: uppercase;
}

.pill--sector {
    background: rgba(100, 161, 157, .13);
    color: var(--miwai-teal-dark);
}

.pill--level {
    background: rgba(228, 198, 98, .22);
    color: #8a6d16;
}

.pill--featured {
    background: rgba(116, 100, 161, .14);
    color: var(--miwai-purple);
}

.pill--draft {
    background: #fde8e8;
    color: #9b3232;
}

.pill--live {
    background: rgba(103, 194, 156, .18);
    color: #2f7a5b;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .75rem;
}

/* ------------------------------------------------------------- detail page */

.detail-head {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.detail-logo {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: .85rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    flex: none;
}

.detail-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.panel {
    background: #fff;
    border: 1px solid var(--miwai-line);
    border-radius: .85rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.panel h2, .panel h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.panel p:last-child {
    margin-bottom: 0;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #06100f;
    border-radius: .6rem;
    overflow: hidden;
}

.video-frame iframe,
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pdf-frame {
    width: 100%;
    height: 32rem;
    border: 1px solid var(--miwai-line);
    border-radius: .6rem;
}

.material-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.material-list li + li {
    border-top: 1px solid var(--miwai-line);
}

.material-list a {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem .25rem;
    text-decoration: none;
    color: var(--miwai-ink);
}

.material-list a:hover {
    color: var(--miwai-teal-dark);
}

.material-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
    background: rgba(100, 161, 157, .12);
    color: var(--miwai-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.material-meta {
    color: var(--miwai-muted);
    font-size: .8rem;
}

.fact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fact-list li {
    padding: .6rem 0;
    border-bottom: 1px solid var(--miwai-line);
}

.fact-list li:last-child {
    border-bottom: 0;
}

.fact-label {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1rem;
    text-transform: uppercase;
    color: var(--miwai-muted);
    margin-bottom: .15rem;
}

.pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pager a {
    font-weight: 700;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed var(--miwai-line);
    border-radius: .85rem;
    background: #fff;
    color: var(--miwai-muted);
}

/* -------------------------------------------------------------------- admin */

body.admin-body {
    background: #f2f5f5;
}

.admin-shell {
    padding: 7rem 0 4rem;
}

.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.admin-header h1 {
    font-size: 1.9rem;
    margin: 0;
}

.admin-header .subtitle {
    color: var(--miwai-muted);
    margin: .35rem 0 0;
}

.admin-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.admin-tabs a {
    padding: .45rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--miwai-line);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    color: #465958;
}

.admin-tabs a.is-active {
    background: var(--miwai-teal);
    border-color: var(--miwai-teal);
    color: #fff;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat {
    background: #fff;
    border: 1px solid var(--miwai-line);
    border-radius: .75rem;
    padding: 1.1rem 1.25rem;
}

.stat__value {
    font-family: var(--heading-font);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--miwai-teal-dark);
}

.stat__label {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .09rem;
    text-transform: uppercase;
    color: var(--miwai-muted);
    margin-top: .35rem;
}

.card-panel {
    background: #fff;
    border: 1px solid var(--miwai-line);
    border-radius: .85rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.card-panel > h2 {
    font-size: 1.15rem;
    margin-bottom: .35rem;
}

.card-panel .panel-hint {
    color: var(--miwai-muted);
    font-size: .88rem;
    margin-bottom: 1.25rem;
}

.admin-table {
    width: 100%;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09rem;
    text-transform: uppercase;
    color: var(--miwai-muted);
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--miwai-line);
    text-align: left;
    white-space: nowrap;
}

.admin-table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--miwai-line);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table .row-title {
    font-weight: 700;
}

.admin-table .row-sub {
    color: var(--miwai-muted);
    font-size: .82rem;
}

.row-logo {
    width: 3rem;
    height: 3rem;
    border-radius: .5rem;
    background: var(--miwai-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--heading-font);
    color: var(--miwai-teal);
}

.row-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.table-wrap {
    background: #fff;
    border: 1px solid var(--miwai-line);
    border-radius: .85rem;
    overflow-x: auto;
}

.icon-button {
    border: 1px solid var(--miwai-line);
    background: #fff;
    border-radius: .4rem;
    width: 2rem;
    height: 2rem;
    line-height: 1;
    color: #556967;
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--miwai-teal);
    color: var(--miwai-teal-dark);
}

.icon-button.is-danger:hover {
    border-color: #c85c5c;
    color: #b23b3b;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.form-label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07rem;
    text-transform: uppercase;
    color: #4b5e5d;
    margin-bottom: .35rem;
}

.form-text {
    color: var(--miwai-muted);
    font-size: .82rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--miwai-teal);
    box-shadow: 0 0 0 .2rem rgba(100, 161, 157, .18);
}

.current-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    background: var(--miwai-surface);
    border: 1px solid var(--miwai-line);
    border-radius: .5rem;
    padding: .6rem .85rem;
    margin-bottom: .6rem;
    font-size: .87rem;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 3rem;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(13, 32, 31, .92)),
        url("../img/bg-smu-1.webp") center / cover no-repeat;
}

.login-card {
    width: min(100%, 26rem);
    background: #fff;
    border-radius: 1rem;
    padding: 2.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: .25rem;
}

.login-card .login-sub {
    color: var(--miwai-muted);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.flash-stack {
    padding-top: 1.25rem;
}

/* ------------------------------------------------------------------- footer */

.site-footer {
    background: #14201f;
    color: rgba(255, 255, 255, .68);
    padding: 3.5rem 0 2rem;
    font-size: .9rem;
}

.site-footer .footer-title {
    font-family: var(--heading-font);
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: .05rem;
}

.site-footer .footer-note {
    max-width: 30rem;
    color: rgba(255, 255, 255, .5);
    font-size: .85rem;
}

.site-footer .footer-heading {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12rem;
    text-transform: uppercase;
    color: var(--miwai-gold);
    margin-bottom: .6rem;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: .35rem;
}

.site-footer a,
.site-footer .link-button {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer .link-button:hover {
    color: #fff;
}

.footer-rule {
    border-color: rgba(255, 255, 255, .12);
    margin: 2rem 0 1rem;
}

.footer-copy {
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
}

@media print {
    #mainNav, .site-footer, .pager, .hero-actions { display: none !important; }
}

/* Anchor links must clear the fixed navigation bar. */
html {
    scroll-behavior: smooth;
}

section[id],
header[id] {
    scroll-margin-top: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .showcase-card, .chip { transition: none; }
}

/* Infographics are tall posters — give them room but keep them in the panel. */
.infographic-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--miwai-line);
    border-radius: .6rem;
    background: #fff;
}

/* ------------------------------------------------------------------ committee */

.committee-section {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04rem;
    color: var(--miwai-teal-dark);
    margin: 2rem 0 1rem;
}

.committee-section:first-of-type {
    margin-top: 1.5rem;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
    gap: 1rem;
}

.committee-card {
    background: #fff;
    border: 1px solid var(--miwai-line);
    border-left: 3px solid var(--miwai-teal);
    border-radius: .6rem;
    padding: 1.1rem 1.25rem;
}

.committee-name {
    font-family: var(--heading-font);
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.committee-title {
    color: var(--miwai-muted);
    font-size: .88rem;
    margin-bottom: .5rem;
}

.committee-email {
    font-size: .88rem;
    word-break: break-word;
}

/* --------------------------------------------------- slim banner + flush grid
   The partner cards are what people come for, so the banner is a strip and the
   grid starts immediately below it. */
.masthead--slim {
    padding: 1.4rem 0 1.15rem;
}

.slim-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.masthead--slim h1 {
    font-family: var(--heading-font);
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: .12rem;
    color: #fff;
    /* cancel the theme's gradient text-clip, unreadable at this size */
    background: none;
    -webkit-text-fill-color: #fff;
    text-transform: none;
}

.masthead--slim .slim-sub {
    display: inline-block;
    margin-left: .6rem;
    padding-left: .7rem;
    border-left: 1px solid rgba(255, 255, 255, .28);
    font-family: Nunito, sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .16rem;
    text-transform: uppercase;
    color: var(--miwai-gold);
    vertical-align: middle;
}

.masthead--slim .slim-blurb {
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
    margin-top: .25rem;
}

.masthead--slim .slim-meta {
    color: rgba(255, 255, 255, .62);
    font-size: .78rem;
    letter-spacing: .08rem;
    text-transform: uppercase;
    text-align: right;
}

.section--flush {
    padding-top: 1.25rem;
}

.filter-count {
    color: var(--miwai-muted);
    font-size: .82rem;
    flex: 1 1 14rem;
}

@media (max-width: 575px) {
    .masthead--slim .slim-blurb,
    .masthead--slim .slim-meta { display: none; }
}

/* ---------------------------------------------- desktop fixes for the vendored theme
   Above 992px the original theme forces a full-viewport masthead and a TRANSPARENT
   navbar that its own scripts.js turns white on scroll by adding .navbar-shrink.
   We deliberately do not ship that script, so both must be pinned here. Without
   this the banner fills the screen and the nav text sits on top of the title. */
#mainNav {
    background-color: #fff;
}

@media (min-width: 992px) {
    .masthead {
        height: auto;
    }

    #mainNav {
        background-color: #fff;
        padding-top: 0;
        padding-bottom: 0;
    }

    #mainNav .navbar-brand {
        padding: .55rem 0;
        color: #000;
    }

    #mainNav .nav-link {
        padding: 1.05rem 1rem;
        color: #3c4a49;
    }

    #mainNav .nav-link:hover,
    #mainNav .nav-link:active {
        color: var(--miwai-teal);
    }
}

/* Clear the fixed navbar, which is taller below 992px (wrapped brand + toggler:
   ~79px) than above it (~56px). Measured, not guessed. */
.masthead--slim {
    padding: 5.85rem 0 1.15rem;
}

@media (min-width: 992px) {
    .masthead--slim {
        padding-top: 4.4rem;
    }
}
