.rms-statistics .rms-toplists {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 2rem;
	align-items: start;
	margin-top: 1.5rem;
}

.rms-statistics .rms-panel {
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 1.35rem;
}

.rms-statistics .rms-toplist h3 {
	margin-top: 0;
	margin-bottom: 1rem;
}

.rms-statistics .rms-table {
	width: 100%;
	margin: 0;
}

.rms-statistics .rms-table th:first-child,
.rms-statistics .rms-table td:first-child {
	text-align: left;
}

.rms-statistics .rms-table th:last-child,
.rms-statistics .rms-table td:last-child {
	text-align: right;
	white-space: nowrap;
}

.rms-species-card {
	max-width: 900px;
}

.rms-species-card .rms-panel {
	overflow: hidden;
	padding: 0;
}

.rms-species-card__media {
	display: flex;
	position: relative;
	overflow: hidden;
	aspect-ratio: 900 / 506;
	background: #eee;
}

.rms-species-card__image {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rms-species-card__placeholder {
	align-items: center;
	justify-content: center;
	color: #666;
}

.rms-species-card__body {
	padding: 1.5rem;
}

.rms-species-card__body h2 {
	margin: 0;
}

.rms-species-card__scientific {
	margin: .25rem 0 1.25rem;
	color: #666;
}

.rms-species-card__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
	gap: .75rem 1.5rem;
	margin: 1.25rem 0;
}

.rms-species-card__facts div {
	display: flex;
	flex-direction: column;
}

.rms-species-card__facts dt {
	font-weight: 600;
}

.rms-species-card__facts dd {
	margin: .15rem 0 0;
	font-size: 1.15em;
}

.rms-species-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.rms-daily-birds > h2 {
	margin: 0 0 1.25rem;
}

.rms-daily-birds__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.rms-daily-birds .rms-daily-bird {
	overflow: hidden;
	padding: 0;
}

.rms-daily-bird__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 900 / 506;
	background: #e8e8e8;
}

.rms-daily-bird__image {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rms-daily-bird__body {
	padding: 1.25rem;
}

.rms-daily-bird__body h3 {
	margin: 0;
	font-size: 1.55rem;
}

.rms-daily-bird__scientific {
	margin: .2rem 0 1rem;
	color: #666;
}

.rms-daily-bird__body dl {
	margin: 1rem 0 0;
}

.rms-daily-bird__body dl div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .2rem 0;
}

.rms-daily-bird__body dt {
	font-weight: 600;
}

.rms-daily-bird__body dd {
	margin: 0;
	text-align: right;
}

.rms-species-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin: 0 0 1.5rem;
}

.rms-gallery-sort {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: 0;
}

.rms-gallery-sort label {
	font-weight: 600;
}

.rms-gallery-sort select,
.rms-gallery-sort button {
	font: inherit;
}

.rms-gallery-sort button {
	padding: .3rem .7rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.rms-species-gallery .rms-gallery-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}

.rms-gallery-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 900 / 506;
	background: #e8e8e8;
}

.rms-gallery-card__image {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rms-gallery-card__placeholder {
	object-fit: contain;
}

.rms-gallery-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.rms-gallery-card__body h2 {
	margin: 0;
	font-size: 1.75rem;
}

.rms-gallery-card__facts {
	margin: 1rem 0;
}

.rms-gallery-card__facts div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .15rem 0;
}

.rms-gallery-card__facts dt {
	font-weight: 600;
}

.rms-gallery-card__facts dd {
	margin: 0;
	text-align: right;
}

.rms-gallery-card__locations {
	list-style: none;
	margin: auto 0 0;
	padding: .75rem 0 0;
	border-top: 1px solid #e3e3e3;
}

.rms-gallery-card__locations li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .15rem 0;
}

.rms-recoveries {
	max-width: 1100px;
}

.rms-recoveries h2 {
	margin-top: 0;
}

.rms-table-scroll {
	overflow-x: auto;
}

.rms-recoveries .rms-table {
	min-width: 720px;
}

.rms-recoveries .rms-table th,
.rms-recoveries .rms-table td {
	padding: .55rem .7rem;
}

.rms-ring-search {
	max-width: 1100px;
}

.rms-latest-session {
	max-width: 900px;
}

.rms-latest-session .rms-panel {
	padding: 1.25rem;
}

.rms-latest-session h2 {
	margin: 0 0 1rem;
}

.rms-latest-session dl {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: .75rem 1.5rem;
	margin: 0;
}

.rms-latest-session dl div {
	min-width: 0;
}

.rms-latest-session__half {
	grid-column: span 3;
}

.rms-latest-session__third {
	grid-column: span 2;
}

