/* PÖFF Siseveeb — stiil (inspireeritud poff.ee-st, moodne oranž aktsent) */

:root {
    --accent:       #f97316;
    --accent-dark:  #ea580c;
    --accent-soft:  #fff1e6;
    --black:        #0a0a0a;
    --ink:          #111;
    --ink-2:        #333;
    --muted:        #6b7280;
    --border:       #ececec;
    --border-strong:#d4d4d4;
    --bg:           #fafaf7;
    --surface:      #ffffff;
    --surface-2:    #f6f6f2;
    --radius:       12px;
    --radius-lg:    16px;
    --radius-sm:    8px;
    --shadow-sm:    0 1px 2px rgba(10,10,10,.04);
    --shadow:       0 1px 3px rgba(10,10,10,.04), 0 4px 14px rgba(10,10,10,.04);
    --shadow-lg:    0 6px 24px rgba(10,10,10,.08), 0 2px 6px rgba(10,10,10,.04);
    --font:         'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}

a { color: var(--accent-dark); text-decoration: none; transition: color .12s; }
a:hover { color: var(--accent); }

h1, h2, h3 { letter-spacing: -.02em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---------------- Header ---------------- */
.site-header {
    background: var(--black);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(6px);
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-logo {
    width: 38px;
    height: 38px;
    display: block;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-mark {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.01em;
    color: #fff;
}
.brand-mark .dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: middle;
    transform: translateY(-2px);
}
.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-top: 4px;
}
.main-nav {
    display: flex;
    gap: 2px;
    flex: 1;
    margin-left: 12px;
}
.main-nav a {
    color: #d4d4d4;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    text-decoration: none;
}
.main-nav a.active {
    color: #fff;
    background: var(--accent);
    font-weight: 600;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #333;
    border: 2px solid rgba(255,255,255,.12);
}
.user-meta { text-align: right; line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-links { font-size: 12px; color: #9ca3af; }
.user-links a { color: #9ca3af; }
.user-links a:hover { color: var(--accent); }

/* ---------------- Main ---------------- */
.site-main {
    min-height: calc(100vh - 72px - 60px);
    padding: 48px 0 80px;
}

/* ---------------- Hero ---------------- */
.hero {
    margin-bottom: 40px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 12px;
}
.hero h1 .dot {
    color: var(--accent);
}
.hero-sub {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
    max-width: 700px;
    line-height: 1.5;
}

/* ---------------- Page head ---------------- */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.page-head h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    letter-spacing: -.02em;
}
.page-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------- Cards ---------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 22px 28px 14px;
    border-bottom: 1px solid var(--border);
}
.card-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
}
.card-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}
.card-body { padding: 22px 28px; flex: 1; }
.card-body .muted { color: var(--muted); font-size: 14px; }
.card-body code {
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Dashboard grid */
.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.dash-grid .card-news { grid-row: span 2; }
@media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-grid .card-news { grid-row: auto; }
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, transform .05s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(249,115,22,.25);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); }

