/* TOPIK NEWS - visual system */
:root {
  --tn-red: #b91c1c;
  --tn-red-dark: #991b1b;
  --tn-ink: #171717;
  --tn-text: #303030;
  --tn-muted: #777;
  --tn-line: #e8e8e8;
  --tn-paper: #fff;
  --tn-bg: #f4f5f7;
  --tn-container: 1200px;
}
* { box-sizing: border-box; }
body.trenwanita-theme { background: var(--tn-bg); color: var(--tn-text); font-family: Arial, Helvetica, sans-serif; }
.tn-site { min-height: 100vh; display: flex; flex-direction: column; }
.tn-main { flex: 1; }
.tn-container { width: min(var(--tn-container), calc(100% - 36px)); margin-inline: auto; }
.tn-topline { background: #f1f1f1; border-bottom: 1px solid var(--tn-line); color: #666; font-size: 12px; }
.tn-topline-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tn-brand-row { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tn-brand { min-width: 0; }
.tn-site-title { display: inline-block; color: var(--tn-ink); font-size: 36px; line-height: 1.1; font-weight: 900; letter-spacing: -1.5px; }
.tn-site-title:hover { color: var(--tn-red); }
.tn-tagline { margin: 5px 0 0; color: var(--tn-muted); font-size: 12px; }
.tn-custom-logo img { max-height: 72px; width: auto; }
.tn-header-search .search-form { display: flex; }
.tn-header-search input[type="search"] { width: 230px; border: 1px solid var(--tn-line); border-radius: 3px 0 0 3px; padding: 10px 12px; }
.tn-header-search input[type="submit"] { border: 0; background: var(--tn-red); color: white; padding: 10px 15px; border-radius: 0 3px 3px 0; }
.tn-nav { background: var(--tn-ink); }
.tn-menu { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.tn-menu li { margin: 0; }
.tn-menu a { display: block; color: white; padding: 14px 16px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tn-menu a:hover, .tn-menu .current-menu-item > a { background: var(--tn-red); color: white; }
.tn-menu-fallback { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tn-menu-fallback a { display: block; padding: 14px 16px; color: white; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tn-menu-fallback a:hover { background: var(--tn-red); color: white; }
.tn-menu-toggle { display: none; border: 0; background: var(--tn-red); padding: 10px; border-radius: 3px; }
.tn-menu-toggle span:not(.screen-reader-text) { display: block; width: 22px; height: 2px; background: white; margin: 4px 0; }
.tn-home { padding-top: 24px; padding-bottom: 48px; }
.tn-breaking { display: flex; align-items: center; gap: 16px; background: var(--tn-red); color: white; min-height: 46px; padding: 10px 16px; margin-bottom: 18px; border-radius: 2px; overflow: hidden; }
.tn-breaking-label { flex: 0 0 auto; font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.tn-breaking-text { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-breaking-text a { color: white; }
.tn-trending { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: white; border: 1px solid var(--tn-line); padding: 13px 16px; margin-bottom: 28px; }
.tn-trending strong { font-size: 12px; color: var(--tn-red); }
.tn-trending-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tn-trending-links a { color: #555; font-size: 12px; font-weight: 700; }
.tn-trending-links a:hover { color: var(--tn-red); }
.tn-section { margin-bottom: 34px; }
.tn-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 2px solid var(--tn-ink); margin-bottom: 18px; }
.tn-section-heading h2 { position: relative; margin: 0; padding: 0 0 10px; color: var(--tn-ink); font-size: 21px; line-height: 1.2; font-weight: 900; text-transform: uppercase; }
.tn-section-heading h2:after { content: ""; position: absolute; left: 0; bottom: -2px; width: 55px; height: 3px; background: var(--tn-red); }
.tn-section-heading > a { color: var(--tn-red); font-size: 12px; font-weight: 700; }
.tn-featured-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 22px; }
.tn-featured-main, .tn-mini-card, .tn-card { min-width: 0; }
.tn-image-link, .tn-mini-image, .tn-card-image, .tn-list-thumb { display: block; overflow: hidden; background: #e5e5e5; }
.tn-featured-main img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.tn-image-link:hover img, .tn-card-image:hover img, .tn-mini-image:hover img { transform: scale(1.035); }
.tn-featured-content { padding: 14px 0 0; }
.tn-featured-content .post-categories, .tn-mini-card .post-categories, .tn-card .post-categories, .tn-list-content .post-categories { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 8px; padding: 0; }
.tn-featured-content .post-categories a, .tn-mini-card .post-categories a, .tn-card .post-categories a, .tn-list-content .post-categories a { color: var(--tn-red); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tn-featured-content h3 { margin: 0 0 9px; font-size: clamp(23px, 3vw, 32px); line-height: 1.2; font-weight: 900; }
.tn-featured-content h3 a, .tn-mini-card h3 a, .tn-card h3 a, .tn-list-content h3 a { color: var(--tn-ink); }
.tn-featured-content h3 a:hover, .tn-mini-card h3 a:hover, .tn-card h3 a:hover, .tn-list-content h3 a:hover { color: var(--tn-red); }
.tn-featured-content p { margin: 0 0 10px; color: #666; font-size: 14px; }
.tn-meta { color: var(--tn-muted); font-size: 11px; }
.tn-meta span { padding: 0 5px; }
.tn-featured-side { display: flex; flex-direction: column; gap: 18px; }
.tn-mini-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--tn-line); }
.tn-mini-card:last-child { border-bottom: 0; padding-bottom: 0; }
.tn-mini-image img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.tn-mini-card h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.3; font-weight: 800; }
.tn-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.tn-primary-content { min-width: 0; }
.tn-sidebar { min-width: 0; }
.tn-latest-section, .tn-category-section, .tn-widget { background: white; padding: 20px; border: 1px solid var(--tn-line); }
.tn-latest-list { display: flex; flex-direction: column; }
.tn-list-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 17px; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--tn-line); }
.tn-list-item:last-child { margin-bottom: 0; }
.tn-list-thumb img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.tn-list-content h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; font-weight: 800; }
.tn-list-content p { margin: 0 0 8px; color: #666; font-size: 13px; }
.tn-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tn-card { background: white; border: 1px solid var(--tn-line); }
.tn-card-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.tn-card-content { padding: 13px; }
.tn-card h3 { margin: 0 0 9px; font-size: 16px; line-height: 1.35; font-weight: 800; }
.tn-sidebar .tn-widget { margin-bottom: 20px; }
.tn-widget-title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--tn-ink); color: var(--tn-ink); font-size: 17px; font-weight: 900; text-transform: uppercase; }
.tn-popular-list { list-style: none; margin: 0; padding: 0; counter-reset: popular; }
.tn-popular-list li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--tn-line); }
.tn-popular-list li:last-child { border-bottom: 0; }
.tn-popular-list li span { color: var(--tn-red); font-size: 20px; font-weight: 900; }
.tn-popular-list li a { color: var(--tn-ink); font-size: 13px; line-height: 1.4; font-weight: 700; }
.tn-ad-box { min-height: 250px; margin-bottom: 20px; border: 1px dashed #bbb; background: #eee; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #777; }
.tn-ad-box span, .tn-ad-box small { font-size: 10px; letter-spacing: 1px; }
.tn-ad-box strong { font-size: 24px; color: #999; }
.tn-inner-page { padding-top: 30px; padding-bottom: 55px; }
.tn-archive-header { background: white; padding: 24px; margin-bottom: 24px; border: 1px solid var(--tn-line); }
.tn-archive-header h1 { margin: 5px 0 0; color: var(--tn-ink); font-size: 32px; font-weight: 900; }
.tn-kicker { color: var(--tn-red); font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.tn-archive-description { margin-top: 10px; color: #666; }
.tn-breadcrumb { margin-bottom: 14px; color: #888; font-size: 12px; }
.tn-breadcrumb a { color: #555; }
.tn-archive-grid { align-items: start; }
.tn-pagination { margin: 25px 0; }
.tn-pagination .page-numbers { display: inline-block; padding: 8px 12px; margin: 0 4px 4px 0; background: white; border: 1px solid var(--tn-line); color: var(--tn-ink); }
.tn-pagination .current, .tn-pagination a:hover { background: var(--tn-red); color: white; border-color: var(--tn-red); }
.tn-single-article, .tn-page-article { background: white; border: 1px solid var(--tn-line); padding: clamp(20px, 4vw, 42px); }
.tn-single-title { margin: 0 0 15px; color: var(--tn-ink); font-size: clamp(28px, 4vw, 42px); line-height: 1.2; font-weight: 900; }
.tn-single-cats a { color: var(--tn-red); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.tn-single-header .tn-meta { margin-top: 12px; }
.tn-single-featured { margin: 25px 0; }
.tn-single-featured img { display: block; width: 100%; height: auto; }
.tn-entry-content { color: #333; font-size: 17px; line-height: 1.9; }
.tn-entry-content p { margin-bottom: 1.4em; }
.tn-entry-content h2, .tn-entry-content h3 { color: var(--tn-ink); line-height: 1.3; margin-top: 1.6em; }
.tn-entry-content img { max-width: 100%; height: auto; }
.tn-tags { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--tn-line); font-size: 13px; }
.tn-post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--tn-line); font-size: 13px; }
.tn-related { margin-top: 28px; }
.tn-footer { background: var(--tn-ink); color: #ddd; margin-top: 30px; }
.tn-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-top: 42px; padding-bottom: 38px; }
.tn-footer h2 { color: white; margin: 0 0 15px; font-size: 16px; font-weight: 800; }
.tn-footer-brand { color: white; font-size: 27px; font-weight: 900; }
.tn-footer p { color: #aaa; font-size: 13px; }
.tn-footer ul { list-style: none; margin: 0; padding: 0; }
.tn-footer li { margin: 7px 0; font-size: 13px; }
.tn-footer a { color: #ddd; }
.tn-footer a:hover { color: #ff7777; }
.tn-copyright { border-top: 1px solid #333; padding: 15px 0; color: #aaa; font-size: 11px; }
.tn-404 { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.tn-404 h1 { font-size: 34px; color: var(--tn-ink); }
.tn-404 .search-form { display: flex; justify-content: center; margin: 20px auto; }
.tn-button { display: inline-block; padding: 11px 18px; background: var(--tn-red); color: white; border-radius: 3px; font-weight: 700; }
.tn-button:hover { background: var(--tn-red-dark); color: white; }
.tn-image-placeholder { min-height: 110px; display: flex; align-items: center; justify-content: center; background: #e5e5e5; color: #888; font-weight: 800; }
.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; }

@media (max-width: 900px) {
  .tn-content-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .tn-featured-grid { grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr); }
  .tn-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tn-container { width: min(var(--tn-container), calc(100% - 24px)); }
  .tn-topline-note { display: none; }
  .tn-brand-row { min-height: 78px; }
  .tn-site-title { font-size: 29px; }
  .tn-header-search { display: none; }
  .tn-menu-toggle { display: block; }
  .tn-nav-inner { width: 100%; }
  .tn-menu-wrap { display: none; }
  .tn-menu-wrap.is-open { display: block; }
  .tn-menu, .tn-menu-fallback { display: block; }
  .tn-menu a, .tn-menu-fallback a { padding: 12px 18px; border-top: 1px solid #333; }
  .tn-home { padding-top: 15px; }
  .tn-breaking { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tn-trending { align-items: flex-start; flex-direction: column; }
  .tn-featured-grid, .tn-content-layout { grid-template-columns: 1fr; }
  .tn-featured-side { display: grid; grid-template-columns: 1fr 1fr; }
  .tn-mini-card { grid-template-columns: 1fr; }
  .tn-mini-image img { aspect-ratio: 16 / 10; }
  .tn-mini-card h3 { font-size: 14px; }
  .tn-sidebar { display: grid; grid-template-columns: 1fr; }
  .tn-list-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .tn-list-content h3 { font-size: 15px; }
  .tn-list-content p { display: none; }
  .tn-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tn-card-content { padding: 10px; }
  .tn-card h3 { font-size: 14px; }
  .tn-section-heading h2 { font-size: 18px; }
  .tn-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tn-footer-about { grid-column: 1 / -1; }
  .tn-single-title { font-size: 29px; }
  .tn-entry-content { font-size: 16px; }
}
@media (max-width: 380px) {
  .tn-featured-side { grid-template-columns: 1fr; }
  .tn-mini-card { grid-template-columns: 100px minmax(0, 1fr); }
  .tn-card-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Trenwanita editorial homepage — screenshot-inspired layout
   ========================================================= */
body.trenwanita-theme { background:#fff; }
.tn-home-editorial { width:min(1120px, calc(100% - 36px)); padding-top:16px; padding-bottom:36px; }
.tn-editorial-hero { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(285px,1fr); gap:20px; padding-bottom:18px; border-bottom:1px solid #dcdcdc; }
.tn-editorial-lead,.tn-editorial-side-item,.tn-editorial-category-lead,.tn-editorial-list-item { min-width:0; }
.tn-editorial-lead-image,.tn-editorial-side-image,.tn-editorial-category-image,.tn-editorial-list-image { display:block; overflow:hidden; background:#eee; }
.tn-editorial-lead-image img { display:block; width:100%; aspect-ratio:1.72; object-fit:cover; }
.tn-editorial-lead-copy { padding-top:8px; }
.tn-editorial-lead-copy .post-categories,.tn-editorial-side-copy .post-categories { display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:0 0 4px; padding:0; }
.tn-editorial-lead-copy .post-categories a,.tn-editorial-side-copy .post-categories a { color:var(--tn-red); font-size:10px; font-weight:800; text-transform:uppercase; }
.tn-editorial-lead-copy h1 { margin:0 0 7px; font-family:Georgia,serif; font-size:clamp(23px,2.6vw,31px); line-height:1.14; font-weight:700; }
.tn-editorial-lead-copy h1 a,.tn-editorial-side-copy h2 a,.tn-editorial-category-copy h3 a,.tn-editorial-list-item h3 a { color:#171717; text-decoration:none; }
.tn-editorial-lead-copy p { margin:0 0 7px; color:#555; font-size:12px; line-height:1.5; }
.tn-editorial-hero-side { display:flex; flex-direction:column; gap:12px; }
.tn-editorial-side-item { display:grid; grid-template-columns:112px minmax(0,1fr); gap:10px; padding-bottom:11px; border-bottom:1px solid #e8e8e8; }
.tn-editorial-side-item:last-child { padding-bottom:0; border-bottom:0; }
.tn-editorial-side-image img { display:block; width:100%; aspect-ratio:1.35; object-fit:cover; }
.tn-editorial-side-copy h2 { margin:0 0 5px; font-family:Georgia,serif; font-size:15px; line-height:1.2; font-weight:700; }
.tn-editorial-side-copy .tn-meta,.tn-editorial-list-item .tn-meta { font-size:10px; }
.tn-editorial-topics { display:flex; align-items:center; gap:13px; flex-wrap:wrap; padding:11px 0; margin:0 0 19px; border-bottom:1px solid #ddd; }
.tn-editorial-topics > strong { color:var(--tn-red); font-size:10px; letter-spacing:.4px; }
.tn-editorial-topic-links { display:flex; flex-wrap:wrap; gap:8px 17px; }
.tn-editorial-topic-links a { color:#333; font-size:11px; font-weight:700; text-decoration:none; }
.tn-editorial-topic-links a:hover,.tn-editorial-section-heading a:hover { color:var(--tn-red); }
.tn-editorial-columns { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:27px; align-items:start; }
.tn-editorial-main,.tn-editorial-sidebar { min-width:0; }
.tn-editorial-category { margin:0 0 19px; padding:0 0 17px; border-bottom:1px solid #dcdcdc; }
.tn-editorial-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 9px; padding:0 0 6px; border-bottom:1px solid #e3e3e3; }
.tn-editorial-section-heading h2 { position:relative; margin:0; padding-left:10px; color:#171717; font-size:15px; line-height:1.3; font-weight:800; }
.tn-editorial-section-heading h2:before { content:""; position:absolute; left:0; top:2px; width:3px; height:13px; background:var(--tn-red); }
.tn-editorial-section-heading a { color:#777; font-size:10px; text-decoration:none; }
.tn-editorial-category-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; }
.tn-editorial-category-image img { display:block; width:100%; aspect-ratio:1.58; object-fit:cover; }
.tn-editorial-category-copy { padding-top:6px; }
.tn-editorial-category-copy h3 { margin:0 0 5px; font-family:Georgia,serif; font-size:16px; line-height:1.2; font-weight:700; }
.tn-editorial-category-copy p { margin:0 0 5px; color:#555; font-size:11px; line-height:1.4; }
.tn-editorial-category-list { display:flex; flex-direction:column; gap:8px; }
.tn-editorial-list-item { display:grid; grid-template-columns:76px minmax(0,1fr); gap:8px; align-items:start; padding-bottom:7px; border-bottom:1px solid #eee; }
.tn-editorial-list-item:last-child { padding-bottom:0; border-bottom:0; }
.tn-editorial-list-image img { display:block; width:100%; aspect-ratio:1.35; object-fit:cover; }
.tn-editorial-list-item h3 { margin:0 0 3px; font-size:11px; line-height:1.25; font-weight:800; }
.tn-editorial-popular { margin:0 0 18px; }
.tn-editorial-popular > h2 { margin:0 0 7px; padding:0 0 7px; border-bottom:2px solid #222; color:#171717; font-size:14px; font-weight:800; }
.tn-editorial-popular ol { list-style:none; margin:0; padding:0; }
.tn-editorial-popular li { display:grid; grid-template-columns:24px minmax(0,1fr); gap:8px; padding:8px 0; border-bottom:1px solid #eee; }
.tn-editorial-popular li > span { color:var(--tn-red); font-size:15px; font-weight:900; }
.tn-editorial-popular li a { color:#222; font-family:Georgia,serif; font-size:11px; line-height:1.35; font-weight:700; text-decoration:none; }
.tn-editorial-ad { min-height:220px; margin-bottom:18px; border:1px dashed #ccc; background:#f6f6f6; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:#888; }
.tn-editorial-ad span,.tn-editorial-ad small { font-size:9px; letter-spacing:1px; }
.tn-editorial-ad strong { font-size:22px; color:#aaa; }
.tn-footer { margin-top:0; background:#f3f3f3; color:#555; }
.tn-footer h2,.tn-footer-brand { color:#222; }
.tn-footer p,.tn-footer a,.tn-copyright { color:#666; }
.tn-copyright { border-color:#ddd; }
@media (max-width:900px) {
 .tn-editorial-columns { grid-template-columns:minmax(0,1fr) 245px; gap:18px; }
 .tn-editorial-hero { grid-template-columns:minmax(0,1.45fr) minmax(245px,1fr); }
 .tn-editorial-side-item { grid-template-columns:92px minmax(0,1fr); }
 .tn-editorial-category-grid { gap:10px; }
 .tn-editorial-list-item { grid-template-columns:66px minmax(0,1fr); }
}
@media (max-width:700px) {
 .tn-home-editorial { width:calc(100% - 24px); padding-top:12px; }
 .tn-editorial-hero,.tn-editorial-columns { grid-template-columns:1fr; }
 .tn-editorial-hero-side { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:3px; }
 .tn-editorial-side-item { grid-template-columns:88px minmax(0,1fr); gap:8px; padding-bottom:0; border-bottom:0; }
 .tn-editorial-side-copy h2 { font-size:12px; }
 .tn-editorial-side-copy .post-categories { display:none; }
 .tn-editorial-topics { align-items:flex-start; gap:8px; }
 .tn-editorial-topic-links { gap:7px 12px; }
 .tn-editorial-category-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
 .tn-editorial-category-copy h3 { font-size:14px; }
 .tn-editorial-list-item { grid-template-columns:62px minmax(0,1fr); gap:7px; }
 .tn-editorial-list-item h3 { font-size:10px; }
 .tn-editorial-sidebar { display:grid; grid-template-columns:1fr; }
 .tn-editorial-popular li a { font-size:12px; }
}
@media (max-width:420px) {
 .tn-editorial-hero-side { grid-template-columns:1fr; }
 .tn-editorial-side-item { grid-template-columns:100px minmax(0,1fr); }
 .tn-editorial-category-grid { grid-template-columns:1fr; }
 .tn-editorial-category-list { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
 .tn-editorial-list-item { grid-template-columns:58px minmax(0,1fr); }
}


/* Header redesign: clean two-row editorial navigation inspired by the supplied reference. */
.tn-header { background:#fff; color:#171717; position:relative; z-index:50; }
.tn-header-main { background:#fff; border-bottom:1px solid #e5e5e5; }
.tn-header-inner { min-height:76px; display:flex; align-items:center; gap:28px; }
.tn-menu-toggle { order:0; display:flex; flex-direction:column; justify-content:center; align-items:center; flex:0 0 28px; width:28px; height:34px; padding:5px 3px; border:0; background:transparent; cursor:pointer; }
.tn-menu-toggle span:not(.screen-reader-text) { display:block; width:19px; height:2px; margin:2px 0; background:#171717; border-radius:2px; }
.tn-brand { flex:0 0 auto; min-width:max-content; }
.tn-site-title { color:#171717; font-size:37px; line-height:1; letter-spacing:-1.7px; font-weight:900; text-decoration:none; }
.tn-site-title:hover { color:#171717; }
.tn-custom-logo img { display:block; max-height:48px; width:auto; }
.tn-nav { flex:1 1 auto; min-width:0; background:transparent; }
.tn-nav-inner { width:auto; }
.tn-menu-wrap { display:block; }
.tn-menu, .tn-menu-fallback { display:flex; align-items:center; flex-wrap:nowrap; gap:0; white-space:nowrap; list-style:none; padding:0; margin:0; }
.tn-menu li, .tn-menu-fallback li { margin:0; }
.tn-menu a, .tn-menu-fallback a { display:block; padding:12px 13px; color:#414141; background:transparent; font-size:17px; line-height:1.2; font-weight:700; text-transform:none; text-decoration:none; }
.tn-menu a:hover, .tn-menu .current-menu-item>a, .tn-menu-fallback a:hover { color:#d90000; background:transparent; }
.tn-header-search { flex:0 0 34px; display:flex; justify-content:flex-end; }
.tn-header-search .search-form { position:relative; display:flex; align-items:center; }
.tn-header-search input[type="search"] { width:34px; height:38px; padding:5px 5px 5px 32px; border:0; border-radius:0; background:transparent; color:#222; cursor:pointer; }
.tn-header-search input[type="search"]:focus { position:absolute; right:0; width:230px; padding:8px 12px; border:1px solid #ddd; background:#fff; cursor:text; z-index:3; }
.tn-header-search input[type="submit"] { position:absolute; right:0; top:0; width:34px; height:38px; padding:0; border:0; background:transparent; color:transparent; cursor:pointer; z-index:4; }
.tn-header-search .search-form:after { content:""; position:absolute; right:11px; top:10px; width:12px; height:12px; border:2px solid #171717; border-radius:50%; pointer-events:none; }
.tn-header-search .search-form:before { content:""; position:absolute; right:7px; top:23px; width:7px; height:2px; background:#171717; transform:rotate(48deg); transform-origin:left center; pointer-events:none; z-index:2; }
.tn-trending-bar { background:#fff; border-bottom:1px solid #dedede; }
.tn-trending-inner { min-height:55px; display:flex; align-items:center; gap:24px; overflow:hidden; }
.tn-trending-label { display:flex; align-items:center; flex:0 0 auto; gap:9px; color:#222; font-size:17px; }
.tn-trending-icon { color:#e00000; font-size:23px; line-height:1; font-weight:900; }
.tn-trending-links { display:flex; align-items:center; flex-wrap:nowrap; gap:30px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.tn-trending-links::-webkit-scrollbar { display:none; }
.tn-trending-links a { flex:0 0 auto; color:#707070; font-size:17px; font-weight:400; white-space:nowrap; text-decoration:none; }
.tn-trending-links a:hover { color:#d90000; }
@media (max-width:1100px) {
 .tn-header-inner { gap:17px; }
 .tn-menu a, .tn-menu-fallback a { padding-inline:9px; font-size:15px; }
 .tn-trending-links { gap:20px; }
 .tn-trending-links a { font-size:15px; }
}
@media (max-width:760px) {
 .tn-header-inner { min-height:66px; gap:13px; }
 .tn-site-title { font-size:30px; }
 .tn-custom-logo img { max-height:40px; max-width:180px; }
 .tn-menu-toggle { display:flex; flex:0 0 25px; }
 .tn-nav { position:absolute; left:0; right:0; top:100%; background:#fff; border-bottom:1px solid #ddd; box-shadow:0 8px 16px rgba(0,0,0,.08); }
 .tn-menu-wrap { display:none; }
 .tn-menu-wrap.is-open { display:block; }
 .tn-menu, .tn-menu-fallback { display:block; white-space:normal; }
 .tn-menu a, .tn-menu-fallback a { padding:13px 18px; border-top:1px solid #eee; font-size:15px; }
 .tn-header-search { margin-left:auto; }
 .tn-header-search input[type="search"]:focus { width:min(220px, calc(100vw - 100px)); }
 .tn-trending-inner { min-height:48px; gap:15px; }
 .tn-trending-label { font-size:14px; }
 .tn-trending-icon { font-size:19px; }
 .tn-trending-links { gap:18px; }
 .tn-trending-links a { font-size:14px; }
}

/* Header uses the wider editorial masthead grid from the reference. */
.tn-header-inner, .tn-trending-inner { width:min(1568px, calc(100% - 48px)); }
@media (max-width:760px) {
  .tn-header-inner, .tn-trending-inner { width:calc(100% - 24px); }
}


/* === Centered header/footer refinement (reference layout) === */
.tn-header { background:#fff; color:#222; }
.tn-header-main { border-bottom:1px solid #e7e7e7; }
.tn-header-inner, .tn-trending-inner, .tn-footer-inner {
  width:min(1120px, calc(100% - 40px));
  margin-left:auto; margin-right:auto;
}
.tn-header-inner { min-height:58px; display:flex; align-items:center; gap:16px; }
.tn-menu-toggle { order:0; flex:0 0 22px; width:22px; height:30px; padding:4px 1px; border:0; background:transparent; cursor:pointer; }
.tn-menu-toggle span:not(.screen-reader-text) { width:17px; height:2px; margin:2px 0; background:#222; }
.tn-brand { flex:0 0 auto; }
.tn-site-title { color:#171717; font-family:Arial,Helvetica,sans-serif; font-size:24px; line-height:1; font-weight:900; letter-spacing:-1px; text-decoration:none; }
.tn-custom-logo img { display:block; max-height:35px; width:auto; }
.tn-nav { flex:1 1 auto; min-width:0; background:transparent; }
.tn-menu-wrap { display:block; }
.tn-menu, .tn-menu-fallback { display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:0; list-style:none; margin:0; padding:0; white-space:nowrap; }
.tn-menu li, .tn-menu-fallback li { margin:0; }
.tn-menu a, .tn-menu-fallback a { display:block; padding:12px 7px; color:#383838; background:transparent; font-size:12px; line-height:1.2; font-weight:700; text-transform:none; text-decoration:none; }
.tn-menu a:hover, .tn-menu .current-menu-item>a, .tn-menu-fallback a:hover { color:#d90000; background:transparent; }
.tn-header-search { flex:0 0 28px; display:flex; justify-content:flex-end; }
.tn-header-search .search-form { position:relative; display:flex; align-items:center; margin:0; }
.tn-header-search input[type="search"] { width:28px; height:30px; padding:4px; border:0; border-radius:0; background:transparent; color:#222; cursor:pointer; }
.tn-header-search input[type="search"]:focus { position:absolute; right:0; width:210px; padding:6px 10px; border:1px solid #ddd; background:#fff; cursor:text; z-index:5; }
.tn-header-search input[type="submit"] { position:absolute; right:0; top:0; width:28px; height:30px; padding:0; border:0; background:transparent; color:transparent; cursor:pointer; z-index:6; }
.tn-header-search .search-form:after { content:""; position:absolute; right:9px; top:7px; width:10px; height:10px; border:2px solid #222; border-radius:50%; pointer-events:none; }
.tn-header-search .search-form:before { content:""; position:absolute; right:5px; top:18px; width:6px; height:2px; background:#222; transform:rotate(48deg); pointer-events:none; z-index:2; }
.tn-trending-bar { background:#fff; border-bottom:1px solid #e5e5e5; }
.tn-trending-inner { min-height:38px; display:flex; align-items:center; gap:17px; overflow:hidden; }
.tn-trending-label { flex:0 0 auto; display:flex; align-items:center; gap:6px; color:#333; font-size:12px; }
.tn-trending-icon { color:#e00000; font-size:16px; line-height:1; font-weight:900; }
.tn-trending-links { display:flex; flex-wrap:nowrap; align-items:center; gap:19px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.tn-trending-links::-webkit-scrollbar { display:none; }
.tn-trending-links a { flex:0 0 auto; color:#777; font-size:12px; line-height:1.3; white-space:nowrap; text-decoration:none; }
.tn-trending-links a:hover { color:#d90000; }

/* Footer is a centered, light-gray closing panel like the reference. */
.tn-footer { margin-top:28px; padding:24px 0 0; background:#f4f4f4; color:#666; text-align:center; }
.tn-footer-inner { display:flex; flex-direction:column; align-items:center; gap:12px; }
.tn-footer-brand-wrap { display:flex; flex-direction:column; align-items:center; gap:5px; }
.tn-footer-brand { display:inline-flex; align-items:center; justify-content:center; color:#171717; font-size:20px; line-height:1; font-weight:900; text-decoration:none; }
.tn-footer-brand:hover { color:#d90000; }
.tn-footer-brand .custom-logo-link { display:inline-flex; }
.tn-footer-brand img { display:block; max-height:32px; width:auto; }
.tn-footer-description { margin:0; color:#888; font-size:11px; line-height:1.5; }
.tn-footer-nav { width:100%; }
.tn-footer-menu, .tn-footer-utility { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:7px 19px; list-style:none; margin:0; padding:0; }
.tn-footer-menu a, .tn-footer-utility a { color:#666; font-size:11px; text-decoration:none; }
.tn-footer-menu a:hover, .tn-footer-utility a:hover { color:#d90000; }
.tn-footer-utility { margin-top:8px; }
.tn-copyright { width:100%; margin-top:6px; padding:12px 0 14px; border-top:1px solid #e5e5e5; color:#999; font-size:10px; }
@media (max-width:1050px) and (min-width:761px) {
 .tn-header-inner { gap:10px; }
 .tn-menu a, .tn-menu-fallback a { padding-inline:4px; font-size:11px; }
}
@media (max-width:760px) {
 .tn-header-inner, .tn-trending-inner, .tn-footer-inner { width:calc(100% - 24px); }
 .tn-header-inner { min-height:54px; gap:10px; }
 .tn-site-title { font-size:23px; }
 .tn-custom-logo img { max-height:31px; max-width:150px; }
 .tn-menu-toggle { display:flex; flex-direction:column; align-items:center; justify-content:center; }
 .tn-nav { position:absolute; left:0; right:0; top:100%; z-index:20; background:#fff; border-bottom:1px solid #ddd; box-shadow:0 7px 14px rgba(0,0,0,.08); }
 .tn-menu-wrap { display:none; }
 .tn-menu-wrap.is-open { display:block; }
 .tn-menu, .tn-menu-fallback { display:block; white-space:normal; }
 .tn-menu a, .tn-menu-fallback a { padding:11px 16px; border-top:1px solid #eee; font-size:13px; }
 .tn-header-search { margin-left:auto; }
 .tn-header-search input[type="search"]:focus { width:min(205px, calc(100vw - 90px)); }
 .tn-trending-inner { min-height:35px; gap:11px; }
 .tn-trending-label { font-size:11px; }
 .tn-trending-links { gap:14px; }
 .tn-trending-links a { font-size:11px; }
 .tn-footer { margin-top:22px; padding-top:20px; }
 .tn-footer-inner { gap:10px; }
 .tn-footer-menu, .tn-footer-utility { gap:8px 13px; }
 .tn-footer-menu a, .tn-footer-utility a { font-size:10px; }
}

.tn-footer-custom-logo .custom-logo-link { display:inline-flex; }

/* === Search icon alignment fix: no pseudo-elements or overlapping submit layer === */
.tn-header-search { position:relative; flex:0 0 34px; width:34px; height:38px; margin:0; z-index:30; }
.tn-search-form { position:relative; display:flex; align-items:center; justify-content:flex-end; width:34px; height:38px; margin:0; }
.tn-search-form:before, .tn-search-form:after { content:none !important; display:none !important; }
.tn-search-input {
  position:absolute; right:34px; top:0; box-sizing:border-box; width:0; height:36px;
  padding:0; opacity:0; visibility:hidden; border:1px solid transparent; border-radius:2px;
  background:#fff; color:#222; font:inherit; transition:width .18s ease, opacity .18s ease;
}
.tn-search-toggle {
  position:relative; z-index:2; display:flex; align-items:center; justify-content:center;
  flex:0 0 34px; width:34px; height:38px; padding:0; border:0; border-radius:0;
  background:transparent; color:#171717; cursor:pointer;
}
.tn-search-toggle svg { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.tn-search-submit {
  display:none; position:absolute; right:0; top:0; z-index:3; height:36px; padding:0 10px;
  border:0; background:#d90000; color:#fff; font-size:12px; cursor:pointer;
}
.tn-search-form.is-open { position:absolute; right:0; top:50%; transform:translateY(-50%); width:260px; height:38px; padding:1px 0 1px 8px; background:#fff; border:1px solid #ddd; box-shadow:0 2px 8px rgba(0,0,0,.08); }
.tn-search-form.is-open .tn-search-input {
  position:static; flex:1 1 auto; width:auto; min-width:0; height:34px; padding:5px 7px;
  opacity:1; visibility:visible; border:0; outline:0; box-shadow:none;
}
.tn-search-form.is-open .tn-search-toggle { flex:0 0 34px; width:34px; height:34px; }
.tn-search-form.is-open .tn-search-submit { display:block; position:static; flex:0 0 auto; height:34px; }
@media (max-width:760px) {
  .tn-header-search { flex-basis:32px; width:32px; }
  .tn-search-form { width:32px; }
  .tn-search-toggle { flex-basis:32px; width:32px; }
  .tn-search-form.is-open { width:min(250px, calc(100vw - 82px)); }
}

/* === v1.4.0: hamburger removed; primary navigation stays available === */
.tn-menu-toggle { display:none !important; }
.tn-header-inner { gap:18px; }
.tn-nav { position:static !important; flex:1 1 auto; min-width:0; overflow:hidden; box-shadow:none !important; border:0 !important; }
.tn-menu-wrap, .tn-menu-wrap.is-open { display:block !important; }
.tn-menu, .tn-menu-fallback { display:flex !important; flex-wrap:nowrap !important; align-items:center; justify-content:space-between; overflow-x:auto; overflow-y:hidden; white-space:nowrap; scrollbar-width:none; }
.tn-menu::-webkit-scrollbar, .tn-menu-fallback::-webkit-scrollbar { display:none; }
.tn-menu a, .tn-menu-fallback a { flex:0 0 auto; }
.tn-trending-links { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
.tn-trending-links::-webkit-scrollbar { display:none; }
@media (max-width:760px) {
 .tn-header-inner { gap:10px; }
 .tn-nav { position:static !important; display:block !important; flex:1 1 auto; width:0; }
 .tn-menu-wrap, .tn-menu-wrap.is-open { display:block !important; }
 .tn-menu, .tn-menu-fallback { display:flex !important; justify-content:flex-start; gap:13px; }
 .tn-menu a, .tn-menu-fallback a { padding:10px 0; border:0; font-size:12px; }
 .tn-header-search { flex:0 0 32px; margin-left:0; }
 .tn-trending-inner { gap:10px; }
 .tn-trending-label { flex:0 0 auto; }
}
