/*
 * peck.bio — classic profile-page layout.
 *
 * Two style worlds coexist:
 *  1. Main SPA at /  (signed-in profile view + composer) — uses the
 *     light theme with Newsreader/Instrument Serif typography.
 *  2. Server-rendered fallback at /p/:outpoint, /discover, /h/:outpoint
 *     — still uses the .profile-hero / .profile-section / .token-card
 *     classes from the previous design. Kept intact below so those
 *     routes don't regress.
 */

:root {
    --bg: #f4f4ef;
    --surface: #ffffff;
    --surface-muted: #f8f7f3;
    --fg: #14110d;
    --muted: #6f6a62;
    --soft: #d9d4c8;
    --line: #e5e0d3;
    --accent: #1a73e8;
    --accent-strong: #155bbf;
    --ok: #1f7a3b;
    --error: #b3261e;
    --shadow: 0 1px 2px rgba(20, 17, 13, 0.04),
        0 2px 12px rgba(20, 17, 13, 0.05);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font:
        16px/1.55 'Newsreader',
        Georgia,
        'Times New Roman',
        serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ────────────────────────── Top bar ────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    max-width: 940px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.6rem;
    color: var(--fg);
    letter-spacing: -0.01em;
    text-decoration: none;
    padding: 0.15rem 0.25rem;
}
.brand:hover {
    text-decoration: none;
    color: var(--accent);
}
.search {
    flex: 1;
    max-width: 360px;
}
.search input {
    width: 100%;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.45rem 0.9rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--fg);
}
.search input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}
.auth-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ────────────────────────── Buttons ────────────────────────── */

button {
    font: inherit;
    cursor: pointer;
}
.primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0.45rem 1rem;
    font-weight: 500;
}
.primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}
.primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.primary.big {
    padding: 0.65rem 1.4rem;
    font-size: 1rem;
}
.ghost-btn {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.ghost-btn:hover {
    background: var(--surface-muted);
    text-decoration: none;
}

/* ────────────────────────── Root layout ────────────────────────── */

.root {
    max-width: 720px;
    margin: 1.5rem auto 4rem;
    padding: 0 1rem;
}
.hidden {
    display: none !important;
}
.mono {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.8rem;
    word-break: break-all;
}
.hint {
    color: var(--muted);
    font-size: 0.9rem;
}
.status {
    font-size: 0.9rem;
    color: var(--muted);
    min-height: 1.2rem;
    display: inline-block;
}
.status.error {
    color: var(--error);
}
.status.ok {
    color: var(--ok);
}

/* ────────────────────────── Landing ────────────────────────── */

.landing {
    text-align: center;
    padding: 4rem 1rem 2rem;
}
.landing-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2.6rem;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.landing-sub {
    color: var(--muted);
    margin: 0 auto 1.5rem;
    max-width: 36ch;
    font-size: 1.05rem;
}
.landing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.landing-hint {
    color: var(--muted);
    font-size: 0.85rem;
    max-width: 36ch;
    margin: 0 auto;
}

/* ────────────────────────── Mint card ────────────────────────── */

.mint-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
.mint-card-inner h2 {
    margin: 0 0 0.5rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.mint-card-sub {
    color: var(--muted);
    margin: 0 0 1.25rem;
}

/* ────────────────────────── Profile form (shared) ────────────────────────── */

.profile-form label {
    display: block;
    margin: 0.8rem 0;
}
.profile-form .lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}
.profile-form input[type='text'],
.profile-form input[type='search'],
.profile-form textarea {
    width: 100%;
    background: var(--surface);
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.55rem 0.7rem;
    font: inherit;
}
.profile-form input[type='file'] {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}
.profile-form textarea {
    min-height: 4.5rem;
    resize: vertical;
}
.profile-form .form-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ────────────────────────── Profile view ────────────────────────── */

.profile-view {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cover {
    height: 180px;
    background: var(--surface-muted);
    position: relative;
}
.cover-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(26, 115, 232, 0.18),
            rgba(26, 115, 232, 0.05)
        ),
        var(--surface-muted);
    background-size: cover;
    background-position: center;
}
.profile-head {
    padding: 0 1.5rem 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    position: relative;
}
.avatar-wrap {
    margin-top: -56px;
    flex-shrink: 0;
}
.avatar-block {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--surface);
    border: 4px solid var(--surface);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-placeholder-inner {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3.2rem;
    color: var(--muted);
}
.profile-meta {
    flex: 1;
    padding-top: 0.85rem;
    min-width: 0;
}
.name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.display-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2rem;
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 400;
}
.handles-row {
    margin: 0.25rem 0 0.5rem;
}
.handles-row .handle-tag {
    display: inline-block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-right: 0.5rem;
    text-decoration: none;
}
.handles-row .handle-tag:hover {
    color: var(--accent);
    text-decoration: underline;
}
.bio-text {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.02rem;
    line-height: 1.5;
}
.bio-text:empty {
    display: none;
}

