:root {
  --bg: #f5f8fa;
  --bg-panel: #ffffff;
  --ink: #183241;
  --muted: #537385;
  --line: #d8e4ea;
  --brand: #2f95ad;
  --brand-deep: #1f7287;
  --accent: #5ac6cb;
  --warn: #d86f4b;
  --ok: #227f62;
  --shadow: 0 14px 34px rgba(22, 68, 87, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(90, 198, 203, 0.13), transparent 30%),
    radial-gradient(circle at 86% 2%, rgba(47, 149, 173, 0.15), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.topbar {
  background: #edf3f6;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0;
  color: #48616f;
  font-size: 0.93rem;
}

.breadcrumb-logo {
  display: block;
  width: clamp(180px, 28vw, 320px);
  height: auto;
  max-height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.breadcrumb-text {
  white-space: nowrap;
}

.breadcrumb-action {
  margin-left: auto;
}

.page-main {
  padding: 1.4rem 0 3rem;
}

.login-page {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 3rem;
}

.login-hero {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: center;
}

.login-hero-copy,
.login-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.login-hero-copy {
  padding: 2rem;
}

.login-kicker {
  margin: 0 0 0.55rem;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.login-hero-copy h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 0.9rem;
}

.login-desc {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.login-warning {
  margin: 0 0 1.2rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid #8c1d1d;
  border-radius: 12px;
  background: #fff6f6;
  color: #8c1d1d;
  line-height: 1.7;
  font-weight: 700;
}

.login-panel {
  padding: 1.5rem;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.login-panel h3 {
  margin-top: 0;
}

.login-hero-copy .login-desc + .login-desc {
  margin-top: -0.15rem;
}

.login-form-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.85rem;
}

.login-form-row input {
  flex: 1;
  border: 1px solid #bdd2dc;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.login-form-row .btn {
  white-space: nowrap;
}

.login-page .panel-link {
  display: inline-block;
  margin-top: 0.3rem;
}

.hero {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  overflow: hidden;
  animation: rise 550ms ease-out;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-kicker {
  color: var(--brand-deep) !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1 !important;
  text-transform: uppercase;
}

.hero-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0.45rem 0 1rem;
}

.hero-left p {
  color: var(--muted);
  line-height: 1.78;
  margin: 0;
}

.hero-left strong {
  color: var(--ink);
  font-weight: 800;
}

.hero-statement {
  margin-top: 1.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero-statement h2,
.introduction-card h2 {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.hero-statement h2 span,
.introduction-card h2 span {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--brand);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.statement-list {
  list-style: square;
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: #2e4f5f;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 149, 173, 0.28);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand-deep);
}

.hero-right img,
.hero-logo {
  width: min(100%, 480px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.source-note {
  font-size: 0.84rem;
  margin-top: 0.7rem;
}

.introduction-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.introduction-card {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(22, 68, 87, 0.08);
}

.introduction-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.introduction-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.25rem;
  color: #2e4f5f;
  line-height: 1.75;
}

.introduction-card li + li {
  margin-top: 0.42rem;
}

.welcome-list {
  margin-top: 0.55rem !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.official-account {
  margin-top: 1.1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #edf8fa, #f8fbfc);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
}

.official-account h3 {
  margin: 0 0 0.4rem;
  color: var(--brand-deep);
  font-size: 1.05rem;
}

.official-account p {
  margin: 0;
  color: var(--muted);
}

.founders {
  margin-top: 2rem;
}

.section-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-headline-row h2 {
  color: var(--brand-deep);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0.4rem 0 0.8rem;
}

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

.founder-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(22, 68, 87, 0.08);
}

.founder-photo {
  aspect-ratio: 0.94;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
  max-width: 100%;
  display: block;
}

.founder-card:first-child .founder-photo img {
  object-position: 48% 18%;
}

.founder-copy {
  flex: 1;
  padding: 1rem 1.1rem 1.2rem;
}

.founder-copy h4 {
  margin: 0;
  line-height: 1.35;
  font-size: 1.08rem;
}

.founder-copy .inst {
  color: var(--brand-deep);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.founder-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.founder-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1rem;
  align-items: start;
}

.founder-detail-photo {
  background: #f8fbfc;
  border-radius: 12px;
  padding: 0.85rem;
  border: 1px solid #edf2f5;
}

.founder-detail-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.founder-detail-info {
  display: grid;
  gap: 0.45rem;
}

.founder-detail-role {
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.founder-detail-bio {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.founder-detail-note {
  color: #8c1d1d;
  background: #fff6f6;
  border-left: 4px solid #8c1d1d;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.section-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.help-surveys {
  margin-top: 1.5rem;
}

#help-surveys-grid {
  margin-top: 0.85rem;
}

.help-survey-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem;
  box-shadow: var(--shadow);
}

.help-survey-title {
  display: inline-block;
  color: #173149;
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.help-survey-muted,
.help-survey-desc,
.help-survey-small {
  margin: 0.15rem 0;
  color: #4d6675;
  line-height: 1.5;
}

.help-survey-small {
  font-weight: 700;
}

.remove-media-option {
  color: #8a2f2f;
  font-weight: 700;
}

.help-survey-qr-block {
  text-align: center;
}

.survey-note {
  color: #6f1b1b;
  font-weight: 800;
  line-height: 1.35;
  margin: 0.3rem 0;
}

.survey-note-top {
  font-size: 1.02rem;
}

.survey-note-bottom {
  font-size: 0.98rem;
}

.survey-qr {
  width: min(100%, 220px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: 14px;
  padding: 0.85rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.panel-header h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 1.35rem;
}

.panel-link {
  color: var(--brand);
  font-weight: 700;
}

.panel-content {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0.95rem;
}

.featured-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  min-height: 210px;
  background: #e7f0f4;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.18rem 0.5rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.rolling-list {
  max-height: 210px;
  overflow: hidden;
  border-left: 2px solid #f0f5f7;
  padding-left: 0.7rem;
}

.rolling-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roll-item {
  display: block;
  gap: 1rem;
  color: #27414f;
  line-height: 1.45;
  font-size: 0.95rem;
  text-align: left;
}

.roll-item::before {
  content: '\2022';
  color: var(--accent);
  margin-right: 0.5rem;
}

.roll-item {
  padding-left: 0.1rem;
}

.roll-meta {
  display: inline;
  margin-left: 0.35rem;
}

.roll-meta {
  color: #6f8896;
  font-size: 0.88rem;
  white-space: nowrap;
}

.section-search {
  margin: 1rem 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.section-search input {
  flex: 1 1 280px;
  border: 1px solid #bdd2dc;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.section-search button {
  min-width: 120px;
}

.join-card {
  margin-top: 1.6rem;
  background: linear-gradient(130deg, #d9f4f3, #f3f9fb);
  border: 1px solid #cce4e8;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.join-card h3 {
  margin: 0;
}

.join-card p {
  margin: 0.4rem 0 0;
  color: #365363;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2.5rem;
}

.footer-row {
  display: flex;
  gap: 1rem;
}

.footer-link {
  color: var(--brand-deep);
  font-weight: 700;
}

.activity-pop {
  position: absolute;
  top: 5.5rem;
  right: max(1.2rem, calc((100vw - 1160px) / 2));
  width: min(350px, calc(100% - 2rem));
  background: #fff;
  border-left: 5px solid var(--brand);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.7rem;
  z-index: 30;
  pointer-events: none;
}

.activity-title {
  font-weight: 800;
  color: var(--brand-deep);
}

.activity-body {
  color: #365363;
  font-size: 0.93rem;
  margin-top: 0.35rem;
  min-height: 2.7rem;
}

dialog {
  border: none;
  border-radius: 12px;
  width: min(680px, calc(100% - 2rem));
  max-height: 92vh;
}

dialog::backdrop {
  background: rgba(18, 50, 66, 0.55);
}

.join-form {
  padding: 0.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #2d4f61;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid #bdd2dc;
  border-radius: 8px;
  padding: 0.56rem 0.62rem;
  font: inherit;
}

.span-2 {
  grid-column: span 2;
}

.dialog-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.privacy-note,
.result-note {
  color: #4f6d7c;
  font-size: 0.88rem;
}

.application-interests {
  margin: 0;
  padding: 0;
  border: 0;
}

.application-interests legend {
  margin-bottom: 0.45rem;
  color: #2d4f61;
  font-weight: 700;
}

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

.interest-grid label {
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0.55rem;
  border: 1px solid #bdd2dc;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
}

.interest-grid input {
  width: auto;
  margin: 0;
}

.application-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.result-box {
  padding: 0.3rem;
}

.subpage {
  padding: 1.5rem 0 2.5rem;
}

.subpage h1 {
  font-family: 'DM Serif Display', serif;
  margin: 0;
}

.subpage .desc {
  color: var(--muted);
}

.policy-page .card {
  max-width: 820px;
}

.policy-page h2 {
  margin-top: 1.6rem;
  color: var(--brand-deep);
  font-family: 'DM Serif Display', serif;
}

.item-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.8rem;
}

.detail-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.detail-card .meta-block {
  display: grid;
  gap: 0.25rem;
}

.detail-page-title {
  font-family: 'DM Serif Display', serif;
  margin: 0;
}

.detail-page-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.detail-page-hero img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto 1rem;
}


.questionnaire-grid {
  display: grid;
  gap: 1rem;
}

.questionnaire-info {
  display: grid;
  gap: 0.3rem;
}

.questionnaire-qr {
  width: min(100%, 220px);
  display: block;
}

.questionnaire-links a {
  display: inline-block;
  margin-right: 0.8rem;
  margin-top: 0.4rem;
}

.meta {
  color: #416174;
  font-size: 0.94rem;
  line-height: 1.55;
}

.pager {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.card h3 {
  margin-top: 0;
}

.tiny {
  font-size: 0.86rem;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.stat {
  background: #edf6f8;
  border-radius: 9px;
  padding: 0.55rem;
}

.stat b {
  display: block;
  font-size: 1.2rem;
}

.visitor-stat {
  background: #e7f4f7;
  border: 1px solid #c8e1e8;
}

.edit-file-note {
  background: #f2f8fa;
  border-left: 3px solid var(--brand);
  border-radius: 7px;
  padding: 0.5rem 0.65rem;
}

.edit-file-note:empty {
  display: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.48rem;
  border-bottom: 1px solid #e4edf1;
  text-align: left;
  font-size: 0.9rem;
}

.badge {
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.pending {
  background: #fff5e8;
  color: #b87323;
}

.approved {
  background: #e6f8f1;
  color: #1f7c5f;
}

.published {
  background: #e6f8f1;
  color: #1f7c5f;
}

.draft {
  background: #eef1f4;
  color: #566b77;
}

.rejected {
  background: #ffeceb;
  color: #b84f43;
}

.inline-form {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

@keyframes roll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .hero,
  .login-hero,
  .panel-content,
  .admin-grid,
  .help-survey-card,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-right img {
    min-height: 0;
  }

  .introduction-details {
    grid-template-columns: 1fr;
  }

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

  .detail-card {
    grid-template-columns: 1fr;
  }

  .founder-detail-hero {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .join-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-page {
    align-items: flex-start;
  }

  .login-hero {
    grid-template-columns: 1fr;
  }

  .login-form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .activity-pop {
    display: none;
  }

  .breadcrumb {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .breadcrumb-logo {
    width: min(180px, 55vw);
  }

  .breadcrumb-text {
    order: 3;
    width: 100%;
    white-space: normal;
  }

  .breadcrumb-action {
    margin-left: auto;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-photo {
    aspect-ratio: 4 / 3;
  }

  .hero {
    padding: 1.2rem;
  }

  .hero-left h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }
}

