/* Fallback content templates — single posts, archives, search, 404, comments.
   These aren't part of the block-driven marketing pages; kept simple and legible. */

.tn-content-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 135px 0 64px;
}
@media (min-width: 1024px) { .tn-content-wrap { padding-top: 225px; } }
.tn-content-wrap--narrow { max-width: 760px; }

.tn-content-header { margin-bottom: 48px; }
.tn-content-header h1 { font-size: 34px; font-weight: 700; margin: 0 0 12px; color: var(--tn-fg); }
.tn-content-header__desc { color: rgba(26,26,34,0.6); font-size: 15px; line-height: 1.65; }

.tn-entry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) { .tn-entry-grid { grid-template-columns: repeat(2, 1fr); } }

.tn-entry__thumb { display: block; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; outline: 1px solid var(--tn-border); margin-bottom: 16px; }
.tn-entry__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.tn-entry__thumb:hover img { transform: scale(1.03); }
.tn-entry__thumb--single { aspect-ratio: auto; margin: 24px 0; }

.tn-entry__title { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.tn-entry__title a { color: var(--tn-fg); text-decoration: none; }
.tn-entry__title a:hover { color: var(--tn-accent); }
.tn-entry--single .tn-entry__title { font-size: 38px; margin-bottom: 12px; }

.tn-entry__meta { font-size: 13px; color: rgba(26,26,34,0.5); margin: 0 0 12px; }
.tn-entry__excerpt, .tn-entry__content { font-size: 15px; line-height: 1.7; color: rgba(26,26,34,0.8); }
.tn-entry__content :is(h2, h3) { color: var(--tn-fg); margin-top: 32px; }
.tn-entry__content a { color: var(--tn-accent); }

.tn-entry-none { text-align: center; padding: 64px 0; color: rgba(26,26,34,0.6); }

.tn-404 { text-align: center; }
.tn-404__code {
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 8px;
    background: linear-gradient(90deg, #a13d3d 0%, #c44a4a 55%, #e58a8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (min-width: 768px) { .tn-404__code { font-size: 140px; } }
.tn-404__title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--tn-fg);
    margin: 0 0 16px;
}
@media (min-width: 768px) { .tn-404__title { font-size: 40px; } }
.tn-404__lead {
    max-width: 520px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(26,26,34,0.62);
}

.tn-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}
.tn-404__cta,
.tn-404__cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 12px 0 26px;
    border-radius: 9999px;
    background: var(--tn-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.tn-404__cta:hover { background: var(--tn-accent-h); color: #fff !important; transform: translateY(-2px); }
.tn-404__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.18);
    transition: transform 0.2s;
}
.tn-404__cta:hover .tn-404__cta-icon { transform: translateX(2px); }
.tn-404__cta--ghost,
.tn-404__cta--ghost:visited {
    padding: 0 26px;
    background: transparent;
    color: var(--tn-fg) !important;
    border: 1px solid var(--tn-border);
}
.tn-404__cta--ghost:hover {
    background: var(--tn-muted);
    color: var(--tn-fg) !important;
    border-color: rgba(26,26,34,0.2);
}

.tn-404__links { margin-top: 48px; }
.tn-404__links-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(26,26,34,0.45);
    margin-bottom: 14px;
}
.tn-404__links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
}
.tn-404__links a {
    display: inline-flex;
    padding: 7px 16px;
    border-radius: 9999px;
    border: 1px solid var(--tn-border);
    font-size: 14px;
    font-weight: 500;
    color: rgba(26,26,34,0.75);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.tn-404__links a:hover { color: var(--tn-accent); border-color: var(--tn-accent); }

.tn-404__search { margin-top: 44px; }
.tn-404__search label {
    display: block;
    font-size: 13px;
    color: rgba(26,26,34,0.55);
    margin-bottom: 10px;
}
.tn-404__search-row {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}
.tn-404__search input {
    flex: 1;
    height: 46px;
    padding: 0 16px;
    border-radius: 9999px;
    border: 1px solid var(--tn-border);
    background: #fff;
    font-size: 15px;
    color: var(--tn-fg);
}
.tn-404__search input:focus {
    outline: none;
    border-color: var(--tn-accent);
}
.tn-404__search button {
    height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 9999px;
    background: var(--tn-fg);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.tn-404__search button:hover { opacity: 0.88; }

.tn-comments { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--tn-border); }
.tn-comments__title { font-size: 22px; font-weight: 700; margin: 0 0 24px; }
.tn-comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.tn-comments__closed { color: rgba(26,26,34,0.5); }
