/* The full-screen guide, in NDS black, white and yellow. */
.ndsg {
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0 clamp(16px, 4vw, 48px) 48px;
	border: 0;
	overflow-y: auto;
	background: #fff;
	color: #000;
	text-align: left;
	font-family: 'Space Grotesk', 'SUIT Variable', -apple-system, 'Apple SD Gothic Neo', sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
.ndsg:lang(ko) { word-break: keep-all; }
.ndsg button { all: unset; box-sizing: border-box; cursor: pointer; }
.ndsg button:focus-visible,
.ndsg select:focus-visible,
.ndsg a:focus-visible { outline: 2px solid #3700ff; outline-offset: 2px; }
.ndsg h2, .ndsg h3, .ndsg p { margin: 0; padding: 0; }

.ndsg-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 calc(-1 * clamp(16px, 4vw, 48px));
	padding: 16px clamp(16px, 4vw, 48px);
	background: #fcff6d;
}
.ndsg .ndsg-head h2 { margin: 0; font-family: 'NDS Display', ui-monospace, Menlo, monospace; font-size: clamp(20px, 4vw, 32px); font-weight: 400; color: #000; }
.ndsg-langs { display: flex; gap: 10px; margin-left: auto; }
/* The site's round mark in black: its yellow circle turns black and its
 * letters white. */
.ndsg-logo { flex: none; display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #000; }
.ndsg-logo img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 50%; filter: grayscale(1) contrast(1.4) invert(1); }
.ndsg .ndsg-head .ndsg-contribute { padding: 6px 14px; border: 1.5px solid #000; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.ndsg .ndsg-head .ndsg-contribute:hover { background: #000; color: #fcff6d; }
@media (max-width: 640px) {
	.ndsg-head { flex-wrap: wrap; row-gap: 10px; column-gap: 12px; }
	.ndsg .ndsg-head .ndsg-contribute { order: 1; }
}
.ndsg .ndsg-langs button { opacity: .4; }
.ndsg .ndsg-langs button[aria-pressed="true"] { opacity: 1; }
.ndsg .ndsg-close { font-size: 28px; line-height: 1; padding: 4px; }

.ndsg-stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.ndsg-stars svg { width: 15px; height: 15px; fill: currentColor; }

.ndsg .ndsg-legend { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0; font-size: 13px; }

.ndsg-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ndsg-tabs { display: flex; border: 1px solid #000; border-radius: 999px; overflow: hidden; }
.ndsg .ndsg-tabs button { padding: 6px 18px; }
.ndsg .ndsg-tabs button[aria-pressed="true"] { background: #000; color: #fff; }
.ndsg select {
	height: 36px;
	max-width: 100%;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #000;
	border-radius: 0;
	background: #fff;
	color: #000;
	font: inherit;
	width: auto;
}
.ndsg .ndsg-chip { padding: 6px 14px; border: 1px solid #000; border-radius: 999px; }
.ndsg .ndsg-chip[aria-pressed="true"] { background: #fcff6d; font-weight: 700; }

.ndsg .ndsg-status { margin: 14px 0 10px; font-size: 13px; color: #555; }
.ndsg .ndsg-empty { padding: 40px 0; text-align: center; }

.ndsg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.ndsg-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid #000; background: #f9f9f9; }
.ndsg-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ndsg .ndsg-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; color: #000; }
.ndsg .ndsg-meta { font-size: 13px; color: #555; }
.ndsg-tags { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.ndsg-tags span { padding: 1px 8px; background: #e9e9e6; }
.ndsg-foot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto !important; padding-top: 6px !important; font-size: 13px; color: #555; }
.ndsg .ndsg-foot a { color: #3700ff; text-decoration: underline; }
.ndsg-foot span { margin-left: auto; }

.ndsg-map { display: flex; flex-direction: column; gap: 12px; }
.ndsg-map__canvas { height: 62vh; min-height: 320px; background: #e9e9e6; }
.ndsg-map__card:empty { display: none; }
.ndsg .ndsg-pin { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 999px; background: #000; color: #fff; border: 2px solid #fff; }
.ndsg .ndsg-pin.is-on { background: #fcff6d; color: #000; border-color: #000; }
.ndsg-pin .ndsg-stars svg { width: 12px; height: 12px; }
.ndsg-icon { display: inline-flex; vertical-align: -3px; }
.ndsg-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ndsg .ndsg-kinds { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.ndsg-pin__name {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 2px;
	padding: 1px 5px;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 0 2px rgba(0, 0, 0, .35);
	white-space: nowrap;
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	color: #000;
}

/* Adding a place: one question per screen. */
.ndsg-step { display: flex; flex-direction: column; align-items: stretch; gap: 14px; max-width: 560px; margin: 20px auto 0; }
.ndsg .ndsg-step h3.ndsg-q { font-size: clamp(22px, 5vw, 30px); font-weight: 700; line-height: 1.3; color: #000; }
.ndsg .ndsg-hint { font-size: 13px; color: #555; }
.ndsg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ndsg .ndsg-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 1px solid #000; border-radius: 999px; }
.ndsg .ndsg-opt[aria-pressed="true"] { background: #fcff6d; font-weight: 700; }
.ndsg-opts--rows { flex-direction: column; }
.ndsg .ndsg-opts--rows .ndsg-opt { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 0; }
.ndsg-opts--rows .ndsg-opt span { font-size: 13px; color: #555; }
.ndsg-fields { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ndsg .ndsg-fields input,
.ndsg .ndsg-fields textarea { box-sizing: border-box; width: 100%; margin: 0; padding: 10px 12px; border: 1px solid #000; border-radius: 0; background: #fff; color: #000; font: inherit; font-size: 16px; }
.ndsg .ndsg-go { align-self: flex-start; min-height: 44px; padding: 8px 28px; border-radius: 999px; background: #000; color: #fff; font-weight: 700; }
.ndsg .ndsg-go:disabled { opacity: .4; }
.ndsg .ndsg-back, .ndsg .ndsg-skip { align-self: flex-start; font-size: 13px; text-decoration: underline; }
.ndsg .ndsg-say { min-height: 1.5em; font-size: 14px; }

.ndsg .ndsg-own { flex-direction: row; }
.ndsg .ndsg-own[hidden] { display: none; }
.ndsg .ndsg-own input { flex: 1; min-width: 0; }
.ndsg .ndsg-own button { flex: none; }
.ndsg-next { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ndsg .ndsg-next button { flex: 1 1 200px; text-align: center; border: 2px solid #000; }
.ndsg .ndsg-next .ndsg-go--line { background: #fff; color: #000; }

.ndsg .ndsg-reset { margin-left: auto; padding: 6px 4px; font-size: 13px; text-decoration: underline; white-space: nowrap; }
.ndsg .ndsg-reset:disabled { opacity: .3; cursor: default; text-decoration: none; }
.ndsg .ndsg-again { display: table; margin: -16px auto 0; }
