/* VOID Portal · Gestaltung nach Corporate Design Manual v1.1 */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/source-sans-3-latin-500-italic.woff2") format("woff2"); }

:root {
    --violet: #B303F8;
    --violet-hover: #9302CC;
    --blue: #1141E4;
    --black: #07071A;
    --surface: #0F1024;
    --raised: #171936;
    --line: #262947;
    --ink: #F2F3FA;
    --muted: #A3A6C2;
    --violet-text: #D27BFF;
    --blue-text: #7C9BFF;
    --violet-tint: #1F1442;
    --warn: #F5C451;
    --warn-tint: #2A2414;
    --danger: #FF7A8A;
    --danger-tint: #2C1420;
    --ok: #6FE3B4;
    --gradient: linear-gradient(135deg, var(--violet), var(--blue));
    --glow: 0 0 0 1px var(--violet), 0 12px 40px -12px rgba(179, 3, 248, .55);
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --max: 1200px;
    --sans: "Space Grotesk", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --logo: "Source Sans 3", "Space Grotesk", sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--black);
    color: var(--ink);
    font: 400 16px/26px var(--sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.14; }
h3 { font-size: 20px; line-height: 28px; }
h4 { font-size: 16px; line-height: 24px; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code, .mono { font-family: var(--mono); font-size: 14px; }
small, .small { font-size: 14px; line-height: 22px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 30px; color: var(--muted); }
.eyebrow { font: 500 13px/16px var(--mono); color: var(--violet-text); display: block; margin-bottom: 12px; }
.eyebrow::before { content: "// "; }
.label { font: 500 12px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--max) + 48px); margin: 0 auto; padding: 0 24px; }
main { flex: 1; padding: 48px 0 80px; }
.stack > * + * { margin-top: 16px; }
.stack-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.14; }
.page-head .lead { margin-top: 8px; max-width: 640px; }

/* Kopf & Navigation */
.site-header { border-bottom: 1px solid var(--line); background: rgba(7, 7, 26, .88); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.lockup svg { width: 40px; height: 40px; flex: none; }
.lockup .wordmark { display: flex; flex-direction: column; line-height: 1; }
.lockup .wordmark strong { font: 700 22px/1 var(--logo); background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .01em; }
.lockup .wordmark em { font: italic 500 7.6px/1.4 var(--logo); color: var(--violet-text); letter-spacing: .02em; text-transform: uppercase; margin-top: 2px; }
.lockup .portal-tag { font: 500 13px var(--mono); color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); margin-left: 4px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a, .nav button.linklike { color: var(--muted); padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; text-decoration: none; }
.nav a:hover, .nav button.linklike:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav form { display: inline; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.subnav a { color: var(--muted); padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--violet); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font: 400 13px/20px var(--mono); }
.site-footer .wrap { display: flex; gap: 16px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 20px; border-radius: var(--r-md);
    font: 600 16px/20px var(--sans); border: 1px solid transparent; cursor: pointer;
    text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-tint); }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-tight { padding: 16px; }
.card.interactive { transition: border-color .15s, box-shadow .15s; }
.card.interactive:hover { border-color: var(--violet); box-shadow: var(--glow); }
a.card { color: inherit; text-decoration: none; display: block; }
.card-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 16px; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
.stat strong { display: block; font-size: 28px; line-height: 36px; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }

/* Monogramm-Kachel */
.mono-tile { width: 48px; height: 48px; flex: none; border-radius: var(--r-md); background: var(--violet-tint); color: var(--violet-text); display: grid; place-items: center; font: 700 20px var(--sans); overflow: hidden; }
.mono-tile img { width: 100%; height: 100%; object-fit: cover; }
.mono-tile.lg { width: 96px; height: 96px; font-size: 40px; border-radius: var(--r-lg); }

