@font-face {
	font-family: "IPAexMinchoWeb";
	src: url("/latvia-design-contest/2026/ipaexm.woff2?v=1") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	--burgundy: #982c3c;
	--burgundy-dark: #682c3a;
	--navy: #162b37;
	--blush: #f3dfde;
	--blush-light: #f8eceb;
	--paper: #fffdfc;
	--white: #fff;
	--muted-rose: #bea5aa;
	--line: rgb(152 44 60 / 22%);
	--layout-width: 1180px;
	--rules-width: 1240px;
	--radius: 8px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	color-scheme: light;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--navy);
	background: var(--blush);
	font-family: "IPAexMinchoWeb", serif;
	font-size: 1rem;
	line-height: 1.75;
}

button,
input,
select,
textarea {
	font: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

hr {
	width: 100%;
	margin: 1.25rem 0;
	border: 0;
	border-top: 1px solid var(--line);
}

ol,
ul {
	margin-top: 0;
}

ol {
	padding-left: 1.7rem;
}

::selection {
	color: var(--white);
	background: var(--burgundy);
}

#top-cont {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background-color: var(--blush);
}

#top-cont.haikei_saisho {
	background-image: url("/latvia-design-contest/2026/background.jpg");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
}

#top-cont.haikei_saisho:has(.home-page) {
	background-image: none;
}


.flex-column {
	display: flex;
	flex-direction: column;
}

/* Navigation */
#nav-top {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	border-bottom: 1px solid var(--line);
	background: rgb(255 253 252 / 98%);
}

#nav-top ul,
.languages ul,
#nav-bottom ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-top-shell {
	width: min(1440px, calc(100% - 2rem));
	min-height: 68px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.8rem;
}

.nav-top-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

#nav-top-button {
	display: none;
}

#nav-top-list {
	min-width: 0;
	min-height: 68px;
	margin: 0;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0.15rem;
}

#nav-top-list li {
	display: flex;
}

#nav-top-list a {
	position: relative;
	padding: 0.8rem clamp(0.65rem, 1.15vw, 1rem);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--navy);
	font-size: clamp(1rem, 1.15vw, 1.12rem);
	text-decoration: none;
	white-space: nowrap;
}

#nav-top-list a::after {
	content: "";
	position: absolute;
	right: 0.8rem;
	bottom: 0.52rem;
	left: 0.8rem;
	height: 2px;
	background: var(--burgundy);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 160ms ease;
}

#nav-top-list a:hover,
#nav-top-list a:focus-visible,
#nav-top-list a.active {
	color: var(--burgundy);
}

#nav-top-list a:hover::after,
#nav-top-list a:focus-visible::after,
#nav-top-list a.active::after {
	transform: scaleX(1);
}

.nav-top-button-icon {
	width: 1.55rem;
	display: inline-flex;
	flex-direction: column;
	gap: 0.28rem;
}

.nav-top-button-icon::before,
.nav-top-button-icon::after,
.nav-top-button-icon span {
	content: "";
	width: 100%;
	height: 2px;
	display: block;
	border-radius: 999px;
	background: currentColor;
	transition: transform 160ms ease, opacity 160ms ease;
}

.languages {
	display: flex;
	justify-content: flex-end;
}

.languages ul {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid var(--burgundy);
	border-radius: 6px;
	background: rgb(255 255 255 / 90%);
}

.languages a {
	padding: 0.45rem 0.9rem;
	display: block;
	color: var(--burgundy);
	font-size: 1rem;
	text-decoration: none;
}

.languages a:hover,
.languages a:focus-visible,
.languages a.active {
	color: var(--white);
	background: var(--burgundy);
}

/* Shared content pages */
.content-box {
	width: min(860px, calc(100% - 2rem));
	margin: clamp(2rem, 5vw, 4.5rem) auto;
	padding: clamp(1.2rem, 3.5vw, 3rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgb(255 253 252 / 96%);
	font-size: clamp(1rem, 1.3vw, 1.15rem);
}

#sakuhin.content-box,
#oubo.content-box,
#otoiawase.content-box,
#touhyou.content-box,
#nitsuite.content-box {
	width: min(var(--layout-width), calc(100% - 2rem));
}

#rules.content-box {
	width: min(var(--rules-width), calc(100% - 2rem));
}

#touhyou .content,
#nitsuite .content {
	width: min(100%, 76ch);
	margin-inline: auto;
}

