:root {
    color-scheme: dark;
}

.takd-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --takd-surface: rgba(10, 16, 24, 0.72);
    --takd-surface-strong: rgba(10, 16, 24, 0.86);
    --takd-surface-soft: rgba(255, 255, 255, 0.04);
    --takd-border: rgba(255, 255, 255, 0.12);
    --takd-text: #eef2ff;
    --takd-text-soft: #ced7ea;
    --takd-text-muted: #aeb8cb;
    --takd-button-bg: #e8eaee;
    --takd-button-text: #0e131c;
    position: relative;
    padding: 8px 0 18px;
    background: transparent;
    color: var(--takd-text);
}

.takd-page.is-light {
    --takd-surface: rgba(255, 255, 255, 0.78);
    --takd-surface-strong: rgba(255, 255, 255, 0.9);
    --takd-surface-soft: rgba(18, 27, 40, 0.04);
    --takd-border: rgba(12, 18, 28, 0.1);
    --takd-text: #121927;
    --takd-text-soft: #2a3344;
    --takd-text-muted: #5b6678;
    --takd-button-bg: #161d28;
    --takd-button-text: #f5f7fb;
}

.takd-shell {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
}

.takd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .7fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.takd-hero-copy {
    min-width: 0;
}

.takd-hero.is-compact {
    max-width: 920px;
}

.takd-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--takd-text);
}

.takd-intro {
    max-width: 640px;
    margin: 0;
    color: var(--takd-text-soft);
    font-size: .98rem;
    line-height: 1.62;
}

.takd-hero-statbox,
.takd-toolbar,
.takd-card {
    backdrop-filter: blur(18px);
    background: var(--takd-surface);
    border: 1px solid var(--takd-border);
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

.takd-hero-statbox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 18px;
    border-radius: 22px;
}

.takd-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.takd-stat-value {
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--takd-text);
}

.takd-stat-label {
    color: var(--takd-text-muted);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.takd-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 20px;
}

.takd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.takd-filter {
    appearance: none;
    border: 1px solid var(--takd-border);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--takd-text);
    background: var(--takd-surface-soft);
    font: inherit;
    font-weight: 700;
}

.takd-filter span {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(127,127,127,.14);
    font-size: .8rem;
}

.takd-filter.is-active {
    background: var(--takd-surface-strong);
}

.takd-search-wrap {
    flex: 0 1 260px;
}

.takd-search {
    width: 100%;
    min-height: 46px;
    padding: 14px 18px 14px 24px;
    border-radius: 16px;
    border: 1px solid var(--takd-border);
    background: var(--takd-surface-soft);
    color: var(--takd-text);
    font: inherit;
}

.takd-search::placeholder {
    color: var(--takd-text-muted);
    opacity: 1;
}

.takd-search,
.takd-filter,
.takd-cta {
    font-family: inherit;
}

.takd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.takd-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.16),
        0 6px 14px rgba(0, 0, 0, 0.08);
}

.takd-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.takd-card:hover,
.takd-card:focus-within {
    transform: translateY(-5px);
    box-shadow:
        0 30px 72px rgba(0, 0, 0, 0.22),
        0 10px 22px rgba(0, 0, 0, 0.12);
    border-color: rgba(255,255,255,.18);
    background: rgba(30, 35, 50, 0.75);
}

.takd-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.takd-media-wrap {
    position: relative;
    padding: 20px 20px 0;
}

.takd-media-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.02);
    opacity: .08;
    transform: scale(1.1);
}

.takd-cover,
.takd-cover-placeholder {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
    background: rgba(255,255,255,0.05);
}

.takd-cover {
    object-fit: cover;
}

.takd-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
    min-height: 0;
    flex: 1;
}

.takd-topline {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.takd-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    background: var(--takd-surface-soft);
    color: var(--takd-text);
    border: 1px solid var(--takd-border);
}

.takd-card-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--takd-text);
    text-wrap: balance;
}

