/* ==========================================================================
   Kosmosa.ge — theme layer on top of the template's main.css
   Palette: warm ivory · deep cosmic navy · muted gold (from the logo)
   ========================================================================== */

:root {
    --tc-body-font-family: "Geist", "Noto Sans Georgian", system-ui, sans-serif;
    --tc-heading-font-family: "Geist", "Noto Sans Georgian", system-ui, sans-serif;
    --k-reading-font: "Noto Serif Georgian", Georgia, serif;
    --k-ui-font: "Noto Sans Georgian", "Geist", system-ui, sans-serif;


    --k-gold: #b8893b;
    --k-gold-soft: #d9b87a;
    --k-navy: #0b1426;
    --k-ivory: #f7f4ee;
    --k-radius: 14px;
    --k-success: #3f7d5c;
    --k-danger: #b4483c;
    --k-warning: #b9832a;
}

html[lang="ka"] * { text-transform: none !important; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .card-title {
    font-family: var(--tc-heading-font-family);
    letter-spacing: 0 !important;
}
::selection { background: rgba(184, 137, 59, .25); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--k-gold); outline-offset: 2px;
}
.text-gold { color: var(--k-gold) !important; }
.bg-gold { background: var(--k-gold) !important; color: #fff !important; }
.font-reading { font-family: var(--k-reading-font); }
.k-kicker { font-size: 13px; letter-spacing: .04em !important; color: var(--k-gold); font-weight: 600; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- logo --------------------------------------------------------- */
.k-logo { height: 40px; width: auto; display: block; }
.k-logo-dark { display: none; }
[data-bs-theme=dark] .k-logo-light { display: none; }
[data-bs-theme=dark] .k-logo-dark { display: block; }
.sidebar-brand .k-logo, footer .k-logo { height: 36px; }
@media (max-width: 575px) { .k-logo { height: 32px; } }

/* ---------- header extras ------------------------------------------------ */
.k-user-menu { position: relative; }
.k-user-menu > button { background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--tc-neutral-900); }
.k-user-menu .avatar { width: 36px; height: 36px; object-fit: cover; }
.k-dropdown {
    position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px; z-index: 1050;
    background: var(--tc-neutral-50); border: 1px solid var(--tc-neutral-200); border-radius: var(--k-radius);
    padding: 8px; box-shadow: 0 20px 50px rgba(11, 20, 38, .10);
}
.k-dropdown a, .k-dropdown button {
    display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
    font-size: 14px; color: var(--tc-neutral-800); background: none; border: 0; text-align: left; cursor: pointer;
}
.k-dropdown a:hover, .k-dropdown button:hover { background: var(--tc-neutral-100); }
.k-dropdown hr { margin: 6px 0; border-color: var(--tc-neutral-200); opacity: 1; }
.k-bell { position: relative; display: inline-flex; color: var(--tc-neutral-900); }
.k-bell .dot { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--k-gold); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.btn-write { padding: 9px 20px !important; font-size: 14px !important; }
[x-cloak] { display: none !important; }

/* ---------- buttons ------------------------------------------------------ */
.btn-gold { background: var(--k-gold); color: #fff; border: 1px solid var(--k-gold); }
.btn-gold:hover { background: #a37630; color: #fff; }
.btn-outline { background: transparent; color: var(--tc-neutral-900); border: 1px solid var(--tc-neutral-300); }
.btn-outline:hover { border-color: var(--tc-neutral-900); }
.btn-sm-k { padding: 8px 18px !important; font-size: 14px !important; }
.btn-xs-k { padding: 5px 12px !important; font-size: 13px !important; border-radius: 30px; }
.btn-danger-k { background: transparent; color: var(--k-danger); border: 1px solid rgba(180,72,60,.35); }
.btn-danger-k:hover { background: var(--k-danger); color: #fff; }
.k-link { color: var(--tc-neutral-900); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tc-neutral-300); }
.k-link:hover { text-decoration-color: var(--k-gold); }
button.reset-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }

/* ---------- forms -------------------------------------------------------- */
.k-form label, .form-label { display: block; font-size: 14px; font-weight: 500; color: var(--tc-neutral-800); margin-bottom: 6px; }
.k-input, .k-select, .k-textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--tc-neutral-900);
    background: var(--tc-neutral-50); border: 1px solid var(--tc-neutral-300); border-radius: 10px; padding: 11px 14px;
    transition: border-color .15s;
}
[data-bs-theme=dark] .k-input, [data-bs-theme=dark] .k-select, [data-bs-theme=dark] .k-textarea { background: var(--tc-neutral-100); }
.k-input:focus, .k-select:focus, .k-textarea:focus { border-color: var(--k-gold); outline: none; }
.k-textarea { min-height: 110px; resize: vertical; }
.k-hint { font-size: 13px; color: var(--tc-neutral-500); margin-top: 5px; }
.k-error { font-size: 13px; color: var(--k-danger); margin-top: 5px; }
.is-invalid { border-color: var(--k-danger) !important; }
.k-field { margin-bottom: 18px; }
.k-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.k-check input { margin-top: 4px; accent-color: var(--k-navy); }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.k-chip { position: relative; }
.k-chip input { position: absolute; opacity: 0; pointer-events: none; }
.k-chip span {
    display: inline-block; padding: 6px 14px; border-radius: 30px; font-size: 13px; cursor: pointer;
    border: 1px solid var(--tc-neutral-300); color: var(--tc-neutral-700); transition: all .15s; user-select: none;
}
.k-chip input:checked + span { background: var(--tc-neutral-900); border-color: var(--tc-neutral-900); color: var(--tc-neutral-50); }
.k-chip input:focus-visible + span { outline: 2px solid var(--k-gold); }
.k-option-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.k-option-card { position: relative; cursor: pointer; }
.k-option-card input { position: absolute; opacity: 0; }
.k-option-card .inner { border: 1px solid var(--tc-neutral-300); border-radius: var(--k-radius); padding: 18px; height: 100%; transition: all .15s; }
.k-option-card input:checked + .inner { border-color: var(--tc-neutral-900); box-shadow: inset 0 0 0 1px var(--tc-neutral-900); }
.k-option-card .inner strong { display: block; color: var(--tc-neutral-900); font-family: var(--tc-heading-font-family); margin-bottom: 4px; }
.k-option-card .inner small { color: var(--tc-neutral-500); font-size: 13px; }

