* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f6fb; color: #12233f; -webkit-font-smoothing: antialiased; }
.top { background: #0a1f44; color: #fff; padding: 14px 16px 12px; }
.top h1 { margin: 0; font-size: 22px; }
.benefit { margin: 4px 0 10px; font-size: 14px; color: #d7e0f2; line-height: 1.35; }
main { max-width: 1060px; margin: 0 auto; padding: 12px 12px 32px; }
.mainnav { display: flex; gap: 8px; flex-wrap: wrap; }
.navbtn { flex: 1 1 auto; padding: 10px 6px; font-size: 14px; font-weight: 600; border: 2px solid #fff; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; min-height: 44px; }
.navbtn.active { background: #fff; color: #0a1f44; }
.view-title { margin: 6px 0 10px; font-size: 20px; }
.card { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(10,31,68,.06); }
.card h3 { margin: 2px 0 10px; font-size: 17px; }
.card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
input, select, textarea { width: 100%; font-size: 16px; padding: 9px 10px; border: 1.5px solid #b9c4da; border-radius: 9px; margin-top: 4px; background: #fff; color: #12233f; }
textarea { resize: vertical; line-height: 1.45; }
.btn { padding: 10px 14px; font-size: 15px; font-weight: 600; border: 2px solid #0a1f44; border-radius: 10px; background: #fff; color: #0a1f44; cursor: pointer; min-height: 44px; }
.btn.primary { background: #0a1f44; color: #fff; }
.btn.gold { background: #c9a227; border-color: #c9a227; color: #12233f; }
.btn.small { padding: 6px 10px; font-size: 13px; min-height: 38px; }
.btn.big { width: 100%; font-size: 16px; margin-top: 6px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.fine { font-size: 13px; color: #68779a; line-height: 1.45; }
.honest { background: #fdf6e0; border: 1px solid #c9a227; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.version { font-size: 12px; color: #9aa7c2; }
.copied { color: #1a7a37; font-weight: 600; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* Gallery */
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.setcard { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(10,31,68,.06); }
.coverbtn { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.setcard img.cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #dfe6f2; }
.setcard .setmeta { display: block; padding: 10px 12px 4px; }
.setcard .creditrow { padding: 0 12px 12px; }
.setcard .settitle { font-weight: 700; font-size: 15px; line-height: 1.3; }
.setcard .setsub { font-size: 13px; color: #68779a; margin-top: 2px; }
.samplebadge { display: inline-block; background: #c9a227; color: #12233f; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

/* The credit link — the heart of PhotoLink */
.credit { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: #eef3fb; border: 1.5px solid #0a1f44; color: #0a1f44; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; min-height: 36px; }
.credit:hover { background: #dbe6f7; }
.credit .cam { font-size: 14px; }
.creditbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.creditbar .byline { font-size: 13px; color: #68779a; }

/* Photo grid inside a set */
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.photocard { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(10,31,68,.06); }
.photocard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #dfe6f2; }
.photocard .pc-meta { padding: 8px 10px 10px; }
.photocard .pc-label { font-size: 13px; font-weight: 600; color: #43536e; }

/* Photographer directory + profile */
.dirgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; padding: 14px; box-shadow: 0 1px 3px rgba(10,31,68,.06); cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: #0a1f44; color: #c9a227; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.pcard .pname { font-weight: 700; font-size: 16px; }
.pcard .pmetro { font-size: 13px; color: #68779a; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { background: #eef3fb; border: 1px solid #b9c4da; color: #33507e; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; }
.profilehead { display: flex; gap: 14px; align-items: center; }
.profilehead .avatar { width: 68px; height: 68px; font-size: 26px; }
.searchbar { margin-bottom: 12px; }
.photoinputs { border-top: 1px dashed #b9c4da; margin-top: 6px; padding-top: 10px; }
.photoinputs .prow { display: grid; grid-template-columns: 1fr 130px 44px; gap: 8px; align-items: end; margin-bottom: 8px; }
.photoinputs .prow label { margin-bottom: 0; }
.thumbprev { width: 100%; border-radius: 9px; border: 1px solid #dde3ef; margin-top: 6px; display: none; }
.empty { text-align: center; padding: 26px 14px; }
.empty .big { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
