/* Manrope, SIL Open Font License, self-hosted latin subset. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../resources/fonts/manrope-400.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../resources/fonts/manrope-500.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../resources/fonts/manrope-600.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../resources/fonts/manrope-700.woff2") format("woff2");
}

:root {
  --color-primary: #172c46;
  --color-accent: #f28b35;
  --color-accent-hover: #dc7622;
  --color-background: #f7f8f6;
  --color-surface: #ffffff;
  --color-surface-muted: #e9edf0;
  --color-text: #263445;
  --color-text-muted: #687584;
  --color-border: #dde3e8;
  --color-on-primary: #f7f8f6;
  --radius-card: 16px;
  --radius-button: 10px;
  --radius-input: 9px;
  --shadow-card: 0 8px 24px rgba(23, 44, 70, 0.06);
  --shadow-card-hover: 0 14px 32px rgba(23, 44, 70, 0.1);
  --transition-fast: 220ms ease;
  --transition-standard: 350ms ease;
  --container: 1240px;
  --header-h: 76px;
  --font: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--color-surface);
  color: var(--color-primary);
  border-radius: var(--radius-button);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(247, 248, 246, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.2) blur(12px);
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 24px rgba(23, 44, 70, 0.05);
}

.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-name {
  font-size: 16px;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.site-nav a:hover {
  background: var(--color-surface-muted);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.lang-switch [aria-current="page"] {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-primary);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-muted);
}

.btn-header {
  min-height: 44px;
  padding: 0 16px;
}

.site-footer {
  background: var(--color-primary);
  color: var(--color-on-primary);
  margin-top: 0;
}

.site-footer a {
  color: inherit;
}

.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 28px 28px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-footer-brand .brand-mark {
  background: transparent;
}

.site-footer p {
  margin: 14px 0 0;
  color: rgba(247, 248, 246, 0.78);
  max-width: 38ch;
  font-size: 15px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: rgba(247, 248, 246, 0.62);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer li a {
  text-decoration: none;
  font-weight: 600;
}

.site-footer li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-base {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 248, 246, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(247, 248, 246, 0.68);
  font-size: 14px;
}

.site-footer-base p {
  margin: 0;
  max-width: none;
}

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--container), calc(100% - 40px));
  }
}

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

  .site-nav,
  .header-tools {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-tools {
    display: flex;
  }

  .site-header.is-open {
    height: auto;
  }

  .site-header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header.is-open .site-nav {
    order: 4;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
  }

  .site-header.is-open .header-tools {
    order: 5;
    width: 100%;
    margin: 4px 0 8px;
    justify-content: space-between;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Directory card fixed to the corner of a blog article. */
.blog-float {
  position: fixed;
  z-index: 30;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  width: min(308px, calc(100vw - 36px));
  margin: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-card-hover);
  animation: blog-float-in 0.28s ease;
}

.blog-float-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-float-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.blog-float-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(242, 139, 53, 0.22);
}

.blog-float-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}

.blog-float-close:hover,
.blog-float-close:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.blog-float-title {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-float-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 14px;
}

.blog-float-amount {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.blog-float-unit {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.blog-float-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-bottom: 12px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.blog-float-cta:hover,
.blog-float-cta:focus-visible {
  background: var(--color-accent-hover);
  color: var(--color-primary);
}

.blog-float-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-float-chips li {
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.3;
}

body:has(.site-header.is-open) .blog-float {
  display: none;
}

@keyframes blog-float-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .blog-float {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    width: min(280px, calc(100vw - 28px));
  }
}

@media print {
  .blog-float {
    display: none;
  }
}

.not-found {
  padding: 48px 0 88px;
}

.not-found-code {
  margin: 0;
  color: var(--color-accent-hover);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.not-found h1 {
  margin: 8px 0 0;
  max-width: 16ch;
  color: var(--color-primary);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.not-found .lede,
.not-found .note {
  margin: 16px 0 0;
  max-width: 62ch;
}

.not-found .note {
  color: var(--color-text-muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.not-found h2 {
  margin: 40px 0 0;
  color: var(--color-primary);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.not-found-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.not-found-links a:hover {
  background: var(--color-surface-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Custom list for select. The closed control uses the same field shape as the rest of the site. */
.site-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  letter-spacing: 0;
  text-transform: none;
}

.site-select > select.site-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  max-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.site-select__button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  background-image: none;
  box-shadow: none;
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.site-select.is-open .site-select__button {
  border-color: var(--color-primary);
}

.site-select__button:disabled {
  color: var(--color-text-muted);
  cursor: default;
}

.site-select__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-select__button::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.site-select.is-open .site-select__button::after {
  transform: translateY(-50%) rotate(-135deg);
}

.site-select__list {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
  max-height: 16rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-card);
}

.site-select.is-up .site-select__list {
  top: auto;
  bottom: calc(100% + 6px);
}

.site-select__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.site-select__option:hover {
  background: var(--color-surface-muted);
}

.site-select__option[aria-selected="true"] {
  background: var(--color-surface-muted);
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.site-select__option[aria-selected="true"]:hover {
  background: var(--color-surface-muted);
  background: color-mix(in srgb, var(--color-primary) 18%, var(--color-surface));
}

.site-select__option:focus-visible,
.site-select__option.is-active {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.site-select__option:disabled,
.site-select__option:disabled:hover {
  color: var(--color-text-muted);
  background: transparent;
  box-shadow: none;
  font-weight: 600;
  cursor: default;
}
