/*
Theme Name: Rermork 2021
Text Domain: ct
Version: 1.0
*/

* {
	box-sizing:border-box;
}

html {
	border: none;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: sans-serif;
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0em;
	text-transform: none;
	line-height: 1.8;
	color: #000;
	background: #fff;
	scroll-behavior: smooth;
	font-size:16px;
}

body {
	margin: 0;
	padding: 0;
	font-size:1rem;
	overflow-x:hidden;
}

a {
	color:inherit;
}
a:hover {
	color:#1f2569;
}

figure {
	overflow:hidden;
	margin:0;
}
figure img {
	width:100%;
}

figure > a {
	display:block;
	width:100%;
	height:100%;
	overflow:hidden;
}

video {
	width:100%;
	box-shadow: 0 0 5px #c0c0c0;
}

.wrapper {
	width:100%;
	padding: 0 max(calc(50vw - 700px), 4vw);
}

.main.wrapper {
	display:flex;
	background:#f3f3f3;
}

header {
	position:sticky;
	top:0;
	text-align:center;
	width:100vw;
	z-index:100;
	color:#000;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 5px #c0c0c0;
}
header > div {
	background: rgba(255,255,255,.9);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.btn {
	display:inline-block;
	color:inherit;
	font-weight: bold;
	font-size:14px;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1em;
	letter-spacing: .1em;
	padding:1em 2em;
	transition: .1s opacity linear;
	white-space:nowrap;
	border:solid 1px #fff;
	border-radius:3em;
}
.btn:hover {
	opacity:0.9;
}

.btn.donate {
	background-color: #f9ca2f;
}

.btn.quicklinks {
	background-color: #44a5a9;
}

/* Logo and header changes */

.logo-wrapper {
	width: 250px;
}
.r4c {
	font-size:0;
	background:#fff;
	margin:15px 0;
}
.tuk-tuk,
.rotary {
	font-size:0;
	background:#fff;
	margin:10px 0;
}
.r4c img {
	padding-top: 10px;
	width: 100%;
}
.tuk-tuk img {
	width: 45px;
}
.rotary img {
	width: 70px;
}
.header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 5px solid #f3f3f3;
}
.partners {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 250px;
	opacity: 65%;
}
.partners p {
	font-size: 12px;
}
.nomaterial {
	border: none !important;
	padding: 0 !important;
}
.header-bar-form {
	margin-top: 13px;
}

@media only screen and (max-width: 600px) {
  /* For mobile phones: */
	.logo-wrapper {
		width: 200px;
	}
	.header-bar {
		flex-direction: column;
	}
}
/* END - Logo and header changes */

.custom-logo-link {
	font-size:0;
	width:76px;
	background:#fff;
	margin:15px 0;
}
.custom-logo-link img {
	width:100%;
	height: auto;
}
/*
.custom-logo-link:before {
	content:"";
	background:#fff;
	display: block;
	position:absolute;
	top:0;
	left:0;
	width: 100%;
	height:26px;
}
.custom-logo-link img {
	position:absolute;
	top:10px;
	left:20px;
}
*/
#menu-primary-menu {
	margin:0;
	padding:0;
	list-style:none;
	text-align:center;
	position:relative;
}
#menu-primary-menu > li {
	font-size:16px;
	font-weight:bold;
	letter-spacing: 0.1em;
	display:inline-block;
	margin:0 20px;
}
#menu-primary-menu a {
	display:block;
	padding:10px 11px;
	text-decoration:none;
	text-transform: uppercase;
	line-height:1.5em;
	position:relative;
	white-space: nowrap;
}

.toggle-menu {
	display:none;
}

.sidebar {
	position:sticky;
	top:64px;
	margin-right:16px;
	height:100%;
	flex-grow:1;
	padding-top:16px;
	margin-bottom:16px;
}

