:root {
  --tn-red: #e60024;
  --tn-red-dark: #b8001d;
  --tn-ink: #17191d;
  --tn-text: #262a30;
  --tn-muted: #6b7280;
  --tn-line: #e7e9ed;
  --tn-soft: #f5f6f8;
  --tn-paper: #fff;
  --tn-link: #1264a3;
  --tn-max: 1180px;
  --tn-radius: 8px;
  --tn-shadow: 0 8px 26px rgba(12, 19, 31, .08);
}

html { scroll-behavior: smooth; }
body.topineta-site { margin: 0; color: var(--tn-text); background: var(--tn-soft); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.72; -webkit-font-smoothing: antialiased; }
body.topineta-site *, body.topineta-site *::before, body.topineta-site *::after { box-sizing: border-box; }
body.topineta-site img { max-width: 100%; height: auto; }
body.topineta-site a { color: inherit; text-decoration: none; }
body.topineta-site a:hover { color: var(--tn-red); }
body.topineta-site button, body.topineta-site input { font: inherit; }
body.topineta-site .l-container, body.topineta-site #content, body.topineta-site .c-gnav, body.topineta-site .l-header, body.topineta-site .l-footer { max-width: none; }

.tn-shell { width: min(calc(100% - 32px), var(--tn-max)); margin-inline: auto; }
.tn-skip-link { position: fixed; left: 12px; top: -60px; z-index: 99999; padding: 10px 14px; background: #111; color: #fff !important; border-radius: 6px; }
.tn-skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.tn-header { position: relative; z-index: 100; background: var(--tn-paper); border-bottom: 1px solid var(--tn-line); }
.tn-utility { background: #202328; color: #d9dde4; font-size: 12px; }
.tn-utility__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tn-utility p { margin: 0; }
.tn-utility__links { display: flex; gap: 16px; }
.tn-utility a:hover { color: #fff; }

.tn-brandbar__inner { min-height: 88px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(360px, 520px) auto; gap: 24px; align-items: center; }
.tn-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.tn-brand__mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px 3px 11px 3px; color: #fff; background: linear-gradient(145deg, var(--tn-red), #ff3d58); font-size: 28px; font-weight: 900; line-height: 1; transform: skew(-5deg); box-shadow: 0 6px 14px rgba(230,0,36,.2); }
.tn-brand__text { display: grid; line-height: 1; gap: 5px; }
.tn-brand__text strong { color: #121419; font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.055em; }
.tn-brand__text small { color: #89909a; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.tn-brand__logo .custom-logo-link { display: block; }
.tn-brand__logo img { display: block; max-width: 260px; max-height: 64px; width: auto; height: auto; }

.tn-search { display: flex; min-width: 0; height: 46px; border: 2px solid #252a30; border-radius: 7px; overflow: hidden; background: #fff; }
.tn-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 15px; color: var(--tn-text); background: #fff; }
.tn-search input::placeholder { color: #9aa0aa; }
.tn-search button { display: flex; align-items: center; justify-content: center; gap: 6px; width: 92px; border: 0; color: #fff; background: #252a30; cursor: pointer; font-size: 13px; font-weight: 700; }
.tn-search button:hover { background: #111318; }
.tn-menu-button { display: none; }

.tn-nav { border-top: 1px solid var(--tn-line); background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.025); }
.tn-nav__scroll { overflow-x: auto; scrollbar-width: none; }
.tn-nav__scroll::-webkit-scrollbar { display: none; }
.tn-nav__list { display: flex; align-items: stretch; gap: 0; min-width: max-content; margin: 0; padding: 0; list-style: none; }
.tn-nav__list > li { margin: 0; }
.tn-nav__list a { position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 19px; color: #363b42; font-size: 14px; font-weight: 800; }
.tn-nav__list a::after { content: ""; position: absolute; left: 19px; right: 19px; bottom: -1px; height: 3px; background: var(--tn-red); transform: scaleX(0); transition: transform .2s ease; }
.tn-nav__list a:hover::after, .tn-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.tn-mobile-panel { display: none; }

.tn-main { min-height: 70vh; padding: 24px 0 60px; }
.tn-page-intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin: 0 0 18px; padding: 24px 28px; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); }
.tn-eyebrow { margin: 0 0 7px; color: var(--tn-red); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.tn-page-intro h1 { margin: 0; color: #15171b; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.04em; }
.tn-page-intro p:not(.tn-eyebrow) { max-width: 780px; margin: 8px 0 0; color: var(--tn-muted); font-size: 14px; }
.tn-live-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #ffd6dd; background: #fff4f6; color: #bf1831; border-radius: 999px; font-size: 11px; font-weight: 800; }
.tn-live-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--tn-red); box-shadow: 0 0 0 4px rgba(230,0,36,.1); }

.tn-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr) minmax(0, .75fr); gap: 12px; }
.tn-hero-card, .tn-mini-card { overflow: hidden; background: #fff; border: 1px solid var(--tn-line); border-radius: var(--tn-radius); }
.tn-hero-card--lead { grid-row: span 2; display: flex; flex-direction: column; }
.tn-hero-card__media, .tn-mini-card__media { display: block; overflow: hidden; background: #e8eaed; }
.tn-hero-card__media { aspect-ratio: 16 / 9; }
.tn-mini-card__media { aspect-ratio: 16 / 8.4; }
.tn-media__image, .tn-hero-card__media img, .tn-mini-card__media img, .tn-category-lead__media img, .tn-link-card__thumb img, .tn-archive-card__media img, .tn-related-card__media img, .tn-rank-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tn-hero-card__media:hover img, .tn-mini-card__media:hover img, .tn-category-lead__media:hover img, .tn-archive-card__media:hover img, .tn-related-card__media:hover img { transform: scale(1.025); }
.tn-noimage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100px; color: #aab0b9; background: linear-gradient(135deg,#f0f1f3,#e4e7eb); font-size: 18px; font-weight: 900; letter-spacing: .12em; }
.tn-hero-card__body { padding: 17px 19px 20px; }
.tn-hero-card__body h2 { margin: 8px 0 8px; color: #17191d; font-size: clamp(21px, 2.3vw, 28px); line-height: 1.42; letter-spacing: -.025em; }
.tn-hero-card__body p { margin: 0; color: var(--tn-muted); font-size: 13px; line-height: 1.75; }
.tn-mini-card { display: flex; flex-direction: column; }
.tn-mini-card__body { padding: 11px 12px 13px; }
.tn-mini-card__body h3 { margin: 7px 0 0; font-size: 15px; line-height: 1.48; letter-spacing: -.015em; }
.tn-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #8a9099; font-size: 11px; }
.tn-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 3px; color: #fff !important; background: var(--tn-red); font-size: 10px; line-height: 1; font-weight: 800; }
.tn-badge:hover { background: var(--tn-red-dark); }

.tn-empty-hero { padding: 52px 34px; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); text-align: center; }
.tn-empty-hero h2 { margin: 4px 0 8px; font-size: 28px; }
.tn-empty-hero p { margin: 0 auto 20px; max-width: 650px; color: var(--tn-muted); }
.tn-empty-hero a, .tn-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 5px; background: var(--tn-red); color: #fff !important; font-weight: 800; }

.tn-quicknav-wrap { display: flex; align-items: stretch; margin: 18px 0 22px; border: 1px solid #d9dde3; background: #fff; border-radius: var(--tn-radius); overflow: hidden; }
.tn-quicknav__label { flex: 0 0 auto; display: flex; align-items: center; margin: 0; padding: 0 16px; color: #fff; background: #262a30; font-size: 12px; font-weight: 800; }
.tn-quicknav { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tn-quicknav::-webkit-scrollbar { display: none; }
.tn-quicknav a { flex: 0 0 auto; display: flex; align-items: center; min-height: 46px; padding: 0 17px; border-right: 1px solid var(--tn-line); color: #3f444b; font-size: 12px; font-weight: 700; }
.tn-quicknav a:hover { color: var(--tn-red); background: #fff7f8; }

.tn-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.tn-content-main { min-width: 0; }
.tn-section { scroll-margin-top: 70px; margin-bottom: 22px; padding: 22px; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); }
.tn-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: -2px 0 16px; padding-bottom: 12px; border-bottom: 3px solid #2c3036; }
.tn-section-heading > div { min-width: 0; }
.tn-section-heading h2 { position: relative; margin: 0; color: #17191d; font-size: 22px; line-height: 1.35; letter-spacing: -.025em; }
.tn-section-heading h2::after { content: ""; position: absolute; left: 0; bottom: -15px; width: 68px; height: 3px; background: var(--tn-red); }
.tn-section-heading p { margin: 4px 0 0; color: var(--tn-muted); font-size: 11px; }
.tn-section-more { flex: 0 0 auto; color: #5b616a; font-size: 11px; font-weight: 800; }
.tn-section-more span { color: var(--tn-red); }

.tn-update-list { border: 1px solid var(--tn-line); border-radius: 5px; overflow: hidden; }
.tn-update-item { display: grid; grid-template-columns: 86px 80px minmax(0, 1fr); align-items: center; min-height: 48px; border-bottom: 1px solid var(--tn-line); }
.tn-update-item:last-child { border-bottom: 0; }
.tn-update-item > time { padding: 0 10px; color: #777e88; font-size: 11px; }
.tn-update-item .tn-badge { justify-self: start; }
.tn-update-item h3 { min-width: 0; margin: 0; padding: 10px 12px 10px 0; font-size: 13px; line-height: 1.45; }
.tn-update-item h3 a::before { content: "›"; margin-right: 6px; color: var(--tn-red); font-weight: 900; }

.tn-category-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px 18px; }
.tn-category-lead { grid-row: span 4; padding-right: 18px; border-right: 1px solid var(--tn-line); }
.tn-category-lead__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #e9ebef; }
.tn-category-lead__body { padding-top: 11px; }
.tn-category-lead__body h3 { margin: 6px 0; font-size: 19px; line-height: 1.45; }
.tn-category-lead__body p { margin: 0; color: var(--tn-muted); font-size: 12px; }
.tn-link-card { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 76px; padding-bottom: 12px; border-bottom: 1px solid var(--tn-line); }
.tn-link-card:last-child { border-bottom: 0; padding-bottom: 0; }
.tn-link-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #e9ebef; }
.tn-link-card time { color: #90959d; font-size: 10px; }
.tn-link-card h3 { margin: 3px 0 0; font-size: 13px; line-height: 1.42; }

.tn-sidebar { min-width: 0; }
.tn-sidebar__sticky { position: sticky; top: 18px; display: grid; gap: 16px; }
.tn-widget { overflow: hidden; margin: 0; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); }
.tn-widget__title { margin: 0; padding: 13px 15px; border-top: 3px solid #252a30; border-bottom: 1px solid var(--tn-line); color: #202328; background: #fbfbfc; font-size: 15px; line-height: 1.3; }
.tn-widget__title::before { content: ""; display: inline-block; width: 4px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 99px; background: var(--tn-red); }
.tn-rank-list { margin: 0; padding: 4px 14px 7px; list-style: none; counter-reset: rank; }
.tn-rank-item { position: relative; padding: 10px 0; border-bottom: 1px solid var(--tn-line); }
.tn-rank-item:last-child { border-bottom: 0; }
.tn-rank-item > a { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: center; }
.tn-rank-item__number { position: absolute; z-index: 2; left: -4px; top: 6px; display: grid; place-items: center; width: 23px; height: 23px; color: #fff; background: #22262c; border: 2px solid #fff; border-radius: 50%; font-size: 10px; font-weight: 900; }
.tn-rank-item:nth-child(1) .tn-rank-item__number { background: var(--tn-red); }
.tn-rank-item__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9ebef; border-radius: 4px; }
.tn-rank-item__title { font-size: 12px; font-weight: 700; line-height: 1.45; }
.tn-category-links { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 14px 12px; }
.tn-category-links a { display: flex; justify-content: space-between; gap: 5px; padding: 8px 4px; border-bottom: 1px dotted #d7dbe1; font-size: 11px; }
.tn-category-links b { color: #a1a6ad; font-size: 10px; }
.tn-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 14px 15px; }
.tn-tags a { padding: 5px 7px; border: 1px solid #e0e3e7; background: #fafbfc; border-radius: 3px; color: #656b74; font-size: 10px; }

.tn-breadcrumb { margin: 0 0 14px; color: #8a9098; font-size: 10px; }
.tn-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.tn-breadcrumb li:not(:last-child)::after { content: ">"; margin: 0 8px; color: #b3b7bd; }
.tn-breadcrumb li[aria-current="page"] { color: #676d75; }

.tn-content-grid--article { grid-template-columns: minmax(0, 1fr) 300px; }
.tn-article { overflow: hidden; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); }
.tn-article__header { padding: 26px 30px 0; }
.tn-article__header > .tn-badge { margin-bottom: 10px; }
.tn-article__header h1 { margin: 0; color: #17191d; font-size: clamp(25px, 3.5vw, 36px); line-height: 1.42; letter-spacing: -.035em; }
.tn-article__meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 11px 0 20px; color: #858b94; font-size: 10px; }
.tn-article__hero { overflow: hidden; margin: 0 -30px; background: #eceef1; }
.tn-article__hero img { display: block; width: 100%; max-height: 590px; object-fit: cover; }
.tn-article__content { padding: 28px 34px 40px; font-size: 16px; line-height: 1.92; }
.tn-article__content > *:first-child { margin-top: 0; }
.tn-article__content p { margin: 0 0 1.6em; }
.tn-article__content h2 { position: relative; margin: 2.3em 0 .9em; padding: 14px 16px 14px 19px; border-left: 5px solid var(--tn-red); background: #f2f3f5; color: #181b20; font-size: 24px; line-height: 1.45; }
.tn-article__content h3 { margin: 2em 0 .8em; padding-bottom: 9px; border-bottom: 2px solid #333840; color: #1c1f24; font-size: 20px; line-height: 1.45; }
.tn-article__content h3::after { content: ""; display: block; width: 54px; height: 2px; margin-bottom: -11px; background: var(--tn-red); transform: translateY(9px); }
.tn-article__content h4 { margin: 1.8em 0 .7em; font-size: 17px; }
.tn-article__content a { color: var(--tn-link); text-decoration: underline; text-underline-offset: 3px; }
.tn-article__content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 14px; }
.tn-article__content th, .tn-article__content td { padding: 10px 12px; border: 1px solid #dfe2e6; vertical-align: top; }
.tn-article__content th { background: #f3f4f6; text-align: left; }
.tn-article__content blockquote { margin: 1.6em 0; padding: 16px 18px; border-left: 4px solid #aeb4bc; background: #f7f8f9; color: #555c65; }
.tn-article__content ul, .tn-article__content ol { padding-left: 1.5em; }
.tn-article__content .wp-block-image img { border-radius: 5px; }
.tn-article__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 34px 32px; padding-top: 18px; border-top: 1px solid var(--tn-line); }
.tn-article__tags span { margin-right: 4px; color: #6f757d; font-size: 11px; font-weight: 800; }
.tn-article__tags a { padding: 4px 7px; border: 1px solid var(--tn-line); border-radius: 3px; color: #6e747c; font-size: 10px; }

.tn-related { margin-top: 22px; }
.tn-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.tn-related-card { overflow: hidden; border: 1px solid var(--tn-line); border-radius: 5px; }
.tn-related-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #e9ebef; }
.tn-related-card > div { padding: 10px 11px 12px; }
.tn-related-card h3 { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }

.tn-archive-header { margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); }
.tn-archive-header h1 { margin: 0; color: #17191d; font-size: clamp(27px, 4vw, 38px); line-height: 1.3; }
.tn-archive-header p, .tn-archive-description { margin: 7px 0 0; color: var(--tn-muted); font-size: 13px; }
.tn-archive-list { display: grid; gap: 12px; }
.tn-archive-card { display: grid; grid-template-columns: 250px minmax(0,1fr); min-height: 150px; overflow: hidden; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); }
.tn-archive-card__media { display: block; min-height: 100%; overflow: hidden; background: #e9ebef; }
.tn-archive-card__body { padding: 17px 19px; }
.tn-archive-card__body h2 { margin: 7px 0; font-size: 19px; line-height: 1.45; }
.tn-archive-card__body p { margin: 0; color: var(--tn-muted); font-size: 12px; }
.tn-pagination { margin-top: 20px; }
.tn-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tn-pagination .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #daddE2; background: #fff; border-radius: 4px; font-size: 12px; }
.tn-pagination .current { color: #fff; border-color: var(--tn-red); background: var(--tn-red); }
.tn-empty-note { padding: 22px; border: 1px dashed #d4d8de; background: #fbfbfc; color: var(--tn-muted); border-radius: 5px; font-size: 13px; }

.tn-page-body { max-width: 920px; margin-inline: auto; }
.tn-page-article .tn-article__header { padding-bottom: 20px; border-bottom: 1px solid var(--tn-line); }
.tn-comments { margin-top: 22px; padding: 22px; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); }
.tn-comments h2 { margin-top: 0; font-size: 18px; }
.tn-comments .comment-list { padding-left: 0; list-style: none; }
.tn-comments .comment-body { margin-bottom: 12px; padding: 14px; background: #f7f8fa; border-radius: 5px; }

.tn-notfound { max-width: 720px; margin: 70px auto; padding: 48px 34px; border: 1px solid var(--tn-line); background: #fff; border-radius: var(--tn-radius); text-align: center; }
.tn-notfound__code { margin: 0; color: var(--tn-red); font-size: 72px; font-weight: 900; line-height: 1; }
.tn-notfound h1 { margin: 10px 0; }
.tn-notfound form { display: flex; gap: 8px; max-width: 480px; margin: 22px auto 15px; }
.tn-notfound input[type="search"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cfd3d8; border-radius: 4px; }
.tn-notfound input[type="submit"], .tn-notfound button { padding: 0 15px; border: 0; background: #24282e; color: #fff; border-radius: 4px; }

.tn-footer { margin-top: 0; padding: 36px 0 20px; color: #cfd3d8; background: #202328; }
.tn-footer__top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; padding-bottom: 26px; }
.tn-brand--footer .tn-brand__text strong { color: #fff; }
.tn-brand--footer .tn-brand__text small { color: #8f969f; }
.tn-footer__description { max-width: 560px; margin: 12px 0 0; color: #aeb4bc; font-size: 12px; }
.tn-footer__nav ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.tn-footer__nav a { color: #d8dce2; font-size: 11px; }
.tn-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid #34383e; color: #858c95; font-size: 10px; }
.tn-footer__bottom a { color: #b5bbc3; }

@media (max-width: 980px) {
  .tn-brandbar__inner { grid-template-columns: 1fr minmax(280px, 430px); }
  .tn-menu-button { display: none; }
  .tn-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .tn-hero-card--lead { grid-row: span 2; }
  .tn-mini-card:nth-of-type(n+4) { display: none; }
  .tn-content-grid, .tn-content-grid--article { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
  .tn-category-grid { grid-template-columns: minmax(0, 1fr); }
  .tn-category-lead { grid-row: auto; padding-right: 0; padding-bottom: 15px; border-right: 0; border-bottom: 1px solid var(--tn-line); }
}

@media (max-width: 760px) {
  .tn-shell { width: min(calc(100% - 20px), var(--tn-max)); }
  .tn-utility { display: none; }
  /* Smartphone header: hide the desktop horizontal global navigation.
     The same links are available from the hamburger panel instead. */
  .tn-nav { display: none; }
  .tn-brandbar__inner { min-height: 66px; grid-template-columns: 1fr auto; gap: 12px; }
  .tn-brand__mark { width: 36px; height: 36px; font-size: 23px; }
  .tn-brand__text strong { font-size: 25px; }
  .tn-brand__text small { font-size: 7px; }
  .tn-brand__logo img { max-width: 190px; max-height: 46px; }
  .tn-search { display: none; }
  .tn-menu-button { display: grid; width: 42px; height: 44px; padding: 7px 8px 5px; border: 0; background: transparent; cursor: pointer; }
  .tn-menu-button span { display: block; width: 24px; height: 2px; margin: 2px auto; background: #252a30; transition: .2s; }
  .tn-menu-button b { color: #60666e; font-size: 7px; letter-spacing: .08em; }
  .tn-nav__list a { min-height: 43px; padding: 0 13px; font-size: 12px; }
  .tn-nav__list a::after { left: 13px; right: 13px; }
  .tn-mobile-panel { display: block; position: absolute; inset: auto 0 0; transform: translateY(100%); border-top: 1px solid var(--tn-line); background: #fff; box-shadow: 0 16px 25px rgba(0,0,0,.12); }
  .tn-mobile-panel[hidden] { display: none; }
  .tn-mobile-panel__inner { width: min(calc(100% - 24px), 720px); margin: 0 auto; padding: 14px 0 18px; }
  .tn-mobile-search { display: flex; margin-bottom: 12px; border: 1px solid #cfd4da; border-radius: 5px; overflow: hidden; }
  .tn-mobile-search input { flex: 1; min-width: 0; padding: 10px 11px; border: 0; outline: 0; }
  .tn-mobile-search button { width: 60px; border: 0; background: #24282e; color: #fff; font-size: 11px; font-weight: 800; }
  .tn-mobile-panel__nav, .tn-mobile-panel .tn-nav__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 0; background: var(--tn-line); list-style: none; }
  .tn-mobile-panel__nav a, .tn-mobile-panel .tn-nav__list a { display: flex; align-items: center; min-height: 42px; padding: 8px 11px; background: #fff; font-size: 12px; font-weight: 700; }

  .tn-main { padding: 13px 0 40px; }
  .tn-page-intro { align-items: flex-start; margin-bottom: 10px; padding: 17px 16px; }
  .tn-page-intro h1 { font-size: 27px; }
  .tn-page-intro p:not(.tn-eyebrow) { font-size: 12px; line-height: 1.65; }
  .tn-live-pill { display: none; }
  .tn-hero-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tn-hero-card--lead { grid-column: 1 / -1; grid-row: auto; }
  .tn-hero-card__body { padding: 13px 14px 15px; }
  .tn-hero-card__body h2 { font-size: 21px; }
  .tn-hero-card__body p { display: none; }
  .tn-mini-card:nth-of-type(n+4) { display: flex; }
  .tn-mini-card__body { padding: 8px 9px 10px; }
  .tn-mini-card__body h3 { font-size: 12px; }
  .tn-mini-card .tn-meta-row time { display: none; }
  .tn-badge { min-height: 20px; padding: 0 6px; font-size: 9px; }
  .tn-quicknav-wrap { margin: 10px 0 14px; }
  .tn-quicknav__label { display: none; }
  .tn-quicknav a { min-height: 42px; padding: 0 13px; font-size: 11px; }
  .tn-content-grid, .tn-content-grid--article { grid-template-columns: 1fr; }
  .tn-sidebar { display: block; }
  .tn-sidebar__sticky { position: static; }
  .tn-section { margin-bottom: 14px; padding: 15px 13px; }
  .tn-section-heading { align-items: center; margin-bottom: 12px; padding-bottom: 10px; }
  .tn-section-heading h2 { font-size: 19px; }
  .tn-section-heading h2::after { bottom: -13px; width: 52px; }
  .tn-section-heading p { display: none; }
  .tn-update-item { grid-template-columns: 67px minmax(0,1fr); padding: 8px 0; }
  .tn-update-item > time { grid-column: 1; grid-row: 1; padding-left: 8px; }
  .tn-update-item .tn-badge { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 8px; }
  .tn-update-item h3 { grid-column: 2; grid-row: 1 / span 2; padding: 6px 10px 6px 0; font-size: 12px; }
  .tn-category-grid { gap: 11px; }
  .tn-category-lead__body h3 { font-size: 17px; }
  .tn-link-card { grid-template-columns: 94px minmax(0,1fr); }
  .tn-widget { border-radius: 6px; }
  .tn-category-links { grid-template-columns: 1fr 1fr; }
  .tn-breadcrumb { margin-bottom: 9px; overflow: hidden; white-space: nowrap; }
  .tn-article__header { padding: 20px 17px 0; }
  .tn-article__header h1 { font-size: 24px; }
  .tn-article__meta { gap: 8px; }
  .tn-article__hero { margin: 0 -17px; }
  .tn-article__content { padding: 22px 18px 30px; font-size: 15px; line-height: 1.9; }
  .tn-article__content h2 { margin-top: 2em; padding: 12px 12px 12px 14px; font-size: 20px; }
  .tn-article__content h3 { font-size: 18px; }
  .tn-article__tags { margin: 0 18px 25px; }
  .tn-related-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tn-archive-card { grid-template-columns: 122px minmax(0,1fr); min-height: 102px; }
  .tn-archive-card__body { padding: 10px 11px; }
  .tn-archive-card__body h2 { margin: 5px 0 0; font-size: 14px; }
  .tn-archive-card__body p { display: none; }
  .tn-archive-card .tn-meta-row { gap: 5px; }
  .tn-archive-card .tn-badge { font-size: 8px; }
  .tn-footer { padding-top: 28px; }
  .tn-footer__top { grid-template-columns: 1fr; gap: 16px; }
  .tn-footer__nav ul { gap: 10px 14px; }
  .tn-footer__bottom { align-items: center; }
}

@media (max-width: 420px) {
  .tn-hero-grid { grid-template-columns: 1fr 1fr; }
  .tn-mini-card__media { aspect-ratio: 16 / 9; }
  .tn-mini-card__body h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tn-related-grid { grid-template-columns: 1fr; }
  .tn-category-links { grid-template-columns: 1fr; }
}

/* v1.1.0: editorial transparency / AdSense review readiness */
.tn-sources { margin: 0 34px 24px; padding: 20px 22px; border: 1px solid var(--tn-line); border-radius: 6px; background: #f8f9fa; }
.tn-sources h2 { margin: 0 0 6px; color: #20242a; font-size: 17px; }
.tn-sources p { margin: 0 0 10px; color: #6a717a; font-size: 12px; }
.tn-sources ul { margin: 0; padding-left: 1.3em; }
.tn-sources li { margin: 6px 0; font-size: 13px; line-height: 1.6; }
.tn-sources a { color: var(--tn-link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tn-author-box { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 15px; align-items: start; margin: 0 34px 24px; padding: 18px 20px; border-top: 3px solid #2b3036; background: #f5f6f7; }
.tn-author-box__avatar img { display: block; width: 64px; height: 64px; border-radius: 50%; }
.tn-author-box__label { margin: 0 0 2px; color: #777e87; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.tn-author-box__name { margin: 0; color: #20242a; font-size: 15px; font-weight: 800; }
.tn-author-box__bio { margin: 7px 0 0; color: #555c65; font-size: 12px; line-height: 1.75; }
.tn-author-box__links { margin: 7px 0 0; font-size: 11px; }
.tn-author-box__links a { color: var(--tn-link); text-decoration: underline; text-underline-offset: 3px; }
.tn-contact-card { margin: 18px 0; padding: 18px 20px; border: 1px solid var(--tn-line); border-radius: 6px; background: #f7f8f9; }
.tn-contact-card p { margin: 0 0 6px; }
.tn-contact-card p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .tn-sources { margin: 0 18px 20px; padding: 16px; }
  .tn-author-box { grid-template-columns: 50px minmax(0,1fr); gap: 12px; margin: 0 18px 22px; padding: 15px; }
  .tn-author-box__avatar img { width: 50px; height: 50px; }
}


/* =========================================================
   v1.2.0 — Bright / colorful visual refresh
   ========================================================= */
:root {
  --tn-red: #ff315f;
  --tn-red-dark: #e51649;
  --tn-pink: #ff5ca8;
  --tn-orange: #ff9f43;
  --tn-yellow: #ffd54a;
  --tn-purple: #7c5cff;
  --tn-blue: #24a8ff;
  --tn-cyan: #23d5c3;
  --tn-green: #33c77a;
  --tn-ink: #172033;
  --tn-text: #283247;
  --tn-muted: #68748a;
  --tn-line: #e6e9f2;
  --tn-soft: #f7f8ff;
  --tn-paper: #fff;
  --tn-link: #1769d2;
  --tn-radius: 14px;
  --tn-shadow: 0 12px 34px rgba(74, 64, 122, .10);
}

body.topineta-site {
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 92, 168, .11), transparent 23rem),
    radial-gradient(circle at 92% 5%, rgba(36, 168, 255, .11), transparent 24rem),
    linear-gradient(180deg, #fff 0, #faf9ff 220px, #f7f9ff 100%);
  color: var(--tn-text);
}

.tn-header {
  border-bottom-color: #ece8f7;
  box-shadow: 0 4px 22px rgba(59, 49, 98, .06);
}
.tn-utility {
  color: #fff;
  background: linear-gradient(100deg, #ff315f 0%, #ff6b52 31%, #7c5cff 67%, #24a8ff 100%);
}
.tn-utility a { color: rgba(255,255,255,.93); }
.tn-utility a:hover { color: #fff8bf; }
.tn-brandbar { background: rgba(255,255,255,.94); }
.tn-brand__mark {
  border-radius: 14px 5px 14px 5px;
  background: linear-gradient(145deg, #ff315f 0%, #ff5ca8 45%, #7c5cff 100%);
  box-shadow: 0 8px 18px rgba(255, 49, 95, .28);
}
.tn-brand__text strong { color: #15213a; }
.tn-brand__text small {
  color: #7c5cff;
  background: linear-gradient(90deg, #ff315f, #7c5cff, #24a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tn-search {
  border-color: #7561f6;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(124, 92, 255, .10);
}
.tn-search:focus-within { box-shadow: 0 0 0 4px rgba(124, 92, 255, .12), 0 8px 20px rgba(124, 92, 255, .12); }
.tn-search button {
  background: linear-gradient(135deg, #7c5cff, #5d86ff 55%, #24a8ff);
}
.tn-search button:hover { background: linear-gradient(135deg, #6847f4, #3f73f4 55%, #1497ea); }
.tn-nav { border-top-color: #f0edf8; }
.tn-nav__list a { color: #30394d; }
.tn-nav__list > li:nth-child(5n+1) a::after { background: #ff315f; }
.tn-nav__list > li:nth-child(5n+2) a::after { background: #ff9f43; }
.tn-nav__list > li:nth-child(5n+3) a::after { background: #33c77a; }
.tn-nav__list > li:nth-child(5n+4) a::after { background: #24a8ff; }
.tn-nav__list > li:nth-child(5n+5) a::after { background: #7c5cff; }

.tn-main { padding-top: 28px; }
.tn-page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(124,92,255,.13);
  background:
    linear-gradient(112deg, rgba(255, 236, 243, .98) 0%, rgba(255, 247, 225, .98) 37%, rgba(239, 244, 255, .98) 72%, rgba(241, 236, 255, .98) 100%);
  box-shadow: var(--tn-shadow);
}
.tn-page-intro::before,
.tn-page-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .65;
}
.tn-page-intro::before { width: 190px; height: 190px; right: 14%; top: -118px; background: rgba(255,92,168,.18); }
.tn-page-intro::after { width: 150px; height: 150px; right: -35px; bottom: -86px; background: rgba(36,168,255,.18); }
.tn-eyebrow {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff315f, #ff7a45, #7c5cff);
  letter-spacing: .12em;
}
.tn-page-intro h1 {
  color: #14213c;
  text-shadow: 0 1px 0 #fff;
}
.tn-live-pill {
  border-color: rgba(255,49,95,.18);
  color: #d51a49;
  background: rgba(255,255,255,.78);
  box-shadow: 0 5px 16px rgba(255,49,95,.10);
}

.tn-hero-card, .tn-mini-card {
  border-color: rgba(124,92,255,.12);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(65, 55, 112, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tn-hero-card:hover, .tn-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(65, 55, 112, .14);
}
.tn-hero-card--lead { position: relative; }
.tn-hero-card--lead::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff315f, #ff9f43, #ffd54a, #33c77a, #24a8ff, #7c5cff);
}
.tn-noimage {
  color: rgba(255,255,255,.94);
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,.24), transparent 20%),
    radial-gradient(circle at 76% 70%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(135deg, #ff5f8f 0%, #ff8d55 30%, #ffc64a 52%, #6d8cff 74%, #7c5cff 100%);
  text-shadow: 0 2px 8px rgba(80,45,120,.22);
  letter-spacing: .16em;
}
.tn-badge {
  border-radius: 999px;
  background: linear-gradient(135deg, #ff315f, #ff5ca8);
  box-shadow: 0 4px 10px rgba(255,49,95,.16);
}
.tn-badge:hover { background: linear-gradient(135deg, #e51649, #f23e8e); }

/* Make sparse new sites look intentional instead of leaving a large blank grid. */
.tn-hero-grid--count-1 { grid-template-columns: 1fr; }
.tn-hero-grid--count-1 .tn-hero-card--lead {
  grid-column: 1 / -1;
  grid-row: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr);
  min-height: 320px;
}
.tn-hero-grid--count-1 .tn-hero-card__media { aspect-ratio: auto; min-height: 320px; }
.tn-hero-grid--count-1 .tn-hero-card__body { display: flex; flex-direction: column; justify-content: center; padding: 28px 30px; }
.tn-hero-grid--count-2 { grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); }
.tn-hero-grid--count-2 .tn-hero-card--lead { grid-row: auto; }
.tn-hero-grid--count-3 { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); }

.tn-quicknav-wrap {
  border-color: rgba(124,92,255,.13);
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(72,62,116,.06);
}
.tn-quicknav__label { background: linear-gradient(135deg, #ff315f, #7c5cff); }
.tn-quicknav a { border-right-color: #eeedf6; }
.tn-quicknav a:nth-child(6n+1):hover { color: #d91d50; background: #fff0f5; }
.tn-quicknav a:nth-child(6n+2):hover { color: #ce6b0c; background: #fff7e9; }
.tn-quicknav a:nth-child(6n+3):hover { color: #198a4e; background: #edfff5; }
.tn-quicknav a:nth-child(6n+4):hover { color: #087dcc; background: #edf8ff; }
.tn-quicknav a:nth-child(6n+5):hover { color: #6540dd; background: #f4efff; }
.tn-quicknav a:nth-child(6n+6):hover { color: #c24c8e; background: #fff0fa; }

.tn-section {
  position: relative;
  overflow: hidden;
  border-color: rgba(124,92,255,.12);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(62,54,103,.075);
}
.tn-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff315f, #ff9f43, #7c5cff, #24a8ff);
}
.tn-content-main > .tn-section:nth-of-type(3n+2)::before { background: linear-gradient(90deg, #24a8ff, #23d5c3, #33c77a); }
.tn-content-main > .tn-section:nth-of-type(3n+3)::before { background: linear-gradient(90deg, #7c5cff, #d85cff, #ff5ca8); }
.tn-section-heading { border-bottom-color: #ecedf4; }
.tn-section-heading h2 { color: #162039; }
.tn-section-heading h2::after { border-radius: 99px; background: linear-gradient(90deg, #ff315f, #ff9f43); }
.tn-section-more {
  padding: 5px 9px;
  border-radius: 999px;
  color: #5c4fd5;
  background: #f3f0ff;
}
.tn-section-more span { color: #ff315f; }

.tn-update-list { border-color: #ececf4; border-radius: 10px; }
.tn-update-item { transition: background .15s ease; }
.tn-update-item:hover { background: linear-gradient(90deg, #fff8ec 0%, #fff 50%, #f5f2ff 100%); }
.tn-update-item h3 a::before { color: #7c5cff; }

.tn-category-lead__media, .tn-link-card__thumb, .tn-rank-item__thumb { border-radius: 9px; }
.tn-category-lead__media, .tn-link-card__thumb { box-shadow: 0 5px 14px rgba(66,55,110,.08); }

.tn-widget {
  border-color: rgba(124,92,255,.12);
  border-radius: 15px;
  box-shadow: 0 9px 26px rgba(62,54,103,.075);
}
.tn-widget__title {
  position: relative;
  border-top: 0;
  border-bottom-color: #ececf4;
  color: #17213a;
  background: linear-gradient(100deg, #fff1f6 0%, #fff9e8 48%, #f2f1ff 100%);
}
.tn-widget__title::before { background: linear-gradient(180deg, #ff315f, #7c5cff); }
.tn-rank-item__number { box-shadow: 0 3px 8px rgba(45,43,74,.18); }
.tn-rank-item:nth-child(1) .tn-rank-item__number { background: linear-gradient(135deg, #ffb018, #ff6a2a); }
.tn-rank-item:nth-child(2) .tn-rank-item__number { background: linear-gradient(135deg, #9aa7bd, #667085); }
.tn-rank-item:nth-child(3) .tn-rank-item__number { background: linear-gradient(135deg, #d98745, #a75a25); }
.tn-rank-item:nth-child(4) .tn-rank-item__number { background: linear-gradient(135deg, #7c5cff, #a95cff); }
.tn-rank-item:nth-child(5) .tn-rank-item__number { background: linear-gradient(135deg, #24a8ff, #2870e8); }
.tn-category-links a:hover { color: #674be9; background: #f8f6ff; }
.tn-category-links b {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #6b55d8;
  background: #f0edff;
  text-align: center;
}
.tn-tags a {
  border-color: transparent;
  border-radius: 999px;
  color: #5f4fc8;
  background: #f3f0ff;
}
.tn-tags a:nth-child(4n+2) { color: #c34b71; background: #fff0f5; }
.tn-tags a:nth-child(4n+3) { color: #15865a; background: #edfff5; }
.tn-tags a:nth-child(4n+4) { color: #087fc9; background: #edf8ff; }

.tn-article, .tn-archive-card, .tn-archive-header, .tn-comments, .tn-notfound {
  border-color: rgba(124,92,255,.12);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(62,54,103,.075);
}
.tn-article__content h2 {
  border-left-color: #ff315f;
  background: linear-gradient(100deg, #fff0f5, #fff9ea 55%, #f3f1ff);
}
.tn-article__content h3 { border-bottom-color: #e4e5ee; }
.tn-article__content h3::after { background: linear-gradient(90deg, #7c5cff, #24a8ff); }
.tn-pagination .current { border-color: transparent; background: linear-gradient(135deg, #ff315f, #7c5cff); }
.tn-empty-note { border-color: #d8d3f5; background: linear-gradient(100deg, #fffdf4, #f8f6ff); }

.tn-sources { border-color: #e2ddfa; background: linear-gradient(105deg, #faf9ff, #fffdf4); }
.tn-author-box { border-top-color: #7c5cff; background: linear-gradient(105deg, #fff5f8, #f6f4ff); }
.tn-contact-card { border-color: #e2ddfa; background: linear-gradient(105deg, #fffdf4, #f5f4ff); }

.tn-footer {
  color: #e3e7f2;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,92,168,.14), transparent 26rem),
    radial-gradient(circle at 90% 20%, rgba(36,168,255,.15), transparent 24rem),
    linear-gradient(115deg, #1d2340 0%, #30255c 55%, #1d365d 100%);
}
.tn-footer__description { color: #bdc5d8; }
.tn-footer__bottom { border-top-color: rgba(255,255,255,.12); color: #aeb7ca; }
.tn-footer__bottom a, .tn-footer__nav a { color: #e2e7f3; }

@media (max-width: 980px) and (min-width: 761px) {
  .tn-hero-grid--count-1 .tn-hero-card--lead { grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); }
}

@media (max-width: 760px) {
  body.topineta-site {
    background:
      radial-gradient(circle at 0 0, rgba(255,92,168,.10), transparent 13rem),
      radial-gradient(circle at 100% 5%, rgba(36,168,255,.10), transparent 14rem),
      #f8f9ff;
  }
  .tn-brandbar { background: #fff; }
  .tn-menu-button { border-radius: 10px; background: #f4f1ff; }
  .tn-menu-button span { background: #644be0; }
  .tn-mobile-panel { border-top-color: #ece7fa; background: #fff; }
  .tn-mobile-search { border-color: #cfc7f5; }
  .tn-mobile-search button { background: linear-gradient(135deg, #7c5cff, #24a8ff); }
  .tn-page-intro { border-radius: 13px; }
  .tn-page-intro::before { width: 120px; height: 120px; top: -80px; right: 5%; }
  .tn-page-intro::after { width: 100px; height: 100px; right: -40px; bottom: -55px; }
  .tn-eyebrow { padding: 3px 8px; }
  .tn-hero-grid--count-1 .tn-hero-card--lead,
  .tn-hero-grid--count-2 .tn-hero-card--lead,
  .tn-hero-grid--count-3 .tn-hero-card--lead {
    display: flex;
    grid-column: 1 / -1;
    min-height: 0;
  }
  .tn-hero-grid--count-1 .tn-hero-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .tn-hero-grid--count-1 .tn-hero-card__body { display: block; padding: 13px 14px 15px; }
  .tn-quicknav-wrap, .tn-section, .tn-widget, .tn-article, .tn-archive-card, .tn-archive-header { border-radius: 12px; }
  .tn-widget__title { background: linear-gradient(100deg, #fff2f6, #f5f2ff); }
}

/* =========================================================
   v1.3.0 — Dedicated single-article experience
   ========================================================= */
body.single-post.topineta-site { --tn-article-width: 820px; }
.tn-single-main { padding-top: 18px; }
.tn-reading-progress { position: fixed; z-index: 9998; left: 0; right: 0; top: 0; height: 4px; pointer-events: none; background: transparent; }
.tn-reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#ff315f,#ff9f43,#ffd54a,#33c77a,#24a8ff,#7c5cff); box-shadow: 0 1px 7px rgba(124,92,255,.24); }

.single-post .tn-content-grid--article { grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.single-post .tn-article--news { position: relative; overflow: hidden; border: 1px solid rgba(124,92,255,.13); background: #fff; box-shadow: 0 16px 42px rgba(65,55,112,.10); }
.single-post .tn-article--news::before { content:""; position:absolute; inset:0 0 auto; height:6px; z-index:2; background:linear-gradient(90deg,#ff315f,#ff9f43,#ffd54a,#33c77a,#24a8ff,#7c5cff); }
.single-post .tn-article__header { padding: 34px 40px 0; background: radial-gradient(circle at 100% 0,rgba(124,92,255,.09),transparent 23rem),linear-gradient(180deg,#fff 0,#fffdfd 100%); }
.single-post .tn-article__kicker { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-bottom:13px; }
.single-post .tn-article__kicker .tn-badge { min-height:25px; padding:0 11px; font-size:10px; }
.single-post .tn-article__type { color:#7b6aa9; font-size:10px; font-weight:900; letter-spacing:.13em; }
.single-post .tn-article__header h1 { max-width: 920px; color:#14213c; font-size:clamp(30px,3.5vw,44px); line-height:1.38; letter-spacing:-.045em; }
.single-post .tn-article__lead { max-width:850px; margin:15px 0 0; padding:0; color:#5b6680; font-size:15px; line-height:1.85; font-weight:500; }
.single-post .tn-article__meta { gap:8px; margin:18px 0 24px; }
.single-post .tn-meta-chip { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:4px 9px; border:1px solid #ebeaf3; border-radius:999px; color:#68748a; background:#fafafe; font-size:10px; }
.single-post .tn-meta-chip b { color:#3b4560; font-size:9px; letter-spacing:.04em; }
.single-post .tn-meta-chip--updated { border-color:#dcd7ff; background:#f6f3ff; }
.single-post .tn-meta-chip--updated b { color:#6b4fe1; }
.single-post .tn-meta-chip--read { border-color:#d5f4ec; background:#f1fff9; }
.single-post .tn-meta-chip--read b { color:#15825c; }
.single-post .tn-article__hero { position:relative; margin:0 -40px; background:#eceaf5; }
.single-post .tn-article__hero img { width:100%; max-height:620px; object-fit:cover; }
.single-post .tn-article__hero figcaption { position:absolute; left:0; right:0; bottom:0; margin:0; padding:24px 18px 8px; color:rgba(255,255,255,.92); background:linear-gradient(transparent,rgba(20,25,40,.72)); font-size:10px; text-shadow:0 1px 3px rgba(0,0,0,.3); }
.single-post .tn-article__hero figcaption a { color:inherit; text-decoration:underline; text-underline-offset:2px; }

.tn-article-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; align-items:start; margin:0; padding:26px 34px 6px; }
.tn-article-toc { border:1px solid #e4e0fb; border-radius:14px; background:linear-gradient(115deg,#fff9ed 0,#fff 48%,#f5f2ff 100%); overflow:hidden; }
.tn-article-toc__head { display:flex; align-items:center; gap:11px; padding:14px 16px 11px; border-bottom:1px solid #ece9f7; }
.tn-article-toc__icon { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:#fff; background:linear-gradient(135deg,#ff5ca8,#7c5cff); font-size:14px; font-weight:900; box-shadow:0 5px 13px rgba(124,92,255,.18); }
.tn-article-toc__head b { display:block; color:#1c2946; font-size:15px; }
.tn-article-toc__head small { display:block; margin-top:1px; color:#8790a2; font-size:9px; }
.tn-article-toc ol { margin:0; padding:10px 15px 13px 38px; }
.tn-article-toc li { margin:5px 0; color:#5a6478; font-size:12px; line-height:1.55; }
.tn-article-toc li::marker { color:#ff4e78; font-weight:800; }
.tn-article-toc li.tn-toc-h3 { margin-left:15px; list-style-type:circle; font-size:11px; }
.tn-article-toc a { color:#3f4b67; }
.tn-article-toc a:hover { color:#714ee6; }

.tn-share { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:6px; max-width:250px; }
.tn-share__label { width:100%; color:#9b93ad; font-size:9px; font-weight:900; letter-spacing:.16em; text-align:right; }
.tn-share a, .tn-share button { display:inline-flex; align-items:center; justify-content:center; min-height:31px; padding:0 10px; border:0; border-radius:999px; color:#fff!important; font-size:9px; font-weight:800; cursor:pointer; text-decoration:none!important; transition:transform .15s ease,opacity .15s ease; }
.tn-share a:hover, .tn-share button:hover { transform:translateY(-1px); opacity:.9; }
.tn-share__x { background:#17191d; }
.tn-share__fb { background:#2876e8; }
.tn-share__line { background:#20bd61; }
.tn-share__copy { background:linear-gradient(135deg,#7c5cff,#a25cff); }
.tn-share__copy.is-copied { background:linear-gradient(135deg,#20b87c,#33c77a); }

.single-post .tn-article__content { max-width:var(--tn-article-width); margin-inline:auto; padding:32px 34px 44px; color:#30394c; font-size:16px; line-height:2; }
.single-post .tn-article__content p { margin-bottom:1.75em; }
.single-post .tn-article__content > p:first-child { font-size:17px; color:#27334c; }
.single-post .tn-article__content h2 { scroll-margin-top:85px; position:relative; margin:2.7em 0 1em; padding:18px 20px 18px 22px; border:0; border-radius:12px; color:#15213c; background:linear-gradient(100deg,#fff0f5 0,#fff9e8 50%,#f2f0ff 100%); font-size:25px; line-height:1.5; box-shadow:inset 0 0 0 1px rgba(124,92,255,.08); }
.single-post .tn-article__content h2::before { content:""; position:absolute; left:0; top:10px; bottom:10px; width:5px; border-radius:0 8px 8px 0; background:linear-gradient(180deg,#ff315f,#ff9f43,#7c5cff); }
.single-post .tn-article__content h3 { scroll-margin-top:85px; position:relative; margin:2.2em 0 .9em; padding:0 0 10px 15px; border-bottom:2px solid #ececf4; color:#1c2843; font-size:21px; line-height:1.55; }
.single-post .tn-article__content h3::before { content:""; position:absolute; left:0; top:.25em; width:5px; height:1.15em; border-radius:99px; background:linear-gradient(180deg,#7c5cff,#24a8ff); }
.single-post .tn-article__content h3::after { width:70px; height:2px; background:linear-gradient(90deg,#7c5cff,#24a8ff,#23d5c3); }
.single-post .tn-article__content h4 { margin-top:1.9em; color:#24314a; font-size:18px; }
.single-post .tn-article__content a { color:#1769d2; text-decoration-thickness:1px; text-decoration-color:#9fc3f3; }
.single-post .tn-article__content a:hover { color:#7c4fe6; text-decoration-color:#c5b3f3; }
.single-post .tn-article__content strong { color:#18243e; background:linear-gradient(transparent 68%,rgba(255,213,74,.38) 68%); }
.single-post .tn-article__content blockquote { position:relative; margin:1.8em 0; padding:20px 22px 20px 48px; border:1px solid #e2ddfa; border-left:0; border-radius:12px; color:#59657a; background:linear-gradient(110deg,#f9f7ff,#fffdf4); }
.single-post .tn-article__content blockquote::before { content:"“"; position:absolute; left:17px; top:4px; color:#9b82ef; font:900 42px/1 Georgia,serif; opacity:.65; }
.single-post .tn-article__content ul:not(.wp-block-gallery), .single-post .tn-article__content ol { margin:1.5em 0; padding:16px 20px 16px 42px; border-radius:11px; background:#fafbff; box-shadow:inset 0 0 0 1px #eef0f6; }
.single-post .tn-article__content li { margin:.35em 0; }
.single-post .tn-article__content li::marker { color:#7c5cff; font-weight:800; }
.single-post .tn-article__content table { overflow:hidden; border-radius:10px; box-shadow:0 7px 20px rgba(60,57,100,.06); }
.single-post .tn-article__content th { color:#34405a; background:linear-gradient(100deg,#fff2f6,#f3f1ff); }
.single-post .tn-article__content th, .single-post .tn-article__content td { border-color:#e6e8ef; }
.single-post .tn-article__content figure { margin-top:2em; margin-bottom:2em; }
.single-post .tn-article__content .wp-block-image img, .single-post .tn-article__content figure img { border-radius:12px; box-shadow:0 8px 24px rgba(53,50,88,.10); }
.single-post .tn-article__content figcaption { margin-top:7px; color:#8a92a2; font-size:10px; line-height:1.55; text-align:center; }
.single-post .tn-article__content .wp-block-button__link { border-radius:999px; color:#fff!important; background:linear-gradient(135deg,#ff315f,#7c5cff,#24a8ff); box-shadow:0 8px 18px rgba(124,92,255,.19); text-decoration:none; }

.tn-article__after-content { max-width:var(--tn-article-width); margin:0 auto; padding:0 34px 26px; }
.tn-article__updated-note { display:grid; grid-template-columns:34px minmax(0,1fr); gap:12px; align-items:start; padding:15px 16px; border:1px solid #d9f2e7; border-radius:12px; background:linear-gradient(100deg,#f0fff8,#fbfffd); }
.tn-article__updated-note > span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:#fff; background:linear-gradient(135deg,#24b67b,#33c77a); font-weight:900; }
.tn-article__updated-note p { margin:0; color:#557065; font-size:11px; line-height:1.7; }
.tn-article__updated-note strong { color:#225940; font-size:12px; }

.single-post .tn-sources, .single-post .tn-author-box, .single-post .tn-article__tags { max-width:calc(var(--tn-article-width) - 68px); margin-left:auto; margin-right:auto; }
.single-post .tn-sources { border-radius:12px; }
.single-post .tn-sources h2 { color:#293650; }
.single-post .tn-author-box { border:1px solid #e3ddfa; border-top:4px solid #7c5cff; border-radius:12px; }
.single-post .tn-article__tags { padding-bottom:2px; }
.single-post .tn-article__tags a { border-color:transparent; border-radius:999px; color:#5f4fc8; background:#f3f0ff; }
.single-post .tn-article__tags a:nth-of-type(3n+2) { color:#c34b71; background:#fff0f5; }
.single-post .tn-article__tags a:nth-of-type(3n+3) { color:#087fc9; background:#edf8ff; }

.tn-post-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0 22px; }
.tn-post-nav__item { min-height:92px; padding:15px 17px; border:1px solid rgba(124,92,255,.12); border-radius:13px; background:#fff; box-shadow:0 8px 22px rgba(62,54,103,.06); transition:transform .18s ease,box-shadow .18s ease; }
.tn-post-nav__item:hover { transform:translateY(-2px); box-shadow:0 12px 27px rgba(62,54,103,.11); }
.tn-post-nav__item small { display:block; margin-bottom:5px; color:#8a91a1; font-size:9px; font-weight:800; }
.tn-post-nav__item strong { display:-webkit-box; overflow:hidden; color:#26324b; font-size:12px; line-height:1.6; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.tn-post-nav__next { text-align:right; }

.single-post .tn-related { background:linear-gradient(180deg,#fff,#fdfcff); }
.single-post .tn-related-card { border-color:#e7e4f3; border-radius:12px; background:#fff; box-shadow:0 6px 18px rgba(66,55,110,.06); }
.single-post .tn-related-card > div { padding:12px 13px 14px; }
.single-post .tn-related-card h3 { margin-top:7px; color:#28334b; font-size:14px; }
.single-post .tn-related-card time { display:block; margin-top:7px; color:#9aa1af; font-size:9px; }

@media (max-width: 980px) and (min-width: 761px) {
  .single-post .tn-content-grid--article { grid-template-columns:minmax(0,1fr) 270px; gap:16px; }
  .single-post .tn-article__header { padding-left:28px; padding-right:28px; }
  .single-post .tn-article__hero { margin-left:-28px; margin-right:-28px; }
  .tn-article-tools { padding-left:26px; padding-right:26px; }
}

@media (max-width: 760px) {
  .tn-reading-progress { height:3px; }
  .single-post .tn-content-grid--article { display:block; }
  .single-post .tn-article--news { border-radius:13px; }
  .single-post .tn-article__header { padding:25px 17px 0; }
  .single-post .tn-article__kicker { margin-bottom:10px; }
  .single-post .tn-article__type { font-size:8px; }
  .single-post .tn-article__header h1 { font-size:25px; line-height:1.46; letter-spacing:-.03em; }
  .single-post .tn-article__lead { margin-top:11px; font-size:13px; line-height:1.8; }
  .single-post .tn-article__meta { gap:6px; margin:13px 0 17px; }
  .single-post .tn-meta-chip { min-height:25px; padding:3px 7px; font-size:9px; }
  .single-post .tn-meta-chip b { font-size:8px; }
  .single-post .tn-article__hero { margin:0 -17px; }
  .single-post .tn-article__hero figcaption { padding:20px 11px 6px; font-size:8px; }
  .tn-article-tools { display:block; padding:18px 14px 0; }
  .tn-article-toc { border-radius:11px; }
  .tn-article-toc__head { padding:12px 13px 9px; }
  .tn-article-toc__icon { width:30px; height:30px; border-radius:9px; }
  .tn-article-toc ol { padding:8px 12px 11px 34px; }
  .tn-article-toc li { font-size:11px; }
  .tn-share { justify-content:flex-start; max-width:none; margin-top:12px; }
  .tn-share__label { width:auto; margin-right:2px; text-align:left; }
  .tn-share a, .tn-share button { min-height:29px; padding:0 9px; font-size:8px; }
  .single-post .tn-article__content { padding:25px 18px 34px; font-size:15px; line-height:1.94; }
  .single-post .tn-article__content > p:first-child { font-size:15px; }
  .single-post .tn-article__content h2 { margin-top:2.35em; padding:14px 14px 14px 17px; border-radius:10px; font-size:20px; }
  .single-post .tn-article__content h2::before { top:8px; bottom:8px; width:4px; }
  .single-post .tn-article__content h3 { margin-top:2em; padding-left:12px; font-size:18px; }
  .single-post .tn-article__content h3::before { width:4px; }
  .single-post .tn-article__content h4 { font-size:16px; }
  .single-post .tn-article__content blockquote { padding:16px 15px 16px 39px; }
  .single-post .tn-article__content blockquote::before { left:12px; font-size:35px; }
  .single-post .tn-article__content ul:not(.wp-block-gallery), .single-post .tn-article__content ol { padding:13px 14px 13px 34px; }
  .tn-article__after-content { padding:0 18px 20px; }
  .tn-article__updated-note { grid-template-columns:30px minmax(0,1fr); gap:10px; padding:13px; }
  .tn-article__updated-note > span { width:30px; height:30px; }
  .single-post .tn-sources, .single-post .tn-author-box, .single-post .tn-article__tags { max-width:none; margin-left:18px; margin-right:18px; }
  .tn-post-nav { grid-template-columns:1fr; gap:8px; margin:13px 0 15px; }
  .tn-post-nav__item { min-height:0; padding:12px 14px; }
  .tn-post-nav__next { text-align:left; }
  .single-post .tn-related-grid { grid-template-columns:1fr 1fr; }
  .single-post .tn-sidebar { margin-top:15px; }
}

@media (max-width: 420px) {
  .single-post .tn-related-grid { grid-template-columns:1fr; }
  .tn-share__fb { display:none!important; }
}

/* =========================================================
   v1.4.1 — SWELL display defaults / PR disclosure refinements
   ========================================================= */
.single-post .tn-content-grid--article.tn-content-grid--no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}
.single-post .tn-content-grid--no-sidebar .tn-content-main {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}
.single-post .tn-pr-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -5px 0 22px;
  padding: 9px 12px;
  border: 1px solid #ece7f8;
  border-radius: 10px;
  color: #687086;
  background: #faf9fd;
  font-size: 10px;
  line-height: 1.55;
}
.single-post .tn-pr-note > span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 32px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: #6152c7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.single-post .tn-pr-note p { margin: 0; }
.tn-article-tools--share-only { grid-template-columns: 1fr; }
.tn-article-tools--share-only .tn-share { justify-self: end; }
.tn-article-toc li.tn-toc-h4 {
  margin-left: 28px;
  list-style-type: square;
  font-size: 10px;
}

@media (max-width: 760px) {
  /* Smartphone: remove the long right-rail widgets and keep article reading first. */
  .single-post .tn-sidebar { display: none !important; }
  .single-post .tn-pr-note {
    gap: 7px;
    margin: -2px 0 16px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 9px;
  }
  .single-post .tn-pr-note > span { min-width: 29px; min-height: 20px; font-size: 8px; }
  .tn-article-tools--share-only .tn-share { justify-self: stretch; }
}

/* =========================================================
   v1.6.0 — stronger automatic affiliate cards / no-repeat pool
   ========================================================= */
.tn-affiliate-slot {
  position: relative;
  clear: both;
  overflow: hidden;
  width: 100%;
  margin: 34px 0;
  padding: 16px;
  border: 2px solid #ffcf5a;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0,rgba(255,209,92,.28),transparent 34%),
    linear-gradient(135deg,#fffdf7 0,#fff 48%,#f6f4ff 100%);
  box-shadow: 0 12px 32px rgba(67,52,124,.12), 0 2px 7px rgba(24,24,35,.05);
}
.tn-affiliate-slot::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg,#ffb000,#7a5cff);
}
.tn-affiliate-slot__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 3px;
  color: #646978;
  font-size: 11px;
  line-height: 1.45;
}
.tn-affiliate-slot__head > span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#5a45d6,#8d69ef);
  box-shadow: 0 4px 10px rgba(90,69,214,.24);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}
.tn-affiliate-slot__head > strong {
  color: #242238;
  font-size: 13px;
  font-weight: 900;
}
.tn-affiliate-slot__head > small {
  color: #747988;
  font-size: 10px;
  font-weight: 700;
}
.tn-affiliate-slot__body {
  overflow: hidden;
  width: 100%;
  min-height: 60px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  text-align: center;
}
.tn-affiliate-slot__body > * { max-width: 100%; }
.tn-affiliate-slot__body img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.tn-affiliate-slot__body iframe { max-width: 100%; }
.tn-affiliate-slot__body a { display: inline-block; max-width: 100%; transition: transform .18s ease, filter .18s ease; }
.tn-affiliate-slot__body a:hover { transform: translateY(-2px); filter: brightness(1.03); }
.tn-affiliate-slot__body p { margin: 0; }
.tn-affiliate-slot__body strong { background: none!important; }
.single-post .tn-article__content .tn-affiliate-slot a { text-decoration: none; }
.single-post .tn-article__content .tn-affiliate-slot img { box-shadow: 0 8px 22px rgba(21,19,37,.11); border-radius: 10px; }
.tn-affiliate-slot--lead {
  margin-top: 22px;
  border-color: #ffbd2e;
  box-shadow: 0 15px 38px rgba(255,176,0,.14), 0 5px 20px rgba(67,52,124,.10);
}
.tn-affiliate-slot--bottom {
  margin-top: 40px;
  border-color: #a79af7;
  background: linear-gradient(135deg,#faf8ff 0,#fff 52%,#fff9ec 100%);
}
.tn-affiliate-slot--sidebar {
  position: sticky;
  top: 88px;
  margin: 0;
  padding: 12px;
  border-color: #d8d1ff;
  background: #fff;
  box-shadow: 0 10px 28px rgba(52,44,98,.11);
}
.tn-affiliate-slot--sidebar .tn-affiliate-slot__head { justify-content: center; }
.tn-affiliate-slot--sidebar .tn-affiliate-slot__head > small { flex-basis: 100%; text-align: center; }
.tn-affiliate-slot--sidebar .tn-affiliate-slot__body { font-size: 0; }

@media (max-width: 760px) {
  .tn-affiliate-slot { margin: 27px 0; padding: 12px; border-radius: 14px; }
  .tn-affiliate-slot::before { width: 4px; }
  .tn-affiliate-slot__head { gap: 6px; margin-bottom: 9px; }
  .tn-affiliate-slot__head > span { min-width: 32px; min-height: 22px; font-size: 8px; }
  .tn-affiliate-slot__head > strong { font-size: 12px; }
  .tn-affiliate-slot__head > small { flex-basis: 100%; padding-left: 1px; font-size: 9px; }
  .tn-affiliate-slot__body { min-height: 48px; padding: 6px; }
}



/* =========================================================
   v1.6.5 — outer-margin affiliate rails, distributed down article
   ========================================================= */
.tn-affiliate-rails { display: none; }

/*
 * Do not cram a full ad wall into the first viewport. On genuinely wide
 * desktop screens the same large inventory is spread down the entire article.
 * This keeps the centre layout untouched and lets full creatives breathe.
 */
@media (min-width: 1680px) {
  .single-post .tn-single-main > .tn-shell {
    position: relative;
  }
  .single-post .tn-affiliate-rails {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
  }
  .single-post .tn-affiliate-rail {
    position: absolute;
    top: 28px;
    bottom: 40px;
    width: clamp(190px, calc((100vw - var(--tn-max)) / 2 - 28px), 260px);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 120px;
    overflow: visible;
    padding: 0;
    pointer-events: none;
  }
  .single-post .tn-affiliate-rail--left {
    right: calc(100% + 18px);
  }
  .single-post .tn-affiliate-rail--right {
    left: calc(100% + 18px);
  }
  .single-post .tn-affiliate-slot--rail-left,
  .single-post .tn-affiliate-slot--rail-right {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(124,92,255,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 22px rgba(47,43,76,.10);
    pointer-events: auto;
  }
  .single-post .tn-affiliate-slot--rail-left::before,
  .single-post .tn-affiliate-slot--rail-right::before {
    width: 3px;
    background: linear-gradient(180deg,#ff315f,#ffb000,#7c5cff,#24a8ff);
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__head,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__head {
    justify-content: flex-start;
    gap: 0;
    margin: 0 0 5px;
    padding: 0 0 0 2px;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__head > span,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__head > span {
    min-width: 26px;
    min-height: 18px;
    padding: 0 6px;
    font-size: 7px;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__head > strong,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__head > strong,
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__head > small,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__head > small {
    display: none;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body {
    overflow: hidden;
    min-height: 0;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 0;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body > a,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body > a {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body img,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 auto;
    object-fit: contain;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body iframe,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body iframe {
    display: block;
    max-width: 100% !important;
    margin: 0 auto;
    border: 0;
  }
}

/* At narrower desktop widths there is not enough real side space for a proper ad. */
@media (max-width: 1679px) {
  .single-post .tn-affiliate-rails { display: none !important; }
}

/* v1.6.4: Contact Form 7 on /contact/ + no public e-mail fallback */
.tn-contact-form {
    margin: 22px 0;
    padding: clamp(18px, 2.5vw, 30px);
    border: 1px solid #e4ddff;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, #fbf9ff 55%, #f4f9ff 100%);
    box-shadow: 0 12px 34px rgba(47, 31, 94, .08);
}
.tn-contact-form .wpcf7 p { margin: 0 0 18px; }
.tn-contact-form .wpcf7 p:last-child { margin-bottom: 0; }
.tn-contact-form .wpcf7 label {
    display: block;
    color: #17213a;
    font-weight: 800;
    line-height: 1.7;
}
.tn-contact-form .wpcf7 input[type="text"],
.tn-contact-form .wpcf7 input[type="email"],
.tn-contact-form .wpcf7 input[type="tel"],
.tn-contact-form .wpcf7 input[type="url"],
.tn-contact-form .wpcf7 textarea,
.tn-contact-form .wpcf7 select {
    width: 100%;
    margin-top: 7px;
    padding: 12px 14px;
    border: 1px solid #d9ddeb;
    border-radius: 10px;
    background: #fff;
    color: #17213a;
    font: inherit;
    box-sizing: border-box;
}
.tn-contact-form .wpcf7 textarea { min-height: 180px; resize: vertical; }
.tn-contact-form .wpcf7 input:focus,
.tn-contact-form .wpcf7 textarea:focus,
.tn-contact-form .wpcf7 select:focus {
    outline: none;
    border-color: #7357ff;
    box-shadow: 0 0 0 3px rgba(115, 87, 255, .12);
}
.tn-contact-form .wpcf7 input[type="submit"] {
    width: min(100%, 360px);
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff315f, #7455ff 55%, #1aa7ef);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(98, 74, 220, .20);
}
.tn-contact-form .wpcf7 input[type="submit"]:hover { filter: brightness(1.04); }
.tn-contact-form .wpcf7-spinner { vertical-align: middle; }
.tn-contact-form .wpcf7-not-valid-tip { margin-top: 5px; font-size: .9em; }
.tn-contact-form .wpcf7-response-output { margin: 16px 0 0 !important; border-radius: 10px; padding: 10px 14px !important; }
.tn-contact-note {
    margin-top: 18px !important;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f7f8fb;
    color: #5a6170;
    font-size: .92em;
    line-height: 1.85;
}
.tn-contact-card__help { color: #687080; font-size: .9em; }
@media (max-width: 600px) {
    .tn-contact-form { padding: 16px; border-radius: 14px; }
    .tn-contact-form .wpcf7 input[type="submit"] { width: 100%; }
}


/* =========================================================
   v1.6.7 — one PR disclosure per article, creative-only ad slots
   ========================================================= */
.single-post .tn-affiliate-slot__head { display: none !important; }
.single-post .tn-affiliate-slot { padding-top: 10px; padding-bottom: 10px; }
.single-post .tn-affiliate-slot--sidebar { padding: 8px; }
@media (min-width: 1680px) {
  .single-post .tn-affiliate-slot--rail-left,
  .single-post .tn-affiliate-slot--rail-right { padding: 5px; }
}
@media (max-width: 760px) {
  .single-post .tn-affiliate-slot { padding-top: 9px; padding-bottom: 9px; }
}

/* =========================================================
   v1.6.7 — rail creatives keep their real aspect ratio / no giant blank cards
   ========================================================= */
@media (min-width: 1680px) {
  .single-post .tn-affiliate-rail {
    width: clamp(190px, calc((100vw - var(--tn-max)) / 2 - 18px), 260px);
    align-items: center;
  }

  /* Outer-margin ads are creatives, not cards. Do not stretch a 250x250 or
     300x250 banner into a tall white panel. */
  .single-post .tn-affiliate-slot--rail-left,
  .single-post .tn-affiliate-slot--rail-right {
    display: block;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }
  .single-post .tn-affiliate-slot--rail-left::before,
  .single-post .tn-affiliate-slot--rail-right::before {
    display: none !important;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body {
    display: block;
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 0 !important;
    margin: 0 auto;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0;
    background: transparent !important;
    line-height: 0;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body > *,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body > * {
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body a,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body img,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
  }
  .single-post .tn-affiliate-slot--rail-left .tn-affiliate-slot__body iframe,
  .single-post .tn-affiliate-slot--rail-right .tn-affiliate-slot__body iframe {
    display: block;
    max-width: 100% !important;
    margin: 0 auto !important;
    border: 0 !important;
  }
}

/* =========================================================
   v1.7.0 — automatic internal links / related articles
   ========================================================= */
.single-post .tn-auto-related {
  margin: 2.1em 0;
  padding: 16px;
  border: 1px solid #e4e2f2;
  border-radius: 12px;
  background: linear-gradient(110deg, #fbfaff 0%, #fffdf7 100%);
  box-shadow: 0 8px 24px rgba(70, 63, 112, .06);
}
.single-post .tn-auto-related__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  color: #40356c;
  font-size: 13px;
  line-height: 1.4;
}
.single-post .tn-auto-related__head > span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7c5cff, #24a8ff);
  font-size: 12px;
}
.single-post .tn-auto-related__links {
  display: grid;
  gap: 8px;
}
.single-post .tn-article__content .tn-auto-related__link {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid #eceaf5;
  border-radius: 9px;
  color: #1b2944;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.single-post .tn-article__content .tn-auto-related__link:hover {
  transform: translateY(-1px);
  border-color: #d5cff8;
  color: #5e49c7;
  box-shadow: 0 7px 18px rgba(72, 62, 126, .08);
}
.single-post .tn-auto-related__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #eef0f5;
}
.single-post .tn-auto-related__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-post .tn-auto-related__text {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}
.single-post .tn-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .single-post .tn-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .single-post .tn-auto-related { margin: 1.7em 0; padding: 12px; }
  .single-post .tn-article__content .tn-auto-related__link {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px;
    min-height: 58px;
    padding: 7px;
  }
  .single-post .tn-auto-related__text { font-size: 12px; }
  .single-post .tn-related-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   v1.7.1 — related heading accent overlap fix
   ========================================================= */
.single-post .tn-related .tn-section-heading h2::after {
  display: none;
}


/* v1.9.0: automatically imported body images with mandatory source attribution. */
.single-post .tn-article__content .tn-source-body-image {
  width: 100%;
  margin: 1.45em 0 2.1em;
}
.single-post .tn-article__content .tn-source-body-image__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}
.single-post .tn-article__content .tn-source-body-image__link img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
.single-post .tn-article__content .tn-source-body-image figcaption {
  margin-top: 8px;
  color: #687389;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}
.single-post .tn-article__content .tn-source-body-image figcaption span {
  font-weight: 700;
}
.single-post .tn-article__content .tn-source-body-image figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