.btn-google {
    background: #fff;
    color: #3c4043;
    border-color: #dadce0;
    font-weight: 500;
}
.btn-google:hover { background: #f8f9fa; color: #3c4043; }

/* ---------------- Alerts ---------------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.alert-error    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ---------------- Forms ---------------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--ink-2);
}
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=email],
.form-group input[type=search],
.form-group input[type=url],
.form-group input[type=file],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    transition: border-color .12s, box-shadow .12s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.form-group textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------------- Login page ---------------- */
.login-page {
    background:
        radial-gradient(circle at 20% 20%, rgba(249,115,22,.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(249,115,22,.10), transparent 40%),
        var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
}
.login-box {
    background: #fff;
    color: var(--ink);
    max-width: 440px;
    width: 100%;
    padding: 48px 44px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}
.login-logo-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    display: block;
}
.login-box h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.login-sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 28px;
    line-height: 1.5;
}
.login-box .btn { width: 100%; }
.login-foot {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* ---------------- Contacts ---------------- */
.contacts-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.contacts-search {
    flex: 1;
    min-width: 260px;
    padding: 13px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: border-color .12s, box-shadow .12s;
}
.contacts-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.contacts-filter {
    padding: 13px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
}
.contacts-count {
    font-size: 13px;
    color: var(--muted);
    margin-left: auto;
    font-weight: 500;
}

/* Tabel */
.contacts-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.contacts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.contacts-table thead th {
    background: var(--surface-2);
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.contacts-table tbody tr {
    transition: background .12s;
}
.contacts-table tbody tr:hover {
    background: var(--accent-soft);
}
.contacts-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.contacts-table tbody tr:last-child td { border-bottom: 0; }
.contacts-table .c-name {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}
.contacts-table .c-role {
    color: var(--ink-2);
}
.contacts-table .c-email a,
.contacts-table .c-phone a {
    color: var(--accent-dark);
}
.contacts-table .c-email a:hover,
.contacts-table .c-phone a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.contacts-table .c-dept {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .contacts-table thead { display: none; }
    .contacts-table, .contacts-table tbody, .contacts-table tr, .contacts-table td {
        display: block;
        width: 100%;
    }
    .contacts-table tr {
        padding: 14px 18px;
        border-bottom: 1px solid var(--border);
    }
    .contacts-table td {
        padding: 3px 0;
        border: 0;
    }
    .contacts-table .c-name { font-size: 16px; margin-bottom: 2px; }
    .contacts-table .c-role { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
    .contacts-table .c-email::before { content: "✉ "; color: var(--muted); }
    .contacts-table .c-phone::before { content: "☎ "; color: var(--muted); }
    .contacts-table .c-dept::before  { content: "🏢 "; }
}

/* ---------------- Mini list (dashboard widgets) ---------------- */
.mini-list {
    list-style: none;
    padding: 0; margin: 0;
}
.mini-list li {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 2px 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mini-list li:last-child { border-bottom: 0; }
.mini-list li:first-child { padding-top: 0; }
.mini-date {
    grid-row: span 2;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-dark);
    align-self: center;
    background: var(--accent-soft);
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    align-self: start;
    margin-top: 2px;
}
.mini-main { font-weight: 600; font-size: 14px; }
.mini-sub  { font-size: 12px; line-height: 1.4; }

/* ---------------- News preview (dashboard) ---------------- */
.news-preview {
    list-style: none; padding: 0; margin: 0;
}
.news-preview li {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
.news-preview li.has-image {
    grid-template-columns: 140px 1fr;
}
.news-preview li:first-child { padding-top: 0; }
.news-preview li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-preview .thumb {
    width: 140px; height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.news-preview .news-date {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.news-preview h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}
.news-preview h3 a { color: var(--ink); }
.news-preview h3 a:hover { color: var(--accent-dark); text-decoration: none; }
.news-preview p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 560px) {
    .news-preview li.has-image {
        grid-template-columns: 1fr;
    }
    .news-preview .thumb { width: 100%; height: 180px; }
}

/* ---------------- Quick links ---------------- */
.quick-links {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 4px;
}
.quick-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--ink);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
}
.quick-links li a:hover {
    background: var(--surface-2);
    border-color: var(--border);
    text-decoration: none;
    color: var(--ink);
}

/* ---------------- News list (uudised.php) ---------------- */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    align-items: stretch;
}
.news-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.news-item .news-cover-wrap {
    display: block;
    background: var(--surface-2);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
}
.news-item.has-no-image .news-cover-wrap { display: none; }
.news-item .news-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.news-item .news-cover-wrap:hover .news-cover { transform: scale(1.04); }

.news-item .news-body-wrap {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.news-item > .news-body-wrap > header { margin-bottom: 12px; }
.news-item h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.news-meta {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.news-meta a { color: var(--muted); }
.news-meta a:hover { color: var(--accent-dark); }

.news-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
    flex: 1 1 auto;
}
.news-body p { margin: 0 0 12px; }
.news-body p:last-child { margin-bottom: 0; }

.news-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.btn.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

@media (max-width: 640px) {
    .news-list { grid-template-columns: 1fr; gap: 20px; }
    .news-item .news-body-wrap { padding: 18px 20px 20px; }
    .news-item h2 { font-size: 20px; }
}

/* ---------------- Admin ---------------- */
.admin-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}
.admin-news-list {
    list-style: none; padding: 0; margin: 0;
}
.admin-news-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.admin-news-list li:last-child { border-bottom: 0; }
.admin-news-list li:first-child { padding-top: 0; }
.admin-actions {
    display: flex; gap: 14px; align-items: center;
    font-size: 13px;
    white-space: nowrap;
}
.admin-actions a { font-weight: 600; }
.link-danger,
.link-primary {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    font-family: inherit;
}
.link-danger  { color: #b91c1c; }
.link-primary { color: var(--accent-dark); }
.link-danger:hover,
.link-primary:hover { text-decoration: underline; }

/* ---------------- Facebook feed ---------------- */
.social-section {
    margin-top: 40px;
}
.fb-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.fb-frame {
    max-width: 100%;
    border: 0;
    display: block;
    background: var(--surface);
}

/* Sektsioonipealkiri (admin) */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
}
.image-preview {
    margin-top: 8px;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* ---------------- Documents (Eelarvejuhile, Töötajale) ---------------- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.doc-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, transform .1s, box-shadow .15s;
}
.doc-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
}
.doc-badge {
    display: inline-block;
    align-self: flex-start;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.doc-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.doc-open {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-top: auto;
}

/* --- Docs accordion (inline Drive-content) --- */
.docs-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 0 0 14px;
}
.docs-accordion-section { margin-bottom: 40px; }
.docs-cards-section { margin-top: 16px; }

