:root {
    --font-main: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --color-primary: #00a9b5;
    --color-primary-strong: #008c99;
    --color-primary-light: rgba(0, 169, 181, 0.12);
    --color-red: #dc2f55;
    --color-red-light: rgba(220, 47, 85, 0.12);
    --color-green: #16a56f;
    --color-green-light: rgba(22, 165, 111, 0.14);
    --color-bg: #f5f7fb;
    --color-bg-soft: #eef3f7;
    --color-surface: #ffffff;
    --color-surface-2: #eef3f7;
    --color-border: rgba(20, 35, 55, 0.12);
    --color-text: #192230;
    --color-muted: #607086;
    --color-heading: #111827;
    --color-white: #ffffff;
    --color-gray-900: var(--color-surface);
    --color-gray-700: var(--color-surface-2);
    --color-gray-300: rgba(96, 112, 134, 0.35);
    --color-gray-200: var(--color-muted);
    --shadow-sm: 0 10px 24px rgba(16, 24, 40, 0.08);
    --shadow-md: 0 20px 50px rgba(16, 24, 40, 0.12);
    --transition: all 220ms ease;
    --container-width-lg: min(1180px, 90vw);
    --container-width-md: 92vw;
    --form-width: min(720px, 92vw);
    --card-border-radius-1: 6px;
    --card-border-radius-2: 8px;
    --card-border-radius-3: 8px;
    --card-border-radius-4: 8px;
    --card-border-radius-5: 8px;
    --icon-filter: none;
}

:root[data-theme="dark"] {
    --color-bg: #111820;
    --color-bg-soft: #17212b;
    --color-surface: #1d2733;
    --color-surface-2: #243141;
    --color-border: rgba(226, 232, 240, 0.1);
    --color-text: #d8e1ed;
    --color-muted: #9aa9bd;
    --color-heading: #f8fafc;
    --color-gray-900: var(--color-surface);
    --color-gray-700: var(--color-surface-2);
    --color-gray-300: rgba(216, 225, 237, 0.28);
    --color-gray-200: var(--color-muted);
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 26px 60px rgba(0, 0, 0, 0.28);
    --icon-filter: invert(1);
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 0.95rem;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 999px;
}

.container {
    width: var(--container-width-lg);
    margin-inline: auto;
}

section {
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.section__extra-margin {
    margin-top: 7rem;
}

h1, h2, h3, h4, h5 {
    color: var(--color-heading);
    line-height: 1.25;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    margin: 1rem 0;
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    margin: 1rem 0;
}

h3 {
    font-size: 1.12rem;
    margin: 0.85rem 0 0.55rem;
}

h4 {
    font-size: 1rem;
}

a {
    color: var(--color-heading);
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

img {
    display: block;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

.ui-icon,
.safe-editor__button img {
    width: 1.1rem !important;
    height: 1.1rem;
    object-fit: contain;
    filter: var(--icon-filter);
}

nav {
    width: 100vw;
    height: 4.75rem;
    position: fixed;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
}

nav button {
    display: none;
}

.nav__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__logo {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-heading);
}

.nav__logo::after {
    content: ".";
    color: var(--color-primary);
}

.nav__items {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
    padding: 0.25rem;
    border: 1px solid color-mix(in srgb, var(--color-border) 82%, var(--color-primary));
    border-radius: 999px;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--color-surface-2) 92%, var(--color-primary)),
            color-mix(in srgb, var(--color-surface) 94%, transparent)
        );
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--color-white) 5%, transparent),
        0 8px 22px rgba(0, 0, 0, 0.14);
}

.nav__items:empty {
    display: none;
}

.nav__items > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    transition: var(--transition);
}

.nav__items > li > a:hover {
    background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
    color: var(--color-primary);
}

.nav__items > li > a.active {
    background: color-mix(in srgb, var(--color-primary) 14%, var(--color-surface));
    color: var(--color-primary);
}

.nav__items > li > a:focus-visible,
.theme__toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.nav__items .nav__admin-entry {
    display: none;
}

.avatar {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    background: var(--color-surface-2);
}

.nav__profile {
    position: relative;
    cursor: pointer;
}

.nav__profile ul {
    position: absolute;
    top: 125%;
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 11rem;
    padding: 0.45rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: var(--transition);
}

.nav__profile:hover > ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav__profile ul li a {
    display: block;
    padding: 0.75rem 0.8rem;
    border-radius: 6px;
    color: var(--color-text);
}

.nav__profile ul li a:hover {
    background: var(--color-primary-light);
}

.nav__profile ul li:last-child a {
    color: var(--color-red);
}

.theme__toggle {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--color-surface-2) 94%, var(--color-primary)),
            var(--color-surface-2)
        );
    color: var(--color-heading);
    border: 1px solid color-mix(in srgb, var(--color-border) 82%, var(--color-primary));
    cursor: pointer;
    font-size: 1.15rem;
    transition: var(--transition);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 5%, transparent);
}

.theme__toggle:hover {
    color: var(--color-primary);
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface-2));
}

.theme__toggle--floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.category__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
    font-weight: 800;
    font-size: 0.78rem;
}

.category__button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.post {
    height: 100%;
}

.post__thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 1.15rem;
    border-radius: 8px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.post__thumbnail img,
.singlepost__thumbnail img,
.post__author-avatar img,
.avatar img {
    transition: transform 260ms ease, filter 260ms ease;
}

.post:hover .post__thumbnail img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.03);
}

.post__info {
    padding: 0 0.1rem;
}

.post__title a {
    color: var(--color-heading);
}

.post__body {
    color: var(--color-muted);
}

.post__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.post__author-avatar {
    flex: 0 0 2.45rem;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
}

.post__author-info h5 {
    font-size: 0.83rem;
}

.post__author-info small {
    color: var(--color-muted);
}

.featured {
    margin-top: 8rem;
}

.featured__container {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 82%, var(--color-primary));
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--color-primary) 7%, transparent), transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 98%, var(--color-primary)), var(--color-surface));
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--color-white) 24%, transparent) inset,
        0 22px 54px color-mix(in srgb, #07131f 20%, transparent);
}

.featured__container::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 12%;
    width: 76%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 72%, white), transparent);
    opacity: 0.75;
}

.featured__container > a {
    display: block;
    border-radius: 18px;
}

.featured__container > a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 52%, transparent);
    outline-offset: 3px;
}

.featured .post__thumbnail {
    margin: 0;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}

.featured .post__thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 56%, rgb(3 12 22 / 24%)),
        linear-gradient(120deg, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 44%);
}

.featured .post__thumbnail img {
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 280ms ease;
}

.featured__container:hover .post__thumbnail img,
.featured__container:focus-within .post__thumbnail img {
    transform: scale(1.035);
    filter: saturate(1.06) contrast(1.025);
}

.featured .post__info {
    padding: 1.5rem 1.75rem 1.5rem 0.5rem;
}