.rms-latest-session dt,
.rms-latest-session dd {
	display: inline;
}

.rms-latest-session dt {
	font-weight: 700;
}

.rms-latest-session dt::after {
	content: ': ';
}

.rms-latest-session dd {
	margin: 0;
}

.rms-ring-search__form {
	margin-bottom: 1.5rem;
}

.rms-ring-search__form label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 700;
}

.rms-ring-search__controls {
	display: flex;
	gap: .6rem;
	max-width: 560px;
}

.rms-ring-search__controls input,
.rms-ring-search__controls button {
	box-sizing: border-box;
	font: inherit;
}

.rms-ring-search__controls input {
	min-width: 0;
	flex: 1;
	padding: .65rem .75rem;
}

.rms-ring-search__controls button {
	padding: .65rem 1rem;
	cursor: pointer;
}

.rms-ring-search .rms-panel {
	margin: 0 0 1.5rem;
}

.rms-ring-search__summary h2,
.rms-ring-search__history h2 {
	margin-top: 0;
}

.rms-ring-search__summary dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .45rem 1.5rem;
	margin: 0;
}

.rms-ring-search__summary dl div {
	display: grid;
	grid-template-columns: minmax(9rem, 1fr) 1.4fr;
	gap: .75rem;
}

.rms-ring-search__summary dt {
	font-weight: 700;
}

.rms-ring-search__summary dd {
	margin: 0;
}

.rms-ring-search__history .rms-table {
	min-width: 980px;
}

.rms-ring-search__history .rms-table th,
.rms-ring-search__history .rms-table td {
	padding: .55rem .65rem;
	white-space: nowrap;
}

.rms-ringing-days {
	max-width: 1100px;
}

.rms-ringing-days__filters {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	margin-bottom: 1.5rem;
}

.rms-ringing-days__filters label {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-weight: 700;
}

.rms-ringing-days__filters select,
.rms-ringing-days__filters button {
	box-sizing: border-box;
	min-height: 2.7rem;
	font: inherit;
}

.rms-ringing-days__filters select {
	min-width: 10rem;
	padding: .45rem .65rem;
}

.rms-ringing-days__filters button {
	padding: .45rem 1rem;
	cursor: pointer;
}

.rms-ringing-days__list h2 {
	margin-top: 0;
}

.rms-ringing-days .rms-table {
	min-width: 720px;
}

.rms-ringing-days .rms-table th,
.rms-ringing-days .rms-table td {
	padding: .55rem .7rem;
}

.rms-ringing-days .rms-table th:not(:nth-child(2)):not(:nth-child(3)),
.rms-ringing-days .rms-table td:not(:nth-child(2)):not(:nth-child(3)) {
	text-align: right;
}

.rms-ringing-days__today {
	outline: 3px solid #4b8122;
	outline-offset: -3px;
}

