:root {
    --tm-blog-primary: #336666;
    --tm-blog-secondary: #669999;
    --tm-blog-dark: #0d1313;
    --tm-blog-dark-soft: #131d1d;
    --tm-blog-text: #333333;
    --tm-blog-muted: #687474;
    --tm-blog-border: rgba(102, 153, 153, 0.18);
    --tm-blog-bg: #f6f8f8;
    --tm-blog-white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tm-blog-page {
    margin: 0;
    background: var(--tm-blog-bg);
    color: var(--tm-blog-text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.tm-blog-container {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto;
}

.tm-blog-hero {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 14% 20%, rgba(102,153,153,.33), transparent 28%),
        radial-gradient(circle at 86% 78%, rgba(102,153,153,.18), transparent 30%),
        linear-gradient(145deg, #0b1111, #111b1b 52%, #0b1010);
}
.tm-blog-hero__particles,
.tm-blog-hero__grid {
    position: absolute;
    inset: 0;
}
.tm-blog-hero__particles { z-index: 1; opacity: .48; }
.tm-blog-hero__grid {
    z-index: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(102,153,153,.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102,153,153,.16) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
.tm-blog-hero__topbar,
.tm-blog-hero__content { position: relative; z-index: 4; }
.tm-blog-hero__topbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tm-blog-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1.8px;
    font-size: 14px;
}
.tm-blog-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}
.tm-blog-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tm-blog-home-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s ease, border-color .2s ease;
}
.tm-blog-home-link:hover {
    background: rgba(102,153,153,.18);
    border-color: rgba(143,193,193,.55);
}

.tm-blog-language { position: relative; }
.tm-blog-language > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 92px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 12px;
    background: rgba(0,0,0,.26);
    cursor: pointer;
    font-weight: 700;
}
.tm-blog-language > summary::-webkit-details-marker { display: none; }
.tm-blog-language__flag,
.tm-blog-language__menu img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.tm-blog-language > summary i {
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translateY(-2px);
}
.tm-blog-language__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 218px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 15px;
    background: rgba(7,12,12,.98);
    box-shadow: 0 18px 45px rgba(0,0,0,.36);
}
.tm-blog-language__menu a {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 10px;
    border-radius: 10px;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: 13px;
}
.tm-blog-language__menu a:hover,
.tm-blog-language__menu a.is-active { background: rgba(102,153,153,.18); color: #fff; }
.tm-blog-language__menu b { color: #8fc1c1; font-size: 11px; letter-spacing: .8px; }

.tm-blog-hero__content {
    max-width: 840px;
    padding: 78px 0 86px;
}
.tm-blog-eyebrow,
.tm-blog-section-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8fc1c1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.7px;
    text-transform: uppercase;
}
.tm-blog-eyebrow::before,
.tm-blog-section-heading > span::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}
.tm-blog-hero__content h1 {
    margin: 18px 0 18px;
    max-width: 900px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.04;
    letter-spacing: -1.4px;
}
.tm-blog-hero__content p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 16px;
    line-height: 1.8;
}

.tm-blog-main { min-height: 460px; }
.tm-blog-index { padding: 86px 0 105px; }
.tm-blog-section-heading { max-width: 760px; margin-bottom: 46px; }
.tm-blog-section-heading h2 {
    margin: 14px 0 0;
    color: #222;
    font-size: clamp(29px, 3vw, 43px);
    line-height: 1.18;
}
.tm-blog-section-heading > div {
    width: 72px;
    height: 4px;
    margin-top: 22px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--tm-blog-primary), var(--tm-blog-secondary), transparent);
}
.tm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 26px;
}
.tm-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tm-blog-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 42px rgba(0,0,0,.055);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tm-blog-card:hover {
    transform: translateY(-7px);
    border-color: rgba(102,153,153,.34);
    box-shadow: 0 25px 58px rgba(0,0,0,.09);
}
.tm-blog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101919;
}
.tm-blog-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,16,16,.28), transparent 50%);
}
.tm-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.tm-blog-card:hover .tm-blog-card__media img { transform: scale(1.04); }
.tm-blog-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(102,153,153,.28), transparent 38%),
        linear-gradient(145deg, #0b1111, #172323);
}
.tm-blog-card__placeholder span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(143,193,193,.32);
    border-radius: 50%;
    color: #9ac9c9;
    font-weight: 800;
    letter-spacing: 2px;
}
.tm-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 28px 29px;
}
.tm-blog-card__meta,
.tm-blog-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--tm-blog-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}
.tm-blog-card h2 {
    margin: 17px 0 13px;
    font-size: 22px;
    line-height: 1.3;
}
.tm-blog-card h2 a { text-decoration: none; }
.tm-blog-card h2 a:hover { color: var(--tm-blog-primary); }
.tm-blog-card p {
    margin: 0 0 24px;
    color: #596262;
    font-size: 14px;
    line-height: 1.72;
}
.tm-blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: auto;
    color: var(--tm-blog-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}
