/* GUİDER — Gümrüklü Ürün İmha Derneği
   Renkler logodan alındı: taş zemin, altın, yaprak yeşili. */

:root {
  --stone: #171818;
  --stone-2: #232524;
  --gold: #c9a24b;
  --gold-hi: #e8cd85;
  --leaf: #215f31;
  --leaf-hi: #3d8a46;
  --paper: #eef0ea;
  --paper-2: #e3e7dd;
  --ink: #1b1d1a;
  --muted: #565e57;
  --on-stone: #e9e7df;
  --on-stone-muted: #aaa89f;
  --rule: #b9c0b2;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --gutter: 1rem;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}

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

a { color: var(--leaf); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--leaf-hi); outline-offset: 3px; }
.on-stone :focus-visible { outline-color: var(--gold); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--gold); color: var(--stone); padding: 0.5rem 0.9rem; z-index: 20;
}
.skip:focus { left: 0.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }

/* ---------- Üst bant ---------- */

.site-header { background: var(--stone); color: var(--on-stone); border-bottom: 1px solid rgba(201, 162, 75, 0.45); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; position: relative; }

.brand { display: flex; align-items: center; gap: 0.8rem; color: inherit; text-decoration: none; }
.brand img { width: 2.6rem; height: 2.6rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: var(--gold-hi); letter-spacing: 0.04em; }
.brand-sub { font-size: 0.82rem; color: var(--on-stone-muted); display: none; }

.nav { display: flex; gap: 0.25rem; }
.nav a {
  color: var(--on-stone); text-decoration: none; padding: 0.55rem 0.85rem;
  border-bottom: 2px solid transparent; font-weight: 500;
}
.nav a:hover { color: var(--gold-hi); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-hi); }

.nav-toggle {
  display: none; font: inherit; font-weight: 500; color: var(--on-stone);
  background: transparent; border: 1px solid rgba(201, 162, 75, 0.6);
  padding: 0.45rem 0.9rem; cursor: pointer;
}

@media (min-width: 640px) { .brand-sub { display: block; } }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav {
    display: none; position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; gap: 0; background: var(--stone-2); padding: 0.5rem var(--gutter) 1rem; z-index: 10;
    border-bottom: 1px solid rgba(201, 162, 75, 0.45);
  }
  .js .nav.open { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav a { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 0.8rem 0.25rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* ---------- Ana sayfa açılışı ---------- */

.hero { background: var(--stone); color: var(--on-stone); padding-block: clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid rgba(201, 162, 75, 0.45); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { font-size: 1.15rem; color: var(--on-stone-muted); max-width: 46ch; margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-logo { margin: 0; animation: logo-in 1.1s ease-out both; }
.hero-logo img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}

@keyframes logo-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none;
  padding: 0.75rem 1.3rem; border: 1px solid var(--gold); cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--stone); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { color: var(--gold-hi); background: transparent; }
.btn-line:hover { background: rgba(201, 162, 75, 0.14); }

/* ---------- Bölümler ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper-2); }

.split { display: grid; gap: 1.5rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split-head { position: sticky; top: 1.5rem; align-self: start; }
}
.split-head p { color: var(--muted); max-width: 34ch; margin-top: 0.9rem; }
.split-head .more { display: inline-block; margin-top: 0.5rem; }

/* süreç: gerçekten sıralı adımlar */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0 0.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--leaf);
  font-weight: 500;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); max-width: 56ch; }

/* duyuru listesi */
.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-year { font-family: var(--serif); font-size: 1.35rem; margin: 2rem 0 0.5rem; color: var(--leaf); }
.news-year:first-child { margin-top: 0; }
.news details { border-bottom: 1px solid var(--rule); }
.news summary {
  list-style: none; cursor: pointer; display: grid; gap: 0.15rem 1.25rem; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  grid-template-columns: minmax(0, 1fr);
}
.news summary::-webkit-details-marker { display: none; }
.news summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--leaf);
}
.news details[open] summary::after { content: "\2212"; }
.news-date { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.95rem; }
.news-tag { color: var(--leaf); font-weight: 600; font-size: 0.95rem; }
.news-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; font-weight: 500; }
.news-body { padding: 0 2rem 1.4rem 0; max-width: var(--measure); }
.news-body p { margin-bottom: 0.7em; }
.news-body .src { font-size: 0.95rem; color: var(--muted); }
.news-empty { padding: 1.25rem 0; color: var(--muted); border-bottom: 1px solid var(--rule); }