form.filter {
	max-height: calc(100vh - 100px);
	display: block;
	overflow: auto;
}
form.filter h2 {
	margin-top:0.5rem;
}
form.filter input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 10px 15px;
	border: 1px solid #b0b6bb;
	background-color: #ffffff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
	border-radius: 3px;
	font-family:sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #323232;
	display: block;
	/*
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	appearance: none;
	*/
}
form.filter input[type="search"]::placeholder {
    color: #88919a;
}
form.filter fieldset {
	border:none;
	padding:0;
	margin:0;
	background:#ffffff;
	border-radius:4px;
	box-shadow: 0 0 5px #c0c0c0;
	position:relative;
	padding-top:30px;
	margin-top: -20px;
	margin-bottom: 20px;
}
form.filter fieldset ul {
	list-style:none;
	margin:0;
	padding:0;
}
form.filter fieldset ul ul {
	padding-left:1em;
}
form.filter fieldset legend {
	display:block;
	width:100%;
	font-weight: 400;
	font-style: normal;
	letter-spacing: .01em;
	font-size:1.2em;
	line-height:1.2;
	padding:0.5em;
	padding-right:2em;
	border-bottom:solid 1px #c0c0c0;
	position:relative;
	top:22px;
	white-space: nowrap;
}
form.filter fieldset legend:after {
	content:"";
	display:block;
	width:0.5rem;
	height:0.5rem;
	border-left:solid 2px #000000;
	border-bottom:solid 2px #000000;
	position: absolute;
	top: 15px;
	right: 10px;
	transform: rotate(-45deg);
}
form.filter fieldset.open legend:after {
	transform: rotate(135deg);
}
form.filter fieldset legend .fbadge {
	display:inline-block;
	font-size:0.7em;
	background:#1f2569;
	color:#ffffff;
	padding:0.1em 0.5em;
	border-radius:999px;
	position:absolute;
	top:0.9em;
	right:2.2em;
}
form.filter fieldset.open legend .fbadge {
	display:none;
}
form.filter fieldset label {
	display:none;
	font-size:0.8em;
	margin:0 0.5em;
	white-space:nowrap;
}
form.filter label .count {
	float:right;
}
form.filter label.zero {
	opacity:.45;
}
form.filter fieldset.open label {
	display:block;
}



main {
	min-height:50vh;
	width:75%;
	flex-grow:1;
	margin:16px auto;
	background:#ffffff;
	border-radius:4px;
	box-shadow: 0 0 5px #c0c0c0;
	padding:0.5em;
}

article {
	display:flex;
	flex-direction:row;
	margin-bottom:1em;
	padding-bottom:1em;
	border-bottom:solid 1px #c0c0c0;
}
article > div {
	flex-grow:1;
}
article > div > div {
	display:flex;
	flex-direction:row;
}

.entry-wrapper {
	display:flex;
	flex-direction:column;
	flex-grow:1;
}
.post_image_link {
	width:106px;
	height:90px;
	margin-right:0.5em;
	flex-shrink: 0;
}
.post_image_link img {
	width:100%;
	height:100%;
	object-fit:cover;
}
.post_title {
	margin:0;
}
.post_excerpt {
	display:none;
}
.thebook .post_excerpt {
	display:block;
}
.taxonomies {
	font-size:0.8em;
}
.taxonomies .root {
	font-weight:bold;
}

.navigation ul {
	list-style:none;
	margin:0;
	padding:0;
	margin-top:2em;
	font-size: 0.8em;
}
.navigation ul li {
	display: inline;
	margin-right:0.5em;
}
.navigation ul li.active a {
	color:#663366;
}

img {
	height:auto;
}

.alignwide {
	padding:0;
	margin:0;
	width:100%;
}

.alignfull {
	width:100vw !important;
	position:relative;
	left:50%;
	transform: translateX(-50%);
	margin-left:0;
	margin-right:0;
	overflow:hidden;
}

footer {
	padding:24px 0;
	background:#1f2569;
	color:#ffffff;
}

footer a {
	text-decoration:none;
}
footer a:hover {
	color:#fff;
	text-decoration:underline;
}

footer ul.fw {
	padding:0;
	margin:0 auto;
	display: flex;
	align-items: flex-start;
	list-style:none;
}
footer ul.fw > li {
	margin:0;
	width:100%;
	flex-grow: 1;
	flex-shrink: 1;
}
footer ul.fw > li:last-child {
	text-align:right;
}
footer .logo {
	display:inline-block;
	width:76px;
}
footer .logo img {
	width:100%;
	height:auto;
}
footer .copyright {
	font-size:0.8em;
}

.meta {
	color:#6C7279;
}

