/* Header domain search: field in the header, results popup centred in the viewport.
   Shared by every page that carries the site header. Uses only the existing palette tokens. */
@keyframes hd-spin{to{rotate:360deg}}
@keyframes hd-shimmer{from{background-position:120% 0}to{background-position:-120% 0}}
/* Make room for the field: the nav keeps its items (and the Produk chevron) at full size. */
.platform-nav .nav-chevron{flex-shrink:0}
.desktop-nav>a,.desktop-nav .nav-link{flex-shrink:0}
@media (min-width:1361px) and (max-width:1560px){
  .site-header{gap:28px}
  .desktop-nav{gap:22px}
  .site-header .nav-actions{gap:16px}
}
/* =========================================================
   Header domain search — shared by every page
   ========================================================= */
.hd-search{position:relative;display:flex;align-items:center;margin-right:6px}
.hd-search-toggle{display:none;place-items:center;width:40px;height:40px;color:var(--ink);transition:color .2s}
.hd-search-toggle:hover{color:var(--primary-text)}
.hd-search-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.hd-sheet{position:relative}
.hd-form{position:relative;display:flex;align-items:center;width:236px;height:40px;border:1px solid var(--line);border-radius:2px;background:var(--surface);transition:width .35s var(--m-out,cubic-bezier(.16,1,.3,1)),border-color .2s,box-shadow .2s}
.hd-form:hover{border-color:#91BDA7}
.hd-form:focus-within,.hd-search.has-results .hd-form{width:320px;border-color:var(--primary);box-shadow:0 0 0 4px #29AE871f}
.hd-form-icon{flex:none;width:16px;height:16px;margin-left:12px;fill:none;stroke:var(--muted);stroke-width:1.5;transition:stroke .2s}
.hd-form:focus-within .hd-form-icon{stroke:var(--primary-text)}
.hd-form input{flex:1;min-width:0;height:100%;padding:0 6px 0 10px;border:0;background:transparent;color:var(--ink);font:400 14px/1 var(--font);letter-spacing:-.005em;outline:none;-webkit-appearance:none;appearance:none}
.hd-form input::placeholder{color:var(--muted);opacity:.85}
.hd-form input::-webkit-search-cancel-button{-webkit-appearance:none}
.hd-kbd{flex:none;margin-right:10px;padding:0 6px;border:1px solid var(--line);font:600 11px/18px var(--font);color:var(--muted)}
.hd-go{display:none;flex:none;place-items:center;width:32px;height:32px;margin-right:3px;background:var(--primary);color:#F9FBFD;transition:background .2s}
.hd-go:hover{background:#06633F}
.hd-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hd-form:focus-within .hd-kbd{display:none}
.hd-form:focus-within .hd-go,.hd-search.has-results .hd-go{display:grid}
.hd-search.has-results .hd-kbd{display:none}

/* results panel: directly under the field */
.hd-panel{position:absolute;right:0;top:calc(100% + 23px);z-index:60;width:440px;max-height:calc(100svh - var(--header) - 40px);overflow:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--line);box-shadow:0 28px 56px -32px #10121166;animation:hd-in .28s var(--m-out,cubic-bezier(.16,1,.3,1)) both}
[data-theme=dark] .hd-panel{box-shadow:0 28px 56px -28px #000}
.hd-panel[hidden]{display:none}
@keyframes hd-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

.hd-main{padding:18px 20px;border-bottom:1px solid var(--line);background:var(--surface);transition:background .3s}
.hd-main.is-available{background:linear-gradient(180deg,var(--primary-soft),var(--surface) 70%)}
.hd-main-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hd-eyebrow{font-size:9px;letter-spacing:.08em;color:var(--muted)}
.hd-status{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border:1px solid var(--line);font-size:11px;font-weight:600;line-height:18px;color:var(--muted);background:var(--surface)}
.hd-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.hd-main.is-loading .hd-status::before{background:none;width:9px;height:9px;border:1.5px solid var(--line);border-top-color:var(--primary);animation:hd-spin .8s linear infinite}
.hd-main.is-available .hd-status{color:var(--primary-text);border-color:#91BDA7;background:var(--surface)}
.hd-main.is-taken .hd-status{color:var(--ink)}
.hd-main.is-taken .hd-status::before{background:var(--muted)}
.hd-main.is-error .hd-status{color:#B7791F}
[data-theme=dark] .hd-main.is-error .hd-status{color:#E8B24A}
.hd-domain{display:block;margin-top:12px;font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.03em;color:var(--ink);overflow-wrap:anywhere}
.hd-domain b{color:var(--primary-text);font-weight:600}
.hd-main.is-taken .hd-domain{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.hd-main.is-taken .hd-domain b{color:inherit}
.hd-main-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:14px}
.hd-price span{display:block;font-size:11px;line-height:16px;color:var(--muted)}
.hd-price strong{display:block;font-size:20px;line-height:26px;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
:root body .hd-search .hd-buy{min-height:40px;padding:8px 14px;font-size:14px;line-height:20px;gap:14px;white-space:nowrap}
:root body .hd-search .hd-buy>span{font-size:16px;line-height:16px}
.hd-taken-copy{flex:1;font-size:13px;line-height:1.55;color:var(--muted)}

.hd-alts-head{display:flex;justify-content:space-between;padding:12px 20px 6px;font-size:9px;letter-spacing:.08em;color:var(--muted)}
.hd-alts{list-style:none;margin:0;padding:0 8px 6px}
.hd-alt{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-top:1px solid var(--line);transition:background .2s,opacity .3s}
.hd-alt:first-child{border-top:0}
.hd-alt:hover{background:var(--paper)}
.hd-alt-name{font-size:14px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-alt-name b{color:var(--primary-text)}
.hd-alt-meta{font-size:11px;color:var(--muted);white-space:nowrap}
.hd-alt.is-available .hd-alt-meta{color:var(--primary-text)}
.hd-alt.is-taken{opacity:.62}
.hd-alt.is-taken .hd-alt-name b{color:var(--muted)}
.hd-alt-right{display:inline-flex;align-items:center;gap:10px;justify-self:end}
.hd-alt-price{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.hd-alt-buy,.hd-alt-link{display:inline-grid;place-items:center;min-width:52px;height:28px;padding:0 10px;border:1px solid var(--primary);font-size:12px;font-weight:600;color:var(--primary-text);transition:background .2s,color .2s}
.hd-alt-buy:hover,.hd-alt-buy:focus-visible{background:var(--primary);color:#F9FBFD}
.hd-alt-link{border-color:var(--line);color:var(--muted)}
.hd-alt-tag{font-size:11px;color:var(--muted);padding:0 4px}
.hd-alt.is-available{animation:hd-row .35s var(--m-out,ease) both}
@keyframes hd-row{from{background:var(--primary-soft)}to{background:transparent}}

.hd-skel{display:inline-block;background:linear-gradient(90deg,var(--line) 0%,var(--soft) 45%,var(--line) 90%);background-size:220% 100%;animation:hd-shimmer 1.3s linear infinite}
.hd-skel-price{width:120px;height:30px}
.hd-skel-btn{width:132px;height:40px}
.hd-skel-sm{width:86px;height:14px;justify-self:end}

.hd-msg{padding:18px 20px;border-bottom:1px solid var(--line)}
.hd-msg p{font-size:14px;line-height:1.6;color:var(--ink);padding-left:10px;border-left:2px solid var(--primary)}
.hd-msg.is-warn p,.hd-msg.is-error p{border-left-color:#E8B24A}
.hd-msg .text-link{margin-top:10px;font-size:13px}
.hd-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px 12px;border-top:1px solid var(--line);background:var(--paper)}
.hd-foot-note{font-size:11px;line-height:1.5;color:var(--muted)}
.hd-foot-link{flex:none;font-size:12px;font-weight:600;color:var(--primary-text)}
.hd-foot-link:hover{text-decoration:underline;text-underline-offset:3px}

/* narrower screens: icon in the header opens a full-width search sheet under it */
@media (max-width:1360px){
  .hd-search{position:static;margin-right:0}
  .hd-search-toggle{display:grid}
  .hd-sheet{display:none;position:absolute;left:0;right:0;top:100%;z-index:60;padding:12px max(5.2vw,24px) 16px;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 24px 40px -32px #10121166}
  .hd-search.is-sheet-open .hd-sheet{display:block;animation:hd-in .25s var(--m-out,ease) both}
  .hd-search.is-sheet-open .hd-search-toggle{color:var(--primary-text)}
  .hd-form,.hd-form:focus-within,.hd-search.has-results .hd-form{width:100%;max-width:640px;height:48px;margin:0 auto}
  .hd-kbd{display:none}
  .hd-go{display:grid;width:38px;height:38px;margin-right:4px}
  .hd-panel{position:static;width:auto;max-width:640px;margin:10px auto 0;max-height:min(70svh,560px);animation:none}
}
@media (max-width:700px){
  .hd-sheet{padding:10px 16px 14px}
  .hd-main{padding:16px}
  .hd-domain{font-size:20px}
  .hd-main-bottom{flex-wrap:wrap}
  :root body .hd-search .hd-buy{flex:1 1 auto;justify-content:space-between}
  .hd-alts-head{padding:12px 16px 6px}
  .hd-alts{padding:0 4px 6px}
  .hd-alt{grid-template-columns:minmax(0,1fr) auto;padding:0 12px}
  .hd-alt-meta{display:none}
  .hd-foot{flex-direction:column;align-items:flex-start;padding:10px 16px 12px}
}
@media (prefers-reduced-motion:reduce){.hd-panel,.hd-sheet,.hd-alt.is-available{animation:none}.hd-skel{animation:none}.hd-form{transition:none}}

/* ---------- Header search: fixed width, popup centred in the viewport ---------- */
/* The field never changes size: focus only changes its border/ring. The right slot is a fixed 40px
   area shared by the "/" hint (idle) and the submit arrow (focused / with results). */
.hd-form,.hd-form:focus-within,.hd-search.has-results .hd-form{width:236px}
.hd-form input{padding-right:44px}
.hd-kbd,.hd-go{position:absolute;top:50%;translate:0 -50%;margin:0}
.hd-kbd{right:10px}
.hd-go{right:3px}
/* Desktop popup: fixed to the viewport, horizontally centred, just below the header */
.hd-panel{position:fixed;top:calc(var(--hd-top,122px) + 12px);left:0;right:0;margin-inline:auto;width:min(440px,calc(100vw - 32px));max-height:calc(100svh - var(--hd-top,122px) - 36px)}
@media (max-width:1360px){
  .hd-form,.hd-form:focus-within,.hd-search.has-results .hd-form{width:100%;max-width:640px}
  .hd-panel{position:static;width:auto;max-width:640px;margin:10px auto 0;max-height:min(70svh,560px)}
}
