.rt-pen-page { padding-bottom: 80px; }
.rt-pen-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rt-pen-hero {
    width: 100%;
    padding: 84px 20px 110px;
    margin-bottom: -48px;
    text-align: center;
    color: #fff;
    background-color: #0F1F2E;
    background-image: linear-gradient(to right, rgba(15, 31, 46, .93), rgba(15, 31, 46, .88)), url('/assets/images/banner/banner.webp');
    background-size: cover;
    background-position: center;
}
[data-theme="dark"] .rt-pen-hero {
    background-color: #050505;
    background-image: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .86)), url('/assets/images/banner/banner-dark.webp');
}
.rt-pen-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 16px 6px 8px; border-radius: 30px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; color: #fff; }
.rt-pen-badge img { width: 22px; height: 22px; object-fit: contain; }
.rt-pen-badge:not(:has(img)) { padding-inline-start: 16px; }
.rt-pen-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.3; color: #fff; }
.rt-pen-hero h1 .rt-hl { color: #4ADE80; }
.rt-pen-hero p { max-width: 660px; margin: 0 auto; font-size: 15px; line-height: 1.8; color: #E2E8F0; }

.rt-pen-stats {
    position: relative; z-index: 10;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    max-width: 1000px; margin: 0 auto 26px; padding: 0 20px;
}
.rt-pen-stat {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 18px 12px; text-align: center;
    background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 31, 46, .08);
}
.rt-pen-stat strong { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--rt-accent); }
.rt-pen-stat span { font-size: 12.5px; font-weight: 600; color: var(--rt-text-muted); }

.rt-pen-search { max-width: 700px; margin: 0 auto 28px; padding: 0 20px; }
.rt-pen-search-box {
    display: flex; align-items: center; padding: 6px 18px;
    background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 31, 46, .08); transition: var(--rt-ease, all .3s ease);
}
.rt-pen-search-box:focus-within { border-color: var(--rt-accent); box-shadow: 0 15px 35px rgba(22, 163, 74, .15); }
.rt-pen-search-box i { margin-inline-end: 12px; font-size: 16px; color: var(--rt-accent); }
.rt-pen-search-box input { width: 100%; padding: 10px 5px; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14.5px; color: var(--rt-text-main); }
.rt-pen-search-box input::placeholder { color: var(--rt-text-muted); opacity: 1; }

.rt-pen-quick { max-width: 1000px; margin: 0 auto 30px; padding: 0 20px; }
.rt-pen-quick h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--rt-text-main); }
.rt-pen-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rt-pen-qcard {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: start;
    background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 14px;
    font-family: inherit; color: var(--rt-text-main); cursor: pointer; transition: var(--rt-ease, all .3s ease);
}
.rt-pen-qcard:hover { border-color: var(--rt-accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 163, 74, .12); }
.rt-pen-qcard > i { flex-shrink: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: var(--rt-accent); background: var(--rt-tint); border-radius: 10px; }
.rt-pen-qname { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; }

