/* CarTradeEasy: shared styles for the header, guides, footer and cookie notice.
   The home and How It Works page bodies carry their own styles (scoped to .cte). */
:root {
  --cream: #FFF6F0;
  --cream-2: #FBEEE3;
  --ink: #4F434A;
  --ink-2: #6E6068;
  --ink-3: #9C9098;
  --line: #EFE6DE;
  --orange: #E07832;
  --orange-d: #C9651F;
  --burg: #5C2531;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Poppins', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------------- header ---------------- */
.site-h { background: var(--cream); box-shadow: 0 12px 22px -16px rgba(79, 67, 74, .28); position: relative; z-index: 5; }
.site-h__in { max-width: 1400px; margin: 0 auto; padding: 26px clamp(20px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.site-h__nav { display: flex; gap: 26px; }
.site-h__nav a { color: #000; text-decoration: none; font-size: 16px; padding: 2px 0; border-bottom: 1px solid transparent; }
.site-h__nav a:hover, .site-h__nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-h__logo { display: block; line-height: 0; }
.site-h__logo img { width: auto; height: 46px; }
.site-h__cta { justify-self: end; color: #000; text-decoration: none; border: 1px solid #000; padding: 15px 21px; font-size: 16px; line-height: 1.5; transition: background .2s ease, color .2s ease; }
.site-h__cta:hover { background: #000; color: #fff; }
@media (max-width: 760px) {
  .site-h__in { grid-template-columns: auto 1fr; grid-template-areas: "logo cta" "nav nav"; padding: 16px 20px 12px; row-gap: 12px; }
  .site-h__logo { grid-area: logo; }
  .site-h__logo img { height: 34px; }
  .site-h__cta { grid-area: cta; padding: 10px 16px; font-size: 15px; }
  .site-h__nav { grid-area: nav; justify-content: center; gap: 28px; }
  .site-h__nav a { font-size: 15px; }
}

/* Space between a "Get my offers" button and the small line under it
   (the page bodies reset paragraph margins to 0, which pressed the two together). */
.cte .cte-note { margin-top: 20px; }
.cte .cte-hero__types { margin-top: 14px; }

/* Pencil-sketch step illustrations on the home page */
.cte .cte-step__art--sketch { height: auto; width: min(100%, 220px); margin: 0 auto 22px; display: block; }
.cte .cte-step__art--sketch img { width: 100%; height: auto; display: block;
  /* soften the cut edges of the drawings so they fade into the page like the house sketch */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, #000 0, #000 88%, transparent 100%);
  mask-composite: intersect; }
@media (max-width: 860px) { .cte .cte-step__art--sketch { width: min(70%, 240px) !important; } }

/* ---------------- guides list ---------------- */
.guides { background: var(--cream); padding: clamp(56px, 8vw, 104px) 20px; min-height: 50vh; }
.guides__in { max-width: 860px; margin: 0 auto; }
.guides h1, .guide h1 { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0; color: var(--ink); }
.guides h1 { font-size: clamp(40px, 6vw, 64px); }
.guides__lede { margin: 18px 0 0; font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); max-width: 640px; }
.guides__lede a { color: var(--orange-d); }
.gl { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 18px; }
.gl__item { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: clamp(22px, 3.4vw, 34px); transition: border-color .2s ease, box-shadow .2s ease; }
.gl__item:hover { border-color: var(--orange); box-shadow: 0 24px 60px -34px rgba(224, 120, 50, .45); }
.gl__date { margin: 0; font-size: 14px; color: var(--ink-3); }
.gl__item h2 { margin: 8px 0 0; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -0.015em; }
.gl__item h2 a { color: var(--ink); text-decoration: none; }
.gl__item h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.gl__ex { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; }
.gl__more { display: inline-block; margin-top: 14px; color: var(--orange-d); font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------------- one guide ---------------- */
.guide { padding: clamp(48px, 7vw, 88px) 20px clamp(64px, 8vw, 104px); }
.guide__in { max-width: 760px; margin: 0 auto; }
.guide__crumbs a { font-size: 14px; font-weight: 600; color: var(--orange-d); text-decoration: none; }
.guide__crumbs a::before { content: "← "; }
.guide__date { margin: 24px 0 10px; font-size: 14px; color: var(--ink-3); }
.guide h1 { font-size: clamp(34px, 5.2vw, 56px); text-wrap: balance; }
.guide__body { margin-top: 32px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.guide__body p, .guide__body ul, .guide__body ol { margin: 0 0 16px; }
.guide__body ul, .guide__body ol { padding-left: 1.3em; }
.guide__body li { margin-bottom: 8px; }
.guide__body h2 { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(25px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 44px 0 14px; color: var(--ink); text-wrap: balance; }
.guide__body h3 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 21px; margin: 30px 0 10px; }
.guide__body strong { font-weight: 600; color: var(--ink); }
.guide__body a { color: var(--orange-d); text-underline-offset: 3px; }
.guide__body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.guide__body em { color: var(--ink-2); }
.guide__body .tbl { overflow-x: auto; margin: 8px 0 22px; }
.guide__body table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.guide__body th, .guide__body td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.guide__body th:first-child, .guide__body td:first-child { text-align: left; padding-left: 0; }
.guide__body th:last-child, .guide__body td:last-child { padding-right: 0; }
.guide__body thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }

/* ---------------- footer (same as the home page) ---------------- */
.cte .cte-foot { background: var(--ink); color: rgba(255,255,255,.72); padding: 48px 20px; font-family: 'Poppins', system-ui, sans-serif; font-size: 16px; }
.cte .cte-foot__row { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cte .cte-foot__brand img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .92; display: block; }
.cte .cte-foot__brand small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.cte .cte-foot__legal { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.cte .cte-foot__legal a { color: rgba(255,255,255,.72); text-decoration: none; }
.cte .cte-foot__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cte .cte-foot__right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cte .cte-foot__mail { color: #fff; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.cte .cte-foot__social { display: flex; gap: 8px; }
.cte .cte-foot__social a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; color: #fff; text-decoration: none; transition: background .2s ease; }
.cte .cte-foot__social a:hover { background: rgba(255,255,255,.12); }
.cte .cte-foot__social svg { width: 17px; height: 17px; }

/* ---------------- cookie notice ---------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 720px; margin: 0 auto; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(79,67,74,.35); padding: 14px 16px 14px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 300px; }
.consent a { color: var(--ink); }
.consent__btns { display: flex; gap: 8px; }
.consent button { font: 600 14px 'Poppins', sans-serif; border-radius: 999px; padding: 9px 18px; cursor: pointer; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.consent button.consent__yes { background: var(--orange); border-color: var(--orange); color: #fff; }
