@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --community-blue: #2563eb;
  --community-blue-dark: #1d4ed8;
  --community-blue-pale: #eff6ff;
  --community-ink: #101828;
  --community-text: #344054;
  --community-muted: #667085;
  --community-line: #e4e7ec;
  --community-soft: #f7f9fc;
  --community-white: #fff;
  --community-red: #e11d48;
  --community-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

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

html { scroll-behavior: smooth; }

body.community-page {
  margin: 0;
  padding: 0;
  min-width: 320px;
  color: var(--community-ink);
  background: var(--community-white);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.community-page.is-community-share-open { position: fixed; right: 0; left: 0; width: 100%; overflow: hidden; }

.community-page button,
.community-page input,
.community-page select,
.community-page textarea { font: inherit; }

.community-page button,
.community-page a { -webkit-tap-highlight-color: transparent; }

.community-page :where(a) { color: inherit; text-decoration: none; }
.community-page svg { display: block; }

.community-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff !important;
  background: var(--community-ink);
  transform: translateY(-160%);
}

.community-skip-link:focus { transform: translateY(0); }
.community-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.community-main { overflow: hidden; }

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

.community-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.community-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.community-button:hover { transform: translateY(-1px); }
.community-button:focus-visible,
.community-page button:focus-visible,
.community-page a:focus-visible,
.community-page input:focus-visible,
.community-page select:focus-visible,
.community-page textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, .24); outline-offset: 2px; }

