:root {
    /* ======================================================
       NOVELIQ COLOUR SYSTEM

       Change the values in this block to recolour the site.
       Page-specific styles must use these tokens, not hex codes.
       ====================================================== */

    /* Brand */
    --brand-primary: #0a443b;
    --brand-primary-hover: #06352e;
    --brand-accent: #fc6450;
    --brand-highlight: #78c7c3;
    --brand-on-primary: #ffffff;
    --brand-soft: #e8f4f1;
    --brand-soft-hover: #dcede9;
    --brand-border: #9ecfc7;
    --brand-primary-rgb: 10 68 59;

    /* Surfaces and typography */
    --app-background: #f8f5ee;
    --surface: #fffdf9;
    --surface-rgb: 255 253 249;
    --surface-muted: #f0ece4;
    --surface-hover: #f4f1ea;
    --text-primary: #16322c;
    --text-primary-rgb: 22 50 44;
    --text-muted: #68756f;
    --border: #ded9d0;
    --border-soft: #ebe7df;

    /* Shared typography scale
       Page styles should use these tokens instead of introducing
       smaller one-off text sizes. */
    --font-size-caption: 10px;
    --font-size-meta: 11px;
    --font-size-small: 12px;
    --font-size-control: 14px;
    --font-size-body: 16px;

    /* Feedback */
    --danger: #b4233b;
    --danger-soft: #fff0f3;
    --danger-border: #e6b8c1;
    --success: #356045;
    --success-soft: #edf6ef;
    --success-border: #bad3c0;

    /* Compatibility aliases used by existing components */
    --ivory: var(--app-background);
    --paper: var(--surface);
    --parchment: var(--surface-muted);
    --ink: var(--text-primary);
    --muted: var(--text-muted);
    --line: var(--border);
    --wine: var(--brand-primary);
    --pale: var(--brand-soft);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--ivory);
    color: var(--ink);
    font-size: var(--font-size-body);
    line-height: 1.5
}

body, button, input, select, textarea {
    font-family: Arial,sans-serif;
    color: inherit
}

button, input, select, textarea {
    font-size: var(--font-size-control)
}

button, a {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font: 500 24px Georgia,serif
}

    /*
 * This is retained for older brand links that use a text/icon mark.
 * It deliberately excludes the new Noveliq brand-name container.
 */
    .brand > span:not(.noveliq-brand-name) {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        color: var(--brand-on-primary);
        background: var(--wine);
        border-radius: 8px;
    }

.button {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 5px;
    border: 1px solid var(--line);
    font-weight: 700;
    text-decoration: none
}

    .button.primary, .landing-nav .button {
        background: var(--wine);
        color: var(--brand-on-primary);
        border-color: var(--wine)
    }

    .button.secondary {
        background: var(--paper)
    }

.identity-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .identity-links a {
        color: var(--text-primary);
        font-weight: 600;
        text-decoration: none;
    }

        .identity-links a:hover {
            color: var(--brand-primary);
        }

    .identity-links form {
        margin: 0;
    }

    .identity-links button {
        padding: 9px 14px;
        color: var(--brand-on-primary);
        font-weight: 600;
        background: var(--brand-primary);
        border: 0;
        border-radius: 5px;
    }

.identity-signed-in > a {
    font-size: 13px;
    color: var(--text-muted);
}


/* Account menu */

.account-menu {
    position: relative;
}

    .account-menu > summary {
        list-style: none;
    }

        .account-menu > summary::-webkit-details-marker {
            display: none;
        }

    .account-menu .account {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        color: var(--ink);
        background: var(--parchment);
        border: 1px solid var(--line);
        border-radius: 50%;
        font-weight: 700;
        cursor: pointer;
        user-select: none;
    }

    .account-menu[open] .account {
        color: var(--brand-on-primary);
        background: var(--wine);
        border-color: var(--wine);
    }

.account-menu-panel {
    position: absolute;
    z-index: 100;
    top: calc(100% + 11px);
    right: 0;
    width: 260px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 18px 45px rgba(37, 34, 31, 0.16);
}

.account-menu-user {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
}

    .account-menu-user > span {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: grid;
        place-items: center;
        color: var(--brand-on-primary);
        background: var(--wine);
        border-radius: 50%;
        font: 500 12px Georgia, serif;
    }

    .account-menu-user > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .account-menu-user strong {
        font: 500 14px Georgia, serif;
    }

    .account-menu-user small {
        overflow: hidden;
        color: var(--muted);
        font-size: var(--font-size-meta);
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.account-menu-panel > a,
.account-menu-panel > form > button {
    width: 100%;
    min-height: 45px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: var(--font-size-small);
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

    .account-menu-panel > a:hover,
    .account-menu-panel > form > button:hover {
        color: var(--wine);
        background: var(--surface-hover);
    }

.account-menu-panel > form {
    margin: 0;
}

    .account-menu-panel > form > button {
        color: var(--danger);
        border-bottom: 0;
        cursor: pointer;
    }

        .account-menu-panel > a > span,
        .account-menu-panel > form > button > span {
            width: 20px;
            color: var(--wine);
            font-size: 16px;
            text-align: center;
        }

@media (max-width: 700px) {
    .account-menu-panel {
        position: fixed;
        top: 66px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}



.noveliq-brand {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

    .noveliq-brand img {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        object-fit: contain;
    }

.noveliq-brand-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    line-height: 1;
}

    .noveliq-brand-name strong {
        color: var(--ink);
        font: 750 21px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        letter-spacing: -.035em;
    }

    .noveliq-brand-name small {
        color: var(--wine);
        font-size: var(--font-size-caption);
        font-weight: 800;
        letter-spacing: .25em;


}

@media (max-width: 700px) {
    .noveliq-brand {
        min-width: 0;
        gap: 7px;
    }

    .noveliq-brand img {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .noveliq-brand-name strong {
        font-size: 18px;
    }

    .noveliq-brand-name small {
        font-size: var(--font-size-caption);
        letter-spacing: .2em;
    }
}