.featured .category__button {
    position: absolute;
    z-index: 4;
    top: 1.5rem;
    left: 1.5rem;
    min-height: 1.85rem;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    background: rgb(5 19 31 / 78%);
    border-color: rgb(255 255 255 / 18%);
    color: #55dce6;
    box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
    backdrop-filter: blur(12px) saturate(1.15);
    letter-spacing: 0.015em;
}

.featured .category__button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.featured .post__title {
    margin-top: 0;
}

.posts__container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

#posts {
    scroll-margin-top: 6rem;
}

.posts--home {
    margin-bottom: 1rem;
}

.posts__container .post {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.75rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 82%, var(--color-primary));
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--color-primary) 7%, transparent), transparent 36%),
        linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 98%, var(--color-primary)), var(--color-surface));
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--color-white) 24%, transparent) inset,
        0 14px 34px color-mix(in srgb, var(--color-bg) 28%, transparent);
    transition:
        transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 280ms ease,
        box-shadow 280ms ease;
}

.posts__container .post::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 12%;
    width: 76%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 72%, white), transparent);
    opacity: 0;
    transition: opacity 280ms ease;
}

.posts__container .post:hover,
.posts__container .post:focus-within {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--color-primary) 46%, var(--color-border));
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--color-white) 30%, transparent) inset,
        0 24px 54px color-mix(in srgb, #07131f 22%, transparent);
}

.posts__container .post:hover::before,
.posts__container .post:focus-within::before {
    opacity: 1;
}

.posts__container .post > a {
    display: block;
    border-radius: 14px;
}

.posts__container .post > a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 52%, transparent);
    outline-offset: 3px;
}

.posts__container .post__thumbnail {
    aspect-ratio: 16 / 10;
    margin-bottom: 0;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.posts__container .post__thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 56%, rgb(3 12 22 / 24%)),
        linear-gradient(120deg, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 44%);
}

.posts__container .post__thumbnail img {
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 280ms ease;
}

.posts__container .post:hover .post__thumbnail img,
.posts__container .post:focus-within .post__thumbnail img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.035);
}

.posts__container .post__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 0.9rem 0.45rem 0.35rem;
}

.posts__container .category__button {
    position: absolute;
    z-index: 4;
    top: 1.5rem;
    left: 1.5rem;
    min-height: 1.85rem;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    background: rgb(5 19 31 / 78%);
    border-color: rgb(255 255 255 / 18%);
    color: #55dce6;
    box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
    backdrop-filter: blur(12px) saturate(1.15);
    letter-spacing: 0.015em;
}

.posts__container .post__title {
    display: -webkit-box;
    margin: 0.1rem 0 0.55rem;
    overflow: hidden;
    font-size: clamp(1.05rem, 1.5vw, 1.18rem);
    line-height: 1.4;
    letter-spacing: -0.018em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.posts__container .post__title a {
    font-size: 18px;
    background-image: linear-gradient(var(--color-primary), var(--color-primary));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: color 220ms ease, background-size 280ms ease;
}

.posts__container .post:hover .post__title a,
.posts__container .post:focus-within .post__title a {
    color: var(--color-primary);
    background-size: 100% 1px;
}

.posts__container .post__body {
    display: -webkit-box;
    min-height: calc(1.7em * 4);
    margin: 0;
    overflow: hidden;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.posts__container .post__author {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
}

.posts__container .post__author-avatar {
    flex-basis: 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    border: 2px solid color-mix(in srgb, var(--color-surface) 76%, transparent);
    outline: 1px solid color-mix(in srgb, var(--color-primary) 26%, var(--color-border));
    box-shadow: 0 7px 18px color-mix(in srgb, #07131f 18%, transparent);
}

.posts__container .post__author-info {
    min-width: 0;
}

.posts__container .post__author-info h5 {
    overflow: hidden;
    color: var(--color-heading);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posts__container .post__author-info small {
    display: block;
    margin-top: 0.05rem;
    font-size: 0.74rem;
}

@media (prefers-reduced-motion: reduce) {
    .featured .post__thumbnail img,
    .posts__container .post,
    .posts__container .post__thumbnail img {
        transition: none;
    }

    .featured__container:hover .post__thumbnail img,
    .featured__container:focus-within .post__thumbnail img,
    .posts__container .post:hover,
    .posts__container .post:focus-within {
        transform: none;
    }
}

.category__buttons {
    padding: 1.6rem 0 1.8rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    border-top: 1px solid color-mix(in srgb, var(--color-border) 88%, var(--color-primary));
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--color-surface-2) 38%, var(--color-surface)),
            var(--color-surface)
        );
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 4%, transparent);
}

.category__buttons-container {
    width: var(--container-width-lg);
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.category__buttons .category__button {
    min-height: 2.2rem;
    padding: 0.42rem 0.85rem;
    border-radius: 10px;
    background: var(--color-surface-2);
    border-color: color-mix(in srgb, var(--color-border) 82%, var(--color-primary));
    color: var(--color-muted);
    box-shadow: none;
    transition: var(--transition);
}

.category__buttons .category__button:hover {
    border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-border));
    background: color-mix(in srgb, var(--color-primary) 11%, var(--color-surface-2));
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.category__buttons .category__button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0 0;
}

.footer__socials {
    margin-inline: auto;
    width: fit-content;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer__socials a {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 8px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

.footer__socials a:hover {
    color: var(--color-primary);
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

.footer__copyright {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--color-muted);
}

.footer__copyright a {
    color: var(--color-muted);
}

.search__bar {
    margin-top: 7rem;
}

.search__bar-container {
    width: min(46rem, var(--container-width-lg));
    min-height: 4rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.search__bar-container > div {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0 0.85rem;
    border-radius: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
}

.search__bar input {
    width: 100%;
    margin-left: 0.65rem;
    padding: 0.65rem 0;
    background: transparent;
    color: var(--color-text);
}

.search__submit {
    flex: 0 0 auto;
    min-width: 7.2rem;
    min-height: 2.8rem;
    padding-inline: 1.1rem;
    gap: 0.45rem;
    box-shadow: none;
    white-space: nowrap;
}

.search__submit i {
    font-size: 1.05rem;
}

.search__bar input::placeholder {
    color: var(--color-muted);
}

.btn,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.45rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn.sm {
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
}

.btn.danger {
    background: var(--color-red);
}

.btn:hover,
button[type="submit"]:hover {
    background: var(--color-primary-strong);
    color: var(--color-white);
    transform: translateY(-1px);
}

.singlepost {
    margin: 6.75rem 0 5rem;
    isolation: isolate;
}

.singlepost::before {
    content: "";
    position: fixed;
    z-index: -1;
    top: 4.75rem;
    left: 50%;
    width: min(1100px, 90vw);
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 68%);
    transform: translateX(-50%);
    pointer-events: none;
}

.singlepost__container {
    width: min(1180px, 94vw);
    padding: 0;
}

.singlepost__hero {
    min-height: clamp(32rem, 52vw, 38rem);
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-white) 14%, transparent);
    border-radius: 28px;
    background: #0b1119;
    box-shadow: 0 35px 80px rgb(3 9 16 / 36%);
}

