/* PCG Promo Kit: nonprofit-facing, Pick.Click.Give. green (matches Ad Factory's /p and /r pages). */
@font-face { font-family: "Bai Jamjuree"; font-weight: 400; font-display: swap; src: url(../brand/fonts/bai-jamjuree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Bai Jamjuree"; font-weight: 600; font-display: swap; src: url(../brand/fonts/bai-jamjuree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bai Jamjuree"; font-weight: 700; font-display: swap; src: url(../brand/fonts/bai-jamjuree-latin-700-normal.woff2) format("woff2"); }

:root {
  --green: #658f3e; --green-dark: #4f7a2e; --ink: #1d1d1b; --gray: #5f6359;
  --bg: #f4f6f1; --line: #d5d9cf; --card: #fff; --warn-bg: #fff6dd; --warn: #7a5600;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 "Bai Jamjuree", "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
a { color: var(--green-dark); }
h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.15; margin: 28px 0 10px; text-wrap: balance; }
h2 { font-size: 26px; margin: 36px 0 6px; }
h3 { font-size: 18px; margin: 0 0 4px; }
.lead { font-size: 18px; color: var(--gray); margin: 0 0 16px; max-width: 46em; }

.top { background: var(--green); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.top-logo { height: 26px; width: auto; display: block; }
.top-tag { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; white-space: nowrap; }

.how { list-style: none; counter-reset: how; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 16px; }
.how li { counter-increment: how; display: flex; align-items: center; gap: 8px; }
.how li::before { content: counter(how); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.privacy { font-size: 15px; color: var(--gray); background: #e9eee2; border-radius: 10px; padding: 10px 14px; margin: 0 0 22px; max-width: 46em; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 20px 20px; }
.step { padding: 18px 0; border-bottom: 1px solid #e8ebe3; }
.step > label, .step > .label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-size: 16px; display: grid; place-items: center; }
.opt { font-weight: 400; font-size: 13px; color: var(--gray); border: 1px solid var(--line); border-radius: 20px; padding: 0 8px; }
.hint { margin: 4px 0 10px; color: var(--gray); font-size: 15px; }
input[type=text], input[type=url], textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #b9bfb0; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, .drop:focus-within, summary:focus-visible { outline: 3px solid #a9cf86; outline-offset: 2px; }
.count { text-align: right; margin: 4px 0 0; font-size: 14px; color: var(--gray); font-variant-numeric: tabular-nums; }
.msg { margin: 10px 0 0; font-size: 15px; }
.msg.warn { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 8px 12px; }

.drop { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 104px; padding: 14px; border: 2px dashed #a9b39c; border-radius: 12px; background: #fafbf8; text-align: center; cursor: pointer; }
.drop.over { background: #e9eee2; border-color: var(--green); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-text b { color: var(--green-dark); text-decoration: underline; }
.drop-thumb { width: 120px; height: 80px; border-radius: 8px; background: #fff center/contain no-repeat; border: 1px solid var(--line); flex: none; }
.drop-thumb.dark { background-color: var(--ink); }
.busy { opacity: .6; pointer-events: none; }

.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.seg { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 0; }
.seg legend { float: left; margin-right: 10px; padding: 0; font-size: 15px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 6px 16px; border: 1.5px solid #b9bfb0; background: #fff; }
.seg label:first-of-type span { border-radius: 8px 0 0 8px; }
.seg label:last-of-type span { border-radius: 0 8px 8px 0; border-left: 0; }
.seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid #a9cf86; outline-offset: 2px; }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 96px; height: 96px; border-radius: 10px; border: 3px solid transparent; padding: 0; background: #ddd center/cover no-repeat; cursor: pointer; }
.thumb.on { border-color: var(--green); box-shadow: 0 0 0 2px #fff inset; }
.thumb .x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.tips { margin-top: 14px; font-size: 15px; }
.tips summary { cursor: pointer; color: var(--green-dark); font-weight: 600; }
.tips img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }

.go { padding-top: 18px; text-align: center; }
.btn { font: inherit; font-weight: 700; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); padding: 10px 18px; cursor: pointer; }
.btn.primary { background: #000; color: #fff; border-color: #000; font-size: 20px; padding: 14px 34px; letter-spacing: .02em; }
.btn.primary:hover { background: #2a2a28; }
.btn.small { font-size: 15px; padding: 8px 14px; }
.btn[disabled] { opacity: .55; cursor: default; }

.adjust { padding: 18px 20px; margin-bottom: 20px; }
.focal { position: relative; display: inline-block; max-width: 100%; touch-action: none; cursor: crosshair; border-radius: 10px; overflow: hidden; line-height: 0; user-select: none; }
.focal canvas { max-width: 100%; height: auto; max-height: 340px; width: auto; display: block; }
.dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 4px solid #fff; background: rgba(101,143,62,.85); box-shadow: 0 1px 6px #0009; pointer-events: none; }

.group-title { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin: 26px 0 10px; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.assets .group-title { grid-column: 1 / -1; margin-bottom: 0; }
.asset { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.asset.wide { grid-column: 1 / -1; }
.asset canvas { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 0 0 1px #0001; }
.asset.clear canvas { background: repeating-conic-gradient(#e4e6e0 0 25%, #fff 0 50%) 0 0/18px 18px; }
.asset-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.asset-meta b { display: block; line-height: 1.2; }
.asset-meta small { color: var(--gray); font-size: 13px; }

.foot { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--gray); }
.foot p { margin: 0 0 8px; max-width: 52em; }
.foot-acf { display: flex; align-items: center; gap: 10px; margin-top: 14px !important; }
.foot-acf img { height: 40px; width: auto; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { padding: 2px 14px 16px; }
  .top-logo { height: 20px; }
  .top-tag { font-size: 12px; }
  .btn.primary { width: 100%; }
  .drop-thumb { width: 96px; height: 64px; }
}

.zipbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }
.copy { display: grid; gap: 14px; }
.copy-sec { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; }
.copy-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid #e8ebe3; }
.copy-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-item small { display: block; color: var(--gray); font-size: 13px; }
.copy-item .btn { flex: none; min-width: 84px; }
@media (max-width: 560px) { .copy-item { flex-direction: column; } .zipbar .btn { width: 100%; } }

.adj { margin-top: 8px; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--green-dark); text-decoration: underline; cursor: pointer; }
.adj-panel { margin-top: 6px; padding: 10px 12px; background: #f1f4ec; border-radius: 10px; }
.adj-panel .hint { margin: 0 0 8px; }
.zoom { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.zoom input { flex: 1; accent-color: var(--green); }
.thumbs.small .thumb { width: 60px; height: 60px; border-radius: 8px; }
.asset.adjusting canvas { cursor: grab; touch-action: none; outline: 3px solid #a9cf86; outline-offset: 2px; }
.asset.adjusting canvas:active { cursor: grabbing; }

.suggest { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.suggest .hint { flex-basis: 100%; margin: 0 0 2px; }
.chip { font: inherit; font-size: 15px; text-align: left; padding: 8px 14px; border-radius: 20px; border: 1.5px solid #b9bfb0; background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--green); background: #f1f4ec; }

.feedback { margin: 26px 0 0; padding: 14px 16px; background: #e9eee2; border-radius: 10px; font-weight: 600; }
.feedback .sub-note { font-weight: 400; color: var(--gray); font-size: 14px; }

.beta { margin: 18px 0 0; padding: 10px 14px; background: var(--warn-bg); color: #4d3800; border: 1px solid #ecd9a0; border-radius: 10px; font-size: 15px; }
.beta a { color: inherit; font-weight: 700; }
.beta-tag { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 20px; background: #7a5600; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }

.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.style { font: inherit; text-align: left; padding: 8px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.style canvas { width: 100%; height: auto; display: block; border-radius: 6px; margin-bottom: 8px; box-shadow: 0 0 0 1px #0001; }
.style b { display: block; line-height: 1.2; font-size: 15px; }
.style small { display: block; color: var(--gray); font-size: 13px; line-height: 1.3; margin-top: 2px; }
.style.on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
@media (max-width: 560px) { .styles { gap: 8px; } .style { padding: 6px; } .style small { display: none; } .style b { font-size: 13px; } }

.focal.mini { display: block; width: max-content; max-width: 100%; margin: 0 0 10px; border-radius: 8px; }
.focal.mini img { display: block; max-width: 100%; width: auto; height: auto; max-height: 190px; pointer-events: none; }
.focal.mini .dot { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-width: 3px; }

.demo-note { margin: 12px 0 0; padding: 12px 16px; background: #e9eee2; border: 1px solid #c9d6b8; border-radius: 10px; font-size: 16px; }
