:root {
  --kido-shell-blue: #1488dc;
  --kido-shell-orange: #fd7b03;
  --kido-shell-navy: #0d3b5d;
  --kido-shell-yellow: #ffc400;
  --kido-shell-ink: #142136;
}

.material-symbols-outlined {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.kido-public-header {
  position: relative;
  z-index: 80;
  display: flex;
  width: min(100% - 40px, 1180px);
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto;
  padding: 14px 0 10px;
  background: transparent;
  color: var(--kido-shell-ink);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
}

.kido-public-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.kido-public-brand img {
  display: block;
  width: 186px;
  height: 62px;
  border-radius: 10px;
  object-fit: contain;
  object-position: left top;
}

.kido-public-header .header-mode-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(30px, 5.5vw, 84px);
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.kido-public-header .header-mode-nav::-webkit-scrollbar {
  display: none;
}

.kido-public-header .header-mode-nav a {
  position: relative;
  width: auto;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #56616d;
  box-shadow: none;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 36px;
  text-decoration: none;
  white-space: nowrap;
}

.kido-public-header .header-mode-nav a:hover,
.kido-public-header .header-mode-nav a:focus-visible {
  color: var(--kido-shell-ink);
}

.kido-public-header .header-mode-nav a:focus-visible,
.kido-public-header .account-button:focus-visible,
.kido-public-header .account-menu a:focus-visible,
.kido-public-header .account-menu button:focus-visible {
  outline: 3px solid rgba(20, 136, 220, 0.24);
  outline-offset: 3px;
}

.kido-public-header .account-area {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
}

.kido-public-header .account-button {
  display: inline-grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--kido-shell-yellow);
  box-shadow: none;
  cursor: pointer;
}

.kido-public-header .account-button.is-signed-in {
  background: rgba(255, 255, 255, 0.5);
}

.kido-public-header .account-button .material-symbols-outlined {
  font-size: 30px;
}

.kido-public-header .account-avatar {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(20, 136, 220, 0.18);
  border-radius: 50%;
  object-fit: cover;
}

.kido-public-header .account-avatar[hidden],
.kido-public-header [data-site-account-icon][hidden] {
  display: none !important;
}

.kido-public-header .account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: grid;
  width: min(270px, calc(100vw - 32px));
  gap: 4px;
  border: 1px solid rgba(78, 99, 88, 0.18);
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 54px rgba(78, 99, 88, 0.18);
}

.kido-public-header .account-menu[hidden] {
  display: none;
}

.kido-public-header .account-menu a,
.kido-public-header .account-menu button {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: transparent;
  color: var(--kido-shell-ink);
  box-shadow: none;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.kido-public-header .account-menu a:hover,
.kido-public-header .account-menu button:hover {
  background: rgba(78, 99, 88, 0.08);
}

.kido-public-header .account-menu .account-menu-signout {
  margin-top: 4px;
  border-top: 1px solid rgba(78, 99, 88, 0.14);
  border-radius: 0 0 12px 12px;
  padding-top: 12px;
}

.kido-public-header .account-menu .material-symbols-outlined {
  color: var(--kido-shell-blue);
  font-size: 21px;
}

.kido-home-back {
  position: relative;
  transform: translateY(15px);
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--kido-shell-orange);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 36px;
  text-decoration: none;
  white-space: nowrap;
}

.kido-home-back::before {
  color: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: inherit;
  content: "<";
}

.kido-home-back > span {
  text-decoration-line: underline;
  text-decoration-color: var(--kido-shell-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.kido-home-back:hover,
.kido-home-back:focus-visible {
  color: var(--kido-shell-orange);
  background: transparent;
  box-shadow: none;
}

.kido-home-back:focus-visible {
  outline: 3px solid rgba(20, 136, 220, 0.22);
  outline-offset: 4px;
}

.topbar > .blog-brand-title,
.topbar > .brand-mark,
.about-header > .about-brand,
.policy-header-inner > .policy-brand {
  order: -2;
}

.topbar > .kido-home-back,
.about-header > .kido-home-back,
.policy-header-inner > .kido-home-back {
  order: -1;
  margin-right: auto;
}

.policy-header-inner > .kido-home-back {
  margin-left: 4px;
}

.kido-site-footer {
  margin-top: 36px;
  border-top: 5px solid var(--kido-shell-blue);
  background: var(--kido-shell-navy);
  color: #f4f9fc;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
}

.kido-site-footer-inner {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 54px 0 22px;
}

.kido-site-footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.9fr 1.35fr;
  gap: 42px clamp(28px, 5vw, 84px);
}

.kido-site-footer-group h2 {
  margin: 0 0 17px;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.kido-site-footer-group nav {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.kido-site-footer-group a {
  color: #d2e6f2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  text-underline-offset: 4px;
}

.kido-site-footer-group a:hover,
.kido-site-footer-group a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--kido-shell-orange);
}

.kido-site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  border-top: 1px solid rgba(210, 230, 242, 0.28);
  padding-top: 20px;
}

.kido-site-footer-bottom p {
  margin: 0;
  color: #bcd5e4;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .policy-header-inner {
    flex-wrap: wrap;
  }

  .policy-nav {
    flex: 1 0 100%;
  }
}

@media (max-width: 760px) {
  .kido-public-header {
    flex-wrap: wrap;
    row-gap: 12px;
    width: min(100% - 24px, 1180px);
    padding-top: 8px;
  }

  .kido-public-brand {
    order: 1;
    min-width: 0;
  }

  .kido-public-brand img {
    width: clamp(120px, 37.2vw, 144px);
    height: clamp(41px, 12.6vw, 48px);
  }

  .kido-public-header .account-area {
    order: 2;
    margin-left: auto;
  }

  .kido-public-header .header-mode-nav {
    order: 4;
    flex: 1 0 100%;
    justify-content: center;
    margin-inline: 0;
    overflow-x: visible;
  }

  .kido-site-footer {
    margin-top: 24px;
  }

  .kido-site-footer-inner {
    width: min(100% - 36px, 1440px);
    padding-top: 40px;
  }

  .kido-site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
  }

  .kido-site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 38px;
  }
}

@media (max-width: 520px) {
  .kido-home-back {
    min-height: 36px;
    padding: 0;
  }

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