/* Truelogic Resource Hub homepage */
.dmd-hub {
    --hub-navy: #082f55;
    --hub-navy-deep: #052541;
    --hub-teal: #149c91;
    --hub-teal-soft: #eaf7f5;
    --hub-text: #172033;
    --hub-muted: #667085;
    --hub-line: #dfe5ec;
    --hub-soft: #f4f7f9;
    --hub-white: #ffffff;
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    color: var(--hub-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(20, 156, 145, .09), transparent 30%),
        linear-gradient(180deg, #f7f9fb 0%, #ffffff 52%, #f7f9fb 100%);
    font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.dmd-hub *, .dmd-hub *::before, .dmd-hub *::after { box-sizing: border-box; }
.dmd-hub img { max-width: 100%; }
.dmd-hub a { text-decoration: none; }

.dmd-hub-shell {
    width: min(1240px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.dmd-hub-topbar {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(8, 47, 85, .12);
}

.dmd-hub-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    color: var(--hub-navy) !important;
}

.dmd-hub-brand img { width: 174px; height: auto; display: block; }
.dmd-hub-brand-divider { width: 1px; height: 28px; background: #ccd5df; }
.dmd-hub-brand-name { font-size: 17px; font-weight: 700; white-space: nowrap; }

.dmd-hub-account { display: flex; align-items: center; gap: 13px; }
.dmd-hub-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--hub-navy);
    font-size: 13px;
    font-weight: 700;
}
.dmd-hub-user img { border-radius: 50%; }
.dmd-hub-account-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    color: var(--hub-navy) !important;
    background: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: 800;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.dmd-hub-account-link:hover { border-color: var(--hub-teal); background: #fff; transform: translateY(-1px); }
.dmd-hub-account-login { min-width: 86px; }

.dmd-hub-main { flex: 1; padding: clamp(58px, 8vw, 100px) 0 62px; }
.dmd-hub-hero { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.dmd-hub-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--hub-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.dmd-hub-hero h1 {
    margin: 0;
    color: var(--hub-navy);
    font: inherit;
    font-size: clamp(36px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
}
.dmd-hub-hero p {
    max-width: 720px;
    margin: 22px auto 0;
    color: var(--hub-muted);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.65;
}

.dmd-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.dmd-hub-card {
    min-height: 510px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--hub-line);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 40px rgba(8, 47, 85, .065);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dmd-hub-card-active { border-top: 4px solid var(--hub-teal); padding-top: 25px; }
.dmd-hub-card-active:hover {
    transform: translateY(-4px);
    border-color: rgba(20,156,145,.48);
    box-shadow: 0 22px 52px rgba(8, 47, 85, .11);
}
.dmd-hub-card-coming { background: rgba(255,255,255,.68); }

.dmd-hub-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dmd-hub-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eef2f5;
    color: #7d8998;
}
.dmd-hub-icon-active { background: var(--hub-teal-soft); color: var(--hub-teal); }
.dmd-hub-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dmd-hub-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf1f4;
    color: #6f7b89;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}
.dmd-hub-status-available { background: #e8f5ec; color: #137333; }

.dmd-hub-card-copy { margin-top: 32px; }
.dmd-hub-card-number {
    margin: 0 0 8px;
    color: var(--hub-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}
.dmd-hub-card h2 {
    margin: 0;
    color: var(--hub-navy);
    font: inherit;
    font-size: clamp(23px, 2.1vw, 29px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.dmd-hub-card-copy > p:last-child { margin: 15px 0 0; color: var(--hub-muted); font-size: 14px; line-height: 1.65; }

.dmd-hub-features {
    list-style: none !important;
    margin: 26px 0 28px !important;
    padding: 22px 0 0 !important;
    border-top: 1px solid #e8ecf0;
}
.dmd-hub-features li {
    position: relative;
    margin: 0 0 10px !important;
    padding: 0 0 0 22px !important;
    color: #475467;
    font-size: 13px;
}
.dmd-hub-features li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: .54em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hub-teal);
}
.dmd-hub-card-coming .dmd-hub-features li::before { background: #a7b0bb; }

.dmd-hub-cta {
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 9px;
    background: var(--hub-navy);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.dmd-hub-cta:hover { background: var(--hub-navy-deep); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(8,47,85,.15); }
.dmd-hub-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dmd-hub-cta-disabled { background: #edf1f4; color: #7c8795 !important; cursor: default; }
.dmd-hub-cta-disabled:hover { background: #edf1f4; transform: none; box-shadow: none; }
.dmd-hub-access-note { margin: 10px 0 0; color: var(--hub-muted); font-size: 11px; line-height: 1.45; }

.dmd-hub-security {
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 38px auto 0;
    padding: 17px 20px;
    border: 1px solid rgba(8,47,85,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.74);
}
.dmd-hub-security-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hub-teal-soft);
    color: var(--hub-teal);
}
.dmd-hub-security-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dmd-hub-security strong { color: var(--hub-navy); font-size: 13px; }
.dmd-hub-security p { margin: 2px 0 0; color: var(--hub-muted); font-size: 12px; }

.dmd-hub-footer {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(8, 47, 85, .12);
    color: #7b8795;
    font-size: 11px;
}

@media (max-width: 960px) {
    .dmd-hub-grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
    .dmd-hub-card { min-height: auto; }
}

@media (max-width: 640px) {
    .dmd-hub-shell { width: min(100% - 28px, 1240px); }
    .dmd-hub-topbar { min-height: 82px; }
    .dmd-hub-brand { gap: 10px; }
    .dmd-hub-brand img { width: 135px; }
    .dmd-hub-brand-divider { height: 22px; }
    .dmd-hub-brand-name { font-size: 13px; }
    .dmd-hub-user-name { display: none; }
    .dmd-hub-account-link { min-height: 36px; padding: 7px 11px; }
    .dmd-hub-main { padding: 50px 0 42px; }
    .dmd-hub-hero { margin-bottom: 34px; }
    .dmd-hub-card { padding: 23px; border-radius: 15px; }
    .dmd-hub-card-active { padding-top: 20px; }
    .dmd-hub-security { align-items: flex-start; }
    .dmd-hub-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 18px 0; }
}

/* Keep shortcode pages clean across common WordPress themes. */
body.dmd-resource-hub-page .entry-title,
body.dmd-resource-hub-page .page-title,
body.dmd-resource-hub-page .page-header { display: none !important; }
body.dmd-resource-hub-page .entry-content { margin-top: 0 !important; }
body.dmd-resource-hub-page .site-header,
body.dmd-resource-hub-page .site-footer,
body.dmd-resource-hub-page #masthead,
body.dmd-resource-hub-page #colophon { display: none !important; }
body.dmd-resource-hub-page .site-content,
body.dmd-resource-hub-page .content-area,
body.dmd-resource-hub-page .site-main,
body.dmd-resource-hub-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
