/*
    Visual refresh for Leven Met Parkinson.
    This file intentionally sits on top of the existing stylesheet so the
    original structure and behaviour can stay intact.
*/

@font-face {
    font-family: "Roboto";
    src: url("Roboto/Roboto-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("Roboto/Roboto-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("Roboto/Roboto-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Merriweather";
    src: url("merriweather/merriweather-webfont.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --lmp-bg: #17211f;
    --lmp-bg-deep: #101816;
    --lmp-surface: #22312d;
    --lmp-surface-soft: #2a3b36;
    --lmp-surface-raised: #30433d;
    --lmp-border: rgba(189, 226, 212, 0.16);
    --lmp-border-strong: rgba(189, 226, 212, 0.28);
    --lmp-text: #edf6f2;
    --lmp-muted: #b8c8c2;
    --lmp-primary: #6fd5b3;
    --lmp-primary-bright: #86e4c4;
    --lmp-primary-dark: #173d32;
    --lmp-accent: #f1aa70;
    --lmp-danger: #ff837b;
    --lmp-shadow: 0 18px 50px rgba(3, 10, 8, 0.22);
    --lmp-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--lmp-text);
    background: var(--lmp-bg-deep);
    font-family: "Roboto", "Segoe UI", Arial, sans-serif !important;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    color: #10201b;
    background: var(--lmp-primary-bright);
}

a {
    color: var(--lmp-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #ffc18f;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(111, 213, 179, 0.58);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
    color: var(--lmp-text);
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.25;
    text-wrap: balance;
}

p {
    margin: 0 0 1.15em;
}

hr {
    height: 1px;
    margin: 28px 0;
    border: 0;
    background: var(--lmp-border-strong);
}

/* Hero and navigation
--------------------------------------------------------------------------------------------------------------- */
.site-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    isolation: isolate;
    background-color: #050908;
    background-position: center center !important;
    background-repeat: no-repeat;
    background-size: cover !important;
}

.site-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(3, 8, 7, 0.54) 0%, transparent 32%),
        linear-gradient(180deg, transparent 55%, rgba(3, 8, 7, 0.74) 100%);
    pointer-events: none;
}

#header {
    position: relative;
    min-height: 500px;
    max-width: 1120px;
    padding: 0 28px;
}

#header #logo.site-brand {
    position: absolute;
    top: 38px;
    left: 50%;
    float: none;
    width: auto;
    padding: 0;
    transform: translateX(-50%);
}

#header #logo .site-brand__title {
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: "Roboto", "Segoe UI", sans-serif;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: center !important;
    text-transform: none;
    white-space: nowrap;
}

#header #logo .site-brand__link {
    display: block;
    padding: 10px 18px 12px;
    color: var(--lmp-primary-bright) !important;
    border: 1px solid rgba(134, 228, 196, 0.2);
    border-radius: 14px;
    background: rgba(8, 20, 17, 0.68);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

#header #logo .site-brand__link:hover {
    color: #a3f3d7 !important;
    border-color: rgba(134, 228, 196, 0.42);
}

#mainav {
    position: absolute;
    right: 28px;
    bottom: 28px;
    float: none;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(7, 15, 13, 0.78);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

#mainav ul {
    display: flex;
    align-items: center;
    gap: 3px;
    text-transform: none;
}

#mainav ul::before,
#mainav ul::after {
    display: none;
}

#mainav ul li {
    display: block;
    margin: 0;
    text-shadow: none;
}

#mainav li a {
    padding: 10px 15px;
    color: #f5fbf8;
    border: 0;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: none;
}

#mainav .active a {
    color: #10211b;
    border: 0;
    background: var(--lmp-primary);
}

#mainav .active a,
#mainav a:hover,
#mainav li:hover > a {
    color: #10211b;
    background: var(--lmp-primary-bright);
}

/* Main content
--------------------------------------------------------------------------------------------------------------- */
.row3 {
    color: var(--lmp-text);
    background:
        radial-gradient(circle at 50% 0%, rgba(111, 213, 179, 0.07), transparent 380px),
        var(--lmp-bg);
}

.row3 a {
    color: var(--lmp-accent);
}

.container {
    width: calc(100% - 40px);
    max-width: 1060px;
    padding: 58px 30px 66px;
}

main.container > .group {
    padding: clamp(26px, 4.5vw, 46px);
    border: 1px solid var(--lmp-border);
    border-radius: var(--lmp-radius);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: var(--lmp-shadow);
}

main.container > .group > div {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
}

main.container > .group > div > :first-child,
.news-body > :first-child {
    margin-top: 0;
}

main.container > .group > div > :last-child,
.news-body > :last-child {
    margin-bottom: 0;
}

