/* Theme additions that the design system does not carry (DECISIONS D15).
   Uses tokens.css only; component styles stay in main.css, generated from bundle.css. */

/* Skip link: first focusable element, visible on focus (brief chapter 8). */
.mv-skip {
	position: absolute;
	left: var(--space-4);
	top: var(--space-2);
	z-index: 100;
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-min);
	padding: 0 var(--space-4);
	background: var(--raised);
	color: var(--ink);
	font-weight: 500;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	transform: translateY(-200%);
}
.mv-site a.mv-skip { color: var(--ink); }
.mv-skip:focus,
.mv-skip:focus-visible { transform: none; }

/* WordPress core helper for text that only screen readers announce. */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	z-index: 100;
}

/* The main element takes focus from the skip link; no outline on the whole region. */
#main:focus { outline: none; }

/* The language button opens nothing yet (only EN): no pointer cursor promise. */
.mv-langsel { cursor: default; }

/* Fallback index list (index.php) until the real templates exist. */
.mv-index { list-style: none; margin: 0; padding: 0; }
.mv-index li { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.mv-index h2 { margin-bottom: var(--space-1); }

/* Logo ".cy" contrast (DECISIONS D19). Citrus fails AA on the light footer band (1.7:1) and on the
   dark-theme carob header (3.4:1). Footer: partner ink (7.3:1 light, 11.3:1 dark). Dark header: citrus
   mixed half with white (4.7:1). The light header keeps pure citrus (5.4:1). */
.mv-footer .mv-logo__tld { color: var(--partner-ink); }
[data-theme="dark"] .mv-header .mv-logo__tld { color: color-mix(in srgb, var(--citrus) 50%, #ffffff); }

/* "Show N more companies" on landing pages (DECISIONS D29): a native <details> under the first five
   cards, so the full list opens without JavaScript. The summary looks like the preview's secondary
   block button; the label switches when open. */
.mv-more { margin-top: 20px; }
.mv-more > summary { list-style: none; cursor: pointer; }
.mv-more > summary::-webkit-details-marker { display: none; }
.mv-more > .mv-companylist { margin-top: var(--space-4); }
.mv-more__hide,
.mv-more[open] .mv-more__show { display: none; }
.mv-more[open] .mv-more__hide { display: inline; }

/* Local notes on landing pages: the editor's group with the box classes (DECISIONS D30). */
.mv-section .wp-block-group.mv-box { margin: var(--space-5) 0; }

/* Current city chip contrast (DECISIONS D31): ".mv-site a.mv-chip" sets ink and outranks
   ".mv-chip[aria-current]", so the selected chip had ink text on carob (axe: color-contrast). */
.mv-site a.mv-chip[aria-current="page"] { color: var(--on-carob); }

/* Review summary boxes on company profiles (DECISIONS D38): h3 instead of the preview's h4, so the
   outline under "What customers say" (h2) does not skip a level. Same look as .mv-procon h4. */
.mv-site .mv-procon h3.mv-procon__title { display: flex; gap: 8px; align-items: center; font-family: var(--font-sans); font-size: 19px; line-height: 1.35; font-weight: 600; margin: 0 0 var(--space-2); }

/* Directory filter bar (DECISIONS D41): the filters are a GET form, so the foot gets a submit button
   next to "Clear filters" (a link to /companies/). */
.mv-filters__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Empty directory (DECISIONS D41): h2 instead of the preview's h3, so the outline under the h1 does
   not skip a level. Same look as .mv-empty h3. */
.mv-site .mv-empty h2.mv-empty__title { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 600; }
@container site (min-width: 768px) { .mv-site .mv-empty h2.mv-empty__title { font-size: 22px; } }

/* Blocks in guides (LS-MYVI7, DECISIONS D48 to D52). */

/* Lists of companies and CTA points inside .mv-prose: the prose list indent and item spacing
   (.mv-prose ul) outrank the component's own reset, so cards and points were pushed 1.4em right. */
.mv-prose .mv-companylist,
.mv-prose .mv-cta__points { padding-left: 0; }
.mv-prose .mv-companylist > li + li,
.mv-prose .mv-cta__points > li + li { margin-top: 0; }
.mv-prose .mv-companylist > li::marker { content: none; }

/* Core table block in .mv-table look: core's block-library borders and thead rule are removed. */
.mv-prose .wp-block-table { overflow: visible; }
.mv-prose .wp-block-table thead { border-bottom: 0; }
.mv-prose .wp-block-table .mv-table th,
.mv-prose .wp-block-table .mv-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px var(--space-4); }
.mv-prose .wp-block-table .mv-table tbody tr:last-child > * { border-bottom: 0; }
.mv-prose .wp-block-table figcaption { text-align: left; }

/* InfoBox from core/group (inc/blocks.php): the box's own spacing instead of the flow layout gap. */
.mv-site .wp-block-group.mv-box > * { margin-block-start: 0; }

/* FAQ rows from core/details with the faq style (inc/blocks.php): consecutive rows form one list. */
.mv-prose > .mv-faq:has(+ .mv-faq) { margin-bottom: 0; }
.mv-faq + .mv-faq { border-top: 0; }

/* Calculator heading is h3 (preview h4) so the outline under the section's h2 does not skip a level;
   same look as .mv-calc h4. */
.mv-site .mv-calc h3.mv-calc__title { font-family: var(--font-sans); font-size: 19px; line-height: 1.35; font-weight: 600; margin: 0 0 var(--space-2); }

/* Images in guides: 12px radius as villa photos (design/README.md). */
.mv-prose .wp-block-image img { border-radius: var(--radius-lg); }

/* Buttons block: the design's gap between buttons. */
.mv-prose .wp-block-buttons { gap: var(--space-2); }

/* Long translations (DECISIONS D69). Russian and Greek labels run about 30% longer than English; at
   390 px "Получить предложения" pushed the header past the screen. The logo keeps its width, the
   header end may shrink, and its quote button breaks onto two balanced lines instead of overflowing.
   English labels still fit on one line, so the approved look does not change. */
.mv-header__bar > .mv-logo { flex-shrink: 0; }
.mv-header__end { min-width: 0; }
.mv-header__end .mv-btn { min-width: 0; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.15; }
.mv-header__end .mv-menu { flex-shrink: 0; }

/* Narrow screens (DECISIONS D69). At 390 px the profile's "Compare all 6 pool companies in Limassol"
   button and a long website address in the facts list stuck out 1 to 2 px, so the page scrolled
   sideways even in English. Buttons may not grow past their container and break onto balanced lines
   when the label does not fit (a label that fits stays on one line, as before); fact values break
   long words such as web addresses. */
.mv-btn { max-width: 100%; white-space: normal; text-wrap: balance; text-align: center; }
.mv-facts > div { grid-template-columns: 130px minmax(0, 1fr); }
.mv-facts dd { min-width: 0; overflow-wrap: anywhere; }