.community-button--primary { color: #fff; background: var(--community-blue); box-shadow: 0 10px 24px rgba(37, 99, 235, .22); }
.community-button--primary:hover { background: var(--community-blue-dark); box-shadow: 0 13px 28px rgba(37, 99, 235, .27); }
.community-button--quiet { color: var(--community-text); background: #fff; border-color: var(--community-line); }
.community-button--quiet:hover { color: var(--community-blue-dark); border-color: #a9c5fb; background: var(--community-blue-pale); }
.community-button--light { width: 100%; color: var(--community-blue-dark); background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, .1); }
.community-button--disabled { cursor: default; color: #98a2b3; background: #f2f4f7; border-color: #eaecf0; box-shadow: none; }
.community-button--disabled:hover { transform: none; }
.community-button--compact { min-height: 42px; padding: 9px 14px; font-size: 13px; }
.community-button--wide { width: 100%; }

/* Hero */
.community-hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(191, 219, 254, .7), transparent 28%),
    radial-gradient(circle at 92% 80%, rgba(224, 231, 255, .75), transparent 29%),
    linear-gradient(135deg, #f8fbff 0%, #f4f7ff 48%, #fbfaff 100%);
  border-bottom: 1px solid #edf1f7;
}

.community-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image: radial-gradient(#8aa9dd 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}

.community-hero__inner {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  align-items: center;
  gap: 58px;
  padding-block: 72px;
}

.community-hero__copy { position: relative; z-index: 2; }
.community-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  color: var(--community-blue-dark);
  background: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
}

.community-eyebrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.community-hero h1 { max-width: 650px; margin: 0; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -.052em; font-weight: 900; }
.community-hero__copy > p { max-width: 620px; margin: 20px 0 0; color: var(--community-muted); font-size: 16px; font-weight: 500; line-height: 1.75; }
.community-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.community-hero__visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1298 / 733;
  border: 1px solid rgba(164, 188, 225, .65);
  border-radius: 28px;
  overflow: hidden;
  background: #eef3ed;
  box-shadow: 0 28px 70px rgba(53, 82, 132, .16);
}

.community-hero__map-picture,
.community-hero__map { display: block; width: 100%; height: 100%; }
.community-hero__map { object-fit: cover; }

.community-feed-hero {
  padding: 54px 0 44px;
  border-bottom: 1px solid #edf1f7;
  background:
    radial-gradient(circle at 10% 15%, rgba(191, 219, 254, .58), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #f5f7ff 100%);
}

.community-feed-hero__inner { display: grid; gap: 16px; }
.community-back-link--feed { width: max-content; margin-bottom: 2px; }
.community-feed-hero__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.community-feed-hero__copy { min-width: 0; flex: 1 1 auto; }
.community-feed-hero__title-row > .community-button { flex: 0 0 auto; margin-top: 34px; }
.community-feed-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.community-feed-hero p {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--community-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Categories */
.community-category-section { padding: 64px 0 58px; background: #fff; }
.community-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.community-section-heading span { display: block; margin-bottom: 6px; color: var(--community-blue); font-size: 12px; font-weight: 900; letter-spacing: .06em; }
.community-section-heading h2 { margin: 0; font-size: clamp(23px, 3vw, 32px); line-height: 1.25; letter-spacing: -.035em; }
.community-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.community-category-card {
  min-width: 0;
  min-height: 132px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--community-line);
  border-radius: 15px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.community-category-card:hover,
.community-category-card.is-active { transform: translateY(-3px); border-color: #a9c5fb; background: #f9fbff; box-shadow: 0 13px 28px rgba(50, 79, 128, .09); }
.community-category-card__icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 11px; background: linear-gradient(135deg, #eff6ff, #e0e7ff); font-size: 19px; }
.community-category-card--all .community-category-card__icon { background: linear-gradient(135deg, #e0f2fe, #eef2ff); }
.community-category-card--region .community-category-card__icon { background: linear-gradient(135deg, #ecfdf5, #dbeafe); }
.community-category-card__copy { display: block; min-width: 0; }
.community-category-card__copy strong { display: block; font-size: 14px; line-height: 1.3; }
.community-category-card__copy small { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--community-muted); font-size: 10.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-category-card__count { position: absolute; top: 13px; right: 13px; min-width: 24px; padding: 3px 6px; border-radius: 999px; color: var(--community-muted); background: #f2f4f7; font-size: 9.5px; font-weight: 800; text-align: center; }
.community-category-card.is-active .community-category-card__count { color: #fff; background: var(--community-blue); }

.community-home-guide-section { padding: 0 0 72px; background: #fff; }
.community-home-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 14px;
}
.community-home-guide-grid .community-sidebar-card { min-height: 100%; }
.community-home-guide-actions { display: grid; gap: 10px; margin-top: 18px; }
.community-home-guide-actions .community-button--light { max-width: 320px; }

/* Feed and toolbar */
.community-feed-section { padding: 62px 0 96px; overflow-anchor: none; border-top: 1px solid #eef1f5; background: var(--community-soft); }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; align-items: start; gap: 30px; }
.community-feed { min-width: 0; }
.community-feed__header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.community-feed__eyebrow { margin: 0 0 5px; color: var(--community-blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.community-feed__header h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.community-result-count { margin: 7px 0 0; color: var(--community-muted); font-size: 12px; }
.community-result-count strong { color: var(--community-blue-dark); }

.community-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.community-toolbar__sort-row { display: flex; justify-content: flex-end; }
.community-search { min-width: 0; height: 50px; display: flex; align-items: center; gap: 10px; padding-left: 15px; border: 1px solid var(--community-line); border-radius: 13px; background: #fff; box-shadow: 0 3px 9px rgba(16,24,40,.025); }
.community-search:focus-within { border-color: #8cb4fb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.community-search > svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: #98a2b3; stroke-width: 2; stroke-linecap: round; }
.community-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--community-ink); background: transparent; font-size: 14px; }
.community-search input::placeholder { color: #98a2b3; }
.community-search button { align-self: stretch; min-width: 68px; padding: 0 14px; border: 0; border-left: 1px solid #edf0f4; border-radius: 0 12px 12px 0; color: var(--community-blue-dark); background: #f8faff; font-size: 12px; font-weight: 800; cursor: pointer; }
.community-sort { width: 136px; position: relative; }
.community-sort .community-custom-select__trigger {
  height: 42px;
  padding-inline: 14px 15px;
  border-radius: 999px;
  color: var(--community-text);
  font-size: 12.5px;
  font-weight: 850;
  box-shadow: 0 3px 9px rgba(16,24,40,.025);
}
.community-sort .community-custom-select__menu { max-height: none; }

.community-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; padding: 2px 0 5px; overflow: visible; }
.community-filter-tabs::-webkit-scrollbar { display: none; }
.community-filter-tab { max-width: 100%; flex: 0 0 auto; min-height: 37px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--community-line); border-radius: 999px; color: var(--community-muted); background: #fff; font-size: 11.5px; font-weight: 800; text-align: left; white-space: normal; transition: all .16s ease; }
.community-filter-tab__icon { width: 1.2em; height: 1.2em; flex: 0 0 1.2em; display: grid; place-items: center; line-height: 1; }
.community-filter-tab__label { min-width: 0; overflow-wrap: anywhere; }
.community-filter-tab:hover { color: var(--community-blue-dark); border-color: #a9c5fb; }
.community-filter-tab.is-active { color: #fff; border-color: var(--community-ink); background: var(--community-ink); }
.community-filter-tabs--hero {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 1080px;
  margin: 20px 0 0;
  padding: 0;
}
.community-filter-tabs--hero .community-filter-tab {
  min-height: 58px;
  justify-content: flex-start;
  padding: 12px 15px;
  border-radius: 14px;
  color: var(--community-text);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 22px rgba(16, 24, 40, .055);
  font-size: 13px;
  line-height: 1.25;
}
.community-filter-tabs--hero .community-filter-tab:hover {
  transform: translateY(-2px);
  border-color: #a9c5fb;
  background: #fff;
  box-shadow: 0 13px 30px rgba(37, 99, 235, .1);
}
.community-filter-tabs--hero .community-filter-tab.is-active {
  color: #fff;
  border-color: var(--community-blue);
  background: linear-gradient(135deg, var(--community-blue), var(--community-blue-dark));
  box-shadow: 0 14px 32px rgba(37, 99, 235, .2);
}

/* Public plan library inside the route-showcase feed. The card contract mirrors /plans. */
.community-route-library { margin: 2px 0 24px; }
.community-route-library__header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.community-route-library__header h3 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.03em; }
.community-route-library__header p { margin: 5px 0 0; color: var(--community-muted); font-size: 11.5px; line-height: 1.55; }
.community-route-library__header > strong { flex: 0 0 auto; color: var(--community-muted); font-size: 11.5px; }
.community-route-library .plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.community-route-library .plan-card { min-width: 0; min-height: 290px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 8px; color: #172033; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.community-route-library .plan-card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 15px 34px rgba(15, 23, 42, .11); }
.community-route-library .card-visual { min-height: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #dbeafe; }
.community-route-library .card-map { width: 100%; height: 100%; display: block; object-fit: cover; }
.community-route-library .card-country { max-width: calc(100% - 24px); position: absolute; top: 12px; left: 12px; overflow: hidden; padding: 7px 10px; border-radius: 6px; color: #1e3a8a; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(15, 23, 42, .16); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.community-route-library .card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 19px; }
.community-route-library .card-meta { display: flex; gap: 7px; color: #64748b; font-size: 12px; font-weight: 700; }
.community-route-library .card-title { margin: 9px 0 13px; overflow-wrap: anywhere; font-size: 18px; font-weight: 850; line-height: 1.4; }
.community-route-library .card-places { margin-top: auto; overflow: hidden; color: #475569; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.community-route-library .card-open { margin-top: 15px; color: #2563eb; font-size: 13px; font-weight: 800; }
.community-route-library__empty { display: grid; gap: 5px; padding: 28px 20px; border: 1px dashed #cbd5e1; border-radius: 12px; color: var(--community-muted); background: rgba(255, 255, 255, .7); text-align: center; }
.community-route-library__empty strong { color: var(--community-text); font-size: 14px; }
.community-route-library__empty span { font-size: 11px; }
.community-route-stories-title { margin: 30px 0 12px; padding-top: 24px; border-top: 1px solid #e1e7ef; font-size: 19px; letter-spacing: -.025em; }

/* Post cards */
.community-post-list { display: grid; gap: 6px; }
.community-post-card { padding: 4px 8px; border: 1px solid #e6eaf0; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(16,24,40,.03); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.community-post-card:hover { transform: translateY(-2px); border-color: #cbd9ed; box-shadow: 0 13px 30px rgba(16,24,40,.075); }
.community-post-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-post-category { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 999px; color: var(--community-blue-dark); background: var(--community-blue-pale); font-size: 9px; font-weight: 800; line-height: 1.3; }
.community-post-time { flex: 0 0 auto; color: #98a2b3; font-size: 9px; font-weight: 600; }
.community-post-card h3 { margin: 2px 0 0; overflow: hidden; font-size: 15px; line-height: 1.25; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.community-post-card h3 a { display: block; overflow: hidden; background-image: linear-gradient(var(--community-blue),var(--community-blue)); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%; text-overflow: ellipsis; white-space: nowrap; transition: background-size .2s ease, color .2s ease; }
.community-post-card h3 a:hover { color: var(--community-blue-dark); background-size: 100% 1px; }
.community-read-body-link { width: max-content; min-height: 28px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 8px; border: 1px solid #dbe7f8; border-radius: 8px; color: var(--community-blue-dark); background: #f7faff; font-size: 10px; font-weight: 850; white-space: nowrap; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.community-read-body-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.community-read-body-link:hover { color: #fff; border-color: var(--community-blue); background: var(--community-blue); transform: translateY(-1px); }
.community-read-body-link:hover svg { transform: translateX(2px); }
.community-read-body-link:focus-visible { outline: 3px solid rgba(37,99,235,.24); outline-offset: 2px; }

.community-route-preview { height: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: center; gap: 6px; margin-top: 5px; padding: 0 7px 0 0; overflow: hidden; border: 1px solid #dbe7f8; border-radius: 8px; background: linear-gradient(120deg, #f8fbff, #f5f7ff); transition: border-color .18s ease, background .18s ease; }
.community-route-preview:hover { border-color: #93b9fa; background: #f4f8ff; }
.community-route-preview__map { position: relative; height: 100%; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; border-right: 1px solid #dbe7f8; background: #dbeafe; }
.community-route-preview__map img,
.community-detail-route__visual img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.community-route-preview__map img[hidden],
.community-detail-route__visual img[hidden] { display: none; }
.community-route-thumbnail-fallback { width: 100%; height: 100%; display: grid; place-items: center; padding: 2px; color: #53719e; background: linear-gradient(145deg, #dbeafe, #e0e7ff); font-size: 6.5px; font-weight: 800; line-height: 1.1; text-align: center; }
.community-route-preview__copy { min-width: 0; }
.community-route-preview__copy small,
.community-route-preview__copy span { display: none; }
.community-route-preview__copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.community-route-preview__arrow { width: 14px; height: 14px; fill: none; stroke: #7890b4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.community-post-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.community-author { min-width: 0; display: flex; align-items: center; gap: 6px; }
.community-author__avatar { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #d8e5fb; border-radius: 50%; color: var(--community-blue-dark); background: #eef5ff; font-size: 9px; font-weight: 900; }
.community-author > span:last-child { min-width: 0; }
.community-author strong { display: block; overflow: hidden; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.community-author small { display: block; margin-top: 1px; overflow: hidden; color: #98a2b3; font-size: 8px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.community-post-actions { min-width: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.community-view-count { min-height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid #e6eaf0; border-radius: 999px; color: var(--community-muted); background: #f8fafc; font-size: 9px; font-weight: 750; white-space: nowrap; }
.community-view-count svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.community-view-count strong { color: var(--community-text); font-size: 9.5px; }
.community-like { min-height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid var(--community-line); border-radius: 999px; color: var(--community-muted); background: #fff; font-size: 9.5px; font-weight: 800; cursor: pointer; }
.community-like svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.community-like:hover,
.community-like.is-liked { color: var(--community-red); border-color: #fecdd3; background: #fff1f2; }
.community-like.is-liked svg { fill: currentColor; }
.community-like.is-pending { pointer-events: none; opacity: .6; }
/* Sidebar */
.community-sidebar { position: sticky; top: 98px; display: grid; gap: 14px; }
.community-sidebar-card { padding: 22px; border: 1px solid #e4e9f0; border-radius: 18px; background: #fff; }
.community-sidebar-card--accent { position: relative; overflow: hidden; color: #fff; border: 0; background: linear-gradient(145deg, #1d4ed8, #315ec8 58%, #4338ca); box-shadow: 0 18px 38px rgba(35, 74, 173, .2); }
.community-sidebar-card--accent::after { content: ""; position: absolute; width: 160px; height: 160px; right: -72px; top: -75px; border: 30px solid rgba(255,255,255,.08); border-radius: 50%; }
.community-sidebar-card__icon { width: 42px; height: 42px; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.14); font-size: 21px; }
.community-sidebar-card h2 { position: relative; z-index: 1; margin: 14px 0 0; font-size: 17px; line-height: 1.45; letter-spacing: -.025em; }
.community-sidebar-card > p { position: relative; z-index: 1; margin: 9px 0 18px; color: rgba(255,255,255,.78); font-size: 11.5px; line-height: 1.65; }
.community-sidebar-card:not(.community-sidebar-card--accent) h2 { margin-top: 0; }
.community-verification-note { margin-bottom: 0 !important; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.12); }
.community-guide-list { display: grid; gap: 14px; margin: 17px 0 0; padding: 0; list-style: none; }
.community-guide-list li { display: flex; gap: 10px; align-items: flex-start; }
.community-guide-list li > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--community-soft); font-size: 16px; }
.community-guide-list p { margin: 1px 0 0; }
.community-guide-list strong { display: block; font-size: 12px; }
.community-guide-list small { display: block; margin-top: 2px; color: var(--community-muted); font-size: 10.5px; line-height: 1.45; }
.community-safety-note { display: flex; align-items: flex-start; gap: 8px; margin: 2px 3px 0; color: var(--community-muted); font-size: 9.5px; line-height: 1.55; }
.community-safety-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: #7f91aa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Empty and pagination */
.community-empty { padding: 68px 24px; border: 1px dashed #cdd8e8; border-radius: 18px; background: rgba(255,255,255,.65); text-align: center; }
.community-empty__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 18px; background: var(--community-blue-pale); font-size: 28px; }
.community-empty h3 { margin: 0; font-size: 18px; }
.community-empty p { margin: 8px 0 20px; color: var(--community-muted); font-size: 12px; }
.community-pagination { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 30px; }
.community-page-link { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; color: var(--community-muted); font-size: 12px; font-weight: 800; }
.community-page-link:hover { color: var(--community-blue-dark); border-color: #c7d8f5; background: #fff; }
.community-page-link.is-active { color: #fff; background: var(--community-ink); }
.community-page-link--arrow { border-color: var(--community-line); background: #fff; }
.community-page-link--arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.community-page-gap { padding: 0 3px; color: #98a2b3; }

/* Independent write page */
.community-write-main {
  min-height: 72vh;
  padding: 48px 0 88px;
  background:
    radial-gradient(circle at 10% 0, rgba(219, 234, 254, .65), transparent 27%),
    linear-gradient(180deg, #f8fbff 0, #f6f8fc 100%);
}
.community-write-back { margin-bottom: 22px; }
.community-write-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.community-write-card { overflow: visible; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; box-shadow: var(--community-shadow); }
.community-write-header { padding: 30px 34px 24px; border-bottom: 1px solid #edf0f3; }
.community-write-header > span { display: block; margin-bottom: 7px; color: var(--community-blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.community-write-header h1 { margin: 0; font-size: clamp(26px, 3.3vw, 36px); line-height: 1.25; letter-spacing: -.04em; }
.community-write-header p { margin: 10px 0 0; color: var(--community-muted); font-size: 12px; }
.community-write-form__body { display: grid; gap: 20px; padding: 28px 34px; }
.community-write-form__footer { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 34px; border-top: 1px solid #edf0f3; border-radius: 0 0 22px 22px; background: #fbfcfd; }
.community-write-guide { position: sticky; top: 92px; padding: 24px; border: 1px solid #e2e8f0; border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 32px rgba(16,24,40,.06); }
.community-write-guide h2 { margin: 0 0 18px; font-size: 18px; letter-spacing: -.025em; }
.community-write-gate { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 16px; padding: 42px 28px; text-align: center; }
.community-write-gate p { margin: 0; color: var(--community-muted); font-size: 14px; }
.community-write-notice { display: flex; align-items: flex-start; gap: 8px; padding: 12px 13px; border-radius: 11px; color: #5d6f89; background: #f5f8fc; font-size: 10.5px; line-height: 1.55; }
.community-write-notice svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.community-field { display: grid; gap: 7px; }
.community-field > span { color: var(--community-text); font-size: 12px; font-weight: 800; }
.community-field em { margin-left: 4px; color: #98a2b3; font-size: 9px; font-style: normal; font-weight: 700; }
.community-field input,
.community-field select,
.community-field textarea { width: 100%; border: 1px solid #dfe3e9; border-radius: 11px; outline: 0; color: var(--community-ink); background: #fff; font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.community-field input,
.community-field select { height: 46px; padding: 0 13px; }
.community-field textarea { min-height: 164px; padding: 12px 13px; resize: vertical; line-height: 1.65; }
.community-field input:focus,
.community-field select:focus,
.community-field textarea:focus { border-color: #83adf7; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.community-field > small { justify-self: end; color: #98a2b3; font-size: 9.5px; }
.community-field__help { justify-self: start !important; margin-top: -2px; }
.community-field-row { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 10px; }
.community-custom-select { position: relative; min-width: 0; }
.community-custom-select__trigger {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid #dfe3e9;
  border-radius: 11px;
  color: var(--community-ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.community-custom-select__trigger:hover { border-color: #b9c7da; }
.community-custom-select__trigger:disabled { cursor: default; color: #98a2b3; background: #f5f7fa; }
.community-custom-select__trigger:focus-visible,
.community-custom-select.is-open .community-custom-select__trigger { border-color: #83adf7; outline: 0; box-shadow: 0 0 0 3px rgba(37,99,235,.09); }
.community-custom-select.is-invalid .community-custom-select__trigger { border-color: #dc6b72; box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
.community-custom-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-custom-select__value.is-placeholder { color: #7b8798; }
.community-custom-select__caret { width: 8px; height: 8px; flex: 0 0 auto; border-right: 2px solid #667085; border-bottom: 2px solid #667085; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.community-custom-select.is-open .community-custom-select__caret { transform: translateY(2px) rotate(225deg); }
.community-custom-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
.community-custom-select__menu {
  position: fixed;
  z-index: 10020;
  width: min(100%, calc(100vw - 24px));
  max-height: 270px;
  margin-top: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,.13);
  scrollbar-width: thin;
}
.community-custom-select__menu[hidden] { display: none !important; }
.community-custom-select__search-wrap { position: sticky; z-index: 2; top: -6px; padding: 4px 3px 7px; background: #fff; }
.community-custom-select .community-custom-select__search {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 42px;
  border: 1px solid #dfe3e9;
  border-radius: 9px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  color: var(--community-ink);
  background: #f8fafc;
  font-size: 13px;
}
.community-custom-select .community-custom-select__search::-webkit-search-decoration,
.community-custom-select .community-custom-select__search::-webkit-search-cancel-button,
.community-custom-select .community-custom-select__search::-webkit-search-results-button,
.community-custom-select .community-custom-select__search::-webkit-search-results-decoration { display: none; }
.community-custom-select__search-wrap::before { content: ""; position: absolute; left: 17px; top: 17px; width: 11px; height: 11px; border: 1.8px solid #7b8798; border-radius: 50%; pointer-events: none; }
.community-custom-select__search-wrap::after { content: ""; position: absolute; left: 28px; top: 28px; width: 7px; height: 1.8px; border-radius: 2px; background: #7b8798; transform: rotate(45deg); pointer-events: none; }
.community-custom-select .community-custom-select__search:focus { border-color: #83adf7; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.community-custom-select__group { padding: 8px 10px 5px; color: #7b8798; font-size: 10px; font-weight: 850; letter-spacing: .02em; }
.community-custom-select__option { width: 100%; min-height: 40px; display: flex; align-items: center; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--community-text); background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.community-custom-select__option:hover,
.community-custom-select__option:focus-visible { outline: 0; color: var(--community-blue-dark); background: #eff5ff; }
.community-custom-select__option.is-selected { color: var(--community-blue-dark); background: #e8f1ff; font-weight: 800; }
.community-custom-select__empty { margin: 4px; padding: 18px 10px; color: #7b8798; font-size: 12px; text-align: center; }
.community-custom-select__option[hidden],
.community-custom-select__group-block[hidden],
.community-custom-select__empty[hidden] { display: none !important; }
.community-route-field[hidden] { display: none; }
.community-form-status { min-height: 18px; margin: -4px 0 0; color: var(--community-muted); font-size: 11px; font-weight: 700; }
.community-form-status.is-error { color: #b42318; }

/* Detail */
.community-detail-main { min-height: 70vh; padding: 54px 0 92px; background: linear-gradient(#f8faff 0 210px, #f7f9fc 210px 100%); }
.community-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 30px; }
.community-detail-article { min-width: 0; padding: 34px 38px; border: 1px solid #e5e9f0; border-radius: 22px; background: #fff; box-shadow: 0 16px 45px rgba(16,24,40,.07); }
.community-back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 30px; color: var(--community-muted); font-size: 12px; font-weight: 750; }
.community-back-link:hover { color: var(--community-blue-dark); }
.community-back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.community-detail-header { padding-bottom: 27px; border-bottom: 1px solid #edf0f3; }
.community-detail-header h1 { margin: 14px 0 21px; font-size: clamp(28px, 4vw, 42px); line-height: 1.22; letter-spacing: -.045em; overflow-wrap: anywhere; }
.community-detail-author-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.community-detail-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.community-view-count--detail { background: #fff; }
.community-author--large .community-author__avatar { width: 42px; height: 42px; font-size: 14px; }
.community-author--large strong { font-size: 13px; }
.community-author--large small { font-size: 10.5px; }
.community-owner-delete { min-height: 36px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid #f1d3d6; border-radius: 9px; color: #b42318; background: #fff; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.community-owner-delete:hover { background: #fff5f5; }
.community-owner-delete svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.community-detail-body { min-height: 220px; padding: 34px 2px 42px; color: var(--community-text); font-size: 15px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }

.community-detail-route { display: grid; grid-template-columns: minmax(190px, 40%) minmax(0, 1fr); align-items: center; overflow: hidden; margin: 0 0 32px; border: 1px solid #cfddf4; border-radius: 18px; background: linear-gradient(135deg, #f8fbff, #f4f6ff); }
.community-detail-route__visual { position: relative; width: 100%; min-height: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #dbeafe, #e0e7ff); }
.community-detail-route__visual .community-route-thumbnail-fallback { padding: 14px; font-size: 11px; line-height: 1.4; }
.community-detail-route__copy { min-width: 0; align-self: center; padding: 22px; }
.community-detail-route__copy > span { color: var(--community-blue); font-size: 9.5px; font-weight: 900; letter-spacing: .07em; }
.community-detail-route__copy h2 { margin: 5px 0 3px; font-size: 17px; overflow-wrap: anywhere; }
.community-detail-route__copy p { margin: 0 0 14px; color: var(--community-muted); font-size: 11px; }
.community-detail-actions { display: flex; align-items: center; gap: 9px; padding-top: 24px; border-top: 1px solid #edf0f3; }
.community-detail-like,
.community-share-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--community-line); border-radius: 11px; color: var(--community-text); background: #fff; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.community-detail-like { flex: 1; }
.community-detail-like svg,
.community-share-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.community-detail-like strong { padding-left: 7px; border-left: 1px solid #e7eaf0; }
.community-detail-like:hover,
.community-detail-like.is-liked { color: var(--community-red); border-color: #fecdd3; background: #fff1f2; }
.community-detail-like.is-liked svg { fill: currentColor; }
.community-detail-like.is-pending { pointer-events: none; opacity: .6; }
.community-share-button:hover { color: var(--community-blue-dark); border-color: #afc9f6; background: var(--community-blue-pale); }

.community-comments { margin-top: 34px; padding-top: 30px; border-top: 1px solid #e7ebf1; scroll-margin-top: 96px; }
.community-comments__header { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.community-comments__header h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.community-comments__header > span { min-width: 27px; height: 27px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--community-blue-dark); background: var(--community-blue-pale); font-size: 11px; font-weight: 850; }
.community-comment-form { padding: 15px; border: 1px solid #dce5f4; border-radius: 14px; background: #f8fbff; }
.community-comment-form__label { display: block; margin-bottom: 7px; color: #344054; font-size: 11px; font-weight: 850; }
.community-comment-form textarea { width: 100%; min-height: 88px; resize: vertical; padding: 11px 12px; border: 1px solid #ccd7e7; border-radius: 10px; outline: 0; color: var(--community-text); background: #fff; font: inherit; font-size: 13px; line-height: 1.6; }
.community-comment-form textarea:focus { border-color: #7ba6ee; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.community-comment-form__privacy { margin: 7px 1px 0; color: #667085; font-size: 10.5px; line-height: 1.5; }
.community-comment-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.community-comment-form__footer > span { color: #98a2b3; font-size: 10px; }
.community-comment-form__footer .community-button { min-width: 116px; }
.community-comment-form .community-form-status { margin: 8px 0 0; min-height: 0; }
.community-comment-login { min-height: 48px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 11px 14px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #475569; background: #f8fafc; font-size: 12px; font-weight: 750; text-align: center; }
a.community-comment-login:hover { color: var(--community-blue-dark); border-color: #93b4ec; background: var(--community-blue-pale); }
.community-comment-list { display: grid; gap: 0; margin: 19px 0 0; padding: 0; list-style: none; }
.community-comment { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 17px 0; border-top: 1px solid #edf0f3; scroll-margin-top: 100px; }
.community-comment:first-child { border-top: 0; }
.community-comment__avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #1d4ed8, #5b7fdc); font-size: 12px; font-weight: 900; }
.community-comment__main { min-width: 0; }
.community-comment__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.community-comment__head > div { min-width: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.community-comment__head strong { color: #1f2937; font-size: 12px; overflow-wrap: anywhere; }
.community-comment__head time { color: #98a2b3; font-size: 9.5px; white-space: nowrap; }
.community-comment__head button { flex: 0 0 auto; padding: 3px 5px; border: 0; border-radius: 5px; color: #b42318; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.community-comment__head button:hover { background: #fff1f2; }
.community-comment__head button:disabled { cursor: wait; opacity: .55; }
.community-comment__main > p { margin: 6px 0 0; color: #344054; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-comment-empty { margin: 18px 0 0; padding: 23px 14px; border-radius: 12px; color: var(--community-muted); background: #f8fafc; font-size: 12px; line-height: 1.6; text-align: center; }

/* Mobile share sheet fallback for non-secure or unsupported browsers */
.community-share-sheet { position: fixed; z-index: 10030; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.community-share-sheet[hidden] { display: none !important; }
.community-share-sheet__backdrop { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: rgba(15, 23, 42, .58); cursor: default; opacity: 0; transition: opacity .2s ease; }
.community-share-sheet__panel { position: relative; width: min(100%, 560px); max-height: min(82dvh, 620px); padding: 9px 20px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px 24px 0 0; outline: 0; background: #fff; box-shadow: 0 -18px 50px rgba(15,23,42,.2); transform: translateY(calc(100% + 24px)); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.community-share-sheet.is-open .community-share-sheet__backdrop { opacity: 1; }
.community-share-sheet.is-open .community-share-sheet__panel { transform: translateY(0); }
.community-share-sheet__handle { width: 42px; height: 4px; display: block; margin: 0 auto 10px; border-radius: 999px; background: #d0d5dd; }
.community-share-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 18px; }
.community-share-sheet__header h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.community-share-sheet__close { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid var(--community-line); border-radius: 50%; color: var(--community-muted); background: #fff; cursor: pointer; }
.community-share-sheet__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.community-share-sheet__options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.community-share-option { min-width: 0; display: grid; justify-items: center; gap: 8px; padding: 4px 1px 8px; border: 0; color: var(--community-text); background: transparent; font-size: 10px; font-weight: 750; text-align: center; cursor: pointer; }
.community-share-option > span:last-child { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-share-option__icon { width: clamp(44px, 12vw, 50px); height: clamp(44px, 12vw, 50px); display: grid; place-items: center; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06); }
.community-share-option__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.community-share-option__icon--copy { color: var(--community-blue-dark); background: #eaf2ff; }
.community-share-option__icon--line { color: #fff; background: #06c755; font-size: 9px; font-weight: 900; letter-spacing: -.02em; }
.community-share-option__icon--whatsapp { color: #fff; background: #20b95a; }
.community-share-option__icon--facebook { color: #fff; background: #1877f2; font-family: Arial, sans-serif; font-size: 30px; font-weight: 800; }
.community-share-option__icon--x { color: #fff; background: #111; font-size: 24px; }
.community-share-sheet__cancel { width: 100%; min-height: 46px; margin-top: 14px; border: 1px solid var(--community-line); border-radius: 12px; color: var(--community-text); background: #f8fafc; font-size: 13px; font-weight: 800; cursor: pointer; }
.community-share-sheet__close:hover,
.community-share-sheet__cancel:hover { color: var(--community-blue-dark); border-color: #b9cff5; background: var(--community-blue-pale); }
.community-share-option:focus-visible,
.community-share-sheet__close:focus-visible,
.community-share-sheet__cancel:focus-visible { outline: 3px solid rgba(37,99,235,.24); outline-offset: 2px; }

.community-detail-sidebar { position: sticky; top: 98px; padding: 22px; border: 1px solid #e3e8ef; border-radius: 19px; background: #fff; box-shadow: 0 12px 30px rgba(16,24,40,.05); }
.community-detail-sidebar__head { display: flex; align-items: center; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid #edf0f3; }
.community-detail-sidebar__head > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--community-blue-pale); font-size: 21px; }
.community-detail-sidebar__head small { color: var(--community-blue); font-size: 9px; font-weight: 800; }
.community-detail-sidebar__head h2 { margin: 1px 0 0; font-size: 16px; letter-spacing: -.025em; }
.community-related-list { display: grid; }
.community-related-card { padding: 17px 0; border-bottom: 1px solid #edf0f3; }
.community-related-card > span { color: #98a2b3; font-size: 9px; }
.community-related-card h3 { margin: 5px 0; font-size: 13px; line-height: 1.45; }
.community-related-card h3 a:hover { color: var(--community-blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.community-related-card > div { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: #8792a4; font-size: 9px; }
.community-related-empty { margin: 18px 0; color: var(--community-muted); font-size: 11px; line-height: 1.65; }
.community-detail-sidebar > .community-button { margin-top: 16px; }

/* Toast */
.community-toast { position: fixed; z-index: 10050; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: min(440px, calc(100% - 32px)); padding: 12px 17px; border-radius: 12px; color: #fff; background: #172033; box-shadow: 0 14px 35px rgba(15,23,42,.24); font-size: 12px; font-weight: 700; transform: translate(-50%, 18px); opacity: 0; transition: opacity .18s ease, transform .18s ease; }
.community-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.community-toast.is-error { background: #b42318; }

@media (max-width: 1020px) {
  .community-hero__inner { grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; }
  .community-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .community-category-card { min-height: 128px; }
  .community-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .community-detail-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .community-detail-article { padding: 30px; }
}

@media (max-width: 820px) {
  .community-shell { width: min(100% - 36px, 720px); }
  .community-hero__inner { min-height: auto; grid-template-columns: 1fr; padding-block: 54px 44px; }
  .community-hero__visual { width: min(100%, 560px); height: auto; justify-self: center; }
  .community-layout,
  .community-detail-layout,
  .community-write-layout { grid-template-columns: 1fr; }
  .community-feed-hero__title-row,
  .community-home-guide-grid { grid-template-columns: 1fr; }
  .community-feed-hero__title-row { display: grid; align-items: start; }
  .community-feed-hero__title-row > .community-button { margin-top: 0; }
  .community-filter-tabs--hero { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; gap: 8px; }
  .community-sidebar,
  .community-detail-sidebar,
  .community-write-guide { position: static; }
  .community-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-safety-note { grid-column: 1 / -1; }
  .community-detail-sidebar { margin-top: 0; }
  .community-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .community-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .community-hero__visual { aspect-ratio: 844 / 644; }
}

@media (max-width: 600px) {
  .community-shell { width: calc(100% - 28px); }
  .community-hero__inner { gap: 34px; padding-block: 42px 36px; }
  .community-hero h1 { font-size: 35px; }
  .community-hero__copy > p { margin-top: 15px; font-size: 14px; line-height: 1.65; }
  .community-hero__actions { display: grid; grid-template-columns: 1fr; margin-top: 22px; }
  .community-hero__actions .community-button { width: 100%; }
  .community-hero__visual { height: auto; border-radius: 21px; }
  .community-feed-hero { padding: 36px 0 32px; }
  .community-feed-hero h1 { font-size: 30px; }
  .community-feed-hero__title-row .community-button { width: 100%; }
  .community-filter-tabs--hero { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
  .community-filter-tabs--hero .community-filter-tab { min-height: 64px; flex-direction: column; gap: 3px; justify-content: center; overflow: hidden; padding: 6px 4px; font-size: 10.5px; line-height: 1.15; text-align: center; }
  .community-filter-tabs--hero .community-filter-tab__icon { width: 18px; height: 18px; flex-basis: 18px; font-size: 13px; }
  .community-filter-tabs--hero .community-filter-tab__label { display: block; max-width: 100%; }
  .community-category-section { padding: 44px 0 40px; }
  .community-section-heading { margin-bottom: 18px; }
  .community-section-heading h2 { font-size: 23px; }
  .community-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-right: 0; padding: 1px 0 0; overflow: visible; }
  .community-category-card { min-width: 0; min-height: 124px; padding: 14px; }
  .community-home-guide-section { padding-bottom: 46px; }
  .community-home-guide-actions .community-button--light { max-width: none; }
  .community-feed-section { padding: 43px 0 66px; }
  .community-feed__header { align-items: center; }
  .community-feed__header h2 { font-size: 24px; }
  .community-feed__header .community-button { min-width: auto; }
  .community-toolbar { grid-template-columns: 1fr; }
  .community-sort { width: 132px; }
  .community-filter-tabs { margin-right: 0; padding-right: 0; }
  .community-route-library__header { align-items: start; flex-direction: column; gap: 7px; }
  .community-route-library .plans-grid { grid-template-columns: 1fr; }
  .community-post-card { padding: 4px 8px; border-radius: 10px; }
  .community-post-card h3 { font-size: 15px; }
  .community-route-preview { grid-template-columns: auto minmax(0, 1fr) 16px; gap: 6px; }
  .community-post-card__footer { align-items: center; }
  .community-author { max-width: 29%; }
  .community-view-count > span { display: none; }
  .community-read-body-link { min-height: 28px; font-size: 9.5px; }
  .community-sidebar { grid-template-columns: 1fr; }
  .community-safety-note { grid-column: auto; }
  .community-write-main { padding: 28px 0 56px; }
  .community-write-back { margin-bottom: 18px; }
  .community-write-card { border-radius: 18px; box-shadow: 0 10px 28px rgba(16,24,40,.06); }
  .community-write-header { padding: 23px 19px 19px; }
  .community-write-header h1 { font-size: 27px; }
  .community-write-form__body { padding: 21px 19px; }
  .community-write-form__footer { display: grid; grid-template-columns: 1fr 1fr; padding: 15px 19px calc(15px + env(safe-area-inset-bottom)); border-radius: 0 0 18px 18px; }
  .community-write-guide { padding: 21px 19px; }
  .community-field-row { grid-template-columns: 120px minmax(0, 1fr); }
  .community-custom-select__menu { max-height: min(250px, 42dvh); }
  .community-custom-select .community-custom-select__search { font-size: 16px; }
  .community-detail-main { padding: 28px 0 62px; background: var(--community-soft); }
  .community-detail-article { padding: 23px 18px; border-radius: 17px; }
  .community-back-link { margin-bottom: 23px; }
  .community-detail-header h1 { margin-bottom: 18px; font-size: 28px; }
  .community-detail-author-row { align-items: flex-start; flex-wrap: wrap; }
  .community-detail-author-row .community-author { max-width: 100%; }
  .community-detail-header-actions { width: 100%; justify-content: space-between; }
  .community-detail-body { padding-block: 28px 34px; font-size: 14px; line-height: 1.85; }
  .community-detail-route { grid-template-columns: 1fr; }
  .community-detail-route__visual { min-height: 0; }
  .community-detail-route__copy { padding: 18px; }
  .community-detail-actions { align-items: stretch; flex-direction: column; }
  .community-detail-like,
  .community-share-button { width: 100%; }
  .community-comments { margin-top: 28px; padding-top: 25px; }
  .community-comment-form { padding: 13px; }
  .community-comment-form textarea { font-size: 16px; }
  .community-comment-form__footer { align-items: stretch; flex-direction: column; }
  .community-comment-form__footer .community-button { width: 100%; }
  .community-comment__head button { min-width: 44px; min-height: 44px; padding: 8px; }
  .community-related-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