.h1,
.h2,
.h3 {
	margin: 0;
	color: var(--burgundy);
	line-height: 1.25;
	text-align: center;
}

.h1 {
	font-size: clamp(2rem, 4.5vw, 3.75rem);
}

.h2 {
	font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.h3 {
	font-size: clamp(1.28rem, 2.25vw, 1.85rem);
}


.content-box > .h1 {
	padding-bottom: 1rem;
}

.content-box > .h1::after {
	content: "";
	width: 44px;
	height: 2px;
	margin: 0.85rem auto 0;
	display: block;
	background: var(--burgundy);
}

.content-box > .h1 + hr {
	display: none;
}

.content {
	padding: 0.6rem 0;
}

.content + .content {
	margin-top: clamp(1.25rem, 3vw, 2.25rem);
}

.one {
	margin: 0;
	line-height: 1.9;
	text-align: left;
}

/* Homepage */
.home-page {
	width: 100%;
}

.home-hero {
	width: 100%;
	min-height: max(calc(100vw * 1081 / 1920), 720px);
	background-color: var(--blush);
	background-image: url("/latvia-design-contest/2026/background1.jpg");
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% auto;
}

.home-hero-inner {
	width: min(var(--layout-width), calc(100% - 2rem));
	min-height: max(calc(100vw * 1081 / 1920), 720px);
	margin-inline: auto;
	padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.home-logo {
	width: clamp(280px, 34vw, 520px);
	max-width: 90%;
	object-fit: contain;
}

.home-hero-copy {
	width: min(100%, 1040px);
	padding: clamp(1.5rem, 3vw, 2.75rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgb(255 253 252 / 94%);
}

.home-eyebrow,
.section-kicker {
	margin: 0 0 0.5rem;
	color: var(--burgundy);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.home-hero h1 {
	width: 100%;
	margin: 0;
	color: var(--navy);
	font-size: clamp(1.75rem, 3vw, 3rem);
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
	word-break: keep-all;
}

html[lang="lv"] .home-hero h1 {
	font-size: clamp(1.55rem, 2.55vw, 2.6rem);
}

.home-theme {
	margin: 1rem 0 0;
	color: var(--burgundy);
	font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.home-question {
	margin: 0.6rem 0 0;
	font-size: clamp(1.2rem, 2vw, 1.75rem);
	line-height: 1.5;
}

.home-period {
	margin-top: 1.4rem;
	padding-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	border-top: 1px solid var(--line);
}

.home-period-dates {
	color: var(--burgundy);
	font-size: clamp(1.55rem, 3vw, 2.65rem);
	line-height: 1.1;
}

.home-period-time {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.home-actions {
	margin-top: 1.7rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.home-workshop {
	width: min(
		var(--layout-width),
		calc(100% - 2rem)
	);
	margin: clamp(2rem, 5vw, 4rem) auto;
	padding: clamp(1.25rem, 3vw, 2rem);
	display: grid;
	grid-template-columns:
		auto
		minmax(0, 1fr)
		auto;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: center;
	border: 1px solid var(--burgundy);
	border-radius: var(--radius);
	background:
		linear-gradient(
			135deg,
			var(--paper),
			var(--blush-light)
		);
}

.home-workshop-date {
	min-width: 12rem;
	padding-right: clamp(1rem, 3vw, 2rem);
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--line);
	color: var(--burgundy);
	text-align: center;
}

.home-workshop-date span {
	font-size: 0.95rem;
}

.home-workshop-date strong {
	margin-top: 0.25rem;
	color: var(--navy);
	font-size: 1.35rem;
	font-weight: 400;
}

.home-workshop-content {
	min-width: 0;
}

.home-workshop-eyebrow {
	margin: 0;
	color: var(--burgundy);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
}

.home-workshop h2 {
	margin: 0.25rem 0 0;
	color: var(--burgundy);
	font-size: clamp(1.3rem, 2.5vw, 1.85rem);
	line-height: 1.4;
}

.home-workshop-content > p:last-child {
	margin: 0.65rem 0 0;
}

.home-workshop .button {
	white-space: nowrap;
}

.button {
	min-height: 44px;
	padding: 0.7rem 1.15rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--burgundy);
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button-primary,
#submit,
#contact-submit {
	color: var(--white);
	background: var(--burgundy);
}

.button-primary:hover,
.button-primary:focus-visible,
#submit:hover,
#submit:focus-visible,
#contact-submit:hover,
#contact-submit:focus-visible {
	border-color: var(--burgundy-dark);
	background: var(--burgundy-dark);
}

.button-secondary {
	color: var(--burgundy);
	background: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
	background: var(--blush-light);
}

.home-intro,
.home-highlights,
.home-notice,
.home-final-cta {
	width: min(var(--layout-width), calc(100% - 2rem));
	margin-inline: auto;
}

.home-intro {
	padding: clamp(4rem, 9vw, 8rem) 0 clamp(2rem, 4vw, 3.5rem);
	text-align: center;
}

.section-heading h2,
.home-final-cta h2 {
	margin: 0;
	color: var(--burgundy);
	font-size: clamp(1.7rem, 3.3vw, 2.85rem);
	line-height: 1.25;
}

.home-intro-text,
.home-final-cta p {
	max-width: 68ch;
	margin: 1.3rem auto 0;
}

.home-highlights {
	margin-bottom: clamp(4rem, 8vw, 7rem);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 1px solid var(--line);
}

.home-card {
	min-width: 0;
	padding: clamp(1.35rem, 2.5vw, 2rem);
	border-right: 1px solid var(--line);
}

.home-card:last-child {
	border-right: 0;
}

.home-card-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
	object-fit: contain;
	object-position: left center;
}

.home-card-title {
	margin: 0 0 0.65rem;
	color: var(--burgundy);
	font-size: clamp(0.82rem, 0.88vw, 0.98rem);
	line-height: 1.45;
	word-break: keep-all;
}

.home-card p {
	margin: 0;
}

.home-notice {
	margin-bottom: clamp(4rem, 8vw, 7rem);
	padding: clamp(1.2rem, 3vw, 2rem);
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	border-radius: var(--radius);
	color: var(--white);
	background: var(--burgundy);
}

.home-notice-mark {
	width: 2.4rem;
	height: 2.4rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--burgundy);
	background: var(--white);
	font-size: 1.6rem;
}

.home-notice h2,
.home-notice p {
	margin: 0;
}

.home-notice h2 {
	font-size: 1.2rem;
}

.home-notice p {
	margin-top: 0.35rem;
}

.home-final-cta {
	margin-bottom: clamp(4rem, 8vw, 7rem);
	padding: clamp(2rem, 5vw, 4rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgb(255 253 252 / 95%);
	text-align: center;
}

.home-final-cta .home-actions {
	justify-content: center;
}

/* Rules */
.rules-subtitle,
.rules-theme,
.rules-revision {
	text-align: center;
}

.rules-subtitle {
	margin-top: 0.75rem;
	font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.rules-theme {
	margin-top: 0.45rem;
	color: var(--burgundy);
	font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.rule-section,
.rule-subsection {
	scroll-margin-top: 90px;
}

.rule-section {
	padding: 1rem 0;
}

.rule-subsection {
	margin-top: 1.2rem;
	padding: 1.25rem;
	border-left: 2px solid var(--muted-rose);
	background: rgb(255 253 252 / 58%);
}

.rule-notice {
	margin: 1.25rem 0;
	padding: 1.1rem 1.25rem;
	border-left: 3px solid var(--burgundy);
	background: var(--blush-light);
}

.rule-notice-title,
.rule-detail dt {
	color: var(--burgundy);
}

.rule-notice-content {
	margin-top: 0.35rem;
}

.rule-details {
	margin: 1rem 0;
}

.rule-detail {
	padding: 0.75rem 0;
	display: grid;
	grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
	gap: 1rem 1.5rem;
	border-bottom: 1px solid var(--line);
}

.rule-detail dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: break-word;
}

.rule-items {
	display: grid;
	gap: 0.65rem;
}

.rules-revision {
	margin-top: 2rem;
	color: rgb(22 43 55 / 72%);
	font-size: 0.9rem;
}

/* Forms */
.forms {
	width: min(760px, 100%);
	margin: 1.5rem auto 0;
}

.form-section {
	min-width: 0;
	margin: 0 0 1.4rem;
	padding: clamp(1rem, 2.5vw, 1.7rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgb(255 253 252 / 92%);
}

.form-section > legend {
	width: auto;
	padding: 0 0.65rem;
	text-align: left;
}

.form-line {
	padding: 0.75rem 0;
}

.labels {
	margin-bottom: 0.35rem;
	display: block;
}

.required,
.optional,
.conditional-required {
	margin-left: 0.35rem;
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	font-size: 0.76rem;
}

.required,
.conditional-required {
	color: var(--white);
	background: var(--burgundy);
}

.optional {
	background: var(--blush);
}

.input,
.form-line input:not([type="checkbox"]):not([type="radio"]),
.form-line textarea,
.form-line select {
	width: 100%;
	min-height: 46px;
	padding: 0.72rem 0.8rem;
	border: 1px solid rgb(22 43 55 / 28%);
	border-radius: 6px;
	color: var(--navy);
	background: var(--white);
	font-size: 1rem;
}

.form-line textarea {
	min-height: 160px;
	resize: vertical;
}

.form-line input:focus,
.form-line select:focus,
.form-line textarea:focus,
.button:focus-visible,
a:focus-visible {
	outline: 2px solid rgb(152 44 60 / 40%);
	outline-offset: 2px;
	border-color: var(--burgundy);
}

.checkbox-label {
	padding: 0.9rem;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 0.7rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: rgb(255 253 252 / 72%);
	cursor: pointer;
}

.input-checkbox {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.25rem;
	accent-color: var(--burgundy);
}

.input-help,
.form-note {
	margin-top: 0.35rem;
	color: rgb(22 43 55 / 74%);
	font-size: 0.9rem;
}

.form-note {
	margin-top: 0.85rem;
	text-align: center;
}

.form-line .error-border {
	border-color: #b42331;
	box-shadow: 0 0 0 3px rgb(180 35 49 / 14%);
}

.error-message {
	margin-top: 0.35rem;
	padding: 0.65rem 0.75rem;
	border-radius: 6px;
	color: #7a1520;
	background: #fff0f1;
	font-size: 0.9rem;
}

#picture-preview {
	width: min(100%, 520px);
	margin-top: 0.8rem;
}

#picture-preview:not([src]),
#picture-preview[src=""] {
	display: none;
}

#picture-progress {
	width: 100%;
	height: 18px;
	margin-top: 0.7rem;
	accent-color: var(--burgundy);
}

#submit,
#contact-submit {
	min-width: min(100%, 260px);
	margin-inline: auto;
	display: flex;
}

.soto-field {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Page images */
#nitsuite .img-cont {
	width: min(100%, 920px);
	margin: clamp(1.75rem, 4vw, 3rem) auto;
}

#nitsuite .img-cont img {
	width: 100%;
}


