/* 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; }
}
