/* Base64 & hash landing page (/tools/base64-hash-toolkit) only. Layers on market-tools.css + browser-tool.css. */
.tp-b64 .tp-main{max-width:1220px}
.tp-b64 .tp-hero{display:grid;gap:10px;max-width:820px;margin:0 0 20px}
.tp-b64 .tp-hero h1{margin:0;font-size:clamp(1.75rem,3.6vw,2.7rem);line-height:1.12;letter-spacing:-.03em}
.tp-b64 .tp-hero .mt-eyebrow{margin:0}
.tp-b64 .tp-lede{margin:0;font-size:1.05rem;line-height:1.6;color:var(--muted,#52647b);max-width:68ch}
.tp-b64 .tp-facts{margin:2px 0 0;font-size:.95rem;color:var(--ink,#071b35)}
.tp-b64 .tp-facts b{font-weight:700}

.tp-b64 .tp-tool{margin:0 0 28px;scroll-margin-top:90px}
.tp-b64 .tp-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;margin:0 0 16px;align-items:start}
.tp-b64 .tp-grid .bt-panel{min-width:0;margin:0;scroll-margin-top:90px}
.tp-b64 .tp-input{border-color:#9fb7e6;box-shadow:0 10px 30px rgba(7,27,53,.08)}
.tp-b64 .tp-input-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin:0 0 6px}
.tp-b64 .tp-input-head h2{margin:0}
.tp-b64 .tp-jump{display:inline-flex;align-items:center;min-height:40px;font-size:.9rem;font-weight:700;color:var(--blue,#1f5cf0)}
.tp-b64 .tp-jump:focus-visible{outline:2px solid #1f5cf0;outline-offset:2px}

.tp-b64 .tp-seg{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.tp-b64 .tp-seg legend{width:100%;float:left;margin-bottom:8px}
.tp-b64 .bt-panel .tp-seg .bt-radio{display:inline-flex;align-items:center;gap:8px;margin:0;letter-spacing:0;min-height:40px;padding:6px 12px;border:1px solid var(--line,#d7e1ee);border-radius:999px;background:#fff;cursor:pointer;font-size:.88rem}
.tp-b64 .tp-seg .bt-radio:has(input:checked){border-color:#1f5cf0;background:#edf4ff;color:#0b3fb3;font-weight:700}
.tp-b64 .tp-seg .bt-radio:has(input:focus-visible){outline:2px solid #1f5cf0;outline-offset:2px}
.tp-b64 .tp-seg code{font-size:.84rem}

.tp-b64 #src-text{min-height:150px;font-size:.95rem;border-color:#9fb7e6}
.tp-b64 #src-text:focus-visible,.tp-b64 #dec-in:focus-visible{outline:3px solid #1f5cf0;outline-offset:1px}
.tp-b64 .tp-out-label{margin-top:14px}
.tp-b64 .tp-out{min-height:110px;background:#f5f8fd;word-break:break-all}
.tp-b64 #dec-in{min-height:110px;word-break:break-all}
.tp-b64 #src-file{min-height:44px}
.tp-b64 .tp-hint{margin:12px 0 0;font-size:.86rem;line-height:1.55;color:var(--muted,#52647b)}
.tp-b64 .bt-actions .mt-primary,.tp-b64 .bt-actions .mt-secondary{min-height:44px}
.tp-b64 .bt-copy{min-height:32px;min-width:52px}
.tp-b64 #hash-fmt{max-width:260px;min-height:42px}
.tp-b64 #chk-out{margin:12px 0 0}
.tp-b64 #chk-in{min-height:90px;word-break:break-all}
.tp-b64 .tp-out{min-height:96px}

.tp-b64 .tp-drop{max-width:none;margin:0;padding:18px 20px;grid-template-columns:auto 1fr;justify-items:start;align-items:center;gap:4px 18px;text-align:left;border-width:1px;background:#f7faff}
.tp-b64 .tp-drop .wt-drop-button{grid-row:1/span 3;min-height:48px;min-width:0;padding:0 22px;font-size:.98rem;box-shadow:none;background:#fff;color:#1250b5;border:1px solid #1768e5}
.tp-b64 .tp-drop .wt-drop-button:hover{transform:none;box-shadow:none;background:#edf4ff}
.tp-b64 .tp-drop .wt-drop-hint,.tp-b64 .tp-drop .wt-drop-meta,.tp-b64 .tp-drop .wt-drop-status,.tp-b64 .tp-drop .wt-drop-alt{margin:0;grid-column:2}
.tp-b64 .tp-drop .wt-drop-alt{justify-content:flex-start}
.tp-b64 .tp-drop .wt-drop-alt a{display:inline-flex;align-items:center;min-height:40px}

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

@media (max-width:900px){
  .tp-b64 .tp-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .tp-b64 .tp-lede{font-size:1rem}
  .tp-b64 .tp-drop{grid-template-columns:1fr;justify-items:stretch;text-align:center;padding:16px 14px}
  .tp-b64 .tp-drop .wt-drop-button{grid-row:auto;width:100%}
  .tp-b64 .tp-drop .wt-drop-hint,.tp-b64 .tp-drop .wt-drop-meta,.tp-b64 .tp-drop .wt-drop-status,.tp-b64 .tp-drop .wt-drop-alt{grid-column:1}
  .tp-b64 .tp-drop .wt-drop-alt{justify-content:center}
  .tp-b64 .bt-actions>button{flex:1 1 140px}
}
@media (prefers-reduced-motion:reduce){
  .tp-b64 *{scroll-behavior:auto}
}