/* ---------- alerts / flash ---------------------------------------------- */
.k-alert { border-radius: 12px; padding: 14px 18px; font-size: 14px; border: 1px solid; margin-bottom: 18px; }
.k-alert-success { background: rgba(63,125,92,.08); border-color: rgba(63,125,92,.3); color: #2c5c43; }
.k-alert-error { background: rgba(180,72,60,.07); border-color: rgba(180,72,60,.3); color: #8d3127; }
.k-alert-info { background: rgba(184,137,59,.08); border-color: rgba(184,137,59,.35); color: #7a5a21; }
[data-bs-theme=dark] .k-alert-success { color: #8fd1ad; } [data-bs-theme=dark] .k-alert-error { color: #f0a49a; } [data-bs-theme=dark] .k-alert-info { color: #e5c78f; }
.k-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; background: var(--k-navy); color: var(--k-ivory); padding: 12px 22px; border-radius: 30px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* ---------- status badges ----------------------------------------------- */
.k-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.k-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-published { background: rgba(63,125,92,.12); color: var(--k-success); }
.status-pending { background: rgba(185,131,42,.13); color: #94661c; }
.status-revision { background: rgba(70,95,160,.12); color: #3f5a9e; }
.status-rejected { background: rgba(180,72,60,.11); color: var(--k-danger); }
.status-muted { background: var(--tc-neutral-100); color: var(--tc-neutral-600); }

/* ---------- covers & cards ---------------------------------------------- */
.k-cover { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--k-navy); }
.k-cover-portrait { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 10px; background: var(--k-navy); }
.article .thumbnail img, .article .card-img img { object-fit: cover; }
.card-6 .thumbnail img { aspect-ratio: 1 / 1; object-fit: cover; }
.card-10 .card-img img { aspect-ratio: 1 / 1; object-fit: cover; }
.k-type { font-size: 12px; color: var(--tc-neutral-500); }
.k-poem-excerpt { font-family: var(--k-reading-font); font-style: italic; white-space: pre-line; color: var(--tc-neutral-700); }
.k-empty { text-align: center; padding: 60px 20px; color: var(--tc-neutral-500); border: 1px dashed var(--tc-neutral-300); border-radius: var(--k-radius); }
.k-empty svg { opacity: .5; margin-bottom: 12px; }

.k-category-card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%;
    padding: 26px; border-radius: 18px; border: 1px solid var(--tc-neutral-200); background: var(--tc-neutral-50);
    transition: transform .25s, border-color .25s;
}
.k-category-card:hover { transform: translateY(-4px); border-color: var(--k-gold); }
.k-category-card .icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tc-neutral-900); color: var(--k-gold-soft); }
.k-category-card h5 { margin: 0; }
.k-category-card p { font-size: 14px; margin: 0; color: var(--tc-neutral-500); }

.k-author-card { text-align: center; padding: 28px 18px; border-radius: 18px; border: 1px solid var(--tc-neutral-200); height: 100%; transition: border-color .2s; }
.k-author-card:hover { border-color: var(--k-gold); }
.k-author-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.k-author-card h6 { margin-bottom: 4px; }
.k-author-card p { font-size: 13px; color: var(--tc-neutral-500); margin: 0; }

.k-hero {
    position: relative; overflow: hidden; border-radius: 24px; background: var(--k-navy); color: var(--k-ivory);
    min-height: 520px; display: flex; align-items: flex-end;
}
.k-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.k-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,38,0) 20%, rgba(11,20,38,.92) 100%); }
.k-hero .content { position: relative; z-index: 2; padding: 48px; max-width: 760px; }
.k-hero h1, .k-hero h2 { color: var(--k-ivory); }
.k-hero p { color: rgba(247,244,238,.8); }
.k-hero a { color: var(--k-ivory); }
.k-hero-side { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 767px) { .k-hero { min-height: 420px; } .k-hero .content { padding: 26px; } }

.k-cta { border-radius: 24px; background: var(--k-navy); color: var(--k-ivory); padding: 64px 32px; text-align: center; position: relative; overflow: hidden; }
.k-cta h2 { color: var(--k-ivory); }
.k-cta p { color: rgba(247,244,238,.75); max-width: 560px; margin: 12px auto 28px; }
.k-cta .orbit { position: absolute; border: 1px solid rgba(217,184,122,.25); border-radius: 50%; width: 900px; height: 280px; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-8deg); pointer-events: none; }
.k-cta .btn-outline { color: var(--k-ivory); border-color: rgba(247,244,238,.35); }

/* section title spacing */
.section-title h5 { font-size: 22px; }
.k-section { padding: 50px 0; }
@media (max-width: 767px) { .k-section { padding: 34px 0; } }

/* ---------- publication page / reader ----------------------------------- */
.k-reading {
    --k-fs: 19px; --k-lh: 1.85; --k-width: 680px;
    font-family: var(--k-reading-font); font-size: var(--k-fs); line-height: var(--k-lh);
    color: var(--tc-neutral-800); max-width: var(--k-width); margin: 0 auto;
}
.k-reading.font-sans { font-family: var(--k-ui-font); }
.k-reading p { margin: 0 0 1.15em; color: inherit; }
.k-reading h2, .k-reading h3, .k-reading h4 { margin: 1.6em 0 .6em; color: var(--tc-neutral-900); }
.k-reading blockquote { border-left: 2px solid var(--k-gold); padding: .2em 0 .2em 1.2em; margin: 1.6em 0; font-style: italic; color: var(--tc-neutral-700); }
.k-reading hr { border: 0; text-align: center; margin: 2.2em 0; opacity: 1; }
.k-reading hr::after { content: "✦  ✦  ✦"; color: var(--k-gold); letter-spacing: .4em; font-size: 14px; }
.k-reading img { max-width: 100%; height: auto; border-radius: 10px; }
.k-reading figure { margin: 2em 0; }
.k-reading figcaption { font-family: var(--k-ui-font); font-size: 14px; color: var(--tc-neutral-500); text-align: center; margin-top: 8px; }
.k-reading a { color: inherit; text-decoration: underline; text-decoration-color: var(--k-gold); }
.k-reading ul, .k-reading ol { padding-left: 1.4em; margin-bottom: 1.15em; }
.k-reading .ql-align-center { text-align: center; }
.k-reading .ql-align-right { text-align: right; }