.scroll {
	position:relative;
}
.gallery {
	position:relative;
	display:flex;
	flex-direction: column;
	width:100%;
	height:100%;
	padding:0 16px;
	min-height:415px;
}
.scroll div {
	position:relative;
	scroll-behavior: smooth;
	overflow:hidden;
	width:100%;
}
.gallery div {
	flex-grow: 1;
	position:relative;
	width:100%;
	height:100%;
	box-shadow: 0 0 5px #c0c0c0;
	aspect-ratio: 1 / 1;
}
.gallery div a {
	display:block;
	position:absolute;
	width:100%;
	height:100%;
	opacity:0;
	transition: opacity .5s ease-in-out;
	pointer-events: none;
}
.gallery div a.active {
	opacity:1;
	pointer-events: all;
}
.gallery div a img {
	width:100%;
	height:100%;
	object-fit:contain;
}
.scroll nav,
.gallery nav {
	text-align:center;
}
.scroll nav a,
.gallery nav a {
	background:#D3D3D3;
	border-radius:50%;
	/*border:solid 1px #c0c0c0;*/
	display:inline-block;
	width:7px;
	height:7px;
	margin:0 5px;
}
.scroll nav a.active,
.gallery nav a.active {
	background:#1F2469;
}
.scroll > a.prev,
.scroll > a.next,
.gallery > a {
	display:flex;
	justify-content: center;
	align-items: center;
	width:32px;
	height:32px;
	border-radius:50%;
	border:solid 2px #fff;
	box-shadow: 0 0 5px #c0c0c0;
	background:#1F2469;
	position:absolute;
	top:50%;
	transform:translateY(-100%);
	color:#fff;
	text-decoration:none;
}
.scroll > a.prev,
.gallery > a.prev {
	left:0;
}
.scroll > a.prev > .fas,
.gallery > a.prev > .fas {
	margin-right:2px;
}
.scroll > a.next,
.gallery > a.next {
	right:0;
}
.scroll > a.next > .fas,
.gallery > a.next > .fas {
	margin-left:2px;
}

.links {
	float:right;
}
.links a {
	display:inline-block;
	margin:0 1em;
	text-align:center;
}
.links a i {
	font-size: 35px;
}

.books {
	display:flex;
	flex-direction:row;
	/*overflow:auto;*/
	margin-bottom:0.5em;
	/*width:100%;*/
}
.books a {
	border-radius: 4px;
	box-shadow: 0 0 5px #c0c0c0;
	padding: 0.5em;
	margin:0.5em;
}
.books a:first-of-type {
	margin-left:5px;
}
.books a:last-of-type {
	margin-right:5px;
}
.books a img {
	display:block;
	width:240px;
	height:170px;
	object-fit:contain;
}

article .links a {
	font-size: 0.8em;
}
article .links i {
	font-size: 18px;
}

.character {
	margin:2em 0;
	padding:0;
	list-style:none;
}
.character li {
	display:inline-block;
	background-position: 50% 0;
	background-repeat:no-repeat;
	padding:0 0.5em;
	text-align:center;
	border-left:solid 1px #D2D2D2;
	font-size:10px;
}
.character li:first-child {
	border-left:none;
}
.character li img {
	display:block;
	margin:0 auto;
}

.downloads {
	list-style:none;
	margin:0;
	padding:0;
}
.downloads li a {
	display:block;
	border-bottom:solid 1px #E7E7E7;
	padding:0.5em 0;
	margin:0.5em 0;
}
.downloads i {
	float:right;
}

.nomaterial {
	border-bottom: solid 1px #c0c0c0;
	margin:-0.5em;
	margin-bottom:0;
	padding:0.5em;
}
.nomaterial h2 {
	margin:0;
}
.nomaterial form {
	float:right;
	vertical-align:middle;
}

/*
.book {
	font-size:0;
	margin:0 -.5rem;
}
.book img {
	width:100%;
	height:auto;
}
*/

.book .activity_type-story {
	display:none;
}

.thebook .post_image_link {
	width:30%;
	height:auto;
}
.thebook .activity_type-story {
	display:flex;
}

.thebookfilters {
	padding-bottom:1rem;
	border-bottom: solid 1px #c0c0c0;
	margin-bottom:1rem;
}
.thebookfilters a {
	display:inline-block;
	margin:0 1rem;
}
.thebookfilters a:first-of-type {
	margin-left:0;
}
.thebookfilters a:last-of-type {
	margin-right:0;
}
.thebookfilters a.selected {
	font-weight:bold;
	text-decoration:none;
}