.rt-pen-tools { max-width: 1000px; margin: 0 auto 16px; padding: 0 20px; }
.rt-pen-cats { display: flex; gap: 10px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rt-pen-cats::-webkit-scrollbar { display: none; }
.rt-pen-cat {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
    background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 30px;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--rt-text-main);
    white-space: nowrap; cursor: pointer; transition: var(--rt-ease, all .3s ease);
}
.rt-pen-cat i { font-size: 13px; color: var(--rt-accent); }
.rt-pen-cat em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; color: var(--rt-accent); background: var(--rt-tint); border-radius: 20px; }
.rt-pen-cat:hover, .rt-pen-cat.active { color: #fff; background: var(--rt-accent); border-color: var(--rt-accent); }
.rt-pen-cat:hover i, .rt-pen-cat.active i { color: #fff; }
.rt-pen-cat:hover em, .rt-pen-cat.active em { color: #fff; background: rgba(255, 255, 255, .22); }

.rt-pen-sortbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rt-pen-count { font-size: 13.5px; color: var(--rt-text-muted); }
.rt-pen-count b { color: var(--rt-text-main); }
.rt-pen-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--rt-text-muted); }
.rt-pen-sel { position: relative; display: inline-flex; }
.rt-pen-sel::after {
    content: ''; position: absolute; inset-inline-end: 16px; top: 50%;
    width: 7px; height: 7px; margin-top: -6px;
    border-inline-end: 2px solid var(--rt-text-muted); border-bottom: 2px solid var(--rt-text-muted);
    transform: rotate(45deg); pointer-events: none;
}
.rt-pen-sort select {
    -webkit-appearance: none; appearance: none;
    padding: 9px 40px 9px 14px; border: 1px solid var(--rt-border); border-radius: 10px;
    background: var(--rt-card-bg); color: var(--rt-text-main); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
[dir="rtl"] .rt-pen-sort select { padding: 9px 14px 9px 40px; }
.rt-pen-sort select:focus { outline: none; border-color: var(--rt-accent); }

.rt-pen-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.rt-pen-card { background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 18px; box-shadow: var(--rt-card-shadow, 0 4px 15px rgba(15, 31, 46, .05)); overflow: hidden; }

.rt-pen-table { width: 100%; border-collapse: collapse; }
.rt-pen-table th, .rt-pen-table td { padding: 14px 16px; text-align: start; vertical-align: middle; font-size: 14px; color: var(--rt-text-main); }
.rt-pen-table thead th { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--rt-text-muted); background: var(--rt-tint); border-bottom: 1px solid var(--rt-border); }
.rt-pen-table tbody tr { border-bottom: 1px solid var(--rt-border); transition: background .2s ease; scroll-margin-top: calc(var(--header-h, 68px) + 70px); }
.rt-pen-table tbody tr:last-child { border-bottom: none; }
.rt-pen-table tbody tr:hover { background: var(--rt-tint); }
.rt-pen-table tbody tr[hidden] { display: none; }
.rt-pen-table tbody tr.rt-pen-flash { animation: rtPenFlash 1.8s ease; }
@keyframes rtPenFlash { 0%, 60% { background: rgba(22, 163, 74, .22); } 100% { background: transparent; } }
.rt-pen-c-no { width: 56px; font-weight: 700; color: var(--rt-text-muted); }
.rt-pen-c-name { font-weight: 700; line-height: 1.5; }
.rt-pen-table code { font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--rt-text-muted); }

