/*
Theme Name: Auto RTO Codes
Theme URI: https://autortocodes.com
Description: Every Indian RTO code with its office, state code lists, a number plate decoder and number plate guides. Asphalt, highway yellow and number plate white.
Version: 1.0.0
Text Domain: autortocodes
*/
@font-face { font-family: "Saira"; src: url(assets/fonts/saira-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Saira"; src: url(assets/fonts/saira-condensed-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "RHT"; src: url(assets/fonts/red-hat-text-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "RHT"; src: url(assets/fonts/red-hat-text-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "RHT"; src: url(assets/fonts/red-hat-text-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "RHM"; src: url(assets/fonts/red-hat-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "RHM"; src: url(assets/fonts/red-hat-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--asph: #1c1f24; --asph-2: #2a2e35; --asph-3: #3a3f48; --yel: #ffc21a; --yel-l: #fff3cc; --ind: #1f4fbf; --grn: #1f9d55; --red: #d9412b;
	--ink: #16181c; --ink-2: #33373f; --mute: #646a75; --line: #dfe1dc; --bg: #f3f4f1; --card: #fff;
	--head: "Saira", "Arial Narrow", sans-serif; --sans: "RHT", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "RHM", ui-monospace, Menlo, monospace;
	--r: 18px; --shadow: 0 1px 2px rgba(22, 24, 28, .06), 0 16px 36px -20px rgba(22, 24, 28, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ind); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; }
.rc-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.rc-skip { position: absolute; left: -999px; } .rc-skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 60; }
.rc-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rc-lane { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--yel) 0 46px, transparent 46px 82px); opacity: .9; }

