/* DLTK Custom Bingo: redesigned choice pages (bingo.php and bingo-print.php).
   Everything is scoped under .bingo-new so it cannot disturb the rest of the site's CSS. */

.bingo-new {
	--navy: #000080;
	--blue: #2f5fd0;
	--soft: #ddddff;
	--soft2: #f0f3ff;
	--line: #d5d9ec;
	--text: #1d2233;
	--muted: #5b6275;
	--radius: 12px;
	font: 16px/1.5 Helvetica, Arial, sans-serif;
	color: var(--text);
}
.bingo-new [hidden] { display: none !important; }
.bingo-new *, .bingo-new *::before, .bingo-new *::after { box-sizing: border-box; }

/* ---------- Page layout: one column, plus an ad column on screens 1400px and wider ---------- */
.bingo-new .bn-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 12px; }
.bingo-new .bn-main { max-width: 980px; }
.bingo-new .bn-ad { display: none; }
@media (min-width: 1400px) {
	.bingo-new .bn-page { grid-template-columns: minmax(0, 1fr) 340px; }
	.bingo-new .bn-ad { display: block; position: sticky; top: 16px; align-self: start; }
}

/* ---------- Headings and text (override the site's red h3 and big list padding) ---------- */
.bingo-new h1 {
	margin: 8px 0 6px; color: var(--navy); font: normal 2rem/1.2 Georgia, "Times New Roman", serif;
}
.bingo-new .bn-lead { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }
.bingo-new h2, .bingo-new h3 { color: var(--navy); font-family: Helvetica, Arial, sans-serif; font-weight: 600; }
.bingo-new p { margin: 0 0 10px; }
.bingo-new a { color: var(--blue); }

