/* Kapyari Labs Unit Converter: one input, every result. Same family as Cinematic Studio, teal accent. */
html { background: #000; color-scheme: dark; }
html::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.92)), url("/assets/space-bg.webp?v=20260923") center / cover no-repeat, #000; filter: grayscale(1); }
body.uc { margin: 0; background: transparent !important; color: #f5f5f7; font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body.uc.uc-sheet { overflow: hidden; }
.uc { --acc: #5eead4; --acc2: #22d3ee; --mut: #a1a1a6; --dim: #6e6e73; --line: rgba(255,255,255,.1); --card: #0d0d10; --card2: #17171b;
  --ease: cubic-bezier(.22,1,.36,1); --display: Outfit, Inter, system-ui, sans-serif; }
.uc *, .uc *::before, .uc *::after { box-sizing: border-box; }
.uc [hidden] { display: none !important; }
.uc-main svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.uc-main h1, .uc-main h2 { margin: 0; font-family: var(--display); letter-spacing: -.03em; }
.uc-main em { font-style: normal; background: linear-gradient(100deg, #ccfbf1, var(--acc) 45%, var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uc-main button, .uc-main input { font: inherit; color: inherit; }
.uc-main :is(button, input, a):focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.uc-main a { color: var(--acc); text-decoration: none; font-weight: 600; }
.uc-main { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }

.uc-hero { text-align: center; padding: 28px 0 22px; }
.uc-kick { margin: 0 0 10px; color: var(--acc); font-size: 14px; font-weight: 700; }
.uc-hero h1 { font-size: clamp(34px, 9vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }

/* The input row */
.uc-from { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.9); }
.uc-num { grid-column: 1 / -1; width: 100%; min-width: 0; height: 64px; padding: 0 14px; border: 0; border-radius: 16px; background: none; font: 700 clamp(30px, 8vw, 40px)/1 var(--display); letter-spacing: -.02em; }
.uc-num:focus { outline: none; background: rgba(255,255,255,.03); }
.uc-pick { position: relative; min-width: 0; }
.uc-unit { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--card2); cursor: pointer; text-align: left; }
.uc-unit span { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.uc-unit b { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-unit small { color: var(--acc); font-size: 14px; font-weight: 600; white-space: nowrap; }
.uc-unit svg { flex: none; width: 20px; height: 20px; color: var(--mut); transition: transform .25s var(--ease); }
.uc-unit[aria-expanded=true] svg { transform: rotate(180deg); }
.uc-swap { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 16px; background: var(--card2); color: var(--acc); cursor: pointer; }
.uc-swap svg { width: 22px; height: 22px; }

/* Unit menu: dropdown on computers, full sheet on phones */
.uc-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; max-height: min(460px, 70vh); border-radius: 18px; background: #111114; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -10px rgba(0,0,0,.95); overflow: hidden; }
.uc-find { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); }
.uc-find svg { flex: none; width: 18px; height: 18px; color: var(--dim); }
.uc-find input { flex: 1; min-width: 0; height: 54px; border: 0; background: none; font-size: 16px; }
.uc-find input:focus { outline: none; }
.uc-close { display: none; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--acc); font-weight: 700; cursor: pointer; }
.uc-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.uc-grp { margin: 10px 10px 4px; color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.uc-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 15px; cursor: pointer; }
.uc-list button i { font-style: normal; color: var(--dim); font-size: 13px; white-space: nowrap; }
.uc-list button:hover, .uc-list button.hi { background: rgba(255,255,255,.06); }
.uc-list button[aria-selected=true] { color: var(--acc); }
.uc-list button[aria-selected=true] i { color: var(--acc); }
.uc-none { padding: 18px; color: var(--mut); text-align: center; }
@media (max-width: 699px) {
  .uc-menu { position: fixed; inset: 0; top: 0; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top); z-index: 1000; }
  .uc-find input { height: 60px; font-size: 17px; }
  .uc-close { display: block; }
}

.uc-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 12px 4px 0; color: var(--dim); font-size: 13.5px; }
.uc-try button { padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--mut); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 3px; }
.uc-try button:hover { color: #fff; }

/* Categories: a quiet scrolling row */
.uc-cats { display: flex; gap: 6px; margin: 22px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.uc-cats::-webkit-scrollbar { display: none; }
.uc-cats button { display: inline-flex; flex: none; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--mut); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.uc-cats svg { width: 16px; height: 16px; }
.uc-cats button[aria-selected=true] { background: #fff; color: #000; }

/* Results */
.uc-sum { margin: 26px 2px 12px; color: var(--mut); font-size: 14.5px; font-weight: 500; }
.uc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 8px; }
.uc-tile { min-width: 0; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: box-shadow .25s, background .25s; }
.uc-tile-main { display: grid; gap: 6px; width: 100%; padding: 16px; border: 0; background: none; text-align: left; cursor: pointer; }
.uc-val { font: 700 clamp(19px, 5.4vw, 26px)/1.1 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.uc-name { color: var(--mut); font-size: 13px; font-weight: 500; }
.uc-name i { font-style: normal; color: var(--dim); }
.uc-tile:hover { background: #121216; }
.uc-tile.on { grid-column: 1 / -1; background: linear-gradient(160deg, rgba(94,234,212,.12), rgba(34,211,238,.03) 60%), var(--card); box-shadow: inset 0 0 0 1.5px rgba(94,234,212,.55); }
.uc-tile.on .uc-val { font-size: clamp(30px, 8vw, 44px); color: #fff; }
.uc-tile.on .uc-name { color: #d4d4d8; font-size: 15px; }
.uc-more { padding: 0 16px 16px; text-align: left; }
.uc-more p { margin: 0 0 4px; color: var(--mut); font-size: 14px; text-align: left !important; }
.uc-more b { color: #fff; font-weight: 600; }
.uc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.uc-acts button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 600; cursor: pointer; }
.uc-acts button[data-act=copy] { background: #fff; color: #000; }
.uc-note { margin: 16px 2px 0; color: var(--dim); font-size: 13px; line-height: 1.55; }

@media (min-width: 700px) {
  .uc-hero { padding: 56px 0 34px; }
  .uc-from { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; }
  .uc-num { grid-column: auto; }
  .uc-cats { flex-wrap: wrap; margin: 22px 0 0; padding: 0; overflow: visible; }
  .uc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 980px) { .uc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .uc-tile.on { grid-column: span 2; grid-row: span 2; } }

/* Lower section */
.uc-sec { padding: 80px 0 100px; }
.uc-sec h2 { text-align: center; font-size: clamp(28px, 7vw, 44px); font-weight: 800; }
.uc-facts { display: grid; grid-template-columns: 1fr; max-width: 640px; margin: 28px auto 0; }
.uc-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.uc-facts div:first-child { border-top: 1px solid var(--line); }
.uc-facts dt { font-weight: 600; }
.uc-facts dd { margin: 0; color: var(--mut); }
@media (min-width: 700px) { .uc-facts { grid-template-columns: 1fr 1fr; column-gap: 40px; max-width: 760px; } .uc-facts div:nth-child(2) { border-top: 1px solid var(--line); } }
.uc-seo { max-width: 700px; margin: 34px auto 0; color: var(--dim); font-size: 14px; line-height: 1.7; text-align: center; }
.uc-more { text-align: center; }
@media (prefers-reduced-motion: reduce) { .uc *, .uc *::before, .uc *::after { transition: none !important; } }

/* Parky 8 Oct: centred, minimal containers */
.uc-from { background: none; box-shadow: none; padding: 0; max-width: 640px; margin: 0 auto; }
.uc-num { text-align: center; border-bottom: 1.5px solid rgba(255,255,255,.18); border-radius: 0; height: 72px; }
.uc-num:focus { background: none; border-bottom-color: var(--acc); }
.uc-unit { justify-content: center; border-radius: 999px; background: rgba(255,255,255,.06); }
.uc-swap { border-radius: 50%; background: rgba(255,255,255,.06); }
.uc-try, .uc-sum, .uc-note { justify-content: center; text-align: center; }
.uc-cats { justify-content: safe center; }
.uc-grid { gap: 4px; }
.uc-tile { background: none; box-shadow: none; text-align: center; }
.uc-tile-main { justify-items: center; text-align: center; padding: 18px 10px; }
.uc-tile:hover { background: rgba(255,255,255,.03); }
.uc-tile.on { box-shadow: none; background: radial-gradient(70% 90% at 50% 40%, rgba(94,234,212,.13), transparent 75%); }
.uc-more, .uc-more p { text-align: center !important; }
.uc-acts { justify-content: center; }
.uc-menu { text-align: left; }
@media (min-width: 700px) { .uc-from { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } }
.uc .uc-num { font: 700 clamp(34px, 9vw, 44px)/1 var(--display); letter-spacing: -.02em; }
