/* ============================================================
   TEAM RIP ENGINEERING — STYLESHEET
   Colors matched to original teamrip.com (c.2008-2016)
   Body colors are set via HTML attributes in header.php;
   these classes handle content formatting in the right column.
   ============================================================ */

/* === BASE === */
html {
    font-size: 14px; /* default; overridden per-page by the text-size setting */
}

body {
    background-color: #000000;
    color: #808080;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

a:link    { color: #00C000; text-decoration: underline; }
a:visited { color: #00C000; text-decoration: underline; }
a:hover   { color: red; font-weight: bold; }
a:active  { color: #FF0000; }

img { border: 0; }

/* === PAGE LAYOUT SAFETY === */
.tre-main-table {
    table-layout: fixed;
}

.tre-nav-cell {
    width: 132px;
    min-width: 132px;
    vertical-align: top;
}

.tre-content-cell {
    width: calc(100% - 132px);
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* Prevent future oversized media from blowing out the content column. */
.tre-content-cell img {
    max-width: 100%;
    height: auto;
}

/* === SIDEBAR NAV === */
.tre-sidebar {
    width: 132px;
    min-height: 560px;
    background: linear-gradient(180deg, #120000 0%, #050505 22%, #000000 100%);
    border: 1px solid #2a2a2a;
    box-shadow: inset 0 0 0 1px #080808;
    padding: 8px 8px 10px;
    box-sizing: border-box;
}

.tre-sidebar__brand {
    color: #ff1f1f;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 2px;
}

.tre-sidebar__tag,
.tre-sidebar__section {
    color: #8a8a8a;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tre-sidebar__tag {
    text-align: center;
    margin-bottom: 12px;
}

.tre-sidebar__section {
    margin-top: 12px;
    margin-bottom: 6px;
    padding-top: 8px;
    border-top: 1px solid #202020;
}

.tre-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tre-nav-item {
    margin: 0 0 4px;
}

.tre-nav-item--child {
    padding-left: 10px;
}

.tre-nav-link,
.tre-nav-link:link,
.tre-nav-link:visited {
    display: block;
    padding: 5px 6px;
    color: #ff0000;
    text-decoration: none;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 0.72rem;
    line-height: 1.15;
    border-left: 2px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.tre-nav-link:hover {
    color: #ff2a2a;
    font-weight: bold;
    border-left-color: #ff2a2a;
    background: rgba(255, 0, 0, 0.08);
}

.tre-nav-item.is-active .tre-nav-link {
    color: #ffff00;
    border-left-color: #ffff00;
    background: rgba(255, 255, 0, 0.08);
}

/* === DIVBAR (falls back to CSS if gif missing) === */
.divbar {
    background: url('/images/divbar.gif') repeat-x center;
    background-color: #330000;
    height: 19px;
    margin: 6px 0;
    display: block;
}

/* === PAGE HEADINGS === */
.section-heading {
    text-align: center;
    padding: 4px 0;
}
.section-heading .label,
.page-heading {
    color: #FF0000;
    font-size: 1.43rem;
    font-weight: bold;
    font-family: Tahoma, Arial, sans-serif;
}

h2 {
    color: #FF0000;
    font-size: 1.29rem;
    font-family: Tahoma, Arial, sans-serif;
    margin: 10px 0 4px;
}

h3 {
    color: #00FF00;
    font-size: 1rem;
    font-family: Tahoma, Arial, sans-serif;
    margin: 8px 0 4px;
}

h4 {
    color: #CCCCCC;
    font-size: 0.86rem;
    font-family: Tahoma, Arial, sans-serif;
    margin: 6px 0 2px;
}

p {
    margin-bottom: 8px;
    color: #808080;
}

ul, ol { margin: 6px 0 8px 18px; }
li { margin-bottom: 3px; }

/* === WELCOME BOX (home page) === */
.welcome-box {
    text-align: center;
    padding: 14px 10px;
}

.site-name {
    display: block;
    color: #FF0000;
    font-size: 1.57rem;
    font-weight: bold;
    font-family: Tahoma, Arial, sans-serif;
    margin-bottom: 12px;
}

.tagline {
    color: #C0C0C0;
    font-size: 1rem;
    font-family: Tahoma, Arial, sans-serif;
    margin-bottom: 12px;
}

.notice-link {
    color: #00C000;
    font-size: 0.93rem;
    font-family: Tahoma, Arial, sans-serif;
    display: inline-block;
    margin: 3px 0;
    text-decoration: underline;
}
.notice-link:hover { color: red; font-weight: bold; }

/* === SECTION / CATEGORY HEADINGS === */
.cat-heading {
    color: #00FF00;
    font-size: 1rem;
    font-weight: bold;
    font-family: Tahoma, Arial, sans-serif;
    padding: 6px 0 2px;
    border-bottom: 1px solid #222;
    margin-top: 12px;
}

/* === ITEM ROWS (specials, garage) === */
.item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    border-bottom: 1px solid #111;
}

.item-body { flex: 1; padding-right: 10px; }
.item-title { color: #FFFFFF; font-weight: bold; font-size: 0.86rem; }
.item-desc  { color: #808080; font-size: 0.79rem; margin-top: 2px; }

.item-price {
    color: #FFFF00;
    font-weight: bold;
    font-size: 0.93rem;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* === NOTICE (empty state) === */
.notice {
    color: #808080;
    font-size: 0.86rem;
    padding: 10px;
    border: 1px solid #333;
    margin: 10px 0;
}

/* === GATEWAY LINKS === */
.gateway-link {
    display: block;
    padding: 8px 12px;
    margin: 6px 0;
    border: 1px solid #333;
    color: #00C000;
    text-decoration: none;
    font-size: 0.93rem;
    font-family: Tahoma, Arial, sans-serif;
}
.gateway-link:hover {
    color: red;
    font-weight: bold;
    border-color: #FF0000;
}

/* === FAQ === */
.faq-list dt {
    color: #00FF00;
    font-weight: bold;
    margin-top: 10px;
}
.faq-list dd {
    color: #808080;
    margin-left: 12px;
    margin-bottom: 4px;
}

/* === CONTACT === */
.contact-table {
    border-collapse: collapse;
    width: 100%;
}
.contact-table td {
    padding: 4px 8px;
    vertical-align: top;
    color: #808080;
    border-bottom: 1px solid #111;
}
.contact-table td:first-child {
    color: #00FF00;
    font-weight: bold;
    white-space: nowrap;
    width: 120px;
}
.contact-phone {
    color: #FFFF00;
    font-size: 1.43rem;
    font-weight: bold;
}

/* === SHIPPING === */
.shipping-table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}
.shipping-table th {
    background-color: #111;
    color: #FF0000;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 0.79rem;
    padding: 5px 8px;
    text-align: left;
    border: 1px solid #333;
}
.shipping-table td {
    color: #808080;
    font-size: 0.79rem;
    padding: 4px 8px;
    border: 1px solid #222;
}
.shipping-table .price-col {
    color: #FFFF00;
    font-weight: bold;
    text-align: right;
}

/* === ACCESSORIES === */
.acc-table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}
.acc-table th {
    background-color: #111;
    color: #00FF00;
    font-size: 0.79rem;
    padding: 5px 8px;
    text-align: left;
    border: 1px solid #333;
}
.acc-table td {
    color: #808080;
    font-size: 0.79rem;
    padding: 4px 8px;
    border: 1px solid #1A1A1A;
    vertical-align: top;
}
.acc-table .price-col {
    color: #FFFF00;
    font-weight: bold;
    text-align: right;
}

/* === TECH TIPS === */
.tip-item {
    color: #808080;
    font-size: 0.86rem;
    padding: 4px 0 4px 10px;
    border-left: 2px solid #FF0000;
    margin: 4px 0;
}
.tip-item a { color: #00C000; }

/* === UTILITIES === */
.center { text-align: center; }
.right  { text-align: right; }
.admin-link { color: #333333; font-size: 0.71rem; }

/* === FOOTER CREDIT === */
.footer-credit {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 0.75rem;
    color: #333333;
    text-align: center;
}
.footer-credit a { color: #333333; text-decoration: none; }
.footer-credit a:hover { color: #555; font-weight: normal; }

/* ============================================================
   INLINE FONT-SIZE OVERRIDES
   Pages use hardcoded px in inline styles (e.g. font-size:11px).
   These attribute selectors remap them to rem so the text-size
   setting scales them along with everything else.
   !important is required to beat inline style specificity.
   ============================================================ */
[style*="font-size:9px"],  [style*="font-size: 9px"]  { font-size: 0.64rem !important; }
[style*="font-size:10px"], [style*="font-size: 10px"] { font-size: 0.71rem !important; }
[style*="font-size:11px"], [style*="font-size: 11px"] { font-size: 0.79rem !important; }
[style*="font-size:12px"], [style*="font-size: 12px"] { font-size: 0.86rem !important; }
[style*="font-size:13px"], [style*="font-size: 13px"] { font-size: 0.93rem !important; }
[style*="font-size:14px"], [style*="font-size: 14px"] { font-size: 1rem    !important; }
[style*="font-size:16px"], [style*="font-size: 16px"] { font-size: 1.14rem !important; }
[style*="font-size:18px"], [style*="font-size: 18px"] { font-size: 1.29rem !important; }
[style*="font-size:20px"], [style*="font-size: 20px"] { font-size: 1.43rem !important; }
[style*="font-size:22px"], [style*="font-size: 22px"] { font-size: 1.57rem !important; }