@media (max-width: 900px) {
	.rms-daily-birds__grid,
	.rms-species-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (max-width: 600px) {
	.rms-recoveries .rms-panel {
		padding: 1rem;
	}

	.rms-recoveries .rms-table-scroll {
		overflow: visible;
	}

	.rms-recoveries .rms-table,
	.rms-recoveries .rms-table tbody,
	.rms-recoveries .rms-table tr,
	.rms-recoveries .rms-table td {
		display: block;
		width: 100%;
	}

	.rms-recoveries .rms-table {
		min-width: 0;
	}

	.rms-recoveries .rms-table thead {
		display: none;
	}

	.rms-recoveries .rms-table tbody {
		display: grid;
		gap: 1rem;
	}

	.rms-recoveries .rms-table tr {
		box-sizing: border-box;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		padding: .65rem;
	}

	.rms-recoveries .rms-table td {
		box-sizing: border-box;
		display: grid;
		grid-template-columns: minmax(6.5rem, 38%) 1fr;
		gap: .75rem;
		border: 0;
		padding: .25rem 0;
		text-align: left !important;
		white-space: normal !important;
	}

	.rms-recoveries .rms-table td::before {
		content: attr(data-label);
		font-weight: 600;
	}

	.rms-gallery-card__body h2 {
		font-size: 1.55rem;
	}

	.rms-species-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.rms-gallery-sort {
		flex-wrap: wrap;
	}

	.rms-species-gallery {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.rms-daily-birds__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.rms-statistics .rms-toplists {
		gap: 1rem;
	}

	.rms-statistics .rms-panel {
		padding: 1rem;
	}

	.rms-species-card .rms-panel {
		padding: 0;
	}

	.rms-species-card__body {
		padding: 1rem;
	}

	.rms-species-gallery .rms-gallery-card {
		padding: 0;
	}

	.rms-ring-search__controls {
		align-items: stretch;
		flex-direction: column;
		max-width: none;
	}

	.rms-ring-search__summary dl,
	.rms-ring-search__summary dl div {
		grid-template-columns: 1fr;
	}

	.rms-ring-search__summary dl {
		gap: .75rem;
	}

	.rms-ring-search__summary dl div {
		gap: .1rem;
	}

	.rms-ring-search__history .rms-table-scroll {
		overflow: visible;
	}

	.rms-ring-search__history .rms-table,
	.rms-ring-search__history .rms-table tbody,
	.rms-ring-search__history .rms-table tr,
	.rms-ring-search__history .rms-table td {
		display: block;
		width: 100%;
	}

	.rms-ring-search__history .rms-table {
		min-width: 0;
	}

	.rms-ring-search__history .rms-table thead {
		display: none;
	}

	.rms-ring-search__history .rms-table tbody {
		display: grid;
		gap: 1rem;
	}

	.rms-ring-search__history .rms-table tr {
		box-sizing: border-box;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		padding: .65rem;
	}

	.rms-ring-search__history .rms-table td {
		box-sizing: border-box;
		display: grid;
		grid-template-columns: minmax(6.5rem, 38%) 1fr;
		gap: .75rem;
		border: 0;
		padding: .25rem 0;
		text-align: left !important;
		white-space: normal;
	}

	.rms-ring-search__history .rms-table td::before {
		content: attr(data-label);
		font-weight: 600;
	}

	.rms-ringing-days__filters {
		align-items: stretch;
		flex-direction: column;
	}

	.rms-ringing-days__filters select,
	.rms-ringing-days__filters button {
		width: 100%;
	}

	.rms-ringing-days .rms-table-scroll {
		overflow: visible;
	}

	.rms-ringing-days .rms-table,
	.rms-ringing-days .rms-table tbody,
	.rms-ringing-days .rms-table tr,
	.rms-ringing-days .rms-table td {
		display: block;
		width: 100%;
	}

	.rms-ringing-days .rms-table {
		min-width: 0;
	}

	.rms-ringing-days .rms-table thead {
		display: none;
	}

	.rms-ringing-days .rms-table tbody {
		display: grid;
		gap: 1rem;
	}

	.rms-ringing-days .rms-table tr {
		box-sizing: border-box;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		padding: .65rem;
	}

	.rms-ringing-days .rms-table td,
	.rms-ringing-days .rms-table td:not(:nth-child(2)):not(:nth-child(3)) {
		box-sizing: border-box;
		display: grid;
		grid-template-columns: minmax(6.5rem, 38%) 1fr;
		gap: .75rem;
		border: 0;
		padding: .25rem 0;
		text-align: left;
	}

	.rms-ringing-days .rms-table td::before {
		content: attr(data-label);
		font-weight: 600;
	}

	.rms-latest-session dl {
		grid-template-columns: 1fr;
		gap: .65rem;
	}

	.rms-latest-session__half,
	.rms-latest-session__third {
		grid-column: auto;
	}
}

/* Dagbladsformulär */
.rms-daybook-form {
	max-width: 760px;
	margin: 1.5rem 0;
}

.rms-daybook-form form {
	display: grid;
	gap: 1.25rem;
}

.rms-daybook-form fieldset {
	margin: 0;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1rem;
}

.rms-daybook-form legend {
	padding: 0 .4rem;
	font-size: 1.15rem;
	font-weight: 700;
}

.rms-daybook-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.rms-daybook-form p {
	margin: 0;
}

.rms-daybook-form label,
.rms-daybook-form .rms-field-help {
	display: block;
}

.rms-daybook-form input,
.rms-daybook-form select,
.rms-daybook-form textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: .35rem;
	padding: .7rem .8rem;
	border: 1px solid #bbb;
	border-radius: 6px;
	font: inherit;
}

.rms-daybook-form textarea {
	resize: vertical;
}

.rms-daybook-form .rms-field-help {
	margin-top: .35rem;
	font-size: .9em;
	opacity: .75;
}


.rms-daybook-form .rms-visitor-counter {
	display: grid;
	grid-template-columns: 48px minmax(0, 120px) 48px;
	gap: 8px;
	align-items: stretch;
	width: fit-content;
	max-width: 100%;
}

.rms-daybook-form .rms-visitor-counter input {
	width: 100%;
	min-width: 0;
	text-align: center;
}

.rms-daybook-form .rms-visitor-counter__button {
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--contrast, #555);
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.rms-daybook-form .rms-visitor-counter__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rms-daybook-form .rms-button {
	display: inline-block;
	width: auto;
	border: 0;
	border-radius: 6px;
	padding: .75rem 1.1rem;
	background: currentColor;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
}

.rms-daybook-form button.rms-button {
	background: #222;
	color: #fff;
}

.rms-daybook-form__notice {
	margin-bottom: 1rem;
	border: 1px solid #b8d7b8;
	border-radius: 6px;
	padding: .8rem 1rem;
}

@media (max-width: 640px) {
	.rms-daybook-form__grid {
		grid-template-columns: 1fr;
	}

	.rms-daybook-form input,
	.rms-daybook-form select,
	.rms-daybook-form textarea {
		font-size: 16px;
	}
}


/* Dagbladsflöde */
.rms-daybook-flow {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.rms-daybook-card {
	overflow: hidden;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
}

.rms-daybook-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.rms-daybook-card__image img,
.rms-daybook__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rms-daybook-card__body {
	padding: 1rem 1.1rem 1.15rem;
}

.rms-daybook-card__body h2 {
	margin: 0 0 .15rem;
	font-size: 1.25rem;
}

.rms-daybook-card__body h2 a {
	color: inherit;
	text-decoration: none;
}

.rms-daybook-card__date {
	margin: 0 0 .75rem;
	opacity: .72;
}

.rms-daybook-card__stats {
	margin: .5rem 0;
}

.rms-daybook__image {
	max-width: 900px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 0 0 1.25rem;
	border-radius: 10px;
}

.rms-daybook-flow__back {
	margin-bottom: 1rem;
}

@media (max-width: 700px) {
	.rms-daybook-flow {
		grid-template-columns: 1fr;
	}
}


/* Dagblad – webbvisning */
.rms-daybook--web {
	max-width: 1100px;
}

.rms-daybook__header {
	margin-bottom: 1.25rem;
}

.rms-daybook__header .rms-daybook__eyebrow {
	margin: 0 0 .2rem;
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .65;
}

.rms-daybook__header h2 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	line-height: 1.08;
}

.rms-daybook__header .rms-daybook__date {
	margin: .35rem 0 0;
	font-size: 1.08rem;
	opacity: .72;
}

.rms-daybook--web .rms-daybook__image {
	max-width: none;
	width: 100%;
	margin-bottom: 1.5rem;
	border-radius: 12px;
}

.rms-daybook__highlights {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .8rem;
	margin: 0 0 1.5rem;
}

.rms-daybook__highlight {
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 1rem;
	text-align: center;
	background: #fff;
}

.rms-daybook__highlight strong,
.rms-daybook__highlight span {
	display: block;
}

.rms-daybook__highlight strong {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	line-height: 1;
}

.rms-daybook__highlight span {
	margin-top: .35rem;
	font-size: .92rem;
	opacity: .72;
}

.rms-daybook__info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.rms-daybook__panel {
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 1.1rem 1.2rem;
	background: #fff;
}

.rms-daybook__panel h3,
.rms-daybook__people h3,
.rms-daybook__notes h3,
.rms-daybook__species h3 {
	margin: 0 0 .75rem;
	font-size: 1.15rem;
}

.rms-daybook__panel dl {
	margin: 0;
}

.rms-daybook__panel dl div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .28rem 0;
}

.rms-daybook__panel dt {
	opacity: .72;
}

.rms-daybook__panel dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.rms-daybook__people {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.rms-daybook__people section,
.rms-daybook__notes {
	border-top: 1px solid #ddd;
	padding-top: 1rem;
}

.rms-daybook__people p,
.rms-daybook__notes p {
	margin: 0;
}

.rms-daybook__notes {
	margin-bottom: 2rem;
}

.rms-daybook__species {
	margin-top: 1.5rem;
}

.rms-daybook-table {
	width: 100%;
	min-width: 760px;
}

.rms-daybook--web .rms-daybook-table th,
.rms-daybook--web .rms-daybook-table td {
	padding-left: .75rem;
	padding-right: .75rem;
}

.rms-daybook--web .rms-daybook-table th:first-child,
.rms-daybook--web .rms-daybook-table td:first-child {
	width: 28%;
}

.rms-daybook-table thead tr:first-child th {
	text-align: center;
}

.rms-daybook-table thead tr:first-child th:first-child {
	text-align: left;
}

.rms-daybook-table th:not(:first-child),
.rms-daybook-table td:not(:first-child) {
	text-align: center;
}

.rms-daybook-table tfoot th {
	font-weight: 700;
	border-top: 2px solid currentColor;
}

.rms-daybook__age-note {
	margin: .6rem 0 0;
	font-size: .85rem;
	opacity: .65;
}

@media (max-width: 760px) {
	.rms-daybook__highlights {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rms-daybook__info-grid,
	.rms-daybook__people {
		grid-template-columns: 1fr;
	}

	.rms-daybook__panel {
		padding: 1rem;
	}
}


/* Dagbladsflöde – valbart antal kolumner */
.rms-daybook-flow.rms-daybook-flow--cols-1 {
	grid-template-columns: minmax(0, 1fr);
}

.rms-daybook-flow.rms-daybook-flow--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rms-daybook-flow.rms-daybook-flow--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rms-daybook-flow.rms-daybook-flow--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Gutenberg lägger blockförhandsvisningen i egna wrappers. Behåll samma grid där. */
.editor-styles-wrapper .rms-daybook-flow {
	display: grid;
	gap: 1.5rem;
}

@media (max-width: 900px) {
	.rms-daybook-flow.rms-daybook-flow--cols-3,
	.rms-daybook-flow.rms-daybook-flow--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.rms-daybook-flow.rms-daybook-flow--cols-1,
	.rms-daybook-flow.rms-daybook-flow--cols-2,
	.rms-daybook-flow.rms-daybook-flow--cols-3,
	.rms-daybook-flow.rms-daybook-flow--cols-4 {
		grid-template-columns: 1fr;
	}
}


/* Gutenberg-blocket ska följa blocktemats tilldelade innehållsbredd på frontend. */
.wp-block-wp-ringmarkning-dagbladsflode.rms-daybook-flow-block {
	width: 100%;
	max-width: none;
}

.wp-block-wp-ringmarkning-dagbladsflode.rms-daybook-flow-block > .rms-daybook-flow {
	width: 100%;
}

/* Dagbladsarkiv – sidbläddring */
.rms-daybook-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #ddd;
}

.rms-daybook-pagination__status {
	font-size: .95rem;
	opacity: .72;
}

@media (max-width: 600px) {
	.rms-daybook-pagination {
		flex-wrap: wrap;
	}
	.rms-daybook-pagination__status {
		order: 3;
		width: 100%;
		text-align: center;
	}
}

/* Dagblad – utskriftsvy / PDF */
.rms-daybook__print-button {
	margin: 0 0 1.25rem;
}
.rms-daybook__print-button .rms-button,
.rms-daybook-print-toolbar button {
	display: inline-block;
	border: 1px solid #777;
	border-radius: 6px;
	padding: .55rem .9rem;
	background: #fff;
	color: #222;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.rms-daybook-print-page {
	margin: 0;
	background: #eee;
	color: #111;
	font-family: Arial, Helvetica, sans-serif;
}
.rms-daybook-print-sheet {
	box-sizing: border-box;
	width: 210mm;
	min-height: 297mm;
	margin: 16px auto;
	padding: 14mm 16mm 16mm;
	background: #fff;
}
.rms-daybook-print-toolbar {
	display: flex;
	gap: .6rem;
	margin: 0 0 1rem;
}
.rms-daybook-print-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12mm;
	min-height: 12mm;
	margin-bottom: 4mm;
	padding-bottom: 2mm;
	border-bottom: 1px solid #777;
}
.rms-daybook-print-brand img {
	display: block;
	max-width: 36mm;
	max-height: 11mm;
	width: auto;
	height: auto;
}
.rms-daybook-print-brand div {
	font-size: 11pt;
	font-weight: 700;
	text-align: right;
}
.rms-daybook--print {
	max-width: none;
	font-size: 9pt;
	line-height: 1.2;
}
.rms-daybook--print .rms-daybook__header {
	margin-bottom: 3mm;
}
.rms-daybook--print .rms-daybook__header .rms-daybook__eyebrow {
	margin-bottom: .5mm;
	font-size: 7.5pt;
}
.rms-daybook--print .rms-daybook__header h2 {
	font-size: 16pt;
	line-height: 1.05;
}
.rms-daybook--print .rms-daybook__header .rms-daybook__date {
	margin-top: 1mm;
	font-size: 9.5pt;
}
.rms-daybook--print .rms-daybook__info-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3mm;
	margin-bottom: 3mm;
}
.rms-daybook--print .rms-daybook__panel {
	border-radius: 0;
	padding: 2.2mm 2.5mm;
}
.rms-daybook--print .rms-daybook__panel h3,
.rms-daybook--print .rms-daybook__people h3,
.rms-daybook--print .rms-daybook__notes h3,
.rms-daybook--print .rms-daybook__species h3 {
	margin: 0 0 1.5mm;
	font-size: 9.5pt;
}
.rms-daybook--print .rms-daybook__panel dl div {
	gap: 2mm;
	padding: .6mm 0;
}
.rms-daybook--print .rms-daybook__people {
	gap: 3mm;
	margin-bottom: 3mm;
}
.rms-daybook--print .rms-daybook__people section,
.rms-daybook--print .rms-daybook__notes {
	padding-top: 2mm;
}
.rms-daybook--print .rms-daybook__notes {
	margin-bottom: 3mm;
}
.rms-daybook--print .rms-daybook__people p,
.rms-daybook--print .rms-daybook__notes p {
	line-height: 1.2;
}
.rms-daybook__print-summary {
	margin-top: 3mm;
	padding-top: 2mm;
	border-top: 1px solid #999;
	break-inside: avoid;
}
.rms-daybook__print-summary h3 {
	margin: 0 0 1.5mm;
	font-size: 9.5pt;
}
.rms-daybook__print-summary dl {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .5mm 3mm;
	margin: 0;
}
.rms-daybook__print-summary dl div {
	display: flex;
	justify-content: space-between;
	gap: 2mm;
	border-bottom: 1px solid #ddd;
	padding: .6mm 0;
}
.rms-daybook__print-summary dt {
	font-size: 8pt;
}
.rms-daybook__print-summary dd {
	margin: 0;
	font-weight: 700;
	font-size: 8.5pt;
}
.rms-daybook--print .rms-daybook__species {
	margin-top: 3mm;
}
.rms-daybook--print .rms-table-scroll {
	overflow: visible;
}
.rms-daybook--print .rms-daybook-table {
	min-width: 0;
	width: 100%;
	font-size: 7.5pt;
	line-height: 1.05;
	border-collapse: collapse;
}
.rms-daybook--print .rms-daybook-table th,
.rms-daybook--print .rms-daybook-table td {
	padding: .7mm .6mm;
}
.rms-daybook--print .rms-daybook-table thead {
	display: table-header-group;
}
.rms-daybook--print .rms-daybook-table tr {
	break-inside: avoid;
}

