/*
Theme Name: ITI Account Theme
Author: ITI Core Team
Description: A basic WordPress theme for account.iti.org websites.
Version: 1.0.0
Requires at least: 6.6
*/

/* Overwrites */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


nav.auth-navigation a {
    text-decoration: none;
    font-weight: 600;
}

nav.auth-navigation>ul {
    list-style: none;
}


/* ----------------------------------------------------------------
  Design tokens — sourced from the new www.iti.org design system
 ---------------------------------------------------------------- */
:root {
    --teal: #00B2B8;
    /* primary accent / CTA          */
    --teal-dark: #009aa0;
    /* hover state                   */
    --teal-tint: #E5F7F8;
    /* light-teal contrast bg        */
    --blue: #00599B;
    /* blue        */
    --ink: #000000;
    /* headings                      */
    --text: #404040;
    /* body text                     */
    --text-soft: #6b6b6b;
    /* muted / helper text           */
    --border: #C8CECE;
    /* neutral borders / outlines    */
    --border-soft: #e6e9e9;
    /* hairlines                     */
    --bar: #000000;
    /* top utility bar               */

    --font-head: "Source Sans 3", system-ui, sans-serif;
    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;

    --radius-card: 24px;
    /* matches iti.org leadership cards */
    --radius-pill: 9999px;
    --radius-soft: 8px;

    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04),
        0 18px 40px -16px rgba(0, 80, 84, .18);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    background: var(--teal-tint);
    /* light-teal contrast background */
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ---------------- Top utility bar (replicated from iti.org) ------- */
.topbar {
    background: var(--bar);
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 clamp(16px, 5vw, 48px);
    font-family: var(--font-head);
    font-size: 14px;
    line-height: 1.25;
}

.topbar a {
    text-decoration: none;
    font-weight: 600;
    color: var(--teal);
}

.topbar a:hover {
    color: #fff;
}

.topbar a.is-muted {
    color: #fff;
    font-weight: 400;
}

.topbar a.is-muted:hover {
    color: var(--teal);
}

.topbar .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    display: inline-block;
}

.topbar .sep-expand {
    width: 4px;
    height: 4px;
    flex-grow: 10;
    display: inline-block;
}

.login-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* ---------------- Main / card ---------------- */
main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px 16px;
}

.account-aside {
    margin-left: 0px !important;
}

li.menu-item a {
    color: var(--teal);
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    border-radius: 80px;
    background-color: transparent;
    display: block;
}

li.menu-item.current-menu-item {
    color: white;
    border-radius: 80px;
    background-color: var(--blue);
}

li.menu-item.current-menu-item a {
    color: white;
}

li.menu-item:hover a {
    background-color: rgba(210, 210, 210, 0.202);
}

li.menu-item a i {
    background-color: var(--teal);
    border-radius: 50%;
    text-align: center;
    display: inline-block !important;
    height: 48px !important;
    width: 48px !important;
    color: white !important;
    padding-top: 14px;
    margin-top: 1px !important;
    margin-left: 5px;
}

@media (max-width: 980px) {
    .account-main {
        flex-direction: column;
    }

    .account-aside {
        width: 100%;
        order: 2;
        margin-left: auto !important;
    }
}


.card {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: clamp(32px, 5vw, 48px);

}

.card__logo {
    display: block;
    height: 52px;
    margin: 0 auto 28px;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* width: 100%; */
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease,
        color .15s ease, transform .05s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--teal);
    color: var(--ink);
    border-color: var(--teal);
}

.btn--primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.btn--outline {
    background: #fff;
    color: var(--ink);
    border-color: var(--border);
}

.btn--outline:hover {
    border-color: var(--ink);
    background: #fafbfb;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helper {
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--text-soft);
}

/* ---------------- Divider ---------------- */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 6px;
    color: var(--text-soft);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-soft);
}

/* ---------------- Other options (expander) ---------------- */
.more {
    margin-top: 8px;
    text-align: left;
}

.more>summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-soft);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    color: var(--teal-dark);
    user-select: none;
}

.more>summary::-webkit-details-marker {
    display: none;
}

.more>summary:hover {
    background: var(--teal-tint);
}

.more>summary .chev {
    transition: transform .2s ease;
    display: inline-flex;
}

.more[open]>summary .chev {
    transform: rotate(180deg);
}

.more__panel {
    margin-top: 8px;
    padding: 18px;
    background: var(--teal-tint);
    border-radius: var(--radius-soft);
    text-align: center;
}

.more__panel p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text);
}

/* ---------------- Sub links ---------------- */
.sublinks {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
    font-size: 14.5px;
}

.sublinks a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-head);
}

.sublinks a:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

/* ---------------- Footer ---------------- */
footer {
    padding: 24px clamp(16px, 5vw, 48px) 32px;
    color: var(--text-soft);
    font-size: 13.5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

footer a {
    color: var(--text-soft);
    text-decoration: none;
}

footer a:hover {
    color: var(--ink);
}

@media (max-width: 520px) {
    footer {
        justify-content: center;
        text-align: center;
    }
}