/*
Theme Name: Foten
Description: Brand layer of foten.it: colors, fonts and logo on top of Norsan Base.
Template: norsan-base
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: foten
*/

/*
 * Header: the logo is a flag hanging from the top edge of the page and
 * reaching below the header bar. The header reserves the room the flag
 * takes below the bar, so no template has to. The room is a margin: when the
 * header is stuck, the page scrolls behind the flag and not behind a blank band.
 */
header.wp-block-template-part {
	--header-overhang: 3rem;
	margin-bottom: var(--header-overhang);
}

/* A page opening with banners: the photo starts at the header and the flag hangs over it. */
body:has(.wp-block-post-content > .wp-block-foten-banner:first-child) header.wp-block-template-part {
	margin-bottom: 0;
}

main:has(> .wp-block-post-content > .wp-block-foten-banner:first-child) {
	margin-top: 0;
}

/* The product sections menu scrolls sideways: its bar stays visible where the browser allows it. */
.wp-block-foten-product-sections-nav ul {
	scrollbar-color: color-mix(in srgb, var(--wp--preset--color--primary-dark) 40%, transparent) transparent;
}

/* Stuck below the header, the product sections menu starts after the flag. */
html:not(.header-is-hidden) .wp-block-foten-product-sections-nav.is-stuck ul {
	padding-inline-start: calc(80px + 1.5rem);
}

.foten-header .foten-header__row {
	min-height: 4.5rem;
}

.foten-header .foten-logo {
	flex-shrink: 0;
	align-self: flex-start;
	margin-bottom: calc(-1 * var(--header-overhang));
	position: relative;
	z-index: 2;
}

.foten-header .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* Current page and its section: bold and underlined; hover is only underlined. */
.foten-header .current-menu-item > .wp-block-navigation-item__content,
.foten-header .current-menu-ancestor > .wp-block-navigation-item__content {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

/* FiboSearch: only its own classes, so nothing is left behind if the plugin goes. */

/* The icon in the header: same size and color as account and cart. */
.foten-header .dgwt-wcas-search-wrapp .dgwt-wcas-search-icon {
	display: flex;
	width: auto;
	height: auto;
	padding: 9px;
	color: var(--wp--preset--color--primary-dark);
}

/* On phones the plugin narrows the icon to 20px: same tap area as the icons next to it. */
.foten-header .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon.js-dgwt-wcas-layout-icon {
	max-width: none;
}

.foten-header .dgwt-wcas-ico-magnifier-handler {
	flex-shrink: 0;
	width: 24px;
	max-width: none;
	height: 24px;
	fill: currentcolor;
}

.dgwt-wcas-search-wrapp,
.dgwt-wcas-suggestions-wrapp {
	font-family: var(--wp--preset--font-family--body);
}

/* As specific as the plugin's rule for the open list, which would round the field again. */
.dgwt-wcas-search-wrapp.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	border: 1px solid var(--wp--preset--color--primary-dark);
	border-radius: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
}

.dgwt-wcas-suggestions-wrapp {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
}