/* Verified chips */
.verified-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.verified-row:empty {
    display: none;
}
.cert-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.2rem 0.65rem 0.2rem 0.5rem;
    font-size: 0.85rem;
    color: var(--fg);
    cursor: pointer;
    transition: background 0.15s;
}
.cert-chip:hover {
    background: var(--surface);
    border-color: var(--soft);
}
.cert-chip .icon {
    font-size: 1rem;
    line-height: 1;
}
.cert-chip.trusted {
    border-color: rgba(31, 122, 59, 0.35);
    background: rgba(31, 122, 59, 0.06);
}
.cert-chip.untrusted {
    border-color: rgba(179, 38, 30, 0.35);
    color: var(--muted);
}
.cert-chip .check {
    color: var(--ok);
    font-weight: 600;
}

/* Tabs */
.profile-tabs {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 0.25rem;
    padding: 0 1.5rem;
}
.profile-tabs .tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.7rem 0.9rem;
    color: var(--muted);
    font-weight: 500;
    cursor: pointer;
}
.profile-tabs .tab:hover {
    color: var(--fg);
}
.profile-tabs .tab.active {
    color: var(--fg);
    border-bottom-color: var(--accent);
}
.tab-panel {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Composer */
.composer {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem;
    margin-bottom: 1.25rem;
}
.composer textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font: inherit;
    resize: vertical;
    min-height: 2.6rem;
}
.composer textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.55rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Wall list */
.wall-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.wall-post {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    box-shadow: var(--shadow);
}
.wall-post .who {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.wall-post .who strong {
    color: var(--fg);
}
.wall-post .body {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.55;
}
.wall-post .meta {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.wall-post .meta a {
    color: var(--muted);
}
.wall-post .meta a:hover {
    color: var(--accent);
}
.wall-post.pending {
    opacity: 0.7;
}

/* About panel */
.about-block {
    margin-bottom: 1.5rem;
}
.about-block h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.about-block .meta {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 0.9rem;
}
.about-block .meta dt {
    color: var(--muted);
    font-size: 0.85rem;
}
.about-block .meta dd {
    margin: 0;
    font-size: 0.92rem;
}

/* About: verified cert detail card list */
.cert-detail {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin: 0.4rem 0;
    font-size: 0.9rem;
}
.cert-detail .platform {
    font-weight: 600;
}
.cert-detail .field {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}
.cert-detail.bad {
    border-color: rgba(179, 38, 30, 0.35);
    color: var(--muted);
}

/* ────────────────────────── Edit modal ────────────────────────── */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 17, 13, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}
.modal-card {
    background: var(--surface);
    border-radius: var(--radius);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.modal-card h2 {
    margin: 0 0 1rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.modal-close:hover {
    color: var(--fg);
}

/* ────────────────────────── Cert rows (modal) ────────────────────────── */

.cert-section {
    margin: 1rem 0;
    padding-top: 0.5rem;
}
#edit-cert-list:empty::before {
    content: '(no verified accounts yet)';
    color: var(--muted);
    font-size: 0.85rem;
}
.cert-row {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    margin: 0.35rem 0;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cert-row .cert-info {
    flex: 1;
    min-width: 0;
}
.cert-row .cert-info code {
    color: var(--accent);
    font-size: 0.78rem;
}
.cert-row .remove {
    background: transparent;
    color: var(--muted);
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.45rem;
    font-size: 1.1rem;
}
.cert-row .remove:hover {
    color: var(--error);
}
.cert-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.cert-actions button {
    margin-left: 0;
}
#wallet-certs-panel {
    margin-top: 0.75rem;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.5rem;
}
.wallet-cert-row {
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
    font-size: 0.85rem;
}
.wallet-cert-row:last-child {
    border-bottom: none;
}
.wallet-cert-row .meta {
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: 0.72rem;
    word-break: break-all;
}
.wallet-cert-row button {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
    margin-top: 0.3rem;
}

/* Avatar preview block (shared between mint + edit) */
#mint-avatar-preview img,
#edit-avatar-preview img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    margin-top: 0.5rem;
}

/* ────────────────────────── Site footer ────────────────────────── */

.site-footer {
    max-width: 720px;
    margin: 2rem auto 2rem;
    padding: 0 1rem;
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.site-footer a {
    color: var(--muted);
}
.site-footer a:hover {
    color: var(--accent);
}

/* Auth pill (signed-in display) */
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.25rem 0.55rem 0.25rem 0.35rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--fg);
}
.user-pill:hover {
    background: var(--surface);
    border-color: var(--soft);
}
.user-pill .pill-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--line);
}
.user-pill .pill-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 0.35rem;
    z-index: 35;
}
.user-menu button,
.user-menu a {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--fg);
    padding: 0.5rem 0.65rem;
    border-radius: 5px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.user-menu button:hover,
