/* CSS */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --surface-3: #ebedf2;
  --border: #cdd2d9;
  --border-soft: #e2e5ea;
  --text: #18191f;
  --text-dim: #565966;
  --text-faint: #9195a1;
  --accent: #0ea5e9;
  --accent-dim: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.14);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: system-ui, -apple-system, sans-serif;
  --body: system-ui, -apple-system, sans-serif;
  --header-h: 60px;
  --alert-phoca-bg: var(--accent-soft);
  --alert-phoca-color: var(--accent-dim);
  --alert-phoca-border: var(--accent-soft);
}

h1 {
  padding-left: 1em;
  padding-right: 1em;
}

.alert-phoca {
  background-color: var(--alert-phoca-bg);
  color: var(--alert-phoca-color);
  border: 1px solid var(--alert-phoca-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin: 1em
}

.alert-phoca-header {
	display:flex;
  align-items:center;
  gap:16px;
}

.alert-phoca-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}
::selection{background:var(--accent-soft);color:var(--text);}


.site-header{
  height:var(--header-h);
  display:flex;
  align-items:center;
  gap:28px;
  padding:0 24px;
  border-bottom:1px solid var(--border-soft);
  background:var(--bg);
  position:sticky;
  top:0;
  z-index:100;
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-family:var(--display);
  font-weight:600;
  font-size:16px;
  letter-spacing:0.01em;
  color:var(--text);
  flex:0 0 auto;
}
.brand-mark{
  width:20px;height:20px;border-radius:6px;
  background:conic-gradient(from 180deg, #57d8c9, #7b8cf0, #f0729b, #f7c65b, #57d8c9);
  flex:0 0 auto;
}
.brand-sep{color:var(--text-faint);font-weight:400;}
.brand-sub{color:var(--text-dim);font-weight:500;}

.site-nav{
  flex:1;
  min-width:0;
}
.site-nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:4px;
  margin:0;padding:0;
}
.site-nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:500;
  color:var(--text-dim);
  padding:9px 14px;
  border-radius:8px;
  border-bottom:2px solid transparent;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.site-nav a:hover{color:var(--text);background:var(--surface-2);}
.site-nav a.active{
  color:var(--text);
  background:var(--surface-2);
  border-bottom-color:var(--accent);
}
.site-nav a.soon{color:var(--text-faint);}
.site-nav a.soon:hover{color:var(--text-faint);background:none;}
.badge{
  font-family:var(--mono);
  font-size:9.5px;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--text-faint);
  background:var(--surface-3);
  border:1px solid var(--border-soft);
  padding:1px 5px;
  border-radius:999px;
}

.nav-more{position:relative;}
.nav-more-btn{
  font-size:14px;font-weight:500;
  color:var(--text-dim);
  background:none;border:none;
  padding:9px 14px;
  border-radius:8px;
}
.nav-more-btn:hover{color:var(--text);background:var(--surface-2);}
.nav-more-menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:180px;
  background:var(--surface);
  border:1px solid var(--border-soft);
  border-radius:10px;
  padding:6px;
  list-style:none;
  margin:0;
  box-shadow:0 12px 32px rgba(0,0,0,.4);
  z-index:10;
}
.nav-more-menu.open{display:block;}
.nav-more-menu li a{display:flex;padding:8px 10px;border-radius:6px;border-bottom:none;}
.nav-more-menu li a:hover{background:var(--surface-2);}

.nav-toggle{
  display:none;
  background:none;border:none;
  color:var(--text);
  font-size:20px;
  width:36px;height:36px;
  border-radius:8px;
}
.nav-toggle:hover{background:var(--surface-2);}

.site-nav-mobile{
  display:none;
  flex-direction:column;
  padding:8px;
  border-bottom:1px solid var(--border-soft);
  background:var(--surface);
}
.site-nav-mobile.open{display:flex;}
.site-nav-mobile a{
  padding:12px 14px;
  font-size:14px;font-weight:500;
  color:var(--text-dim);
  border-radius:8px;
}
.site-nav-mobile a.active{color:var(--text);background:var(--surface-2);}

@media (max-width:900px){
  .site-nav{display:none;}
  .nav-toggle{display:flex;align-items:center;justify-content:center;}
}


.ad-rail {
  padding: 20px 16px;
  border-left: 1px solid var(--border-soft);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ad-slot {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  width: 100%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  min-width: 250px;
}

.ad-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ad-unit {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 1320px) {
  .ad-rail {
    border-left: none;
    border-top: 1px solid var(--border-soft);
    flex-direction: row;
    justify-content: center;
    padding: 16px;
  }
  .ad-slot {
    position: static;
    width: 100%;
    max-width: 300px;
    min-width: 250px;
  }
}


.site-footer{
  border-top:1px solid var(--border-soft);
  padding:18px 24px;
}
.site-footer-inner{
  font-size:12px;
  color:var(--text-faint);
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  max-width:1400px;
  margin:0 auto;
}
.site-footer-inner a{color:var(--accent-dim);}
.site-footer-inner a:hover{color:var(--accent);}


.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  font-size:12.5px;font-weight:500;
  padding:9px 13px;
  border-radius:9px;
  border:1px solid var(--border-soft);
  background:var(--surface-2);
  color:var(--text);
  transition:background .15s, border-color .15s;
}
.btn:hover{background:var(--surface-3);border-color:var(--border);}
.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#08211d;
  font-weight:600;
}
.btn.primary:hover{background:var(--accent-dim);border-color:var(--accent-dim);}
.btn.ghost{background:none;}
.btn-row{display:flex;gap:8px;flex-wrap:wrap;}

input[type=range]{
  -webkit-appearance:none;
  width:100%;
  height:4px;
  border-radius:999px;
  background:var(--surface-3);
  outline:none;
}
input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:16px;height:16px;
  border-radius:50%;
  background:var(--accent);
  border:2px solid var(--surface);
  cursor:pointer;
}
input[type=range]::-moz-range-thumb{
  width:16px;height:16px;border-radius:50%;
  background:var(--accent);border:2px solid var(--surface);cursor:pointer;
}

.segmented{
  display:flex;
  background:var(--surface-2);
  border:1px solid var(--border-soft);
  border-radius:9px;
  padding:3px;
  gap:2px;
}
.segmented button{
  flex:1;
  background:none;border:none;
  font-size:12px;font-weight:500;
  color:var(--text-dim);
  padding:7px 6px;
  border-radius:6px;
}
.segmented button.active{background:var(--surface-3);color:var(--text);}

.field-group{margin-bottom:22px;}
.field-label{
  display:flex;align-items:center;justify-content:space-between;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-bottom:10px;
}
.field-label .val{
  font-family:var(--mono);
  color:var(--text-dim);
  text-transform:none;
  letter-spacing:0;
}
.divider{height:1px;background:var(--border-soft);margin:22px 0;}
