/* Shared tvarka.eu public stylesheet (extracted from tvarka_eu/base.html to
   eliminate inline-style CSP reports and unify WCAG AA button & link styles). */
.eu {
    --eu-primary: #1c696a;
    --eu-primary-dark: #145a66;
    --eu-primary-50: #eaf5f2;
    --eu-accent: #1c696a;
    --eu-text: #0f181d;
    --eu-muted: #5a6b6f;
    --eu-border: #e3ebe8;
    --eu-bg: #f8faf9;
    color: var(--eu-text);
}
.eu-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .eu-wrap { padding: 0 24px; } }
.eu-button {
    display: inline-block;
    background: var(--eu-primary);
    color: #fff;
    font-weight: 600;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    transition: background-color 150ms ease, color 150ms ease;
}
.eu-button:hover { background: var(--eu-primary-dark); color: #fff; }
.eu-button:focus-visible { outline: 2px solid #0E4751; outline-offset: 2px; }
.eu-page { padding: 48px 0 0; }
.eu-page h1 { font-size: 2.25rem; line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
.eu-page h2 { font-size: 1.5rem; line-height: 1.3; font-weight: 700; margin: 40px 0 14px; }
.eu-page h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 700; margin: 24px 0 10px; }
.eu-page p, .eu-page li { line-height: 1.65; }
.eu-page a:not(.eu-button):not(.eu-button-ghost) {
    color: var(--eu-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.eu-page a:not(.eu-button):not(.eu-button-ghost):hover { color: #0a2e33; }
.eu-page a:focus-visible { outline: 2px solid #0E4751; outline-offset: 2px; border-radius: 2px; }
.eu-lead { font-size: 1.15rem; line-height: 1.6; color: var(--eu-muted); max-width: 68ch; margin: 0 0 28px; }
.eu-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .eu-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); } }
#products.eu-grid { margin-bottom: 28px; }
@media (min-width: 640px) { #products.eu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
    .eu-grid--2,
    .eu-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}
@media (min-width: 900px) {
    .eu-pricing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}
.eu-stack { display: grid; gap: 16px; grid-template-columns: 1fr; }
.eu-card {
    min-width: 0;
    border: 1px solid var(--eu-border);
    border-radius: 14px;
    padding: 22px;
    background: #fff;
}
.eu-card--wide { grid-column: 1 / -1; }
.eu-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.eu-card p { color: var(--eu-muted); line-height: 1.6; margin: 0; }
.eu-card p + p { margin-top: 8px; }
.eu-nowrap { white-space: nowrap; }
.eu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.eu-list li { padding-left: 26px; position: relative; min-width: 0; }
.eu-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.6em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--eu-primary);
}
.eu-ctas { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.eu-button-ghost {
    display: inline-block;
    color: var(--eu-primary-dark);
    font-weight: 600;
    padding: 10px 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.eu-button-ghost:hover { color: #0a2e33; }
.eu-button-ghost:focus-visible { outline: 2px solid #0E4751; outline-offset: 2px; border-radius: 4px; }
.eu-table-wrap { overflow-x: auto; max-width: 100%; margin: 8px 0 16px; }
.eu-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.eu-table th, .eu-table td {
    border: 1px solid var(--eu-border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}
.eu-table th { background: var(--eu-bg); }
.eu-note { color: var(--eu-muted); font-size: 0.9rem; }
.eu-help { max-width: 896px; }
.eu-help p { margin-bottom: 1rem; }
.eu-help a:not(.eu-button) {
    color: var(--eu-primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.eu-help a:not(.eu-button):hover { color: #0a2e33; }
.eu-help [id] { scroll-margin-top: 6rem; }
.eu-page code,
.eu-help code { overflow-wrap: anywhere; word-break: break-word; }
.eu-page pre,
.eu-help pre {
    background: var(--eu-bg);
    border: 1px solid var(--eu-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 12px 0 18px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 100%;
}
.eu-page pre code,
.eu-help pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
.eu-card pre { margin: 10px 0 0; padding: 12px 14px; font-size: 0.85rem; }
.eu-mt-8 { margin-top: 8px; }
.eu-mt-16 { margin-top: 16px; }
.eu-mt-28 { margin-top: 28px; }
.eu-mb-18 { margin-bottom: 18px; }
.eu-mb-24 { margin-bottom: 24px; }
.eu-mb-28 { margin-bottom: 28px; }
.eu-mb-32 { margin-bottom: 32px; }
.eu-cross-link { display: none; }
@media (min-width: 1024px) { .eu-cross-link { display: inline-flex; } }
/* Long translations and enlarged text keep every header action reachable. */
.eu-header > div > div { height: auto; min-height: 4rem; flex-wrap: wrap; padding-block: 0.5rem; }
/* A phone landing fixes the row at 72px. Two rows of actions need the room, so the row grows with them. */
body.eu:has(.landing-page) .eu-header > div > div { height: auto; min-height: 72px; row-gap: 0.25rem; }
.eu-header nav { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; }
.eu-header nav > a { white-space: normal; }
.eu-header .tv-lang-panel { max-height: min(70vh, 24rem); overflow-y: auto; max-width: calc(100vw - 2rem); }
.eu .footer-brand nav { min-width: 0; overflow-wrap: anywhere; }
.footer-eu-sign-list { margin: 0; padding: 0; list-style: none; }
.footer-eu-sign-list li { padding-bottom: 8px; line-height: 1.45; break-inside: avoid; }
@media (min-width: 640px) {
    .footer-eu-sign-list { columns: 2; column-gap: 28px; }
}
.eu .landing-page .product-chip .chip-label,
.eu .landing-page .product-chip .chip-meta { white-space: normal; overflow-wrap: anywhere; }
.eu .landing-page .hero .hero-title .nowrap { white-space: normal; }
/* One header row on a phone (2026-11-23): a smaller logo and tighter actions below 420px. A long
   translation may still wrap, so every action stays reachable. */
@media (max-width: 419px) {
    .eu-header img[alt="Tvarka"],
    body.eu:has(.landing-page) .eu-header img[alt="Tvarka"] { height: 28px; }
    .eu-header > div > div { column-gap: 0.25rem; }
    .eu-header nav { gap: 0.125rem; }
    .eu-header .tv-lang > summary { padding: 0.45rem 0.3rem; gap: 0.25rem; }
    .eu-header nav > a:not(.btn-primary) { padding-inline: 0.3rem; }
    .eu-header nav > a.btn-primary { padding-inline: 0.625rem !important; }
}
@media (max-width: 379px) {
    .eu-header img[alt="Tvarka"],
    body.eu:has(.landing-page) .eu-header img[alt="Tvarka"] { height: 26px; }
    .eu-header nav > a.btn-primary { padding-inline: 0.5rem !important; }
}
/* Keep language switcher compact on very small phones while retaining globe at 390px. */
@media (max-width: 399px) {
    .eu-header .tv-lang > summary { padding: 0.45rem 0.4rem; }
}
@media (max-width: 340px) {
    .eu-header .tv-lang-globe { display: none; }
}

.eu-ctas--spaced { margin-top: 28px; }
