/* MarineBase web sitesi. Kimlik: "seyir haritası" (gece modu deniz haritası). */

@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-500-800-tr.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-400-700-tr.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Zemin: gece haritasının derin suyu */
  --ink: #07131f;
  --surface: #0e1f31;
  --raised: #15293e;
  --line: rgba(234, 241, 247, 0.12);
  --line-strong: rgba(234, 241, 247, 0.22);
  --text: #eaf1f7;
  --muted: #8ea3b8;
  /* Can simidi turuncusu: yalnızca birincil eylem */
  --orange: #ff6b35;
  /* Deniz camı: bağlantılar, eşderinlik çizgileri, veri */
  --glass: #5ccfc1;
  /* Pirinç: harita çerçevesi, iskandil rakamları, notlar */
  --brass: #d4af6a;

  --display: "Unbounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --measure: 68ch;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--glass); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--glass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
h3 { font-family: var(--body); font-weight: 650; font-size: 1.125rem; line-height: 1.35; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--text); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Harita çerçevesi (neatline): çift çizgi arasında dönüşümlü dakika bölmeleri */
.neatline {
  height: 11px;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  background-image: repeating-linear-gradient(90deg, var(--brass) 0 56px, transparent 56px 112px);
  background-size: 100% 3px;
  background-position: 0 50%;
  background-repeat: no-repeat;
  opacity: 0.75;
}

/* Üst bar */
.top { border-bottom: 1px solid var(--line); background: var(--ink); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.97rem; padding-block: 6px; display: inline-block; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--glass); }
.top nav .lang a { color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; }
.top nav .lang a:hover { border-color: var(--glass); }

/* Ana sayfa kahraman alanı: harita levhası */
.hero { position: relative; display: flex; flex-direction: column; background: var(--ink); }
.hero-plate { position: relative; display: flex; flex-direction: column; }
.hero-chart { position: relative; height: 300px; overflow: hidden; border-top: 1px solid var(--line); }
.hero-chart svg { width: 100%; height: 100%; }
.hero-in { position: relative; order: 1; padding-block: clamp(40px, 7vw, 96px) 36px; }
.hero-chart { order: 2; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.1rem); max-width: 15ch; }
.lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--text); max-width: 36rem; margin-top: 22px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.badge { display: inline-block; padding: 0; line-height: 0; border-radius: 9px; }
.badge img { height: 50px; width: auto; }
.text-link { font-weight: 600; }
.hero .meta { color: var(--muted); font-size: 0.95rem; margin-top: 22px; max-width: 36rem; }
.chart-note { position: absolute; right: var(--gutter); bottom: 12px; margin: 0; font-size: 0.78rem; color: var(--muted); background: rgba(7, 19, 31, 0.82); padding: 2px 8px; border-radius: 4px; }

.chart .land { fill: #13283d; stroke: var(--glass); stroke-opacity: 0.6; stroke-width: 1.2; }
.chart .iso { fill: none; stroke: var(--glass); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .iso-shallow { stroke-opacity: 0.34; }
.chart .iso-deep { stroke-opacity: 0.17; }
.chart .snd { fill: var(--brass); fill-opacity: 0.78; font-family: var(--body); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .mark { fill: none; stroke: var(--brass); stroke-width: 1.6; }

@media (min-width: 900px) {
  .hero-plate { min-height: min(720px, 86vh); justify-content: center; }
  .hero-chart { position: absolute; inset: 0; height: auto; border-top: 0; }
  .hero-in { padding-block: 88px; }
  .hero-in > * { position: relative; }
}
@media (max-width: 899px) {
  .chart .snd { font-size: 15px; }
}

/* Bölümler */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); max-width: 22ch; }
.section-intro { color: var(--muted); max-width: 40rem; margin-top: 14px; }

/* Lejant: harita kartuşu gibi çift çerçeveli kutu */
.legend-grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .legend-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .legend-grid > :first-child { position: sticky; top: 32px; }
}
.cartouche { border: 3px double var(--brass); border-radius: 2px; padding: clamp(8px, 2vw, 14px) clamp(16px, 3vw, 32px); background: var(--surface); }
.legend { margin: 0; }
.legend .row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 18px; padding-block: 22px; }
.legend .row + .row { border-top: 1px dashed rgba(212, 175, 106, 0.38); }
.legend dt { display: contents; }
.legend .sym { grid-row: span 2; width: 52px; height: 52px; color: var(--glass); }
.legend .name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; align-self: end; }
.legend dd { margin: 0; color: var(--text); grid-column: 2; }
.legend dd .sub { display: block; color: var(--muted); margin-top: 6px; font-size: 0.96rem; }

/* Kurallar + dikkat notu */
.rules-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .rules-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; } }
.rules-grid p { max-width: var(--measure); }
.caution { border: 1px solid var(--brass); padding: 20px 22px 6px; background: rgba(212, 175, 106, 0.06); border-radius: 2px; }
.caution .t { font-family: var(--display); font-weight: 600; color: var(--brass); font-size: 1rem; margin-bottom: 8px; }