@page {
	size: A4 portrait;
	margin: 8mm 10mm;
}
@media print {
	.rms-daybook-print-page {
		background: #fff;
	}
	.rms-daybook-print-sheet {
		width: auto;
		min-height: 0;
		margin: 0;
		padding: 0;
	}
	.rms-daybook-print-toolbar {
		display: none !important;
	}
	.rms-daybook-print-brand {
		margin-top: 0;
	}
}

/* Artkort och dynamiska artsidor */
.rms-card-link {
	color: inherit;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.rms-card-link:hover,
.rms-card-link:focus-visible {
	color: inherit;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}

.rms-card-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.rms-species-page-wrap {
	width: min(1180px, calc(100% - 2rem));
	margin: 2rem auto 4rem;
}

.rms-species-detail {
	display: grid;
	gap: 2rem;
}

.rms-species-detail .rms-panel {
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rms-species-detail__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	overflow: hidden;
	padding: 0 !important;
}

.rms-species-detail__media {
	position: relative;
	min-height: 360px;
	background: #e8e8e8;
}

.rms-species-detail__image {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rms-species-detail__intro {
	padding: 2rem;
}

.rms-species-detail__intro h1 {
	margin: 0;
}

.rms-species-detail__scientific {
	margin: .3rem 0 1.5rem;
	color: #666;
	font-size: 1.1em;
}

.rms-species-detail__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .85rem 1.5rem;
	margin: 0;
}

.rms-species-detail__facts div {
	padding-bottom: .65rem;
	border-bottom: 1px solid #e6e6e6;
}

.rms-species-detail__facts dt {
	font-weight: 600;
}

.rms-species-detail__facts dd {
	margin: .15rem 0 0;
	font-size: 1.15em;
}

.rms-species-detail__record {
	margin: 1.5rem 0 0;
}

.rms-species-detail__subfact {
	margin: .5rem 0 0;
	color: #666;
}

.rms-species-detail__section {
	padding: 1.5rem;
}

.rms-species-detail__section h2 {
	margin-top: 0;
}

.rms-year-chart {
	display: grid;
	gap: .65rem;
}

.rms-year-chart__row {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) 4rem;
	align-items: center;
	gap: .75rem;
}