.dgwt-wcas-suggestions-wrapp a.dgwt-wcas-suggestion {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion strong {
	color: var(--wp--preset--color--primary-dark);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected {
	background: var(--wp--preset--color--base-alt);
}

/* Section titles in the look of the overline. */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	border-bottom-color: color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--primary-dark);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	white-space: nowrap;
	color: var(--wp--preset--color--primary-dark);
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp > span:not(.screen-reader-text) {
	display: inline;
}

/* The plugin sets the list as wide as on a computer: on a phone it stays inside the screen. */
@media (max-width: 599px) {
	.dgwt-wcas-suggestions-wrapp {
		box-sizing: border-box;
		max-width: 100vw;
	}
}

.foten-header .foten-logo img {
	display: block;
}

/* Phones: the header row has to fit down to 320px. */
@media (max-width: 599px) {
	.foten-header .foten-header__row,
	.foten-header .foten-header__row > .wp-block-group {
		gap: 0.5rem;
	}

	.foten-header .foten-logo img {
		max-width: 64px;
	}

	.foten-header .wc-block-mini-cart__amount {
		display: none;
	}
}

/*
 * Fluent Forms in "inherit theme" mode leaves the browser's bare fields: they
 * take the look of WooCommerce's fields (account, checkout), with its own
 * variables and padding. Only the plugin's classes, as for FiboSearch.
 */
.fluentform .ff-el-form-control {
	padding: 0.9rem 1.1rem;
	border: var(--wc-form-border-width, 1px) solid var(--wc-form-border-color, currentColor);
	border-radius: var(--wc-form-border-radius, 4px);
	background-color: var(--wp--preset--color--base);
	color: inherit;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: normal;
}

.fluentform .ff-el-form-control:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Error texts: the plugin's red has a 2.9 contrast on white; the default palette's red reaches 5.1. */
.fluentform {
	--fluentform-danger: var(--wp--preset--color--vivid-red, #cf2e2e);
}

/* Gap between box and text: the plugin's own 5px on consent boxes loses to its margin reset. */
.fluentform .ff-el-form-check-label .ff-el-form-check-input {
	margin-inline-end: 0.5rem;
}

/* Radio and checkbox options: a long label wraps under its text, not under the box, like the consent boxes. */
.fluentform .ff-el-form-check:not(.ff-el-tc) > .ff-el-form-check-label {
	display: flex;
	align-items: flex-start;
}

.fluentform .ff-el-form-check:not(.ff-el-tc) > .ff-el-form-check-label > .ff-el-form-check-input {
	flex-shrink: 0;
	font: inherit;
	margin-block: calc((1lh - 1.25rem) / 2) 0;
}

/* Name and surname start level: aligned to the bottom, an error under one pushed the other down. */
.fluentform .ff-name-field-wrapper .ff-t-cell {
	justify-content: flex-start;
}

/* Footer: the logo hangs from the top edge of the dark band, as in the header. */
.foten-footer__main {
	margin-block-start: 0;
}

.foten-footer__main > .wp-block-columns {
	margin-block-end: var(--wp--preset--spacing--50);
}

/* Main columns only: the two columns inside "Contatti" start level. */
.foten-footer__main > .wp-block-columns > .wp-block-column:not(:first-child) {
	padding-top: var(--wp--preset--spacing--50);
}

.foten-footer__main .foten-logo {
	margin-top: 0;
}

.foten-footer__main .foten-logo img {
	display: block;
}

/* A little more room to tap the small legal links. */
.foten-footer__legal a {
	display: inline-block;
	padding-block: 0.25rem;
}

footer.wp-block-template-part a:not(.wp-element-button) {
	text-decoration: none;
}

footer.wp-block-template-part a:not(.wp-element-button):hover,
footer.wp-block-template-part a:not(.wp-element-button):focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* Checkout: step titles and the summary title read as the site's headings, not as body text. */
.wc-block-checkout .wc-block-components-title.wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

/* Checkout footer: links inside a sentence, so they stay underlined to stand out from the text. */
footer.wp-block-template-part .foten-checkout-help a {
	text-decoration: underline;
	text-underline-offset: 0.3em;
	white-space: nowrap;
}

.wc-block-mini-cart__drawer h2.wc-block-mini-cart__title {
	font-size: var(--wp--preset--font-size--large);
}

/* Products page: cards on white, family titles on beige. */
.foten-product-family__header {
	background: var(--wp--preset--color--base-alt);
}

.foten-format-card {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
	background: var(--wp--preset--color--base);
}

.foten-format-card__name {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
}

.foten-format-card__format {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--primary-dark);
}

.foten-format-card__price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-format-card__price del {
	margin-inline-end: 0.5rem;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
}

.foten-format-card__price ins {
	text-decoration: none;
}

/* Red only for discounts (and, later, errors). */
.foten-format-card__badge {
	background: var(--wp--custom--red);
	color: var(--wp--preset--color--base);
	font-weight: 700;
}

.foten-format-card__actions .wp-element-button,
.foten-product-families-nav .wp-element-button {
	border: 2px solid var(--wp--preset--color--primary-dark);
}

.foten-format-card__actions .wp-element-button {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
}

.foten-format-card__actions button.wp-element-button:hover {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
}

/* Gallery thumbnails: WooCommerce crops them to a square, which cuts the dosage tables (landscape). */
.wc-block-product-gallery-thumbnails__thumbnail__image {
	object-fit: contain;
}

/* Quantity discount notice under the price and free shipping notice in the cart summary
   (Norsan Woo Tools): dark green on beige, contrast 6.2. */
.nwt-wholesale-notice,
.nwt-free-shipping-notice {
	padding: 0.5em 0.9em;
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 600;
}

.nwt-wholesale-notice {
	width: fit-content;
}

/* Mini cart: free shipping threshold as a slogan above the subtotal. */
.foten-free-shipping-slogan {
	margin: 0 0 1rem;
	padding: 0.6em 1em;
	background: var(--wp--preset--color--base-alt);
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	text-align: center;
	text-wrap: balance;
}

/* Product page, no format chosen yet: WooCommerce halves the opacity (contrast 2.35); a lighter green keeps the text readable. */
.single_add_to_cart_button.disabled {
	background: var(--wp--preset--color--primary);
	opacity: 1;
	cursor: not-allowed;
}

.foten-format-card__actions .foten-format-card__more,
.foten-product-families-nav .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--primary-dark);
}