.singlepost__hero-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(4 10 18 / 82%) 0%, rgb(4 10 18 / 38%) 58%, rgb(4 10 18 / 12%) 100%),
        linear-gradient(0deg, rgb(4 10 18 / 94%) 0%, transparent 68%);
    pointer-events: none;
}

.singlepost__header {
    width: min(800px, 100%);
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    padding: clamp(2rem, 6vw, 4.75rem);
}

.singlepost__header h1 {
    max-width: 15ch;
    margin: 1.15rem 0 1.5rem;
    color: var(--color-white);
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.singlepost__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgb(255 255 255 / 76%);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.singlepost__eyebrow .category__button {
    min-height: 2rem;
    padding: 0.42rem 0.8rem;
    border-color: rgb(0 212 226 / 28%);
    background: rgb(0 169 181 / 20%);
    color: #53e5ee;
    backdrop-filter: blur(10px);
}

.singlepost__header .post__author {
    margin-top: 0;
}

.singlepost__header .post__author-avatar {
    flex-basis: 2.85rem;
    height: 2.85rem;
    border: 2px solid rgb(255 255 255 / 58%);
    box-shadow: 0 8px 24px rgb(0 0 0 / 32%);
}

.singlepost__header .post__author-info h5 {
    color: var(--color-white);
}

.singlepost__header .post__author-info small {
    color: rgb(255 255 255 / 66%);
}

.singlepost__thumbnail {
    position: absolute;
    inset: 0;
    margin: 0;
}

.singlepost__thumbnail img {
    filter: saturate(0.94) contrast(1.04);
}

.singlepost__body {
    width: min(920px, calc(100% - 5rem));
    position: relative;
    z-index: 3;
    margin: -3rem auto 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background: color-mix(in srgb, var(--color-surface) 96%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.article-content {
    width: min(720px, 100%);
    margin-inline: auto;
    color: var(--color-text);
    font-size: clamp(0.98rem, 1.5vw, 1.06rem);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.article-content p {
    margin: 1.15rem 0;
    color: var(--color-text);
}

.article-content > p:first-child {
    margin-top: 0;
    color: color-mix(in srgb, var(--color-heading) 88%, var(--color-text));
    font-size: clamp(1.05rem, 1.8vw, 1.16rem);
    line-height: 1.9;
}

.article-content a,
p a {
    color: var(--color-primary) !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
    text-underline-offset: 0.18em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    scroll-margin-top: 6.5rem;
}

.article-content h2 {
    margin: 2.8rem 0 1rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.025em;
}

.article-content h3 {
    margin: 2.15rem 0 0.8rem;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.article-content ul,
.article-content ol {
    margin: 1.15rem 0;
    padding-left: 1.45rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin: 0.55rem 0;
    padding-left: 0.3rem;
    list-style: inherit;
}

.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1.15rem 1.35rem;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 10px 10px 0;
    background: var(--color-primary-light);
    color: var(--color-heading);
    font-weight: 600;
}

.article-content hr {
    height: 1px;
    margin: 2.5rem 0;
    background: var(--color-border);
}

.article-content pre,
.article-content code {
    border-radius: 7px;
    background: var(--color-bg-soft);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.article-content code {
    padding: 0.15em 0.35em;
}

.article-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    overflow-x: auto;
}

.article-content pre code {
    padding: 0;
}

.article-content img {
    height: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.article-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-content th {
    background: var(--color-surface-2);
}

.article-toc {
    width: min(720px, 100%);
    margin: 0 auto 2.25rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
    border-radius: 20px;
    background:
        radial-gradient(circle at 0 0, var(--color-primary-light), transparent 46%),
        color-mix(in srgb, var(--color-surface) 94%, transparent);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--color-heading) 8%, transparent);
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.article-toc[open] {
    border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
    box-shadow: 0 22px 52px color-mix(in srgb, var(--color-heading) 11%, transparent);
}

.article-toc summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 84px;
    padding: 1rem 1.15rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.article-toc summary::-webkit-details-marker {
    display: none;
}

.article-toc summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 42%, transparent);
    outline-offset: -4px;
    border-radius: 18px;
}

.article-toc__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
    border-radius: 14px;
    background: var(--color-primary-light);
}

.article-toc__icon::before {
    width: 22px;
    height: 22px;
    content: "";
    background: var(--color-primary);
    mask: url("../vendor/lucide/icons/list-ordered.svg") center / contain no-repeat;
}

.article-toc__summary-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.article-toc__summary-copy strong {
    color: var(--color-heading);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.article-toc__summary-copy > span {
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-toc__control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
}

.article-toc__toggle-text {
    min-width: 3.1rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
}

.article-toc__toggle-text::before {
    content: "Göster";
}

.article-toc[open] .article-toc__toggle-text::before {
    content: "Gizle";
}

.article-toc__chevron {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary-light);
}

.article-toc__chevron::before {
    width: 8px;
    height: 8px;
    margin-top: -4px;
    content: "";
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 220ms ease, margin 220ms ease;
}

.article-toc[open] .article-toc__chevron::before {
    margin-top: 4px;
    transform: rotate(225deg);
}

.article-toc__panel {
    padding: 0 1.15rem 1.15rem;
}

.article-toc__panel::before {
    display: block;
    height: 1px;
    margin-bottom: 1rem;
    content: "";
    background: linear-gradient(90deg, var(--color-border), transparent);
}

.article-toc__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

.article-toc__list li {
    min-width: 0;
}

.article-toc__subitem {
    padding-left: 0.75rem;
}

.article-toc__list a {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    padding: 0.4rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 650;
}

.article-toc__list a:hover,
.article-toc__list a:focus-visible {
    border-color: color-mix(in srgb, var(--color-primary) 20%, var(--color-border));
    color: var(--color-heading);
    background: color-mix(in srgb, var(--color-primary-light) 55%, var(--color-surface));
    transform: translateX(3px);
}

.article-toc__number {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 9px;
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.article-toc__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.youtube-embed {
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface-2);
    box-shadow: var(--shadow-sm);
}

.youtube-embed__frame {
    aspect-ratio: 16 / 9;
    background: #090d12;
}

.youtube-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-embed figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.95rem;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.youtube-embed figcaption a {
    white-space: nowrap;
}

.singlepost__buttons {
    width: min(720px, 100%);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 3rem auto 0;
    border-top: 1px solid var(--color-border);
    padding-top: 1.35rem;
    padding-bottom: 0;
}

.singlepost__buttons a {
    max-width: 48%;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--color-surface-2);
}

.singlepost__buttons a:hover {
    border-color: var(--color-border);
    transform: translateY(-2px);
}

