/* TruckNestGear components - base styles for the classes the briefs ask Claude to use.
   Page code adds its own design on top (scoped to .tng-page). The theme can override the tokens below. */
:root {
	--tng-brand: #2E5E4E;      /* Pine */
	--tng-deep: #1B3A31;       /* Deep Forest */
	--tng-ink: #1E2A26;        /* Text */
	--tng-muted: #56645F;      /* Muted text */
	--tng-sand: #F7F4EE;       /* Canvas */
	--tng-mist: #E8F0EC;       /* Light green tint */
	--tng-line: #DCE3DF;
	--tng-cta: #E8A33D;        /* Amber CTA */
	--tng-cta-ink: #2A1B00;
	--tng-good: #1C7A45;
	--tng-bad: #B3261E;
	--tng-radius: 12px;
}

.tng-page { color: var(--tng-ink); line-height: 1.65; overflow-wrap: anywhere; }
.tng-page *, .tng-page *::before, .tng-page *::after { box-sizing: border-box; }
.tng-page img, .tng-page svg { max-width: 100%; height: auto; }
.tng-page h2 { margin: 2.2em 0 .6em; line-height: 1.25; scroll-margin-top: 80px; }
.tng-page h3 { margin: 1.6em 0 .5em; line-height: 1.3; scroll-margin-top: 80px; }
.tng-page a { color: var(--tng-brand); }

