/* cURL to code landing page (/tools/curl-to-code-converter) only. Layers on market-tools.css + browser-tool.css. */
.tp-curl [hidden]{display:none!important}
.tp-curl .tp-main{max-width:1220px;padding-top:clamp(14px,2.2vw,28px)}

/* intro */
.tp-curl .tp-hero{display:grid;gap:8px;max-width:820px;margin:0 0 16px}
.tp-curl .tp-hero .mt-eyebrow{margin:0}
.tp-curl .tp-hero h1{margin:0;font-size:clamp(1.7rem,3.4vw,2.6rem);line-height:1.1;letter-spacing:-.03em}
.tp-curl .tp-lede{margin:0;font-size:1.04rem;line-height:1.55;color:var(--muted,#52647b);max-width:66ch}
.tp-curl .tp-facts{margin:2px 0 0;font-size:.94rem;color:var(--ink,#071b35)}

/* converter */
.tp-curl .tp-tool{margin:0 0 20px;scroll-margin-top:90px}
.tp-curl .tp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px;align-items:stretch}
.tp-curl .tp-grid>.bt-panel{min-width:0;margin:0;display:flex;flex-direction:column;padding:16px 16px 18px}
.tp-curl .tp-input{border-color:#9fb7e6;box-shadow:0 10px 30px rgba(7,27,53,.08)}
.tp-curl .tp-panel-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 8px}
.tp-curl .tp-panel-head label{margin:0;font-size:.95rem;font-weight:700;letter-spacing:0}
.tp-curl .tp-sample{font-size:.82rem;color:var(--muted,#52647b)}
.tp-curl #cu-in{flex:1 1 auto;min-height:240px;white-space:pre;overflow:auto;overflow-wrap:normal;font-size:.84rem;border-color:#9fb7e6}
.tp-curl #cu-in:focus-visible{outline:3px solid #1f5cf0;outline-offset:1px}
.tp-curl .tp-help{margin:10px 0 0;font-size:.84rem;line-height:1.5;color:var(--muted,#52647b)}
.tp-curl .tp-input .bt-error{margin-top:10px}

/* language tabs (radio group; panes switch with :has, all panes show without it) */
.tp-curl .tp-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px;padding:0;border:0;min-width:0}
.tp-curl .tp-tabs legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.tp-curl .bt-panel .tp-tab{position:relative;display:inline-flex;margin:0;font-size:inherit;letter-spacing:0}
.tp-curl .tp-tab input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.tp-curl .tp-tab span{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border:1px solid var(--line,#d7e1ee);border-radius:999px;background:#fff;color:var(--ink,#071b35);font-weight:700;font-size:.92rem;cursor:pointer}
.tp-curl .tp-tab span:hover{border-color:#1f5cf0}
.tp-curl .tp-tab input:checked+span{background:var(--ink,#071b35);border-color:var(--ink,#071b35);color:#fff}
.tp-curl .tp-tab input:focus-visible+span{outline:2px solid #1769ff;outline-offset:2px}

.tp-curl .tp-pane{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.tp-curl .tp-pane+.tp-pane{margin-top:14px}
.tp-curl .tp-pane-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tp-curl .bt-panel .tp-pane-head h2{margin:0;font-size:.95rem}
.tp-curl .tp-copy{min-height:42px;min-width:84px;padding:0 18px}
.tp-curl .tp-copy:focus-visible{outline:2px solid #1769ff;outline-offset:2px}
.tp-curl .tp-pre{flex:1 1 auto;margin:8px 0 0;min-height:260px;max-height:460px}
.tp-curl .tp-pre:focus-visible{outline:2px solid #1769ff;outline-offset:2px}
@supports selector(:has(*)){
  .tp-curl .tp-pane{display:none}
  .tp-curl .tp-pane+.tp-pane{margin-top:0}
  .tp-curl .tp-output:has(input[value=py]:checked) .tp-pane-py,
  .tp-curl .tp-output:has(input[value=js]:checked) .tp-pane-js,
  .tp-curl .tp-output:has(input[value=php]:checked) .tp-pane-php,
  .tp-curl .tp-output:has(input[value=go]:checked) .tp-pane-go{display:flex}
}

/* notes and request details */
.tp-curl .tp-notes .tp-note{margin:12px 0 0;line-height:1.55}
.tp-curl .tp-note--warn{border-color:#e7c77a;background:#fff8e6;color:#5c4200}
.tp-curl .tp-details{margin:12px 0 0;border:1px solid var(--line,#d7e1ee);border-radius:12px;background:#fff}
.tp-curl .tp-details>summary{display:flex;align-items:center;min-height:44px;padding:0 16px;font-weight:700;font-size:.92rem;cursor:pointer}
.tp-curl .tp-details>summary:focus-visible{outline:2px solid #1769ff;outline-offset:2px;border-radius:12px}
.tp-curl .tp-details[open]>summary{border-bottom:1px solid var(--line,#d7e1ee)}
.tp-curl .tp-details .tp-sum{margin:14px 16px 0;grid-template-columns:minmax(90px,.35fr) minmax(0,1fr)}
.tp-curl .tp-sum dt,.tp-curl .tp-sum dd{display:flex;align-items:center;min-height:44px;padding:6px 12px}
.tp-curl .tp-sum dd{flex-direction:row;justify-content:space-between;gap:10px}
.tp-curl .tp-sum dd>span{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.84rem;overflow-wrap:anywhere;min-width:0}
.tp-curl .bt-copy{min-height:36px;min-width:56px}
.tp-curl .bt-copy:focus-visible{outline:2px solid #1769ff;outline-offset:2px}
.tp-curl .tp-table-wrap{margin:0 16px 16px;overflow-x:auto}
.tp-curl .tp-table-wrap .bt-table{margin-top:14px}
.tp-curl .tp-more{display:flex;flex-wrap:wrap;gap:8px 20px;margin:8px 0 0}
.tp-curl .tp-more a{display:inline-flex;align-items:center;min-height:44px;color:var(--blue,#1f5cf0);font-weight:700}
.tp-curl .tp-more a:focus-visible{outline:2px solid #1769ff;outline-offset:2px}

/* what you get */
.tp-curl .tp-get{margin-top:48px}
.tp-curl .tp-get h2{margin-bottom:14px}
.tp-curl .tp-get-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tp-curl .tp-card{padding:18px 20px;border:1px solid var(--line,#d7e1ee);border-radius:14px;background:#fff}
.tp-curl .tp-card h3{margin:0 0 8px;font-size:1.02rem}
.tp-curl .tp-card ul{margin:0;padding-left:18px;line-height:1.6}
.tp-curl .tp-card li+li{margin-top:4px}

/* text */
.tp-curl .tp-text h3{margin:26px 0 6px}
.tp-curl .tp-text p{max-width:760px;line-height:1.6}
.tp-curl .tp-text code,.tp-curl .tp-card code{font-size:.95em;overflow-wrap:anywhere}
.tp-curl .mt-context-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:22px}
.tp-curl .mt-context-links a{display:inline-flex;align-items:center;min-height:44px}
.tp-curl .mt-context-links a:focus-visible,.tp-related a:focus-visible{outline:2px solid #1769ff;outline-offset:2px}
.tp-related .related-tools-list{display:flex;flex-wrap:wrap;gap:10px;padding:0;list-style:none}
.tp-related .related-tools-list a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;text-decoration:none;font-weight:600}

/* Browser tool: the footer's generic result-expiry note does not apply here. */
.tp-curl .wt-foot-note{display:none}

@media (max-width:900px){
  .tp-curl .tp-grid{grid-template-columns:minmax(0,1fr)}
  .tp-curl .tp-get-grid{grid-template-columns:minmax(0,1fr)}
  .tp-curl #cu-in{min-height:0;height:190px}
  .tp-curl .tp-pre{min-height:200px;max-height:360px}
}
@media (max-width:600px){
  .tp-curl .tp-hero{gap:6px;margin-bottom:12px}
  .tp-curl .tp-hero h1{font-size:clamp(1.45rem,6.6vw,1.9rem)}
  .tp-curl .tp-lede{font-size:.95rem}
  .tp-curl .tp-facts{font-size:.88rem}
  .tp-curl .tp-grid{gap:12px}
  .tp-curl .tp-grid>.bt-panel{padding:12px 12px 14px}
  .tp-curl #cu-in{min-height:0;height:150px}
  .tp-curl .tp-main{padding-left:16px;padding-right:16px}
  .tp-curl .tp-help{display:none}
  .tp-curl .tp-tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,.85fr) minmax(0,.75fr);gap:4px}
  .tp-curl .tp-tab span{justify-content:center;width:100%;padding:0 4px;font-size:.84rem}
  .tp-curl .bt-panel .tp-tab{display:flex}
  .tp-curl .tp-sum{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
  .tp-curl *{transition:none!important}
}
@media (max-width:360px){
  .tp-curl .tp-tab span{font-size:.8rem}
}