.singlepost__previous {
    text-align: left;
}

.singlepost__next {
    text-align: right;
}

.singlepost__button-label {
    font-size: 0.7rem;
    color: var(--color-muted);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.related-posts {
    width: min(1180px, 94vw);
    margin: 3.5rem auto 0;
}

.related-posts__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding-inline: 0.15rem;
}

.related-posts__eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-primary);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.related-posts__heading h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(1.55rem, 2.5vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.related-posts__all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--color-border) 78%, var(--color-primary));
    border-radius: 11px;
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.related-posts__all:hover {
    border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-border));
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.related-post {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 82%, var(--color-primary));
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--color-surface) 98%, var(--color-primary)),
            var(--color-surface)
        );
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--color-white) 5%, transparent),
        0 14px 34px rgba(0, 0, 0, 0.12);
    transition:
        transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 260ms ease,
        box-shadow 260ms ease;
}

.related-post:hover,
.related-post:focus-within {
    border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--color-white) 7%, transparent),
        0 22px 46px rgba(0, 0, 0, 0.17);
    transform: translateY(-5px);
}

.related-post__thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-surface-2);
}

.related-post__thumbnail::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 52%, rgb(3 12 22 / 48%));
}

.related-post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms ease;
}

.related-post:hover .related-post__thumbnail img,
.related-post:focus-within .related-post__thumbnail img {
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.05);
}

.related-post__category {
    position: absolute;
    z-index: 1;
    left: 0.8rem;
    bottom: 0.75rem;
    max-width: calc(100% - 1.6rem);
    overflow: hidden;
    padding: 0.32rem 0.62rem;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 999px;
    background: rgb(5 19 31 / 78%);
    color: #55dce6;
    font-size: 0.68rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.related-post__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.related-post__content h3 {
    display: -webkit-box;
    margin: 0 0 0.55rem;
    overflow: hidden;
    color: var(--color-heading);
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: -0.018em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-post__content h3 a {
    color: inherit;
}

.related-post__content h3 a:hover {
    color: var(--color-primary);
}

.related-post__content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.related-post__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.9rem;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.related-post__meta span:last-child {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border-radius: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.9rem;
}

.related-post__meta:hover {
    color: var(--color-primary);
}

.related-post__thumbnail:focus-visible,
.related-post__content h3 a:focus-visible,
.related-post__meta:focus-visible,
.related-posts__all:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media screen and (max-width: 900px) {
    .related-posts__grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(72vw, 20rem);
        justify-content: start;
        overflow-x: auto;
        padding: 0.15rem 0.1rem 0.9rem;
        scroll-padding-inline: 0.1rem;
        scroll-snap-type: inline mandatory;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .related-posts__grid::-webkit-scrollbar {
        display: none;
    }

    .related-post {
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-post,
    .related-post__thumbnail img,
    .related-posts__all {
        transition: none;
    }

    .related-post:hover,
    .related-post:focus-within,
    .related-post:hover .related-post__thumbnail img,
    .related-post:focus-within .related-post__thumbnail img,
    .related-posts__all:hover {
        transform: none;
    }
}

.category__title {
    min-height: 13rem;
    margin-top: 4.75rem;
    display: grid;
    place-items: center;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.empty__page {
    min-height: 100vh;
    display: grid;
    place-content: center;
    margin: 0;
}

.not-found {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 7.75rem 0 3rem;
    overflow: hidden;
}

.not-found::before {
    content: '';
    position: absolute;
    width: min(58rem, 90vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 66%);
    filter: blur(18px);
    opacity: 0.72;
    pointer-events: none;
}

.not-found__container {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-border) 72%, var(--color-primary));
    border-radius: 28px;
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--color-surface) 98%, var(--color-primary)), var(--color-surface));
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--color-white) 24%, transparent) inset,
        0 30px 80px color-mix(in srgb, #07131f 26%, transparent);
}

.not-found__container::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(color-mix(in srgb, var(--color-primary) 6%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 6%, transparent) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, black, transparent 62%);
    mask-image: linear-gradient(90deg, black, transparent 62%);
    opacity: 0.58;
}

.not-found__container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    width: 72%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 78%, white), transparent);
}

.not-found__visual {
    position: relative;
    min-height: 18rem;
    display: grid;
    place-items: center;
    border-right: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
}

.not-found__visual::before,
.not-found__visual::after {
    content: '';
    position: absolute;
    border: 1px solid color-mix(in srgb, var(--color-primary) 28%, transparent);
    border-radius: 50%;
}

.not-found__visual::before {
    width: 15rem;
    height: 15rem;
}

.not-found__visual::after {
    width: 10.5rem;
    height: 10.5rem;
    border-style: dashed;
    opacity: 0.72;
    transform: rotate(18deg);
}

.not-found__code {
    position: relative;
    z-index: 1;
    padding-right: 0.08em;
    color: transparent;
    background: linear-gradient(135deg, var(--color-heading) 18%, #55dce6 54%, var(--color-primary));
    background-clip: text;
    font-size: clamp(7.5rem, 15vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.11em;
    line-height: 0.8;
    filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--color-primary) 20%, transparent));
}

.not-found__content {
    position: relative;
    z-index: 1;
    max-width: 35rem;
}

.not-found__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.not-found__content h1 {
    max-width: 11ch;
    margin: 1.15rem 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    letter-spacing: -0.045em;
}

.not-found__content p {
    max-width: 54ch;
    color: var(--color-muted);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.8;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-top: 1.65rem;
}

.not-found__button {
    min-height: 3rem;
    padding-inline: 1.25rem;
    border-radius: 999px;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 22%, transparent);
}

.not-found__secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3rem;
    color: var(--color-heading);
    font-weight: 800;
}

.not-found__secondary span {
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: transform 220ms ease;
}

.not-found__secondary:hover span {
    transform: translateX(4px);
}

.not-found__button:focus-visible,
.not-found__secondary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
    outline-offset: 4px;
}

@media screen and (max-width: 800px) {
    .not-found {
        padding: 6.5rem 0 2rem;
    }

    .not-found__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }

    .not-found__container::before {
        -webkit-mask-image: linear-gradient(180deg, black, transparent 72%);
        mask-image: linear-gradient(180deg, black, transparent 72%);
    }

    .not-found__visual {
        min-height: 12rem;
        border-right: 0;
        border-bottom: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
    }

    .not-found__visual::before {
        width: 11rem;
        height: 11rem;
    }

    .not-found__visual::after {
        width: 7.5rem;
        height: 7.5rem;
    }

    .not-found__content {
        max-width: 38rem;
        margin-inline: auto;
    }

    .not-found__content h1,
    .not-found__content p {
        margin-inline: auto;
    }

    .not-found__actions {
        justify-content: center;
    }
}

.form__section {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 6rem 0 3rem;
}