.rms-year-chart__track {
	display: block;
	height: 1.15rem;
	overflow: hidden;
	border-radius: 999px;
	background: #ececec;
}

.rms-year-chart__bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: currentColor;
	opacity: .72;
}

.rms-year-chart__row strong {
	text-align: right;
}

.rms-month-chart {
	display: grid;
	grid-template-columns: repeat(12, minmax(38px, 1fr));
	gap: .5rem;
	align-items: end;
	min-height: 245px;
	padding-top: 1rem;
	overflow-x: auto;
}

.rms-month-chart__item {
	display: grid;
	grid-template-rows: 1.6rem 180px 1.5rem;
	align-items: end;
	min-width: 38px;
	text-align: center;
}

.rms-month-chart__value {
	align-self: center;
	font-size: .85em;
}

.rms-month-chart__track {
	display: flex;
	align-items: flex-end;
	height: 180px;
	border-bottom: 1px solid #bbb;
}

.rms-month-chart__bar {
	display: block;
	width: 72%;
	min-height: 0;
	margin: 0 auto;
	border-radius: 6px 6px 0 0;
	background: currentColor;
	opacity: .72;
}

.rms-month-chart__label {
	padding-top: .35rem;
	font-size: .85em;
}

@media (max-width: 760px) {
	.rms-species-detail__hero {
		grid-template-columns: 1fr;
	}

	.rms-species-detail__media {
		min-height: 0;
		aspect-ratio: 900 / 506;
	}

	.rms-species-detail__facts {
		grid-template-columns: 1fr 1fr;
	}

	.rms-month-chart {
		grid-template-columns: repeat(12, 44px);
	}
}