@media (max-width: 768px) {	
	body {
		overflow-x:unset;
	}
	
	.main.wrapper {
		display:block;
	}
	
	header {
		position:sticky;
	}
	header .topbar {
		flex-direction:column;
	}
	header .topbar .announcement {
		order:2;
		padding: .8em 3em;
	}
	.custom-logo-link {
	}
	.custom-logo-link img {
	}
	header .topbar {
		order:2;
	}
	header .buttons {
		width:100%;
		display:flex;
	}
	header .buttons .btn {
		flex-grow:1;
	}
	#quicklinks { 
		flex-direction:column;
		max-height:50vh;
	}
	#quicklinks > li {
		padding-top:1em;
		margin-top:1em;
	}
	#quicklinks > li:first-child { 
		display:none;
	}
	#quicklinks img:first-of-type {
		display:block;
		margin-bottom:1em;
	}
	#menu-primary-menu {
		position:absolute;
		left:0;
		top:0;
		width:100vw;
		height:100vh;
		display:none;
		flex-direction: column;
		justify-content:center;
		align-items:center;
		background:rgba(255,255,255,0.85);
		z-index:-1;
	}
	#menu-primary-menu li {
		font-size:16px;
		margin:10px 0;
	}
	#menu-primary-menu a {
		display:block;
	}
	#menu-primary-menu .sub-menu {
		display:block;
		box-shadow:none;
		background:none;
		position:static;
		padding:0;
		transform:none;
	}
	#menu-primary-menu .sub-menu li {
		text-align:center;
		margin:0;
	}
	#menu-primary-menu .sub-menu li:after {
		display:none;
	}
	#menu-primary-menu .sub-menu li a {
		text-transform: none;
	}

	.menu #menu-primary-menu {
		display:flex;
	}
	
	.toggle-menu {
		display:block;
		width:35px;
		height:35px;
		position:relative;
	}
	.toggle-menu span {
		background: #000;
		display:block;
		height:1px;
		width:100%;
		position:absolute;
		left:0;
		top:50%;
		transition: transform 250ms cubic-bezier(.2,.6,.3,1),width 250ms cubic-bezier(.2,.6,.3,1);
		will-change: transform,width;
	}
	.toggle-menu span:first-child {
		transform: translatey(-5.5px);	
	}
	.toggle-menu span:last-child {
		transform: translatey(5.5px);	
	}
	.menu .toggle-menu span:first-child {
		transform: translatey(0) rotate(135deg);	
	}
	.menu .toggle-menu span:last-child {
		transform: translatey(0) rotate(-135deg);
	}

	.sidebar {
		position:static;
		margin-right:0;
	}

	main {
		width:100%;
	}

	article {
		flex-direction:column;
	}
	
	.thebook .post_image_link,
	.post_image_link {
		width:100%;
		height:auto;
	}
	
	footer ul.fw {
		flex-direction:column;
		text-align:center;
	}
}

@media print {
	header, 
	footer,
	.sidebar {
		display:none;
	}
	
	img {
		opacity:1 !important;
	}
}

/*──────────────────────────────────
  Desktop layout & spacing
──────────────────────────────────*/

/* Contact button styling */
.contact-btn {
  margin-left: auto;        /* push it up against the icons */
  margin-right: 12px;       /* gap before the icons */
  padding: 6px 14px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.2s, color 0.2s;	
}
.contact-btn:hover,
a.contact-btn:focus {
  background-color: #005177;
  color: #fff;
}

/* (You already have .social-media, but here’s the full set) */
.social-media {
  display: flex;
  align-items: center;
  margin-right: 12px;
}
.social-media a {
  margin-left: 12px;
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
}
.social-media a:hover {
  color: #0073aa;
}

/* Ensure your search form sits nicely after */
.filter {
  margin-left: 12px;
}

