/* DigiCON 2026 — Personal guest portal */

body.dgp-portal .dc-site-topbar,
body.dgp-portal .dc-site-header {
    display: none;
}

body.dgp-portal {
    overflow-x: hidden;
}

body.dgp-portal .dc-site-main {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

body.dgp-portal .dc-card {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

body.dgp-portal .dc-page-title {
    display: none;
}

.dgp-app {
    --dgp-brand: #db0812;
    --dgp-dark: #191919;
    --dgp-cyan: #00b4c8;
    --dgp-bg: #f4f5f7;
    --dgp-surface: #ffffff;
    --dgp-border: #d8dce3;
    --dgp-muted: #6b7280;
    --dgp-font: "Ubuntu", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;

    font-family: var(--dgp-font);
    color: var(--dgp-dark);
    background: var(--dgp-bg);
    min-height: 70vh;
    padding-bottom: 48px;
}

/* Header */
.dgp-header {
    background: var(--dgp-dark);
    color: #fff;
    padding: 24px 20px 32px;
    border-bottom: 4px solid var(--dgp-brand);
}

.dgp-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.dgp-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dgp-header__logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.dgp-header__brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dgp-header__som {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.dgp-header__date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
}

.dgp-header__logout {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 0;
}

.dgp-header__logout:hover {
    color: #fff;
}

.dgp-header__event {
    max-width: 960px;
    margin: 20px auto 0;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--dgp-cyan);
    line-height: 1.1;
}

.dgp-header__welcome {
    max-width: 960px;
    margin: 12px auto 0;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.dgp-header__subtitle {
    max-width: 960px;
    margin: 8px auto 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 300;
    line-height: 1.45;
}

/* Login */
.dgp-login {
    max-width: 420px;
    margin: -16px auto 0;
    padding: 0 20px;
}

.dgp-login__form {
    background: var(--dgp-surface);
    border: 1px solid var(--dgp-border);
    border-radius: 6px;
    padding: 24px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--dgp-brand);
}

.dgp-login__error {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #fdf3f3;
    border-left: 3px solid var(--dgp-brand);
    color: #8a1010;
    font-size: 13px;
    border-radius: 0 4px 4px 0;
}

.dgp-field {
    display: block;
    margin-bottom: 14px;
}

.dgp-field__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dgp-muted);
    margin-bottom: 6px;
}

.dgp-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--dgp-border);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
}

.dgp-input:focus {
    outline: none;
    border-color: var(--dgp-cyan);
    box-shadow: 0 0 0 2px rgba(0, 180, 200, 0.2);
}

.dgp-input--code {
    font-family: ui-monospace, "Ubuntu Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dgp-login__hint {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--dgp-muted);
    line-height: 1.45;
}

.dgp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
}

.dgp-btn--primary {
    width: 100%;
    background: var(--dgp-brand);
    color: #fff;
}

.dgp-btn--primary:hover {
    background: #b8060f;
}

.dgp-btn--primary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dgp-btn--link {
    background: var(--dgp-cyan);
    color: #fff;
    margin-top: 12px;
}

/* Hub tiles */
.dgp-hub {
    max-width: 960px;
    margin: -16px auto 0;
    padding: 0 20px;
}

.dgp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.dgp-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    padding: 18px 14px;
    background: var(--dgp-surface);
    border: 1px solid var(--dgp-border);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    border-top: 3px solid var(--dgp-brand);
}

.dgp-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.dgp-tile--flight,
.dgp-tile--shuttle,
.dgp-tile--contact {
    border-top-color: var(--dgp-cyan);
}

.dgp-loading,
.dgp-empty {
    margin: 0;
    font-size: 14px;
    color: var(--dgp-muted);
}

.dgp-tile__icon {
    font-size: 30px;
    line-height: 1;
}

.dgp-tile__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* Detail panel */
.dgp-detail {
    margin-top: 16px;
    background: var(--dgp-surface);
    border: 1px solid var(--dgp-border);
    border-radius: 6px;
    padding: 20px 22px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dgp-detail__back {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: var(--dgp-muted);
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 16px;
}

.dgp-detail__back:hover {
    color: var(--dgp-dark);
}

.dgp-detail__title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
}

