/* ============================================================
   accesso Information Portal — Skin Stylesheet
   Brand: accesso Technology Group
   Colors: #02BA33 green | #000000 black | #FFFFFF white
   Font: Inter (variable)
   ============================================================ */

/* === Override DNN default CSS variables (removes sky blue) === */
:root {
    --dnn-color-primary:          #02BA33;
    --dnn-color-primary-light:    #1EC94A;
    --dnn-color-primary-dark:     #019428;
    --dnn-color-primary-contrast: #FFFFFF;
    --dnn-color-primary-r:        2;
    --dnn-color-primary-g:        186;
    --dnn-color-primary-b:        51;

    --dnn-color-secondary:        #000000;
    --dnn-color-secondary-light:  #333333;
    --dnn-color-secondary-dark:   #000000;
    --dnn-color-secondary-contrast: #FFFFFF;

    --dnn-color-background-dark:  #E8E8E8;
}

/* === Override hardcoded DNN blue selectors === */
.dnn_acSelect { background-color: #E8E8E8 !important; color: #333 !important; }
.ui-progressbar .ui-progressbar-value { background-color: #02BA33 !important; background: #02BA33 !important; }
a, a:visited { color: #019428; }
a:active, a:focus, a:hover { color: #000000; }
.dnnFormItem input[type=submit], .dnnPrimaryAction, a.dnnPrimaryAction {
    background: #02BA33 !important;
    border-color: #019428 !important;
    color: #FFFFFF !important;
}
.dnnFormItem input[type=submit]:hover, .dnnPrimaryAction:hover, a.dnnPrimaryAction:hover {
    background: #1EC94A !important;
}

/* === Login form: Cancel button black, hide password reset === */
.dnnSecondaryAction, a.dnnSecondaryAction {
    background: #000000 !important;
    border-color: #333333 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}
.dnnSecondaryAction:hover, a.dnnSecondaryAction:hover {
    background: #333333 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}
[id$="_liPassword"] { display: none !important; }

/* === Fonts === */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* === Custom Properties === */
:root {
    --color-black:     #000000;
    --color-black-soft: #111111;
    --color-green:     #02BA33;
    --color-green-dark: #019428;
    --color-white:     #FFFFFF;
    --color-light-bg:  #F4F4F4;
    --color-border:    #E0E0E0;
    --color-mid-gray:  #767676;
    --color-text:      #1A1A1A;
    --font-family:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --header-height:   64px;
    --container-max:   1200px;
    --radius:          6px;
    --shadow-card:     0 1px 4px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.05);
}

/* === Reset / Base === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light-bg) !important;
    background-image: none !important;
}

/* === Layout Shell === */
.accesso-theme {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.accesso-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* === Header === */
.accesso-header {
    background: var(--color-black);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.accesso-header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 32px;
}

.accesso-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.accesso-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* === Desktop Navigation === */
.accesso-nav-desktop { flex: 1; overflow: visible; position: relative; }

.desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 2px;
    flex-wrap: nowrap;
}

.desktop-menu li { position: relative; }

.desktop-menu > li > a {
    display: flex;
    align-items: center;
    height: var(--header-height);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0 14px;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.desktop-menu > li > a:hover {
    color: #FFFFFF;
    border-bottom-color: rgba(255,255,255,0.3);
}

.desktop-menu > li.selected > a {
    color: #FFFFFF;
    border-bottom-color: var(--color-green);
}

/* Dropdown */
.desktop-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--color-black-soft);
    border-top: 2px solid var(--color-green);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 6px 0;
    list-style: none;
    margin: 0;
    z-index: 200;
}

.desktop-menu li:hover > ul { display: block; }

/* Third-level (fly-out): position to the right of the parent item, not below */
.desktop-menu li ul li ul {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 2px solid var(--color-green);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.desktop-menu li ul li a {
    display: block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 18px;
    transition: background 0.12s, color 0.12s;
    border-bottom: none;
}

.desktop-menu li ul li a:hover {
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
}

.desktop-menu li ul li.selected > a {
    color: var(--color-green);
}

/* === Header User / Login === */
.accesso-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.accesso-header-user a,
.dnnLogin a,
.dnnUser a,
.accesso-header-user span a {
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
    background: var(--color-green);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.accesso-header-user a:hover,
.dnnLogin a:hover,
.dnnUser a:hover {
    background: var(--color-green-dark);
    color: #FFFFFF;
    text-decoration: none;
}

/* === Main Content Area === */
.accesso-main {
    flex: 1;
    padding: 32px 0 48px;
}

.accesso-content-pane { width: 100%; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--color-black);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.75em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-top: 0; margin-bottom: 1em; }

a {
    color: var(--color-green-dark);
    text-decoration: none;
}
a:hover {
    color: var(--color-black);
    text-decoration: underline;
}
a:visited { color: var(--color-green-dark); }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
th { background: var(--color-black); color: #FFF; text-align: left; padding: 10px 14px; font-weight: 600; font-size: 14px; }
td { padding: 9px 14px; border-bottom: 1px solid var(--color-border); font-size: 14px; }
tr:hover td { background: #F2F2F2; }

img { max-width: 100%; height: auto; }

/* === DNN Module Containers === */
.DnnModule {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    overflow: hidden;
}

/* Module action menu */
.actionMenu { opacity: 0.3; transition: opacity 0.15s; }
.actionMenu:hover { opacity: 1; }

/* Module content inner padding */
.DnnModule .DnnModuleContent { padding: 20px; }

/* === DNN Document Module === */
.dnnFileList { list-style: none; padding: 0; margin: 0; }
.dnnFileList li { padding: 8px 0; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 10px; }
.dnnFileList li:last-child { border-bottom: none; }
.dnnFileList li a { font-size: 14px; font-weight: 500; }

/* === DNN Links Module === */
.LinksList { list-style: none; padding: 0; margin: 0; }
.LinksList li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.LinksList li:last-child { border-bottom: none; }
.LinksList li a { font-size: 14px; font-weight: 500; }

/* === DNN HTML Module === */
.dnnHtmlModule { padding: 20px; }

/* === Footer === */
.accesso-footer {
    background: var(--color-black);
    color: rgba(255,255,255,0.55);
    padding: 20px 0;
    font-size: 13px;
}

.accesso-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.accesso-footer-logo img {
    height: 44px;
    width: auto;
    opacity: 0.8;
}

.accesso-footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
.accesso-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.accesso-footer .dnnCopyright { font-size: 12px; }
.accesso-footer-legal { font-size: 12px; white-space: nowrap; }
.accesso-footer-sep { color: rgba(255,255,255,0.3); }

/* === Mobile Nav Toggle === */
.accesso-nav-mobile-toggle { display: none; }

/* === Responsive === */
@media (max-width: 900px) {
    .accesso-nav-desktop { display: none; }
    .accesso-nav-mobile-toggle { display: block; }
    .accesso-header-inner { gap: 16px; }
}

@media (max-width: 600px) {
    .accesso-main { padding: 16px 0 32px; }
    .accesso-container { padding: 0 16px; }
    .accesso-footer-inner { flex-direction: column; text-align: center; gap: 10px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
}

/* === Mobile Hamburger Menu === */
#menuToggle {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    user-select: none;
}

#menuToggle input[type="checkbox"] {
    width: 40px;
    height: 32px;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    top: -7px;
    left: -5px;
    margin: 0;
}

#menuToggle span {
    display: flex;
    width: 26px;
    height: 2px;
    margin-bottom: 5px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transform-origin: 5px 0;
    transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1), opacity 0.4s ease;
}

#menuToggle span:last-of-type { margin-bottom: 0; }
#menuToggle input:checked ~ span:nth-of-type(1) { transform: rotate(45deg) translate(-3px,-1px); }
#menuToggle input:checked ~ span:nth-of-type(2) { opacity: 0; transform: scaleX(0); }
#menuToggle input:checked ~ span:nth-of-type(3) { transform: rotate(-45deg) translate(0,-1px); }

.nav-drill {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: var(--color-black);
    padding: 80px 24px 32px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

#menuToggle input:checked ~ nav.nav-drill { left: 0; }

.nav-items { list-style: none; margin: 0; padding: 0; }

.nav-item a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.15s;
}

.nav-item a:hover { color: var(--color-green); text-decoration: none; }
.nav-item.selected > a { color: var(--color-green); }

.nav-back-link { font-size: 14px !important; opacity: 0.6; }

/* === DNN Persona Bar offset === */
body.dnn-has-persona-bar .accesso-header { top: 0; }

/* === Ensure em/i render italic (DNN default CSS resets these) === */
em, i { font-style: italic; }

/* === Update notice pages: neutralize email HTML table styles === */
.DnnModuleContent .MsoNormalTable { background: transparent !important; background-color: transparent !important; }
.DnnModuleContent table[style*="background: rgb(234, 240, 246)"] td { border-bottom: none !important; }

/* === Homepage black hero — rounded corners (revert: remove these 3 lines) === */
.DnnModule-398,
.DnnModule-398 .DnnModule { border-radius: 16px; }
.ac-hero { border-radius: 16px; }

/* === Homepage image collage === */
.ac-collage-wrap {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0 0;
}

.ac-collage-group {
    position: relative;
    width: 460px;
    height: 420px;
    flex-shrink: 0;
}

.ac-collage-group img {
    position: absolute;
    object-fit: cover;
    border-radius: 16px;
}

.ac-col-main {
    left: 0;
    top: 42px;
    width: 262px;
    height: 365px;
    z-index: 2;
}

.ac-col-tr {
    left: 202px;
    top: 0;
    width: 258px;
    height: 193px;
    z-index: 1;
}

.ac-col-br {
    left: 221px;
    top: 218px;
    width: 239px;
    height: 202px;
    z-index: 3;
}
