:root {
  --accent: #ff6b4a;
  --accent-dark: #e8502f;
  --accent-soft: #fff0eb;
  --sun: #ffbe32;
  --sky: #4aa8ff;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e7e5e4;
  --bg: #fffaf6;
  --card: #ffffff;
  --danger: #e5484d;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "PingFang SC", "Malgun Gothic",
          "Microsoft YaHei", "Noto Sans CJK KR", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ---------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px;
  padding: 10px 28px 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { margin-right: auto; height: 44px; }
.topbar .nav { order: 3; flex-basis: 100%; padding: 2px 0 8px; margin-left: -10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; white-space: nowrap; }
.brand-dot { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--sun)); }
.brand-logo { height: 34px; width: auto; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav a.nav-admin { margin-left: 8px; border: 1px dashed var(--line); }
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }
.me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.lang-select { width: auto !important; height: 34px !important; padding: 0 8px !important; font-size: 13px; color: var(--muted); }
.auth-lang { position: absolute; top: 20px; right: 24px; }
.auth-form { position: relative; }
.admin-btn { gap: 6px; color: var(--muted); }
.admin-btn:hover { color: var(--ink); border-color: var(--ink); }
.test-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #fff4cc; color: #8a6200; font-weight: 700; }
.role-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }

main { max-width: 1320px; margin: 0 auto; padding: 28px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.page-head .sub { color: var(--muted); margin-top: 2px; }

/* ---------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #cfcac6; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.input, select.input, textarea.input {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; outline: none; width: 100%;
}
textarea.input { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }

/* ---------- toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 280px; }
.search .input { height: 46px; padding-left: 42px; font-size: 16px; border-radius: 12px; }
.search::before { content: ""; position: absolute; left: 15px; top: 15px; width: 12px; height: 12px; border: 2px solid var(--muted); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 27px; top: 28px; width: 7px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.toolbar select.input, .toolbar input[type=date].input { width: auto; height: 46px; border-radius: 12px; }

/* ---------- stats */
.stats { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; min-width: 140px; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.hot b { color: var(--accent); }

/* ---------- photo grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; background: #f1ede9; cursor: pointer; aspect-ratio: 1 / 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .25s, opacity .3s; opacity: 0; }
.tile img.loaded, .kid .cover img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.04); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: 13px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-weight: 700; }
.tile .sel {
  position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(0,0,0,.25); display: none;
}
.selecting .tile .sel { display: block; }
.tile.selected { outline: 4px solid var(--accent); outline-offset: -4px; }
.tile.selected .sel { background: var(--accent); border-color: var(--accent); }
.tile.selected .sel::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.more { text-align: center; padding: 26px; color: var(--muted); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }

.bulkbar {
  position: sticky; top: 118px; z-index: 15; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; background: var(--ink); color: #fff; border-radius: var(--radius);
}
.bulkbar .count { font-weight: 700; margin-right: auto; }
.bulkbar .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); height: 34px; }
.bulkbar .btn.danger { color: #ffb4b4; }

/* ---------- children */
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.kid { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.kid:hover { box-shadow: 0 10px 30px rgba(31,36,48,.1); transform: translateY(-2px); }
.kid .cover { aspect-ratio: 1 / 1; background: #f1ede9; }
.kid .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity .3s; }
.kid .body { padding: 12px 14px 14px; }
.kid-no { font-size: 12px; font-weight: 700; color: var(--accent-dark); letter-spacing: .02em; }
.kid-no.big { font-size: 15px; margin-bottom: 2px; }
.kid .name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.kid .alt { color: var(--muted); font-size: 13px; }
.kid .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f3f1ef; color: #57534e; }
.pill.group { background: #e8f4ff; color: #1f6fbf; }
.pill.count { background: var(--accent-soft); color: var(--accent-dark); }

.profile { display: grid; grid-template-columns: 340px 1fr; gap: 26px; margin-bottom: 30px; }
.profile .photo { border-radius: 20px; overflow: hidden; background: #f1ede9; aspect-ratio: 1 / 1; }
.profile .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.profile h1 { margin: 0; font-size: 34px; letter-spacing: -0.02em; }
.profile .alt { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
table.info { border-collapse: collapse; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; }
table.info th, table.info td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.info th { width: 120px; background: #faf8f6; color: var(--muted); font-weight: 600; font-size: 14px; }
.section-title { font-size: 20px; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.back { display: inline-block; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.back:hover { color: var(--ink); }

/* ---------- tables (users) */
table.list { border-collapse: collapse; width: 100%; background: #fff; }
table.list th, table.list td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.list th { background: #faf8f6; color: var(--muted); font-size: 13px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* ---------- upload */
.upload-layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; align-items: start; }
.drop {
  border: 2.5px dashed #f3b8a8; background: var(--accent-soft); border-radius: 20px; padding: 46px 20px; text-align: center; transition: .15s;
}
.drop.over { border-color: var(--accent); background: #ffe3da; }
.drop b { display: block; font-size: 20px; margin-bottom: 6px; }
.drop .btns { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.queue { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.qitem { position: relative; border-radius: 10px; overflow: hidden; background: #f1ede9; aspect-ratio: 4 / 3; font-size: 12px; }
.qitem img { width: 100%; height: 100%; object-fit: cover; }
.qitem .st { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; }
.qitem.done .st { background: #23a26d; }
.qitem.err .st { background: var(--danger); }
.progress { height: 10px; border-radius: 999px; background: #eee; overflow: hidden; margin: 10px 0 4px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--sun)); width: 0; transition: width .2s; }

/* ---------- child picker */
.picker { position: relative; }
.picker .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.picker .chips:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.picker .chips input { border: 0; outline: 0; flex: 1; min-width: 100px; height: 28px; padding: 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 13px; }
.chip a.chip-link:hover { text-decoration: underline; }
.chip button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 16px; line-height: 1; padding: 0 4px; }
.chip.static { padding-right: 10px; }
.picker .dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: 260px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.picker .opt { padding: 9px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.picker .opt:hover, .picker .opt.hl { background: var(--accent-soft); }
.picker .opt small { color: var(--muted); }
.picker .opt.new { color: var(--accent-dark); font-weight: 700; border-top: 1px solid var(--line); }

/* ---------- modal & lightbox */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(20,22,28,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal.narrow { max-width: 420px; }
.modal h2 { margin: 0 0 18px; font-size: 22px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal .actions .left { margin-right: auto; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,13,17,.94); display: grid; grid-template-columns: 1fr 380px; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 30px 70px; min-width: 0; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; border-radius: 8px; }
.lb-stage img.small { width: 300px; height: auto; image-rendering: auto; }
.lb-note { color: rgba(255,255,255,.55); font-size: 13px; min-height: 18px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-close { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer; }
.lb-side { background: #fff; overflow: auto; padding: 24px; }
.lb-side h3 { margin: 0 0 4px; font-size: 20px; }
.lb-side .muted { color: var(--muted); font-size: 13px; }
.lb-side .row { margin-top: 16px; }
.lb-side .row > .k { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.lb-side .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-side .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- login */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: linear-gradient(140deg, var(--accent) 0%, #ff9a5a 55%, var(--sun) 100%); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.auth-hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.03em; }
.auth-hero p { font-size: 18px; opacity: .92; margin: 0; }
.bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.auth-form form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.auth-form h2 { margin: 0 0 6px; font-size: 26px; }
.auth-form .btn { height: 48px; font-size: 16px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .25s; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--danger); }

@media (max-width: 900px) {
  .topbar { padding: 8px 14px 0; gap: 4px 8px; }
  .topbar .brand { font-size: 16px; }
  .me a, .me .role-badge { display: none; }
  main { padding: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .kids { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .profile, .upload-layout { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; }
  .lb-stage { padding: 10px 50px; }
  .lb-stage img { max-height: 48vh; }
  .lb-stage img.small { width: 200px; }
  .lang-select { order: 2; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 36px 28px; min-height: 220px; }
  .auth-hero h1 { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .bulkbar { top: 104px; }
}

/* ---------- website pages */
.lang-note { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 18px; display: inline-block; }
.hero { border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #e8343a 0%, var(--accent) 45%, var(--sun) 100%); color: #fff; position: relative; margin-bottom: 22px; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero-in { position: relative; z-index: 1; padding: 64px 56px; max-width: 860px; }
.hero-kicker { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; opacity: .9; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.03em; margin: 12px 0 8px; }
.hero-zh { font-size: 22px; font-weight: 700; opacity: .92; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.btn.big { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.hero .btn.primary { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn.light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); }
.btn.light:hover { background: rgba(255,255,255,.26); border-color: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.fact b { display: block; font-size: 38px; letter-spacing: -0.03em; color: var(--accent-dark); line-height: 1.1; }
.fact span { color: var(--muted); font-size: 15px; }
.h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 12px; }
.prose { max-width: 820px; margin-bottom: 34px; }
.prose p { font-size: 16px; line-height: 1.75; margin: 0 0 14px; color: #333a46; }
.prose .h2 { margin-top: 30px; }
.page-intro { max-width: 860px; margin-bottom: 22px; }
.page-intro h1 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 10px; }
.page-intro p { font-size: 16px; line-height: 1.75; color: #333a46; margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0 0 30px; border-left: 3px solid #ffd3c6; max-width: 820px; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 10px 0 10px 24px; font-size: 16px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 17px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline .yr { font-weight: 800; color: var(--accent-dark); }
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.toc { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 14px; }
.toc b { margin-bottom: 6px; }
.toc a { padding: 5px 8px; border-radius: 8px; color: var(--ink); }
.toc a.sub { padding-left: 18px; color: var(--muted); font-size: 13px; }
.toc a:hover { background: var(--accent-soft); }
.type-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.type-card h3 { margin: 0 0 6px; font-size: 18px; }
.type-card p { margin: 0; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cards.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card-item .num { font-size: 40px; font-weight: 800; color: #ffd3c6; line-height: 1; margin-bottom: 8px; letter-spacing: -0.03em; }
.card-item h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.card-item p { margin: 0 0 8px; color: #3c4350; line-height: 1.65; }
.card-item .amount { font-size: 22px; font-weight: 800; color: var(--accent-dark); margin-bottom: 8px; }
.card-item .amount small { font-size: 14px; color: var(--muted); font-weight: 600; }
.muted-card { background: #faf8f6; }
.muted-card p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col .card p { line-height: 1.7; }
.big-link { font-size: 18px; font-weight: 700; }
.big-link a, .prose a, .card a, .card-item a { color: var(--accent-dark); }
.muted-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 22px 26px; border-radius: 18px; background: var(--accent-soft); border: 1px solid #ffd3c6; }
.cta-box b { font-size: 19px; }
@media (max-width: 900px) {
  .hero-in { padding: 38px 24px; }
  .hero h1 { font-size: 34px; }
  .facts, .two-col, .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .page-intro h1 { font-size: 30px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- activities archive */
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.jump a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.jump a:hover { border-color: var(--accent); color: var(--accent-dark); }
.h2.sec { margin-top: 44px; }
.sec-sub { color: var(--muted); margin: -4px 0 16px; }
.flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.flyer { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.flyer-img { display: block; background: #f1ede9; }
.flyer-img img { width: 100%; max-height: 420px; object-fit: contain; }
.flyer-body { padding: 16px 18px; }
.flyer-body h3 { margin: 4px 0 6px; font-size: 18px; }
.flyer-body p { margin: 0; color: #3c4350; line-height: 1.65; font-size: 15px; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 10px 30px rgba(31,36,48,.1); transform: translateY(-2px); }
.news-cover { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #ffe3da, #fff4cc); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 12px 14px 14px; }
.news-body h3 { margin: 4px 0 0; font-size: 17px; }
.reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.report { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.report:hover { border-color: var(--accent); }
.report-year { font-size: 28px; font-weight: 800; color: var(--accent-dark); letter-spacing: -0.02em; }
.report-t { display: flex; flex-direction: column; font-weight: 700; }
.report-t small { color: var(--muted); font-weight: 600; font-size: 12px; }
.nl-head { max-width: 680px; margin: 0 auto 16px; }
.nl-head h1 { font-size: 32px; margin: 4px 0 0; letter-spacing: -0.02em; }
.nl { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; overflow: hidden; line-height: 1.6; }
.nl table { width: 100% !important; border-collapse: collapse; }
.nl td { padding: 4px 0; vertical-align: top; }
.nl img { max-width: 100%; height: auto; border-radius: 8px; }
.nl table[align="left"][width]:not([width="100%"]), .nl table[align="right"][width]:not([width="100%"]) { width: 49% !important; }
.nl table[align="right"][width]:not([width="100%"]) { float: right; } .nl table[align="left"][width]:not([width="100%"]) { float: left; }
.nl img[width] { width: auto; }
.nl h1 { font-size: 26px; } .nl h2 { font-size: 21px; } .nl h3, .nl h4 { font-size: 17px; }
.nl a { color: var(--accent-dark); }
.nl tr::after { content: ""; display: table; clear: both; }
.nl-nav { max-width: 680px; margin: 18px auto 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .nl { padding: 14px; } .nl table[align][width] { width: 100% !important; float: none !important; } }
.nl td:empty { padding: 0; }

/* ---------- old-site media */
.qr-box { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.qr-box img.qr { width: 120px; height: 120px; border-radius: 8px; }
.qr-box span { font-weight: 700; }
.notice-img { display: block; margin-top: 14px; max-width: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.notice-img.wide { max-width: 560px; }
.patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pattern { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pattern:hover { border-color: var(--accent); }
.pattern-img { aspect-ratio: 1 / 1; background: #faf6f2; display: flex; align-items: center; justify-content: center; }
.pattern-img img { width: 100%; height: 100%; object-fit: cover; }
.pattern-t { padding: 10px 12px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.pdf-badge { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 6px; }
.pattern-img .pdf-badge { font-size: 16px; padding: 8px 12px; }
.sew-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sew-list a { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.sew-list a:hover { border-color: var(--accent); }
.video-box { margin: 0 0 26px; max-width: 860px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.video-box summary { cursor: pointer; font-weight: 800; font-size: 17px; }
.video-box video { width: 100%; margin-top: 12px; border-radius: 12px; background: #000; }

/* ---------- logo */
.hero-logo { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); z-index: 1; background: #fff; border-radius: 26px; padding: 22px 26px; box-shadow: 0 18px 40px rgba(120,20,10,.22); }
.hero-logo img { width: 210px; display: block; }
.hero::after { display: none; }
.auth-logo { display: inline-block; background: #fff; border-radius: 20px; padding: 14px 18px; margin-bottom: 26px; position: relative; box-shadow: 0 12px 30px rgba(120,20,10,.2); }
.auth-logo img { width: 150px; display: block; }
@media (max-width: 1100px) { .hero-logo { right: 28px; padding: 16px 18px; } .hero-logo img { width: 160px; } }
@media (max-width: 900px) { .hero-logo { position: static; transform: none; display: inline-block; margin: 24px 0 0 24px; padding: 12px 14px; border-radius: 18px; } .hero-logo img { width: 130px; } .brand-logo { height: 28px; } }

/* ---------- pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 28px 0 10px; }
.pg { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.pg:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.pg.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg:disabled { opacity: .35; cursor: default; }
.pg-gap { color: var(--muted); padding: 0 4px; }
.pg-go { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--muted); font-size: 14px; }
.pg-go .input { width: 80px; height: 40px; }

/* ---- volunteer application form */
form.apply { max-width: 860px; display: flex; flex-direction: column; gap: 18px; padding: 26px; }
form.apply fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; }
form.apply legend { font-weight: 800; padding: 0 6px; }
form.apply .opts { display: flex; flex-wrap: wrap; gap: 8px; }
form.apply .opt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; font-size: 14px; }
form.apply .opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
form.apply .opt input { margin: 0; accent-color: var(--accent); }
form.apply .days .opt { min-width: 64px; justify-content: center; }
form.apply .school { margin-top: 12px; max-width: 420px; }
form.apply .hint { margin: -6px 0 0; color: var(--muted); font-size: 13px; }
form.apply fieldset .hint { margin: 10px 0 0; }
form.apply .consent { white-space: normal; align-items: flex-start; line-height: 1.5; }
form.apply .consent input { margin-top: 4px; }
form.apply .btn.big { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.card.thanks { max-width: 620px; margin: 30px auto; text-align: center; padding: 40px 28px; }
.card.thanks .big-heart { font-size: 54px; color: var(--accent); line-height: 1; }
.card.thanks h1 { margin: 10px 0; }
.card.thanks p { line-height: 1.7; }
.muted { color: var(--muted); }
/* ---- admin: applications */
.nav-badge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; align-items: center; justify-content: center; vertical-align: 1px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.vtab { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
.vtab span { color: var(--muted); margin-left: 3px; font-weight: 700; }
.vtab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.vtab.on span { color: #ffd3c6; }
.vsearch { display: flex; gap: 8px; margin-bottom: 14px; max-width: 560px; }
.apps { display: flex; flex-direction: column; gap: 8px; }
.app { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.app-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; flex-wrap: wrap; }
.app-head:hover { background: #fbfaf9; }
.app-head b { font-size: 16px; }
.app-head .roles { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.app-head .when { color: var(--muted); font-size: 13px; }
.app-body { display: none; padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.app.open .app-body { display: block; }
.app.open { border-color: #ffc2ae; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.app-body table.info { margin-top: 12px; }
.app-tools { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.app-tools .grow { flex: 1; min-width: 240px; }
.app-tools .btns { display: flex; gap: 6px; }
.st { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #eee; }
.st-new { background: var(--accent); color: #fff; }
.st-contacted { background: #fff3c4; color: #8a6100; }
.st-oriented { background: #e0edff; color: #1f5fbf; }
.st-active { background: #dcf5e3; color: #17723a; }
.st-declined { background: #eee; color: #777; }
.notify-log { margin-top: 10px; font-size: 12px; color: #17723a; }
.notify-log.bad { color: #b42318; }
/* ---- admin: settings */
form.settings { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
form.settings .card p.muted { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.actions-row { display: flex; gap: 8px; }
#test-out .ok { color: #17723a; font-weight: 700; }
#test-out .bad { color: #b42318; font-weight: 700; }
@media (max-width: 640px) { form.apply { padding: 18px; } .app-head .when { width: 100%; } }
.notify-log.none { color: var(--muted); }
.app-body table.info th { width: 190px; }
[hidden] { display: none !important; }
/* ---- newsletter cards: photo on top, year + season/month band below */
.news-card .nl-tile { display: flex; flex-direction: column; padding: 16px 20px 18px; color: #fff; position: relative; }
.nl-tile::before { content: "♥"; position: absolute; right: 16px; top: 12px; font-size: 34px; line-height: 1; opacity: .2; }
.nl-tile .nl-year { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.nl-tile .nl-label { font-size: 19px; font-weight: 800; letter-spacing: .08em; margin-top: 6px; }
.nl-tile .nl-word { font-size: 14px; font-weight: 600; opacity: .9; margin-top: 1px; }
.nl-tile.s-spring { background: linear-gradient(135deg, #2f9e5d, #8ccf5f); }
.nl-tile.s-summer { background: linear-gradient(135deg, #f26b2a, #ffbe3b); }
.nl-tile.s-autumn { background: linear-gradient(135deg, #b8322a, #ec7a3c); }
.nl-tile.s-winter { background: linear-gradient(135deg, #2457b8, #6aa6f2); }
/* ---- admin: manage children */
.modal.wide { max-width: 860px; }
.mstats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mstat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; min-width: 120px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); text-align: left; }
.mstat b { font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.mstat:hover { border-color: #ffc2ae; }
.mstat.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.mstat.on b { color: var(--accent-dark); }
.mtools { flex-wrap: wrap; }
.mtools .search { flex: 1 1 260px; }
.bulk { position: sticky; top: 118px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--ink); color: #fff; }
.bulk b { margin-right: 6px; }
.mtable-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.mtable { border-collapse: collapse; width: 100%; font-size: 14px; }
.mtable th, .mtable td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.mtable thead th { position: sticky; top: 0; background: #faf8f6; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; z-index: 1; }
.mtable th[data-sort] { cursor: pointer; user-select: none; }
.mtable th[data-sort]:hover { color: var(--ink); }
.mtable th i::after { content: "↕"; margin-left: 4px; opacity: .3; font-style: normal; }
.mtable th.on { color: var(--accent-dark); }
.mtable th.on.asc i::after { content: "↑"; opacity: 1; }
.mtable th.on.desc i::after { content: "↓"; opacity: 1; }
.mtable tbody tr:hover { background: #fffaf8; }
.mtable tbody tr.sel { background: var(--accent-soft); }
.mtable .ck { width: 34px; text-align: center; }
.mtable .ck input { width: 16px; height: 16px; accent-color: var(--accent); }
.mtable .ph { width: 48px; padding: 4px 6px; }
.mtable .ph img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block; background: #f3f1ef; }
.mtable .no { font-weight: 700; font-variant-numeric: tabular-nums; }
.mtable .nm a { font-weight: 700; color: var(--ink); }
.mtable .nm a:hover { color: var(--accent-dark); text-decoration: underline; }
.mtable .nm { white-space: normal; min-width: 160px; }
.mtable .alt { font-size: 12px; color: var(--muted); margin-top: 1px; }
.mtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.mtable .upd { color: var(--muted); font-size: 13px; }
.mtable .act { text-align: right; }
.mtable .act .btn { margin-left: 4px; }
.mtable .dash { color: #c9c3bd; }
.mtable td.none { text-align: center; padding: 50px; color: var(--muted); white-space: normal; }
.mfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 14px; }
.mfoot .pager { margin: 0; }
.imp-sum { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pill.bad { background: #fde8e7; color: #b42318; }
.imp-err { color: #b42318; font-size: 13px; max-height: 160px; overflow: auto; }
.imp-prev { font-size: 13px; max-height: 300px; display: block; overflow: auto; }
.imp-prev th { width: 90px; }
/* ---- projects page */
.pj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #e8343a 0%, var(--accent) 55%, var(--sun) 100%); color: #fff; margin-bottom: 18px; }
.pj-stats > div { padding: 24px 22px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid rgba(255,255,255,.22); }
.pj-stats > div:last-child { border-right: 0; }
.pj-stats b { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pj-stats span { font-size: 14px; opacity: .92; line-height: 1.4; }
.pj-nav { position: sticky; top: 108px; z-index: 4; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: 0 0 18px; background: var(--bg, #fdf8f4); scrollbar-width: none; }
.pj-nav::-webkit-scrollbar { display: none; }
.pj-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pj-nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pj { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 32px; margin-bottom: 18px; }
.pj-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pj-icon { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--accent-soft); color: var(--accent); }
.pj-title { flex: 1; min-width: 220px; }
.pj-num { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.pj-title h2 { margin: 2px 0 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.pj-amount { text-align: right; padding: 10px 16px; border-radius: 16px; background: #fff6ef; border: 1px solid #ffd9c4; }
.pj-amount b { display: block; font-size: 22px; color: var(--accent-dark); letter-spacing: -0.02em; }
.pj-amount span { font-size: 13px; color: var(--muted); }
.pj-lead { font-size: 19px; line-height: 1.55; font-weight: 600; color: var(--ink); margin: 6px 0 14px; max-width: 900px; }
.pj p { line-height: 1.75; max-width: 900px; }
.pj-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pj-facts > div { padding: 12px 16px; border-radius: 14px; background: #faf8f6; display: flex; flex-direction: column; }
.pj-facts b { font-size: 20px; color: var(--accent-dark); }
.pj-facts span { font-size: 13px; color: var(--muted); }
.pj-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.pj-steps li { position: relative; padding: 18px 18px 16px; border-radius: 16px; background: #faf8f6; border: 1px solid var(--line); }
.pj-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.pj-steps h4 { margin: 10px 0 6px; font-size: 16px; }
.pj-steps p { margin: 0; font-size: 14px; line-height: 1.65; color: #4a4440; }
.pj-result { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 20px; border-radius: 16px; background: linear-gradient(90deg, var(--accent-soft), #fff); }
.pj-result b { font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.pj-result span { font-weight: 600; }
.pj-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.pj-two h4 { margin: 0 0 8px; }
.pj-check { list-style: none; padding: 0; margin: 0; }
.pj-check li { position: relative; padding: 7px 0 7px 30px; line-height: 1.5; border-bottom: 1px dashed var(--line); }
.pj-check li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pj-hours { padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.pj-hours-k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; font-weight: 700; }
.pj-hours-v { font-size: 22px; font-weight: 800; margin: 6px 0 16px; line-height: 1.3; }
.pj-hours .btn.primary { background: #fff; color: var(--accent-dark); border-color: #fff; }
.pj-gallery { display: flex; gap: 10px; overflow-x: auto; margin-top: 16px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.pj-gallery figure { flex: none; width: 150px; margin: 0; scroll-snap-align: start; }
.pj-gallery img { width: 150px; height: 150px; object-fit: cover; border-radius: 14px; background: #f3f1ef; display: block; }
.pj-gallery figcaption { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.pj-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pj-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 24px; background: var(--ink); color: #fff; }
.pj-cta h2 { margin: 0 0 6px; font-size: 26px; }
.pj-cta p { margin: 0; opacity: .85; }
.pj-cta a:not(.btn) { color: #ffd3c6; }
.pj-cta .pj-btns { margin: 0; }
.pj-cta .btn.primary { background: var(--accent); }
@media (max-width: 900px) {
  .pj-stats { grid-template-columns: repeat(2, 1fr); }
  .pj-stats > div:nth-child(2) { border-right: 0; }
  .pj-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .pj-steps { grid-template-columns: 1fr 1fr; }
  .pj-two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pj { padding: 22px 18px; border-radius: 20px; }
  .pj-stats b { font-size: 30px; }
  .pj-steps { grid-template-columns: 1fr; }
  .pj-amount { text-align: left; width: 100%; }
  .pj-title h2 { font-size: 22px; }
  .pj-lead { font-size: 17px; }
  .pj-nav { top: 100px; }
}
/* ---- donations page */
.dn-promise { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(90deg, var(--accent-soft), #fff); margin-bottom: 8px; }
.dn-promise b { font-size: 36px; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.dn-promise span { font-weight: 700; font-size: 17px; }
.dn-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.dn-method { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #faf8f6; }
.dn-method.rec { border-color: var(--accent); background: #fff6ef; }
.dn-mh { display: flex; align-items: center; gap: 8px; }
.dn-ic { font-size: 20px; }
.dn-mh b { font-size: 16px; }
.dn-mh em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
.dn-method p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #4a4440; }
.dn-qr { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.dn-qr img { width: 110px; height: 110px; border-radius: 10px; background: #fff; padding: 4px; border: 1px solid var(--line); }
.dn-qr span { font-size: 13px; color: var(--muted); }
.dn-ask { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: #fff; }
.dn-ask-k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; font-weight: 700; margin-bottom: 6px; }
.dn-ask-v { font-size: 17px; margin: 2px 0; }
.dn-ask a { color: #ffd3c6; }
.dn-ask p { margin: 0; max-width: 420px; font-size: 14px; opacity: .85; line-height: 1.6; }
.dn-needs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dn-needs li { padding: 8px 12px 8px 30px; border-radius: 12px; background: #faf8f6; position: relative; font-size: 14px; }
.dn-needs li::before { content: "♥"; position: absolute; left: 11px; color: var(--accent); font-size: 12px; top: 9px; }
.dn-ship .pj-hours-v { font-size: 19px; }
.dn-ship .btn { margin-top: 14px; background: #fff; color: var(--ink); border-color: #fff; }
.dn-ship a { color: #ffd3c6; }
.dn-rules { padding-left: 20px; margin: 6px 0 16px; }
.dn-rules li { margin: 4px 0; font-weight: 600; }
.dn-hosp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dn-h { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: #faf8f6; display: flex; flex-direction: column; }
.dn-h h4 { margin: 0 0 8px; font-size: 17px; }
.dn-h p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.dn-h p.en { color: var(--muted); font-size: 13px; }
.dn-h-links { display: flex; gap: 14px; margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; }
#dn-goods .notice-img img { max-width: 520px; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 900px) { .dn-methods, .dn-hosp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dn-methods, .dn-hosp, .dn-needs { grid-template-columns: 1fr; } }
.pj-cta .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.pj-cta .btn:not(.primary):hover { border-color: #fff; }
/* ---- volunteering page */
.vl-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.vl-chips span { padding: 7px 13px; border-radius: 999px; background: #faf8f6; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.vl-faq-t { margin: 22px 0 8px; }
.vl-faq { display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.vl-faq details { border: 1px solid var(--line); border-radius: 14px; background: #faf8f6; overflow: hidden; }
.vl-faq summary { cursor: pointer; padding: 13px 44px 13px 16px; font-weight: 700; list-style: none; position: relative; }
.vl-faq summary::-webkit-details-marker { display: none; }
.vl-faq summary::after { content: "+"; position: absolute; right: 16px; top: 9px; font-size: 22px; color: var(--accent); font-weight: 400; }
.vl-faq details[open] summary::after { content: "–"; }
.vl-faq details[open] { background: #fff; border-color: #ffc2ae; }
.vl-faq details p { margin: 0; padding: 0 16px 14px; color: #4a4440; }
.vl-teams { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }
.vl-teams span { padding: 7px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.pj h4 { margin: 22px 0 10px; font-size: 17px; }
.pj .notice-img img { max-width: 560px; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
/* ---- group volunteering */
.gv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.gv { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #faf8f6; }
.gv.wide { grid-column: 1 / -1; background: #fff6ef; border-color: #ffd9c4; }
.gv p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #4a4440; }
.gv-facts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gv-facts span { padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.gv-facts em { font-style: normal; color: var(--muted); font-weight: 500; margin-right: 6px; }
.gv-rules { margin-top: 10px; }
.gv-rules ul { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; }
.gv-rules li { margin: 3px 0; break-inside: avoid; }
/* ---- contact */
.ct-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ct { display: block; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.ct:hover { border-color: var(--accent); }
.ct b { display: block; margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; color: var(--accent-dark); }
/* ---- footer */
.site-foot { margin-top: 56px; background: var(--ink); color: rgba(255,255,255,.75); font-size: 14px; }
.sf-in { max-width: 1200px; margin: 0 auto; padding: 30px 24px 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px 28px; align-items: center; }
.sf-brand { display: flex; align-items: center; gap: 12px; }
.sf-brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.sf-brand b { display: block; color: #fff; font-size: 15px; }
.sf-brand span { font-size: 12px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.sf-links a, .sf-mail a, .sf-legal a { color: rgba(255,255,255,.8); }
.sf-links a:hover, .sf-mail a:hover, .sf-legal a:hover { color: #fff; }
.sf-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; font-size: 13px; text-align: center; }
@media (max-width: 900px) { .gv-grid { grid-template-columns: 1fr; } .gv-rules ul { columns: 1; } .ct-grid { grid-template-columns: 1fr 1fr; } .sf-in { grid-template-columns: 1fr; text-align: center; } .sf-brand { justify-content: center; } }
@media (max-width: 600px) { .ct-grid { grid-template-columns: 1fr; } }

.home-video { margin: 28px 0; }
.home-video video { width: 100%; max-width: 960px; display: block; border-radius: 20px; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.sf-in { grid-template-columns: auto 1fr; }
.sf-links { justify-content: flex-end; }
@media (max-width: 900px) { .sf-in { grid-template-columns: 1fr; } .sf-links { justify-content: center; } }

.home-about { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 36px; align-items: center; margin: 34px 0 10px; }
.home-about .prose { max-width: 720px; }
.home-about .h2 { margin-top: 0; }
.home-photo { margin: 0; aspect-ratio: 9 / 16; max-height: 560px; border-radius: 26px; overflow: hidden; position: relative; box-shadow: 0 18px 40px rgba(232,52,58,.18); transform: rotate(-1.5deg); }
.home-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.home-photo::after { content: "♥"; position: absolute; right: 14px; bottom: 10px; color: #fff; font-size: 26px; opacity: .85; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
@media (max-width: 760px) {
  .home-about { grid-template-columns: 1fr; gap: 18px; }
  .home-photo { aspect-ratio: 4 / 3; max-height: none; transform: none; border-radius: 20px; }
  .home-photo img { object-position: center 42%; }
}

.home-photo img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease, transform 6s ease; transform: scale(1.04); }
.home-photo img.on { opacity: 1; transform: scale(1); }
.home-photo::after { z-index: 2; bottom: 34px; }
.ks-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.ks-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s, background .3s; }
.ks-dots button.on { width: 20px; border-radius: 4px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .home-photo img { transition: none; transform: none; } }
/* ks-dots-pill */
.ks-dots { left: 50%; right: auto; transform: translateX(-50%); padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(4px); }
/* ---- event posts */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sec-head .btn { margin-top: 28px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.post.draft { opacity: .65; border-style: dashed; }
.post-img { display: block; aspect-ratio: 4 / 3; background: #f6efe9; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-noimg { display: grid; place-items: center; height: 100%; font-size: 48px; color: var(--accent); opacity: .35; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.35; }
.post-body h3 a { color: var(--ink); }
.post-ex { margin: 0; color: #4a4440; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.post-foot .more { font-weight: 700; font-size: 14px; }
.post-admin { display: flex; gap: 6px; }
.post-form { display: flex; flex-direction: column; gap: 12px; }
.pf-img { display: flex; gap: 14px; align-items: center; }
.pf-prev { width: 200px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #f6efe9; display: grid; place-items: center; color: var(--muted); font-size: 13px; flex: none; }
.pf-prev img { width: 100%; height: 100%; object-fit: cover; }
.pf-img-btns { display: flex; flex-direction: column; gap: 8px; }
.post-form textarea { min-height: 180px; }
.post-page { display: grid; grid-template-columns: minmax(260px, 460px) 1fr; gap: 32px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.pp-img img { width: 100%; border-radius: 16px; display: block; }
.pp-text h1 { font-size: 32px; letter-spacing: -0.02em; margin: 6px 0 14px; line-height: 1.2; }
.pp-body { line-height: 1.8; font-size: 16px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .post-page { grid-template-columns: 1fr; padding: 18px; } .pf-img { flex-direction: column; align-items: flex-start; } .pf-prev { width: 100%; } }
.post-foot .more { white-space: nowrap; }
.pp-body a { color: var(--accent-dark); text-decoration: underline; }
.pp-img img { max-height: 78vh; object-fit: contain; background: #f6efe9; }

/* ---- child form: photos */
.cf-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cf-add { width: 88px; height: 88px; border: 2px dashed #e7d9cf; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--accent); background: #fffaf6; text-align: center; }
.cf-add:hover { border-color: var(--accent); }
.cf-add span { font-size: 26px; line-height: 1; }
.cf-add small { font-size: 11px; font-weight: 700; margin-top: 4px; }
.cf-thumb { position: relative; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: #f3f1ef; }
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }
.cf-thumb a { display: block; width: 100%; height: 100%; }
.cf-thumb.del img { opacity: .3; filter: grayscale(1); }
.cf-thumb.del::after { content: ""; position: absolute; inset: 0; border: 2px solid #d9534f; border-radius: 14px; pointer-events: none; }
.cf-thumb.del button { background: #d9534f; }
.cf-badge { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 8px; padding: 1px 6px; }
.cf-badge.grp { background: rgba(0,0,0,.6); }
.cf-note { display: block; color: #d9534f; margin-top: 6px; }
.cf-loading { align-self: center; font-size: 13px; }
