/* ==========================================================================
   AnfaCars v2: content pages (blog, blog post, FAQ, terms, privacy, login,
   forgot / reset password, dashboard, 404). Loaded with $abc_page['css'] = ['v2-content'].
   Logical properties only (RTL). Prefix: ct-
   ========================================================================== */

/* ---------- shared bits ---------- */
.ct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0; font-size: 15px; color: var(--slate); }
.ct-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.ct-meta .ic { width: 18px; height: 18px; }
.ct-meta-light { margin-top: 24px; color: rgba(255, 255, 255, .85); }

/* ---------- blog list ---------- */
/* blog list (bl-) */
.bl-head { background: var(--mist); padding-block: 32px 40px; }
@media (min-width: 1024px) { .bl-head { padding-block: 48px 56px; } }
.bl-head .crumbs { margin-bottom: 24px; }
.bl-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: var(--lh-heading); letter-spacing: -.02em; margin: 0; max-width: 20ch; }
.bl-lede { margin: 18px 0 0; font-size: 19px; color: var(--slate); max-width: 72ch; }
.bl-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.bl-chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--hair); background: #fff; color: var(--night); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.bl-chip:hover { border-color: var(--night); }
.bl-chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.bl-list { padding-block: 40px 72px; }
@media (min-width: 1024px) { .bl-list { padding-block: 56px 96px; } }
.bl-tag { display: inline-flex; align-self: flex-start; padding: 5px 14px; border-radius: 999px; background: var(--mist); color: var(--blue); font-size: 14px; font-weight: 500; line-height: 1.3; }
.bl-excerpt { color: var(--slate); margin: 0; }
.bl-feature { display: grid; gap: 24px; align-items: center; margin-bottom: 48px; }
.bl-feature-img, .bl-card-img { display: block; border-radius: 24px; overflow: hidden; background: var(--mist); aspect-ratio: 16 / 10; }
.bl-feature-img img, .bl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.bl-feature-body h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.bl-feature-body h2 a { color: var(--night); text-decoration: none; }
.bl-feature-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bl-feature-body .bl-excerpt { font-size: 18px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-feature-body .btn { margin-top: 8px; }
@media (min-width: 900px) {
  .bl-feature { grid-template-columns: 58fr 42fr; gap: 56px; }
}
.bl-grid { display: grid; gap: 32px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } }
.bl-card { position: relative; display: flex; flex-direction: column; gap: 20px; transition: transform .2s ease; }
.bl-card:hover { transform: translateY(-2px); }
.bl-card-img { border-radius: 20px; }
.bl-card-img img { transition: transform .35s ease; }
.bl-card:hover .bl-card-img img { transform: scale(1.03); }
.bl-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.bl-card h3 { font-size: 22px; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card h3 a { color: var(--night); text-decoration: none; }
.bl-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; z-index: 1; }
.bl-card h3 a:focus-visible { outline: none; }
.bl-card h3 a:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 4px; }
.bl-card .bl-excerpt { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card .ct-meta { margin-top: 2px; }
.bl-cta { background: var(--night); color: #fff; border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.bl-cta h3 { color: #fff; font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.bl-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 16px; }
.bl-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bl-cta.is-solo { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 40px; }
.bl-cta.is-solo .bl-cta-text { max-width: 56ch; }
.bl-none { margin: 32px 0 0; color: var(--slate); font-size: 18px; }
@media (min-width: 640px) and (max-width: 1023px) { .bl-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; } .bl-cta-text { max-width: 48ch; } }
.bl-card[hidden], .bl-feature[hidden], .bl-cta[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-card-img img { transition: none; }
  .bl-card:hover { transform: none; }
  .bl-card:hover .bl-card-img img { transform: none; }
}

/* ---------- blog post (bp-) ---------- */
.bp-head { background: var(--mist); padding-block: 32px 48px; }
@media (min-width: 1024px) { .bp-head { padding-block: 48px 64px; } }
.bp-head .crumbs { margin-bottom: 28px; }
.bp-crumb-current { min-width: 0; max-width: 100%; }
.bp-crumb-current > span { display: block; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-topic { margin-bottom: 16px; }
.bp-head h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -.02em; margin: 0; max-width: 22ch; overflow-wrap: anywhere; }
.bp-meta { margin-top: 24px; font-size: 16px; }
.bp-hero { width: 100%; max-width: 1100px; margin: 40px auto 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #fff; }
.bp-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-body { padding-block: 48px 72px; }
.bp-layout { display: grid; gap: 40px; align-items: start; }
.bp-main { min-width: 0; max-width: 720px; }
.bp-aside { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (min-width: 1024px) {
  .bp-body { padding-block: 64px 96px; }
  .bp-layout { grid-template-columns: minmax(0, 720px) 260px; justify-content: center; gap: 48px; }
  .bp-aside { position: sticky; top: calc(var(--header-h) + 24px); gap: 20px; }
}
@media (min-width: 1280px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 720px) 300px; }
  .bp-main { grid-column: 2; }
  .bp-aside { grid-column: 3; }
}
.bp-prose { font-size: 18px; line-height: 1.75; max-width: none; }
.bp-prose h2 { font-size: 28px; line-height: 1.25; margin: 48px 0 16px; }
.bp-prose h3 { font-size: 22px; line-height: 1.3; margin: 36px 0 12px; }
.bp-prose p { margin: 0 0 1.2em; }
.bp-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.bp-prose ul { list-style: none; padding-inline-start: 0; }
.bp-prose ul li { position: relative; padding-inline-start: 26px; }
.bp-prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.bp-prose ol { padding-inline-start: 1.5em; }
.bp-prose ol li::marker { color: var(--blue); font-weight: 600; }
.bp-prose blockquote { margin: 2em 0; padding: 4px 0; padding-inline: 24px 0; border-inline-start: 4px solid var(--blue); font-style: normal; font-size: 22px; line-height: 1.5; color: var(--night); }
.bp-prose img { display: block; width: 100%; height: auto; border-radius: var(--r-md); margin: 2em 0; }
.bp-prose figure { margin: 2em 0; }
.bp-prose figure img { margin: 0; }
.bp-prose figcaption { margin-top: 12px; font-size: 14px; color: var(--slate); }
.bp-prose table { display: block; overflow-x: auto; max-width: 100%; }
.bp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; }
.bp-share h2 { font-size: 18px; line-height: 1.3; letter-spacing: 0; margin: 0 0 14px; }
.bp-share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding-inline: 20px; border-radius: 999px; border: 1.5px solid var(--hair); background: #fff; color: var(--night); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; }
.bp-share-btn:hover { border-color: var(--night); }
.bp-share-btn .ic { width: 20px; height: 20px; }
@media (min-width: 1024px) {
  .bp-share-btns { flex-direction: row; }
  .bp-share-btn { width: 48px; padding: 0; }
  .bp-share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.bp-plan { padding: 28px; gap: 22px; }
.bp-plan h3 { font-size: 22px; }
.bp-plan .bl-cta-actions { flex-direction: column; align-items: stretch; }
.bp-plan .bl-cta-actions .btn { width: 100%; }
.bp-plan .wa-round { width: 100%; height: auto; min-height: 52px; border-radius: 999px; background: transparent; border: 1.5px solid rgba(255, 255, 255, .4); gap: 10px; font-weight: 600; font-size: 16px; }
.bp-plan .wa-round:hover { background: rgba(255, 255, 255, .14); }
.bp-cars { padding-block: 64px; }
.bp-related { padding-block: 64px 88px; }
.bp-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.bp-head-row h2 { margin: 0; }
.bp-cars-grid { display: grid; gap: 32px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bp-cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bp-cars-grid { grid-template-columns: repeat(3, 1fr); } }
.bp-cars-grid .car-card { min-width: 0; }
.bp-related-grid.is-n1 { grid-template-columns: minmax(0, 420px); }
@media (min-width: 640px) { .bp-related-grid.is-n2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bp-related-grid.is-n2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; } }

