/*!
 * PlazaSoftware society theme
 * --------------------------------------------------------------------------------------------
 * Loaded only in society mode (configurations "Society" = 1, App\Support\Terms), after theme.css
 * and legacy.css in the shell, and after entry.css on the main screen, sign-in and error pages.
 * Plaza mode never loads it, so the plaza look is unchanged.
 *
 * Evergreen and brass: a deep forest-green shell, warm ivory canvas, emerald actions and a thin
 * brass accent, with a serif display face for page titles. Mostly token overrides (theme.css and
 * entry.css read the same --plz-* variables), plus the few places those files hard-code the blue.
 *
 * Sections
 *   1  Tokens               4  Page heads, cards, tables
 *   2  Top bar and brand    5  Projects dashboard (building map colours)
 *   3  Sidebar              6  Entry pages: main screen, sign-in, errors
 */

/* =============================================================================================
   1. Tokens
   ============================================================================================= */

:root {
    --plz-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

    --plz-bg: #f5f3ee;
    --plz-surface: #ffffff;
    --plz-surface-2: #faf8f4;
    --plz-line: #e6e1d6;
    --plz-line-soft: #efebe3;
    --plz-line-strong: #d3ccbd;
    --plz-ink: #17231f;
    --plz-ink-2: #4b5751;
    --plz-ink-3: #69746e;

    --plz-brand: #1d6b58;
    --plz-brand-600: #175a4a;
    --plz-brand-700: #114538;
    --plz-brand-50: #edf5f1;
    --plz-brand-100: #d4e8df;
    --plz-ring: 0 0 0 3px rgba(29, 107, 88, .22);

    --plz-gold: #c39a45;
    --plz-gold-2: #e2c27e;
    --plz-gold-50: #fbf5e8;

    --plz-nav-bg: #0d241f;
    --plz-nav-bg-2: #143029;
    --plz-nav-line: rgba(226, 194, 126, .10);
    --plz-nav-ink: #b7cbc3;
    --plz-nav-ink-2: #86a198;
    --plz-nav-ink-active: #ffffff;

    --plz-success-btn: #1d6b58;
    --plz-success-btn-600: #175a4a;

    --plz-shadow: 0 1px 2px rgba(30, 36, 28, .05), 0 1px 3px rgba(30, 36, 28, .04);
    --plz-shadow-md: 0 4px 14px rgba(30, 36, 28, .08), 0 1px 3px rgba(30, 36, 28, .05);
    --plz-shadow-lg: 0 14px 34px rgba(20, 30, 24, .16);

    --plz-chart-1: #1d6b58; --plz-chart-2: #c97a3d; --plz-chart-3: #6aa58f; --plz-chart-4: #c39a45;
    --plz-chart-5: #b5727f; --plz-chart-6: #3f7d3a; --plz-chart-7: #5a5f9e; --plz-chart-8: #c2463f;
    --plz-chart-grid: #efebe3;
}

/* =============================================================================================
   2. Top bar and brand
   ============================================================================================= */

body.plz.plz-society .plz-brand__mark {
    background: linear-gradient(150deg, #2b8a71 0%, var(--plz-brand-700) 100%);
    box-shadow: inset 0 0 0 1px rgba(226, 194, 126, .45), inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .3);
}
body.plz.plz-society .plz-brand__name { font-family: var(--plz-display); font-size: 15.5px; font-weight: 600; letter-spacing: .005em; }
body.plz.plz-society .plz-brand__sub { color: var(--plz-gold-2); opacity: .82; letter-spacing: .02em; }

/* A hairline of brass under the white bar. */
body.plz.plz-society .main-header .navbar { box-shadow: inset 0 -1px 0 var(--plz-line); }
body.plz.plz-society .main-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, var(--plz-gold) 0%, rgba(195, 154, 69, .55) 18%, rgba(29, 107, 88, .25) 55%, rgba(29, 107, 88, 0) 100%);
}

/* =============================================================================================
   3. Sidebar
   ============================================================================================= */

body.plz.plz-society .main-sidebar,
body.plz.plz-society .main-header .logo {
    background: var(--plz-nav-bg);
}
body.plz.plz-society .main-sidebar {
    background-image: linear-gradient(180deg, rgba(29, 107, 88, .16) 0%, rgba(13, 36, 31, 0) 38%);
}
body.plz.plz-society .plz-modchip__icon { background: rgba(195, 154, 69, .16); color: var(--plz-gold-2); }
body.plz.plz-society .plz-nav__heading { color: rgba(226, 194, 126, .62) !important; letter-spacing: .12em; }

body.plz.plz-society .sidebar-menu > li > a:focus-visible { outline-color: var(--plz-gold-2); }
body.plz.plz-society .sidebar-menu > li:not(.treeview).active > a,
body.plz.plz-society .sidebar-menu > li > a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(195, 154, 69, .16) 0%, rgba(29, 107, 88, .18) 100%);
    box-shadow: inset 3px 0 0 var(--plz-gold);
}
body.plz.plz-society .sidebar-menu > li:not(.treeview).active > a > .fa:first-child,
body.plz.plz-society .sidebar-menu > li > a[aria-current="page"] > .fa:first-child { color: var(--plz-gold-2); }
body.plz.plz-society .sidebar-menu .treeview-menu { border-left-color: rgba(226, 194, 126, .14); }
body.plz.plz-society .sidebar-menu .treeview-menu > li.active > a,
body.plz.plz-society .sidebar-menu .treeview-menu > li > a[aria-current="page"] { background: rgba(29, 107, 88, .22); }
body.plz.plz-society .sidebar-menu .treeview-menu > li.active > a:before,
body.plz.plz-society .sidebar-menu .treeview-menu > li > a[aria-current="page"]:before { background: var(--plz-gold); }