/* Breadcrumbs, disclosure, pending links (added by the plugin) */
.tng-breadcrumbs { font-size: .875rem; color: var(--tng-muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.tng-breadcrumbs a { color: var(--tng-brand); text-decoration: none; padding: 6px 0; }
.tng-breadcrumbs a:hover { text-decoration: underline; }
.tng-breadcrumbs .tng-sep { color: var(--tng-line); }
.tng-disclosure { font-size: .8125rem; color: var(--tng-muted); background: var(--tng-sand); border: 1px solid var(--tng-line); border-radius: 8px; padding: 10px 12px; margin: 0 0 20px; }
.tng-pending-link { color: inherit; }

/* Quick answer */
.tng-answer { background: var(--tng-mist); border-left: 4px solid var(--tng-brand); border-radius: var(--tng-radius); padding: 16px 18px; margin: 18px 0 24px; }
.tng-answer > :first-child { margin-top: 0; }
.tng-answer > :last-child { margin-bottom: 0; }

/* Table of contents */
.tng-toc { border: 1px solid var(--tng-line); border-radius: var(--tng-radius); padding: 14px 18px; margin: 20px 0; background: #fff; }
.tng-toc ol, .tng-toc ul { margin: 6px 0 0; padding-left: 1.2em; }
.tng-toc li { margin: 4px 0; }
.tng-toc a { display: inline-block; padding: 4px 0; }

/* Buttons */
.tng-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; background: var(--tng-cta); color: var(--tng-cta-ink) !important; font-weight: 700; text-decoration: none !important; border: 0; line-height: 1.2; text-align: center; }
.tng-btn:hover { filter: brightness(.95); }
.tng-btn:focus-visible { outline: 3px solid var(--tng-deep); outline-offset: 2px; }
.tng-btn--ghost { background: transparent; color: var(--tng-brand) !important; border: 2px solid var(--tng-brand); }

/* Top picks */
.tng-picks { display: grid; gap: 12px; margin: 20px 0; }
.tng-pick { border: 1px solid var(--tng-line); border-radius: var(--tng-radius); padding: 14px 16px; background: #fff; display: grid; gap: 8px; }
.tng-pick .tng-badge, .tng-badge { display: inline-block; width: fit-content; font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--tng-cta); color: var(--tng-cta-ink); border-radius: 999px; padding: 4px 10px; }
@media (min-width: 700px) { .tng-picks { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* Product review */
.tng-product { border: 1px solid var(--tng-line); border-radius: var(--tng-radius); padding: 18px; margin: 24px 0; background: #fff; }
.tng-product > h3:first-child, .tng-product > h2:first-child { margin-top: 0; }
.tng-product .tng-btn { margin-top: 8px; }

/* Tables */
.tng-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; border: 1px solid var(--tng-line); border-radius: var(--tng-radius); }
.tng-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.tng-table th, .tng-table td { padding: 10px 12px; border-bottom: 1px solid var(--tng-line); text-align: left; vertical-align: top; }
.tng-table thead th { background: var(--tng-deep); color: #fff; font-weight: 700; }
.tng-table tbody tr:nth-child(even) { background: var(--tng-sand); }

/* Pros and cons */
.tng-proscons { display: grid; gap: 12px; margin: 16px 0; }
.tng-proscons > * { border-radius: var(--tng-radius); padding: 14px 16px; border: 1px solid var(--tng-line); }
.tng-proscons .tng-pros { background: #EEF7F1; border-color: #CBE5D4; }
.tng-proscons .tng-cons { background: #FBEDEC; border-color: #F1CFCC; }
.tng-proscons h4, .tng-proscons strong:first-child { margin-top: 0; }
.tng-proscons ul { margin: 6px 0 0; padding-left: 1.2em; }
@media (min-width: 640px) { .tng-proscons { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.tng-faq { margin: 16px 0; }
.tng-faq details { border: 1px solid var(--tng-line); border-radius: 10px; padding: 0 16px; margin: 10px 0; background: #fff; }
.tng-faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; list-style: none; }
.tng-faq summary::-webkit-details-marker { display: none; }
.tng-faq summary h3 { margin: 0; font-size: 1rem; }
.tng-faq details[open] summary { border-bottom: 1px solid var(--tng-line); margin-bottom: 10px; }

/* Verdict */
.tng-verdict { background: var(--tng-deep); color: #fff; border-radius: var(--tng-radius); padding: 20px; margin: 28px 0; }
.tng-verdict a:not(.tng-btn) { color: #fff; }
.tng-verdict h2, .tng-verdict h3 { color: #fff; margin-top: 0; }

/* Tip / warning */
.tng-note { border-radius: var(--tng-radius); padding: 14px 16px; margin: 18px 0; background: var(--tng-sand); border: 1px solid var(--tng-line); }
.tng-note--tip { background: #EEF7F1; border-color: #CBE5D4; }
.tng-note--warn { background: #FFF6E5; border-color: #F3D9A4; }
.tng-note > :first-child { margin-top: 0; }
.tng-note > :last-child { margin-bottom: 0; }

/* Steps */
.tng-steps { counter-reset: tngstep; list-style: none; padding: 0; margin: 18px 0; }
.tng-steps > li { counter-increment: tngstep; position: relative; padding: 12px 14px 12px 56px; border: 1px solid var(--tng-line); border-radius: var(--tng-radius); margin: 10px 0; background: #fff; }
.tng-steps > li::before { content: counter(tngstep); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--tng-brand); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Link cards (also used for hub grids) */
.tng-cards { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 640px) { .tng-cards { grid-template-columns: repeat(2, 1fr); } }
.tng-card-link { display: grid; gap: 4px; min-height: 44px; border: 1px solid var(--tng-line); border-radius: var(--tng-radius); padding: 14px 16px; background: #fff; text-decoration: none !important; color: var(--tng-ink) !important; transition: border-color .15s, box-shadow .15s; }
.tng-card-link:hover { border-color: var(--tng-brand); box-shadow: 0 2px 10px rgba(27, 58, 49, .08); }
.tng-card-title { font-weight: 700; color: var(--tng-brand); }
.tng-card-desc { font-size: .875rem; color: var(--tng-muted); }
.tng-children { margin-top: 36px; }

/* Pills */
.tng-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0; }
.tng-pill, .tng-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--tng-mist); color: var(--tng-deep) !important; text-decoration: none !important; font-weight: 600; font-size: .9rem; }

/* Homepage hero */
.tng-hero { background: var(--tng-deep); color: #fff; border-radius: var(--tng-radius); padding: 28px 20px; margin: 0 0 24px; }
.tng-hero h1, .tng-hero h2 { color: #fff; margin: 0 0 10px; line-height: 1.15; }
.tng-hero p { color: #E6EEEA; }

/* Full-width colored band (the TruckNestGear theme stretches it; other themes show it as a box) */
.tng-band { background: var(--tng-sand); border-radius: var(--tng-radius); padding: 20px; margin: 28px 0; }
.tng-no-band { border-radius: var(--tng-radius); }