/* ---------- Step panels ---------- */
.bingo-new .bn-step {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 20px 22px; margin: 0 0 18px; box-shadow: 0 1px 3px rgba(20, 30, 80, .07);
}
.bingo-new .bn-step > h2 {
	display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.2rem; line-height: 1.3;
}
.bingo-new .bn-num {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1rem;
}
.bingo-new .bn-row { display: grid; grid-template-columns: minmax(230px, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .bingo-new .bn-row { grid-template-columns: minmax(0, 1fr); } }

.bingo-new .bn-label { display: block; margin: 0 0 6px; font-weight: 600; }
.bingo-new .bn-hint { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

.bingo-new .bn-desc { background: var(--soft2); border-radius: 10px; padding: 14px 16px; min-height: 72px; }
.bingo-new .bn-desc strong { display: block; margin-bottom: 2px; }

/* ---------- Form controls ---------- */
.bingo-new .bn-select, .bingo-new .bn-input {
	width: 100%; font: inherit; padding: 10px 12px; color: var(--text);
	border: 1px solid #9aa3c7; border-radius: 8px; background: #fff;
}
.bingo-new .bn-select:focus, .bingo-new .bn-input:focus,
.bingo-new .bn-btn:focus-visible, .bingo-new .bn-chip:focus-visible {
	outline: 3px solid #9db8ff; outline-offset: 1px;
}
.bingo-new .bn-vh { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }

/* Two-choice pill (color) */
.bingo-new .bn-seg { display: inline-flex; border: 1px solid #9aa3c7; border-radius: 999px; overflow: hidden; background: #fff; }
.bingo-new .bn-seg label { position: relative; cursor: pointer; }
.bingo-new .bn-seg span { display: block; padding: 10px 20px; }
.bingo-new .bn-seg input:checked + span { background: var(--navy); color: #fff; }
.bingo-new .bn-seg input:focus-visible + span { outline: 3px solid #9db8ff; outline-offset: -3px; }

/* On/off switch (vocabulary) */
.bingo-new .bn-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; position: relative; }
.bingo-new .bn-track { flex: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: #b8bfd8; transition: background .15s; }
.bingo-new .bn-track::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
	background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.bingo-new .bn-switch input:checked + .bn-track { background: var(--navy); }
.bingo-new .bn-switch input:checked + .bn-track::after { transform: translateX(20px); }
.bingo-new .bn-switch input:focus-visible + .bn-track { outline: 3px solid #9db8ff; outline-offset: 2px; }
.bingo-new .bn-switch.is-off { opacity: .5; cursor: not-allowed; }

/* ---------- Pictures and previews ---------- */
.bingo-new .bn-thumb { display: block; max-width: 100%; height: auto; max-height: 190px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bingo-new .bn-samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bingo-new .bn-samples img {
	height: 64px; width: auto; max-width: 100px; padding: 2px; background: #fff;
	border: 1px solid var(--line); border-radius: 6px;
}
.bingo-new .bn-compare { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.bingo-new .bn-compare figure { margin: 0; }
.bingo-new .bn-compare img { display: block; max-height: 150px; width: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.bingo-new .bn-compare figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 3px; }

/* Title letters preview */
.bingo-new .bn-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.bingo-new .bn-letters span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 48px; padding: 0 6px;
	border: 2px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy);
	font: bold 26px/1 Helvetica, Arial, sans-serif;
}
.bingo-new .bn-input.bn-title { font-size: 1.3rem; font-weight: 600; letter-spacing: .08em; text-transform: none; }

/* Title idea chips */
.bingo-new details.bn-ideas { margin-top: 14px; }
.bingo-new details.bn-ideas summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.bingo-new .bn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bingo-new .bn-chip {
	font: inherit; font-size: .9rem; cursor: pointer; padding: 6px 14px; line-height: 1.2;
	border: 1px solid #9aa3c7; border-radius: 999px; background: #fff; color: var(--text);
}
.bingo-new .bn-chip:hover { background: var(--soft2); border-color: var(--blue); }
.bingo-new .bn-chip small { display: block; color: var(--muted); font-size: .75rem; }

/* ---------- Buttons ---------- */
.bingo-new .bn-btn {
	font: inherit; font-size: 1.1rem; font-weight: 600; cursor: pointer; padding: 14px 26px;
	border: 0; border-radius: 10px; background: var(--navy); color: #fff;
}
.bingo-new .bn-btn:hover { background: #1a1ab0; }
.bingo-new .bn-submit { margin: 8px 0 36px; }

/* ---------- Screen 2 ---------- */
.bingo-new .bn-summary { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 640px) { .bingo-new .bn-summary { grid-template-columns: minmax(0, 1fr); } }
.bingo-new .bn-summary dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; }
.bingo-new .bn-summary dt { color: var(--muted); }
.bingo-new .bn-summary dd { margin: 0; font-weight: 600; }
.bingo-new .bn-summary .bn-letters span { min-width: 30px; height: 36px; font-size: 18px; border-width: 1px; border-radius: 6px; }

.bingo-new .bn-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 0 0 18px; }
.bingo-new .bn-action { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 3px rgba(20, 30, 80, .07); }
.bingo-new .bn-action h3 { margin: 0 0 4px; font-size: 1.15rem; }
.bingo-new .bn-action p { color: var(--muted); font-size: .95rem; }
.bingo-new .bn-action .bn-btn { width: 100%; margin: 6px 0 12px; }
.bingo-new ul.bn-tips { list-style: disc; list-style-image: none; margin: 0 0 8px 20px; padding: 0; font-size: .95rem; }
.bingo-new ul.bn-tips li { padding: 0 0 4px; list-style-image: none; font-size: .95rem; }
.bingo-new .bn-tipnote { font-size: .88rem; color: var(--muted); }

.bingo-new .bn-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bingo-new .bn-word { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bingo-new .bn-word label { flex: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.bingo-new .bn-word .bn-wnum { width: 24px; text-align: right; color: var(--muted); font-size: .9rem; }
.bingo-new .bn-word img { width: 60px; height: 60px; object-fit: contain; }
.bingo-new .bn-word input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid #9aa3c7; border-radius: 8px; }
.bingo-new .bn-word input:focus { outline: 3px solid #9db8ff; outline-offset: 1px; }

.bingo-new .bn-markers { text-align: center; background: var(--soft2); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 40px; }
