.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--brown); border-radius: 999px; padding: 13px 25px; background: var(--brown); color: var(--paper); font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.6; box-shadow: 0 3px 0 rgb(86 49 28 / 12%); transition: background .15s, transform .15s; }
.btn:hover { background: var(--brown-dark); }
.btn:active { transform: translateY(1px); }
.btn.sub { background: var(--apricot); color: var(--ink); }
.btn.sub:hover { background: #f89b58; }
.text-link { font-size: 14px; font-weight: 600; display: inline-block; padding-block: 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(25px, 3vw, 32px); }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading p { font-size: 13px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { min-width: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.card .thumb { display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--bg); }
.card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card .thumb:hover img { transform: scale(1.035); }
.card .thumb-placeholder { display: grid; place-items: center; }
.card .thumb-placeholder img { width: 90%; height: 90%; object-fit: contain; clip-path: inset(1px round 40%); }
.card-body { padding: 18px 10px 8px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.cat { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--cream); color: var(--brown); font-size: 12px; font-weight: 600; }
.card h2 { font-size: 19px; line-height: 1.65; margin-bottom: 8px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.excerpt { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card-author { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; font-size: 12px; }
.card-author a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; text-decoration: none; overflow-wrap: anywhere; }
.card-author img { width: 28px; height: 28px; border-radius: 50%; }
.empty { grid-column: 1 / -1; text-align: center; padding: 44px 20px; border: 1px dashed var(--border); border-radius: 28px; background: var(--paper); }
.empty img { width: 80px; border-radius: 35%; margin-bottom: 14px; }
.empty h2, .empty h3 { font-size: 19px; margin-bottom: 10px; }
.empty p { color: var(--muted); font-size: 14px; }
.empty .btn { margin-top: 22px; }
.panel { max-width: 580px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); }
.panel > h1 { margin-bottom: 16px; }
.panel > p { margin-block: 16px; }
.stack { display: grid; gap: 24px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
label .optional { color: var(--muted); font-size: 12px; font-weight: 400; }
input, textarea, select { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 20px; min-width: 20px; height: 20px; margin: 3px 0; accent-color: var(--brown); }
label.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-weight: 400; cursor: pointer; }
.check small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 3px; }
summary { min-height: 48px; padding-block: 12px; cursor: pointer; font-size: 13px; color: var(--brown); }
details[open] > summary { margin-bottom: 12px; }
.error, .warn { padding: 16px 18px; border-radius: 16px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.error { color: #8e3027; background: #ffebe2; border: 1px solid #c98571; }
.warn { color: var(--ink); background: var(--cream); border: 1px solid var(--border); }
.msg { font-size: 14px; overflow-wrap: anywhere; }
.msg:empty { display: none; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .card-body { padding-top: 16px; }
  .card h2 { font-size: 20px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 8px; }
  .panel { padding: 28px 22px; border-radius: 24px; }
}
