/*
Theme Name: The Realities Classic
Theme URI: https://therealities.org/
Author: The Realities Org
Author URI: https://therealities.org/
Description: A clean classic WordPress theme for articles, investigations, public reports, and data library landing pages.
Version: 1.0.11
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: therealities-classic
Tags: blog, news, custom-background, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root{
  --tr-bg:#f8f5ee;
  --tr-surface:#fffdf8;
  --tr-surface-2:#f1eadf;
  --tr-text:#171717;
  --tr-muted:#5f6368;
  --tr-line:#e2d8c8;
  --tr-accent:#8b1e2d;
  --tr-accent-dark:#681521;
  --tr-accent-soft:#f7e8eb;
  --tr-max:1180px;
  --tr-header-max:1180px;
  --tr-radius:18px;
  --tr-shadow:0 18px 50px rgba(20,20,20,.075);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background:linear-gradient(180deg,#fbf9f3 0%, var(--tr-bg) 42%, #f6f2e9 100%);
  color:var(--tr-text);
  line-height:1.65;
  font-size:18px;
}
a{color:var(--tr-accent);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.screen-reader-text,.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#fff;padding:.6rem 1rem;z-index:9999;border:1px solid var(--tr-line)}
.tr-container{max-width:var(--tr-max);margin:0 auto;padding:0 24px}

.tr-site-header{position:sticky;top:0;z-index:50;background:rgba(251,249,243,.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--tr-line)}
.tr-site-header .tr-container{max-width:var(--tr-header-max);padding:0 18px}
.tr-header-inner{display:flex;align-items:center;justify-content:center;gap:38px;min-height:74px;overflow:visible}
.tr-brand{display:flex;align-items:center;gap:10px;color:var(--tr-text);font-weight:800;letter-spacing:.01em;white-space:nowrap;flex:0 0 auto;min-width:max-content}
.tr-logo-link,.tr-brand-text{display:inline-flex;color:var(--tr-text);text-decoration:none}
.tr-logo-link{align-items:center;justify-content:center;flex:0 0 auto}
.tr-logo-link:hover,.tr-brand-text:hover{text-decoration:none}
.tr-brand-text{flex-direction:column;min-width:max-content;justify-content:center}
.tr-custom-logo{display:block;max-height:48px;width:auto;object-fit:contain}
.tr-site-icon-logo{border-radius:999px}
.tr-brand-mark{width:36px;height:36px;border-radius:999px;background:var(--tr-accent);display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:17px;flex:0 0 auto}
.tr-site-title{font-size:19px;line-height:1.05;white-space:nowrap}
.tr-site-description{display:block;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:12px;line-height:1.2;color:var(--tr-muted);font-weight:500;margin-top:2px;white-space:nowrap}

.tr-nav-toggle{display:none;border:1px solid var(--tr-line);background:var(--tr-surface);border-radius:10px;padding:.45rem .65rem;font:inherit;cursor:pointer;white-space:nowrap}
.tr-primary-nav{flex:0 1 auto;min-width:0;display:flex;justify-content:flex-start;overflow-x:visible;overflow-y:visible;padding:7px 0}
.tr-primary-menu{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:6px;margin:0;padding:0;list-style:none;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;line-height:1.2;white-space:nowrap}
.tr-primary-menu li{position:relative;list-style:none;flex:0 0 auto}
.tr-primary-menu a{display:inline-flex;align-items:center;justify-content:center;color:var(--tr-text);padding:.38rem .58rem;border:1px solid #111;border-radius:8px;background:rgba(255,255,255,.72);white-space:nowrap;box-shadow:0 4px 12px rgba(20,20,20,.035)}
.tr-primary-menu a:hover{background:var(--tr-surface-2);border-color:#111;text-decoration:none}
.tr-header-search{display:none}
.tr-search-field{width:180px;border:1px solid var(--tr-line);background:#fff;border-radius:999px;padding:.65rem .95rem;font-size:14px}
.tr-search-submit,.tr-button{border:0;background:var(--tr-accent);color:#fff;border-radius:999px;padding:.72rem 1rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-weight:700;cursor:pointer;box-shadow:0 8px 20px rgba(139,30,45,.18);display:inline-flex;align-items:center;justify-content:center}
.tr-search-submit:hover,.tr-button:hover{background:var(--tr-accent-dark);text-decoration:none;color:#fff}
.tr-small-button{padding:.55rem .78rem;font-size:13px}

.tr-main{padding:42px 0 72px}

.tr-home-sections{padding:22px 0 42px}
.tr-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.tr-home-card{margin:0;min-width:0}
.tr-home-card-link{display:flex;flex-direction:column;height:100%;min-height:240px;background:var(--tr-surface);border:1px solid var(--tr-line);border-radius:22px;padding:22px;color:var(--tr-text);box-shadow:0 10px 32px rgba(20,20,20,.05);transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.tr-home-card-link:hover{transform:translateY(-2px);box-shadow:var(--tr-shadow);border-color:#111;text-decoration:none;color:var(--tr-text)}
.tr-home-card-button{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;border:1px solid #111;border-radius:8px;background:#fff;padding:.34rem .55rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:12px;line-height:1.1;font-weight:700;color:var(--tr-text);margin-bottom:24px;white-space:nowrap}
.tr-home-card h2{font-size:clamp(27px,2.8vw,38px);line-height:1.02;letter-spacing:-.035em;margin:0 0 12px}
.tr-home-card h3{font-size:21px;line-height:1.16;letter-spacing:-.02em;margin:0 0 10px}
.tr-home-card-meta{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:12px;color:var(--tr-muted);margin:0 0 8px}
.tr-home-card-excerpt{font-size:15px;color:#424242;margin:0;line-height:1.55}
.tr-home-card-empty{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px;color:var(--tr-muted);margin:auto 0 0;padding-top:18px}
.tr-home-card-dark-library .tr-home-card-excerpt{font-weight:600;color:#333}

.tr-hero{padding:72px 0 52px;background:linear-gradient(135deg,#fffdf8 0%,#f4eee4 100%);border-bottom:1px solid var(--tr-line)}
.tr-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:36px;align-items:center}
.tr-eyebrow{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;text-transform:uppercase;letter-spacing:.14em;color:var(--tr-accent);font-weight:800;font-size:13px;margin:0 0 12px}
.tr-hero h1{font-size:clamp(42px,6vw,76px);line-height:.96;margin:0 0 18px;letter-spacing:-.05em}
.tr-hero p{font-size:21px;color:#3a3a3a;margin:0 0 24px;max-width:720px}
.tr-hero-card{background:var(--tr-surface);border:1px solid var(--tr-line);border-radius:28px;padding:28px;box-shadow:var(--tr-shadow)}
.tr-hero-card h2{margin:0 0 10px;font-size:25px}.tr-hero-card p{font-size:16px;color:var(--tr-muted)}
.tr-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}
.tr-stat{background:var(--tr-bg);border:1px solid var(--tr-line);border-radius:16px;padding:14px}.tr-stat strong{display:block;font-size:24px;line-height:1}.tr-stat span{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:12px;color:var(--tr-muted)}

.tr-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 22px}
.tr-section-head h2,.tr-page-title{font-size:clamp(30px,4vw,48px);line-height:1.05;letter-spacing:-.035em;margin:0}
.tr-section-head p{margin:.35rem 0 0;color:var(--tr-muted);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px}
.tr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tr-card{background:var(--tr-surface);border:1px solid var(--tr-line);border-radius:var(--tr-radius);padding:22px;box-shadow:0 10px 30px rgba(20,20,20,.04)}
.tr-card:hover{transform:translateY(-2px);transition:.18s ease;box-shadow:var(--tr-shadow)}
.tr-card h3{font-size:24px;line-height:1.12;margin:0 0 10px;letter-spacing:-.02em}
.tr-card p{color:var(--tr-muted);font-size:16px;margin:0 0 14px}
.tr-card-meta{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px;color:var(--tr-muted);margin-bottom:10px}
.tr-card-link{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-weight:800}
.tr-featured-img{border-radius:16px;margin-bottom:16px;display:block;aspect-ratio:16/10;object-fit:cover;width:100%;background:var(--tr-surface-2)}

.tr-content-wrap{display:grid;grid-template-columns:minmax(0,760px) 300px;gap:44px;align-items:start}
.tr-article,.tr-page{background:var(--tr-surface);border:1px solid var(--tr-line);border-radius:24px;padding:clamp(22px,3vw,36px);box-shadow:var(--tr-shadow)}
.tr-page-title-card{max-width:760px;margin:0 auto 22px;padding:22px 28px}
.tr-page-title-card .tr-entry-title{font-size:clamp(30px,4vw,46px);line-height:1.04;margin:0;letter-spacing:-.04em}
.tr-page-title-card .tr-entry-content{margin-top:18px}
.tr-page-title-only{max-width:620px;padding:18px 26px}
.tr-page-title-only .tr-entry-title{font-size:clamp(28px,3.4vw,40px)}
.tr-entry-title{font-size:clamp(34px,5vw,56px);line-height:1;margin:0 0 14px;letter-spacing:-.045em}
.tr-entry-meta{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;color:var(--tr-muted);margin-bottom:28px}
.tr-entry-content h2{font-size:32px;line-height:1.15;margin-top:2rem}.tr-entry-content h3{font-size:25px;line-height:1.2;margin-top:1.6rem}
.tr-entry-content p{margin:0 0 1.15rem}.tr-entry-content ul,.tr-entry-content ol{padding-left:1.3rem}.tr-entry-content blockquote{border-left:4px solid var(--tr-accent);margin:1.5rem 0;padding:.5rem 0 .5rem 1.2rem;color:#3a3a3a;background:var(--tr-accent-soft)}
.tr-entry-content table{border-collapse:collapse;width:100%;font-size:15px;display:block;overflow:auto}.tr-entry-content th,.tr-entry-content td{border:1px solid var(--tr-line);padding:.6rem}.tr-entry-content th{background:var(--tr-surface-2)}
.tr-sidebar{position:sticky;top:100px}.tr-widget{background:var(--tr-surface);border:1px solid var(--tr-line);border-radius:20px;padding:20px;margin-bottom:18px}.tr-widget h2,.tr-widget h3{font-size:20px;margin:0 0 12px}

.tr-section-split{max-width:900px;margin:0 auto 24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tr-access-card,.tr-dark-notice{background:#fff;border:1px solid var(--tr-line);border-radius:20px;padding:22px;box-shadow:0 10px 30px rgba(20,20,20,.045)}
.tr-access-card h2,.tr-dark-notice h2{font-size:27px;line-height:1.1;margin:0 0 10px;letter-spacing:-.025em}
.tr-access-card p,.tr-dark-notice p{font-size:16px;color:#444;margin:0 0 16px}
.tr-access-card-restricted,.tr-dark-notice{background:linear-gradient(135deg,#fff 0%,#f8ecee 100%);border-color:#d7b8be}
.tr-access-link-card{display:block;color:var(--tr-text);text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.tr-access-link-card:hover{color:var(--tr-text);text-decoration:none;transform:translateY(-2px);box-shadow:var(--tr-shadow);border-color:#111}
.tr-card-arrow{display:inline-flex;margin-top:2px;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px;font-weight:800;color:var(--tr-accent)}
.tr-dark-notice{max-width:780px;margin:0 auto 24px}
.tr-inline-post-section{max-width:100%;margin:0 auto 24px}
.tr-empty-section-note{max-width:760px;margin:0 auto 24px}

.tr-post-nav{display:flex;justify-content:space-between;gap:20px;margin-top:28px;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-weight:700}
.tr-pagination{margin-top:28px;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}.tr-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:999px;background:#fff;border:1px solid var(--tr-line);margin-right:6px}.tr-pagination .current{background:var(--tr-accent);color:#fff;border-color:var(--tr-accent)}

.tr-library-hero{background:var(--tr-surface);border:1px solid var(--tr-line);border-radius:28px;padding:30px;box-shadow:var(--tr-shadow);margin-bottom:24px}
.tr-library-controls{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.tr-library-controls input,.tr-library-controls select{border:1px solid var(--tr-line);border-radius:999px;background:#fff;padding:.8rem 1rem;font:inherit;font-size:15px;min-width:220px}
.tr-library-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.tr-library-item{background:#fff;border:1px solid var(--tr-line);border-radius:18px;padding:18px}.tr-library-item small{font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--tr-muted)}

.tr-footer{background:#171717;color:#f5f5f5;padding:22px 0}.tr-footer-links{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:12px;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px}.tr-footer-link-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.tr-footer a{color:#f5f5f5;text-decoration:none}.tr-footer a:hover{text-decoration:underline}.tr-footer-bottom{color:#d8d8d8;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px;text-align:center}
.alignwide{max-width:1000px;margin-left:auto;margin-right:auto}.alignfull{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw;width:100vw}.wp-caption{max-width:100%}.wp-caption-text{font-size:14px;color:var(--tr-muted)}.gallery-caption,.bypostauthor{display:block}

@media (max-width: 1100px){
  .tr-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 980px){
  .tr-hero-grid,.tr-content-wrap{grid-template-columns:1fr}
  .tr-grid{grid-template-columns:repeat(2,1fr)}
  .tr-library-grid{grid-template-columns:repeat(2,1fr)}
  .tr-sidebar{position:static}
  .tr-nav-toggle{display:none!important}
  .tr-header-inner{justify-content:center;gap:28px;flex-wrap:nowrap;min-height:70px}
  .tr-primary-nav{flex:0 1 auto;display:flex;overflow:visible;padding:6px 0}
  .tr-primary-menu{display:flex!important;position:static;left:auto;right:auto;top:auto;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;white-space:nowrap;gap:5px}
  .tr-primary-menu a{width:auto;justify-content:center;border-radius:8px;padding:.34rem .50rem;font-size:13px}
  .tr-stat-grid{grid-template-columns:1fr 1fr 1fr}
}

@media (max-width: 720px){
  .tr-container{padding:0 16px}
  .tr-site-header .tr-container{padding:0 10px}
  .tr-header-inner{flex-direction:column;gap:7px;min-height:auto;padding:10px 0}
  .tr-brand{justify-content:center;gap:8px}
  .tr-site-title{font-size:17px}
  .tr-site-description{font-size:11px}
  .tr-brand-mark{width:32px;height:32px;font-size:15px}
  .tr-custom-logo{max-height:38px}
  .tr-primary-nav{width:100%;justify-content:center;padding:0;overflow:visible}
  .tr-primary-menu{width:100%;justify-content:center;gap:4px}
  .tr-primary-menu a{padding:.24rem .34rem;font-size:11px;line-height:1.1;border-radius:6px}
  .tr-main{padding-top:26px}
  .tr-home-sections{padding-top:6px}
  .tr-home-grid{grid-template-columns:1fr;gap:14px}
  .tr-home-card-link{min-height:auto;padding:18px}
  .tr-hero{padding:48px 0 36px}
  .tr-section-head{display:block}
  .tr-article,.tr-page{border-radius:18px;padding:22px}
  .tr-page-title-card{padding:18px 20px}
  .tr-section-split{grid-template-columns:1fr;gap:14px}
  .tr-post-nav{display:block}.tr-post-nav div{margin:10px 0}
  .tr-library-controls input,.tr-library-controls select{width:100%;min-width:0}
}

@media (max-width: 520px){
  body{font-size:17px}
  .tr-grid,.tr-library-grid{grid-template-columns:1fr}
  .tr-stat-grid{grid-template-columns:1fr}
  .tr-primary-menu{gap:3px}
  .tr-primary-menu a{font-size:10px;padding:.22rem .26rem;border-radius:5px}
}

@media (max-width: 380px){
  .tr-primary-menu a{font-size:9px;padding:.20rem .20rem}
}

.tr-membership-entry{
  max-width:720px;
  margin:18px auto 0;
}
.tr-membership-entry-inner{
  background:var(--tr-surface);
  border:1px solid var(--tr-line);
  border-radius:18px;
  padding:20px 22px;
  text-align:center;
  box-shadow:0 10px 28px rgba(20,20,20,.045);
}
.tr-membership-entry h2{
  margin:0 0 6px;
  font-size:24px;
  line-height:1.2;
}
.tr-membership-entry p{
  margin:0 0 14px;
  color:var(--tr-muted);
  font-size:15px;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;
}
.tr-membership-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.tr-membership-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.55rem .78rem;
  border:1px solid #111;
  border-radius:8px;
  background:#fff;
  color:var(--tr-text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}
.tr-membership-button:hover{
  background:var(--tr-surface-2);
  text-decoration:none;
  color:var(--tr-text);
}
.tr-membership-button-secondary{
  background:rgba(255,255,255,.65);
}
@media (max-width:560px){
  .tr-membership-entry-inner{padding:16px 14px}
  .tr-membership-entry h2{font-size:20px}
  .tr-membership-button{font-size:13px;padding:.48rem .62rem}
}


.tr-login-register-inline{
  display:flex;
  justify-content:center;
  margin:10px 0 0;
}
.tr-login-register-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  padding:.58rem .9rem;
  border:1px solid #111;
  border-radius:8px;
  background:#fff;
  color:var(--tr-text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
}
.tr-login-register-button:hover{
  background:var(--tr-surface-2);
  color:var(--tr-text);
  text-decoration:none;
}


/* ==================================================
   EYE-COMFORT WARM WHITE OVERRIDE
   Clean warm-white reading style with no aged-paper
   effects, no dots, no dark edge burn, and no heavy gradients.
   Buttons, navigation buttons, sizes, spacing, radius,
   and layout are intentionally kept unchanged.
   ================================================== */

