/* Shared layout for localized SEO theme pages. Content stays locale-specific. */
.seo-theme-page,
.seo-theme-page * {
  box-sizing: border-box;
}

html,
body.seo-theme-page {
  margin: 0;
}

body.seo-theme-page {
  color: var(--ink);
  background: #f1eee5;
  background-image: radial-gradient(circle at 3px 3px, rgba(35, 38, 47, .07) 2.4px, transparent 2.6px);
  background-size: 26px 26px;
  background-attachment: fixed;
  font-family: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

body.seo-theme-page:lang(en) {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.seo-theme-page:lang(ja) {
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
}

body.seo-theme-page:lang(ko) {
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body.seo-theme-page:lang(de),
body.seo-theme-page:lang(es),
body.seo-theme-page:lang(fr),
body.seo-theme-page:lang(pt),
body.seo-theme-page:lang(it),
body.seo-theme-page:lang(nl),
body.seo-theme-page:lang(pl) {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.seo-theme-page .wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding: 22px 20px calc(96px + env(safe-area-inset-bottom));
}

.seo-theme-page .top {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-block-end: 6px;
}

.seo-theme-page .logo {
  width: 44px;
  height: 44px;
}

.seo-theme-page .title-block {
  min-width: 0;
}

.seo-theme-page .top h1 {
  margin: 0;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
}

.seo-theme-page .crumb {
  margin-block-start: 3px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.seo-theme-page .crumb a,
.seo-theme-page .p a,
.seo-theme-page .ul a,
.seo-theme-page .qa .a a,
.seo-theme-page .more a,
.seo-theme-page .foot a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.seo-theme-page .locale-menu {
  position: relative;
  z-index: 20;
  align-self: start;
}

.seo-theme-page .locale-menu summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
}

.seo-theme-page .locale-menu summary::-webkit-details-marker {
  display: none;
}

.seo-theme-page .locale-menu summary::after {
  content: "▾";
  font-size: 11px;
}

.seo-theme-page .locale-menu[open] summary::after {
  transform: rotate(180deg);
}

.seo-theme-page .locale-options {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  display: grid;
  width: max-content;
  min-width: 172px;
  max-width: min(280px, calc(100vw - 32px));
  max-height: min(360px, 60vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(35, 38, 47, .18);
}

.seo-theme-page .locale-options a {
  padding: 10px 12px;
  color: var(--ink);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.seo-theme-page .locale-options a:hover,
.seo-theme-page .locale-options a:focus-visible {
  background: #eef7ef;
  outline: none;
}

.seo-theme-page .locale-options a[aria-current="page"] {
  color: #fff;
  background: var(--green);
}

.seo-theme-page .lead {
  margin: 14px 0 26px;
  color: #5a5650;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.85;
}

.seo-theme-page .lead b,
.seo-theme-page .p b,
.seo-theme-page .ul li b,
.seo-theme-page .note b {
  color: var(--ink);
  font-weight: 900;
}

.seo-theme-page .sec {
  margin-block-start: 34px;
}

.seo-theme-page .sec-h {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-end: 16px;
}

.seo-theme-page .sec-h .tag {
  flex: 0 0 auto;
  margin-block-start: 1px;
  padding: 5px 11px;
  color: #fff;
  background: #23262f;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.seo-theme-page .sec-h h2 {
  min-width: 0;
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.seo-theme-page .p {
  max-width: 860px;
  margin: 0 0 14px;
  color: #5a5650;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
}

.seo-theme-page .ul {
  max-width: 860px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.seo-theme-page .ul li {
  position: relative;
  margin-block-end: 10px;
  padding-inline-start: 26px;
  color: #5a5650;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.78;
}

.seo-theme-page .ul li::before {
  content: "●";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 2px;
  color: var(--green);
  font-size: 12px;
}

.seo-theme-page .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  max-width: 900px;
}

.seo-theme-page .item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 12px;
  color: inherit;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(35, 38, 47, .12);
  text-align: center;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}

.seo-theme-page .item:hover {
  transform: translate(-1px, -2px);
  box-shadow: 6px 8px 0 rgba(35, 38, 47, .16);
}

.seo-theme-page .item canvas {
  width: 104px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.seo-theme-page .item .nm {
  margin-block-start: 10px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.seo-theme-page .item .go {
  align-self: stretch;
  margin-block-start: auto;
  padding: 9px 6px;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  transition: transform .1s, box-shadow .1s;
}

.seo-theme-page .item:hover .go {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.seo-theme-page .faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-theme-page .qa {
  padding: 15px 17px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(35, 38, 47, .1);
}

.seo-theme-page .qa .q {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.seo-theme-page .qa .q .qd {
  flex: 0 0 auto;
  color: var(--green);
}

.seo-theme-page .qa .a {
  margin: 0;
  color: #5a5650;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.75;
}

.seo-theme-page .cta {
  margin: 40px 0 6px;
  text-align: center;
}

.seo-theme-page .cta > a {
  display: inline-block;
  max-width: 100%;
  padding: 15px 34px;
  color: #fff;
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}

.seo-theme-page .cta > a:hover {
  transform: translate(1px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.seo-theme-page .cta .tip {
  margin-block-start: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.seo-theme-page .more {
  margin-block-start: 30px;
  padding: 16px 18px;
  background: #fff;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  line-height: 1.8;
}

.seo-theme-page .more .mt {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.seo-theme-page .more a {
  font-size: 14px;
}

.seo-theme-page .foot {
  margin-block-start: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
}

[dir="rtl"] .seo-theme-page .locale-menu summary::after {
  margin-inline-start: 0;
}

@media (max-width: 680px) {
  .seo-theme-page .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .seo-theme-page .wrap {
    padding: 16px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .seo-theme-page .top {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .seo-theme-page .logo {
    width: 38px;
    height: 38px;
  }

  .seo-theme-page .top h1 {
    font-size: 22px;
  }

  .seo-theme-page .locale-menu summary {
    min-width: 40px;
    min-height: 38px;
    justify-content: center;
    padding-inline: 9px;
  }

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

  .seo-theme-page .lead {
    margin-block-start: 12px;
    font-size: 15px;
    line-height: 1.75;
  }

  .seo-theme-page .sec {
    margin-block-start: 28px;
  }

  .seo-theme-page .sec-h {
    gap: 8px;
  }

  .seo-theme-page .sec-h h2 {
    font-size: 18px;
  }

  .seo-theme-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .seo-theme-page .item {
    padding: 12px 9px;
  }

  .seo-theme-page .item canvas {
    width: 92px;
  }
}

@media (max-width: 350px) {
  .seo-theme-page .top {
    grid-template-columns: 34px minmax(0, 1fr) 40px;
  }

  .seo-theme-page .logo {
    width: 34px;
    height: 34px;
  }

  .seo-theme-page .top h1 {
    font-size: 20px;
  }
}