/* Login button / account chip (header) */
.login-btn {
  padding: 6px 14px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  margin-right: 12px;
  transition: background-color 0.2s, color 0.2s;
}
.login-btn:hover,
a.login-btn:focus {
  background-color: #005177;
  color: #fff;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}
.account-chip img {
  border-radius: 50%;
}
.account-chip .account-name {
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-chip .logout-link {
  font-size: 0.85em;
  text-decoration: underline;
}

/* Login modal */
.rermork-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rermork-modal {
  background: #fff;
  border-radius: 8px;
  padding: 2em;
  max-width: 22em;
  width: 90%;
  position: relative;
  text-align: center;
}
.rermork-modal-close {
  position: absolute;
  top: .4em;
  right: .6em;
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
}
/* Language toggle (flags) */
.rermork-lang {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1em;
}
.rermork-lang-btn {
  background: #f2f3f7;
  border: 1px solid #d8dae2;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .9rem;
  cursor: pointer;
  line-height: 1.4;
}
.rermork-lang-btn.is-active {
  background: #1f2569;
  border-color: #1f2569;
  color: #fff;
}
.rermork-modal-title {
  margin: 0 0 .25em;
}
.rermork-modal-msg {
  margin: 0 0 1em;
  font-size: 1.05rem;
}
/* QR code */
#rermork-qr.rermork-qr {
  min-height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
#rermork-qr.rermork-qr img,
#rermork-qr.rermork-qr canvas {
  display: block;
}
.rermork-qr-hint {
  margin: 1em 0 .25em;
  font-size: .9rem;
  color: #555;
}
.rermork-tg-open {
  display: inline-block;
  margin-bottom: .5em;
  font-size: .95rem;
  color: #0073aa;
  text-decoration: underline;
}
.rermork-qr-status {
  margin: .5em 0 0;
  font-size: .9rem;
  color: #444;
  min-height: 1.2em;
}
.rermork-qr-retry {
  margin-top: .75em;
  padding: 6px 16px;
  background: #1f2569;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: .95rem;
}
[hidden] {
  display: none !important;
}

/*──────────────────────────────────
  Personal library (WP-3): favorite + follow
──────────────────────────────────*/
.rermork-modal-context {
  margin: 0 0 .75em;
  color: #1f2569;
  font-weight: bold;
}
form.filter .mylibrary {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 5px #c0c0c0;
  padding: 0.5em;
  margin-bottom: 20px;
}
form.filter .mylibrary label {
  display: block;
  font-size: 0.8em;
  margin: 0.25em 0.5em;
  white-space: nowrap;
  cursor: pointer;
}
.links a.rermork-fav.is-on {
  color: #1f2569;
  font-weight: bold;
}
button.rermork-follow {
  background: #f2f3f7;
  border: 1px solid #d8dae2;
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 6px;
  font-size: 0.8em;
  cursor: pointer;
  line-height: 1.4;
  vertical-align: middle;
}
button.rermork-follow.is-on {
  background: #1f2569;
  border-color: #1f2569;
  color: #ffffff;
}
.rermork-empty-library {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 5px #c0c0c0;
  padding: 1.5em;
  text-align: center;
  margin: 1em 0;
}

/*──────────────────────────────────
  Mobile tweaks
──────────────────────────────────*/
@media (max-width: 768px) {
  /* 1) Allow flex-wrapping (you should already have this) */
  .wrapper {
    display: flex;
	flex-wrap: wrap;
  }
  /* 2) Center the logo at its natural width */
  .logo-wrapper {
    /* don’t force 100% width */
    flex: 0 0 auto !important;
    /* horizontally center in its row */
    margin: 1rem auto 0 !important;
    text-align: center;   /* centers the <img> inside, if you need it */
  }	
  /* 3) Your other mobile rows (contact, icons, search) */
  .contact-btn {
    flex: 0 0 100%;
    margin: 10px 0;
    text-align: center;
  }
  .social-media {
    flex: 0 0 100%;
    justify-content: center;
    margin: 10px 0;
  }
  .filter {
    flex: 0 0 100%;
    justify-content: center;
    margin: 10px 0;
  }
  .login-btn {
    flex: 0 0 100%;
    margin: 10px 0;
    text-align: center;
  }
  .account-chip {
    flex: 0 0 100%;
    justify-content: center;
    margin: 10px 0;
  }
  .rermork-modal {
    padding: 1.2em;
  }
}

@media (max-width: 380px) {
  .account-chip .account-name {
    display: none;
  }
}


/*──────────────────────────────────
  Teacher uploads (WP-5)
──────────────────────────────────*/
.rermork-upload-links {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.rermork-upload-link {
  background: #f6a21e;
  color: #fff;
  padding: 6px 14px;
  border-radius: 18px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: bold;
}
.rermork-upload-link--mine {
  background: #4d9fd6;
}
.rermork-upload-link:hover {
  opacity: 0.85;
  color: #fff;
}

.rermork-upload-main main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1em 3em;
}
.rermork-upload-back {
  margin: 1em 0;
}
.rermork-upload-main .rermork-lang {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 1em;
}
.rermork-upload-intro {
  margin: 0.5em 0 1.5em;
}

.rermork-upload-panel {
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1.5em;
  text-align: center;
  margin: 1.5em 0;
}
.rermork-upload-panel .login-btn {
  display: inline-block;
  margin-top: 0.8em;
}

.rermork-upload-form {
  display: block;
}
.rermork-upload-field {
  margin: 0 0 1.4em;
  border: 0;
  padding: 0;
}
.rermork-upload-field > label {
  display: block;
  font-weight: bold;
}
.rermork-upload-field legend {
  font-weight: bold;
  padding: 0;
  margin-bottom: 0.4em;
}
.rermork-upload-field input[type="text"],
.rermork-upload-field input[type="number"],
.rermork-upload-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.3em;
  padding: 0.55em 0.7em;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  font: inherit;
}
.rermork-upload-field input[type="file"] {
  display: block;
  margin-top: 0.4em;
  font: inherit;
}
.rermork-upload-field .req {
  color: #d33;
  font-style: normal;
}
.rermork-upload-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.rermork-upload-choices label {
  font-weight: normal;
  white-space: nowrap;
}
.rermork-upload-choices--grid {
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 0.6em;
}
.rermork-upload-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.rermork-upload-inline > label {
  flex: 1 1 150px;
  font-weight: bold;
}
.rermork-upload-hint {
  color: #666;
  font-size: 0.9em;
  margin: 0.5em 0 0;
}
.rermork-upload-current {
  margin: 0.4em 0 0;
  padding-left: 1.4em;
  color: #666;
  font-size: 0.9em;
}

