:root {
    --tm-surface-strong: #0d2746;
    --tm-surface-soft: #f5f8fb;
    --tm-surface-warm: #fff4ea;
}

.home .tm-section-container {
    padding-top: 1.5rem;
}

.home .tm-main-grid {
    align-items: start;
}

.tm-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    margin: 0 0 2.25rem;
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 102, 0, 0.24), transparent 34%),
        linear-gradient(135deg, #0d2746 0%, #114070 54%, #ff6600 130%);
    box-shadow: 0 30px 80px rgba(13, 39, 70, 0.28);
}

.tm-home-hero::after {
    content: '';
    position: absolute;
    inset: auto -12% -35% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(8px);
}

.tm-home-hero-copy,
.tm-home-hero-panel {
    position: relative;
    z-index: 1;
}

.tm-home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-home-hero-title {
    margin: 1rem 0 0.9rem;
    max-width: 12ch;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: #fff;
}

.tm-home-hero-text {
    max-width: 42rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.tm-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.tm-home-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tm-home-hero-btn:hover {
    transform: translateY(-2px);
}

.tm-home-hero-btn-primary {
    background: #fff;
    color: var(--tm-primary);
    box-shadow: 0 18px 35px rgba(6, 22, 40, 0.24);
}

.tm-home-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tm-home-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.75rem 0 0;
}