.page-title {
    margin: 0 0 28px;
    color: var(--lmp-primary-bright);
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.025em;
}

.page-title::after {
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 15px;
    border-radius: 999px;
    content: "";
    background: var(--lmp-primary);
}

main.container > .group img {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(2, 8, 6, 0.2);
}

.intro {
    line-height: 1.75;
}

/* Blog
--------------------------------------------------------------------------------------------------------------- */
.news-item {
    max-width: 930px;
    min-height: 0;
    margin: 58px auto 76px;
}

.news-title {
    margin: 0 4px;
    color: var(--lmp-primary-bright);
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.2;
    text-shadow: none;
}

.news-title h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: inherit;
}

.news-date {
    display: block;
    margin-top: 8px;
    color: var(--lmp-muted) !important;
    font-family: "Roboto", "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.news-item > hr {
    margin: 18px 0;
}

.news-body {
    min-height: 0;
    padding: clamp(26px, 4.5vw, 42px);
    overflow: hidden;
    color: var(--lmp-text);
    border: 1px solid var(--lmp-border);
    border-radius: var(--lmp-radius);
    background: var(--lmp-surface-soft);
    box-shadow: var(--lmp-shadow);
    font-size: 18px;
    line-height: 1.72;
}

.news-body p {
    margin-top: 0;
    margin-bottom: 1.05em;
}

.news-body [style*="font-size"] {
    font-size: inherit !important;
}

.news-body [style*="line-height"] {
    line-height: inherit !important;
}

.news-body [style*="font-family"] {
    font-family: inherit !important;
}

.news-body [style*="color"] {
    color: inherit !important;
}

.news-body [style*="background"] {
    background: transparent !important;
}

.news-body [class^="MsoListParagraph"] {
    margin-left: 0 !important;
    text-indent: 0 !important;
}

.news-body o\:p {
    display: none;
}

.news-body img,
.news-video video,
.news-video iframe {
    max-width: 100% !important;
    height: auto;
    border-radius: 12px;
}

.news-media {
    float: right;
    max-width: min(320px, 42%);
    max-height: none;
    margin: 4px 0 22px 26px;
    padding: 0;
}

.news-media img {
    box-shadow: 0 12px 30px rgba(2, 8, 6, 0.26);
}

.news-comment {
    margin: 22px 0;
    padding: 24px;
    border: 1px solid var(--lmp-border);
    border-radius: 16px;
    background: var(--lmp-surface);
    box-shadow: 0 10px 28px rgba(2, 8, 6, 0.16);
}

.news-comment-name {
    color: var(--lmp-primary-bright);
    font-weight: 700;
}

.news-comment-date {
    color: var(--lmp-muted) !important;
}

.click-to-view-reply,
.click-to-post-reply {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 8px 0 22px;
    color: var(--lmp-primary-bright) !important;
    cursor: pointer;
    transition: color 180ms ease, opacity 180ms ease;
}

.click-to-view-reply:hover,
.click-to-post-reply:hover {
    color: #b0f7df !important;
    text-shadow: none;
}

.click-to-view-reply img,
.click-to-post-reply img {
    float: none !important;
    width: 44px !important;
    height: 44px;
    object-fit: contain;
}

.click-to-view-reply span,
.click-to-post-reply span {
    padding: 0 !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px;
}

.news-item-unhider {
    max-width: 930px;
    margin: 18px auto 40px;
    padding: 15px 22px;
    cursor: pointer;
    color: #11231d;
    border: 1px solid rgba(134, 228, 196, 0.62);
    border-radius: 999px;
    background: var(--lmp-primary);
    box-shadow: 0 12px 28px rgba(5, 22, 16, 0.22);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: transform 180ms ease, background-color 180ms ease;
}

.news-item-unhider:hover {
    background: var(--lmp-primary-bright);
    transform: translateY(-2px);
}

.news-item-unhider span {
    display: inline-block;
    margin-right: 8px;
}

/* Forms and tables
--------------------------------------------------------------------------------------------------------------- */
.row3 input:not([type="image"]):not([type="checkbox"]):not([type="radio"]),
.row3 textarea,
.row3 select {
    width: 100%;
    max-width: 620px;
    min-height: 46px;
    margin: 6px 0 18px;
    padding: 10px 13px;
    color: #17211f !important;
    border: 1px solid rgba(199, 220, 213, 0.72) !important;
    border-radius: 9px;
    background: #f8fbfa;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.row3 textarea {
    min-height: 150px;
    resize: vertical;
}