:root{
  --tr-bg:#f8f5ee;
  --tr-surface:#fffdf8;
  --tr-surface-2:#f1eadf;
  --tr-text:#171717;
  --tr-muted:#5f6368;
  --tr-line:#e2d8c8;
  --tr-accent:#8b1e2d;
  --tr-accent-dark:#681521;
  --tr-accent-soft:#f7e8eb;
  --tr-shadow:0 18px 50px rgba(20,20,20,.075);
}

html{
  background:#f8f5ee;
}

body{
  color:var(--tr-text) !important;
  background-color:var(--tr-bg) !important;
  background-image:linear-gradient(180deg,#fbf9f3 0%, #f8f5ee 42%, #f6f2e9 100%) !important;
  background-attachment:fixed;
}

body::before,
body::after,
.tr-home-card-link::before,
.tr-home-card-link::after,
.tr-card::before,
.tr-card::after,
.tr-page::before,
.tr-page::after,
.tr-article::before,
.tr-article::after{
  display:none !important;
  content:none !important;
  background:none !important;
  opacity:0 !important;
}

.tr-site-header{
  background:rgba(251,249,243,.94) !important;
  border-bottom-color:var(--tr-line) !important;
  box-shadow:0 8px 24px rgba(20,20,20,.045) !important;
}

.tr-main{
  background:transparent !important;
}

.tr-hero{
  background:linear-gradient(135deg,#fffdf8 0%,#f4eee4 100%) !important;
  border-bottom-color:var(--tr-line) !important;
  box-shadow:none !important;
}

.tr-home-card-link,
.tr-article,
.tr-page,
.tr-page-title-card,
.tr-card,
.tr-hero-card,
.tr-widget,
.tr-access-card,
.tr-dark-notice,
.tr-library-hero,
.tr-library-item,
.tr-membership-entry-inner{
  background-color:var(--tr-surface) !important;
  background-image:none !important;
  border-color:var(--tr-line) !important;
  box-shadow:0 10px 32px rgba(20,20,20,.05) !important;
}

.tr-home-card-link:hover,
.tr-card:hover,
.tr-access-link-card:hover{
  box-shadow:var(--tr-shadow) !important;
  border-color:#111 !important;
}

.tr-access-card-restricted,
.tr-dark-notice{
  background:linear-gradient(135deg,#fffdf8 0%,#f7e8eb 100%) !important;
  border-color:#ead1d6 !important;
}

.tr-site-title,
.tr-entry-title,
.tr-page-title,
.tr-page-title-card .tr-entry-title,
.tr-section-head h2,
.tr-hero h1,
h1,h2,h3{
  color:var(--tr-text) !important;
  text-shadow:none !important;
}

.tr-site-description,
.tr-entry-meta,
.tr-card-meta,
.tr-home-card-meta,
.wp-caption-text,
.tr-library-item small{
  color:var(--tr-muted) !important;
}

.tr-home-card-excerpt,
.tr-card p,
.tr-hero p,
.tr-hero-card p,
.tr-access-card p,
.tr-dark-notice p,
.tr-entry-content,
.tr-entry-content p,
.tr-membership-entry p{
  color:#3f3f3f !important;
}

.tr-entry-content blockquote{
  background:var(--tr-accent-soft) !important;
  border-left-color:var(--tr-accent) !important;
  color:#3a3a3a !important;
}

.tr-entry-content th,
.tr-stat{
  background:var(--tr-surface-2) !important;
}

.tr-entry-content th,
.tr-entry-content td,
.tr-stat,
.tr-library-controls input,
.tr-library-controls select,
.tr-search-field,
input,textarea,select{
  border-color:var(--tr-line) !important;
}

.tr-library-controls input,
.tr-library-controls select,
input,textarea,select{
  background:#fff !important;
  color:var(--tr-text) !important;
}

.tr-footer{
  background:#171717 !important;
  color:#f5f5f5 !important;
  border-top:0 !important;
}
.tr-footer a,
.tr-footer-bottom{color:#f5f5f5 !important;}

a{color:var(--tr-accent);}
a:hover{color:var(--tr-accent-dark);}

/* ==================================================
   PRESERVE BUTTON AND MENU SIZE / LAYOUT / CORE STYLE
   Do not change padding, font-size, radius, layout, or button positions.
   ================================================== */
.tr-nav-toggle{display:none;border:1px solid #ded7ca;background:#ffffff;border-radius:10px;padding:.45rem .65rem;font:inherit;cursor:pointer;white-space:nowrap}
.tr-primary-nav{flex:0 1 auto;min-width:0;display:flex;justify-content:flex-start;overflow-x:visible;overflow-y:visible;padding:7px 0}
.tr-primary-menu{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:6px;margin:0;padding:0;list-style:none;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;line-height:1.2;white-space:nowrap}
.tr-primary-menu li{position:relative;list-style:none;flex:0 0 auto}
.tr-primary-menu a{display:inline-flex;align-items:center;justify-content:center;color:#171717;padding:.38rem .58rem;border:1px solid #111;border-radius:8px;background:rgba(255,255,255,.72);white-space:nowrap;box-shadow:0 4px 12px rgba(20,20,20,.035)}
.tr-primary-menu a:hover{background:#efe8dc;border-color:#111;text-decoration:none;color:#171717}
.tr-home-card-button{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;border:1px solid #111;border-radius:8px;background:#fff;padding:.34rem .55rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:12px;line-height:1.1;font-weight:700;color:#171717;margin-bottom:24px;white-space:nowrap}
.tr-search-submit,.tr-button{border:0;background:#8b1e2d;color:#fff;border-radius:999px;padding:.72rem 1rem;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-weight:700;cursor:pointer;box-shadow:0 8px 20px rgba(139,30,45,.18);display:inline-flex;align-items:center;justify-content:center}
.tr-search-submit:hover,.tr-button:hover{background:#681521;text-decoration:none;color:#fff}
.tr-small-button{padding:.55rem .78rem;font-size:13px}
.tr-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:999px;background:#fff;border:1px solid #ded7ca;margin-right:6px}
.tr-pagination .current{background:#8b1e2d;color:#fff;border-color:#8b1e2d}
.tr-membership-button{display:inline-flex;align-items:center;justify-content:center;padding:.55rem .78rem;border:1px solid #111;border-radius:8px;background:#fff;color:#171717;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;font-weight:700;line-height:1.2;text-decoration:none}
.tr-membership-button:hover{background:#efe8dc;text-decoration:none;color:#171717}
.tr-membership-button-secondary{background:rgba(255,255,255,.65)}
.tr-login-register-button{display:inline-flex;align-items:center;justify-content:center;min-width:150px;padding:.58rem .9rem;border:1px solid #111;border-radius:8px;background:#fff;color:#171717;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;font-weight:800;line-height:1.2;text-decoration:none}
.tr-login-register-button:hover{background:#efe8dc;color:#171717;text-decoration:none}

@media (max-width: 980px){
  .tr-nav-toggle{display:none!important}
  .tr-header-inner{justify-content:center;gap:28px;flex-wrap:nowrap;min-height:70px}
  .tr-primary-nav{flex:0 1 auto;display:flex;overflow:visible;padding:6px 0}
  .tr-primary-menu{display:flex!important;position:static;left:auto;right:auto;top:auto;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;flex-direction:row;align-items:center;justify-content:center;flex-wrap:nowrap;white-space:nowrap;gap:5px}
  .tr-primary-menu a{width:auto;justify-content:center;border-radius:8px;padding:.34rem .50rem;font-size:13px}
}
@media (max-width: 720px){
  .tr-primary-nav{width:100%;justify-content:center;padding:0;overflow:visible}
  .tr-primary-menu{width:100%;justify-content:center;gap:4px}
  .tr-primary-menu a{padding:.24rem .34rem;font-size:11px;line-height:1.1;border-radius:6px}
}
@media (max-width: 520px){
  .tr-primary-menu{gap:3px}
  .tr-primary-menu a{font-size:10px;padding:.22rem .26rem;border-radius:5px}
}
@media (max-width: 380px){
  .tr-primary-menu a{font-size:9px;padding:.20rem .20rem}
}