.tm-home-hero-stat {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.tm-home-hero-stat dt {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.tm-home-hero-stat dd {
    margin: 0.45rem 0 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.tm-home-hero-panel {
    display: flex;
}

.tm-home-hero-panel-card {
    width: 100%;
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.tm-home-hero-panel-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-home-hero-panel-title {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.tm-home-hero-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.tm-topic-chip {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(13, 39, 70, 0.22);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tm-topic-chip:hover {
    transform: translateY(-2px);
    background: rgba(13, 39, 70, 0.34);
}

.tm-topic-chip-label {
    font-weight: 700;
}

.tm-topic-chip-count {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
}

.tm-home-hero-links {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.tm-home-hero-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tm-home-hero-links a::after {
    content: '->';
    font-weight: 800;
}

.tm-home-hero-links a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.16);
}

.tm-section-copy {
    max-width: 50rem;
    margin: -0.45rem 0 1.4rem;
    color: var(--tm-light-text);
    font-size: 1rem;
}

.tm-post-card,
.tm-phone-card-modern,
.tm-laptop-secondary-card,
.tm-device-card--neo,
.tm-icymi-list-item,
.tm-sidebar-widget,
.single .tm-single-post-article,
.single .tm-author-box {
    border-radius: 20px;
}

.tm-post-card,
.tm-icymi-list-item,
.tm-sidebar-widget,
.single .tm-single-post-article,
.single .tm-author-box {
    border: 1px solid rgba(17, 64, 112, 0.08);
    box-shadow: 0 18px 45px rgba(17, 64, 112, 0.08);
}

.tm-post-card-meta a {
    color: var(--tm-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tm-sidebar {
    position: sticky;
    top: calc(var(--tm-header-height, 80px) + 1.5rem);
    align-self: start;
}

.tm-sidebar-widget {
    overflow: hidden;
}

.tm-trending-item,
.tm-sidebar-list li {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tm-trending-item:hover,
.tm-sidebar-list li:hover {
    transform: translateX(4px);
}

.tm-newsletter-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.tm-newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tm-newsletter-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
}

.single .tm-single-post-container {
    margin-top: 2.5rem;
}

.single .tm-single-post-article {
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.tm-entry-dek {
    max-width: 44rem;
    margin: 1rem 0 0;
    color: #5b6775;
    font-size: 1.08rem;
    line-height: 1.75;
}

.single .tm-post-thumbnail {
    box-shadow: 0 24px 55px rgba(17, 64, 112, 0.14);
}

.single .tm-author-box {
    background: linear-gradient(135deg, #fff, var(--tm-surface-soft));
}

.single .tm-related-posts h3 {
    letter-spacing: -0.03em;
}

.tm-reveal-item {
    opacity: 0;
    transform: translateY(18px);
}

.tm-reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.section-loaded {
    animation: tm-section-fade 0.5s ease both;
}

@keyframes tm-section-fade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .tm-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .tm-home-hero {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .tm-home-hero-title {
        max-width: none;
    }

    .tm-home-hero-stats,
    .tm-home-hero-topic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tm-home-hero {
        margin-bottom: 1.75rem;
        padding: 1.2rem;
        border-radius: 22px;
    }

    .tm-home-hero-btn {
        width: 100%;
    }

    .tm-home-hero-links a {
        padding: 0.85rem 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-home-hero,
    .tm-home-hero-btn,
    .tm-topic-chip,
    .tm-home-hero-links a,
    .tm-trending-item,
    .tm-sidebar-list li,
    .tm-reveal-item,
    .section-loaded {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.tm-devices-grid--clean {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.35rem;
}

.tm-devices-grid--clean > .tm-device-card {
    grid-column: span 4;
}

.tm-devices-grid--clean > .tm-device-card:first-child {
    grid-column: span 8;
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

.tm-device-card--clean {
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(17, 64, 112, 0.08);
    box-shadow: 0 22px 45px rgba(17, 64, 112, 0.08);
}

.tm-device-card--clean .tm-device-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f8fbff, #edf4fb);
    border-bottom: 1px solid rgba(17, 64, 112, 0.08);
}

.tm-devices-grid--clean > .tm-device-card:first-child .tm-device-card-image {
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid rgba(17, 64, 112, 0.08);
    border-bottom: 0;
}

.tm-device-card--clean .tm-device-image-link,
.tm-device-card--clean .tm-device-image-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.tm-device-card--clean .tm-device-image-link img {
    object-fit: cover;
}

.tm-device-card--clean .tm-device-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.35rem;
}

.tm-device-card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tm-device-card--clean .tm-device-brand {
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: var(--tm-surface-soft);
    color: var(--tm-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tm-device-card-date {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.tm-device-card--clean .tm-device-card-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.tm-devices-grid--clean > .tm-device-card:first-child .tm-device-card-title {
    font-size: 1.9rem;
}

.tm-device-card-summary {
    margin: 0;
    color: #51606f;
    font-size: 0.98rem;
    line-height: 1.7;
}

.tm-device-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.tm-device-spec-item {
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    background: var(--tm-surface-soft);
    border: 1px solid rgba(17, 64, 112, 0.06);
}

.tm-device-spec-item dt {
    margin: 0;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tm-device-spec-item dd {
    margin: 0.4rem 0 0;
    color: var(--tm-dark-text);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
}

.tm-device-card-footer {
    margin-top: auto;
    padding-top: 0.2rem;
}

.tm-device-card--clean .tm-device-cta {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    background: var(--tm-surface-strong);
    box-shadow: none;
}

.tm-device-card--clean .tm-device-cta:hover {
    background: var(--tm-primary);
    box-shadow: none;
}

.tm-device-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.25rem 1rem 4rem;
}

.tm-device-single {
    display: grid;
    gap: 1.6rem;
}

.tm-device-single-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 30%),
        linear-gradient(135deg, #0d2746 0%, #114070 60%, #1b5d99 100%);
    color: #fff;
    box-shadow: 0 30px 70px rgba(13, 39, 70, 0.22);
}

.tm-device-single-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-device-single-title {
    margin: 1rem 0 0.75rem;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.tm-device-single-summary {
    max-width: 44rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
    line-height: 1.8;
}

.tm-device-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.tm-device-single-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.tm-device-single-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.35rem 0 0;
}

.tm-device-single-fact {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tm-device-single-fact dt {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tm-device-single-fact dd {
    margin: 0.45rem 0 0;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
}

.tm-device-single-actions {
    margin-top: 1.35rem;
}

.tm-device-single-media-frame {
    height: 100%;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(13, 39, 70, 0.18);
}

.tm-device-single-media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
}

.tm-device-single-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: start;
}

.tm-device-single-sidebar {
    position: sticky;
    top: calc(var(--tm-header-height, 80px) + 1.5rem);
}

.tm-device-sidebar-card,
.tm-device-single-section,
.tm-device-spec-section {
    padding: 1.5rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(17, 64, 112, 0.08);
    box-shadow: 0 18px 42px rgba(17, 64, 112, 0.08);
}

.tm-device-sidebar-title,
.tm-device-single-section h2,
.tm-device-spec-heading {
    margin: 0 0 0.8rem;
    color: var(--tm-primary);
    letter-spacing: -0.02em;
}

.tm-device-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-device-sidebar-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(17, 64, 112, 0.08);
}

.tm-device-sidebar-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tm-device-sidebar-list span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tm-device-sidebar-list strong {
    color: var(--tm-dark-text);
    font-size: 0.96rem;
    line-height: 1.5;
}

.tm-device-single-content {
    display: grid;
    gap: 1.25rem;
}

.tm-device-single-section p,
.tm-device-spec-section p {
    margin: 0;
    color: #51606f;
    line-height: 1.8;
}

.tm-device-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    margin: 0;
}

.tm-device-spec-pair {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: var(--tm-surface-soft);
    border: 1px solid rgba(17, 64, 112, 0.06);
}

.tm-device-spec-label {
    margin: 0;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tm-device-spec-value {
    margin: 0.45rem 0 0;
    color: var(--tm-dark-text);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.6;
}

.tm-device-spec-pair-group {
    grid-column: 1 / -1;
    background: #fff;
}

.tm-device-spec-label-group {
    color: var(--tm-primary);
}

.tm-device-spec-value-group {
    margin: 0.85rem 0 0;
}

.tm-device-spec-value-group .tm-device-spec-grid {
    margin-top: 0;
}

.tm-device-single-notes .entry-content {
    font-size: 1rem;
}

@media (max-width: 1180px) {
    .tm-devices-grid--clean {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-devices-grid--clean > .tm-device-card,
    .tm-devices-grid--clean > .tm-device-card:first-child {
        grid-column: span 1;
    }

    .tm-devices-grid--clean > .tm-device-card:first-child {
        grid-template-columns: 1fr;
    }

    .tm-devices-grid--clean > .tm-device-card:first-child .tm-device-card-image {
        aspect-ratio: 4 / 3;
        border-right: 0;
        border-bottom: 1px solid rgba(17, 64, 112, 0.08);
    }

    .tm-device-single-layout {
        grid-template-columns: 1fr;
    }

    .tm-device-single-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .tm-device-single-hero {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .tm-device-single-facts,
    .tm-device-spec-grid,
    .tm-device-spec-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tm-devices-grid--clean {
        grid-template-columns: 1fr;
    }

    .tm-devices-grid--clean > .tm-device-card,
    .tm-devices-grid--clean > .tm-device-card:first-child {
        grid-column: span 1;
    }

    .tm-device-page {
        padding: 1.5rem 0.75rem 3rem;
    }

    .tm-device-single-title {
        font-size: 2rem;
    }
}