.foten-format-card__actions .foten-format-card__more:hover,
.foten-product-families-nav .wp-element-button:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
}

/* Phones: smaller family links, so more fit on a line; they still wrap when families grow. */
@media (max-width: 599px) {
	.foten-product-families-nav .wp-element-button {
		padding: 0.5em 0.9em;
		font-size: var(--wp--preset--font-size--small);
	}
}

/* Styleguide titles: mixed weights in one line, and the small uppercase line above a title. */
.is-style-mixed {
	font-weight: 400;
}

.is-style-mixed strong {
	font-weight: 700;
}

.is-style-overline {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-dark);
}

.is-style-overline a {
	color: inherit;
	text-decoration: none;
}

/* Month names are lowercase in Italian; the translation capitalizes them. */
.wp-block-post-date {
	text-transform: lowercase;
}

/* Blog: article cards in the look of the product cards. */
.foten-post-card {
	height: 100%;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
	background: var(--wp--preset--color--base);
}

.foten-post-card > * {
	margin-block: 0;
}

.foten-post-card__body {
	padding: 1rem;
}

.foten-post-card__body > * + * {
	margin-top: 0.5rem;
}

.foten-post-card :is(.wp-block-post-title, .wp-block-heading) a {
	text-decoration: none;
}

.foten-post-card :is(.wp-block-post-title, .wp-block-heading) a:hover,
.foten-post-card :is(.wp-block-post-title, .wp-block-heading) a:focus-visible {
	text-decoration: underline;
}

/* Long reading text: the condensed typeface needs a larger size to read comfortably. */
:is(.single-post, .page:not(.woocommerce-page), .single-evento) .wp-block-post-content,
.single-evento .foten-event-speaker {
	font-size: 1.25rem;
}

/* Page sections: comparison cards, numbered steps on beige, points on dark green. */
.section-compare__item {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
	background: var(--wp--preset--color--base);
}

.section-steps__list li::before {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--primary-dark);
}

.section-points :is(h2, h3),
.section-points a:not(.wp-element-button) {
	color: inherit;
}

.section-points__grid h3 {
	font-size: var(--wp--preset--font-size--medium);
}

/* Consecutive bands touch: no white strip between them. */
:is(.section-steps, .section-points) + :is(.section-steps, .section-points) {
	margin-block-start: 0;
}

/* Dosage tables: rule box on dark green, table with beige head and grouped animal rows. */
.foten-dosage {
	margin-block: 1.5rem;
}

.foten-dosage__rules {
	padding: 1.25rem 1.5rem;
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base-alt);
}

.foten-dosage__rules > * {
	margin: 0;
}

.foten-dosage__title {
	margin-bottom: 0.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}

.foten-dosage__table {
	margin: 0;
}

/* Any table in the "Dosaggio e uso" section or in a data table group, styled by its place, not by classes. */
:is(#dosaggio, .foten-data-table) table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

:is(#dosaggio, .foten-data-table) :is(th, td) {
	padding: 0.6rem 0.9rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-dark) 15%, transparent);
	text-align: left;
	vertical-align: top;
}

:is(#dosaggio, .foten-data-table) thead :is(th, td) {
	background: var(--wp--preset--color--base-alt);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

:is(#dosaggio, .foten-data-table) tbody th {
	background: color-mix(in srgb, var(--wp--preset--color--base-alt) 50%, var(--wp--preset--color--base));
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

:is(#dosaggio, .foten-data-table) tbody + tbody {
	border-top: 2px solid var(--wp--preset--color--primary-dark);
}

/* A Table block in a page's dosage section looks the same: no side, outer or head borders. */
:is(#dosaggio, .foten-data-table) .wp-block-table table {
	border: 0;
}

:is(#dosaggio, .foten-data-table) .wp-block-table thead {
	border-bottom: 0;
}

:is(#dosaggio, .foten-data-table) .wp-block-table :is(th, td) {
	border-width: 0 0 1px;
}

.foten-dosage__dose {
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-dosage__note {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	font-style: italic;
}

/* Phones: the table keeps its columns and scrolls sideways (site plugin); words never break. */
@media (max-width: 599px) {
	#dosaggio table {
		font-size: 0.875rem;
	}

	#dosaggio :is(th, td) {
		padding: 0.5rem 0.6rem;
		white-space: nowrap;
	}

	.foten-dosage__rules {
		padding: 1rem;
	}
}

.foten-dosage__note {
	max-width: var(--reading-size, 720px);
}

/* Featured products: product cards in the look of the format cards. */
.foten-product-cards .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
	background: var(--wp--preset--color--base);
}

.foten-product-cards .wc-block-product > * {
	margin: 0;
}

.foten-product-cards .wp-block-post-title {
	font-size: var(--wp--preset--font-size--medium);
}