.takd-meta-block {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid var(--takd-border);
    background: var(--takd-surface-soft);
}

.takd-date {
    color: var(--takd-text-soft);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.takd-meta {
    color: var(--takd-text);
    font-size: .95rem;
    font-weight: 700;
}

.takd-excerpt {
    margin: 0;
    color: var(--takd-text-soft);
    line-height: 1.58;
}

.takd-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    color: var(--takd-text);
    font-weight: 800;
    border: 1px solid rgba(18, 25, 39, 0.12);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.takd-card.is-hidden {
    display: none;
}

.takd-empty-state,
.takd-empty {
    color: var(--takd-text-soft);
}

.takd-empty-state {
    margin: 20px 0 0;
}

@media (max-width: 920px) {
    .takd-hero {
        grid-template-columns: 1fr;
    }

    .takd-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .takd-search-wrap {
        flex-basis: auto;
    }
}

@media (max-width: 720px) {
    .takd-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        padding: 0 0 12px;
    }

    .takd-shell,
    .takd-hero.is-compact {
        max-width: 100%;
    }

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

    .takd-hero-statbox {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .takd-media-wrap {
        padding: 18px 18px 0;
    }

    .takd-content {
        padding: 16px 18px 18px;
    }
}


.takd-title:empty { display:none; }

@media (max-width: 920px) {
  .takd-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .takd-search-wrap {
    flex-basis: auto;
    width: 100%;
  }
}


.takd-search::placeholder {
    letter-spacing: 0.005em;
}

.takd-cta:hover,
.takd-cta:focus-visible {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.16);
    color: var(--takd-text);
    transform: translateY(-1px);
}

.takd-card:hover .takd-cover,
.takd-card:focus-within .takd-cover,
.takd-card:hover .takd-cover-placeholder,
.takd-card:focus-within .takd-cover-placeholder {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.takd-cover,
.takd-cover-placeholder {
    transition: transform .18s ease, box-shadow .18s ease;
}

.takd-grid > .takd-card:first-child {
    background: #aee2da;
    border: 2px solid #0de3ad;
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.14),
        0 8px 18px rgba(0, 0, 0, 0.08);
}

.takd-grid > .takd-card:first-child .takd-card-title,
.takd-grid > .takd-card:first-child .takd-meta,
.takd-grid > .takd-card:first-child .takd-badge,
.takd-grid > .takd-card:first-child .takd-cta {
    color: #121927;
}

.takd-grid > .takd-card:first-child .takd-date,
.takd-grid > .takd-card:first-child .takd-excerpt {
    color: #2a3344;
}

.takd-grid > .takd-card:first-child .takd-meta-block,
.takd-grid > .takd-card:first-child .takd-badge,
.takd-grid > .takd-card:first-child .takd-cta {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(18, 25, 39, 0.12);
}

.takd-grid > .takd-card:first-child:hover,
.takd-grid > .takd-card:first-child:focus-within {
    background: #0de3ad !important;
    border: 2px solid #0de3ad !important;
}


/* Hover accent update: mint highlight with white text */
.takd-card:hover,
.takd-card:focus-within {
    background: #0de3ad !important;
    border-color: #0de3ad !important;
}

.takd-card:hover,
.takd-card:hover *,
.takd-card:focus-within,
.takd-card:focus-within * {
    color: #ffffff !important;
}

.takd-card:hover .takd-badge,
.takd-card:focus-within .takd-badge {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}

.takd-card:hover .takd-cta,
.takd-card:focus-within .takd-cta {
    background: rgba(255,255,255,0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.25) !important;
}


/* Hard-coded sans-serif typography */
.takd-title,
.takd-intro,
.takd-stats,
.takd-stat,
.takd-filter,
.takd-filter button,
.takd-search,
.takd-search::placeholder,
.takd-card,
.takd-card-title,
.takd-meta,
.takd-excerpt,
.takd-badge,
.takd-cta {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