.form__section-container {
    width: var(--form-width);
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.authoring__container {
    width: min(920px, 92vw);
    padding: clamp(1.4rem, 4vw, 2.75rem);
    border-radius: 16px;
}

.authoring__header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.authoring__header h1 {
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(1.9rem, 4vw, 2.65rem);
    letter-spacing: -0.035em;
}

.authoring__header p {
    max-width: 62ch;
    color: var(--color-muted);
}

.authoring__kicker {
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.authoring__submit {
    align-self: flex-end;
    min-width: 12rem;
    margin-top: 0.35rem;
}

.alert__message {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert__message.error {
    background: var(--color-red-light);
    color: var(--color-red);
    border-color: color-mix(in srgb, var(--color-red) 25%, transparent);
}

.alert__message.success {
    background: var(--color-green-light);
    color: var(--color-green);
    border-color: color-mix(in srgb, var(--color-green) 25%, transparent);
}

.alert__message.lg {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search__bar form,
form.search__bar-container {
    flex-direction: row;
}

.form__control {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form__control > label {
    color: var(--color-heading);
    font-size: 0.82rem;
    font-weight: 800;
}

.form__control.inline {
    flex-direction: row;
    align-items: center;
}

.signin__remember {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-soft);
}

.signin__remember input {
    flex: 0 0 auto;
    margin-top: 0.22rem;
}

.signin__remember label {
    display: flex;
    flex-direction: column;
    color: var(--color-heading);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.signin__remember label small {
    margin: 0.12rem 0 0;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.signin__remember:has(input:focus-visible) {
    border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.signin__remember:has(input:disabled) {
    opacity: 0.6;
}

.password__field {
    position: relative;
}

.password__field input {
    padding-right: 5.5rem;
}

.password__toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    min-width: 4.5rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
    transition: var(--transition);
}

.password__toggle:hover {
    background: var(--color-primary-light);
}

.password__toggle:focus-visible {
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    resize: vertical;
    font: inherit;
}

textarea.editor__source {
    min-height: 18rem;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-width: 1rem;
    accent-color: var(--color-primary);
}

input[type="file"] {
    padding: 0.7rem;
}

input:focus,
textarea:focus,
select:focus {
    border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.form__section small {
    margin-top: 0.4rem;
    display: block;
    color: var(--color-muted);
}

.form__section small a {
    color: var(--color-primary);
    font-weight: 800;
}

.ck.ck-reset,
.ck.ck-reset_all,
.ck.ck-reset_all * {
    font-family: var(--font-main) !important;
}

.ck.ck-editor {
    width: 100%;
    position: relative;
    z-index: 2 !important;
}

.ck.ck-editor__main {
    position: relative;
    z-index: 2;
}

.ck.ck-editor__main > .ck-editor__editable {
    min-height: 18rem;
    padding: 1rem 1.1rem;
    background: var(--color-bg) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
    border-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: none !important;
    line-height: 1.75;
    cursor: text;
    pointer-events: auto;
    user-select: text;
}

.ck.ck-editor__main > .ck-editor__editable:focus {
    border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border)) !important;
    box-shadow: 0 0 0 4px var(--color-primary-light) !important;
}

.ck.ck-toolbar {
    background: var(--color-surface-2) !important;
    border-color: var(--color-border) !important;
    border-radius: 8px 8px 0 0 !important;
}

.safe-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.55rem;
    border: 1px solid var(--color-border) !important;
    border-bottom: 0 !important;
}

.safe-editor__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.safe-editor__button:hover,
.safe-editor__button:focus-visible,
.safe-editor__button.is-active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.safe-editor__button--accent {
    width: auto;
    min-width: 2.25rem;
    padding-inline: 0.55rem;
    background: var(--color-primary-light);
}

.safe-editor__separator {
    align-self: stretch;
    width: 1px;
    min-height: 1.5rem;
    margin: 0.25rem 0.1rem;
    background: var(--color-border);
}

.safe-editor__editable {
    min-height: 18rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem 1.1rem;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    line-height: 1.75;
    cursor: text;
}

.safe-editor__editable:empty::before {
    content: attr(data-placeholder);
    color: var(--color-muted);
    pointer-events: none;
}

.safe-editor__editable:focus {
    border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.safe-editor__editable h2 {
    margin: 1.4rem 0 0.65rem;
}

.safe-editor__editable h3 {
    margin: 1.2rem 0 0.55rem;
}

.safe-editor__editable ul,
.safe-editor__editable ol {
    padding-left: 1.5rem;
}

.safe-editor__editable ul,
.safe-editor__editable ul li {
    list-style: disc;
}

.safe-editor__editable ol,
.safe-editor__editable ol li {
    list-style: decimal;
}

.safe-editor__editable blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--color-primary);
    background: var(--color-primary-light);
}

.safe-editor__editable hr {
    height: 1px;
    margin: 1.4rem 0;
    background: var(--color-border);
}

.content-video-source {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
    border-radius: 10px;
    background: var(--color-primary-light);
}

.content-video-source a {
    display: block;
    overflow-wrap: anywhere;
    color: var(--color-primary);
    font-weight: 800;
}

.content-video-source figcaption {
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.75rem;
}

.safe-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--color-surface-2);
    color: var(--color-muted);
    font-size: 0.7rem;
}

.safe-editor__counter {
    flex: 0 0 auto;
    color: inherit;
    font: inherit;
    font-weight: 700;
}

.ck.ck-button,
.ck.ck-dropdown__button {
    color: var(--color-text) !important;
}

.ck.ck-button:hover,
.ck.ck-dropdown__button:hover,
.ck.ck-button.ck-on {
    background: var(--color-primary-light) !important;
    color: var(--color-primary) !important;
}

.ck-content p,
.ck-list-bogus-paragraph,
.ck-table-bogus-paragraph {
    color: var(--color-text) !important;
}

.ck-content a {
    color: var(--color-primary) !important;
}

.ck-powered-by {
    display: none !important;
}

.pagination__container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin-top: -0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.8rem;
    padding: 0.45rem 0.8rem;
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--color-surface) 97%, var(--color-primary)),
            var(--color-surface)
        );
    color: var(--color-heading);
    border: 1px solid color-mix(in srgb, var(--color-border) 78%, var(--color-primary));
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--color-white) 5%, transparent),
        0 8px 22px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.pagination__button:hover {
    background: color-mix(in srgb, var(--color-primary) 7%, var(--color-surface));
    color: var(--color-primary);
    border-color: color-mix(in srgb, var(--color-primary) 52%, var(--color-border));
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--color-white) 7%, transparent),
        0 10px 26px rgba(0, 0, 0, 0.15);
}

.pagination__button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.pagination__icon {
    display: inline-grid;
    flex: 0 0 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 9px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition);
}

