/* Texas defensive-driving guide pages (templates/tx-guide-*.php).
   Same tool/content-page system as the VA points calculator: plain centered
   title + grey subtitle, Lora serif content with dashed tinted tables, soft
   blue cards, coral course CTA, blue secondary action. Scoped under .txg. */

/* The site header is position: fixed (114px desktop, 90px at <=768px), so the page
   pads past it; without this the title sits under the header. */
.txg { color: #404040; padding: 126px 0 72px; }
.txg .shell { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.txg .txg-title { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 34px; line-height: 1.2; color: #262626; text-align: center; margin: 16px 0 10px; }
.txg .txg-subtitle { font-size: 17px; color: #6b7280; text-align: center; margin: 0 0 40px; }

/* --- summary card (the answer, above the fold) --- */
.txg .txg-answer { position: relative; background: #EAF8FF; border-radius: 16px; padding: 40px 32px 28px; margin: 0 0 32px; }
.txg .txg-answer-icon { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%; background: #48B0F7; border: 4px solid #fff; display: flex; align-items: center; justify-content: center; }
.txg .txg-answer-title { font-family: "Work Sans", sans-serif; font-weight: 800; font-size: 22px; color: #262626; text-align: center; margin: 0 0 14px; }
.txg .txg-answer p { font-family: "Lora", Georgia, serif; font-size: 17px; line-height: 1.7; margin: 0 0 12px; }
.txg .txg-answer ul { font-family: "Lora", Georgia, serif; font-size: 16.5px; line-height: 1.6; margin: 0 0 12px; padding-left: 22px; }
.txg .txg-answer li { margin: 0 0 8px; }

/* --- content --- */
.txg .txg-content { max-width: 760px; margin: 0 auto; }
.txg .txg-h2 { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.3; color: #262626; margin: 44px 0 16px; }
.txg .txg-h3 { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 19px; color: #262626; margin: 28px 0 10px; }
.txg .txg-content p { font-family: "Lora", Georgia, serif; font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.txg .txg-content ul, .txg .txg-content ol { font-family: "Lora", Georgia, serif; font-size: 17px; line-height: 1.7; margin: 0 0 18px; padding-left: 24px; }
.txg .txg-content li { margin: 0 0 8px; }
.txg .txg-content a { color: #3A8FC8; text-decoration: underline; }
.txg .txg-content a:hover { color: #2f7ab0; }

/* --- steps --- */
.txg .txg-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; }
.txg .txg-steps li { position: relative; padding: 0 0 0 48px; margin: 0 0 18px; }
.txg .txg-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: #48B0F7; color: #fff; font-family: "Work Sans", sans-serif; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.txg .txg-steps strong { font-family: "Work Sans", sans-serif; font-weight: 700; color: #262626; display: block; margin-bottom: 2px; }

/* --- tables --- */
.txg .txg-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.txg .txg-table { width: 100%; border-collapse: collapse; font-family: "Lora", Georgia, serif; font-size: 16px; }
.txg .txg-table th, .txg .txg-table td { border: 1px dashed #c3cdd6; padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.55; }
.txg .txg-table th { font-weight: 700; color: #262626; }
.txg .txg-table td:first-child { font-weight: 700; color: #262626; }
.txg .txg-tint-blue { background: #EFF6FF; }
.txg .txg-tint-green { background: #F0FBF4; }
.txg .txg-tint-amber { background: #FFF8E6; }
.txg .txg-tint-red { background: #FDEEEC; }
.txg .txg-table th.txg-tint-green { color: #2F9E5B; }
.txg .txg-table th.txg-tint-red { color: #c14f44; }
.txg .txg-table th.txg-tint-amber { color: #b07a1c; }
.txg .txg-table th.txg-tint-blue { color: #2b6cb0; }

/* --- callouts --- */
.txg .txg-note { border-radius: 10px; padding: 15px 17px; margin: 0 0 20px; font-family: "Lora", Georgia, serif; font-size: 16px; line-height: 1.6; }
.txg .txg-note strong { font-family: "Work Sans", sans-serif; font-weight: 800; color: #262626; }
.txg .txg-note-ok { background: #F0FBF4; border: 1px solid #9FDDB6; }
.txg .txg-note-warn { background: #FFF9EA; border: 1px solid #F3DA8F; }
.txg .txg-note-bad { background: #FFF3F1; border: 1px solid #FBC0B6; }
.txg .txg-note-info { background: #EFF6FF; border: 1px solid #BFD8F3; }

/* --- ticket check promo (renders only when the tool URL is set) --- */
.txg .txg-check { background: #EAF8FF; border-radius: 14px; padding: 24px 22px; margin: 28px 0; text-align: center; }
.txg .txg-check-lead { font-family: "Lora", Georgia, serif; font-size: 17px; line-height: 1.6; margin: 0 0 14px; color: #262626; }
.txg .txg-check-btn { display: inline-block; background: #3A8FC8; color: #fff; border-radius: 10px; padding: 13px 26px; font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; }
.txg .txg-check-btn:hover { background: #2f7ab0; color: #fff; }
/* .txg .txg-content a (above) outranks .txg .txg-check-btn; restate for buttons inside the content column. */
.txg .txg-content a.txg-check-btn { color: #fff; text-decoration: none; }
.txg .txg-content a.txg-check-btn:hover { color: #fff; }
.txg .txg-check-note { font-size: 13.5px; color: #6b7280; margin: 8px 0 0; }

/* --- course CTA (theme scopes .sign-up-button to page contexts, so restate) --- */
.txg .txg-cta { text-align: center; margin: 40px 0 8px; }
.txg .sign-up-wrap .sign-up-button { display: block; width: 100%; max-width: 560px; background: #FE8B7B; margin: 10px auto; padding: 13px; font-family: "Work Sans", sans-serif; font-style: normal; font-weight: 700; font-size: 18px; line-height: 1.3; color: #fff; text-align: center; border-radius: 10px; text-decoration: none; }
.txg .sign-up-wrap .sign-up-button:hover { background: #F57C6B; color: #fff; }
.txg .txg-cta-note { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 15px; color: #6b7280; margin: 6px 0 0; }

/* --- FAQ --- */
.txg .txg-faq { margin: 36px 0 0; }
.txg .txg-faq-item { border: 1px dashed #c3cdd6; border-radius: 10px; padding: 0 16px; margin: 0 0 10px; background: #fff; }
.txg .txg-faq-item summary { cursor: pointer; font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 16.5px; color: #262626; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.txg .txg-faq-item summary::-webkit-details-marker { display: none; }
.txg .txg-faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 22px; color: #48B0F7; }
.txg .txg-faq-item[open] summary::after { content: "\2212"; }
.txg .txg-faq-a p { font-family: "Lora", Georgia, serif; font-size: 16px; line-height: 1.65; margin: 0 0 14px; }

/* --- related + disclaimer --- */
.txg .txg-related { margin: 40px 0 0; padding: 22px 24px; background: #F7FBFE; border-radius: 12px; }
.txg .txg-related-title { font-family: "Work Sans", sans-serif; font-weight: 800; font-size: 16px; color: #262626; margin: 0 0 10px; }
.txg .txg-related ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.txg .txg-related li { margin: 0 0 8px; break-inside: avoid; font-family: "Lora", Georgia, serif; font-size: 15.5px; }
.txg .txg-related a { color: #3A8FC8; text-decoration: underline; }
.txg .txg-disclaimer { margin: 28px auto 0; font-size: 14px; line-height: 1.6; color: #6b7280; }
.txg .txg-disclaimer strong { color: #404040; }

@media (max-width: 768px) {
	.txg { padding-top: 100px; }
}

@media (max-width: 560px) {
	.txg .txg-title { font-size: 26px; }
	.txg .txg-subtitle { margin-bottom: 32px; }
	.txg .txg-answer { padding: 34px 16px 20px; border-radius: 12px; }
	.txg .txg-h2 { font-size: 23px; }
	.txg .txg-related ul { columns: 1; }
}

/* --- v2 polish (2026-09-15): card grids, seal, CTA panel. Shared by TX + VA guides. --- */
.txg .txg-answer-seal { background: #fff; border: 4px solid #EAF8FF; width: 64px; height: 64px; top: -32px; }
.txg .txg-answer-seal img { width: 52px; height: 52px; object-fit: contain; display: block; }
.txg .txg-answer-seal + .txg-answer-title { margin-top: 6px; }
.txg .txg-kicker { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #12C0C5; margin: 0 0 6px; }
.txg .txg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.txg .txg-cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.txg .txg-card { background: #fff; border: 1px solid #dfe6ec; border-radius: 14px; padding: 20px 20px 18px; box-shadow: 0 6px 22px rgba(38, 38, 38, .05); margin: 0; }
.txg .txg-card-icon { width: 42px; height: 42px; border-radius: 50%; background: #EAF8FF; color: #3A8FC8; display: flex; align-items: center; justify-content: center; margin: 0 0 12px; }
.txg .txg-card-icon svg { width: 22px; height: 22px; }
.txg .txg-card-num { width: 36px; height: 36px; border-radius: 50%; background: #48B0F7; color: #fff; font-family: "Work Sans", sans-serif; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; margin: 0 0 12px; }
.txg .txg-card-title { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; color: #262626; margin: 0 0 8px; }
.txg .txg-card p, .txg .txg-content .txg-card p { font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; }
.txg .txg-card p:last-child, .txg .txg-content .txg-card p:last-child { margin-bottom: 0; }
.txg .txg-card-meta { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 13.5px; color: #3A8FC8; margin: 0 0 8px; }
.txg .txg-cta-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; background: #EAF8FF; border-radius: 16px; padding: 26px 28px; margin: 40px 0 8px; }
.txg .txg-cta-panel img { width: 84px; height: 84px; object-fit: contain; flex: 0 0 auto; }
.txg .txg-cta-panel-body { flex: 1 1 320px; }
.txg .txg-cta-panel-title { font-family: "Work Sans", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; color: #262626; margin: 0 0 6px; }
.txg .txg-cta-panel p, .txg .txg-content .txg-cta-panel p { font-size: 15.5px; line-height: 1.55; margin: 0 0 14px; }
.txg .txg-cta-panel .sign-up-wrap .sign-up-button { margin: 0; max-width: 460px; }
.txg .txg-cta-panel .txg-cta-note { text-align: left; margin-top: 8px; }
.txg .txg-related-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; columns: auto; }
.txg .txg-related-cards li { margin: 0; }
.txg .txg-related-cards a { display: block; background: #fff; border: 1px dashed #c3cdd6; border-radius: 10px; padding: 13px 15px; text-decoration: none; color: #262626; font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; }
.txg .txg-related-cards a:hover { border-style: solid; border-color: #48B0F7; color: #3A8FC8; }
.txg .txg-content .txg-related-cards a { color: #262626; text-decoration: none; }
.txg .txg-content .txg-related-cards a:hover { color: #3A8FC8; }
@media (max-width: 560px) {
	.txg .txg-cta-panel { padding: 20px 18px; }
	.txg .txg-cta-panel img { width: 64px; height: 64px; }
}
/* .txg .txg-content p (Lora) outranks the single-class card rules; restate the Work Sans labels. */
.txg .txg-content p.txg-card-title { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.txg .txg-content p.txg-card-meta { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 13.5px; color: #3A8FC8; margin: 0 0 8px; }
.txg .txg-content p.txg-kicker { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #12C0C5; margin: 0 0 6px; }
.txg .txg-content p.txg-cta-panel-title { font-family: "Work Sans", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.txg .txg-answer p.txg-card-title { font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.txg .txg-answer .txg-card p { font-size: 15.5px; line-height: 1.6; margin: 0; }
.txg .txg-answer .txg-cards { margin-bottom: 18px; }
/* Tables: keep the name column from eating the row. */
.txg .txg-table th:first-child, .txg .txg-table td:first-child { width: 27%; }
.txg .txg-answer p.txg-answer-title { font-family: "Work Sans", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; text-align: center; margin: 0 0 14px; }

/* --- TX court pages (templates/tx-court.php, includes/tx-courts.php), 2026-10-06 --- */
/* Lists nested inside a numbered step: plain bullets, no step circle, no counter. */
.txg .txg-steps ul { list-style: disc; margin: 8px 0 0; padding-left: 20px; }
.txg .txg-steps ul li { padding: 0; margin: 0 0 6px; }
.txg .txg-steps ul li::before { content: none; counter-increment: none; }
.txg .txg-court-notes li { margin: 0 0 10px; }
.txg .txg-court-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 0; margin: 0 0 24px; }
.txg .txg-court-links li { margin: 0; }
.txg .txg-content .txg-court-links a { display: inline-block; background: #fff; border: 1px dashed #c3cdd6; border-radius: 10px; padding: 11px 15px; font-family: "Work Sans", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; color: #262626; text-decoration: none; }
.txg .txg-content .txg-court-links a:hover { border-style: solid; border-color: #48B0F7; color: #3A8FC8; }
.txg .txg-content .txg-court-meta { margin: 32px 0 20px; font-family: "Lora", Georgia, serif; font-size: 14px; line-height: 1.6; color: #6b7280; }
.txg .txg-content .txg-court-meta ul { font-size: 13.5px; line-height: 1.5; margin: 6px 0 0; padding-left: 20px; }
.txg .txg-content .txg-court-meta li { margin: 0 0 4px; overflow-wrap: anywhere; }
.txg .txg-content .txg-court-meta a { color: #6b7280; }
