.nara-page {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px 80px;
	box-sizing: border-box;
}

.nara-page * {
	box-sizing: border-box;
}

.nara-hero {
	padding: 60px 0 34px;
	border-bottom: 1px solid #f3e5cc;
	margin-bottom: 34px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
}

.nara-title {
	margin: 0;
	color: #3e2723;
	font-size: 40px;
	font-weight: 900;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.nara-desc {
	margin: 12px 0 0;
	color: #8d6e63;
	font-size: 17px;
	line-height: 1.65;
}

.nara-path {
	color: #a1887f;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.nara-search {
	margin-bottom: 32px;
	padding: 28px;
	background: #fffdf7;
	border: 1px solid rgba(255, 179, 0, 0.18);
	border-radius: 28px;
	box-shadow: 0 12px 34px rgba(255, 179, 0, 0.08);
}

.nara-search-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px 12px;
	align-items: end;
}

.nara-search .nara-field-break {
	grid-column-start: 1;
}

.nara-search .nara-submit-wrap {
	grid-column: span 4;
	width: 100%;
}

.nara-search .nara-submit {
	width: 100%;
}

.nara-field label {
	display: block;
	margin-bottom: 8px;
	color: #5d4037;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	user-select: none;
}

.nara-field select,
.nara-field input {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 50px;
	border: 1px solid #f0d8aa;
	border-radius: 14px;
	background: #fff;
	color: #3e2723;
	font-size: 15px;
	padding: 0 15px;
	outline: none;
	cursor: pointer;
}

.nara-field input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
}

/* Aggressively prevent blue highlight on click/selection */
.nara-field input[type="date"]::-webkit-datetime-edit,
.nara-field input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.nara-field input[type="date"]::-webkit-datetime-edit-text,
.nara-field input[type="date"]::-webkit-datetime-edit-month-field,
.nara-field input[type="date"]::-webkit-datetime-edit-day-field,
.nara-field input[type="date"]::-webkit-datetime-edit-year-field {
  -webkit-user-select: none;
  user-select: none;
}

.nara-field input::selection {
  background: transparent;
  color: inherit;
}

.nara-field input::-moz-selection {
  background: transparent;
  color: inherit;
}

.nara-field input[type="date"]::-webkit-date-and-time-value {
	min-width: 0;
	text-align: left;
}

.nara-field input[type="date"]::-webkit-calendar-picker-indicator {
	margin-right: 0;
}

.nara-field select:focus,
.nara-field input:focus {
	border-color: #ffb300;
	box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.18);
}

.nara-submit {
	height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 14px;
	background: #ffb300;
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(255, 143, 0, 0.22);
}

.nara-submit:hover {
	background: #3e2723;
}

.nara-note {
	margin: 14px 0 0;
	color: #8d6e63;
	font-size: 13px;
	line-height: 1.55;
}

.nara-status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	color: #795548;
	font-size: 15px;
}

.nara-status strong {
	color: #3e2723;
	font-weight: 900;
}

