* { margin: 0; padding: 0; box-sizing: border-box; }
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/baloo2.woff2') format('woff2');
}
:root { --font-display: 'Baloo 2', 'Segoe UI', system-ui, sans-serif; }
h1, h2, h3, .btn-download, .cat-pill { font-family: var(--font-display); }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(160deg, #f0fdf4 0%, #ecfeff 45%, #fefce8 100%) fixed;
  color: #1e3a2f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
main.wrap { flex: 1; padding-bottom: 60px; }

/* header */
.site-header { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-header::after { content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, #86efac, #5eead4, #7dd3fc, #fde68a, #fdba74, #86efac); }
.header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex: none; color: #16a34a; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em;
  color: #14532d; white-space: nowrap; }
.brand-name b { color: #16a34a; font-weight: 800; }
.brand:hover .brand-mark { transform: scale(1.06) rotate(-3deg); }
.brand-mark { transition: transform .25s ease; }
@media (max-width: 879px) { .brand { flex: 1; } .brand-name { font-size: 1.2rem; } .brand-mark { width: 38px; height: 38px; } }

/* mobile nav (CSS-only) */
.nav-open { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { width: 46px; height: 46px; border-radius: 15px; background: #fff; border: 2px solid #bbf7d0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex: none; transition: border-color .2s; }
.nav-burger:hover { border-color: #4ade80; }
.nav-burger span { display: block; width: 20px; height: 3px; border-radius: 3px; background: #15803d;
  transition: transform .25s ease, opacity .2s ease; }
.nav-open:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open:checked ~ .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav-open:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-open:focus-visible ~ .nav-burger { outline: 3px solid #4ade80; outline-offset: 2px; }
.header-nav { display: none; position: absolute; top: calc(100% + 10px); left: 12px; right: 12px;
  flex-direction: column; background: #fff; border: 1px solid #dcfce7; border-radius: 22px; padding: 10px;
  box-shadow: 0 18px 44px rgba(22,163,74,.22); z-index: 30; }
.nav-open:checked ~ .header-nav { display: flex; animation: navdrop .22s ease; }
@keyframes navdrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.header-nav a { font-family: var(--font-display); display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 16px; border-radius: 15px; color: #166534; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.header-nav a:hover:not(.nav-cta) { background: #f0fdf4; color: #16a34a; }
.nav-cta { margin-top: 6px; }
.header-nav .nav-cta, .btn-download { background: linear-gradient(90deg, #16a34a, #0d9488); color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .35); }
.header-nav .nav-cta:hover, .btn-download:hover { filter: brightness(1.08); }
@media (min-width: 880px) {
  .nav-burger, .nav-open { display: none; }
  .header-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px;
    background: none; border: none; box-shadow: none; padding: 0; }
  .header-nav a { padding: 9px 13px; font-size: .98rem; }
  .nav-cta { margin: 0 0 0 10px; padding: 10px 20px; border-radius: 9999px; }
}

/* hero */
.hero { text-align: center; padding: 44px 0 26px; }
@media (max-width: 879px) {
  .hero { padding: 20px 0 12px; }
  .hero .lead { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
.hero h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, #16a34a, #0d9488, #d97706); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.hero .lead { color: #3f6253; font-size: 1.1rem; max-width: 680px; margin: 0 auto; line-height: 1.6; }

/* grids + cards */
.grid { display: grid; gap: 22px; }
.galleries-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); padding: 18px 0 8px; }
.galleries-grid.small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sheets-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 18px 0; }
.card { background: #fff; border: 1px solid #dcfce7; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 4px 16px rgba(22, 163, 74, .08); transition: transform .15s ease, box-shadow .15s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(22, 163, 74, .18); }
.card img { width: 100%; height: auto; aspect-ratio: 612 / 792; object-fit: cover; object-position: top; background: #fff; border-bottom: 1px solid #ecfdf5; }
.card h2, .card h3 { font-size: 1.05rem; padding: 12px 14px 4px; color: #14532d; }
.card .count { padding: 0 14px 14px; color: #6b9080; font-size: .85rem; }

/* gallery page */
.breadcrumbs { padding: 18px 0 0; font-size: .85rem; color: #6b9080; }
.breadcrumbs a { color: #15803d; text-decoration: none; }
.sheet-card { align-items: center; padding-bottom: 16px; }
.cp-imglink { display: block; width: 100%; line-height: 0; }
.cp-imgwrap { position: relative; width: 100%; }
.pin-btn { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: #e60023; color: #fff; font-weight: 700; font-size: .82rem; line-height: 1; padding: 8px 13px;
  border-radius: 999px; text-decoration: none; box-shadow: 0 2px 8px rgba(20, 60, 40, .22);
  opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.pin-btn:hover { background: #c8001f; }
.sheet-card:hover .pin-btn, .pin-btn:focus-visible { opacity: 1; }
@media (hover: none) { .pin-btn { opacity: 1; } }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  color: #fff; font-size: .86rem; font-weight: 700; line-height: 1; text-decoration: none; border: 0;
  cursor: pointer; font-family: inherit; transition: filter .15s ease; }
.share-btn:hover { filter: brightness(.92); }
.sb-pin { background: #e60023; }
.sb-fb { background: #1877f2; }
.sb-wa { background: #25d366; }
.sb-copy { background: #0d9488; }
.cp-title { font-family: var(--font-display); font-size: 1.02rem; color: #14532d; padding: 12px 16px 0; text-align: center; }
.cp-desc { color: #55806b; font-size: .82rem; line-height: 1.45; padding: 4px 18px 0; text-align: center; }
.btn-download { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 22px; border-radius: 9999px;
  font-weight: 700; text-decoration: none; font-size: .95rem; }

/* gallery editorial body + updated stamp */
.updated-stamp { color: #6b9080; font-size: .78rem; margin-top: 10px; }
.age-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 14px; border-radius: 999px;
  background: #fef9c3; border: 1px solid #fde68a; color: #854d0e; font-size: .8rem; font-weight: 600; }
.gallery-body { max-width: 760px; margin: 30px auto 0; background: #fff; border: 1px solid #dcfce7;
  border-radius: 18px; padding: 26px 32px; }
.gallery-body h2 { color: #14532d; font-size: 1.15rem; margin: 18px 0 8px; }
.gallery-body h2:first-child { margin-top: 0; }
.gallery-body p, .gallery-body li { color: #3f6253; line-height: 1.7; margin: 8px 0; }
.gallery-body a { color: #16a34a; }
.home-about, .hub-about { max-width: 720px; margin: 30px auto 0; }
.home-about h2, .hub-about h2 { color: #14532d; font-size: 1.2rem; margin-bottom: 8px; text-align: center; }
.home-about p, .hub-about p { color: #3f6253; line-height: 1.7; margin: 8px 0; }

/* how it works */
.how { background: #fff; border: 1px solid #dcfce7; border-radius: 18px; padding: 26px 30px; margin-top: 28px; }
.how h2 { color: #14532d; margin-bottom: 14px; }
.how ol { padding-left: 22px; color: #3f6253; line-height: 2; }

.related { margin-top: 34px; }
.related h2 { color: #14532d; margin-bottom: 6px; }

/* name tracing generator */
.gen-panel { max-width: 620px; margin: 24px auto 0; background: #fff; border: 1px solid #dcfce7; border-radius: 22px;
  padding: 30px 34px; box-shadow: 0 8px 28px rgba(22,163,74,.1); text-align: center; }
.gen-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.gen-form input[type=text] { flex: 1 1 240px; max-width: 320px; padding: 13px 18px; border: 2px solid #bbf7d0; border-radius: 14px;
  font: inherit; font-size: 1.1rem; color: #1e3a2f; text-align: center; }
.gen-form input[type=text]:focus { outline: none; border-color: #4ade80; }
.gen-form .btn-download { margin-top: 0; border: none; cursor: pointer; }
.gen-hint { color: #6b9080; font-size: .84rem; margin-top: 12px; }
.gen-preview { margin-top: 26px; }
.gen-preview img { max-width: 340px; width: 100%; border: 1px solid #dcfce7; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(22,163,74,.12); }

/* home generator promo */
.home-gen { text-align: center; margin-top: 34px; background: linear-gradient(120deg, #f0fdf4, #ecfeff);
  border: 1px solid #dcfce7; border-radius: 22px; padding: 30px 26px; }
.home-gen h2 { color: #14532d; font-size: 1.35rem; }
.home-gen .lead { color: #3f6253; margin: 6px auto 4px; max-width: 620px; }
.home-gen .btn-download { margin-top: 14px; }

/* category strip with animal icons */
.cat-strip { text-align: center; margin: 4px 0 10px; }
.cat-strip h2 { color: #14532d; font-size: 1.1rem; margin-bottom: 12px; }
.cat-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 9999px; background: #fff;
  border: 2px solid #bbf7d0; color: #15803d; font-weight: 600; text-decoration: none; font-size: .92rem; }
.cat-pill:hover { border-color: #4ade80; color: #16a34a; }
.cat-pill svg { flex: none; }

/* footer */
.site-footer { background: rgba(255,255,255,.7); border-top: 1px solid #dcfce7; padding: 22px 0; text-align: center;
  color: #6b9080; font-size: .85rem; margin-top: auto; }
.site-footer p { margin: 4px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 26px 20px 10px; text-align: left; }
.fcol h4 { color: #166534; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.fcol a { display: block; color: #55806b; text-decoration: none; font-size: .9rem; padding: 3px 0; }
@media (max-width: 879px) { .fcol a { padding: 11px 0; } }
.fcol a:hover { color: #16a34a; }
.fcol .lang-current { display: block; color: #14532d; font-weight: 700; font-size: .9rem; padding: 3px 0; }
.footer-base { border-top: 1px solid #dcfce7; margin-top: 14px; padding-top: 14px; }

/* static pages */
.static-page { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid #dcfce7; border-radius: 18px; padding: 34px 38px; margin-top: 24px; }
.static-page h1 { color: #14532d; margin-bottom: 16px; font-size: 1.7rem; }
.static-page h2 { color: #166534; margin: 22px 0 8px; font-size: 1.15rem; }
.static-page p, .static-page li { color: #3f6253; line-height: 1.7; }
.static-page ul, .static-page ol { padding-left: 24px; margin: 8px 0; }
.static-page a { color: #16a34a; }

/* contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.contact-form label { font-weight: 600; color: #14532d; font-size: .92rem; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 5px; padding: 10px 14px; border: 2px solid #bbf7d0; border-radius: 12px; font: inherit; color: #1e3a2f; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #4ade80; }
.contact-form button { border: none; cursor: pointer; align-self: flex-start; }
.contact-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 14px 18px; border-radius: 12px; }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; margin-top: 16px; }
.admin-table th, .admin-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid #ecfdf5; font-size: .9rem; }
.admin-table th { background: #f0fdf4; color: #166534; }

@media print { .site-header, .site-footer, .breadcrumbs { display: none !important; } }