.pagination__button:hover .pagination__icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.pagination__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.8rem;
    min-height: 2.8rem;
    padding: 0 0.75rem;
    border-radius: 14px;
    background: var(--color-surface-2);
    color: var(--color-muted);
    border: 1px solid var(--color-border);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-white) 4%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .pagination__button,
    .pagination__icon {
        transition: none;
    }

    .pagination__button:hover {
        transform: none;
    }
}

.dashboard {
    margin-top: 6.75rem;
}

.dashboard__container {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.6rem;
    width: min(1380px, calc(100% - 2rem));
    padding: 0;
    margin-bottom: 5rem;
    background: transparent;
}

.dashboard aside {
    position: sticky;
    top: 6.25rem;
    align-self: start;
    padding: 0.7rem;
    overflow-y: auto;
    border-radius: 20px;
    background: color-mix(in srgb, var(--color-surface) 96%, transparent);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.dashboard__sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.55rem 1rem;
    margin-bottom: 0.45rem;
    border-bottom: 1px solid var(--color-border);
}

.dashboard__sidebar-header > span:last-child {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.dashboard__sidebar-header strong {
    color: var(--color-heading);
    font-size: 0.8rem;
    line-height: 1.2;
}

.dashboard__sidebar-header small {
    color: var(--color-muted);
    font-size: 0.66rem;
    font-weight: 650;
}

.dashboard__sidebar-mark {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-primary) 24%, transparent);
}

.dashboard aside a {
    display: flex;
    gap: 0.72rem;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.62rem 0.72rem;
    margin: 0.16rem 0;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--color-muted);
    font-weight: 750;
    font-size: 0.8rem;
}

.dashboard aside i {
    font-size: 1rem;
}

.dashboard aside .ui-icon {
    flex: 0 0 auto;
    width: 1.05rem !important;
    height: 1.05rem;
    opacity: 0.82;
}

.dashboard aside h5 {
    font-size: 0.74rem;
    line-height: 1.25;
}

.dashboard aside a:hover,
.dashboard aside a:focus-visible {
    border-color: color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
    background: color-mix(in srgb, var(--color-primary-light) 55%, transparent);
    color: var(--color-primary);
    transform: translateX(2px);
}

.dashboard aside a.active {
    border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
    background: linear-gradient(90deg, var(--color-primary-light), transparent);
    color: var(--color-heading);
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.dashboard aside a.active .ui-icon {
    opacity: 1;
}

.dashboard main {
    min-width: 0;
}

#dashboard-content {
    min-width: 0;
}

.dashboard__page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
    margin-bottom: 1.25rem;
}

.dashboard__eyebrow {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.dashboard main h2 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    letter-spacing: -0.045em;
}

.dashboard__new-post {
    min-height: 2.75rem;
    gap: 0.5rem;
    padding-inline: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.dashboard__new-post .ui-icon {
    filter: brightness(0) invert(1);
}

.dashboard__new-post-label-compact {
    display: none;
}

body.modal-open {
    overflow: hidden;
}

.dashboard__modal[hidden] {
    display: none;
}

.dashboard__modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgb(5 12 20 / 78%);
    backdrop-filter: blur(3px);
}

.dashboard__modal-dialog {
    width: min(56rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.dashboard__modal-header {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.dashboard__modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.dashboard__modal-close {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-2);
}

.dashboard__modal-close:hover,
.dashboard__modal-close:focus-visible {
    background: var(--color-primary-light);
}

.dashboard__modal-body {
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}

.dashboard__modal-body .form__section-container {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dashboard__modal-loading {
    margin: 0;
    color: var(--color-muted);
}

.dashboard__profile-editor {
    width: 100%;
    max-width: 36rem;
}

.dashboard__profile-avatar {
    width: 7rem;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 50%;
}

.dashboard__profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard__table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--color-surface) 97%, transparent);
    box-shadow: var(--shadow-sm);
    overscroll-behavior-inline: contain;
}

.dashboard main table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    background: transparent;
}

.dashboard main table th {
    padding: 0.75rem 0.8rem 0.9rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dashboard main table td {
    min-height: 4.5rem;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.82rem;
    vertical-align: middle;
    transition: background 180ms ease;
}

.dashboard main table tr:hover td {
    background: color-mix(in srgb, var(--color-primary-light) 34%, transparent);
}

.dashboard main table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard__table--posts th:nth-last-child(-n + 3),
.dashboard__table--posts td:nth-last-child(-n + 3) {
    text-align: center;
}

.dashboard__table--posts td:first-child {
    min-width: 15rem;
    color: var(--color-heading);
    font-weight: 680;
}

.dashboard__table--posts td:nth-child(2) {
    min-width: 8rem;
}

.dashboard__table--posts td:nth-child(3) {
    min-width: 8rem;
}

.dashboard__table .btn.sm {
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.7rem;
}

.dashboard__table .edit-post,
.dashboard__table .save-category {
    border-color: color-mix(in srgb, var(--color-primary) 28%, transparent);
    color: var(--color-heading);
    background: color-mix(in srgb, var(--color-primary-light) 72%, var(--color-surface-2));
}

.dashboard__table .toggle-post {
    min-width: 6.9rem;
}

.dashboard__table .btn.danger {
    border-color: color-mix(in srgb, var(--color-red) 24%, transparent);
    color: color-mix(in srgb, var(--color-red) 44%, var(--color-white));
    background: color-mix(in srgb, var(--color-red-light) 74%, var(--color-surface-2));
}

.dashboard__table .edit-post:hover,
.dashboard__table .edit-post:focus-visible,
.dashboard__table .save-category:hover,
.dashboard__table .save-category:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-white);
    background: var(--color-primary);
}

.dashboard__table .btn.danger:hover,
.dashboard__table .btn.danger:focus-visible {
    border-color: var(--color-red);
    color: var(--color-white);
    background: var(--color-red);
}

.table {
    display: table;
    width: 100%;
}

.table-cell {
    display: table-cell;
    vertical-align: middle;
}

.holder {
    width: 100%;
    padding: 10px;
    margin: 0 auto;
    text-align: center;
}

.holder h1 {
    font-weight: 900;
    font-size: clamp(7rem, 28vw, 18rem);
    line-height: 0.9;
}

.holder h2 {
    font-weight: 700;
    color: var(--color-muted);
}

.holder button {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-heading);
    padding: 0.85rem 1.4rem;
    margin: 3vh 0;
    border-radius: 8px;
    cursor: pointer;
}

.holder button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.logo-warp {
    width: 75px;
    height: auto;
    overflow: hidden;
    margin-left: -10px;
}

.empty__page h3 {
    text-align: center;
}

