.brand-logo {
  display: block;
  flex: 0 1 auto;
  width: 196px;
  max-width: min(196px, 42vw);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.brand-section-label {
  color: #91a2ad;
  font: 10px/1.2 var(--mono, ui-monospace, monospace);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-brand .brand-logo {
  width: 176px;
  max-width: 48vw;
  max-height: 36px;
}

.brand-row .brand-logo {
  width: 204px;
  max-width: min(204px, 52vw);
  max-height: 42px;
}

.portal-page .brand-logo {
  width: 174px;
  max-width: min(174px, 39vw);
  max-height: 36px;
}

@media (max-width: 560px) {
  .brand-logo { width: 160px; max-width: 43vw; max-height: 34px; }
  .footer-brand .brand-logo { width: 154px; max-width: 52vw; }
  .brand-section-label { font-size: 8px; letter-spacing: .08em; }
  .brand-row .brand-logo { width: 184px; max-width: 52vw; }
  .portal-page .brand-logo { width: 145px; max-width: 37vw; }
}

.happ-integration { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #28433b; }
.happ-routing { margin: 1rem 0 0; padding: 0; border: 0; min-width: 0; }
.happ-routing legend { font-weight: 600; margin-bottom: .35rem; }
.happ-routing-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(14rem,1fr)); gap: .2rem 1.5rem; margin-top: .6rem; }
.happ-routing .happ-routing-item { margin: 0; display: flex; justify-content: space-between; gap: .75rem; align-items: center; min-height: 2.6rem; cursor: pointer; border-bottom: 1px solid #1d3029; }
.happ-routing .happ-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 2.75rem; height: 1.6rem; margin: 0; padding: 0; border: 0; border-radius: .8rem; background: #2a3b38; cursor: pointer; transition: background .2s; }
.happ-routing .happ-switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: transform .2s; }
.happ-routing .happ-switch:checked { background: #24ed8d; }
.happ-routing .happ-switch:checked::after { transform: translateX(1.15rem); }
.happ-routing .happ-switch:focus-visible { outline: 2px solid #24ed8d; outline-offset: 2px; }
.happ-routing[disabled] { opacity: .6; }
.happ-guide-section { padding: 5rem 0; border-top: 1px solid #28433b; }
.happ-integration h3 { font-size: 1rem; margin-bottom: .75rem; }
.happ-link-row { display: flex; gap: .65rem; align-items: center; }
.happ-link-row input { min-width: 0; flex: 1; margin: 0; }
.happ-link-row .button { flex-shrink: 0; }
.happ-actions, .happ-downloads { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .75rem; }
.happ-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.happ-guide-grid .card { padding: 1.5rem; border: 1px solid #28433b; border-radius: 1rem; background: #101d23; }
@media (max-width: 800px) { .happ-guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .happ-link-row { flex-wrap: wrap; } .happ-link-row input { flex-basis: 100%; } }

/* Windows, Happ, Android: keep the reading order on every screen. */
.download-grid--with-happ { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.download-grid--with-happ .download-card { min-width: 0; }
.download-grid--with-happ .download-card p { min-height: 7.4em; }
.download-card--happ { border-color: #3d7668; background: linear-gradient(145deg, #17302f, #101c25); }
@media (max-width: 950px) {
  .download-grid--with-happ { grid-template-columns: 1fr; }
  .download-grid--with-happ .download-card p { min-height: 0; }
}

/* Compact country flags for the currently available and upcoming Happ routes. */
.country-flag {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 32px;
  height: 22px;
  overflow: hidden;
  border: 1px solid rgba(226, 239, 242, .24);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}
.country-flag--nl {
  background: linear-gradient(to bottom, #ae1c28 0 33.333%, #fff 33.333% 66.666%, #21468b 66.666% 100%);
}
.country-flag--fi { background: #fff; }
.country-flag--fi::before,
.country-flag--fi::after {
  position: absolute;
  content: "";
  background: #003580;
}
.country-flag--fi::before { inset: 0 auto 0 28%; width: 14%; }
.country-flag--fi::after { inset: 39% 0 auto; height: 22%; }
.route-samples { gap: 7px; }
.route-country-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 4px 6px;
  border: 1px solid rgba(111, 181, 160, .22);
  border-radius: 7px;
  color: #dce8e8;
  font: 10px/1.35 var(--mono);
  white-space: nowrap;
}
.route-country-chip .country-flag { width: 25px; height: 17px; border-radius: 4px; }
.route-country-chip--soon { color: #a6b3bd; border-color: rgba(149, 176, 188, .18); }
.route-country-chip--soon .country-flag { filter: saturate(.72); }
.route-line-pending {
  stroke: #8193a0;
  stroke-dasharray: 3 9;
  opacity: .42;
  animation: none;
}
.node-ring-pending { fill: #17202a; stroke: #82919d; opacity: .72; }
.node-pending { fill: #a9b4bd; opacity: .72; }
.map-country-label--soon rect { fill: rgba(15, 27, 37, .84); stroke: rgba(149, 166, 180, .25); }
.map-country-label--soon .map-label-sub { fill: #9aa8b3; font-size: 9px; letter-spacing: .1em; }
.server-row .country-flag { justify-self: start; }
.tag-soon { color: #9baab5; border-color: rgba(149, 176, 188, .22); }
@media (max-width: 560px) {
  .server-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; }
  .server-tag { grid-column: auto; justify-self: end; margin: 0; padding: 4px 6px; font-size: 9px; }
  .route-country-chip { gap: 5px; padding: 4px; font-size: 9px; }
}

/* Header profile menu: soft drop from the button, chevron turns, icons per action (2026-11-11). */
.profile-dropdown{transform-origin:top right;opacity:0;transform:translateY(-8px) scale(.96);transition:opacity .18s ease,transform .2s cubic-bezier(.2,.8,.2,1)}
.profile-dropdown:not([hidden]){animation:none}
.profile-dropdown.is-open{opacity:1;transform:none}
.profile-dropdown>a,.profile-dropdown>button{gap:10px;transition:background .15s ease,color .15s ease,transform .15s ease}
.profile-dropdown>a:active,.profile-dropdown>button:active{transform:scale(.98)}
.profile-dropdown .menu-icon{width:18px;display:inline-grid;place-items:center;color:#7d93a6;font-size:13px}
.profile-dropdown>a:hover .menu-icon,.profile-dropdown>button:hover .menu-icon{color:var(--mint)}
.profile-dropdown .menu-divider{height:1px;margin:4px 6px;background:#24333e}
.profile-dropdown>.menu-danger{color:#ffb3b3}
.profile-dropdown>.menu-danger:hover{background:#2a1a1f;color:#ff8f8f}
.profile-dropdown>.menu-danger:hover .menu-icon{color:#ff8f8f}
.profile-menu-chevron{display:inline-block;transition:transform .2s ease}
.profile-menu-button[aria-expanded="true"] .profile-menu-chevron{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.profile-dropdown,.profile-menu-chevron{transition:none}}