/* İletişim */
.contact-mail { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 0.8rem + 2.2vw, 2.4rem); letter-spacing: -0.02em; overflow-wrap: anywhere; display: inline-block; margin-top: 18px; }
.link-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* Belge sayfaları */
.doc-head {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(7, 19, 31, 0.82), rgba(7, 19, 31, 0.82)),
    url("/assets/chart-band.svg") right center / cover no-repeat,
    var(--ink);
}
@media (min-width: 900px) {
  .doc-head {
    background:
      linear-gradient(90deg, var(--ink) 0, var(--ink) 42%, rgba(7, 19, 31, 0.55) 62%, rgba(7, 19, 31, 0) 82%),
      url("/assets/chart-band.svg") right center / cover no-repeat,
      var(--ink);
  }
}
.doc-head .wrap { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.doc-head h1 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem); max-width: 20ch; }
.doc-head .updated { color: var(--muted); margin-top: 16px; font-size: 0.95rem; }
.doc-head .intro { max-width: var(--measure); margin-top: 14px; }

.doc { display: grid; gap: 32px; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
@media (min-width: 1000px) {
  .doc { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; }
}
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; font-size: 0.93rem; }
  .toc-m { display: none; }
}
.toc .toc-h, .toc-m summary { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.toc .toc-h { margin-bottom: 10px; }
.toc ol, .toc-m ol { margin: 0; padding-left: 2.1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc li, .toc-m li { margin-block: 7px; padding-left: 2px; }
.toc a, .toc-m a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc-m a:hover { color: var(--text); text-decoration: underline; }
.toc-m { border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 16px; background: var(--surface); }
.toc-m summary { cursor: pointer; padding-block: 4px; }
.toc-m ol { margin-top: 8px; }

.prose { max-width: var(--measure); min-width: 0; }
.prose section { scroll-margin-top: 20px; }
.prose section + section { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.45rem); margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.prose h2 .n { color: var(--brass); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.prose h3 { margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-block: 6px; }
.prose li::marker { color: var(--brass); }
.prose strong { font-weight: 650; color: var(--text); }
.prose .muted { color: var(--muted); }
.prose .summary { background: var(--surface); border-left: 3px solid var(--glass); padding: 18px 22px 4px; margin-bottom: 40px; border-radius: 0 6px 6px 0; }
.prose .summary h2 { font-size: 1.05rem; margin-bottom: 10px; }
.prose .path { font-weight: 600; color: var(--text); white-space: normal; }
.prose .note { border: 1px solid var(--brass); padding: 14px 18px 2px; border-radius: 2px; background: rgba(212, 175, 106, 0.06); }
.prose .note .t { font-weight: 650; color: var(--brass); margin-bottom: 6px; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-block: 0; padding-block: 12px; border-bottom: 1px dashed rgba(212, 175, 106, 0.3); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass); font-family: var(--display); font-weight: 600; font-size: 0.95rem; display: grid; place-items: center; }

/* Tablolar */
.table-wrap { margin: 18px 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { font-weight: 650; color: var(--text); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
tbody th { font-weight: 600; }
@media (max-width: 720px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border: 1px solid var(--line-strong); border-radius: 8px; margin-bottom: 12px; background: var(--surface); padding: 6px 0; }
  th, td { border: 0; padding: 6px 14px; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 2px; }
  tbody th { color: var(--glass); }
}

/* SSS */
.faq h2 { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 9px; height: 9px; border-right: 1.5px solid var(--glass); border-bottom: 1.5px solid var(--glass); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details > div { padding: 0 0 12px; }

/* 404 */
.lost { padding-block: clamp(64px, 12vw, 140px); }
.lost h1, .lost h2 { font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); max-width: 18ch; }
.lost .pair { display: grid; gap: 40px; margin-top: 8px; }
@media (min-width: 800px) { .lost .pair { grid-template-columns: 1fr 1fr; } }

/* Alt bilgi */
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.94rem; }
.foot-in { display: grid; gap: 28px; padding-block: 40px 28px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.foot .brand span { font-size: 0.98rem; }
.foot p { margin-top: 12px; max-width: 34rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 24px; }
.foot ul a { color: var(--text); text-decoration: none; display: inline-block; padding-block: 5px; }
.foot ul a:hover { text-decoration: underline; color: var(--glass); }
.foot .legal { border-top: 1px solid var(--line); padding-block: 18px 28px; font-size: 0.84rem; }
.foot .legal p { margin: 0 0 6px; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Yazdırma: beyaz kâğıt, siyah mürekkep, gezinme yok */
@media print {
  :root { --text: #000; --muted: #333; --line: #bbb; --line-strong: #888; --glass: #000; --brass: #000; --surface: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top nav, .toc, .toc-m, .skip, .neatline, .hero-chart, .chart-note, .foot ul { display: none !important; }
  .top, .foot, .doc-head { background: #fff !important; border-color: #bbb; }
  .doc { display: block; padding: 0; }
  .prose { max-width: none; }
  .prose section { break-inside: auto; }
  .prose h2, .prose h3 { break-after: avoid; }
  details::details-content { content-visibility: visible; display: block; }
  .faq summary::after { display: none; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after, .prose a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  table, thead, tbody, tr, th, td { display: revert !important; }
  thead { position: static !important; width: auto !important; height: auto !important; clip: auto !important; }
  td[data-label]::before { content: none !important; }
  tr { border: 0 !important; background: none !important; }
  th, td { border-bottom: 1px solid #bbb !important; }
}