.rt-pen-fine { display: inline-block; padding: 5px 12px; border-radius: 30px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.rt-pen-low { color: #15803D; background: rgba(22, 163, 74, .12); }
.rt-pen-mid { color: #B45309; background: rgba(245, 158, 11, .16); }
.rt-pen-high { color: #B91C1C; background: rgba(239, 68, 68, .13); }
.rt-pen-court { color: #6D28D9; background: rgba(124, 58, 237, .12); }
.rt-pen-text { max-width: 340px; padding: 6px 12px; border-radius: 12px; white-space: normal; line-height: 1.4; font-size: 12.5px; font-weight: 700; color: #0369A1; background: rgba(14, 165, 233, .13); }
.rt-pen-twice { color: #0369A1; background: rgba(14, 165, 233, .13); }
[data-theme="dark"] .rt-pen-low { color: #4ADE80; background: rgba(34, 197, 94, .14); }
[data-theme="dark"] .rt-pen-mid { color: #FBBF24; background: rgba(245, 158, 11, .15); }
[data-theme="dark"] .rt-pen-high { color: #F87171; background: rgba(239, 68, 68, .15); }
[data-theme="dark"] .rt-pen-court { color: #C4B5FD; background: rgba(139, 92, 246, .18); }
[data-theme="dark"] .rt-pen-text { color: #7DD3FC; background: rgba(14, 165, 233, .16); }
[data-theme="dark"] .rt-pen-twice { color: #7DD3FC; background: rgba(14, 165, 233, .16); }

.rt-pen-empty { padding: 50px 20px; text-align: center; color: var(--rt-text-muted); }
.rt-pen-empty[hidden] { display: none; }
.rt-pen-empty i { font-size: 40px; margin-bottom: 12px; color: var(--rt-accent); }
.rt-pen-empty p { margin: 0; font-size: 15px; }

.rt-pen-note { margin: 14px 0 4px; font-size: 13px; text-align: center; color: var(--rt-text-muted); }
.rt-pen-disclaimer { margin: 0; font-size: 12.5px; line-height: 1.7; text-align: center; color: var(--rt-text-muted); }
.rt-pen-disclaimer a { color: var(--rt-accent); font-weight: 600; text-decoration: none; }
.rt-pen-disclaimer a:hover { text-decoration: underline; }
.rt-pen-src { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.rt-pen-src img { width: 20px; height: 20px; object-fit: contain; }

.rt-pen-pay { max-width: 1000px; margin: 40px auto 0; padding: 0 20px; }
.rt-pen-pay-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 30px; background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 18px; box-shadow: var(--rt-card-shadow, 0 4px 15px rgba(15, 31, 46, .05)); }
.rt-pen-pay-info { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rt-pen-pay-logo { flex-shrink: 0; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; padding: 6px; background: #fff; border: 1px solid var(--rt-border); border-radius: 16px; }
.rt-pen-pay-logo img { width: 100%; height: 100%; object-fit: contain; }
.rt-pen-pay-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--rt-text-main); }
.rt-pen-pay-card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--rt-text-muted); }

.rt-pen-states { max-width: 1000px; margin: 44px auto 0; padding: 0 20px; }
.rt-pen-states-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rt-pen-states-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--rt-text-main); }
.rt-pen-states-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--rt-accent); cursor: pointer; }
.rt-pen-states-toggle svg { transition: transform .25s ease; }
.rt-pen-states-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.rt-pen-states-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rt-pen-states-extra { margin-top: 14px; }
.rt-pen-states-extra[hidden] { display: none; }
.rt-pen-state {
    display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 16px;
    background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 14px;
    color: var(--rt-text-main); text-decoration: none; transition: var(--rt-ease, all .3s ease);
}
.rt-pen-ico {
    flex-shrink: 0; width: 30px; height: 30px; background: var(--rt-accent);
    -webkit-mask: var(--rt-ico) center / contain no-repeat; mask: var(--rt-ico) center / contain no-repeat;
}
.rt-pen-sname { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-pen-sname.is-wrap { white-space: normal; text-overflow: clip; line-height: 1.2; font-size: 11px; }
.rt-pen-state svg { flex-shrink: 0; color: var(--rt-text-muted); transition: transform .25s ease, color .25s ease; }
[dir="rtl"] .rt-pen-state svg { transform: scaleX(-1); }
.rt-pen-state.is-current { border-color: var(--rt-accent); background: var(--rt-tint); }
.rt-pen-state:hover { border-color: var(--rt-accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 163, 74, .12); }
.rt-pen-state:hover svg { color: var(--rt-accent); }


.rt-pen-cta { max-width: 1000px; margin: 40px auto 0; padding: 0 20px; }
.rt-pen-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 18px; box-shadow: var(--rt-card-shadow, 0 4px 15px rgba(15, 31, 46, .05)); }
.rt-pen-cta-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--rt-text-main); }
.rt-pen-cta-card p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--rt-text-muted); }
.rt-pen-cta-card p a { color: var(--rt-accent); font-weight: 600; text-decoration: none; }
.rt-pen-cta-card p a:hover { text-decoration: underline; }
.rt-pen-btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 12px 24px; border-radius: 30px; background: var(--rt-accent); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: var(--rt-ease, all .3s ease); }
.rt-pen-btn:hover { filter: brightness(.93); transform: translateY(-2px); }

@media (max-width: 1024px) {
    .rt-pen-states-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .rt-pen-pay { margin-top: 32px; padding-inline: 16px; }
    .rt-pen-pay-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
    .rt-pen-pay-info { gap: 14px; }
    .rt-pen-pay-logo { width: 52px; height: 52px; border-radius: 14px; }
    .rt-pen-pay-card h2 { font-size: 17px; }
    .rt-pen-pay-card p { font-size: 13.5px; line-height: 1.6; }
    .rt-pen-pay-card .rt-pen-btn { width: 100%; justify-content: center; }
    .rt-pen-states { margin-top: 36px; padding-inline: 16px; }
    .rt-pen-states-head h2 { font-size: 19px; }
    .rt-pen-states-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .rt-pen-state { gap: 8px; padding: 9px 11px; border-radius: 12px; }
    .rt-pen-ico { width: 24px; height: 24px; }
    .rt-pen-sname { font-size: 13px; }
    .rt-pen-state svg { width: 14px; height: 14px; }
    .rt-pen-hero {
        padding: 56px 16px 90px;
        background-image: linear-gradient(to right, rgba(15, 31, 46, .93), rgba(15, 31, 46, .88)), url('/assets/images/banner/m-light.webp');
    }
    [data-theme="dark"] .rt-pen-hero {
        background-image: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .86)), url('/assets/images/banner/m-dark.webp');
    }
    .rt-pen-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-inline: 16px; }
    .rt-pen-stat { padding: 14px 10px; }
    .rt-pen-stat strong { font-size: 20px; }
    .rt-pen-search, .rt-pen-quick, .rt-pen-tools, .rt-pen-container, .rt-pen-cta { padding-inline: 16px; }

    .rt-pen-quick-grid {
        grid-template-columns: 1fr; gap: 0;
        background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 16px; overflow: hidden;
    }
    .rt-pen-qcard {
        flex-wrap: nowrap; gap: 12px; padding: 11px 14px;
        border: 0; border-bottom: 1px solid var(--rt-border); border-radius: 0; background: transparent;
    }
    .rt-pen-qcard:last-child { border-bottom: 0; }
    .rt-pen-qcard:hover { transform: none; box-shadow: none; background: var(--rt-tint); }
    .rt-pen-qcard > i { width: 34px; height: 34px; font-size: 15px; }
    .rt-pen-qname { flex: 1; min-width: 0; font-size: 14px; }
    .rt-pen-qcard .rt-pen-fine { flex-shrink: 0; padding: 4px 11px; font-size: 12.5px; }

    .rt-pen-sortbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .rt-pen-sort { justify-content: space-between; }
    .rt-pen-sel { flex: 1; max-width: 230px; }
    .rt-pen-sort select { width: 100%; }

    .rt-pen-table, .rt-pen-table tbody { display: block; }
    .rt-pen-table thead { display: none; }
    .rt-pen-table tbody tr {
        display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; row-gap: 10px; align-items: start;
        padding: 16px 16px 16px 14px; scroll-margin-top: calc(var(--header-h, 60px) + 16px);
    }
    .rt-pen-table tbody tr[hidden] { display: none; }
    .rt-pen-table td, .rt-pen-table th { padding: 0; min-width: 0; }
    .rt-pen-fine { max-width: 100%; padding: 5px 10px; font-size: 12px; line-height: 1.25; white-space: normal; text-align: center; }
    .rt-pen-twice { font-size: 11px; letter-spacing: -.1px; }
    .rt-pen-table td.rt-pen-c-no {
        display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: 1px;
        font-size: 12px; font-weight: 800; color: var(--rt-accent); background: var(--rt-tint); border-radius: 50%;
    }
    .rt-pen-table td.rt-pen-c-no::before { content: none; }
    .rt-pen-c-name { grid-column: 2 / -1; font-size: 15px; }
    .rt-pen-table td[data-label="Section"] {
        grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }
    .rt-pen-table td[data-label="Section"]::before { margin-bottom: 0; }
    .rt-pen-table td[data-label="Maximum penalty"] { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .rt-pen-table td[data-label="Maximum penalty"]::before { margin-bottom: 0; flex-shrink: 0; }
    .rt-pen-table td[data-label="Maximum penalty"]:has(.rt-pen-text) { flex-direction: column; align-items: flex-start; gap: 6px; }
    .rt-pen-text { max-width: 100%; font-size: 12px; text-align: start; }
    .rt-pen-table td[data-label="1st offence"] { grid-column: 2; }
    .rt-pen-table td[data-label="Repeat offence"] { grid-column: 3; text-align: end; }
    .rt-pen-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--rt-text-muted); }
    .rt-pen-cta-card { flex-direction: column; align-items: flex-start; padding: 22px; }
    .rt-pen-btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
    .rt-pen-states-grid { grid-template-columns: minmax(0, 1fr); }
    .rt-pen-state { padding: 11px 14px; }
    .rt-pen-sname { font-size: 14px; }
}