/* KRÉTA API dokumentáció: a styles.css tokenjeire épül */
.docs { width: min(1180px, 100% - 32px); margin-inline: auto; }
.docs-head { padding: clamp(48px, 9vh, 96px) 0 40px; max-width: 760px; }
.docs-head h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -.04em; }
.docs-head .lede { margin-top: 22px; font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 58ch; }
.docs-head .meta { margin-top: 16px; font-size: 14px; color: var(--muted); }
.docs-head .meta a { color: var(--blue); font-weight: 700; text-decoration: none; }

.docs-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }

.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc ol ol { padding-left: 14px; margin: 2px 0 6px; border-left: 1.5px solid var(--rule); }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; line-height: 1.3; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); background: var(--surface); box-shadow: inset 3px 0 0 var(--blue); }

.content { max-width: 800px; min-width: 0; font-size: 16.5px; }
.content section { scroll-margin-top: 96px; }
.content > section + section { margin-top: 64px; }
.content h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; scroll-margin-top: 96px; }
.content h3 { font-weight: 800; font-size: 21px; margin: 36px 0 10px; letter-spacing: -.01em; scroll-margin-top: 96px; }
.content section section { margin-top: 40px; }
.content p, .content ul, .content ol { margin-top: 12px; }
.content ul, .content ol { padding-left: 22px; }
.content li + li { margin-top: 6px; }
.content a { color: var(--blue); font-weight: 600; }

.warn { padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 4px 0 0 #F9CF00; font-size: 15.5px; margin-bottom: 48px; }
.warn b { display: block; margin-bottom: 4px; }

code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
:not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); overflow-wrap: anywhere; }
pre { margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: #15161A; color: #E9EAEE; overflow-x: auto; line-height: 1.55; font-size: 14.5px; }
pre code { font-size: inherit; }
.code { position: relative; }
.copy { position: absolute; top: 10px; right: 10px; padding: 6px 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff;
        font: 700 12.5px Montserrat, sans-serif; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .2); }

/* végpont sor: állapot + metódus + útvonal */
.ep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.ep code { padding: 0; background: none; box-shadow: none; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.m { display: inline-block; padding: 3px 8px; border-radius: 6px; font: 800 11.5px/1.3 Montserrat, sans-serif; letter-spacing: .02em; color: #fff; }
.m.get { background: #1b9e83; }
.m.post { background: #2F6FEB; }
.m.put { background: #d98a00; }
.m.del { background: #e5484d; }
.st { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 11.5px/1.3 Montserrat, sans-serif; white-space: nowrap; vertical-align: middle; }
.st.ok { background: rgba(34, 204, 173, .16); color: #10735f; }
.st.ext { background: rgba(47, 111, 235, .13); color: #2559c4; }
.st.unk { background: rgba(110, 112, 122, .15); color: var(--muted); }
.st.old { background: rgba(229, 72, 77, .14); color: #c0353a; }
h2 .st, h3 .st { margin-left: 6px; font-size: 12px; }

table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 800; font-size: 13.5px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--rule); }
td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { width: 42%; }
td .m { margin-right: 4px; }

@media (prefers-color-scheme: dark) {
  .st.ok { color: #5fe0c4; }
  .st.ext { color: #8db2ff; }
  .st.old { color: #ff8a8e; }
}

@media (max-width: 900px) {
  .docs-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; max-height: none; padding: 14px; border-radius: 16px; background: var(--surface); }
  td:first-child { width: auto; }
  table, thead, tbody, tr, td, th { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  td { padding: 2px 0; border: 0; }
}