.row3 input[type="submit"],
.row3 input[type="button"],
#save-news-reply {
    display: inline-flex;
    width: auto !important;
    min-width: 180px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: #10211b !important;
    border-color: var(--lmp-primary) !important;
    border-radius: 999px;
    background: var(--lmp-primary);
    font-weight: 700;
    cursor: pointer;
}

.row3 input[type="submit"]:hover,
.row3 input[type="button"]:hover,
#save-news-reply:hover {
    background: var(--lmp-primary-bright);
}

table {
    overflow: hidden;
    color: #1b2824;
    border: 1px solid var(--lmp-border-strong);
    border-radius: 12px;
    background: #f4f8f6;
    box-shadow: var(--lmp-shadow);
    text-shadow: none;
}

th,
td {
    padding: 11px 13px;
    border-color: #d8e2de;
}

th {
    color: var(--lmp-text);
    background: #263a34;
}

tr,
#comments li {
    color: #1b2824;
    background: #f8fbfa;
}

tr:nth-child(even),
#comments li:nth-child(even) {
    background: #edf3f0;
}

/* Footer
--------------------------------------------------------------------------------------------------------------- */
.row5 {
    color: var(--lmp-muted);
    border-top: 1px solid var(--lmp-border);
    background: #111a18;
}

#footer {
    max-width: 1060px;
    padding: 34px 30px 30px;
}

#footer .title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: var(--lmp-text);
    border-color: var(--lmp-border);
    font-family: "Roboto", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

#footer li {
    display: flex;
    align-items: center;
    gap: 10px;
}

#footer a {
    color: var(--lmp-primary-bright);
}

.row6,
.row6 a {
    color: #91a19b;
    background: #0c1311;
}

#copyright {
    display: flex;
    max-width: 1060px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 30px;
    font-size: 13px;
}

#copyright .fl_left,
#copyright .fl_right {
    float: none;
}

#backtotop {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #10211b;
    background: var(--lmp-primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    line-height: 44px;
}

#backtotop.visible {
    opacity: 0.9;
}

#backtotop:hover {
    background: var(--lmp-primary-bright);
}

/* Responsive refinements
--------------------------------------------------------------------------------------------------------------- */
@media screen and (max-width: 900px) {
    .site-hero,
    #header {
        min-height: 420px;
    }

    #header {
        width: 100%;
        max-width: none;
        padding: 0 22px;
    }

    #header #logo.site-brand {
        top: 30px;
    }

    #header #logo .site-brand__title {
        float: none;
        min-width: 0 !important;
        margin: 0;
        text-align: center !important;
    }

    #mainav {
        right: 22px;
        bottom: 22px;
    }

    #mainav form {
        display: none;
    }

    .container,
    #footer,
    #copyright {
        width: calc(100% - 32px);
        max-width: none;
    }

    #copyright {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media screen and (max-width: 620px) {
    body {
        font-size: 16px;
        line-height: 1.68;
    }

    .site-hero,
    #header {
        min-height: 360px;
    }

    .site-hero {
        background-position: center center !important;
    }

    #header {
        padding: 0 16px;
    }

    #header #logo.site-brand {
        top: 22px;
        width: calc(100% - 32px);
    }

    #header #logo .site-brand__title {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        white-space: normal;
    }

    #header #logo .site-brand__link {
        padding: 9px 12px 10px;
        border-radius: 12px;
    }

    #mainav {
        right: 16px;
        bottom: 16px;
        left: 16px;
        padding: 7px;
        border-radius: 15px;
    }

    #mainav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    #mainav li a {
        padding: 9px 6px;
        font-size: 14px;
        text-align: center;
    }

    .container {
        width: 100%;
        padding: 34px 18px 48px;
    }

    main.container > .group {
        padding: 24px 19px;
        border-radius: 15px;
    }

    main.container > .group img {
        border-radius: 10px;
    }

    .news-item {
        margin: 42px auto 58px;
    }

    .news-title {
        margin-right: 2px;
        margin-left: 2px;
    }

    .news-title h2 {
        font-size: 1.8rem;
    }

    .news-date {
        font-size: 14px;
    }

    .news-body {
        padding: 24px 19px;
        border-radius: 15px;
        font-size: 17px;
        line-height: 1.66;
    }

    .news-media {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 22px;
    }

    .news-comment {
        margin: 18px 0;
        padding: 19px;
    }

    .news-item-unhider {
        border-radius: 14px;
    }

    .row3 input[type="submit"],
    .row3 input[type="button"],
    #save-news-reply {
        width: 100% !important;
        max-width: 100%;
        float: none !important;
    }

    .row3 > table,
    .container table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        white-space: nowrap;
    }

    #footer,
    #copyright {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    #footer .one_half {
        margin-bottom: 0;
    }

    #backtotop {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
