/* 81 İl Plaka — "Plaka" style: road-sign black, TR plate blue, Turkish red,
   sign yellow on off-white, heavy condensed type, hard offset shadows. */

:root {
  --ink: #111111;
  --paper: #f2f1ec;
  --white: #ffffff;
  --blue: #0039a6;
  --red: #e30a17;
  --yellow: #ffcc00;
  --green: #0e7a33;
  --line: #e2e1da;
  --muted: #55544e;
  --radius: 6px;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }
a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 10;
}
.skip:focus { left: 8px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.kicker {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
  color: var(--blue);
  margin: 0 0 12px;
}

/* ---------- Header ---------- */

.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand span { font-family: var(--display); font-weight: 900; font-stretch: condensed; letter-spacing: 0.08em; font-size: 19px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: #d8d7d0; text-decoration: none; font-weight: 700; font-size: 15px; }
.site-nav a:hover { color: var(--yellow); }

/* Mini plate used as the logo and in lists. */
.mini-plate {
  display: inline-flex; align-items: stretch; height: 30px;
  background: var(--white); border: 2px solid var(--white); border-radius: 4px; overflow: hidden;
}
.mini-plate i { width: 9px; background: var(--blue); }
.mini-plate b {
  padding: 0 7px; color: var(--ink); line-height: 26px;
  font-family: var(--display); font-weight: 900; font-stretch: condensed; font-size: 19px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px;
  border: var(--border); border-radius: var(--radius);
  font-family: var(--display); font-weight: 900; font-stretch: condensed;
  font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  box-shadow: var(--shadow); transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 14px; font-size: 16px; box-shadow: none; border-color: var(--yellow); }
.btn-small:hover { box-shadow: none; transform: none; background: var(--white); border-color: var(--white); }
.btn svg { flex: none; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(56px, 8.6vw, 112px); margin: 0 0 22px; }
.hero h1 em { font-style: normal; background: var(--yellow); padding: 0 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p.lead { font-size: 21px; max-width: 34em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li {
  font-family: var(--display); font-weight: 800; font-stretch: condensed; text-transform: uppercase;
  font-size: 15px; letter-spacing: 0.06em; padding: 4px 10px; border: 2px solid var(--ink); background: var(--white);
}

.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(320px, 78vw); border: 10px solid var(--ink); border-radius: 46px; overflow: hidden;
  background: var(--ink); box-shadow: 14px 14px 0 var(--ink);
}
.phone img { width: 100%; height: auto; }
.hero-art .phone { transform: rotate(3deg); }
.sticker {
  position: absolute; left: 0; bottom: 40px; transform: rotate(-6deg);
  background: var(--red); color: var(--white); border: var(--border); box-shadow: var(--shadow);
  padding: 8px 14px; font-family: var(--display); font-weight: 900; font-stretch: condensed;
  text-transform: uppercase; font-size: 22px; letter-spacing: 0.04em;
}

/* ---------- Hazard stripe divider ---------- */

.hazard {
  height: 26px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--yellow) 18px 36px);
}

/* ---------- Sections ---------- */

section, [id] { scroll-margin-top: 84px; }
.section { padding: 88px 0; }
.section h2 { font-size: clamp(40px, 5.6vw, 72px); margin: 0 0 18px; }
.section-intro { max-width: 40em; font-size: 20px; margin: 0 0 44px; }
.dark { background: var(--ink); color: var(--white); }
.dark .kicker { color: var(--yellow); }
.yellow { background: var(--yellow); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.step { background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.step-num {
  display: inline-block; background: var(--blue); color: var(--white); padding: 2px 10px; margin-bottom: 14px;
  font-family: var(--display); font-weight: 900; font-stretch: condensed; font-size: 22px;
}
.step h3 { font-size: 30px; margin: 0 0 8px; }
.step p { margin: 0; }

/* Mode groups */
.groups { display: grid; gap: 64px; }
.group { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.group:nth-child(even) { grid-template-columns: 1fr 300px; }
.group:nth-child(even) .phone { order: 2; }
.group .phone { width: 100%; transform: rotate(-2deg); }
.group:nth-child(even) .phone { transform: rotate(2deg); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 18px;
}
.badge b { color: var(--white); background: var(--ink); padding: 1px 9px; font-size: 20px; }
.badge.blue b { background: var(--blue); }
.badge.yellow b { background: var(--yellow); color: var(--ink); outline: 2px solid var(--ink); }
.group h3 { font-size: clamp(36px, 4.4vw, 56px); margin: 0 0 14px; }
.group p { font-size: 19px; margin: 0 0 16px; max-width: 32em; }
.mode-list { list-style: none; padding: 0; margin: 0; border: var(--border); border-radius: var(--radius); background: var(--white); max-width: 34em; }
.mode-list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-bottom: 2px solid var(--line); }
.mode-list li:last-child { border-bottom: 0; }
.mode-list strong { font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase; font-size: 21px; white-space: nowrap; }
.mode-list span { color: var(--muted); font-size: 17px; }

/* Map legend */
.legend { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.legend i { width: 18px; height: 18px; border: 2px solid var(--ink); }

/* ---------- Try it (mini quiz) ---------- */

.try .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.quiz { background: var(--white); color: var(--ink); border: var(--border); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--yellow); padding: 24px; }
.quiz-label { font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase; font-size: 26px; margin: 0 0 16px; }
.plate {
  display: flex; align-items: stretch; height: 120px; margin: 0 8px 24px 0;
  background: var(--white); border: 5px solid var(--ink); border-radius: 10px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}
.plate .tr {
  width: 52px; background: var(--blue); color: var(--white); display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px; font-family: var(--display); font-weight: 900; font-size: 20px;
}
.plate .code {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--display); font-weight: 900; font-stretch: condensed; font-size: 84px; line-height: 1;
}
.plate .code small { font-size: 38px; color: #cfcec6; letter-spacing: 0.08em; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 14px;
  background: var(--white); color: var(--ink); border: var(--border); border-radius: var(--radius); cursor: pointer;
  font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase; font-size: 22px; letter-spacing: 0.04em; text-align: left;
}
.option .letter { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-size: 17px; flex: none; }
.option .pair { margin-left: auto; font-size: 17px; }
.option:hover:not([disabled]) { background: var(--paper); }
.option.correct { background: var(--green); color: var(--white); }
.option.correct .letter { background: var(--white); color: var(--green); }
.option.wrong { background: var(--red); color: var(--white); text-decoration: line-through; }
.option.wrong .letter { background: var(--white); color: var(--red); }
.option.dim { color: var(--muted); border-color: #bdbcb4; background: var(--paper); }
.option.dim .letter { background: #bdbcb4; }
.option[disabled] { cursor: default; }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; min-height: 48px; }
.quiz-score { font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase; font-size: 18px; }
.quiz-next { min-height: 48px; font-size: 18px; box-shadow: 4px 4px 0 var(--ink); }
.quiz-feedback { font-weight: 700; margin: 14px 0 0; min-height: 1.5em; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 14px; max-width: 860px; }
.faq details { background: var(--white); border: var(--border); border-radius: var(--radius); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; position: relative;
  font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase; font-size: 23px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-size: 22px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 20px; }

/* ---------- CTA + footer ---------- */

.cta { text-align: center; }
.cta h2 { margin-bottom: 18px; }
.cta p { font-size: 20px; margin: 0 auto 32px; max-width: 30em; }

.site-footer { background: var(--ink); color: #d8d7d0; padding: 36px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }

/* ---------- Policy page ---------- */

.policy { padding: 56px 0 88px; }
.policy h1 { font-size: clamp(48px, 7vw, 88px); margin: 0 0 16px; }
.policy .updated { display: inline-block; background: var(--ink); color: var(--yellow); padding: 4px 10px; font-weight: 800; margin-bottom: 28px; }
.policy-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; }
.policy-summary div { background: var(--white); border: var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.policy-summary strong { display: block; font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase; font-size: 22px; margin-bottom: 6px; }
.policy article { background: var(--white); border: var(--border); border-radius: var(--radius); padding: 28px; max-width: 860px; }
.policy article h2 { font-size: 30px; margin: 28px 0 8px; }
.policy article h2:first-child { margin-top: 0; }
.policy article ul { padding-left: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 17px; }
  .site-nav { display: none; }
  .site-header .btn-small { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap, .try .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art .phone { width: min(240px, 64vw); }
  .sticker { left: 4%; bottom: 20px; font-size: 18px; }
  .steps, .policy-summary { grid-template-columns: 1fr; }
  .group, .group:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .group:nth-child(even) .phone { order: 0; }
  .group .phone { width: min(260px, 70vw); margin-inline: auto; }
  .section { padding: 64px 0; }
  .plate .code { font-size: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Plate code list page ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.codes-hero .wrap { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }
.codes-hero { padding-bottom: 56px; }
.search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; min-height: 60px; padding: 0 16px;
  background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 600 19px var(--body);
}
.search:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.search-status { font-weight: 700; min-height: 1.5em; margin: 14px 0 0; }

.code-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px;
}
.code-item {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
}
.code-item[hidden] { display: none; }
.code-name { font-weight: 700; font-size: 18px; }
.mini-plate-ink { border-color: var(--ink); }

.alpha { columns: 3 260px; column-gap: 28px; }
.alpha-group { break-inside: avoid; margin-bottom: 26px; }
.alpha-group[hidden] { display: none; }
.alpha-group h3 {
  font-size: 30px; margin: 0 0 8px; display: inline-block; background: var(--ink); color: var(--yellow);
  padding: 2px 12px;
}
.code-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* ---------- Province pages (/plaka/NN-il/) ---------- */

.code-link {
  display: flex; align-items: center; gap: 12px; align-self: stretch; flex: 1;
  color: inherit; text-decoration: none;
}
a.code-link:hover .code-name { color: var(--red); text-decoration: underline; }
.code-item.is-current { background: var(--ink); color: var(--yellow); }
.code-item.is-current .mini-plate { border-color: var(--white); }

.crumbs { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.province-hero h1 { font-size: clamp(52px, 8vw, 104px); }
.province-hero .lead strong { background: var(--yellow); padding: 0 4px; }
.plate-pager { display: flex; flex-wrap: wrap; gap: 12px; }
.plate-pager a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius);
  font-weight: 800; text-decoration: none;
}
.plate-pager a:hover { background: var(--ink); color: var(--yellow); }

.province-art { display: grid; justify-items: center; gap: 28px; }
.plate-big { width: min(440px, 100%); height: 150px; margin: 0; }
.plate-big .tr { width: 62px; font-size: 24px; }
.plate-big .code { font-size: 112px; }
.plate-big .code small { font-size: 44px; }
.road-sign {
  background: var(--blue); color: var(--white); padding: 14px 34px; border-radius: 8px;
  border: 4px solid var(--white); outline: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  font-family: var(--display); font-weight: 900; font-stretch: condensed; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 54px); letter-spacing: 0.03em; line-height: 1.1;
}

.story { max-width: 44em; font-size: 20px; }
.story p { margin: 0 0 16px; }
.story p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .province-hero .wrap > * { min-width: 0; }
  .province .section h2 { font-size: clamp(30px, 8.6vw, 72px); overflow-wrap: break-word; }
  .province-art { gap: 22px; }
  .road-sign { padding: 10px 18px; font-size: clamp(24px, 7.4vw, 40px); max-width: 100%; text-align: center; }
  .plate-big { height: 120px; }
  .plate-big .code { font-size: 84px; }
  .plate-big .code small { font-size: 34px; }
}

/* ---------- 404 ---------- */

.notfound { padding: 72px 0 96px; }
.notfound h1 { font-size: clamp(56px, 9vw, 120px); margin: 0 0 18px; }
.notfound p { font-size: 20px; max-width: 32em; margin: 0 0 28px; }
.notfound h1 em { font-style: normal; background: var(--yellow); padding: 0 10px; }