/* Chips & Status */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-sm); font-size: 14px; line-height: 24px; font-weight: 500; background: var(--raised); color: var(--muted); white-space: nowrap; }
.chip-violet { background: var(--violet-tint); color: var(--violet-text); }
.chip-live { background: var(--raised); color: var(--ink); }
.chip-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-text); }
.chip-off::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .6; }
.chip-warn { background: var(--warn-tint); color: var(--warn); }
.chip-danger { background: var(--danger-tint); color: var(--danger); }
.chip-ok { background: #10261f; color: var(--ok); }

/* Fortschritt */
.progress { height: 12px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gradient); border-radius: inherit; }
.progress-lg { height: 20px; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label-text { font-weight: 500; font-size: 15px; }
.field .hint { color: var(--muted); font-size: 14px; line-height: 20px; }
.field .error, .error-text { color: var(--danger); font-size: 14px; line-height: 20px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
    width: 100%; background: var(--raised); color: var(--ink); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 10px 14px; min-height: 44px; font: 400 16px/22px var(--sans);
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(179, 3, 248, .25); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
input[type=file] { color: var(--muted); font: inherit; }
input[type=file]::file-selector-button { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; margin-right: 12px; font: inherit; cursor: pointer; }
.check { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raised); cursor: pointer; }
.choice input:checked + span { border-color: var(--violet); box-shadow: var(--glow); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-text); outline-offset: 2px; }