.user-menu a:hover {
    background: var(--surface-muted);
    text-decoration: none;
}
.user-menu .menu-meta {
    padding: 0.35rem 0.65rem;
    color: var(--muted);
    font-size: 0.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

/* Mobile tuning */
@media (max-width: 600px) {
    .profile-head {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        text-align: center;
    }
    .avatar-wrap {
        margin-top: -52px;
    }
    .avatar-block {
        width: 112px;
        height: 112px;
    }
    .name-row {
        justify-content: center;
    }
    .profile-meta {
        padding-top: 0.25rem;
    }
}

/* ────────────────────────── Server-rendered fallback styles ──────────────────
   The /p/:outpoint, /h/:outpoint, /discover server-rendered pages use these
   class names. Keep the old layout intact for backward compat — the
   classic Facebook redesign only covers the SPA at /. ───────────────────── */

.token-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
.token-card .name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    color: var(--fg);
    font-size: 1.15rem;
}
.token-card .meta {
    color: var(--muted);
    font-family: ui-monospace, monospace;
    margin: 0.25rem 0;
    word-break: break-all;
    font-size: 0.8rem;
}
.token-card .actions {
    margin-top: 0.5rem;
}
.token-card button,
.token-card a {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
}

.avatar {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 2rem;
    color: var(--muted);
    text-transform: uppercase;
}

.profile-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.profile-nav {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.profile-nav a {
    color: var(--muted);
    text-decoration: none;
}
.profile-nav a:hover {
    color: var(--accent);
}
.profile-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.profile-hero .avatar {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    margin: 0;
}
.profile-hero-text {
    flex: 1;
    min-width: 0;
}
.profile-hero .display-name {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
}
.profile-hero .handles {
    margin: 0 0 0.5rem;
}
.profile-hero .bio {
    margin: 0.5rem 0;
}
.handles .handle-tag {
    display: inline-block;
    background: var(--surface-muted);
    color: var(--fg);
    border: 1px solid var(--line);
    font-weight: 500;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.88rem;
    margin: 0 0.15rem 0.15rem 0;
}
.handles .handle-tag:hover {
    background: var(--surface);
    color: var(--accent);
}
.badge-row {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
}
.badge-trusted {
    border-color: rgba(31, 122, 59, 0.35);
    background: rgba(31, 122, 59, 0.07);
}
.badge-known {
    border-color: var(--line);
    color: var(--muted);
}
.badge small {
    color: var(--fg);
    font-size: 0.72rem;
}
.profile-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.profile-section h2 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.profile-section .meta {
    margin: 0;
}
.profile-section .meta dt {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}
.profile-section .meta dt:first-child {
    margin-top: 0;
}
.profile-section .meta dd {
    margin: 0.15rem 0 0;
    word-break: break-all;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
}

/* Legacy cert classes used by /p/:outpoint server render */
.certs {
    margin: 1rem 0;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}
.certs-label {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.cert {
    font-size: 0.88rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    margin: 0.25rem 0;
    background: var(--surface-muted);
}
.cert-ok {
    border-left: 3px solid var(--ok);
}
.cert-bad {
    border-left: 3px solid var(--error);
    color: var(--muted);
}
.cert-badge {
    color: var(--ok);
    font-weight: bold;
}
.cert-type {
    font-family: ui-monospace, monospace;
    color: var(--accent);
    font-size: 0.78rem;
}
.cert-field {
    color: var(--fg);
    font-size: 0.82rem;
}
.cert-fields {
    margin-top: 0.25rem;
    padding-left: 1.25rem;
    color: var(--fg);
    font-size: 0.82rem;
}
.cert-kind {
    color: var(--muted);
    font-size: 0.7rem;
    border: 1px solid var(--line);
    padding: 0 0.3rem;
    border-radius: 3px;
    margin-left: 0.25rem;
}
.cert-issuer {
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: 0.74rem;
    margin-left: 0.5rem;
}
.cert-badge-unknown {
    color: var(--muted);
}
.cert-unknown {
    border-left: 3px solid var(--line);
}
.cert-encrypted {
    color: var(--muted);
    font-style: italic;
    font-size: 0.78rem;
}
.cert-thumb {
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    margin: 0 0.25rem;
}
.cert-issuer-known {
    color: var(--ok);
    font-weight: 600;
    margin-left: 0.5rem;
    font-size: 0.82rem;
}
.cert-issuer-known a {
    color: inherit;
    text-decoration: none;
    margin-left: 0.15rem;
}
@media (max-width: 540px) {
    .profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .badge-row {
        justify-content: center;
    }
}