.dgp-card {
    border: 1px solid var(--dgp-border);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.dgp-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.dgp-card__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dgp-muted);
}

.dgp-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 3px;
    background: #ececf1;
}

.dgp-pill--assigned { background: #e0f7ea; color: #0d6832; }
.dgp-pill--pending { background: #fff4e5; color: #9a6700; }
.dgp-pill--info_pending { background: #e8f4fd; color: #0066a1; }
.dgp-pill--not_needed,
.dgp-pill--not_required,
.dgp-pill--declined { background: #f0f0f0; color: #666; }
.dgp-pill--not_possible { background: #fce8e8; color: #9b1c1c; }
.dgp-pill--optional { background: #f3f0ff; color: #5b3ea8; }
.dgp-pill--superseded { background: #e8f4fd; color: #0066a1; }

.dgp-section-title {
    margin: 20px 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dgp-dark);
}

.dgp-section-title:first-of-type {
    margin-top: 0;
}

.dgp-service-note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--dgp-muted);
}

.dgp-meeting-details {
    color: var(--dgp-muted);
    font-size: 13px;
}

.dgp-tour-badge {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--dgp-brand);
    font-size: 13px;
    font-weight: 600;
}

.dgp-card--highlight {
    border-color: rgba(0, 113, 227, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.dgp-service-card {
    border: 1px solid var(--dgp-border);
    border-radius: 4px;
    margin-bottom: 8px;
    background: var(--dgp-surface);
}

.dgp-service-card--highlight {
    border-color: rgba(0, 113, 227, 0.35);
}

.dgp-service-card__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.dgp-service-card__summary::-webkit-details-marker {
    display: none;
}

.dgp-service-card__summary::after {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--dgp-muted);
    border-bottom: 2px solid var(--dgp-muted);
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.15s ease;
}

.dgp-service-card[open] .dgp-service-card__summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.dgp-service-card__main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.dgp-service-card__when {
    font-size: 13px;
    font-weight: 600;
    color: var(--dgp-dark);
}

.dgp-service-card__route {
    font-size: 12px;
    color: var(--dgp-muted);
    line-height: 1.35;
    word-break: break-word;
}

.dgp-service-card__body {
    padding: 0 14px 14px;
    border-top: 1px solid #f0f1f3;
}

.dgp-service-card__body .dgp-fact:first-child {
    padding-top: 10px;
}

.dgp-fact {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.45;
    border-bottom: 1px solid #f0f1f3;
}

.dgp-fact:last-child {
    border-bottom: none;
}

.dgp-fact__label {
    flex: 0 0 130px;
    color: var(--dgp-muted);
    font-size: 13px;
}

.dgp-fact__value {
    flex: 1;
    font-weight: 400;
}

.dgp-fact__value--pending {
    color: var(--dgp-muted);
    font-style: italic;
}

.dgp-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.dgp-fact__value a {
    color: var(--dgp-cyan);
    word-break: break-all;
}

@media (max-width: 600px) {
    .dgp-header {
        padding: 18px 16px 24px;
    }

    .dgp-header__event {
        margin-top: 14px;
        letter-spacing: 0.04em;
    }

    .dgp-header__welcome {
        font-size: 20px;
    }

    .dgp-header__subtitle {
        font-size: 14px;
    }

    .dgp-login,
    .dgp-hub {
        padding: 0 14px;
    }

    .dgp-header__brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .dgp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dgp-tile {
        min-height: 100px;
        padding: 14px 10px;
    }

    .dgp-tile__title {
        font-size: 13px;
    }

    .dgp-detail {
        padding: 16px 14px 20px;
    }

    .dgp-card__head {
        flex-wrap: wrap;
    }

    .dgp-fact {
        flex-direction: column;
        gap: 2px;
    }

    .dgp-fact__label {
        flex: none;
    }

    .dgp-fact__value {
        word-break: break-word;
    }
}