/* Hinweise */
.alert { border-radius: var(--r-md); padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 24px; }
.alert-ok { border-color: #1E4A3B; }
.alert-ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.alert-error { border-color: #5A2433; color: var(--ink); }
.alert-error ul { margin: 0; padding-left: 18px; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }

/* Tabellen */
.card > .card-table { margin: 0 -24px -24px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 500 12px/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(23, 25, 54, .6); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-neg { color: var(--danger); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.inline-form select, .inline-form input { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.inline-form select { padding-right: 32px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); }
.pagination [aria-current] { border-color: var(--violet); color: var(--ink); }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 32px 0 48px; }
.hero .visual { aspect-ratio: 1; max-width: 360px; justify-self: end; width: 100%; position: relative; }
.hero .visual .block-a { position: absolute; inset: 0 0 18% 18%; background: var(--gradient); border-radius: var(--r-lg); }
.hero .visual .block-b { position: absolute; left: 0; bottom: 0; width: 42%; height: 42%; background: var(--violet-tint); border-radius: var(--r-lg); }
.slashes { font: 700 96px/1 var(--sans); background: linear-gradient(180deg, var(--violet), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.08em; font-style: italic; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } .hero .visual { display: none; } }

/* Mitgliederliste */
.member-card { display: flex; gap: 16px; align-items: center; }
.member-card .name { font-weight: 600; }
.member-card .handle { font: 400 13px var(--mono); color: var(--muted); }

/* Öffentliches Profil (LinkStack-Stil) */
.profile-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 64px 24px 32px; }
.profile-page .inner { width: 100%; max-width: 560px; text-align: center; flex: 1; }
.profile-page .avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; background: var(--violet-tint); display: grid; place-items: center; font: 700 44px var(--sans); color: var(--violet-text); overflow: hidden; }
.profile-page h1 { font-size: 32px; line-height: 40px; }
.profile-page .handle { font: 400 14px var(--mono); margin-top: 4px; opacity: .8; }
.profile-page .bio { margin: 20px auto 0; white-space: pre-line; max-width: 480px; }
.profile-page .links { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.pb-button {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 52px; padding: 12px 52px; border-radius: var(--r-md); font-weight: 600; text-decoration: none !important;
    background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
    transition: transform .1s, box-shadow .15s, border-color .15s, filter .15s;
}
.pb-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pb-button .pb-icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; }
img.pb-icon { object-fit: contain; border-radius: 4px; }
.pb-violet { --btn-bg: var(--violet); --btn-fg: #fff; --btn-border: var(--violet); }
.pb-blue { --btn-bg: var(--blue); --btn-fg: #fff; --btn-border: var(--blue); }
.pb-gradient { --btn-bg: var(--gradient); --btn-fg: #fff; --btn-border: transparent; }
.pb-outline { --btn-bg: transparent; --btn-fg: inherit; --btn-border: currentColor; }
.pb-brand, .pb-custom { --btn-bg: var(--pb-bg); --btn-fg: var(--pb-fg); --btn-border: var(--pb-bg); }
/* Sehr dunkle Markenfarben (Steam, X, TikTok …) heben sich sonst nicht vom Void-Schwarz ab. */
.theme-void .pb-brand, .theme-void .pb-custom, .theme-violet .pb-brand, .theme-blue .pb-brand { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pb-heading { font-size: 18px; line-height: 26px; font-weight: 600; margin-top: 16px; }
.pb-text { white-space: pre-line; opacity: .85; }
.pb-spacer { flex: none; margin-top: -12px; }
.profile-page .powered { margin-top: 48px; display: inline-flex; gap: 8px; align-items: center; font: 400 13px var(--mono); opacity: .75; color: inherit; }
.profile-page .powered svg { width: 24px; height: 24px; }
.preview-bar { position: fixed; top: 0; left: 0; right: 0; background: var(--warn-tint); color: var(--warn); text-align: center; padding: 8px 16px; font-size: 14px; z-index: 5; }

.theme-void { background: var(--black); color: var(--ink); }
.theme-void { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-border: var(--line); }
.theme-void .pb-default:hover { border-color: var(--violet); box-shadow: var(--glow); filter: none; }
.theme-void .bio { color: var(--muted); }

.theme-gradient { background: var(--gradient) fixed; color: #fff; }
.theme-gradient { --btn-bg: rgba(7, 7, 26, .28); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .35); }
.theme-gradient .pb-default:hover { background: rgba(7, 7, 26, .42); filter: none; }
.theme-gradient .chip-violet { background: rgba(255, 255, 255, .18); color: #fff; }
.theme-gradient .avatar { background: rgba(255, 255, 255, .15); color: #fff; }

.theme-violet { background: radial-gradient(120% 80% at 50% 0%, #3A0E66 0%, var(--black) 60%) fixed; color: var(--ink); }
.theme-violet { --btn-bg: var(--violet); --btn-fg: #fff; --btn-border: var(--violet); }
.theme-violet .pb-default:hover { background: var(--violet-hover); filter: none; }
.theme-violet .bio { color: var(--muted); }

.theme-blue { background: radial-gradient(120% 80% at 50% 0%, #0C2272 0%, var(--black) 60%) fixed; color: var(--ink); }
.theme-blue { --btn-bg: var(--blue); --btn-fg: #fff; --btn-border: var(--blue); }
.theme-blue .bio { color: var(--muted); }

.theme-light { background: #F4F5FB; color: var(--black); color-scheme: light; }
.theme-light { --btn-bg: #fff; --btn-fg: var(--black); --btn-border: #DCDEEC; }
.theme-light .pb-default:hover { border-color: var(--violet); filter: none; }
.theme-light .bio { color: #4A4D68; }
.theme-light .chip-violet { background: #F1E1FE; color: #7A02AA; }

/* Profil-Editor */
.pb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pb-row:first-of-type { border-top: 0; }
.pb-row-main { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }
.pb-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.pb-clicks { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; margin-right: 8px; min-width: 104px; flex: none; font-variant-numeric: tabular-nums; }
.pb-actions { display: flex; gap: 6px; align-items: center; }
.pb-actions form { display: inline-flex; gap: 6px; }
.pb-chip { width: 36px; height: 36px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--btn-bg, var(--raised)); color: var(--btn-fg, var(--ink)); border: 1px solid var(--btn-border, var(--line)); }
.pb-chip .pb-icon { width: 20px; height: 20px; }
.pb-chip-plain { color: var(--violet-text); background: var(--violet-tint); border-color: transparent; font-weight: 700; }
.pb-chip.pb-outline { color: var(--ink); }
.pb-add-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.pb-add { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--raised); color: var(--ink); text-decoration: none !important; }
.pb-add:hover { border-color: var(--violet); box-shadow: var(--glow); }
.site-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); max-height: 420px; overflow-y: auto; padding: 4px; }
.site-choice { display: flex !important; align-items: center; gap: 10px; padding: 8px 10px !important; font-size: 15px; }
.site-choice .pb-chip { width: 30px; height: 30px; }
.site-choice .pb-icon { width: 18px; height: 18px; }

/* Login */
.auth-box { max-width: 440px; margin: 24px auto 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 400 13px var(--mono); margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.discord-btn { background: #5865F2; color: #fff; }
.discord-btn:hover { background: #4752C4; }

/* Detail-Listen */
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; }

@media (max-width: 640px) {
    main { padding-top: 32px; }
    .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
    .nav { margin-left: 0; width: 100%; }
    .lockup .portal-tag { display: none; }
    .card { padding: 20px; }
    .card > .card-table { margin: 0 -20px -20px; }
}