.k-reader-shell { transition: background .3s, color .3s; }
.k-reader-shell.theme-sepia { background: #f3e9d6; }
.k-reader-shell.theme-sepia .k-reading { color: #4a3b28; }
.k-reader-shell.theme-dark { background: #10151f; }
.k-reader-shell.theme-dark .k-reading { color: #ddd6c8; }
.k-reader-shell.theme-dark .k-reading h2, .k-reader-shell.theme-dark .k-reading h3, .k-reader-shell.theme-dark .k-reading h4 { color: #f2ede2; }
.k-reader-shell.is-fullscreen { position: fixed; inset: 0; z-index: 3000; overflow-y: auto; padding: 60px 20px; background: var(--tc-neutral-50); }
.k-reader-shell.is-fullscreen.theme-sepia { background: #f3e9d6; }
.k-reader-shell.is-fullscreen.theme-dark { background: #10151f; }

.k-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--k-gold); z-index: 3100; transition: width .1s linear; }
.k-reader-toolbar {
    position: sticky; top: 90px; z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.k-tool {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tc-neutral-200); background: var(--tc-neutral-50);
    display: grid; place-items: center; cursor: pointer; color: var(--tc-neutral-700); transition: all .15s; position: relative;
}
.k-tool:hover { border-color: var(--tc-neutral-900); color: var(--tc-neutral-900); }
.k-tool.active { background: var(--tc-neutral-900); color: var(--tc-neutral-50); border-color: var(--tc-neutral-900); }
.k-tool .count { position: absolute; bottom: -18px; font-size: 11px; color: var(--tc-neutral-500); }
@media (max-width: 991px) {
    .k-reader-toolbar { position: fixed; top: auto; bottom: 16px; left: 50%; transform: translateX(-50%); flex-direction: row; background: var(--tc-neutral-50); padding: 8px 12px; border-radius: 40px; border: 1px solid var(--tc-neutral-200); box-shadow: 0 10px 30px rgba(11,20,38,.12); }
    .k-tool .count { display: none; }
}
.k-reader-panel {
    position: absolute; z-index: 60; left: 56px; top: 0; width: 280px; padding: 18px; border-radius: var(--k-radius);
    background: var(--tc-neutral-50); border: 1px solid var(--tc-neutral-200); box-shadow: 0 20px 50px rgba(11,20,38,.12);
    font-family: var(--k-ui-font); font-size: 14px;
}
@media (max-width: 991px) { .k-reader-panel { position: fixed; left: 50%; transform: translateX(-50%); top: auto; bottom: 80px; width: min(92vw, 340px); } }
.k-reader-panel .row-opt { margin-bottom: 14px; }
.k-reader-panel .row-opt > span { display: block; font-size: 12px; color: var(--tc-neutral-500); margin-bottom: 6px; }
.k-seg { display: flex; border: 1px solid var(--tc-neutral-300); border-radius: 10px; overflow: hidden; }
.k-seg button { flex: 1; border: 0; background: none; padding: 7px 4px; font-size: 13px; cursor: pointer; color: var(--tc-neutral-700); }
.k-seg button.on { background: var(--tc-neutral-900); color: var(--tc-neutral-50); }
.k-seg button + button { border-left: 1px solid var(--tc-neutral-300); }
.k-quote-pop { position: absolute; z-index: 3200; transform: translate(-50%, -110%); }
.k-quote-pop button { background: var(--k-navy); color: var(--k-ivory); border: 0; border-radius: 20px; padding: 7px 14px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2); cursor: pointer; }

.k-toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.k-toc li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--tc-neutral-200); }
.k-toc li::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--tc-heading-font-family); color: var(--k-gold); min-width: 28px; }
.k-toc a { color: var(--tc-neutral-900); flex: 1; }
.k-toc a:hover { color: var(--k-gold); }
.k-toc .meta { font-size: 13px; color: var(--tc-neutral-500); }
.k-toc li.current a { font-weight: 600; }

.k-part-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.k-part-nav a { border: 1px solid var(--tc-neutral-200); border-radius: var(--k-radius); padding: 16px 18px; color: var(--tc-neutral-900); display: block; }
.k-part-nav a:hover { border-color: var(--k-gold); }
.k-part-nav small { display: block; color: var(--tc-neutral-500); font-size: 12px; margin-bottom: 4px; }
.k-part-nav .next { text-align: right; }

.k-warning-box { border: 1px solid rgba(180,72,60,.3); background: rgba(180,72,60,.05); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--tc-neutral-700); font-family: var(--k-ui-font); }
.k-note-box { border-left: 2px solid var(--k-gold); padding: 6px 0 6px 18px; font-family: var(--k-ui-font); font-size: 15px; color: var(--tc-neutral-600); }

/* ---------- comments ---------------------------------------------------- */
.k-comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--tc-neutral-200); }
.k-comment img.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.k-comment .body { flex: 1; min-width: 0; }
.k-comment .who { font-size: 14px; color: var(--tc-neutral-900); font-weight: 600; }
.k-comment .when { font-size: 12px; color: var(--tc-neutral-500); margin-left: 6px; }
.k-comment .text { font-size: 15px; margin: 6px 0 8px; color: var(--tc-neutral-700); white-space: pre-line; word-wrap: break-word; }
.k-comment .actions { display: flex; gap: 16px; font-size: 13px; }
.k-comment .actions button, .k-comment .actions a { color: var(--tc-neutral-500); background: none; border: 0; padding: 0; cursor: pointer; }
.k-comment .actions button:hover { color: var(--tc-neutral-900); }
.k-comment .replies { margin-top: 6px; }
.k-comment .replies .k-comment { border-bottom: 0; padding-bottom: 6px; }
.k-badge-author { font-size: 11px; background: var(--k-gold); color: #fff; padding: 1px 8px; border-radius: 10px; margin-left: 6px; font-weight: 500; }

/* ---------- panel layout (studio / account / admin) ----------------------- */
.k-panel { display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding: 36px 0 80px; }
@media (max-width: 991px) { .k-panel { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; } }
.k-side { position: sticky; top: 100px; align-self: start; }
@media (max-width: 991px) { .k-side { position: static; } }
.k-side .k-side-title { font-size: 12px; color: var(--tc-neutral-500); padding: 0 12px; margin: 16px 0 6px; letter-spacing: .03em !important; }
.k-side nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px;
    font-size: 14px; color: var(--tc-neutral-700);
}
.k-side nav a:hover { background: var(--tc-neutral-100); color: var(--tc-neutral-900); }
.k-side nav a.active { background: var(--tc-neutral-900); color: var(--tc-neutral-50); }
.k-side nav a .n { font-size: 12px; opacity: .7; }
@media (max-width: 991px) {
    .k-side nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
    .k-side nav a { white-space: nowrap; border: 1px solid var(--tc-neutral-200); }
    .k-side .k-side-title { display: none; }
}
.k-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.k-page-head h1, .k-page-head h2 { margin: 0; font-size: 30px; }
.k-page-head p { margin: 6px 0 0; color: var(--tc-neutral-500); }
.k-box { border: 1px solid var(--tc-neutral-200); border-radius: 18px; padding: 24px; background: var(--tc-neutral-50); }
.k-box + .k-box { margin-top: 20px; }
.k-box h5 { font-size: 18px; margin-bottom: 16px; }
.k-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.k-stat { border: 1px solid var(--tc-neutral-200); border-radius: 16px; padding: 18px; }
.k-stat .v { font-family: var(--tc-heading-font-family); font-size: 28px; color: var(--tc-neutral-900); line-height: 1.2; }
.k-stat .l { font-size: 13px; color: var(--tc-neutral-500); margin-top: 4px; }
.k-stat.accent { background: var(--k-navy); border-color: var(--k-navy); }
.k-stat.accent .v { color: var(--k-ivory); } .k-stat.accent .l { color: rgba(247,244,238,.65); }