.tm-blog-card__link span { transition: transform .2s ease; }
.tm-blog-card__link:hover span { transform: translateX(4px); }

.tm-blog-post {
    max-width: 1040px;
    padding: 70px 0 100px;
}
.tm-blog-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 36px;
    color: var(--tm-blog-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}
.tm-blog-post__header {
    max-width: 900px;
    margin-bottom: 38px;
}
.tm-blog-post__header h1 {
    margin: 18px 0 0;
    color: #202525;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1px;
}
.tm-blog-post__hero-image {
    margin: 0 0 46px;
    overflow: hidden;
    border-radius: 28px;
    background: #111;
    box-shadow: 0 20px 60px rgba(0,0,0,.10);
}
.tm-blog-post__hero-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}
.tm-blog-post__content {
    max-width: 860px;
    margin: 0 auto;
    color: #333c3c;
    font-size: 16.5px;
    line-height: 1.9;
}
.tm-blog-post__content h2,
.tm-blog-post__content h3 {
    color: #253131;
    line-height: 1.25;
    margin-top: 1.8em;
}
.tm-blog-post__content h2 { font-size: 29px; }
.tm-blog-post__content h3 { font-size: 23px; }
.tm-blog-post__content img {
    height: auto;
    border-radius: 18px;
}
.tm-blog-post__content a { color: var(--tm-blog-primary); }
.tm-blog-post__content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--tm-blog-secondary);
    border-radius: 0 14px 14px 0;
    background: rgba(102,153,153,.08);
}
.tm-blog-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 860px;
    margin: 46px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--tm-blog-border);
    color: #5e6868;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tm-blog-share > div { display: flex; gap: 9px; }
.tm-blog-share a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--tm-blog-border);
    border-radius: 50%;
    background: #fff;
    color: var(--tm-blog-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.tm-blog-share a:hover { background: var(--tm-blog-primary); color: #fff; }

.tm-blog-empty,
.tm-blog-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 50px 24px;
    border: 1px solid var(--tm-blog-border);
    border-radius: 26px;
    background: #fff;
    text-align: center;
}
.tm-blog-empty span,
.tm-blog-not-found__code {
    color: rgba(51,102,102,.12);
    font-size: 76px;
    font-weight: 800;
    letter-spacing: -4px;
}
.tm-blog-not-found { margin: 78px auto 100px; max-width: 820px; }
.tm-blog-not-found h1 { margin: 6px 0 12px; font-size: 36px; }
.tm-blog-not-found p { max-width: 560px; margin: 0 0 25px; color: #657070; line-height: 1.7; }
.tm-blog-not-found a {
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--tm-blog-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.tm-blog-footer {
    background: #0d1313;
    color: rgba(255,255,255,.72);
}
.tm-blog-footer__inner {
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.tm-blog-footer__inner > div { display: flex; flex-direction: column; gap: 7px; }
.tm-blog-footer strong { color: #fff; letter-spacing: 1px; }
.tm-blog-footer span { font-size: 12px; }
.tm-blog-footer a {
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 11px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

[data-blog-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
}
[data-blog-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .tm-blog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
    .tm-blog-container { width: min(100% - 28px, 1320px); }
    .tm-blog-hero { min-height: 410px; }
    .tm-blog-hero__topbar { min-height: 76px; }
    .tm-blog-brand span { display: none; }
    .tm-blog-brand img { width: 42px; height: 42px; }
    .tm-blog-home-link { display: none; }
    .tm-blog-hero__content { padding: 68px 0 74px; }
    .tm-blog-hero__content h1 { font-size: 39px; }
    .tm-blog-hero__content p { font-size: 14.5px; line-height: 1.7; }
    .tm-blog-index { padding: 62px 0 78px; }
    .tm-blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .tm-blog-card__body { padding: 24px; }
    .tm-blog-post { padding: 52px 0 76px; }
    .tm-blog-post__header h1 { font-size: 34px; }
    .tm-blog-post__hero-image { margin-bottom: 34px; border-radius: 20px; }
    .tm-blog-post__content { font-size: 15.5px; line-height: 1.82; }
    .tm-blog-share { align-items: flex-start; flex-direction: column; }
    .tm-blog-footer__inner { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-blog-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .tm-blog-card,
    .tm-blog-card__media img,
    .tm-blog-card__link span { transition: none !important; }
    .tm-blog-card:hover { transform: none !important; }
}