.dashboard aside {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dashboard aside::-webkit-scrollbar {
    display: none;
}

@media screen and (max-width: 1024px) {
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 4.25rem 0 0;
        z-index: 19;
        background: color-mix(in srgb, #08101b 58%, transparent);
        backdrop-filter: blur(3px);
    }

    .container {
        width: var(--container-width-md);
    }

    nav {
        height: 4.25rem;
        background: color-mix(in srgb, var(--color-surface) 94%, transparent);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    }

    nav button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 8px;
        background: transparent;
        color: var(--color-heading);
        border: 1px solid var(--color-border);
        cursor: pointer;
        font-size: 1.25rem;
        box-shadow: none;
    }

    nav button:hover {
        background: var(--color-primary-light);
        color: var(--color-primary);
        transform: none;
    }

    .nav__container {
        position: relative;
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .nav__logo {
        margin-right: auto;
    }

    .theme__toggle {
        margin-left: 0;
        background: var(--color-surface-2);
        color: var(--color-muted);
        font-size: 1.05rem;
    }

    .nav__items {
        position: absolute;
        flex-direction: column;
        top: calc(100% + 0.65rem);
        right: 0;
        z-index: 2;
        width: min(20rem, calc(100vw - 1rem));
        align-items: stretch;
        gap: 0.25rem;
        display: flex;
        max-height: calc(100dvh - 5.25rem);
        padding: 0.7rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 18px;
        box-shadow: var(--shadow-md);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.4rem) scale(0.98);
        transform-origin: top right;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .nav__items.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav__items li {
        width: 100%;
    }

    .nav__items li a {
        width: 100%;
        min-height: 2.8rem;
        padding-inline: 0.85rem;
        border-radius: 11px;
    }

    .nav__items .nav__admin-entry {
        display: block;
    }

    .nav__items .nav__desktop-entry {
        display: none;
    }

    .nav__items .nav__logout {
        margin-top: 0.4rem;
        padding-top: 0.4rem;
        border-top: 1px solid var(--color-border);
        border-radius: 0 0 12px 12px;
    }

    .nav__profile ul {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 0.4rem;
    }

    .featured__container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured .post__info {
        padding: 1.35rem 1rem 1rem;
    }

    .posts__container {
        grid-template-columns: 1fr 1fr;
    }

    .search__bar-container {
        width: var(--container-width-md);
        gap: 0.55rem;
    }

    .dashboard__container {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard aside {
        display: none;
    }

    .dashboard main {
        overflow: visible;
    }
}

@media screen and (max-width: 900px) {
    .dashboard__table-scroll {
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .dashboard main .dashboard__table {
        min-width: 0;
        overflow: visible;
        border: 0;
        border-collapse: separate;
        background: transparent;
    }

    .dashboard main .dashboard__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .dashboard main .dashboard__table tbody {
        display: grid;
        gap: 0.8rem;
    }

    .dashboard main .dashboard__table tbody tr {
        display: grid;
        min-width: 0;
        padding: 0.45rem 1rem;
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: 16px;
        background: var(--color-surface);
        box-shadow: var(--shadow-sm);
    }

    .dashboard main .dashboard__table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
        min-width: 0;
        padding: 0.65rem 0;
        overflow-wrap: anywhere;
        border-top: 1px solid var(--color-border);
        border-bottom: 0;
        text-align: left;
    }

    .dashboard main .dashboard__table td:first-child {
        border-top: 0;
    }

    .dashboard main .dashboard__table td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .dashboard main .dashboard__table td > input {
        min-width: 0;
        max-width: 100%;
        justify-self: end;
    }

    .dashboard main .dashboard__table td > .post__author-avatar {
        min-width: 0;
        max-width: 100%;
        justify-self: start;
    }

    .dashboard main .dashboard__table td > .btn {
        min-width: 0;
        max-width: 100%;
        justify-self: start;
        white-space: normal;
        text-align: center;
    }

    .dashboard main .dashboard__table tr:hover td {
        background: transparent;
    }

    .dashboard main .dashboard__table--posts tbody tr {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0;
        padding: 0.75rem;
        border-radius: 20px;
        box-shadow: 0 14px 34px color-mix(in srgb, #08101b 12%, transparent);
    }

    .dashboard main .dashboard__table--posts td {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 0.3rem;
        min-width: 0;
        padding: 0.65rem 0.4rem;
        border-top: 0;
    }

    .dashboard main .dashboard__table--posts td::before {
        font-size: 0.63rem;
        letter-spacing: 0.045em;
    }

    .dashboard main .dashboard__table--posts .dashboard__post-title {
        grid-column: 1 / -1;
        min-width: 0;
        padding: 0.2rem 0.4rem 0.85rem;
        border-bottom: 1px solid var(--color-border);
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .dashboard main .dashboard__table--posts .dashboard__post-category,
    .dashboard main .dashboard__table--posts .dashboard__post-author {
        grid-column: span 3;
        padding-top: 0.8rem;
        color: var(--color-text);
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .dashboard main .dashboard__table--admin-posts:not(.dashboard__table--with-author) .dashboard__post-category {
        grid-column: 1 / -1;
    }

    .dashboard main .dashboard__table--posts .dashboard__post-action {
        display: flex;
        grid-column: span 3;
        align-items: stretch;
        justify-content: stretch;
        padding: 0.75rem 0.25rem 0.1rem;
        border-top: 1px solid var(--color-border);
    }

    .dashboard main .dashboard__table--admin-posts .dashboard__post-action {
        grid-column: span 2;
    }

    .dashboard main .dashboard__table--posts .dashboard__post-action::before {
        display: none;
    }

    .dashboard main .dashboard__table--posts .dashboard__post-action > .btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        justify-content: center;
        justify-self: stretch;
        padding-inline: 0.45rem;
        white-space: normal;
    }

    .dashboard main .dashboard__table--posts .toggle-post {
        min-width: 0;
    }
}

@media screen and (max-width: 640px) {
    body {
        font-size: 0.92rem;
    }

    section {
        margin-top: 2.5rem;
    }

    .featured {
        margin-top: 6rem;
        margin-bottom: -16px;
    }

    .featured__container {
        padding: 0.65rem;
        border-radius: 18px;
    }

    .featured .post__thumbnail,
    .featured__container > a {
        border-radius: 14px;
    }

    .featured .post__info {
        padding: 1rem 0.35rem 0.45rem;
    }

    .featured .category__button {
        top: 1.25rem;
        left: 1.25rem;
    }

    .posts__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .posts__container .post {
        padding: 0.65rem;
        border-radius: 18px;
    }

    .posts__container .post__info {
        padding: 0.9rem 0.35rem 0.3rem;
    }

    .posts__container .post__title {
        min-height: auto;
        font-size: 1.08rem;
    }

    .posts__container .post__body {
        min-height: auto;
        -webkit-line-clamp: 3;
    }

    .pagination__container {
        gap: 0.4rem;
        width: min(24rem, calc(100% - 1.5rem));
        max-width: none;
        margin-top: -0.5rem;
    }

    .pagination__button {
        flex: 1 1 0;
        gap: 0.4rem;
        min-width: 0;
        min-height: 2.65rem;
        padding: 0.4rem 0.55rem;
        border-radius: 12px;
        font-size: 0.76rem;
    }

    .pagination__icon {
        flex-basis: 1.65rem;
        width: 1.65rem;
        height: 1.65rem;
        border-radius: 8px;
    }

    .pagination__label-suffix {
        display: none;
    }

    .pagination__status {
        min-width: 3.5rem;
        min-height: 2.65rem;
        padding-inline: 0.6rem;
        border-radius: 12px;
        font-size: 0.74rem;
    }

    .category__buttons-container {
        width: var(--container-width-md);
        max-width: none;
        gap: 0.45rem;
        justify-content: center;
        padding: 0;
        border-radius: 0;
    }

    .category__buttons {
        padding: 1.25rem 0 1.4rem;
        margin-top: 0.75rem;
        background:
            linear-gradient(
                180deg,
                color-mix(in srgb, var(--color-surface-2) 38%, var(--color-surface)),
                var(--color-surface)
            );
        border-top: 1px solid color-mix(in srgb, var(--color-border) 88%, var(--color-primary));
    }

    .category__buttons .category__button {
        min-height: 2rem;
        padding: 0.38rem 0.72rem;
        border-radius: 9px;
        background: var(--color-surface-2);
        border-color: color-mix(in srgb, var(--color-primary) 18%, var(--color-border));
        color: var(--color-muted);
        font-size: 0.72rem;
        box-shadow: none;
    }

    .search__bar-container {
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .search__submit span {
        display: none;
    }

    .search__submit {
        width: 2.85rem;
        min-width: 2.85rem;
        min-height: auto;
        padding-inline: 0;
    }

    .form__section-container {
        padding: 1.2rem;
    }

    .singlepost {
        margin-top: 5.5rem;
    }

    .singlepost__container {
        width: calc(100% - 1rem);
    }

    .singlepost__hero {
        min-height: 34rem;
        border-radius: 20px;
    }

    .singlepost__hero-shade {
        background:
            linear-gradient(90deg, rgb(4 10 18 / 58%), rgb(4 10 18 / 15%)),
            linear-gradient(0deg, rgb(4 10 18 / 96%) 0%, rgb(4 10 18 / 24%) 78%);
    }

    .singlepost__header {
        width: 100%;
        padding: 1.5rem 1.4rem 4.25rem;
    }

    .singlepost__header h1 {
        max-width: 100%;
        margin: 0.9rem 0 1.2rem;
        font-size: clamp(2.35rem, 12vw, 3.25rem);
        line-height: 1;
        letter-spacing: -0.03em;
    }

    .singlepost__body {
        width: calc(100% - 1rem);
        margin-top: -2.4rem;
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .article-toc {
        border-radius: 16px;
    }

    .article-toc summary {
        min-height: 76px;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .article-toc__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .article-toc__toggle-text {
        display: none;
    }

    .article-toc__panel {
        padding: 0 0.7rem 0.7rem;
    }

    .article-toc__panel::before {
        margin-inline: 0.15rem;
        margin-bottom: 0.65rem;
    }

    .article-toc__list {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .article-toc__list a {
        min-height: 46px;
        padding-inline: 0.5rem;
    }

    .youtube-embed {
        margin-inline: -0.4rem;
        border-radius: 10px;
    }

    .youtube-embed figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .singlepost__buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .singlepost__buttons a {
        max-width: 100%;
        width: 100%;
    }

    .related-posts {
        width: calc(100% - 1rem);
        margin-top: 2rem;
    }

    .related-posts__heading {
        align-items: flex-end;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-inline: 0.25rem;
    }

    .related-posts__eyebrow {
        font-size: 0.62rem;
    }

    .related-posts__heading h2 {
        font-size: 1.4rem;
    }

    .related-posts__all {
        min-height: 2.1rem;
        padding: 0.35rem 0.55rem;
        border-radius: 9px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .related-posts__grid {
        grid-auto-columns: min(82vw, 19rem);
        margin-right: -0.5rem;
        padding-right: 0.5rem;
    }

    .related-post {
        border-radius: 18px;
    }

    .related-post__content {
        padding: 0.9rem;
    }

    .dashboard {
        margin-top: 5.1rem;
    }

    .dashboard__container {
        grid-template-columns: 1fr;
        width: calc(100% - 1.5rem);
        gap: 0;
        padding: 0;
        margin-bottom: 3rem;
    }

    .dashboard main {
        overflow: visible;
    }

    .dashboard__page-header {
        align-items: center;
        gap: 0.75rem;
        min-height: auto;
        margin-bottom: 1rem;
    }

    .dashboard main h2 {
        margin-top: 0.3rem;
        font-size: clamp(1.3rem, 6vw, 1.55rem);
        overflow-wrap: anywhere;
    }

    .dashboard__new-post {
        flex: 0 0 auto;
        min-height: 2.45rem;
        padding-inline: 0.75rem;
        font-size: 0.72rem;
    }

    .dashboard__new-post-label {
        display: none;
    }

    .dashboard__new-post-label-compact {
        display: inline;
    }

    .dashboard__eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.11em;
    }

    .dashboard main .dashboard__table tbody {
        gap: 0.65rem;
    }

    .dashboard main .dashboard__table--posts tbody tr {
        padding: 0.65rem;
        border-radius: 18px;
    }

    .dashboard main .dashboard__table--posts .dashboard__post-title {
        font-size: 0.88rem;
    }

    .dashboard main .dashboard__table--posts .dashboard__post-action > .btn {
        min-height: 2.3rem;
        padding: 0.4rem 0.35rem;
        font-size: 0.64rem;
    }

    .dashboard__modal {
        padding: 0.5rem;
    }

    .dashboard__modal-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .dashboard__modal-header,
    .dashboard__modal-body {
        padding: 0.8rem;
    }

    .dashboard__modal .safe-editor__editable {
        max-height: none;
        overflow-y: visible;
    }

    .safe-editor__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .dashboard input,
    .dashboard select,
    .dashboard textarea {
        min-width: 0;
        max-width: 100%;
    }

    .dashboard .alert__message {
        overflow-wrap: anywhere;
    }
}

@media screen and (max-width: 360px) {
    .dashboard main .dashboard__table:not(.dashboard__table--posts) td {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem;
    }

    .dashboard main .dashboard__table:not(.dashboard__table--posts) td > .btn,
    .dashboard main .dashboard__table:not(.dashboard__table--posts) td > input,
    .dashboard main .dashboard__table:not(.dashboard__table--posts) td > .post__author-avatar {
        justify-self: start;
    }

    .dashboard main .dashboard__table:not(.dashboard__table--posts) td > input {
        width: 100%;
    }

    .dashboard main .dashboard__table--admin-posts .dashboard__post-action {
        grid-column: span 3;
    }

    .dashboard main .dashboard__table--admin-posts .dashboard__post-action:last-child {
        grid-column: 1 / -1;
    }
}