.k-table-wrap { overflow-x: auto; border: 1px solid var(--tc-neutral-200); border-radius: 16px; }
.k-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.k-table th { text-align: left; font-weight: 500; color: var(--tc-neutral-500); font-size: 12px; padding: 12px 16px; border-bottom: 1px solid var(--tc-neutral-200); background: var(--tc-neutral-100); white-space: nowrap; }
.k-table td { padding: 14px 16px; border-bottom: 1px solid var(--tc-neutral-200); vertical-align: middle; color: var(--tc-neutral-700); }
.k-table tr:last-child td { border-bottom: 0; }
.k-table .title { color: var(--tc-neutral-900); font-weight: 500; }
.k-table .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--k-navy); }
.k-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.k-actions form { display: inline; margin: 0; }
.k-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.k-tabs a { padding: 7px 14px; border-radius: 20px; font-size: 13px; border: 1px solid var(--tc-neutral-200); color: var(--tc-neutral-700); }
.k-tabs a.active { background: var(--tc-neutral-900); color: var(--tc-neutral-50); border-color: var(--tc-neutral-900); }
.k-tabs a .n { opacity: .6; margin-left: 4px; }
.k-bar { height: 8px; border-radius: 4px; background: var(--tc-neutral-200); overflow: hidden; }
.k-bar > span { display: block; height: 100%; background: var(--k-gold); }
.k-chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.k-chart .b { flex: 1; background: var(--tc-neutral-900); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.k-chart .b:hover { background: var(--k-gold); }
.k-chart-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--tc-neutral-500); margin-top: 6px; }

.k-feedback { border-left: 3px solid var(--k-warning); background: rgba(185,131,42,.07); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 14px; }
.k-feedback.reject { border-color: var(--k-danger); background: rgba(180,72,60,.06); }
.k-timeline { list-style: none; padding: 0; margin: 0; }
.k-timeline li { position: relative; padding: 0 0 18px 22px; font-size: 14px; }
.k-timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--k-gold); }
.k-timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--tc-neutral-200); }
.k-timeline li:last-child::after { display: none; }
.k-timeline .when { font-size: 12px; color: var(--tc-neutral-500); }

/* ---------- editor ------------------------------------------------------- */
.k-editor-wrap { border: 1px solid var(--tc-neutral-200); border-radius: 18px; background: var(--tc-neutral-50); }
.k-editor-title { width: 100%; border: 0; background: transparent; font-family: var(--tc-heading-font-family); font-size: 34px; font-weight: 600; color: var(--tc-neutral-900); padding: 0; outline: none; }
.k-editor-subtitle { width: 100%; border: 0; background: transparent; font-family: var(--k-reading-font); font-size: 19px; color: var(--tc-neutral-600); padding: 0; outline: none; }
.k-editor-title::placeholder, .k-editor-subtitle::placeholder { color: var(--tc-neutral-400); }
.k-editor .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--tc-neutral-200); padding: 10px 14px; position: sticky; top: 80px; z-index: 20; background: var(--tc-neutral-50); border-radius: 18px 18px 0 0; font-family: var(--k-ui-font); }
.k-editor .ql-container.ql-snow { border: 0; font-family: var(--k-reading-font); font-size: 18px; }
.k-editor .ql-editor { min-height: 460px; line-height: 1.85; padding: 28px 32px; color: var(--tc-neutral-800); }
.k-editor .ql-editor.ql-blank::before { color: var(--tc-neutral-400); font-style: normal; left: 32px; }
.k-editor .ql-editor blockquote { border-left: 2px solid var(--k-gold); padding-left: 1em; font-style: italic; }
.k-editor .ql-editor hr { border: 0; text-align: center; margin: 1.6em 0; }
.k-editor .ql-editor hr::after { content: "✦  ✦  ✦"; color: var(--k-gold); letter-spacing: .4em; font-size: 14px; }
.k-editor .ql-editor figure { margin: 1.4em 0; text-align: center; }
.k-editor .ql-editor figcaption { font-family: var(--k-ui-font); font-size: 14px; color: var(--tc-neutral-500); }
.k-editor .ql-snow .ql-stroke { stroke: var(--tc-neutral-700); }
.k-editor .ql-snow .ql-fill { fill: var(--tc-neutral-700); }
.k-editor .ql-snow .ql-picker { color: var(--tc-neutral-700); }
.k-editor .ql-snow.ql-toolbar button:hover .ql-stroke, .k-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--k-gold); }
.k-editor .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--k-gold); }
.k-editor .ql-toolbar button.k-tb { width: auto; padding: 3px 6px; font-size: 13px; color: var(--tc-neutral-700); }
@media (max-width: 767px) { .k-editor .ql-editor { padding: 20px 16px; min-height: 320px; } .k-editor-title { font-size: 26px; } .k-editor .ql-toolbar.ql-snow { top: 64px; } }
.k-editor-bar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 13px; color: var(--tc-neutral-500); padding: 12px 20px; border-top: 1px solid var(--tc-neutral-200); }
.k-save-state { display: inline-flex; align-items: center; gap: 6px; }
.k-save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--k-success); }
.k-save-state.dirty::before { background: var(--k-warning); }
.k-save-state.error::before { background: var(--k-danger); }
.k-save-state.saving::before { background: var(--k-gold); animation: kpulse 1s infinite; }
@keyframes kpulse { 50% { opacity: .3; } }
.k-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.k-cover-drop { border: 1px dashed var(--tc-neutral-300); border-radius: 14px; aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; overflow: hidden; position: relative; cursor: pointer; color: var(--tc-neutral-500); font-size: 14px; }
.k-cover-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-cover-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.k-tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--tc-neutral-300); border-radius: 10px; position: relative; }
.k-tag-input input { border: 0; outline: none; flex: 1; min-width: 140px; background: transparent; font-size: 14px; color: var(--tc-neutral-900); padding: 4px; }
.k-tag-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--tc-neutral-900); color: var(--tc-neutral-50); border-radius: 20px; padding: 3px 6px 3px 12px; font-size: 13px; }
.k-tag-pill button { background: rgba(255,255,255,.15); border: 0; color: inherit; width: 18px; height: 18px; border-radius: 50%; line-height: 1; cursor: pointer; font-size: 12px; }
.k-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--tc-neutral-50); border: 1px solid var(--tc-neutral-200); border-radius: 10px; box-shadow: 0 12px 30px rgba(11,20,38,.1); overflow: hidden; }
.k-suggest button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; font-size: 14px; cursor: pointer; color: var(--tc-neutral-800); }
.k-suggest button:hover, .k-suggest button.on { background: var(--tc-neutral-100); }
.k-sortable li { cursor: grab; }
.k-sortable li.dragging { opacity: .4; }
.k-preview-banner { background: var(--k-gold); color: #fff; text-align: center; padding: 10px; font-size: 14px; }
.k-preview-banner a { color: #fff; text-decoration: underline; }

/* ---------- author profile ----------------------------------------------- */
.k-profile-banner { height: 260px; border-radius: 24px; background: var(--k-navy) center/cover no-repeat; position: relative; overflow: hidden; }
.k-profile-banner.empty::after { content: ""; position: absolute; width: 1100px; height: 300px; border: 1px solid rgba(217,184,122,.35); border-radius: 50%; left: 50%; top: 60%; transform: translate(-50%,-50%) rotate(-6deg); }
.k-profile-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; margin-top: -60px; padding: 0 32px; position: relative; z-index: 2; }
.k-profile-head .avatar-xl { width: 132px; height: 132px; border-radius: 50%; border: 5px solid var(--tc-neutral-50); object-fit: cover; background: var(--tc-neutral-100); }
.k-profile-head .who { flex: 1; min-width: 220px; padding-bottom: 6px; }
.k-profile-head h1 { font-size: 32px; margin: 0; }
.k-profile-stats { display: flex; gap: 28px; font-size: 14px; color: var(--tc-neutral-500); }
.k-profile-stats strong { display: block; font-family: var(--tc-heading-font-family); font-size: 22px; color: var(--tc-neutral-900); }
@media (max-width: 767px) { .k-profile-banner { height: 170px; } .k-profile-head { padding: 0 12px; margin-top: -48px; } .k-profile-head .avatar-xl { width: 100px; height: 100px; } }

/* ---------- notifications ----------------------------------------------- */
.k-notif { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--tc-neutral-200); align-items: flex-start; }
.k-notif.unread { background: rgba(184,137,59,.06); }
.k-notif .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--tc-neutral-900); color: var(--k-gold-soft); display: grid; place-items: center; flex-shrink: 0; }
.k-notif .txt { flex: 1; font-size: 14px; color: var(--tc-neutral-800); }
.k-notif .when { font-size: 12px; color: var(--tc-neutral-500); }

