/* modeep.net topic and legal pages (gizlilik, tarayıcıda sesli sohbet, ...): the home page's light look (site.css, loaded
   first: ground, words, blue, buttons, the menu bar, the footer) with these pages' own blocks. Written by
   scripts/site-pages.mjs; sides use logical properties like site.css. */

.page { padding-block: calc(var(--nav-h) + 72px) 120px; }
.page .wrap { width: min(980px, 100% - 48px); }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-3); font-size: 14px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text-hover); text-decoration: underline; text-underline-offset: 3px; }

.page__head { padding-top: 28px; }
.page__head h1 {
  max-width: 15em;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.page__lead { max-width: 34em; margin-top: 22px; color: var(--text-2); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; }
.page__head .hero__actions { justify-content: flex-start; margin-top: 36px; }
/* On phones and Macs the web version leads (app.js sets data-platform). */
[data-platform='other'] .page__head .btn--ghost { order: -1; }

.page__block { display: grid; padding-top: 88px; }
.page__block > h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page__steps,
.page__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
/* Six make two rows of three on a wide screen, never four and two. */
.page__list:has(> li:nth-child(6):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(max(260px, calc((100% - 28px) / 3)), 1fr));
}
.page__steps { counter-reset: step; }
.page__steps li,
.page__list li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px 28px 30px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.page__steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.12);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
}
.page__steps strong,
.page__list strong { font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.page__steps span,
.page__list span,
.page__text { color: var(--text-2); }
.page__text { max-width: 44em; font-size: 18px; line-height: 1.6; }
.page__text + .page__text { margin-top: 16px; }
.page a:not(.btn) { color: var(--accent-text); text-underline-offset: 3px; }
.page a:not(.btn):hover { color: var(--text-hover); }
.page .crumbs a { color: var(--text-2); }

/* The provider identity: a label and its value per row (rows apart by space, not lines). */
.page__facts {
  display: grid;
  grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
  gap: 4px 24px;
  max-width: 44em;
  margin: 0;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.page__facts dt,
.page__facts dd { margin: 0; padding: 10px 0; }
.page__facts dt { color: var(--text-3); }
.page__facts dd { overflow-wrap: anywhere; }

/* Questions: the home page's tiles (site.css .faq), stacked under their heading. */
.page__block.faq { padding-block: 88px 0; gap: 10px; }
.page__block.faq > h2 { margin-bottom: 14px; }
.page__block.faq details > p { padding: 0 26px 24px; color: var(--text-2); }

/* "Daha fazlası": the other pages as chips. */
.page__more ul { display: flex; flex-wrap: wrap; gap: 10px; }
.page .page__more a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.page .page__more a:hover { background: var(--surface-2); color: var(--text-hover); }

/* Developer page: code on a dark tile, scrolling sideways on narrow screens. */
.page__code { min-width: 0; max-width: min(52em, 100%); margin: 20px 0 0; }
.page__code figcaption { margin-bottom: 8px; color: var(--text-3); font-size: 14px; font-weight: 500; }
.page__code pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #1d1d1f;
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.55;
}
.page__text code,
.page__facts code,
.page__list code,
.page__steps code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* The footer's links wrap under the wordmark on these pages (there are many). */
.foot__links { justify-content: flex-start; }

@media (max-width: 760px) {
  .page { padding-block: calc(var(--nav-h) + 48px) 80px; }
  .page .wrap { width: min(980px, 100% - 40px); }
  .page__head .hero__actions { align-items: stretch; }
  .page__block,
  .page__block.faq { padding-top: 64px; }
  .page__facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline: 22px; }
  .page__facts dt { padding-bottom: 0; }
  .page__facts dd { padding-top: 2px; }
  .page__steps li,
  .page__list li { padding: 24px 22px 26px; }
}