/* Footer */
#footer {
	margin-top: auto;
	padding: 2rem 1rem;
	color: var(--white);
	background: var(--navy);
}

#footer > .one {
	width: min(var(--layout-width), 100%);
	margin-inline: auto;
}

#nav-bottom ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1rem;
}

#nav-bottom a {
	color: var(--white);
	font-size: 0.92rem;
	text-decoration: none;
}

#nav-bottom a:hover,
#nav-bottom a:focus-visible {
	color: #ffd9dc;
	text-decoration: underline;
}

#footer .languages {
	margin-top: 1.2rem;
	justify-content: center;
}

#footer .languages ul {
	border-color: var(--white);
	background: transparent;
}

#footer .languages a {
	color: var(--white);
}

#footer .languages a:hover,
#footer .languages a:focus-visible,
#footer .languages a.active {
	color: var(--navy);
	background: var(--white);
}

.footer-archive {
	margin-top: 1.5rem;
	text-align: center;
}

.footer-archive-title {
	margin-bottom: 0.55rem;
	color: var(--white);
	font-size: 0.85rem;
	letter-spacing: 0.06em;
}

.footer-archive ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 1rem;
	list-style: none;
}

.footer-archive a {
	color: var(--white);
	font-size: 0.9rem;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.footer-archive a:hover,
.footer-archive a:focus-visible {
	color: #ffd9dc;
}

.footer-legal {
	margin-top: 1.25rem;
}

.footer-legal ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1rem;
	list-style: none;
}