/* pagination tweak */
.pagination { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 40px 0 0; justify-content: center; }
.pagination_item.disabled { opacity: .35; pointer-events: none; }

/* misc */
.k-avatar-stack img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--tc-neutral-50); margin-left: -8px; object-fit: cover; }
.k-divider-star { text-align: center; color: var(--k-gold); letter-spacing: .5em; margin: 30px 0; }
.mt-100 { margin-top: 100px; }

/* ---------- fixes after first render ------------------------------------ */
.navbar .navbar-brand, .navbar .header > .d-flex:first-child { flex-shrink: 0; }
.k-logo { max-width: none; flex-shrink: 0; object-fit: contain; }
.k-hero .badge { color: var(--tc-neutral-900); }
.navbar.style-3 .navbar-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1299px) { .navbar.style-3 .navbar-nav { gap: 4px; } .navbar.style-3 .navbar-nav .nav-link { font-size: 14px; padding-left: 10px; padding-right: 10px; } }
.k-reading ol li[data-list="bullet"] { list-style-type: disc; }
.k-reading .ql-ui { display: none; }
.navbar.style-3 .navbar-collapse { margin-left: 28px; }
.navbar.style-3 .header { gap: 12px; }
.k-reading a.btn, .k-reading a.tag-item, .k-reading a.icon-shape, .k-reading .k-toc a, .k-reading .k-part-nav a, .k-reading .k-box a { text-decoration: none; }
.k-reading a.btn-dark { color: var(--tc-neutral-50); }
.k-reading a.btn-gold { color: #fff; }
.k-option-card .inner { display: block; }
/* Alpine x-show must win over utility classes like .d-flex (!important) */
[x-show][style*="display: none"] { display: none !important; }

/* ---------- homepage hero slider (template sec-9) ------------------------- */
.k-hero-slider::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,15,.78) 0%, rgba(14,14,15,.45) 60%, rgba(14,14,15,.6) 100%); z-index: 0; }
.k-hero-slider > .row { position: relative; z-index: 1; }
.k-hero-slider .gallery-thumbs .card-swiper-thumb { cursor: pointer; }
.card-4 .book-mark.is-on { color: var(--k-gold); }
.card-4 .book-mark.is-on svg { fill: currentColor; }

/* ---------- archive / search (template pages) ---------------------------- */
.k-search-filters .form-control { width: auto; flex: 1 1 170px; min-width: 150px; }
.k-search-filters input.form-control { flex: 2 1 260px; }
.tag-item.active { background: var(--tc-neutral-900); color: var(--tc-system-white); border-color: var(--tc-neutral-900); }
.tag-item.active span { color: inherit; }
.book-mark.is-on { color: var(--k-gold); }
.book-mark.is-on svg { fill: currentColor; }

/* editors' choice: side cards fill the height of the big card */
.k-side-cards .k-side-card { flex: 1 1 0; display: flex; min-height: 0; }
.k-side-cards .article.card-3 { flex: 1; height: 100%; }
.k-side-cards .article.card-3 > .hover-effect-1 { display: flex; }
.k-side-cards .article.card-3 .card-img-top { height: 100%; width: 100%; }
.k-side-cards .article.card-3 .card-img-top img { height: 100%; min-height: 100%; }
.k-side-cards .article.card-3 .card-body { flex: 1; }

/* header: keep everything inside the rounded bar */
.navbar.style-3 .navbar-collapse { flex: 1 1 auto; min-width: 0; margin-left: 24px; }
.navbar.style-3 .navbar-nav { gap: 26px; justify-content: center; }
.navbar.style-3 .header > .d-flex:last-child { flex-shrink: 0; }
@media (max-width: 1299px) { .navbar.style-3 .navbar-nav { gap: 16px; } }

/* hero slider: lower height */
.block-card-swiper.k-hero-slider { padding: 70px 0 80px; }
@media (min-width: 992px) { .block-card-swiper.k-hero-slider { padding: 80px 0 90px; } }
.k-hero-slider .gallery-thumbs { max-height: 300px; }
.k-hero-slider .gallery-left .swiper-pagination { bottom: -58px; }