/* =============================================================================================
   4. Page heads, cards, tables
   ============================================================================================= */

body.plz.plz-society .plz-page-head__title,
body.plz.plz-society .plz-toolbar__title {
    font-family: var(--plz-display);
    font-weight: 600;
    letter-spacing: 0;
}
body.plz.plz-society .plz-page-head__title { font-size: 25px; }
body.plz.plz-society .plz-page-head__eyebrow { color: #9a7a35; letter-spacing: .1em; }
body.plz.plz-society .plz-page-head__eyebrow::before {
    content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 8px 0 0; vertical-align: middle;
    background: var(--plz-gold);
}
body.plz.plz-society .plz-card__title { letter-spacing: 0; }
body.plz.plz-society .plz-card,
body.plz.plz-society .content .panel,
body.plz.plz-society .content .portlet,
body.plz.plz-society .content .x_panel,
body.plz.plz-society .content .box {
    border-color: var(--plz-line);
}
body.plz.plz-society .content .table > thead > tr > th,
body.plz.plz-society .plz-table thead th { background-color: var(--plz-surface-2); }
body.plz.plz-society ::selection { background: var(--plz-gold-50); }

/* =============================================================================================
   5. Projects dashboard (building map: one row per block)
   ============================================================================================= */

body.plz.plz-society .pd {
    --pd-rented: #1d6b58;      --pd-rented-bg: #e6f2ed;      --pd-rented-bd: #a9cfc0;
    --pd-sold-rented: #c39a45; --pd-sold-rented-bg: #fbf3e2; --pd-sold-rented-bd: #e6cf9c;
}
body.plz.plz-society .pd-tip__swatch { background: #1d6b58; }

/* =============================================================================================
   6. Entry pages: main screen, sign-in, errors (body.plz-society on the entry layouts)
   ============================================================================================= */

body.plz-society .plz-entry-mark {
    background: linear-gradient(150deg, #2b8a71 0%, var(--plz-brand-700) 100%);
    box-shadow: inset 0 0 0 1px rgba(226, 194, 126, .45), 0 1px 2px rgba(0, 0, 0, .3);
}
body.plz-society .plz-home__top {
    background-image:
        radial-gradient(820px 460px at 4% -18%, rgba(43, 138, 113, .42), rgba(43, 138, 113, 0) 66%),
        radial-gradient(760px 520px at 100% 0%, rgba(195, 154, 69, .14), rgba(195, 154, 69, 0) 70%),
        linear-gradient(172deg, #123128 0%, #0d241f 58%, #0a1d19 100%);
}
body.plz-society .plz-home__title,
body.plz-society .plz-auth__copy h2,
body.plz-society .plz-auth__brandname { font-family: var(--plz-display); font-weight: 600; letter-spacing: 0; }
body.plz-society .plz-home__title { font-size: 44px; }
body.plz-society .plz-home__eyebrow { color: var(--plz-gold-2); }
body.plz-society .plz-home__eyedot { background: var(--plz-gold); box-shadow: 0 0 0 4px rgba(195, 154, 69, .2); }
body.plz-society .plz-home__skyline .b { fill: rgba(255, 255, 255, .035); stroke: rgba(226, 194, 126, .16); }
body.plz-society .plz-home__skyline .w rect,
body.plz-society .plz-home__skyline .w path { fill: rgba(226, 194, 126, .16); }
body.plz-society .plz-home__skyline .t { fill: rgba(106, 165, 143, .14); stroke: rgba(106, 165, 143, .22); stroke-width: 1; }

body.plz-society .plz-hcard[data-module="Project"],
body.plz-society .plz-hcard--project {
    --hc-a: #1d6b58; --hc-a2: #6aa58f; --hc-a3: #d4e8df; --hc-tint: #eef6f2; --hc-ink: #175a4a; --hc-dot: rgba(29, 107, 88, .16);
}
body.plz-society .plz-hcard__art .u-r { fill: #1d6b58; }

body.plz-auth.plz-society {
    background-image:
        radial-gradient(900px 560px at 6% -10%, rgba(43, 138, 113, .32), rgba(43, 138, 113, 0) 64%),
        radial-gradient(900px 620px at 100% 110%, rgba(195, 154, 69, .16), rgba(195, 154, 69, 0) 62%),
        radial-gradient(rgba(255, 255, 255, .045) 1px, rgba(0, 0, 0, 0) 1px),
        linear-gradient(170deg, #12302a 0%, #0d241f 55%, #091b17 100%);
    background-size: auto, auto, 24px 24px, auto;
}
body.plz-auth.plz-society .plz-auth__pitch {
    background-color: #102c26;
    background-image:
        radial-gradient(560px 320px at 0% 0%, rgba(43, 138, 113, .40), rgba(43, 138, 113, 0) 66%),
        radial-gradient(420px 300px at 100% 30%, rgba(195, 154, 69, .16), rgba(195, 154, 69, 0) 70%);
}
body.plz-auth.plz-society .plz-auth__brandsub { color: var(--plz-gold-2); }
body.plz-auth.plz-society .plz-auth__copy p { color: #c6d6cf; }
body.plz-auth.plz-society .plz-auth__points li { border-color: rgba(226, 194, 126, .28); }
body.plz-society .plz-hcard__art .soc-roof { stroke: var(--hc-a); }
body.plz-society .plz-hcard__art .u-g { fill: #c39a45; }