.footer-legal a {
	color: var(--white);
	font-size: 0.9rem;
	text-underline-offset: 0.25em;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
	color: #ffd9dc;
}

.footer-events {
	margin-top: 1.25rem;
}

.footer-events ul {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	list-style: none;
}

.footer-events a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid rgb(255 255 255 / 45%);
	border-radius: var(--radius);
	color: var(--white);
	text-decoration: none;
}

.footer-events a:hover,
.footer-events a:focus-visible,
.footer-events a[aria-current="page"] {
	color: var(--burgundy);
	background: var(--white);
}

/* Homepage prizes */
.home-prizes {
	width: min(
		var(--layout-width),
		calc(100% - 2rem)
	);
	margin: 0 auto clamp(4rem, 8vw, 7rem);
	padding: clamp(2rem, 5vw, 4rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(
			135deg,
			rgb(255 253 252 / 98%),
			rgb(248 236 235 / 96%)
		);
}

.home-prizes .section-heading {
	text-align: center;
}

.home-prizes-intro {
	max-width: 68ch;
	margin: 1rem auto 0;
	text-align: center;
}

.home-prize-grid {
	margin-top: clamp(1.75rem, 4vw, 3rem);
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.home-prize {
	min-width: 0;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgb(255 253 252 / 92%);
}

.home-prize-special {
	grid-column: 1 / -1;
	border-color: var(--burgundy);
	background: var(--burgundy);
	color: var(--white);
}

.home-prize-header {
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.home-prize-special .home-prize-header {
	border-bottom-color: rgb(255 255 255 / 28%);
}

.home-prize-header h3 {
	margin: 0;
	color: var(--burgundy);
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.3;
}

.home-prize-special .home-prize-header h3 {
	color: var(--white);
}

.home-prize-header p {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
}

.home-prize-list {
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	list-style: none;
}

.home-prize-list li {
	display: grid;
	gap: 0.3rem;
}

.home-prize-list strong {
	color: var(--burgundy);
}

.home-prize-special .home-prize-list strong {
	color: var(--white);
}

.home-prizes-action {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
}


/* Detailed rule prizes */
.rule-prize-groups {
	display: grid;
	gap: 1.5rem;
}

.rule-prize-group {
	padding: clamp(1.1rem, 2.5vw, 1.7rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgb(255 253 252 / 82%);
}

.rule-prize-group-special {
	border-color: var(--burgundy);
	background: var(--blush-light);
}

.rule-prize-group-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.4rem 1rem;
}

.rule-prize-group-title {
	margin: 0;
	color: var(--burgundy);
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	line-height: 1.3;
}

.rule-prize-group-recipients {
	margin: 0;
	font-size: 0.92rem;
}

.rule-prize-cards {
	margin-top: 1rem;
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.rule-prize-group-special .rule-prize-cards {
	grid-template-columns: 1fr;
}

.rule-prize-card {
	min-width: 0;
	padding: 1.15rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.rule-prize-title {
	margin: 0;
	color: var(--burgundy);
	font-size: 1.12rem;
	line-height: 1.4;
}

.rule-prize-details {
	margin: 0.75rem 0 0;
}

.rule-prize-detail {
	padding: 0.65rem 0;
	display: grid;
	grid-template-columns:
		minmax(100px, 28%)
		minmax(0, 1fr);
	gap: 0.75rem 1rem;
	border-bottom: 1px solid var(--line);
}

.rule-prize-detail dt {
	color: var(--burgundy);
}

.rule-prize-detail dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.rule-prize-link {
	margin-top: 0.45rem;
}

.rule-prize-link a {
	color: var(--burgundy);
	text-underline-offset: 0.2em;
}

.rule-prize-note {
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--burgundy);
	background: var(--blush-light);
}

/* Workshop page */

#workshop {
	width: 100%;
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.workshop-hero {
	width: min(
		var(--layout-width),
		calc(100% - 2rem)
	);
	margin: 0 auto;
	padding:
		clamp(3rem, 8vw, 6.5rem)
		clamp(1.25rem, 5vw, 4.5rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(
			135deg,
			rgb(255 253 252 / 98%),
			rgb(243 223 222 / 96%)
		);
	text-align: center;
}

.workshop-eyebrow {
	margin: 0;
	color: var(--burgundy);
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.workshop-kicker {
	margin: 1.25rem 0 0;
	color: var(--burgundy);
	font-size: clamp(1rem, 2vw, 1.25rem);
}

.workshop-title {
	max-width: 18em;
	margin: 0.45rem auto 0;
	color: var(--burgundy);
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.25;
}

.workshop-lead {
	margin: 1rem auto 0;
	color: var(--navy);
	font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.workshop-introduction {
	max-width: 64ch;
	margin: 1.5rem auto 0;
}

.workshop-date-box {
	max-width: 900px;
	margin: clamp(2rem, 5vw, 3.5rem) auto 0;
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.workshop-date,
.workshop-time {
	padding: 1.3rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.workshop-date {
	border-right: 1px solid var(--line);
}

.workshop-date span,
.workshop-time span {
	color: var(--burgundy);
	font-size: 0.85rem;
}

.workshop-date strong,
.workshop-time strong {
	margin-top: 0.2rem;
	color: var(--navy);
	font-size: clamp(1.2rem, 2.8vw, 1.8rem);
	font-weight: 400;
	line-height: 1.4;
	white-space: nowrap;
}

.workshop-time small {
	margin-top: 0.25rem;
	color: var(--burgundy);
}

.workshop-overview {
	width: min(
		var(--layout-width),
		calc(100% - 2rem)
	);
	margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.workshop-info-card {
	min-width: 0;
	padding: clamp(1.4rem, 3vw, 2.25rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	text-align: center;
}

.workshop-info-icon {
	width: clamp(5.5rem, 10vw, 8rem);
	aspect-ratio: 1;
	margin: 0 auto;
	display: grid;
	place-items: center;
}

.workshop-info-icon img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.workshop-info-card h2 {
	margin: 0.9rem 0 0;
	color: var(--burgundy);
	font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.workshop-info-card p {
	margin: 0.65rem 0 0;
}

.workshop-venue-name {
	color: var(--navy);
	font-size: 1.08rem;
}

.workshop-details {
	max-width: 28rem;
	margin: 1rem auto 0;
	text-align: left;
}

.workshop-detail-row {
	padding: 0.55rem 0;
	display: grid;
	grid-template-columns:
		8rem minmax(0, 1fr);
	gap: 1rem;
	border-bottom: 1px solid var(--line);
}

.workshop-detail-row dt {
	color: var(--burgundy);
}

.workshop-detail-row dd {
	margin: 0;
}

.workshop-section {
	width: min(
		var(--layout-width),
		calc(100% - 2rem)
	);
	margin: clamp(4rem, 8vw, 7rem) auto 0;
}

.workshop-section .section-heading {
	text-align: center;
}

.workshop-activity-grid {
	margin-top: clamp(1.75rem, 4vw, 3rem);
	display: grid;
	grid-template-columns:
		repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.workshop-activity {
	min-width: 0;
	padding: clamp(1.3rem, 2.5vw, 2rem);
	display: grid;
	grid-template-columns:
		clamp(5rem, 9vw, 7.5rem)
		minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 1.5rem);
	align-items: center;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.workshop-activity-icon {
	width: clamp(5rem, 9vw, 7.5rem);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.workshop-activity-icon img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.workshop-activity-content {
	min-width: 0;
}

.workshop-activity h3 {
	margin: 0;
	color: var(--burgundy);
	font-size: 1.15rem;
	line-height: 1.45;
}

.workshop-activity p {
	margin: 0.65rem 0 0;
}

.workshop-related {
	width: min(
		var(--layout-width),
		calc(100% - 2rem)
	);
	margin: clamp(4rem, 8vw, 7rem) auto 0;
	padding: clamp(1.5rem, 4vw, 3rem);
	display: grid;
	grid-template-columns:
		minmax(0, 1.1fr)
		minmax(280px, 0.9fr);
	gap: 2rem;
	align-items: center;
	border-radius: var(--radius);
	color: var(--white);
	background: var(--burgundy);
}

.workshop-related h2 {
	margin: 0;
	color: var(--white);
	font-size: clamp(1.4rem, 3vw, 2rem);
}

.workshop-related p {
	margin: 0.8rem 0 0;
}

.workshop-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem;
}

.workshop-related .button-primary {
	border-color: var(--white);
	color: var(--burgundy);
	background: var(--white);
}

.workshop-related .button-secondary {
	border-color: rgb(255 255 255 / 60%);
	color: var(--white);
	background: transparent;
}

.workshop-contact {
	width: min(
		760px,
		calc(100% - 2rem)
	);
	margin: clamp(3rem, 6vw, 5rem) auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
	text-align: center;
}

.workshop-contact h2 {
	margin: 0;
	color: var(--burgundy);
}

.workshop-contact p {
	margin: 0.35rem 0 0;
}

/* Privacy policy and terms of use */

#privacy.content-box,
#terms.content-box {
	width: min(var(--layout-width), calc(100% - 2rem));
}

.privacy-date,
.terms-date,
.privacy-introduction,
.terms-introduction {
	width: min(100%, 76ch);
	margin-inline: auto;
}

.privacy-date,
.terms-date {
	margin-top: 0;
	color: rgb(22 43 55 / 72%);
	font-size: 0.9rem;
	text-align: center;
}

.privacy-introduction,
.terms-introduction {
	margin-top: 1.5rem;
}

.privacy-section,
.terms-section {
	width: min(100%, 76ch);
	margin: 2.5rem auto 0;
}

.privacy-section .h2,
.terms-section .h2 {
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	text-align: left;
}

.privacy-section p,
.privacy-section li,
.privacy-section dd,
.terms-section p,
.terms-section li,
.terms-section dd {
	line-height: 1.9;
}

.privacy-section p,
.terms-section p {
	margin: 1rem 0 0;
}

.privacy-section ul,
.terms-section ul {
	margin: 1rem 0 0;
	padding-left: 1.5rem;
}

.privacy-section li + li,
.terms-section li + li {
	margin-top: 0.45rem;
}

.privacy-details,
.terms-details {
	margin: 1.25rem 0 0;
}

.privacy-detail,
.terms-detail {
	padding: 0.75rem 0;
	display: grid;
	grid-template-columns:
		minmax(160px, 30%)
		minmax(0, 1fr);
	gap: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--line);
}

.privacy-detail:first-child,
.terms-detail:first-child {
	border-top: 1px solid var(--line);
}

.privacy-detail dt,
.terms-detail dt {
	color: var(--burgundy);
}

.privacy-detail dd,
.terms-detail dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.privacy-section a,
.terms-section a {
	color: var(--burgundy);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.privacy-section a:hover,
.privacy-section a:focus-visible,
.terms-section a:hover,
.terms-section a:focus-visible {
	color: var(--burgundy-dark);
}

/* Responsive */
@media (max-width: 980px) {
	.nav-top-shell {
		width: 100%;
		min-height: 60px;
		padding: 0.5rem 0.75rem;
		grid-template-columns: 1fr auto auto;
		gap: 0.55rem;
	}

	#nav-top-button {
		min-height: 44px;
		grid-column: 3;
		grid-row: 1;
		padding: 0.45rem 0.75rem;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.55rem;
		border: 1px solid var(--line);
		border-radius: 999px;
		color: var(--navy);
		background: var(--paper);
		cursor: pointer;
		user-select: none;
	}

	.nav-top-shell > .languages {
		grid-column: 2;
		grid-row: 1;
	}

	.nav-top-shell > .languages a {
		padding: 0.4rem 0.66rem;
		font-size: 0.92rem;
	}

	#nav-top-list {
		grid-column: 1 / -1;
		grid-row: 2;
		width: 100%;
		max-height: 0;
		min-height: 0;
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: max-height 240ms ease, opacity 180ms ease, visibility 180ms ease, padding 240ms ease;
	}

	.nav-top-toggle:checked ~ #nav-top-list {
		max-height: 38rem;
		padding: 0.65rem 0 0.2rem;
		opacity: 1;
		visibility: visible;
	}

	#nav-top-list li,
	#nav-top-list a {
		width: 100%;
	}

	#nav-top-list li {
		display: block;
	}

	#nav-top-list a {
		min-height: 46px;
		padding: 0.7rem 0.9rem;
		justify-content: flex-start;
		border-radius: 9px;
		font-size: 1.05rem;
		white-space: normal;
	}

	.nav-top-toggle:checked + #nav-top-button .nav-top-button-icon span {
		opacity: 0;
	}

	.nav-top-toggle:checked + #nav-top-button .nav-top-button-icon::before {
		transform: translateY(6px) rotate(45deg);
	}

	.nav-top-toggle:checked + #nav-top-button .nav-top-button-icon::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.home-hero,
	.home-hero-inner {
		min-height: max(calc(100vw * 1081 / 1920), 680px);
	}

	.home-hero-inner {
		width: min(900px, calc(100% - 1.5rem));
		padding-top: 1.25rem;
		text-align: center;
	}

	.home-logo {
		width: clamp(260px, 55vw, 460px);
	}

	.home-question {
		margin-inline: auto;
	}

	.home-period,
	.home-actions {
		justify-content: center;
	}

	.home-highlights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.workshop-activity-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-card:nth-child(2) {
		border-right: 0;
	}

	.home-card:nth-child(-n + 2) {
		border-bottom: 1px solid var(--line);
	}
}

@media (min-width: 981px) {
	#nav-top-list {
		max-height: none;
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 760px) {
	.home-hero h1,
	html[lang="lv"] .home-hero h1 {
		font-size: clamp(1.5rem, 6vw, 2.15rem);
		line-height: 1.3;
		white-space: normal;
		text-wrap: balance;
	}
}

@media (max-width: 640px) {
	body {
		line-height: 1.68;
	}

	.nav-top-button-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.nav-top-shell {
		padding-inline: 0.5rem;
		gap: 0.35rem;
	}

	.nav-top-shell > .languages a {
		padding: 0.38rem 0.56rem;
		font-size: 0.88rem;
	}

	#top-cont.haikei_saisho {
		background-size: auto 720px;
	}

	#top-cont.haikei_saisho:has(.home-page) {
		background-image: none;
	}

	.content-box,
	#sakuhin.content-box,
	#oubo.content-box,
	#otoiawase.content-box,
	#touhyou.content-box,
	#nitsuite.content-box,
	#rules.content-box,
	.home-intro,
	.home-workshop,
	.home-highlights,
	.home-prizes,
	.home-notice,
	.home-final-cta {
		width: calc(100% - 1rem);
	}

	.content-box {
		padding: 1rem;
	}

	.home-hero {
		min-height: 0;
	}

	.home-hero-inner {
		width: calc(100% - 1rem);
		min-height: 0;
		padding: 1rem 0 2.5rem;
		gap: 1rem;
	}

	.home-logo {
		width: min(78vw, 390px);
		max-width: 100%;
	}

	.home-hero-copy {
		width: 100%;
		padding: 1.25rem;
	}

	.home-period {
		flex-direction: column;
		align-items: center;
	}

	.home-actions {
		flex-direction: column;
	}

	.home-actions .button {
		width: 100%;
	}

	.home-highlights {
		grid-template-columns: 1fr;
		margin-bottom: 4rem;
	}

	.home-card,
	.home-card:nth-child(2) {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.home-card:last-child {
		border-bottom: 0;
	}

	.home-card-icon {
		width: 44px;
		height: 44px;
	}

	.home-intro {
		padding-block: 4rem;
	}

	.home-notice,
	.home-final-cta {
		margin-bottom: 4rem;
	}

	.home-notice {
		grid-template-columns: 1fr;
	}
	
	.home-prizes {
		width: calc(100% - 1rem);
		margin-bottom: 4rem;
		padding: 1.25rem;
	}

	.home-prize-grid,
	.rule-prize-cards {
		grid-template-columns: 1fr;
	}

	.home-prize-special {
		grid-column: auto;
	}

	.rule-prize-group {
		padding: 0.9rem;
	}

	.rule-prize-group-header {
		display: block;
	}

	.rule-prize-group-recipients {
		margin-top: 0.35rem;
	}

	.rule-prize-detail {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.rule-detail {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}

	.rule-subsection,
	.form-section {
		padding: 0.9rem;
	}

	#nitsuite .img-cont {
		margin-block: 1.5rem;
	}


	/* Homepage workshop */
	.home-workshop {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.home-workshop-date {
		min-width: 0;
		padding: 0 0 1rem;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.home-workshop-content {
		width: 100%;
		min-width: 0;
	}

	.home-workshop .button {
		width: 100%;
		white-space: normal;
	}

	/* Workshop page */
	.workshop-hero,
	.workshop-overview,
	.workshop-section,
	.workshop-related,
	.workshop-contact {
		width: calc(100% - 1rem);
	}

	.workshop-hero {
		padding: 2.5rem 1.1rem;
	}

	.workshop-date-box,
	.workshop-overview,
	.workshop-activity-grid,
	.workshop-related {
		grid-template-columns: 1fr;
	}

	.workshop-date {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.workshop-detail-row {
		grid-template-columns: 1fr;
		gap: 0.1rem;
	}

	.workshop-activity {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.workshop-activity-icon {
		margin-inline: auto;
	}

	.workshop-actions {
		justify-content: flex-start;
	}

	.workshop-actions .button {
		width: 100%;
		text-align: center;
	}

	/* Privacy and terms */
	#privacy.content-box,
	#terms.content-box {
		width: calc(100% - 1rem);
	}

	.privacy-section,
	.terms-section {
		margin-top: 2rem;
	}

	.privacy-detail,
	.terms-detail {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}
}

/* State and accessibility utilities are last so normal cascade order is enough. */
.hide {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto;
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}
}
