/* ─────────────────────────────────────────
   "For whom" SEO pages (#2108): /for/<slug>.html (en), /icin/<slug>.html (tr).

   Page-scoped, on top of the public subpage stack (design-tokens.css via
   subpage-shared.css: nav, page-hero, cta-strip, footer). Every class here is
   `.for-*`; colours come from the tokens. Mobile first: 16px gutters, no
   horizontal scroll at 375px. Light by default, dark under
   prefers-color-scheme like the other subpages.
───────────────────────────────────────── */

/* ── HERO overrides (the shared hero is sized for long legal pages) ── */
.for-hero { padding: 96px 16px 40px; }
.page-hero.for-hero h1 {
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.for-hero .lead { font-size: 17px; }

.for-crumbs { flex-wrap: wrap; row-gap: 8px; }

/* ── BODY ────────────────────────────────────────────── */
.for-main {
  max-width: 840px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  color: var(--ink2);
}
.for-section { margin-top: 40px; }
.for-section:first-child { margin-top: 0; }
.for-main h2 {
  font-size: 24px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  scroll-margin-top: 90px;
}
.for-main p { font-size: 16px; line-height: 1.7; color: var(--ink2); }

/* Example setup table */
.for-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto; /* 5 columns: scrolls inside the card on a narrow tablet; a phone gets stacked cards (below) */
}
.for-table { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.for-table th,
.for-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.for-table thead th {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink3);
  background: var(--surface2);
}
.for-table tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.for-table td { color: var(--ink2); }
.for-table tbody tr:last-child th,
.for-table tbody tr:last-child td { border-bottom: 0; }

/* Quick start */
.for-steps { list-style: none; counter-reset: for-step; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.for-steps li {
  counter-increment: for-step;
  position: relative;
  padding-left: 44px;
  min-height: 32px;
  font-size: 16px; line-height: 1.6;
  color: var(--ink2);
}
.for-steps li::before {
  content: counter(for-step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 15px;
}

/* Situation lead (the bold first sentence of each numbered situation) */
.for-steps li strong { color: var(--ink); font-weight: 700; }

/* FAQ: visible text (the FAQPage JSON-LD in the head repeats it verbatim) */
.for-faq { display: flex; flex-direction: column; gap: 10px; }
.for-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.for-faq-item h3 {
  font-size: 16.5px; font-weight: 600; line-height: 1.4;
  color: var(--ink);
  margin-bottom: 6px;
}
.for-faq-item p { font-size: 15px; line-height: 1.7; }

/* Links to the other pages */
.for-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.for-chips a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--blue);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
}
.for-chips a:hover { border-color: var(--blue); text-decoration: none; }

/* CTA strip (shared look; tighter on a phone) */
.for-cta { padding: 48px 16px; }
.for-cta p { overflow-wrap: anywhere; }

@media (min-width: 700px) {
  .for-hero { padding: 120px 5% 56px; }
  .for-main { padding: 56px 5% 64px; }
  .for-main h2 { font-size: 28px; }
  .for-table th,
  .for-table td { padding: 14px 18px; }
}

/* ── DARK MODE ───────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .for-main { color: rgba(255, 255, 255, 0.72); }
  .for-main h2 { color: #ffffff; }
  .for-main p,
  .for-steps li,
  .for-table td { color: rgba(255, 255, 255, 0.72); }
  .for-table-wrap,
  .for-faq-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .for-table th,
  .for-table td { border-bottom-color: rgba(255, 255, 255, 0.08); }
  .for-table thead th { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6); }
  .for-table tbody th,
  .for-steps li strong,
  .for-faq-item h3 { color: #ffffff; }
  .for-chips a {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #93c5fd;
  }
  .for-chips a:hover { border-color: #93c5fd; }
}

/* Optional sector image (the generator emits the figure only when the WebP exists) */
.for-figure { margin-left: 0; margin-right: 0; }
.for-figure picture { display: block; }
.for-figure img {
  display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto;
  border-radius: 18px; box-shadow: 0 6px 24px rgba(15, 23, 42, 0.14);
}
@media (prefers-color-scheme: dark) {
  .for-figure img { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); outline: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ── PHONE: the sample table as one card per row (CSS only, same markup) ──
   Row header = card title, every other cell = "label: value" from data-label.
   The header row stays in the DOM, visually hidden. After the dark block so
   these rules win where both apply. */
@media (max-width: 600px) {
  .for-table-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  .for-table,
  .for-table tbody,
  .for-table tbody tr,
  .for-table tbody th,
  .for-table tbody td { display: block; }
  .for-table { min-width: 0; }
  .for-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .for-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 4px 0 10px;
  }
  .for-table tbody tr:last-child { margin-bottom: 0; }
  .for-table tbody th,
  .for-table tbody tr:last-child th { width: auto; padding: 10px 14px 6px; font-size: 16px; border-bottom: 0; }
  .for-table tbody td,
  .for-table tbody tr:last-child td { padding: 3px 14px; border-bottom: 0; }
  .for-table tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--ink);
  }
}
@media (max-width: 600px) and (prefers-color-scheme: dark) {
  .for-table tbody tr {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .for-table tbody td::before { color: #ffffff; }
}
