/* APL White Papers. Kept light on purpose: colors and fonts inherit from the theme.
   Override anything in Cornerstone with these class names. */

.apl-wp-form { max-width: 480px; }
.apl-wp-row { margin: 0 0 14px; }
.apl-wp-row label { display: block; font-size: .9em; margin-bottom: 4px; }
.apl-wp-form input[type=text],
.apl-wp-form input[type=email] { width: 100%; box-sizing: border-box; padding: 10px 12px; }
.apl-wp-consent label { display: flex; gap: 8px; align-items: flex-start; font-size: .85em; line-height: 1.4; }
.apl-wp-consent input { margin-top: 3px; flex: none; }
.apl-wp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.apl-wp-button { cursor: pointer; padding: 12px 22px; }
.apl-wp-form.is-busy .apl-wp-button { opacity: .6; pointer-events: none; }
.apl-wp-msg { margin-top: 10px; font-size: .95em; }
.apl-wp-msg.is-error { color: #b32d2e; }
.apl-wp-msg.is-success { font-weight: 600; }
.apl-wp-form.is-done .apl-wp-row { display: none; }

.apl-wp-details h3 { margin: 1.6em 0 .5em; }
.apl-wp-meta { opacity: .7; font-size: .9em; }
.apl-wp-form-wrap { margin-top: 2.5em; }

.apl-wp-gallery { display: grid; gap: 24px; grid-template-columns: repeat(var(--apl-cols, 3), minmax(0, 1fr)); }
.apl-wp-cols-1 { --apl-cols: 1; } .apl-wp-cols-2 { --apl-cols: 2; } .apl-wp-cols-3 { --apl-cols: 3; }
.apl-wp-cols-4 { --apl-cols: 4; } .apl-wp-cols-5 { --apl-cols: 5; } .apl-wp-cols-6 { --apl-cols: 6; }
@media (max-width: 900px) { .apl-wp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .apl-wp-gallery { grid-template-columns: 1fr; } }

.apl-wp-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.apl-wp-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.apl-wp-card-cover { display: block; aspect-ratio: 4 / 3; background: rgba(0,0,0,.04); }
.apl-wp-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apl-wp-card-cover-blank { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; text-align: center; font-weight: 600; opacity: .6; }
.apl-wp-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.apl-wp-card-kicker { font-size: .75em; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.apl-wp-card-title { font-weight: 700; line-height: 1.3; }
.apl-wp-card-pitch { font-size: .9em; opacity: .8; line-height: 1.45; }
.apl-wp-card-cta { margin-top: auto; padding-top: 8px; font-size: .9em; font-weight: 600; }

.apl-wp-form{padding:24px;border:1px solid rgba(0,0,0,.14);border-radius:12px;background:var(--apl-form-background,transparent)}
.apl-wp-form input[type=text],.apl-wp-form input[type=email]{min-height:46px;border:1px solid #87928e;border-radius:6px;font:inherit}
.apl-wp-form .apl-wp-button{min-height:46px;width:100%;border-radius:6px;font-weight:600}
.apl-wp-form :is(input,button,a):focus-visible,.apl-wp-card:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.apl-wp-form .apl-wp-button:disabled{cursor:wait;opacity:.65}
.apl-wp-msg.is-error{padding:12px;border-left:3px solid #b32d2e;background:#fff1f0;color:#8d2021;border-radius:4px}
.apl-wp-msg.is-success{padding:16px;border:1px solid #a5cbb6;border-radius:6px;background:#eef8f1;color:#245239}
.apl-wp-msg:empty{display:none}
@media(max-width:560px){.apl-wp-form{padding:18px}}
@media(prefers-reduced-motion:reduce){.apl-wp-card{transition:none}.apl-wp-card:hover{transform:none}}