/* ---------- category tiles (photo background, template cut corner) ------- */
.k-cat .thumbnail { min-height: 240px; max-height: 240px; border-radius: 16px; overflow: hidden; }
.k-cat .thumbnail img { width: 100%; height: 240px; object-fit: cover; transition: transform .6s ease; }
.k-cat:hover .thumbnail img { transform: scale(1.06); }
.k-cat .thumbnail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,15,.05) 30%, rgba(14,14,15,.78) 100%); pointer-events: none; }
.k-cat-body { position: absolute; left: 22px; right: 76px; bottom: 20px; z-index: 1; display: flex; align-items: flex-end; gap: 12px; }
.k-cat-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.k-cat-text { display: flex; flex-direction: column; min-width: 0; }
.k-cat-name { color: #fff; font-family: var(--tc-heading-font-family); font-size: 18px; font-weight: 600; line-height: 1.25; }
.k-cat-count { color: rgba(255,255,255,.78); font-size: 13px; margin-top: 2px; }

/* ---------- single-3 reading page ---------------------------------------- */
.k-single3 .k-reading { margin-left: 0; }
.k-reader-shell.is-fullscreen .k-single3 .k-reading { margin-left: auto; }
@media (min-width: 992px) {
    .k-single3 .k-reader-toolbar {
        position: sticky; top: 16px; flex-direction: row; flex-wrap: wrap; align-items: center;
        gap: 8px; padding: 10px 12px; border: 1px solid var(--tc-neutral-200); border-radius: 40px;
        background: var(--tc-system-white); width: fit-content;
    }
    .k-single3 .k-tool { width: 40px; height: 40px; }
    .k-single3 .k-tool .count { position: static; margin-left: 4px; font-size: 12px; }
    .k-single3 .k-tool:has(.count) { width: auto; padding: 0 12px; border-radius: 20px; display: inline-flex; gap: 2px; }
    .k-single3 .k-reader-panel { left: 0; top: 52px; }
}
.k-single3 .author-card { position: relative; }
.k-single3 .k-toc li { padding: 10px 0; font-size: 14px; }

/* ======================================================================
   Card images: fixed proportions + hover effect
   ====================================================================== */

/* 1. equal-height cards: fixed image ratios, cards stretch, footer pinned */
.article.card-4 .card-img-top,
.article.card-7 .card-img .hover-effect-30 { aspect-ratio: 16 / 10; width: 100%; overflow: hidden; border-radius: 16px; }
.article.card-4 .card-img-top a,
.article.card-7 .card-img .hover-effect-30 a { display: block; width: 100%; height: 100%; }
.article.card-4 .card-img-top img,
.article.card-7 .card-img img { width: 100%; height: 100% !important; object-fit: cover; }
.article.card-7 .card-img { min-height: 0; }

.slider-2 .swiper-wrapper { align-items: stretch; }
.slider-2 .swiper-slide { height: auto; display: flex; }
.slider-2 .swiper-slide > .article,
.row > [class*="col"] > .article.card-4,
.row > [class*="col"] > .article.card-7 { height: 100%; width: 100%; }
.article.card-4, .article.card-7 { display: flex; }
.article.card-4 .card-body, .article.card-7 .card-body { flex: 1; height: 100%; }
.article.card-4 .card-body > .d-flex.flex-column,
.article.card-7 .card-body > .d-flex.flex-column { flex: 1; min-width: 0; }
.article.card-4 .card-title, .article.card-7 .card-title { min-height: 2.5em; }

/* 2. hover: slow zoom, soft vignette and a light sweep */
.article .card-img-top, .article .thumbnail, .article .card-img,
.k-cat .thumbnail, .article .hover-effect-30 { position: relative; overflow: hidden; }
.article .card-img-top img, .article .thumbnail img, .article .card-img img, .article .hover-effect-30 img {
    transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
    will-change: transform;
}
.article:hover .card-img-top img, .article:hover .thumbnail img, .article:hover .card-img img,
.article:hover .hover-effect-30 img, .k-cat:hover .thumbnail img {
    transform: scale(1.07) rotate(0deg);
    filter: saturate(1.08) contrast(1.03);
}
/* sweep of light */
.article .card-img-top::after, .article .thumbnail::after, .article .card-img::after, .article .hover-effect-30::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg); opacity: 0;
}
.article:hover .card-img-top::after, .article:hover .thumbnail::after,
.article:hover .card-img::after, .article:hover .hover-effect-30::after {
    animation: k-sweep .9s ease forwards;
}
@keyframes k-sweep { 0% { left: -75%; opacity: 0; } 20% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
/* soft vignette */
.article .card-img-top::before, .article .card-img::before, .article .hover-effect-30::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
    background: radial-gradient(120% 90% at 50% 40%, rgba(14,14,15,0) 55%, rgba(14,14,15,.28) 100%);
    opacity: 0; transition: opacity .6s ease;
}
.article:hover .card-img-top::before, .article:hover .card-img::before, .article:hover .hover-effect-30::before { opacity: 1; }
/* keep badges / corner arrows above the effects */
.article .thumbnail .badge, .article .card-img-top .badge, .k-cat .k-cat-body { z-index: 2; }
.k-cat .thumbnail::after { z-index: 1; }
/* lift the card a touch */
.article.card-4, .article.card-7, .article.card-11, .article.card-12, .article.card-3 { transition: transform .4s ease; }
.article.card-4:hover, .article.card-7:hover, .article.card-11:hover, .article.card-12:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
    .article img, .article { transition: none !important; animation: none !important; transform: none !important; }
    .article *::after { animation: none !important; }
}
.article.card-4 .card-title, .article.card-7 .card-title { line-height: 1.3; min-height: calc(1.3em * 2); }
.article.card-4 .card-text { line-height: 1.6; min-height: calc(1.6em * 4); }
.article.card-7 .card-text { line-height: 1.6; min-height: calc(1.6em * 3); }
.article.card-4 .card-info, .article.card-7 .card-info { min-height: 40px; }
.article.card-4 .bottom { flex-wrap: nowrap !important; min-height: 64px; }
.article.card-4 .bottom .author { min-width: 0; flex-shrink: 1; }
.article.card-4 .bottom .author span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article.card-4 .bottom ul { flex-shrink: 0; white-space: nowrap; }
.article.card-4 .bottom .right { margin-left: auto !important; margin-right: 0 !important; padding-right: 56px !important; flex-shrink: 0; }
.article.card-4 .card-title, .article.card-7 .card-title { min-height: 2lh; }
.article.card-4 .card-text { min-height: 4lh; }
.article.card-7 .card-text { min-height: 3lh; }
.article.card-4 .hover-underline .card-title, .article.card-7 .hover-underline .card-title { display: -webkit-box !important; }

/* ======================================================================
   Display font: BPG Square Banner Caps — menu, headings, key UI elements.
   Long texts (body, reading, excerpts, forms) keep Geist / Noto.
   ====================================================================== */