/* number plate */
.rc-plate { display: inline-flex; align-items: stretch; background: #fff; border: 3px solid #111; border-radius: 10px; overflow: hidden; color: #111; font: 800 1.6rem/1 var(--head); letter-spacing: .04em; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.rc-plate b, .rc-plate em { font-style: normal; padding: 8px 6px; display: flex; align-items: center; }
.rc-plate b:first-of-type { padding-left: 10px; }
.rc-plate em:last-child, .rc-plate b:last-child { padding-right: 12px; }
.rc-plate em { color: #9aa0a8; }
.rc-ind { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; background: var(--ind); color: #fff; font: 700 .55rem/1 var(--sans); letter-spacing: .08em; padding: 6px 5px; min-width: 24px; }
.rc-ind i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; display: block; }
.rc-plate-big { font-size: clamp(2.2rem, 6vw, 4rem); border-width: 4px; border-radius: 14px; transform: rotate(-2deg); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .7); }
.rc-plate-big .rc-ind { font-size: .7rem; min-width: 34px; padding: 10px 7px; }
.rc-plate-big .rc-ind i { width: 14px; height: 14px; }
.rc-plate-sm { flex-shrink: 0; white-space: nowrap; font-size: 1.3rem; border-width: 2px; border-radius: 7px; }
.rc-plate-sm .rc-ind { min-width: 14px; padding: 4px; } .rc-plate-sm .rc-ind i { width: 6px; height: 6px; border-width: 1px; }
.rc-plate-sm b { padding: 5px 4px; }
.rc-plate-live { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: 4px 0 14px; }
.rc-plate-live em { color: #111; }

/* ------------------------------------------------------------ header */
.rc-top { background: var(--asph); position: sticky; top: 0; z-index: 40; border-bottom: 3px solid var(--yel); }
.rc-top-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.rc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 800 1.45rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.rc-logo img { width: 38px; height: 38px; }
.rc-nav { display: flex; gap: 2px; margin-left: auto; }
.rc-nav a { color: #d7dae0; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.rc-nav a:hover { background: var(--asph-2); color: var(--yel); }
.rc-menu { position: relative; }
.rc-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; background: var(--yel); display: grid; place-content: center; gap: 4px; }
.rc-menu summary::-webkit-details-marker { display: none; }
.rc-menu summary span { display: block; width: 18px; height: 2px; background: var(--asph); border-radius: 2px; }
.rc-menu-panel { position: absolute; right: 0; top: 54px; width: min(820px, 94vw); background: #fff; border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); padding: 22px; display: grid; grid-template-columns: 2fr 1fr; gap: 20px; max-height: 80vh; overflow: auto; }
.rc-menu-states { columns: 3; column-gap: 14px; }
.rc-menu-panel p { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 800 .9rem/1.3 var(--head); text-transform: uppercase; color: var(--asph); column-span: all; }
.rc-menu-panel a { display: block; padding: 3px 0; color: var(--ink); text-decoration: none; font-size: .92rem; break-inside: avoid; }
.rc-menu-panel a:hover { color: var(--ind); }

/* --------------------------------------------------------------- hero */
.rc-hero { position: relative; overflow: hidden; background: var(--asph); color: #e6e8ec; }
.rc-road { position: absolute; inset: 0; pointer-events: none; background:
	linear-gradient(90deg, transparent 5%, var(--yel) 5%, var(--yel) calc(5% + 6px), transparent calc(5% + 6px), transparent calc(95% - 6px), var(--yel) calc(95% - 6px), var(--yel) 95%, transparent 95%) center / 100% 70px,
	radial-gradient(1100px 500px at 50% -10%, #3a3f48, transparent 70%); opacity: .5; -webkit-mask: repeating-linear-gradient(180deg, #000 0 44px, transparent 44px 80px); mask: repeating-linear-gradient(180deg, #000 0 44px, transparent 44px 80px); }
.rc-hero-in { position: relative; text-align: center; padding: 60px 0 64px; display: flex; flex-direction: column; align-items: center; }
.rc-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .9rem; color: #c9ccd3; background: var(--asph-2); border: 1px solid var(--asph-3); border-radius: 999px; padding: 5px 14px 5px 5px; }
.rc-kicker span { background: var(--yel); color: var(--asph); font-weight: 700; border-radius: 999px; padding: 2px 10px; font-size: .78rem; }
.rc-hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 0 0 14px; max-width: 16ch; }
.rc-hero h1 em { font-style: normal; color: var(--yel); }
.rc-lead { font-size: 1.12rem; color: #c9ccd3; max-width: 38em; margin: 0 0 28px; }
.rc-hero-tool { width: min(680px, 100%); text-align: left; }
.rc-proof { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.rc-proof li { color: #a9aeb8; font-size: .92rem; }
.rc-proof b { display: block; font: 800 1.8rem/1.1 var(--head); color: var(--yel); }

/* --------------------------------------------------------------- tool */
.rc-tool { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 24px 0; }
.rc-tool-hero { margin: 0; border: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); border-top: 6px solid var(--yel); }
.rc-lab { display: block; font: 800 .9rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--asph); margin: 0 0 10px; }
.rc-tool input { width: 100%; font: 700 1.7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px; border: 3px solid var(--asph); border-radius: 12px; background: var(--yel-l); color: var(--ink); min-width: 0; }
.rc-tool input:focus { outline: 3px solid var(--yel); outline-offset: 2px; }
.rc-out { margin-top: 16px; }
.rc-out dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.rc-out dl div { background: var(--bg); border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--yel); }
.rc-out dt { font-size: .74rem; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.rc-out dd { margin: 2px 0 0; font-weight: 700; font-size: 1.02rem; }
.rc-more { margin: 14px 0 0 !important; }
.rc-more a { display: inline-flex; align-items: center; gap: 8px; background: var(--asph); color: var(--yel); text-decoration: none; font: 800 1.05rem var(--head); text-transform: uppercase; padding: 10px 18px; border-radius: 10px; }
.rc-more a::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.rc-sm { margin: 8px 0 0 !important; font-size: .9rem; color: var(--mute) !important; }
.rc-err { margin: 0 !important; color: #a3271b !important; }
.rc-fine { margin: 12px 0 0 !important; font-size: .8rem; color: var(--mute) !important; }

/* ------------------------------------------------------------ sections */
.rc-sec { padding: 70px 0; position: relative; }
.rc-sec-tint { background: #e9ebe6; }
.rc-sec-dark { background: var(--asph); color: #d7dae0; overflow: hidden; }
.rc-sec-head { max-width: 760px; margin: 0 0 28px; }
.rc-sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; }
.rc-sec-dark .rc-sec-head h2 { color: #fff; }
.rc-sec-head p { margin: 0; color: var(--mute); }
.rc-sec-dark .rc-sec-head p { color: #a9aeb8; }
.rc-codegrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rc-codegrid a { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; height: 100%; }
.rc-codegrid a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rc-cg-o { font-size: .9rem; color: var(--ink-2); line-height: 1.35; }
.rc-states { list-style: none; margin: 0; padding: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rc-states a { display: flex; align-items: center; gap: 12px; background: var(--asph-2); border: 1px solid var(--asph-3); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: #e6e8ec; }
.rc-states a:hover { border-color: var(--yel); }
.rc-states b { font: 800 1.35rem/1 var(--head); background: #fff; color: #111; border-radius: 6px; padding: 4px 8px; border: 2px solid #111; min-width: 46px; text-align: center; }
.rc-states span { font-size: .93rem; }
.rc-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.rc-guides a { display: flex; flex-direction: column; gap: 6px; height: 100%; background: #fff; border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); border-top: 5px solid var(--yel); box-shadow: var(--shadow); }
.rc-guides .rc-ic { width: 28px; height: 28px; color: var(--ind); }
.rc-guides b { font: 800 1.35rem/1.05 var(--head); text-transform: uppercase; }
.rc-guides span { font-size: .92rem; color: var(--mute); }
.rc-home-copy { max-width: 860px; }

/* -------------------------------------------------------------- pages */
.rc-band { position: relative; overflow: hidden; background: var(--asph); color: #d7dae0; }
.rc-band-in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 30px 0 40px; }
.rc-band-plain { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.rc-band-plain .rc-lane { display: none; }
.rc-band-plain h1 { color: var(--ink) !important; }
.rc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #9aa0a8; margin-bottom: 10px; }
.rc-crumbs a { color: #d7dae0; text-decoration: none; }
.rc-band-plain .rc-crumbs, .rc-band-plain .rc-crumbs a { color: var(--mute); }
.rc-band h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 12px; max-width: 20ch; }
.rc-sub { margin: 0 0 14px; color: #c9ccd3; max-width: 44em; font-size: 1.05rem; }
.rc-answer { display: inline-block; margin: 0 0 14px; background: var(--yel); color: var(--asph); font-weight: 700; font-size: 1.08rem; padding: 10px 16px; border-radius: 10px; max-width: 46em; }
.rc-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-tags li { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #c9ccd3; background: var(--asph-2); border: 1px solid var(--asph-3); padding: 5px 12px; border-radius: 999px; }
.rc-tags .rc-ic { width: 16px; height: 16px; color: var(--yel); }
.rc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; padding: 34px 0 70px; align-items: start; }
.rc-layout-one { grid-template-columns: minmax(0, 860px); justify-content: center; }
.rc-plain-h1 { font-size: 2.4rem; }
.rc-prose { background: #fff; border-radius: var(--r); padding: 34px 40px; box-shadow: var(--shadow); }
.rc-prose > :first-child { margin-top: 0; }
.rc-prose h2 { font-size: 1.9rem; margin: 36px 0 12px; }
.rc-prose h3 { font-size: 1.35rem; margin: 24px 0 8px; }
.rc-prose p, .rc-prose li { color: var(--ink-2); }
.rc-prose li { margin: 4px 0; }
.rc-prose li::marker { color: var(--yel); }
.rc-prose strong { color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 18px 0; border-radius: 12px; border: 1px solid var(--line); }
.rc-prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.rc-prose thead th { background: var(--asph); color: #fff; text-align: left; font: 800 1rem var(--head); text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; }
.rc-prose tbody th { text-align: left; font-weight: 700; color: var(--mute); font-size: .86rem; width: 34%; padding: 10px 14px; border-top: 1px solid var(--line); background: #f8f8f6; vertical-align: top; }
.rc-prose td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.rc-prose tbody tr:first-child th, .rc-prose tbody tr:first-child td { border-top: 0; }
.rc-prose td:first-child a { font: 700 .95rem var(--mono); text-decoration: none; background: var(--yel-l); padding: 2px 6px; border-radius: 5px; color: var(--ink); white-space: nowrap; }
.rc-check { margin: 22px 0 0 !important; padding: 14px 18px; border-radius: 12px; background: var(--yel-l); border-left: 5px solid var(--yel); font-size: .93rem; }
.rc-faq { margin-top: 24px; background: #fff; border-radius: var(--r); padding: 26px 34px; box-shadow: var(--shadow); }
.rc-faq h2 { margin: 0 0 10px; font-size: 1.7rem; }
.rc-faq details { border-top: 1px solid var(--line); }
.rc-faq summary { cursor: pointer; padding: 14px 30px 14px 0; font-weight: 700; list-style: none; position: relative; }
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font: 800 1.5rem var(--head); color: var(--asph); }
.rc-faq details[open] summary::after { content: "\2212"; }
.rc-faq details p { margin: 0 0 16px; color: var(--ink-2); }
.rc-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.rc-side-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.rc-side-card > p { margin: 0 0 10px; font: 800 1rem/1 var(--head); text-transform: uppercase; color: var(--asph); }
.rc-rel a { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.rc-rel a:hover { color: var(--ind); }
.rc-side-tools a { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--ink); }
.rc-side-tools a .rc-ic { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--yel); color: var(--asph); }
.rc-side-tools span { display: flex; flex-direction: column; font-size: .82rem; color: var(--mute); }
.rc-side-tools b { color: var(--ink); font-size: .95rem; }
.rc-ad { margin: 26px 0; text-align: center; }

/* --------------------------------------------------------------- footer */
.rc-foot { position: relative; background: var(--asph); color: #a9aeb8; padding: 56px 0 26px; }
.rc-foot .rc-lane { top: 0; bottom: auto; }
.rc-foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.rc-foot-brand p { margin: 14px 0 0; max-width: 34em; font-size: .93rem; }
.rc-foot-col p { margin: 0 0 10px; color: var(--yel); font: 800 1rem/1 var(--head); text-transform: uppercase; }
.rc-foot-col a { display: block; color: #e6e8ec; text-decoration: none; padding: 3px 0; font-size: .95rem; }
.rc-foot-col a:hover { color: var(--yel); }
.rc-copy { border-top: 1px solid var(--asph-3); margin: 30px 0 0; padding-top: 16px; font-size: .84rem; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1080px) { .rc-layout { grid-template-columns: minmax(0, 1fr); } .rc-side { position: static; } }
@media (max-width: 900px) { .rc-nav { display: none; } .rc-menu { margin-left: auto; } .rc-band-in { grid-template-columns: minmax(0, 1fr); } .rc-plate-big { justify-self: start; transform: none; } }
@media (max-width: 680px) {
	.rc-menu-panel { grid-template-columns: 1fr; position: fixed; left: 12px; right: 12px; top: 70px; width: auto; }
	.rc-menu-states { columns: 2; }
	.rc-tool { padding: 16px; } .rc-tool input { font-size: 1.3rem; }
	.rc-prose { padding: 22px 18px; } .rc-faq { padding: 20px 18px; }
	.rc-sec { padding: 50px 0; }
	.rc-foot-in { grid-template-columns: minmax(0, 1fr); }
	.rc-logo { font-size: 1.2rem; } .rc-logo img { width: 32px; height: 32px; }
	.rc-prose tbody th { width: auto; }
	.rc-plate-big { font-size: 2rem; }
	.rc-codegrid { grid-template-columns: minmax(0, 1fr); }
}
@media print { .rc-top, .rc-foot, .rc-side, .rc-ad, .rc-tool { display: none !important; } .rc-band { background: #fff; color: #000; } .rc-band h1 { color: #000; } }