.docs-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.doc-accordion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.doc-accordion[open] {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.doc-accordion-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .12s;
}
.doc-accordion-summary::-webkit-details-marker { display: none; }
.doc-accordion-summary:hover { background: var(--surface-2); }
.doc-accordion-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}
.doc-accordion-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: transform .2s ease;
    flex: 0 0 auto;
}
.doc-accordion[open] .doc-accordion-chevron {
    transform: rotate(180deg);
    color: var(--accent-dark);
}

.doc-accordion-body {
    padding: 4px 28px 28px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.doc-accordion-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 12px 0 8px;
}
.doc-source-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}
.doc-source-link:hover { color: var(--accent); }

/* Long-form content inside accordion body */
.doc-accordion-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 760px;
}
.doc-accordion-content h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 28px 0 10px;
    color: var(--ink);
}
.doc-accordion-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 8px;
    color: var(--ink);
}
.doc-accordion-content h2:first-child,
.doc-accordion-content h3:first-child { margin-top: 4px; }
.doc-accordion-content p { margin: 0 0 14px; }
.doc-accordion-content ul,
.doc-accordion-content ol { margin: 0 0 16px; padding-left: 22px; }
.doc-accordion-content li { margin-bottom: 6px; }
.doc-accordion-content blockquote {
    margin: 14px 0;
    padding: 10px 16px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.doc-accordion-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}
.doc-accordion-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 14px 0;
    font-size: 14px;
}
.doc-accordion-content th,
.doc-accordion-content td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.doc-accordion-content th {
    background: var(--surface-2);
    font-weight: 700;
}
.doc-accordion-content code {
    background: var(--surface-2);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Admin: dokumentide kategooria tabid + tüübihaldus */
.doc-cat-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.doc-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .12s, border-color .12s;
}
.doc-cat-tab:hover { color: var(--ink); text-decoration: none; }
.doc-cat-tab.is-active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}
.doc-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.doc-cat-tab.is-active .doc-cat-count {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.doc-types-panel {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
}
.doc-types-panel > summary {
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-2);
    list-style: none;
    user-select: none;
    background: var(--surface-2);
}
.doc-types-panel > summary::-webkit-details-marker { display: none; }
.doc-types-panel > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    transition: transform .15s;
    color: var(--muted);
}
.doc-types-panel[open] > summary::before { transform: rotate(90deg); }
.doc-types-panel[open] > summary {
    border-bottom: 1px solid var(--border);
}
.doc-types-panel > .admin-grid {
    padding: 20px;
}

@media (max-width: 640px) {
    .doc-accordion-summary { padding: 14px 16px; gap: 10px; }
    .doc-accordion-title { font-size: 15px; }
    .doc-accordion-body { padding: 4px 18px 20px; }
    .doc-accordion-content { font-size: 15px; }
}

/* ---------------- Struktuur ---------------- */
.figma-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.figma-frame {
    width: 100%;
    height: min(70vh, 720px);
    border: 0;
    display: block;
    border-radius: 6px;
}
.struct-search {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.struct-search h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
}
.struct-results {
    margin-top: 16px;
    max-height: 400px;
    overflow-y: auto;
}
.struct-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.struct-row:last-child { border-bottom: 0; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--black);
    color: #9ca3af;
    font-size: 13px;
    padding: 22px 0;
    margin-top: 80px;
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: var(--accent); }

/* ---------------- Highlights (Hetkel oluline) ---------------- */
.highlights {
    margin-bottom: 40px;
}
.highlights-head {
    margin-bottom: 14px;
}
.highlight-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.highlights-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
.highlights-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.highlights-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
    .highlights-grid.count-2,
    .highlights-grid.count-3 { grid-template-columns: 1fr; }
}