@font-face {
    font-family: "BPG Square Banner Caps";
    src: url("../fonts/BPGSquareBannerCaps2013.woff2") format("woff2"),
         url("../fonts/BPGSquareBannerCaps2013.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root { --k-display-font: "BPG Square Banner Caps", "Geist", "Noto Sans Georgian", sans-serif; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .card-title,
.navbar-nav .nav-link, .navbar-nav .dropdown-item, .sidebar-nav .nav-link, .sidebar-nav .collapse-item,
.section-title h5, .btn, .badge, .k-cat-name, .k-kicker, .view-more .button-text,
.k-side nav a, .k-tabs a, .tag-item, .k-stat .v, .k-profile-stats strong,
footer h6, .k-dropdown a, .k-dropdown button {
    font-family: var(--k-display-font) !important;
    font-weight: normal !important;
    letter-spacing: .02em !important;
}
.search-btn .text, .navbar .header a.fs-7, .k-user-menu .fw-semibold { font-family: var(--k-display-font) !important; letter-spacing: .02em !important; }

/* ---------- side menu (mobile / hamburger) ------------------------------- */
.sidebar-left { width: min(460px, 100vw); max-width: 100vw; }
@media (max-width: 575px) { .sidebar-left { width: min(370px, 100vw); padding: 0 20px; } }
/* arrows only on items that actually open a submenu */
.sidebar-left .sidebar-nav .nav-item:not(.collapse) > .nav-link:after { display: none !important; }
.sidebar-left .sidebar-nav .nav-link { font-size: 18px; }
.sidebar-left form .k-input { min-width: 0; }
/* compact "start writing" card */
.k-side-cta {
    position: relative; overflow: hidden; margin: 40px 0 0; padding: 28px 24px 24px; border-radius: 20px;
    background: #0e0e0f; color: #fff;
}
.k-side-cta::after {
    content: ""; position: absolute; width: 360px; height: 120px; right: -120px; top: 18px; border-radius: 50%;
    border: 1px solid rgba(217,184,122,.35); transform: rotate(-12deg); pointer-events: none;
}
.k-side-cta-mark { width: 54px; height: auto; margin-bottom: 14px; }
.k-side-cta h5 { color: #fff; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.k-side-cta p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0 0 20px; }
.k-side-cta-actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.k-side-cta-actions .btn { flex: 1; padding: 12px 10px !important; font-size: 14px; justify-content: center; }
.k-side-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.35); }
.k-side-cta .btn-outline:hover { border-color: #fff; color: #fff; }

/* "view more" pill: width follows the (longer) Georgian label, text starts after the circle */
.view-more { display: inline-flex; align-items: center; width: auto; min-width: 10rem; height: 3rem; }
.view-more .circle { position: absolute; left: 0; top: 0; }
.view-more .button-text { position: relative; inset: auto; margin: 0; padding: .75rem 1.25rem .75rem 3.75rem; white-space: nowrap; text-align: left; z-index: 1; }

/* ---------- archive header & subtype carousel ---------------------------- */
.sec-breadcumb .k-page-title { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sec-breadcumb .k-page-title > span:last-child:not(:first-child) { font-size: 14px !important; }

.k-chip-carousel { position: relative; flex: 1 1 auto; min-width: 0; }
.k-chip-track { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.k-chip-track::-webkit-scrollbar { display: none; }
.k-chip-track li { flex: 0 0 auto; scroll-snap-align: start; }
.k-chip-track .tag-item { white-space: nowrap; }
/* soft fade at the edges where more items are hidden */
.k-chip-carousel::before, .k-chip-carousel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; pointer-events: none; z-index: 1; }
.k-chip-carousel::before { left: 0; background: linear-gradient(90deg, var(--tc-neutral-50) 30%, transparent); opacity: var(--k-fade-l, 0); }
.k-chip-carousel::after { right: 0; background: linear-gradient(270deg, var(--tc-neutral-50) 30%, transparent); opacity: var(--k-fade-r, 0); }
.k-chip-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--tc-neutral-200); background: var(--tc-system-white); color: var(--tc-neutral-900);
    display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(14,14,15,.10); transition: background .2s, color .2s;
}
.k-chip-arrow:hover { background: var(--tc-neutral-900); color: #fff; }
.k-chip-arrow.prev { left: -6px; }
.k-chip-arrow.next { right: -6px; }

/* ---------- archive header: tidy layout ---------------------------------- */
.k-archive-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-bottom: 8px; }
.k-archive-head-main { flex: 1 1 420px; min-width: 0; }
.k-archive-head .k-page-title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; display: block; }
.k-count-pill {
    display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 30px;
    background: var(--tc-system-white); border: 1px solid var(--tc-neutral-200); color: var(--tc-neutral-600);
    font-size: 13px; white-space: nowrap;
}
.k-archive-text { margin: 12px 0 0; max-width: 640px; font-size: 15px; color: var(--tc-neutral-600); }
.k-archive-authors { flex-direction: column; align-items: flex-end; gap: 8px; }
.k-archive-authors-label { font-size: 12px; color: var(--tc-neutral-500); }
.k-avatar-row { display: flex; }
.k-avatar-row a { display: block; margin-left: -10px; }
.k-avatar-row a:first-child { margin-left: 0; }
.k-avatar-row img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid var(--tc-neutral-50); background: var(--tc-neutral-100); }

/* one bar: subtype carousel | sort */
.k-archive-toolbar {
    display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 10px 12px 10px 16px;
    background: var(--tc-system-white); border: 1px solid var(--tc-neutral-200); border-radius: 16px;
}
.k-archive-toolbar .k-chip-carousel { flex: 1 1 auto; min-width: 0; }
.k-archive-toolbar .k-chip-carousel::before { background: linear-gradient(90deg, var(--tc-system-white) 30%, transparent); }
.k-archive-toolbar .k-chip-carousel::after { background: linear-gradient(270deg, var(--tc-system-white) 30%, transparent); }
.k-archive-toolbar .k-chip-arrow.prev { left: -4px; }
.k-archive-toolbar .k-chip-arrow.next { right: -4px; }
.k-archive-toolbar .tag-item { padding-top: 8px; padding-bottom: 8px; }
.k-archive-toolbar-note { flex: 1; font-size: 14px; color: var(--tc-neutral-500); }
.k-archive-toolbar-sort { flex-shrink: 0; padding-left: 16px; border-left: 1px solid var(--tc-neutral-200); }
.k-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.k-sort-label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--tc-neutral-500); white-space: nowrap; }
.k-sort-select {
    border: 0; background: var(--tc-neutral-50); border-radius: 10px; padding: 8px 30px 8px 12px; font: inherit; font-size: 14px;
    color: var(--tc-neutral-900); cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e0e0f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
@media (max-width: 767px) {
    .k-archive-toolbar { flex-direction: column; align-items: stretch; padding: 12px; }
    .k-archive-toolbar-sort { border-left: 0; padding-left: 0; border-top: 1px solid var(--tc-neutral-200); padding-top: 10px; }
    .k-sort { justify-content: space-between; }
}
.k-chip-arrow { background: var(--tc-neutral-900); color: #fff; border-color: var(--tc-neutral-900); width: 36px; height: 36px; }
.k-chip-arrow svg { stroke: currentColor; }
.k-chip-arrow:hover { background: var(--k-gold); border-color: var(--k-gold); }
.k-sort-select { width: auto; min-width: 140px; max-width: 180px; }

/* ---------- search filters: one tidy bar --------------------------------- */
.k-search-filters {
    display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: center;
    padding: 12px; background: var(--tc-system-white); border: 1px solid var(--tc-neutral-200); border-radius: 16px;
}
.k-search-filters .form-control {
    width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 10px;
    background-color: var(--tc-neutral-50); font-size: 14px; color: var(--tc-neutral-900);
}
.k-search-filters select.form-control {
    appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e0e0f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.k-search-filters .btn { height: 44px; padding: 0 24px !important; border-radius: 10px; }
@media (max-width: 1199px) { .k-search-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .k-search-filters input.form-control { grid-column: 1 / -1; } }
@media (max-width: 575px) { .k-search-filters { grid-template-columns: 1fr 1fr; } .k-search-filters .btn { grid-column: 1 / -1; } }

/* ---------- author header: balanced ------------------------------------- */
.sec-1-author ~ * {}
.container.pt-100 .card-body h1.h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 6px !important; }
.container.pt-100 .avatar-154 { width: 132px; height: 132px; border: 4px solid var(--tc-system-white); box-shadow: 0 10px 30px rgba(14,14,15,.12); }
.container.pt-100 .card-body .d-flex.justify-content-center.gap-4 { gap: 0 !important; }
.container.pt-100 .card-body .d-flex.justify-content-center.gap-4 > span { padding: 0 22px; }
.container.pt-100 .card-body .d-flex.justify-content-center.gap-4 > span + span { border-left: 1px solid var(--tc-neutral-200); }
/* hero thumbnails fit their slide height so the active border is never clipped */
.k-hero-slider .card-swiper-thumb .thumb { width: 82px; height: 82px; min-width: 82px; min-height: 82px; box-sizing: border-box; }
.k-hero-slider .gallery-thumbs .swiper-slide { display: flex; align-items: center; }

/* table cover thumbnails: fixed square, never squeezed by the table */
.k-table .thumb { width: 56px; height: 56px; min-width: 56px; max-width: none; flex-shrink: 0; object-fit: cover; border-radius: 10px; display: block; }
.k-table td:has(> .thumb) { width: 80px; }

/* ---------- reading page: compact header beside the author card ---------- */
.k-single-crumbs { padding: 22px 0 18px; }
.k-single-head { margin-bottom: 24px; }
.k-single-head .card-info { row-gap: 8px !important; }
.k-single-head h1 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.2; margin: 12px 0 0; }
.k-single-head h1 + p { margin-top: 8px !important; font-size: 18px !important; }
.k-single-meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tc-neutral-200); }
.k-single-meta .bottom .ms-md-auto { margin-right: 0 !important; }
.k-single3 .col-lg-8 > img.rounded-8 { max-height: 480px !important; }
@media (min-width: 992px) { .k-single3 .col-lg-4 > .row { position: sticky; top: 16px; } }
/* bell: gentle shake when new notifications arrive */
.k-bell-bump svg { animation: k-bell-ring .9s ease; transform-origin: 50% 10%; }
.k-bell-bump .dot { animation: k-dot-pop .5s ease; }
@keyframes k-bell-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes k-dot-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .k-bell-bump svg, .k-bell-bump .dot { animation: none; } }