/* 0.18.3 – robust mobilanpassning för dynamiska sidvisningar */
.rms-species-page-wrap,
.rms-species-detail,
.rms-species-detail > *,
.rms-daybook--web,
.rms-daybook--web > * {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.rms-species-page-wrap {
	width: 100%;
	max-width: 1180px;
	padding-inline: 0;
}

.rms-daybook--web {
	width: 100%;
}

@media (max-width: 782px) {
	.rms-species-page-wrap {
		margin: 1.25rem auto 3rem;
	}

	.rms-species-detail {
		gap: 1rem;
	}

	.rms-species-detail__hero {
		display: block;
		width: 100%;
	}

	.rms-species-detail__media {
		position: relative;
		width: 100%;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.rms-species-detail__image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.rms-species-detail__intro,
	.rms-species-detail__section {
		padding: 1rem;
	}

	.rms-species-detail__scientific {
		margin-bottom: 1rem;
	}

	.rms-species-detail__facts {
		gap: .65rem 1rem;
	}

	.rms-year-chart__row {
		grid-template-columns: 3.5rem minmax(0, 1fr) 3rem;
		gap: .5rem;
	}

	.rms-month-chart {
		width: 100%;
		max-width: 100%;
		grid-template-columns: repeat(12, 42px);
		gap: .4rem;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		padding-bottom: .35rem;
	}

	.rms-daybook--web .rms-table-scroll {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 480px) {
	.rms-species-detail__facts {
		grid-template-columns: 1fr;
	}

	.rms-species-detail__section h2 {
		font-size: clamp(1.5rem, 8vw, 2rem);
	}

	.rms-year-chart__row {
		grid-template-columns: 3rem minmax(0, 1fr) 2.75rem;
		font-size: .92rem;
	}

	.rms-daybook__highlights {
		grid-template-columns: 1fr 1fr;
		gap: .6rem;
	}

	.rms-daybook__highlight {
		padding: .8rem .5rem;
	}
}

.rms-gallery-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
}

.rms-gallery-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 2.75rem;
	padding: .55rem .9rem;
	border: 1px solid #d7d7d7;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
}

.rms-gallery-pagination__link:last-child {
	justify-self: end;
}

.rms-gallery-pagination__link.is-disabled {
	opacity: .4;
}

.rms-gallery-pagination__status {
	font-weight: 600;
	text-align: center;
}

@media (max-width: 600px) {
	.rms-gallery-pagination {
		grid-template-columns: 1fr 1fr;
	}

	.rms-gallery-pagination__status {
		grid-column: 1 / -1;
		grid-row: 1;
	}
}

/* Publikt språkval för artnamn */
.rms-species-language {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .35rem;
	margin: 0;
	font-size: .92rem;
}
.rms-species-language__label {
	margin-right: .15rem;
	font-weight: 600;
}
.rms-species-language a {
	display: inline-block;
	padding: .3rem .6rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	line-height: 1.2;
}
.rms-species-language a.is-active {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
@media (max-width: 600px) {
	.rms-species-language {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}

/* Gemensam knappstil för publika delar */
.rms-button,
.rms-species-language a,
.rms-gallery-sort button,
.rms-ringing-days__filters button,
.rms-ring-search__controls button,
.rms-daybook-pagination a,
.rms-daybook__print-button .rms-button,
.rms-daybook-form button.rms-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: auto;
	min-height: 2.75rem;
	padding: .5rem .9rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.rms-button:hover,
.rms-species-language a:hover,
.rms-gallery-sort button:hover,
.rms-ringing-days__filters button:hover,
.rms-ring-search__controls button:hover,
.rms-daybook-pagination a:hover,
.rms-daybook__print-button .rms-button:hover,
.rms-daybook-form button.rms-button:hover {
	box-shadow: inset 0 0 0 9999px rgba(127, 127, 127, .10);
	text-decoration: none;
}

.rms-button:focus-visible,
.rms-species-language a:focus-visible,
.rms-gallery-sort button:focus-visible,
.rms-ringing-days__filters button:focus-visible,
.rms-ring-search__controls button:focus-visible,
.rms-daybook-pagination a:focus-visible,
.rms-daybook__print-button .rms-button:focus-visible,
.rms-daybook-form button.rms-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rms-button.is-disabled {
	opacity: .4;
	cursor: default;
	pointer-events: none;
}

/* Märkdagar – sidbläddring */
.rms-ringing-days-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #ddd;
}

.rms-ringing-days-pagination__link {
	width: fit-content;
}

.rms-ringing-days-pagination__link:last-child {
	justify-self: end;
}

.rms-ringing-days-pagination__status {
	font-weight: 600;
	text-align: center;
}

@media (max-width: 600px) {
	.rms-ringing-days-pagination {
		grid-template-columns: 1fr 1fr;
	}

	.rms-ringing-days-pagination__status {
		grid-column: 1 / -1;
		grid-row: 1;
	}
}

/* Dagblad – filter för år och lokal */
.rms-daybook-filters {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	margin-bottom: 1.5rem;
}

.rms-daybook-filters label {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-weight: 700;
}

.rms-daybook-filters select,
.rms-daybook-filters button {
	box-sizing: border-box;
	min-height: 2.75rem;
	font: inherit;
}

.rms-daybook-filters select {
	min-width: 10rem;
	padding: .45rem .65rem;
}

@media (max-width: 600px) {
	.rms-daybook-filters {
		align-items: stretch;
	}

	.rms-daybook-filters label,
	.rms-daybook-filters select {
		width: 100%;
	}
}


/* Återfynd – sidbläddring */
.rms-recoveries-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #ddd;
}
.rms-recoveries-pagination__link { width: fit-content; }
.rms-recoveries-pagination__link:last-child { justify-self: end; }
.rms-recoveries-pagination__status { font-weight: 600; text-align: center; }
@media (max-width: 600px) {
	.rms-recoveries-pagination { grid-template-columns: 1fr 1fr; }
	.rms-recoveries-pagination__status { grid-column: 1 / -1; grid-row: 1; }
}

/* Märkplats: fördjupad statistik på separat vy */
.rms-location-statistics__more { margin: 1rem 0 0; }
.rms-location-statistics-page__image { margin: 0 0 1.5rem; overflow: hidden; border-radius: 8px; }
.rms-location-statistics-page__image img { display: block; width: 100%; max-height: 440px; object-fit: cover; }
.rms-location-detail__back-link { margin: 1.25rem 0 0; }

/* Märkplatsstatistik – årsfilter och två topplistor */
.rms-location-year-filter {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: .65rem;
	margin: 0 0 1.25rem;
}
.rms-location-year-filter label { align-self: center; }
.rms-location-year-filter select {
	box-sizing: border-box;
	min-height: 2.75rem;
	min-width: 9rem;
	padding: .45rem .65rem;
	font: inherit;
}
.rms-location-species-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
}
.rms-location-species-grid > .rms-panel {
	min-width: 0;
	width: auto !important;
	max-width: none !important;
	margin: 0;
}
.rms-location-species-grid .rms-table { width: 100%; }
@media (max-width: 760px) {
	.rms-location-species-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* 0.20.6 – konsekventa publika filter och mobil sidstorlek */
.rms-statistics-filters {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	margin: 0 0 1.5rem;
}
.rms-statistics-filters label {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-weight: 700;
}
.rms-statistics-filters select,
.rms-gallery-sort select,
.rms-location-year-filter select {
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: .45rem .65rem;
	border: 1px solid #777;
	border-radius: 4px;
	background-color: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.2;
}
.rms-statistics-filters select { min-width: 10rem; }
.rms-gallery-sort select { min-width: 12rem; }
.rms-location-year-filter select { min-width: 9rem; }

@media (max-width: 600px) {
	.rms-statistics-filters {
		align-items: stretch;
	}
	.rms-statistics-filters label,
	.rms-statistics-filters select {
		width: 100%;
	}
}

/* Gutenbergblocket Dagens 3 fåglar följer blockytans bredd i stället för
   att ärva den smalare yta som ett kortkodsblock kan få av temat. */
.rms-daily-birds-block,
.rms-daily-birds-block > .rms-daily-birds {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
}

.rms-daily-birds-block .rms-daily-birds__grid {
	width: 100%;
}