.highlight-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(249,115,22,.08), rgba(249,115,22,.02)),
        var(--surface);
    border: 1px solid rgba(249,115,22,.25);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(249,115,22,.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.highlight-title {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
    line-height: 1.25;
}
.highlight-body {
    margin: 0;
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.55;
}
.highlight-cta {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
    padding-top: 6px;
}
.highlight-cta:hover { color: var(--accent); text-decoration: underline; }

/* ---------------- News CTA button + preview link ---------------- */
.news-cta { margin-top: 20px; }
.news-cta .btn {
    font-size: 14px;
    padding: 10px 18px;
}
.news-preview-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}
.news-preview-link:hover { color: var(--accent); }

/* ---------------- Form row (2 cols) ---------------- */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ---------------- Utilities ---------------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }

/* ---------------- Eelarve (budget dashboard) ---------------- */

/* List of budgets */
.budget-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.budget-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.budget-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    border-color: var(--border-strong);
    text-decoration: none;
}
.budget-card.is-unlocked { border-left: 3px solid #0f9d58; }
.budget-card.is-locked   { border-left: 3px solid var(--border-strong); }
.budget-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    letter-spacing: .02em;
}
.budget-card.is-unlocked .budget-badge { background: #dcfce7; color: #166534; }
.budget-title { margin: 4px 0 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.budget-meta  { font-size: 13px; color: var(--muted); }
.budget-open  { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Dashboard page head */
.budget-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.budget-page-head-left h1 {
    margin: 4px 0 4px;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    letter-spacing: -.02em;
}
.budget-back {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .02em;
}
.budget-back:hover { color: var(--accent-dark); text-decoration: none; }
.budget-manager { margin: 0; color: var(--muted); font-size: 15px; }
.budget-page-head-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.budget-page-head-right form { margin: 0; }
.budget-page-head-right .btn { padding: 10px 18px; font-size: 14px; }
.btn-refresh { display: inline-flex; align-items: center; gap: 8px; }
.btn-refresh-icon {
    display: inline-block;
    font-size: 16px;
    transition: transform .4s ease;
}
.btn-refresh:hover .btn-refresh-icon { transform: rotate(180deg); }

/* Hero card — highlight of the budget result */
.budget-hero {
    position: relative;
    padding: 28px 32px 26px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #fafaf7 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.budget-hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--accent);
}
.budget-hero.is-positive::before { background: #0f9d58; }
.budget-hero.is-negative::before { background: #e11d48; }
.budget-hero.is-neutral::before  { background: var(--muted); }

.budget-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.budget-hero-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}
.budget-hero-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.budget-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18);
    animation: budget-dot-pulse 2.6s ease-in-out infinite;
}
@keyframes budget-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,.08); }
}

