/* HIDOE portal — same glass-dark look as the digit-l-hidoe login theme. */
:root {
    --dl-yellow: #FFBD00;
    --dl-yellow-hover: #e6aa00;
    --card-bg: rgba(15, 15, 20, 0.88);
    --card-border: rgba(255, 255, 255, 0.10);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 12px 40px rgba(0, 0, 0, 0.18);
    --text: #f0f0f0;
    --muted: rgba(255, 255, 255, 0.6);
    --radius: 16px;
    --font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background-color: #1b1b20;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05)),
        url('img/background.webp');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: max(32px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    font-family: var(--font);
    color: var(--text);
}

.portal {
    width: 100%;
    max-width: 880px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(12px) saturate(80%);
    backdrop-filter: blur(12px) saturate(80%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.portal-header {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 28px 28px;
    text-align: center;
}

.logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 8px;
    border-radius: 12px;
}

.portal-name {
    margin: 0 0 20px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dl-yellow);
}

.subtitle {
    margin: 10px 0 0;
    line-height: 1.5;
    color: var(--muted);
}

.subtitle:empty {
    display: none;
}

.actions:empty {
    display: none;
}

.button {
    margin-top: 20px;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--dl-yellow);
    color: #000;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 189, 0, 0.25);
}

.button:hover {
    background: var(--dl-yellow-hover);
}

.link-button {
    margin-top: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.link-button:hover {
    border-color: var(--dl-yellow);
    color: var(--dl-yellow);
}

.button:focus-visible,
.link-button:focus-visible,
.tile:focus-visible {
    outline: 2px solid var(--dl-yellow);
    outline-offset: 2px;
}

/* Up to two cards per row, centred under the header card (an odd last card is centred too). */
.apps {
    width: 100%;
    max-width: 656px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.apps > .tile {
    flex: 1 1 250px;
    max-width: 320px;
}

@media (max-width: 560px) {
    .apps > .tile {
        max-width: none;
    }
}

.apps:empty {
    display: none;
}

.tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.tile:hover {
    border-color: var(--dl-yellow);
    transform: translateY(-2px);
}

.badge {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--dl-yellow);
    color: #000;
    font-size: 1.25rem;
    font-weight: 700;
}

/* White backing like the header logo, so dark artwork in an icon stays visible. */
.badge-icon {
    padding: 3px;
    background: #fff;
    object-fit: contain;
}

.tile-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tile-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dl-yellow);
}

.tile-description {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--muted);
}

.footer {
    margin-top: auto;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 15, 20, 0.7);
    font-size: 0.8rem;
}

.footer a {
    color: var(--dl-yellow);
}
