:root {
  --social-ink: #254e70;
  --social-copy: #506873;
  --social-coral: #df6b63;
  --social-coral-dark: #bf514a;
  --social-bg: #fbfdfc;
  --social-paper: #fff;
  --social-mint: #e9f5f1;
  --social-sky: #eaf5f9;
  --social-yellow: #fff4d5;
  --social-border: #dce7eb;
  --social-shadow: 0 16px 34px rgba(37, 78, 112, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.social-page {
  margin: 0;
  padding-bottom: 5rem;
  background: var(--social-bg);
  color: var(--social-copy);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

body.social-page--tw {
  font-family: "Noto Sans TC", "DM Sans", "Microsoft JhengHei", Arial, sans-serif;
}

body.social-page--cn {
  font-family: "Noto Sans SC", "DM Sans", "Microsoft YaHei", Arial, sans-serif;
}

body.social-page--ja {
  font-family: "Noto Sans JP", "DM Sans", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

body.social-page--ko {
  font-family: "Noto Sans KR", "DM Sans", "Malgun Gothic", Arial, sans-serif;
}

.social-page h1,
.social-page h2,
.social-page h3 {
  margin: 0;
  color: var(--social-ink);
  font-family: "Nunito", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.18;
}

.social-page--tw h1,
.social-page--tw h2,
.social-page--tw h3,
.social-page--cn h1,
.social-page--cn h2,
.social-page--cn h3,
.social-page--ja h1,
.social-page--ja h2,
.social-page--ja h3,
.social-page--ko h1,
.social-page--ko h2,
.social-page--ko h3 {
  font-family: inherit;
}

.social-page--tw .social-kicker,
.social-page--cn .social-kicker,
.social-page--ja .social-kicker,
.social-page--ko .social-kicker {
  letter-spacing: 0;
  text-transform: none;
}

.social-page a { color: var(--social-ink); }

.social-shell {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.social-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--social-border);
  background: rgba(255, 255, 255, .98);
}

.social-header__inner {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  min-height: 74px;
}

.social-brand {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  color: var(--social-ink);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.social-brand img {
  display: block;
  width: 42px;
  height: 42px;
}

.social-brand span span { color: var(--social-coral); }

.social-nav {
  display: flex;
  gap: .12rem;
  margin-left: auto;
}

.social-nav a {
  padding: .56rem .7rem;
  border-radius: 7px;
  color: var(--social-copy);
  font-weight: 700;
  text-decoration: none;
}

.social-nav a:hover,
.social-nav a:focus-visible,
.social-nav a[aria-current="page"] {
  background: var(--social-sky);
  color: var(--social-ink);
}

.social-platforms {
  display: flex;
  gap: .35rem;
}

.social-platforms a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--social-border);
  border-radius: 7px;
}

.social-platforms img {
  display: block;
  width: 21px;
  height: 21px;
}

.social-languages {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: .3rem;
  align-items: center;
  padding: .4rem;
  border: 1px solid var(--social-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 28px rgba(37, 78, 112, .14);
}

.social-languages > span {
  padding: 0 .4rem 0 .25rem;
  font-size: .78rem;
  font-weight: 700;
}

.social-languages a {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  min-width: 45px;
  min-height: 40px;
  justify-content: center;
  padding: .25rem .35rem;
  border-radius: 7px;
  font-size: .76rem;
  text-decoration: none;
}

.social-languages b { font-weight: 700; }
.social-languages img { width: 19px; height: auto; }

.social-languages a:hover,
.social-languages a:focus-visible { background: var(--social-sky); }

.social-languages a[aria-current="page"] {
  background: var(--social-mint);
  box-shadow: inset 0 0 0 1px #cce3da;
}

.social-intro {
  padding: clamp(2.7rem, 7vw, 4.4rem) 0 clamp(2.4rem, 6vw, 4rem);
  background: linear-gradient(110deg, #fff7f2 0%, #f5fbfa 52%, #eff8fb 100%);
  border-bottom: 1px solid var(--social-border);
}

.social-intro__inner { max-width: 820px; }

.social-kicker {
  display: inline-flex;
  margin: 0 0 .75rem;
  color: var(--social-coral-dark);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.social-intro h1 {
  max-width: 720px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.social-lead {
  max-width: 650px;
  margin: 1rem 0 1.55rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.social-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  gap: .48rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .68rem 1.05rem;
  border-radius: 7px;
  background: var(--social-coral);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.social-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.social-btn:hover,
.social-btn:focus-visible { background: var(--social-coral-dark); }

.social-btn--outline {
  border: 1px solid var(--social-border);
  background: #fff;
  color: var(--social-ink) !important;
}

.social-btn--outline img { filter: none; }
.social-btn--outline:hover,
.social-btn--outline:focus-visible { background: var(--social-sky); }

.featured-post,
.next-steps { padding: clamp(2rem, 5vw, 3.2rem) 0; }

.section-head {
  display: flex;
  gap: 1.2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.post-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.post-highlight {
  display: grid;
  grid-template-columns: clamp(136px, 38%, 188px) minmax(0, 1fr);
  gap: .9rem;
  padding: .7rem;
  border: 1px solid var(--social-border);
  border-radius: 8px;
  background: var(--social-paper);
  box-shadow: var(--social-shadow);
}

.post-highlight__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.post-highlight__body {
  align-self: center;
  min-width: 0;
  padding: .2rem 0;
}

.post-highlight__tag {
  display: inline-flex;
  margin-bottom: .45rem;
  padding: .25rem .52rem;
  border-radius: 999px;
  background: var(--social-yellow);
  color: #8c6520;
  font-size: .7rem;
  font-weight: 700;
}

.post-highlight__tag--hope {
  background: var(--social-mint);
  color: #39705d;
}

.post-highlight__body h3 {
  font-size: clamp(1.04rem, 2vw, 1.2rem);
}

.post-highlight__body p {
  margin: .43rem 0 .65rem;
  font-size: .88rem;
  line-height: 1.46;
}

.post-highlight__actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.post-highlight__actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: .34rem .56rem;
  border: 1px solid var(--social-border);
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.post-highlight__actions a:first-child {
  border-color: var(--social-coral);
  background: var(--social-coral);
  color: #fff;
}

.post-highlight__actions a:hover,
.post-highlight__actions a:focus-visible {
  background: var(--social-sky);
  color: var(--social-ink);
  border-color: var(--social-border);
}

.connect-section {
  padding: clamp(2rem, 5vw, 3.2rem) 0;
  background: var(--social-sky);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.connect-card {
  display: flex;
  gap: .85rem;
  min-height: 170px;
  padding: 1.1rem;
  border: 1px solid var(--social-border);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.connect-card > img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.connect-card--character > img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
}

.connect-card h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.connect-card p { margin: 0 0 .6rem; font-size: .94rem; }
.connect-card strong { font-size: .9rem; }

.next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.next-grid a {
  min-height: 150px;
  padding: 1.05rem;
  border: 1px solid var(--social-border);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.next-grid span {
  display: inline-flex;
  margin-bottom: .65rem;
  color: var(--social-coral-dark);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.next-grid h3 { margin-bottom: .42rem; font-size: 1.14rem; }
.next-grid p { margin: 0; font-size: .94rem; }

.social-footer {
  border-top: 1px solid var(--social-border);
  background: #fff;
  padding: 1.5rem 0;
}

.social-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: .7rem 1.5rem;
  align-items: center;
}

.social-footer__inner .social-brand { font-size: 1rem; }
.social-footer__inner .social-brand img { width: 38px; height: 38px; }
.social-footer__inner p { margin: .35rem 0 0; font-size: .9rem; }

.social-footer nav {
  display: flex;
  gap: .85rem;
}

.social-footer nav a {
  font-weight: 700;
  text-decoration: none;
}

.social-copyright {
  grid-column: 1 / -1;
  padding-top: .85rem;
  border-top: 1px solid var(--social-border);
}

@media (max-width: 900px) {
  .social-header__inner {
    flex-wrap: wrap;
    padding: .7rem 0;
  }

  .social-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .post-highlights,
  .connect-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body.social-page { padding-bottom: 4.8rem; }
  .social-shell { width: min(calc(100% - 1.2rem), 480px); }
  .social-brand span { display: none; }
  .social-platforms { margin-left: auto; }

  .social-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: .5rem .62rem;
    font-size: .87rem;
  }

  .social-languages {
    right: auto;
    left: 50%;
    bottom: max(.62rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    gap: .16rem;
    padding: .3rem;
    max-width: calc(100% - .8rem);
  }

  .social-languages > span { display: none; }
  .social-languages a { min-width: 43px; min-height: 40px; padding: .24rem .3rem; }
  .section-head { display: block; }
  .text-link { display: inline-flex; margin-top: .7rem; }
  .social-actions .social-btn { width: 100%; }
  .post-highlight {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: .7rem;
    padding: .55rem;
  }
  .post-highlight__body p { font-size: .84rem; }
  .connect-card { min-height: 0; }
  .social-footer__inner { grid-template-columns: 1fr; }
  .social-footer nav { flex-wrap: wrap; }
}