.foten-product-cards .wp-block-post-title a {
	text-decoration: none;
}

.foten-product-cards .wc-block-components-product-price {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-product-cards .wp-block-read-more {
	width: auto;
	margin-top: auto;
	text-align: center;
}

/* Phones: one card per row, photo beside the text, as on the products page. */
@media (max-width: 599px) {
	.foten-product-cards .wc-block-product-template.wc-block-product-template__responsive {
		grid-template-columns: 1fr;
	}

	.foten-product-cards .wc-block-product {
		display: grid;
		grid-template-columns: 7.5rem 1fr;
		grid-template-rows: auto auto 1fr;
		gap: 0.5rem 1rem;
		padding: 0.75rem;
	}

	.foten-product-cards .wc-block-components-product-image {
		grid-row: 1 / -1;
		align-self: center;
	}

	.foten-product-cards .wp-block-read-more {
		padding-inline: 0.75rem;
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* Events: cards like the blog cards, rows and details box on beige. */
:is(.foten-event-card, .foten-event-row, .foten-event-mini) :is(h2, h3) {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

:is(.foten-event-card, .foten-event-row, .foten-event-mini) :is(h2, h3) a {
	text-decoration: none;
}

:is(.foten-event-card, .foten-event-row, .foten-event-mini) :is(h2, h3) a:hover,
:is(.foten-event-card, .foten-event-row, .foten-event-mini) :is(h2, h3) a:focus-visible {
	text-decoration: underline;
}

/* The home page text is larger: cards keep the size of the blog cards. */
.foten-event-card__excerpt,
.foten-event-row__excerpt {
	font-size: var(--wp--preset--font-size--small);
}

:is(.foten-event-card__subtitle, .foten-event-row__subtitle, .foten-event-header__subtitle) {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary-dark);
}

.foten-event-header__subtitle {
	font-size: var(--wp--preset--font-size--large);
}

:is(.foten-event-card__when, .foten-event-row__when, .foten-event-mini__when, .foten-event-header__when, .foten-event-card__price, .foten-event-row__price) {
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-event-row {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
	background: var(--wp--preset--color--base);
}

.foten-event-row__body {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
}

.foten-event-date {
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.foten-event-actions__over,
.foten-event-mini__over {
	font-weight: 600;
}

/* Event page: details box on beige. */
.foten-event-details {
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base-alt);
}

.foten-event-details dt,
.foten-event-details__heading {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-event-details__heading {
	font-size: var(--wp--preset--font-size--large);
}

.foten-event-details h3 {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--primary-dark);
}

.foten-event-details ul {
	padding-left: 1.25rem;
}

.foten-event-details__audience {
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--base);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

/* Related events: dark green band, white cards, touching the newsletter band below. */
.foten-events-related {
	background: var(--wp--preset--color--primary-dark);
}

.foten-events-related :is(h2, .foten-events-related__all a) {
	color: var(--wp--preset--color--base-alt);
}

.foten-events-related__all a:focus-visible {
	outline: 2px solid var(--wp--preset--color--base-alt);
	outline-offset: 2px;
}

main:has(> .foten-events-related:last-child) + .wp-block-template-part {
	margin-block-start: 0;
}

.foten-event-mini {
	padding: 1rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary-dark) 25%, transparent);
	background: var(--wp--preset--color--base);
}

.foten-event-filter button {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-event-filter button[aria-pressed="true"] {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
}

.wp-block-categories.is-style-filter .current-cat > a {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
}

.wp-block-query-pagination a {
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-query-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
}

.wp-block-query-pagination a.page-numbers:hover {
	background: color-mix(in srgb, var(--wp--preset--color--primary-dark) 10%, transparent);
}

/* The current item's text is light: the outline keeps the dark colour to stay visible. */
.wp-block-categories.is-style-filter a:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: 2px;
}

.foten-event-filter button:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: 2px;
}

.foten-event-bar {
	background: var(--wp--preset--color--primary-dark);
}

/* The bar button touches the screen edges: its focus ring goes inside, light on green. */
.foten-event-bar .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: -6px;
}

/* Article index: beige box above the text, a plain column beside it on wide screens. */
.foten-article-index {
	padding: var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base-alt);
	font-size: var(--wp--preset--font-size--small);
}

.foten-article-index__title {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-article-index a {
	color: var(--wp--preset--color--primary-dark);
}

@media (min-width: 1100px) {
	.foten-article-index {
		padding: 0;
		background: none;
	}

	.foten-article-index__inner {
		padding-left: 1.25rem;
		border-left: 3px solid var(--wp--preset--color--base-alt);
	}
}

.foten-event-series__label {
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
}

.foten-event-series__name {
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
}

.foten-event-series {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary-dark) 15%, transparent);
}