/* ---------- FAQ (fq-) ---------- */
.fq-head { background: #fff; }
.fq-search { position: relative; max-width: 680px; margin-top: 32px; }
.fq-search > .ic { position: absolute; inset-inline-start: 22px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--slate); pointer-events: none; }
.fq-search-input { display: block; width: 100%; min-height: 60px; border: 1.5px solid var(--hair); border-radius: 999px; background: var(--mist); color: var(--night); padding-block: 0; padding-inline: 56px 60px; font: inherit; font-size: 17px; }
.fq-search-input::placeholder { color: var(--slate); opacity: 1; }
.fq-search-input::-webkit-search-cancel-button { display: none; }
.fq-search-input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; background: #fff; }
.fq-search-clear { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--night); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fq-search-clear:hover { background: var(--hair); }
.fq-search-clear:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fq-search-clear[hidden] { display: none; }
.fq-search-clear .ic { width: 18px; height: 18px; }
.fq-count { margin: 14px 0 0; font-size: 15px; color: var(--slate); }
.fq-topics { margin-top: 20px; }
.fq-body { padding-block: 40px 72px; }
@media (min-width: 1024px) { .fq-body { padding-block: 56px 96px; } }
.fq-layout { display: grid; gap: 32px; align-items: start; }
.fq-main { min-width: 0; }
.fq-list { display: flex; flex-direction: column; gap: 14px; }
.fq-item { background: #fff; border: 1px solid rgba(11, 31, 58, .06); border-radius: var(--r-md); scroll-margin-top: calc(var(--header-h) + 24px); }
.fq-item[hidden] { display: none; }
.fq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; border-radius: var(--r-md); font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--night); }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fq-ic { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); }
.fq-ic::before, .fq-ic::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--blue); transition: transform .2s ease; }
.fq-ic::after { transform: rotate(90deg); }
.fq-item[open] .fq-ic::after { transform: rotate(0deg); }
.fq-answer { padding: 0 24px 24px; padding-inline-end: 76px; color: var(--slate); font-size: 17px; line-height: 1.7; }
.fq-answer p { margin: 0; max-width: 68ch; }
.fq-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fq-popular { background: #fff; border: 1px solid rgba(11, 31, 58, .06); border-radius: var(--r-md); padding: 24px; }
.fq-popular h2 { font-size: 18px; line-height: 1.3; letter-spacing: 0; margin: 0 0 12px; }
.fq-popular ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fq-popular a { display: block; padding: 8px 0; color: var(--night); text-decoration: none; font-size: 15px; line-height: 1.4; }
.fq-popular a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.fq-help { background: var(--night); color: #fff; border-radius: var(--r); padding: 28px; }
.fq-help h2 { color: #fff; font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.fq-help p { margin: 0 0 22px; color: rgba(255, 255, 255, .85); font-size: 16px; }
.fq-help .btn { width: 100%; }
.fq-contact { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fq-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: #fff; text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.fq-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fq-contact .ic { width: 18px; height: 18px; flex: none; color: var(--sky); }
@media (min-width: 1024px) {
  .fq-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
  .fq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 639.98px) {
  .fq-item summary { padding: 18px 18px; font-size: 18px; }
  .fq-answer { padding: 0 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .fq-ic::before, .fq-ic::after { transition: none; } }

/* ---------- legal pages ---------- */
.ct-updated { margin: 16px 0 0; font-size: 15px; color: rgba(255, 255, 255, .8); }
.ct-legal { display: grid; gap: 32px; }
.ct-toc { border: 1px solid var(--hair); border-radius: var(--r-md); background: #fff; }
.ct-toc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 600; border-radius: var(--r-md); }
.ct-toc > summary::-webkit-details-marker { display: none; }
.ct-toc > summary > span { flex: 1; }
.ct-toc > summary .ic:last-child { transition: transform .2s; }
.ct-toc[open] > summary .ic:last-child { transform: rotate(180deg); }
.ct-toc ol { list-style: none; margin: 0; padding: 0 12px 14px; }
.ct-toc li a { display: block; padding: 9px 12px; border-radius: 12px; color: var(--night); text-decoration: none; font-size: 15px; line-height: 1.4; }
.ct-toc li a:hover { background: var(--mist); }
.ct-toc li a[aria-current="true"] { background: var(--mist); font-weight: 600; color: var(--blue); }
.ct-legal-main { min-width: 0; }
.ct-legal .prose { max-width: 76ch; }
.ct-legal .prose h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; letter-spacing: 0; margin-block: 2em .55em; }
.ct-legal-section:first-child h2 { margin-top: 0; }
.ct-callout { margin-top: 56px; max-width: 76ch; }
.ct-callout .tile-title { margin-bottom: 10px; }
.ct-callout-links { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; }
.ct-callout-links a { font-weight: 600; }
@media (min-width: 1000px) {
  .ct-legal { grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; }
  .ct-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100svh - var(--header-h) - 48px); overflow: auto; }
  .ct-toc > summary { cursor: default; pointer-events: none; }
  .ct-toc > summary .ic:last-child { display: none; }
}

/* ---------- auth (login, forgot, reset) ---------- */
.ct-auth { display: flow-root; background: var(--mist); min-height: 72svh; padding-inline: var(--gutter); }
.ct-auth-panel { width: 100%; max-width: 480px; margin: 40px auto 72px; background: #fff; border-radius: var(--r); padding: 32px 20px; box-shadow: 0 30px 60px -34px rgba(11, 31, 58, .3); }
@media (min-width: 640px) { .ct-auth-panel { padding: 44px 40px; margin-top: 56px; } }
.ct-auth-panel h1 { font-size: clamp(30px, 4vw, 40px); line-height: var(--lh-heading); letter-spacing: -.02em; margin-bottom: 12px; }
.ct-auth-sub { color: var(--slate); margin: 0 0 24px; }
.ct-pw { position: relative; direction: ltr; }
.ct-pw .input { padding-inline-end: 56px; }
.ct-pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--slate); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ct-pw-toggle:hover { background: var(--mist); color: var(--night); }
.ct-pw-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.ct-pw-toggle[aria-pressed="true"] .ic-show, .ct-pw-toggle[aria-pressed="false"] .ic-hide { display: none; }
.ct-auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 24px; }
.ct-auth-row .check { margin: 0; }
.ct-auth-row a { font-weight: 500; }
.ct-auth-foot { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--slate); max-width: none; }
.ct-auth-foot a { font-weight: 500; }
.ct-auth .alert + .btn { margin-top: 6px; }