@media (min-width: 700px) {
  .news summary { grid-template-columns: 10.5rem minmax(0, 1fr); }
  .news-meta { grid-column: 1; grid-row: 1 / span 2; }
  .news-title { grid-column: 2; }
  .news-body { padding-left: 11.75rem; }
}
.news-meta { display: flex; flex-direction: column; gap: 0.1rem; }

/* ---------- İç sayfa başlığı ---------- */

.page-head { background: var(--stone); color: var(--on-stone); padding-block: clamp(2.2rem, 5vw, 3.6rem); border-bottom: 1px solid rgba(201, 162, 75, 0.45); }
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.page-head p { color: var(--on-stone-muted); max-width: 54ch; margin: 0.9rem 0 0; font-size: 1.1rem; }

/* ---------- Metin sayfaları ---------- */

.prose { max-width: var(--measure); }
.prose h2 { margin: 2.2rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }

.kunye { margin: 0; border-top: 2px solid var(--ink); }
.kunye div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.kunye dt { color: var(--muted); font-size: 0.95rem; }
.kunye dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .kunye div { grid-template-columns: 14rem minmax(0, 1fr); align-items: baseline; gap: 1rem; } }

.logo-plate { margin: 2rem 0 0; background: var(--stone); border: 1px solid rgba(201, 162, 75, 0.5); }
.logo-plate img { width: 100%; }
.logo-plate figcaption { padding: 0.7rem 1rem; color: var(--on-stone-muted); font-size: 0.95rem; }

/* mevzuat kaydı (tablo) */
.register { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.register th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.95rem; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--ink); }
.register td { vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); }
.register td:first-child { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; max-width: 22rem; }
.register .links a { display: block; }

@media (max-width: 760px) {
  .register thead { position: absolute; left: -999px; }
  .register, .register tbody, .register tr, .register td { display: block; width: 100%; }
  .register tr { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  .register td { border: 0; padding: 0.15rem 0; }
  .register td:first-child { max-width: none; }
}

/* sık sorulan konular */
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.6rem; line-height: 1; color: var(--leaf); }
.qa details[open] summary::after { content: "\2212"; }
.qa .answer { padding: 0 2.2rem 1.4rem 0; max-width: var(--measure); }
.qa .answer p { margin-bottom: 0.7em; }
.qa .src { font-size: 0.95rem; color: var(--muted); }

.note { max-width: var(--measure); margin-top: 2rem; padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--paper-2); color: var(--muted); }

/* ---------- Alt bant ---------- */

.site-footer { background: var(--stone); color: var(--on-stone-muted); padding-block: 2.5rem; border-top: 1px solid rgba(201, 162, 75, 0.45); font-size: 0.98rem; }
.site-footer .wrap { display: grid; gap: 1.75rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 5fr 3fr 4fr; } }
.site-footer .f-name { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-hi); font-weight: 700; letter-spacing: 0.04em; margin: 0; }
.site-footer p { margin: 0.3rem 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--on-stone); }
.site-footer a:hover { color: var(--gold-hi); }
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Rehber sayfaları ---------- */
.guide { max-width: var(--measure); }
.guide h2 { margin-top: 2.25rem; }
.guide h2:first-child { margin-top: 0; }
.guide ul, .guide ol { padding-left: 1.2rem; }
.guide li { margin-bottom: 0.5rem; }
.guide .src { font-size: 0.95rem; color: var(--muted); }
.updated { color: var(--on-stone-muted); margin: 0.75rem 0 0; font-size: 0.95rem; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.topics li { border-bottom: 1px solid var(--rule); margin: 0; }
.topics a { display: block; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.topics a strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--leaf); }
.topics a span { color: var(--muted); }
.topics a:hover strong { text-decoration: underline; }
.crumbs { font-size: 0.95rem; margin: 0 0 0.75rem; color: var(--on-stone-muted); }
.crumbs a { color: var(--on-stone); }
@media (min-width: 760px) { .topics { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
