/* Pop: logo-inspired black/orange palette, exclusive to the portal. */
:root {
    --p-primary: #ff7a00;
    --p-primary-600: #c75100;
    --p-primary-050: #fff0df;
    --p-ink: #191919;
    --p-muted: #68615b;
    --p-border: #ded7d0;
    --p-bg: #fffaf5;
    --p-surface: #fff;
    --p-accent-soft: #ffe0c2;
    --p-accent: #ff9b40;
    --p-warm: #fff0df;
    --p-shadow: 4px 4px 0 #191919;
    --bs-primary: #ff7a00;
    --bs-primary-rgb: 255, 122, 0;
    --bs-body-color: #191919;
    --bs-body-font-family: 'DM Sans', 'Segoe UI', sans-serif;
    --bs-link-color: #a64000;
    --bs-link-color-rgb: 166, 64, 0;
    --bs-link-hover-color: #7d3000;
    --bs-link-hover-color-rgb: 125, 48, 0;
}
body.portal-shell { margin: 0; background: var(--p-bg); color: var(--p-ink); font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .page-title, .price-big { font-family: 'Space Grotesk', 'Segoe UI', sans-serif; letter-spacing: -.05em; }
.page-title { font-weight: 700; }
.portal-shell .row > *, .portal-shell .d-flex > div { min-width: 0; }
.muted-2 { color: var(--p-muted); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1100; padding: 1rem; background: #fff; border: 2px solid var(--p-ink); border-radius: 8px; }
.portal-shell a:focus-visible, .portal-shell button:focus-visible { outline: 3px solid var(--p-primary); outline-offset: 4px; }

/* Compact top navigation with a full-width mobile menu. */
.platform-nav { padding: 15px 24px; background: #191919; border-bottom: 2px solid var(--p-primary); }
.portal-nav-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; width: 100%; max-width: 1400px; margin-inline: auto; }
.platform-nav .navbar-brand { display: flex; align-items: center; gap: 9px; margin: 0; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.55rem; font-weight: 700; letter-spacing: -.06em; }
.navbar-brand img { object-fit: contain; }
.brand-caption { display: block; width: max-content; margin-top: 2px; padding: 2px 6px; transform: rotate(-4deg); color: var(--p-ink); background: var(--p-accent); border: 1px solid var(--p-ink); border-radius: 4px; font: 700 .52rem/1.2 'DM Sans', sans-serif; letter-spacing: .02em; }
.portal-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; width: 100%; }
.nav-link-plain { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--p-ink); font-size: .8rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; border-radius: 999px; }
.platform-nav .nav-link-plain { color: #fff; }
.platform-nav .nav-link-plain:hover { background: var(--p-accent-soft); color: var(--p-ink); }
.platform-nav .nav-link-plain[aria-current='page'] { background: var(--p-primary); border-color: var(--p-primary); color: var(--p-ink); }
.navbar-toggler { color: var(--p-primary); border: 2px solid var(--p-primary); border-radius: 10px; padding: 3px 9px; font-size: 1.5rem; box-shadow: 2px 2px 0 #9a4900; }
.portal-account { margin-left: 10px; }
.portal-user { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; background: #fff; border: 1.5px solid var(--p-ink); border-radius: 999px; color: var(--p-ink); font-size: .73rem; font-weight: 600; }
.portal-user:hover, .portal-user[aria-expanded='true'] { background: var(--p-primary-050); }
.portal-avatar { display: grid; place-items: center; width: 30px; height: 30px; background: var(--p-accent-soft); border-radius: 50%; font-size: 1.1rem; }
.portal-account-name { max-width: 115px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.portal-notification { font-size: .62rem; padding: 1px 5px; border-radius: 5px; color: var(--p-ink); background: var(--p-accent); }
.portal-account-menu { min-width: 260px; max-width: calc(100vw - 24px); padding: 6px; border: 1.5px solid var(--p-ink); border-radius: 15px; box-shadow: var(--p-shadow); }
.portal-account-menu .dropdown-item { padding: 10px 12px; border-radius: 8px; white-space: normal; font-size: .8rem; color: var(--p-ink); }
.portal-account-menu .dropdown-item:hover { background: var(--p-warm); }
.portal-workspace { display: flex; flex-direction: column; min-height: calc(100svh - 94px); }
.portal-workspace > main.container { width: 100%; max-width: 1400px; flex: 1; padding: 38px 32px 60px !important; }

/* Rounded shapes, ink outlines and offset shadows. */
.btn-p, .btn-ghost { padding: .75rem 1.05rem; border: 1.5px solid var(--p-ink); border-radius: 11px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-p { color: var(--p-ink); background: var(--p-primary); box-shadow: 3px 3px 0 var(--p-ink); }
.btn-p:hover, .btn-p:focus-visible { color: var(--p-ink); background: var(--p-accent); border-color: var(--p-ink); transform: translateY(-2px); box-shadow: 4px 5px 0 var(--p-ink); }
.btn-ghost { color: var(--p-ink); background: #fff; }
.btn-ghost:hover { color: var(--p-ink); background: var(--p-accent-soft); border-color: var(--p-ink); }
.btn-sm.btn-p, .btn-sm.btn-ghost { padding: .5rem .75rem; font-size: .76rem; }
.panel-card, .biz-card { background: #fff; border: 1.5px solid var(--p-ink); border-radius: 20px; }
.panel-card { overflow: hidden; }
.biz-card { box-shadow: 4px 4px 0 #dfd6ce; transition: transform .18s, box-shadow .18s; }
.biz-card:hover { transform: translateY(-3px); box-shadow: 5px 7px 0 var(--p-ink); }
.form-label { color: var(--p-ink); font-size: .83rem; font-weight: 700; }
.form-control, .form-select { min-width: 0; border: 1.5px solid #aaa099; border-radius: 10px; font-size: .88rem; padding: .7rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px #ff7a0026; }
.modal-content { border: 2px solid var(--p-ink); border-radius: 20px; box-shadow: 7px 7px 0 #1919194d; }
.portal-shell .table { --bs-table-color: var(--p-ink); }
.portal-shell .table thead th { background: var(--p-primary-050); color: var(--p-ink); font-size: .73rem; }
.portal-eyebrow { display: block; margin-bottom: .7rem; color: var(--bs-link-color); font-size: .67rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.portal-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.portal-section-heading h2 { margin: 0; font-size: 1.6rem; font-weight: 700; }
.portal-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; background: #191919; color: #fffaf5; border-top: 2px solid var(--p-ink); padding: 42px max(32px, calc((100% - 1336px) / 2)); }
.portal-footer-tag { display: block; color: var(--p-accent); font-size: .7rem; margin-bottom: 12px; }
.portal-footer strong { font: 700 clamp(1.7rem, 3vw, 2.5rem)/1.2 'Space Grotesk', sans-serif; letter-spacing: -.04em; }
.portal-footer-links { display: flex; flex-wrap: wrap; gap: 16px; max-width: 430px; }
.portal-footer a { color: #fffaf2; font-size: .75rem; text-decoration: none; }
.portal-footer a:hover { color: var(--p-accent); text-decoration: underline; }
.portal-footer a.portal-facebook { display: inline-flex; align-items: center; align-self: flex-start; color: #191919; background: #ff7a00; border-color: #ff7a00; }
.portal-footer a.portal-facebook:hover, .portal-footer a.portal-facebook:focus-visible { color: #191919; background: #ffab5e; border-color: #ffab5e; text-decoration: none; }
.portal-footer a.portal-facebook:focus-visible { outline: 2px solid #fffaf5; outline-offset: 3px; }
.portal-footer-links > span { width: 100%; color: #bdb6b0; font-size: .65rem; }

/* A playful launch page instead of an application shell. */
.portal-dashboard-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.portal-dashboard-heading h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; }
.portal-dashboard-heading p { margin: 0; font-size: .85rem; color: var(--p-muted); }
.portal-launchpad { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; margin-bottom: 28px; }
.portal-launch-banner { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); border-radius: 26px; border: 2px solid var(--p-ink); background: var(--p-accent); box-shadow: 6px 6px 0 var(--p-ink); }
.portal-launch-banner h2 { font-size: clamp(2.4rem, 4.8vw, 4.5rem); font-weight: 700; line-height: 1.04; }
.portal-launch-banner h2 span { display: inline-block; background: #fffaf2; padding: 0 8px 4px; transform: rotate(-2deg); }
.portal-launch-banner p { font-size: .9rem; max-width: 380px; line-height: 1.7; }
.portal-launch-banner > a { align-self: flex-start; padding: 11px 15px; border: 1.5px solid var(--p-ink); border-radius: 10px; color: #fff; background: var(--p-ink); text-decoration: none; font-size: .8rem; font-weight: 700; box-shadow: 3px 3px 0 #7d3900; }
.portal-launch-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; min-height: 350px; padding: 36px; background: #252525; border: 2px solid var(--p-ink); border-radius: 26px; }
.portal-art-star { position: absolute; top: 20px; right: 24px; font-size: 3.4rem; color: var(--p-primary); transform: rotate(15deg); }
.portal-art-title { display: block; align-self: flex-start; background: var(--p-accent); border: 1.5px solid var(--p-ink); border-radius: 999px; padding: 7px 14px; font-size: .75rem; font-weight: 700; transform: rotate(-5deg); margin-bottom: 25px; }
.portal-art-card { display: flex; align-items: center; gap: 16px; width: 90%; border: 1.5px solid var(--p-ink); border-radius: 16px; padding: 20px; background: #fff; box-shadow: 5px 5px 0 var(--p-ink); font: 700 1.3rem 'Space Grotesk', sans-serif; }
.portal-art-card > i { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--p-primary-050); color: var(--p-primary); }
.portal-art-card:nth-of-type(1) { transform: rotate(-5deg); z-index: 2; }
.portal-art-card:nth-of-type(2) { transform: translate(15px, -2px) rotate(4deg); background: var(--p-accent); z-index: 1; }
.portal-art-card:nth-of-type(3) { transform: translate(-8px, -3px) rotate(-2deg); background: var(--p-warm); }
.portal-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 36px; }
.portal-metric { display: flex; align-items: center; gap: 18px; padding: 20px 26px; background: var(--p-accent-soft); border: 1.5px solid var(--p-ink); border-radius: 17px; }
.portal-metric:last-child { background: #f0ece7; }
.portal-metric > i { font-size: 1.5rem; }
.portal-metric strong { font: 700 2.3rem/1.2 'Space Grotesk', sans-serif; }
.portal-metric span { font-size: .8rem; }
.business-card { overflow: hidden; }
.business-card .card-body { background: linear-gradient(var(--p-card-tint, #fff0df) 0 100px, #fff 100px); }
.business-card h5 { font-size: 1.08rem; line-height: 1.4; overflow-wrap: anywhere; }
.business-card .biz-icon { width: 52px; height: 52px; flex-shrink: 0; object-fit: contain; background: #fff; border: 1.5px solid var(--p-ink); border-radius: 15px; color: var(--business-color, var(--p-primary)); }
.business-card .biz-color { display: inline-block; width: 11px; height: 11px; border: 1px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--p-border); }
.business-card .btn-group { gap: 5px; }
.business-card .btn-group > .btn { border-radius: 9px !important; margin: 0 !important; }
.business-card .btn-group > .btn:first-child { flex-grow: 3; box-shadow: none; }
.portal-quick-link { display: flex; align-items: center; gap: 14px; background: var(--p-accent-soft); border: 1.5px solid var(--p-ink); border-radius: 17px; padding: 22px; color: var(--p-ink); text-decoration: none; transition: transform .15s; }
.portal-resource-grid > :nth-child(2) .portal-quick-link { background: #f0ece7; }
.portal-resource-grid > :nth-child(3) .portal-quick-link { background: var(--p-warm); }
.portal-quick-link > i { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; background: #fff; border: 1px solid var(--p-ink); border-radius: 50%; font-size: 1.2rem; }
.portal-quick-link strong { display: block; font-size: .88rem; }
.portal-quick-link small { font-size: .73rem; }
.portal-quick-link:hover { color: var(--p-ink); transform: translateY(-3px); }

/* Color blocks carry through public pages, wiki, videos and access. */
.features-hero, .wiki-hero { position: relative; padding: clamp(25px, 4vw, 48px); color: var(--p-ink); background: var(--p-accent-soft); border: 2px solid var(--p-ink); border-radius: 26px; box-shadow: 6px 6px 0 var(--p-ink); }
.features-hero .hero-title, .wiki-hero h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.06; }
.features-hero .hero-title span { color: var(--bs-link-color) !important; }
.features-hero .hero-sub { color: var(--p-ink); font-size: .95rem; line-height: 1.7; }
.features-hero::after, .features-hero .hero-lines { display: none; }
.hero-badge { color: var(--p-ink); background: var(--p-accent); border: 1px solid var(--p-ink); }
.features-hero .stat-chip { background: #fff; border: 1px solid var(--p-ink); box-shadow: none; border-radius: 8px; font-size: .75rem; }
.features-hero .btn-light, .wiki-hero .btn-light { color: var(--p-ink); background: var(--p-primary); border: 1.5px solid var(--p-ink); border-radius: 10px; }
.features-hero .btn-light:hover, .wiki-hero .btn-light:hover { background: var(--p-accent); }
.features-hero .btn-outline-light { color: var(--p-ink); border: 1.5px solid var(--p-ink); background: #fff; border-radius: 10px; }
.features-hero .btn-outline-light:hover { background: var(--p-warm); }
.mod-item { border: 1.5px solid var(--p-ink); border-radius: 10px; }
.mod-item.active { color: var(--p-ink); background: var(--p-primary); border-color: var(--p-ink); box-shadow: 3px 3px 0 var(--p-ink); }
.mod-item.active i { color: var(--p-ink); }
.feat-item { background: var(--p-primary-050); border: 1px solid #e2c6ad; border-radius: 9px; }
.price-big { font-size: 2rem; }
.wiki-hero .portal-eyebrow { color: var(--p-ink); }
.wiki-hero p { color: var(--p-ink); }
.wiki-search { max-width: 750px; }
.wiki-search .form-control { border: 1.5px solid var(--p-ink) !important; background: #fff; }
.wiki-search .bi-search { color: var(--p-muted) !important; opacity: 1 !important; }
.wiki-card { background: #fff; border: 1.5px solid var(--p-ink); border-radius: 17px; padding: 24px; box-shadow: 3px 3px 0 #dfd6ce; }
.wiki-card:hover { color: var(--p-ink); border-color: var(--p-ink); box-shadow: 5px 6px 0 var(--p-ink); }
.wiki-card h6 { font-size: 1.07rem; line-height: 1.4; }
.wiki-card p { line-height: 1.65; }
.wiki-cat-chip { border: 1.5px solid var(--p-ink); border-radius: 999px; }
.wiki-cat-chip.active { color: var(--p-ink); background: var(--p-accent); border-color: var(--p-ink); }
.wiki-body { overflow-wrap: anywhere; }
.wiki-body blockquote { color: var(--p-ink); border-color: var(--p-primary); background: var(--p-primary-050); }
.wiki-body pre { background: #191919; }
.wiki-body code { overflow-wrap: anywhere; }
.wiki-side { top: 112px; }
.portal-product-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.portal-product-hero .hero-sub { margin-inline: 0; }
.portal-product-map { display: flex; flex-direction: column; gap: 13px; padding: 28px; border: 1.5px solid var(--p-ink); border-radius: 20px; background: var(--p-accent); transform: rotate(2deg); }
.portal-map-core { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; }
.portal-map-core > i { display: grid; place-items: center; width: 50px; height: 50px; font-size: 1.6rem; background: var(--p-warm); border: 1px solid var(--p-ink); border-radius: 14px; }
.portal-map-core strong { font-size: 1.3rem; }
.portal-map-core span { flex-basis: 100%; font-size: .76rem; }
.portal-map-tile { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--p-ink); border-radius: 12px; background: #fff; box-shadow: 3px 3px 0 var(--p-ink); font-size: .84rem; font-weight: 700; }
.portal-map-tile > i:last-child { margin-left: auto; color: var(--p-primary); }
.portal-login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 28px; max-width: 1050px; margin: 24px auto; }
.portal-login-intro { position: relative; overflow: hidden; padding: 42px 34px; border: 2px solid var(--p-ink); border-radius: 24px; background: var(--p-accent); }
.portal-login-intro .portal-eyebrow { color: var(--p-ink); }
.portal-login-intro h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); line-height: 1.07; margin: 24px 0; font-weight: 700; }
.portal-login-intro p { font-size: .9rem; line-height: 1.8; max-width: 320px; }
.portal-login-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; position: relative; z-index: 1; }
.portal-login-pills span { padding: 8px 12px; border: 1px solid var(--p-ink); border-radius: 999px; background: #fff; font-size: .7rem; }
.portal-login-decoration { position: absolute; right: -20px; bottom: -65px; font-size: 15rem; color: #19191916; }
.portal-login-card { max-width: 500px; height: 100%; margin-inline: auto; background: #fff; border: 2px solid var(--p-ink); box-shadow: 6px 6px 0 var(--p-ink); }
.portal-login-card .card-body > .text-center > img { height: 58px; padding: 8px; background: var(--p-accent-soft); border-radius: 15px; }
.portal-video-heading { background: var(--p-accent-soft); border: 2px solid var(--p-ink); border-radius: 22px; padding: 32px; box-shadow: 5px 5px 0 var(--p-ink); }

@media (max-width: 1199.98px) {
    .platform-nav { padding: 12px 24px; }
    .portal-links { justify-content: flex-start; padding-top: 14px; }
    .portal-links > .nav-link-plain { flex: 0 0 calc(50% - 4px); border-radius: 10px; }
    #portal-navigation { max-height: calc(100svh - 90px); overflow-y: auto; }
    .portal-account { width: 100%; margin: 12px 0 4px; }
    .portal-user { width: 100%; }
    .portal-account-name { max-width: none; margin-right: auto; }
    .portal-account-menu { position: static !important; transform: none !important; margin-top: 8px !important; max-width: 100%; }
    .portal-workspace > main.container { padding-inline: 24px !important; }
}
@media (max-width: 991.98px) { .wiki-side { position: static; } .portal-launch-art { padding: 24px; } .portal-art-card { width: 100%; font-size: 1.1rem; padding: 16px; } }
@media (max-width: 767.98px) {
    .portal-launchpad, .portal-product-hero, .portal-login-layout { grid-template-columns: minmax(0, 1fr); }
    .portal-launch-art { min-height: 300px; }
    .portal-product-map { transform: none; }
    .portal-metric { flex-wrap: wrap; gap: 8px 12px; padding: 18px; }
    .portal-metric span { flex-basis: 100%; font-size: .73rem; }
    .portal-metrics { gap: 16px; }
    .portal-login-intro { padding: 28px; }
}
@media (max-width: 575.98px) {
    .platform-nav { padding-inline: 16px; }
    .portal-nav-container { gap: 8px; }
    .portal-workspace > main.container { padding: 26px 16px 40px !important; }
    .portal-dashboard-heading h1 { font-size: 1.7rem; }
    .portal-launch-banner { padding: 26px; }
    .portal-launch-banner h2 { font-size: 2.65rem; }
    .portal-launch-art { min-height: 285px; padding: 28px; }
    .portal-art-card { width: 95%; padding: 14px; font-size: 1rem; }
    .portal-art-star { font-size: 2.5rem; top: 10px; right: 16px; }
    .portal-art-title { font-size: .65rem; }
    .portal-section-heading h2 { font-size: 1.4rem; }
    .portal-metric strong { font-size: 2rem; }
    .portal-footer { padding: 32px 20px; }
    .portal-footer-links { gap: 12px; }
    .features-hero .hero-sub { font-size: .9rem; }
    .feat-grid { grid-template-columns: 1fr; }
    .wiki-search { flex-wrap: wrap; }
    .wiki-search > .position-relative { flex-basis: 100%; }
    .wiki-search > button { width: 100%; }
    .wiki-body pre { padding: 14px; }
    .panel-card .card-body.p-5 { padding: 24px !important; }
    .portal-video-heading { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .biz-card:hover, .wiki-card:hover, .btn-p:hover, .portal-quick-link:hover { transform: none; }
}
