:root {
  --green: #2f7d4f;
  --green-dark: #173b2a;
  --leaf: #7dae4d;
  --sky: #3b6d97;
  --sun: #f6c85f;
  --ink: #1f2933;
  --muted: #5b6773;
  --line: #dbe4df;
  --soft: #f4f8f2;
  --blue-soft: #eef6fb;
  --white: #fff;
  --shadow: 0 18px 45px rgba(36, 55, 45, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.55; }
body.embed-mode { min-height: auto; overflow-x: hidden; }
body.embed-mode .site-header,
body.embed-mode .site-footer { display: none; }
body.embed-mode main { min-height: 0; }
body.embed-mode .hero-slider { margin-top: 0; }
body.embed-mode .page-hero { margin-top: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { min-height: 70vh; background: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.brand strong { display: block; font-size: 1.1rem; letter-spacing: 0; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.main-nav a { padding: 10px 12px; border-radius: 8px; color: #26333c; }
.main-nav a:hover, .main-nav .pill { background: var(--soft); color: var(--green-dark); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 28px; height: 3px; margin: 5px; background: var(--ink); border-radius: 3px; }

.hero-slider { max-width: 1180px; margin: 24px auto 0; padding: 0 18px; }
.slide {
  display: none;
  height: clamp(470px, 52vw, 560px);
  min-height: 0;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  color: #fff;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slide.active { display: flex; }
.slide > div { width: min(100%, 760px); max-width: 760px; }
.slide h1, .page-hero h1 { margin: 0 0 14px; font-size: clamp(2.3rem, 6vw, 4.45rem); line-height: .96; letter-spacing: 0; }
.slide h1 { max-width: 760px; text-wrap: balance; }
.slide p { max-width: 700px; font-size: clamp(1.05rem, 2.5vw, 1.35rem); }
.eyebrow { margin: 0 0 12px; color: var(--leaf); font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.slider-controls { display: flex; justify-content: flex-start; align-items: center; gap: 18px; margin: 18px 0 10px; }
.slider-controls button {
  border: 0;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #e9edf0;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
}
.dots { display: flex; gap: 9px; align-items: center; }
.dots { order: 1; margin-right: auto; }
.slider-controls [data-prev] { order: 2; }
.slider-controls [data-next] { order: 3; }
.dots button { min-width: 14px; min-height: 14px; padding: 0; background: #8d969e; }
.dots button.active { width: 48px; border-radius: 99px; background: #e24b45; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 850;
  cursor: pointer;
}
.button.light { color: var(--ink); background: #fff; }
.button.secondary { color: var(--green-dark); background: var(--soft); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.section { max-width: 1180px; margin: 42px auto; padding: 0 18px; }
.section.narrow { max-width: 860px; }
.section h2 { margin: 0 0 18px; font-size: clamp(1.45rem, 3vw, 2.05rem); font-weight: 900; line-height: 1.08; }
.home-project-section {
  width: 100%;
  margin: 34px 0 38px;
  padding: 0 clamp(14px, 3vw, 42px);
}
.accordion {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.home-project-accordion {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(18px, 3vw, 28px) 22px;
  border: 1px solid #d3ded7;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(31, 41, 51, .06);
}
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.home-project-accordion summary {
  align-items: center;
}
.accordion-leading {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.accordion-left-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b5f84;
  background: transparent;
}
.accordion-left-icon svg {
  width: 38px;
  height: 38px;
}
.accordion-title {
  display: block;
  min-width: 0;
}
.accordion-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--sky);
  font-size: .78rem;
  line-height: 1.15;
  font-weight: 850;
  text-transform: uppercase;
}
.accordion-description {
  display: block;
  margin-top: 4px;
  color: #52616d;
  font-size: clamp(.88rem, 1.4vw, 1rem);
  font-weight: 650;
  line-height: 1.25;
}
.accordion-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(59, 95, 132, .10);
  color: #3b5f84;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.accordion summary:hover .accordion-icon,
.accordion summary:focus-visible .accordion-icon {
  background: rgba(59, 95, 132, .16);
  color: #2f3947;
}
.home-project-accordion[open] .accordion-icon {
  transform: rotate(180deg);
  background: rgba(59, 95, 132, .16);
}
.rich-text { color: #394852; font-size: 1.08rem; }
.home-project-accordion .rich-text {
  max-width: 940px;
  margin-top: 16px;
  color: #2f3b45;
  font-size: clamp(.98rem, 1.35vw, 1.08rem);
  line-height: 1.65;
}
.home-project-accordion .rich-text p {
  margin: 0 0 13px;
}
.home-project-accordion .rich-text p:last-child {
  margin-bottom: 0;
}
.rich-text h2 { margin-top: 28px; color: var(--green-dark); font-size: 1.5rem; }
.rich-text li { margin: 7px 0; }
.accordion-stack {
  display: grid;
  gap: 12px;
}
.quick-accordion-section {
  max-width: none;
  padding: 0 clamp(14px, 3vw, 42px);
}
.quick-accordion-section > h2,
.quick-accordion-section .accordion-stack {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.accordion-stack .home-project-accordion {
  width: 100%;
  max-width: 100%;
}
.accordion-stack .home-project-accordion .rich-text {
  max-width: none;
}

.feature-band {
  position: relative;
  max-width: 1180px;
  margin: 38px auto;
  padding: clamp(26px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  align-items: center;
  gap: 24px;
  background: #f1f9ea;
  border: 1px solid #cfe4bf;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(36, 55, 45, .08);
}
.feature-band h2 {
  max-width: 560px;
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 900;
  line-height: 1.08;
}
.feature-meta {
  margin: -3px 0 9px;
  color: var(--sky);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.feature-band p:not(.feature-meta) { max-width: 620px; margin: 0 0 16px; font-size: 1rem; line-height: 1.38; color: #3a4a43; }
.feature-actions {
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  gap: 0;
  border: 1px solid #cfe0d0;
  border-radius: 8px;
  background: #eaf4e4;
}
.feature-actions .button {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: .94rem;
  box-shadow: none;
}
.feature-actions .button.secondary {
  color: var(--green-dark);
  background: #dcefd3;
}
.feature-band img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; border: 1px solid #d8e3d6; }
.feature-band-blue {
  margin-top: 32px;
  background: #eef6fb;
  border-color: rgba(59, 109, 151, .28);
  box-shadow: 0 10px 28px rgba(59, 109, 151, .08);
}
.feature-band-blue p:not(.feature-meta) {
  color: #324c60;
}
.feature-band-blue .feature-actions {
  border-color: rgba(59, 109, 151, .24);
  background: #dfeef8;
}
.feature-band-blue .feature-actions .button {
  background: var(--sky);
}
.feature-band-blue .feature-actions .button.secondary {
  color: #173b2a;
  background: #cfe4f2;
}
.feature-band-blue img {
  border-color: rgba(59, 109, 151, .22);
}

.quick-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quick-card, .list-card, .content-card, .notice, .form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 46, 34, .08);
}
.quick-card { min-height: 135px; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.quick-grid.single { grid-template-columns: 1fr; }
.quick-card.active-card { border-color: var(--green); background: var(--soft); }
.quick-card strong { font-size: 1.35rem; color: var(--green-dark); }
.quick-card span, .content-card p, .list-card p { color: var(--muted); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list-card { padding: 20px; margin-bottom: 14px; }
.list-card.compact { padding: 14px 16px; }
.list-card.compact strong, .list-card.compact span, .list-card.compact small { display: block; }
.list-card span, .content-card span, .notice span { color: var(--green); font-weight: 850; }
.list-card h3 { margin: 6px 0; font-size: 1.25rem; }

.page-hero {
  max-width: 1180px;
  margin: 24px auto 38px;
  padding: clamp(32px, 7vw, 72px) 18px;
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.18rem; }
.content-card { overflow: hidden; }
.content-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.content-card div { padding: 20px; }
.content-card h2 { margin: 6px 0 8px; font-size: 1.35rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.gallery-grid img { width: 100%; aspect-ratio: 1 / .78; object-fit: cover; }
.gallery-grid figcaption { padding: 12px 14px; font-weight: 800; }
.notice { padding: 24px; margin-bottom: 18px; }
.notice.pinned { border-color: var(--sun); background: #fffaf0; }
.notice h2 { margin: 8px 0; font-size: 1.5rem; }
.member-row, .inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.inline-form select, .inline-form input { width: auto; min-width: 180px; flex: 1; }
.empty { padding: 22px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }

.auth-panel { min-height: 68vh; display: grid; place-items: center; padding: 42px 18px; background: #fff; }
.form-card { width: 100%; max-width: 760px; padding: clamp(20px, 4vw, 34px); }
.form-card h1 { margin: 0 0 22px; font-size: 1.75rem; line-height: 1.15; }
.auth-note { margin: -6px 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.auth-register { margin-top: 24px; }
.auth-register p { margin: 0 0 10px; color: var(--muted); line-height: 1.55; }
.auth-register a { color: var(--green-dark); font-weight: 850; }
.orientation-card { max-width: 980px; }
.work-area-fieldset { margin: 0 0 20px; padding: 0; border: 0; }
.work-area-fieldset legend { margin: 0 0 12px; color: #26333c; font-weight: 850; }
.work-area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.work-area-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  min-height: 0;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #d8e3dc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.work-area-option input { width: auto; min-height: auto; margin: 4px 0 0; accent-color: var(--green); }
.work-area-option strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: .98rem; line-height: 1.2; }
.work-area-option small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.work-area-option:has(input:checked) { border-color: var(--green); background: #f7fbf7; box-shadow: 0 8px 18px rgba(47, 125, 79, .08); }
label { display: grid; gap: 7px; margin: 0 0 16px; color: #26333c; font-weight: 800; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cfdad3;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.compact { gap: 12px; }
.form-row.compact label { margin-bottom: 12px; }
.alert, .success { padding: 12px 14px; border-radius: 8px; font-weight: 750; }
.alert { background: #fff1f0; color: #9d2520; }
.success { background: #eef8ea; color: #245d3c; }

.site-footer {
  margin-top: 52px;
  padding: 34px 18px;
  text-align: center;
  color: #e7efe9;
  background: var(--green-dark);
}
.site-footer p { margin: 6px auto; max-width: 900px; }
body.embed-mode .site-header { position: relative; top: auto; }
body.embed-mode .site-footer { margin-top: 28px; }

.admin-body { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f7faf8; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 20px; background: var(--green-dark); color: #fff; }
.admin-brand { margin-bottom: 22px; color: #fff; }
.admin-brand small { color: #cfe6d8; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { padding: 11px 12px; border-radius: 8px; color: #eef8f0; font-weight: 800; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.1); }
.admin-main { padding: clamp(20px, 4vw, 42px); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.admin-top h1 { margin: 0; font-size: 2.4rem; line-height: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; color: var(--green); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--green-dark); background: #eef6ec; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-button { border: 0; border-radius: 8px; padding: 8px 10px; background: #eef1f2; color: var(--ink); font-weight: 800; cursor: pointer; }
.danger { background: #fff1f0; color: #a3261f; }
.status { display: inline-flex; border-radius: 999px; padding: 4px 9px; background: var(--soft); color: var(--green-dark); font-size: .85rem; font-weight: 850; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 74px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .slide { height: 520px; min-height: 0; }
  .feature-band, .two-cols, .form-row { grid-template-columns: 1fr; }
  .quick-grid, .card-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .brand { min-width: 0; }
  .brand small { display: none; }
  .site-header { padding: 12px 14px; }
  .hero-slider { margin-top: 14px; padding: 0 12px; }
  .slide {
    height: clamp(285px, 78vw, 330px);
    min-height: 0;
    padding: 20px;
    border-radius: 8px;
    align-items: center;
  }
  .slide > div { max-width: 100%; }
  .slide .eyebrow { margin-bottom: 8px; font-size: .76rem; line-height: 1.15; }
  .slide h1 { margin-bottom: 10px; font-size: clamp(1.75rem, 7.2vw, 2.15rem); line-height: 1.04; }
  .slide p { max-width: 100%; margin: 0 0 14px; font-size: clamp(.95rem, 3.9vw, 1.08rem); line-height: 1.35; }
  .slide .button { min-height: 40px; padding: 9px 16px; font-size: .95rem; }
  .slider-controls { gap: 9px; margin: 14px 0 8px; }
  .slider-controls button { min-width: 38px; min-height: 38px; font-size: 1.35rem; }
  .dots { gap: 8px; }
  .dots button { min-width: 12px; min-height: 12px; }
  .dots button.active { width: 42px; }
  .section, .feature-band, .page-hero { margin-top: 28px; margin-bottom: 28px; }
  .feature-band {
    margin: 28px 12px;
    padding: 24px 18px 18px;
    gap: 16px;
  }
  .feature-band h2 { max-width: 100%; margin-bottom: 8px; font-size: 1.35rem; line-height: 1.08; }
  .feature-meta { margin: -3px 0 8px; font-size: .72rem; }
  .feature-band p:not(.feature-meta) { margin-bottom: 13px; font-size: .94rem; line-height: 1.34; }
  .feature-actions { display: flex; width: 100%; }
  .feature-actions .button { flex: 1 1 0; min-height: 38px; padding: 8px 10px; font-size: .84rem; white-space: nowrap; }
  .feature-band img { max-height: 150px; object-position: center; }
  .quick-grid, .card-grid, .gallery-grid, .stats-grid { grid-template-columns: 1fr; }
  .auth-panel { padding: 24px 12px; }
  .form-card { padding: 20px 18px; }
  .form-card h1 { font-size: 1.55rem; }
  .auth-note { font-size: .94rem; line-height: 1.42; }
  .work-area-grid { grid-template-columns: 1fr; gap: 8px; }
  .work-area-option { padding: 11px 12px; }
  .work-area-option small { font-size: .82rem; line-height: 1.3; }
  .home-project-section { margin: 24px 0 30px; padding: 0 12px; }
  .home-project-accordion { padding: 15px 16px 18px; }
  .accordion summary { font-size: 1.35rem; }
  .accordion-leading { gap: 12px; }
  .accordion-left-icon { width: 38px; height: 38px; }
  .accordion-left-icon svg { width: 34px; height: 34px; }
  .accordion-description { font-size: .88rem; line-height: 1.22; }
  .accordion-icon { width: 34px; height: 34px; }
  .section h2 { font-size: 1.35rem; }
  .quick-accordion-section { padding: 0 12px; }
  .accordion-stack { gap: 10px; }
  .admin-top { align-items: flex-start; flex-direction: column; }
}
