.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand img {
  border-radius: 12px;
}

.guide-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
}

.guide-link:hover {
  color: var(--pink);
}

.g-hero {
  padding: 64px 24px 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 70%, var(--bg) 100%);
}

.g-hero .wrap {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.g-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--soft);
}

.g-crumbs a {
  color: var(--body);
}

.g-crumbs a:hover {
  color: var(--pink);
}

.g-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--pink-text);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--shadow);
}

.g-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.g-lead {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

.g-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--soft);
}

.g-layout {
  padding: 8px 24px 72px;
}

.g-layout .wrap {
  max-width: 1040px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 56px;
}

.g-toc {
  position: sticky;
  top: 96px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 4px 18px var(--shadow);
  font-size: 14.5px;
}

.g-toc-title {
  padding: 6px 10px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.g-toc a {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--body);
}

.g-toc a:hover {
  background: var(--track);
  color: var(--ink);
}

.g-body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--article);
}

.g-hub-end .g-body {
  margin: 0 auto;
}

.g-body h2 {
  margin: 44px 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: 96px;
}

.g-body p {
  margin: 0 0 16px;
}

.g-body strong {
  color: var(--ink);
  font-weight: 600;
}

.g-body ul,
.g-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.g-body h3 {
  margin: 24px 0 6px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}

.g-body li {
  margin-bottom: 8px;
}

.g-body a {
  color: var(--pink-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g-quick {
  margin: 0 0 8px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--card);
  border-left: 5px solid var(--pink);
  box-shadow: 0 4px 18px var(--shadow);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

.g-note {
  margin-top: 36px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--warning-light);
  color: var(--warning);
  font-size: 15.5px;
  line-height: 1.55;
}

.g-note strong {
  color: var(--warning);
}

.g-sources {
  font-size: 15.5px;
  line-height: 1.5;
}

.g-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
}

.g-btn-pink {
  background: var(--pink-aa);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(238, 95, 156, 0.28);
}

.g-btn-pink:hover {
  background: var(--pink-pressed);
}

.g-btn-line {
  background: var(--card);
  color: var(--purple-ink) !important;
  box-shadow: inset 0 0 0 1.5px var(--dash);
}

.g-btn-line:hover {
  background: var(--purple-chip);
}

.g-mid {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 40px 0;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--purple-light) 100%);
  box-shadow: 0 8px 28px var(--shadow);
}

.g-mid-shot {
  flex: 0 0 150px;
}

.g-mid-shot img {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 30px var(--shadow-strong);
}

.g-mid-title,
.g-end-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.g-mid-copy p,
.g-end p {
  margin: 10px 0 18px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--body);
}

.g-end {
  margin-top: 48px;
  padding: 36px 28px;
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--hero-top) 0%, var(--cta-end) 100%);
  box-shadow: 0 8px 28px var(--shadow);
}

.g-end img {
  display: block;
  margin: 0 auto 14px;
  border-radius: 16px;
}

.g-end .g-btns {
  justify-content: center;
}

.g-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--purple-light) 100%);
  box-shadow: 0 6px 20px var(--shadow);
}

.g-mini img {
  flex: none;
  border-radius: 12px;
}

.g-mini-copy {
  flex: 1 1 220px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--body);
}

.g-mini-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.g-mini .g-btn {
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.g-more {
  padding: 0 24px 80px;
}

.g-more .wrap {
  max-width: 1040px;
}

.g-more h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.g-hub {
  padding-top: 8px;
}

.g-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.g-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 4px 18px var(--shadow);
  color: var(--body);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.g-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow-strong);
}

.g-card .g-chip {
  align-self: flex-start;
  background: var(--pink-light);
  box-shadow: none;
}

.g-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.g-card-desc {
  font-size: 15.5px;
  line-height: 1.5;
}

.g-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  color: var(--soft);
}

.g-card-go {
  font-weight: 600;
  color: var(--pink-text);
}

@media (max-width: 960px) {
  .g-toc {
    display: none;
  }

  .g-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guide-link {
    display: none;
  }

  .g-hero {
    padding: 44px 24px 36px;
  }

  .g-body {
    font-size: 17px;
  }

  .g-body h2 {
    font-size: 24px;
  }

  .g-mid {
    flex-direction: column;
    text-align: center;
  }

  .g-mid .g-btns {
    justify-content: center;
  }

  .g-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.g-search {
  max-width: 620px;
  margin: 0 auto 32px;
}

.g-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.g-search-box {
  position: relative;
}

.g-search-box input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 22px;
  border: 0;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 4px 18px var(--shadow), inset 0 0 0 1.5px var(--dash);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.g-search-box input::-webkit-search-cancel-button {
  display: none;
}

.g-search-box input:focus {
  box-shadow: 0 4px 18px var(--shadow), inset 0 0 0 2px var(--pink);
}

.g-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--track);
  color: var(--body);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.g-search-clear[hidden],
.g-card[hidden],
.g-empty[hidden] {
  display: none;
}

.g-empty {
  margin: 0 0 24px;
  text-align: center;
  font-size: 17px;
  color: var(--body);
}

.home-guides {
  margin-top: 32px;
}

.home-guides-all {
  margin: 28px 0 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.home-guides-all a {
  color: var(--pink-text);
}