/* comment field: one frame, icon inside, focus ring on the frame */
.k-comment-field {
    position: relative; display: flex; background: var(--tc-system-white);
    border: 1px solid var(--tc-neutral-200); border-radius: 14px; transition: border-color .2s, box-shadow .2s;
}
.k-comment-field:focus-within { border-color: var(--k-gold); box-shadow: 0 0 0 3px rgba(184,137,59,.15); }
.k-comment-field.is-invalid { border-color: var(--k-danger); }
.k-comment-field-icon { position: absolute; left: 16px; top: 16px; color: var(--tc-neutral-400); pointer-events: none; }
.k-comment-field textarea {
    flex: 1; width: 100%; min-height: 130px; resize: vertical; border: 0; outline: none !important; box-shadow: none !important;
    background: transparent; padding: 14px 18px 14px 46px; font: inherit; font-size: 15px; line-height: 1.6; color: var(--tc-neutral-900);
    border-radius: 14px;
}
.k-comment-field textarea::placeholder { color: var(--tc-neutral-400); }
.k-comment-field textarea:focus-visible { outline: none !important; }

/* ---------- comment emoji picker --------------------------------------- */
.k-comment-field textarea { padding-right: 52px; }
.k-emoji { position: absolute; right: 10px; bottom: 10px; z-index: 5; }
.k-emoji-toggle {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--tc-neutral-200); background: var(--tc-neutral-50);
    font-size: 18px; line-height: 1; cursor: pointer; filter: grayscale(.6); transition: filter .2s, transform .2s, background .2s;
}
.k-emoji-toggle:hover, .k-emoji-toggle[aria-expanded="true"] { filter: none; transform: scale(1.08); background: var(--tc-system-white); }
.k-emoji-panel {
    position: absolute; right: 0; bottom: 44px; width: 264px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
    padding: 8px; background: var(--tc-system-white); border: 1px solid var(--tc-neutral-200); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(14,14,15,.14);
}
.k-emoji-panel button { border: 0; background: none; font-size: 22px; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; transition: background .15s, transform .15s; }
.k-emoji-panel button:hover, .k-emoji-panel button:focus-visible { background: var(--tc-neutral-100); transform: scale(1.15); }

/* ---------- comment like ------------------------------------------------- */
.k-comment-like {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 0;
    background: var(--tc-neutral-200); color: var(--tc-neutral-600); font-size: 13px; cursor: pointer; transition: background .2s, color .2s;
}
.k-comment-like:hover { color: var(--tc-neutral-900); }
.k-comment-like.is-on { background: rgba(184,137,59,.14); color: var(--k-gold); }
.k-comment-like.is-on svg { fill: currentColor; animation: k-dot-pop .4s ease; }

/* ---------- fullscreen reading: text centered on screen ------------------ */
.k-reader-shell.is-fullscreen { padding: 0 20px 80px; }
.k-reader-shell.is-fullscreen .k-single3 { padding-top: 0; }
.k-reader-shell.is-fullscreen .k-single3 .row > .col-lg-8 { flex: 0 0 100%; max-width: 100%; width: 100%; }
.k-reader-shell.is-fullscreen .k-single3 .k-reading { margin-left: auto !important; margin-right: auto !important; }
.k-reader-shell.is-fullscreen .k-single3 .k-reader-toolbar {
    position: sticky; top: 16px; margin: 24px auto 32px; z-index: 60;
}
@media (max-width: 991px) { .k-reader-shell.is-fullscreen .k-single3 .k-reader-toolbar { position: fixed; margin: 0; } }

/* emoji picker: themed tabs + scrollable grid */
.k-emoji-panel { width: 310px; display: block; padding: 0; overflow: hidden; }
.k-emoji-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--tc-neutral-200); background: var(--tc-neutral-50); }
.k-emoji-tabs button { flex: 1; font-size: 18px; padding: 6px 0; border: 0; border-radius: 8px; background: none; cursor: pointer; filter: grayscale(.7); opacity: .7; transition: all .15s; }
.k-emoji-tabs button.on, .k-emoji-tabs button:hover { filter: none; opacity: 1; background: var(--tc-system-white); box-shadow: 0 1px 4px rgba(14,14,15,.08); }
.k-emoji-group { padding: 10px 12px 4px; font-size: 12px; color: var(--tc-neutral-500); }
.k-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 4px 8px 10px; max-height: 210px; overflow-y: auto; scrollbar-width: thin; }
.k-emoji-grid button { border: 0; background: none; font-size: 21px; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; transition: background .15s, transform .15s; }
.k-emoji-grid button:hover, .k-emoji-grid button:focus-visible { background: var(--tc-neutral-100); transform: scale(1.15); }
@media (max-width: 400px) { .k-emoji-panel { width: 270px; } .k-emoji-grid { grid-template-columns: repeat(7, 1fr); } }

/* comment actions: like / reply / report / delete on one baseline, same height */
.k-comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.k-comment-actions > form { display: flex; margin: 0 !important; padding: 0; }
.k-comment-actions > button, .k-comment-actions > form > button, .k-comment-actions > a { display: inline-flex; align-items: center; margin: 0; padding: 0; line-height: 1; vertical-align: middle; }
.k-comment-actions .bg-200, .k-comment-actions .k-comment-like {
    display: inline-flex; align-items: center; height: 32px; padding: 0 14px !important; border-radius: 8px;
    font-size: 13px !important; line-height: 1; box-sizing: border-box;
}
.k-comment-actions .k-comment-like { padding: 0 12px !important; }