.budget-hero-value {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    margin-bottom: 4px;
}
.budget-hero.is-positive .budget-hero-value { color: #0f9d58; }
.budget-hero.is-negative .budget-hero-value { color: #dc2626; }

.budget-hero-msg {
    font-size: 15px;
    color: var(--ink-2);
    margin-bottom: 20px;
    max-width: 720px;
}

.budget-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.budget-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
    gap: 14px;
}
@media (max-width: 640px) {
    .budget-bar-row {
        grid-template-columns: 1fr 1fr;
    }
    .budget-bar-row .budget-bar-track { grid-column: 1 / -1; order: 3; }
}
.budget-bar-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.budget-bar-value {
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.budget-bar-track {
    position: relative;
    height: 10px;
    background: rgba(0,0,0,.05);
    border-radius: 999px;
    overflow: hidden;
}
.budget-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .45s cubic-bezier(.4,.0,.2,1);
}
.bar-income  { background: linear-gradient(90deg, #22c55e, #0f9d58); }
.bar-expense { background: linear-gradient(90deg, #fb923c, #ea580c); }
.bar-wages   { background: linear-gradient(90deg, #a78bfa, #7c3aed); }

/* Summary cards (smaller — under hero) */
.budget-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 32px;
}
.budget-sum-card {
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}
.budget-sum-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.budget-sum-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--border-strong);
}
.budget-sum-card.is-income::before  { background: linear-gradient(90deg, #22c55e, #0f9d58); }
.budget-sum-card.is-expense::before { background: linear-gradient(90deg, #fb923c, #ea580c); }
.budget-sum-card.is-wages::before   { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.budget-sum-card.is-actual::before  { background: linear-gradient(90deg, #ef4444, #b91c1c); }
.budget-sum-card.is-other::before   { background: var(--border-strong); }

.budget-sum-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}
.budget-sum-value {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

/* Sections + tables */
.budget-section { margin-bottom: 32px; }
.budget-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}
.budget-section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink);
}
.budget-section-total {
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.budget-section-total strong { color: var(--ink); font-weight: 700; }

.budget-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.budget-table thead th {
    text-align: left;
    padding: 11px 14px;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.budget-table thead th.col-number { text-align: right; }
.budget-table thead th.col-status { text-align: center; }
.budget-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}
.budget-table tbody td.col-number { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.budget-table tbody td.col-status { text-align: center; }
.budget-table tbody tr:last-child td { border-bottom: 0; }
.budget-table tbody tr:hover { background: #fcfcfa; }

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    background: #f3f4f6;
    color: #374151;
}
.status-pill.is-ok    { background: #dcfce7; color: #166534; }
.status-pill.is-warn  { background: #fef3c7; color: #92400e; }
.status-pill.is-other { background: #e0e7ff; color: #3730a3; }

.budget-foot {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

/* ---------------- Üldine kulutatud vs. eelarve paneel ---------------- */
.budget-actual {
    margin: 14px 0 26px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 6px solid #22c55e;
}
.budget-actual.is-warn { border-left-color: #f59e0b; background: #fffbeb; }
.budget-actual.is-over { border-left-color: #ef4444; background: #fef2f2; }

.budget-actual-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.budget-actual-head-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.budget-actual-head-updated {
    font-size: 12px;
    color: var(--ink-2);
}

.budget-actual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}
.budget-actual-bar-wrap { grid-column: 1 / -1; }
.budget-actual-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 4px;
}
.budget-actual-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.budget-actual-value.is-negative { color: #b91c1c; }
.budget-actual-sub { font-size: 12px; margin-top: 2px; }

.budget-actual-bar-wrap { min-width: 0; }
.budget-actual-bar-track {
    height: 14px;
    background: #eef0e8;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}
.budget-actual-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #84cc16);
    transition: width .3s ease;
}
.budget-actual.is-warn .budget-actual-bar-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.budget-actual.is-over .budget-actual-bar-fill {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}
.budget-actual-bar-caption {
    font-size: 13px;
    color: var(--ink-2);
}
.budget-actual.is-over .budget-actual-bar-caption { color: #991b1b; }

@media (max-width: 680px) {
    .budget-actual-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------------- Eelarve dashboardi kuluregister ---------------- */
.budget-table thead th.col-progress { text-align: left; width: 160px; }
.budget-table tbody td.col-progress { vertical-align: middle; }
.budget-table tbody tr.is-over td.col-number { color: #b91c1c; }

.budget-progress {
    display: inline-block;
    width: 110px;
    height: 8px;
    border-radius: 999px;
    background: #eef0e8;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}
.budget-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #84cc16);
    transition: width .3s ease;
}
.budget-progress-fill.is-over {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}
.budget-progress-text {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}

.expense-form-card { margin-top: 4px; }
.expense-form .expense-form-row {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 12px;
    margin-bottom: 8px;
}
.expense-form .form-group { margin-bottom: 10px; }
.expense-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 4px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.expense-form input[type="text"],
.expense-form input[type="date"],
.expense-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
}
.expense-form input:focus,
.expense-form select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.expense-table tbody td { vertical-align: middle; }

.btn-link-danger {
    background: transparent;
    border: 0;
    color: #b91c1c;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.btn-link-danger:hover { background: #fee2e2; }

@media (max-width: 680px) {
    .expense-form .expense-form-row {
        grid-template-columns: 1fr;
    }
    .budget-table thead th.col-progress,
    .budget-table tbody td.col-progress { display: none; }
}

/* Admin: parooli hashija */
.hash-result {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f4f4f0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    word-break: break-all;
}


/* ---------------- PÖFF countdown (esileht) ---------------- */
.poff-countdown {
    margin: 4px 0 32px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}
.poff-countdown::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 50%, rgba(249,115,22,.22), transparent 55%),
        radial-gradient(circle at 15% 120%, rgba(249,115,22,.12), transparent 50%);
    pointer-events: none;
}
.poff-countdown > * { position: relative; z-index: 1; }

.cd-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}
.cd-date {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.cd-units {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    justify-items: center;
}
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}
.cd-num {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.cd-txt {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #9ca3af;
}

.poff-countdown.is-started .cd-started {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 720px) {
    .poff-countdown {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }
    .cd-units { gap: 10px; }
    .cd-unit  { min-width: 52px; }
}