.nara-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.nara-card {
	display: flex;
	flex-direction: column;
	min-height: 272px;
	padding: 24px;
	background: #fff;
	border: 1px solid rgba(255, 179, 0, 0.15);
	border-radius: 22px;
	box-shadow: 0 10px 28px rgba(62, 39, 35, 0.05);
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nara-card.is-open {
	border-color: rgba(25, 135, 84, 0.38);
	box-shadow: 0 12px 30px rgba(25, 135, 84, 0.1);
}

.nara-card.is-open .nara-card-title {
	color: #163b2f;
}

.nara-card.is-closed {
	background: #f7f7f7;
	border-color: #d8d8d8;
	box-shadow: none;
	opacity: 0.76;
}

.nara-card.is-closed .nara-card-title,
.nara-card.is-closed .nara-meta,
.nara-card.is-closed .nara-card-foot {
	color: #777;
}

.nara-card.is-closed:hover {
	border-color: #bdbdbd;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.nara-card:hover {
	transform: translateY(-6px);
	border-color: #ffb300;
	box-shadow: 0 18px 38px rgba(255, 143, 0, 0.14);
	color: inherit;
}

.nara-card.is-open:hover {
	border-color: #198754;
	box-shadow: 0 18px 38px rgba(25, 135, 84, 0.16);
}

.nara-card.is-closed:hover {
	border-color: #bdbdbd;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.nara-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.nara-badge {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 11px;
	border-radius: 999px;
	background: #fff8e1;
	color: #e65100;
	font-size: 12px;
	font-weight: 900;
}

.nara-badge-open {
	background: #198754;
	color: #fff;
	min-width: 58px;
	justify-content: center;
}

.nara-badge-closed {
	background: #616161;
	color: #fff;
	min-width: 48px;
	justify-content: center;
}

.nara-date {
	color: #a1887f;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.nara-card-title {
	margin: 0 0 16px;
	color: #3e2723;
	font-size: 19px;
	font-weight: 900;
	line-height: 1.45;
	letter-spacing: -0.02em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nara-meta {
	display: grid;
	gap: 8px;
	margin: 0 0 18px;
	color: #6d4c41;
	font-size: 14px;
	line-height: 1.55;
}

.nara-meta span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nara-meta strong {
	color: #3e2723;
	font-weight: 900;
}

.nara-card.is-open .nara-close-date {
	color: #198754;
	font-weight: 900;
}

.nara-card.is-closed .nara-close-date {
	color: #616161;
	font-weight: 900;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}

.nara-card-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #f5e6d3;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: #8d6e63;
	font-size: 13px;
	font-weight: 700;
}

.nara-empty,
.nara-error {
	padding: 38px;
	border-radius: 24px;
	text-align: center;
	font-size: 15px;
	line-height: 1.7;
}

.nara-empty {
	background: #fffdf7;
	border: 1px dashed #f0d8aa;
	color: #8d6e63;
}

.nara-error {
	background: #fff5f5;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.nara-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 34px;
}

.nara-page-link {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #f0d8aa;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #5d4037;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.nara-page-link:hover {
	background: #ffb300;
	border-color: #ffb300;
	color: #fff;
}

.nara-page-link.is-active {
	background: #3e2723;
	border-color: #3e2723;
	color: #fff;
	box-shadow: 0 8px 18px rgba(62, 39, 35, 0.22);
	cursor: default;
	transform: translateY(-2px);
}

@media (max-width: 1200px) {
	.nara-search-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nara-search .nara-field-break {
		grid-column-start: auto;
	}

	.nara-search .nara-submit-wrap {
		grid-column: span 2;
	}

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

@media (max-width: 768px) {
	.nara-page {
		padding: 0 15px 60px;
	}

	.nara-hero {
		display: block;
		padding: 42px 0 24px;
		margin-bottom: 24px;
	}

	.nara-title {
		font-size: 30px;
	}

	.nara-desc {
		font-size: 15px;
		line-height: 1.55;
	}

	.nara-path {
		margin-top: 14px;
		white-space: normal;
		font-size: 13px;
	}

	.nara-search {
		padding: 20px;
		border-radius: 20px;
		margin-bottom: 24px;
	}

	.nara-search-grid,
	.nara-list {
		grid-template-columns: 1fr;
	}

	.nara-search .nara-field-break {
		grid-column-start: auto;
	}

	.nara-search .nara-submit-wrap {
		grid-column: span 1;
	}

	.nara-field select,
	.nara-field input,
	.nara-submit {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		height: 48px;
		font-size: 14px;
	}

	.nara-submit {
		width: 100%;
	}

	.nara-status {
		display: block;
		font-size: 14px;
		line-height: 1.6;
	}

	.nara-status p {
		margin: 0 0 6px;
	}

	.nara-card {
		min-height: auto;
		padding: 20px;
		border-radius: 18px;
	}

	.nara-card:hover {
		transform: none;
	}

	.nara-card-top,
	.nara-card-foot {
		align-items: flex-start;
		flex-direction: column;
	}

	.nara-card-title {
		font-size: 17px;
		-webkit-line-clamp: 3;
	}

	.nara-meta span {
		white-space: normal;
	}

	.nara-pagination {
		gap: 6px;
		margin-top: 26px;
	}

}

@media (max-width: 480px) {
	.nara-page {
		padding: 0 12px 48px;
	}

	.nara-hero {
		padding: 32px 0 20px;
	}

	.nara-title {
		font-size: 26px;
	}

	.nara-search {
		padding: 16px;
		border-radius: 18px;
	}

	.nara-search-grid {
		gap: 10px;
	}

	.nara-note {
		font-size: 12px;
	}

	.nara-badge {
		max-width: 100%;
		height: auto;
		min-height: 28px;
		padding: 6px 10px;
		line-height: 1.35;
		white-space: normal;
	}

	.nara-date {
		white-space: normal;
	}

	.nara-card {
		padding: 18px;
	}

	.nara-card-foot {
		font-size: 12px;
	}

	.nara-empty,
	.nara-error {
		padding: 28px 18px;
		border-radius: 18px;
	}

	.nara-page-link {
		min-width: 36px;
		height: 36px;
		padding: 0 9px;
		border-radius: 10px;
		font-size: 13px;
	}
}
