/* Site identity - colours come from the "Featured Image Plus" scheme on developry.com */
:root { --brand: #4ea3ff; --brand-deep: #0f3a5a; }
.mark .g1 { stop-color: color-mix(in oklab, var(--brand) 75%, var(--brand-deep)); }
.mark .g2 { stop-color: color-mix(in oklab, var(--brand) 30%, var(--brand-deep)); }
.mark .glyph { fill: #fff; }

/* ---------- resizer ---------- */
kbd { padding: .1rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }
.drop { display: grid; justify-items: center; gap: .6rem; text-align: center; padding: clamp(2rem, 7vw, 4.5rem) 1rem; border: 2px dashed color-mix(in oklab, var(--accent) 45%, var(--line)); border-radius: calc(var(--radius) - 4px); background: linear-gradient(180deg, var(--accent-soft), transparent); transition: border-color .2s, background .2s, transform .2s; cursor: pointer; }
.drop svg { width: 3.6rem; height: 3.6rem; color: var(--accent); }
.drop strong { font-size: 1.35rem; letter-spacing: -.02em; }
.drop-actions { margin-top: .6rem; justify-content: center; }
.drop.over { border-style: solid; border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.work-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }
.focal { position: relative; touch-action: none; cursor: crosshair; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); user-select: none; }
.focal img { width: 100%; max-height: 22rem; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.focal .dot { position: absolute; top: 50%; left: 50%; width: 1.6rem; height: 1.6rem; margin: -.8rem 0 0 -.8rem; border-radius: 50%; border: 3px solid #fff; background: color-mix(in oklab, var(--accent) 70%, transparent); box-shadow: 0 0 0 2px rgb(0 0 0 / .45), 0 4px 14px rgb(0 0 0 / .4); pointer-events: none; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.size-card { display: flex; flex-direction: column; gap: .7rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: opacity .2s, border-color .2s; }
.size-card:has(input:checked) { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.size-card:not(:has(input:checked)) { opacity: .55; }
.size-card header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.size-card header .switch { font-weight: 700; font-size: .88rem; }
.thumb { display: grid; place-items: center; min-height: 9rem; padding: .6rem; border-radius: 10px; background: repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.thumb canvas { max-height: 15rem; width: auto; height: auto; border-radius: 6px; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.size-card footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.size-card footer span { font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* ---------- og generator ---------- */
.og-layout { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); align-items: start; margin-top: 1.5rem; }
@media (max-width: 900px) { .og-layout { grid-template-columns: 1fr; } }
.og-preview { position: sticky; top: 5rem; }
@media (max-width: 900px) { .og-preview { position: static; } }
.og-stage { display: grid; padding: .8rem; place-items: center; }
#title { min-height: 6rem; }
.og-stage canvas { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 50px -12px rgb(0 0 0 / .45); }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { width: 2.5rem; height: 2.5rem; border-radius: 12px; border: 0; cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgb(0 0 0 / .2); transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* ---------- size guide ---------- */
.ratio { display: inline-block; vertical-align: middle; border: 2px solid var(--accent); border-radius: 3px; background: var(--accent-soft); margin-right: .5rem; }
.copy-cell { cursor: pointer; border-radius: 6px; padding: .15rem .4rem; margin: -.15rem -.4rem; transition: background .15s; }
.copy-cell:hover { background: var(--accent-soft); color: var(--accent); }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filter-row input[type="search"] { flex: 1 1 14rem; max-width: 22rem; }

/* ---------- browser extension promo ---------- */
.store-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.shots img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ext-cta { margin-top: 2.5rem; }
.ext-cta .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.ext-cta h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.ext-cta p { margin: 0; color: var(--muted); }

/* header button for the browser extension */
.nav-ext { display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem; padding: .45rem .85rem; border-radius: 99px; background: var(--brand); color: var(--accent-ink); font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.nav-ext:hover { filter: brightness(1.08); }
.nav-ext svg { width: 16px; height: 16px; }
.nav-ext + .icon-btn { margin-left: .5rem; }
@media (max-width: 720px) { .nav-ext span { display: none; } .nav-ext { padding: .55rem; } }