.rermork-upload-error {
  background: #fdecea;
  border: 1px solid #e8b4ae;
  color: #a02b21;
  border-radius: 6px;
  padding: 0.8em 1em;
  margin: 0 0 1em;
}
.rermork-upload-success {
  background: #e9f6ec;
  border: 1px solid #b3ddbc;
  color: #1e6b34;
  border-radius: 6px;
  padding: 0.8em 1em;
  margin: 0 0 1.2em;
}

.rermork-upload-submit {
  background: #f6a21e;
  color: #fff;
  border: 0;
  border-radius: 22px;
  padding: 0.7em 2.2em;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.rermork-upload-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.rermork-upload-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rermork-upload-item {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1em 1.2em;
  margin-bottom: 1em;
}
.rermork-upload-title {
  font-weight: bold;
  margin-right: 0.6em;
}
.rermork-upload-chip {
  display: inline-block;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.85em;
  white-space: nowrap;
}
.rermork-upload-chip--pending {
  background: #fff3d6;
  color: #8a6100;
}
.rermork-upload-chip--revise {
  background: #fdecea;
  color: #a02b21;
}
.rermork-upload-chip--published {
  background: #e9f6ec;
  color: #1e6b34;
}
.rermork-upload-date {
  color: #888;
  font-size: 0.85em;
  margin-left: 0.6em;
}
.rermork-upload-note {
  background: #f7f7f7;
  border-left: 3px solid #f6a21e;
  padding: 0.6em 0.9em;
  margin: 0.7em 0;
}
.rermork-upload-cta {
  display: inline-block;
  background: #4d9fd6;
  color: #fff;
  border-radius: 18px;
  padding: 5px 14px;
  text-decoration: none;
  margin-top: 0.4em;
}
.rermork-upload-cta:hover {
  opacity: 0.85;
  color: #fff;
}
.rermork-upload-empty {
  text-align: center;
  padding: 2em 0;
}

@media (max-width: 768px) {
  .rermork-upload-links {
    flex: 0 0 100%;
    justify-content: center;
    margin: 10px 0;
  }
  .rermork-upload-choices {
    flex-direction: column;
    gap: 6px;
  }
  .rermork-upload-choices label {
    white-space: normal;
  }
}