/* ---------- dashboard ---------- */
.ct-tag.is-ok { background: var(--success-bg); color: var(--success); }
.ct-tag.is-bad { background: var(--danger-bg); color: var(--danger); }
.ct-bk-no { font-weight: 600; text-decoration: none; }
.ct-bk-no:hover { text-decoration: underline; }
.ct-bk-dates { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ct-bk-dates .ic { width: 16px; height: 16px; color: var(--slate); }
.ct-bk-act { text-align: end; white-space: nowrap; }
.ct-bk-act .link-arrow { font-size: 15px; }
@media (max-width: 1023.98px) {
  .ct-bk { border: 0; background: transparent; overflow: visible; border-radius: 0; }
  .ct-bk-table { display: block; min-width: 0; }
  .ct-bk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ct-bk-table tbody { display: grid; gap: 14px; grid-template-columns: 1fr; }
  .ct-bk-table tr { display: grid; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md); }
  .ct-bk-table tbody tr:hover { background: #fff; }
  .ct-bk-table td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; border: 0; text-align: end; }
  .ct-bk-table td::before { content: attr(data-label); flex: none; font-size: 14px; color: var(--slate); text-align: start; }
  .ct-bk-table td.ct-bk-act { justify-content: flex-start; padding-top: 6px; border-top: 1px solid var(--hair); }
  .ct-bk-table td.ct-bk-act::before { content: none; }
  .ct-bk-table td:first-child { font-size: 18px; }
}
@media (min-width: 700px) and (max-width: 1023.98px) {
  .ct-bk-table tbody { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 404 ---------- */
.ct-404 { text-align: center; padding-block-end: 88px; }
.ct-404 .wrap { padding-top: 56px; }
.ct-404-code { margin: 0 0 8px; font-size: clamp(96px, 22vw, 220px); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--blue); max-width: none; }
.ct-404 h1 { font-size: clamp(32px, 5vw, 56px); line-height: var(--lh-heading); max-width: 20ch; margin-inline: auto; }
.ct-404-text { margin: 20px auto 8px; font-size: 19px; color: var(--slate); max-width: 52ch; }
.ct-404-h { font-size: 18px; line-height: 1.3; letter-spacing: 0; margin: 40px 0 16px; }
.ct-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ct-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--hair); border-radius: 999px; color: var(--night); text-decoration: none; font-weight: 500; background: #fff; }
.ct-chip:hover { border-color: var(--night); background: var(--mist); }
.ct-chip .ic { width: 18px; height: 18px; color: var(--slate); }
.ct-404-wa { margin: 48px 0 0; max-width: none; }
