/**
 * Link colour, site-wide. Added 2026-10-16.
 *
 * Two things were measured on the rendered pages on 16 Oct 2026 and both come
 * from the same hole in the compiled stylesheet: it sets no `color` on `body`
 * and none on `a`.
 *
 * 1. Every link the theme had no rule of its own for was the browser's default
 *    blue, rgb(0, 0, 238): the eleven service cards on /sluzby/, the link into
 *    the booking form on /cenik/, the phone number and the address in both
 *    legal documents.
 *
 * 2. `footer` paints #1D1D1B and sets no colour, so any footer text without a
 *    rule of its own inherits black from the browser and is invisible. That is
 *    what happened to the mandatory details: the rule for them went into
 *    style.css on 15 Oct, but its version was hand-written and unchanged, so
 *    caches kept serving the file without it. The version now follows the
 *    file's content (see tk_asset_ver in functions.php); the rule below is the
 *    second layer, so that footer text can never be black on black again.
 *
 * Nothing here is a hue invented for this file - the three values are the
 * theme's own, read off style.css. The gold #CFB07F is the brand accent and it
 * cannot carry body text: against white it is 2.1:1, far under the 4.5:1 that
 * text has to hold. So a link in running text keeps the text colour and is
 * told apart by a gold underline, which is where the brand belongs; on hover
 * it turns to a gold dark enough to read, 5.0:1. Designed for three languages:
 * no rule here depends on the length or the language of the text.
 */

:root {
    --tk-ink: #1D1D1B;
    --tk-cream: #F4ECE0;
    --tk-gold: #CFB07F;
    /* The accent, darkened until it reads on white and on cream. */
    --tk-gold-ink: #8A6A2F;
}

/* The compiled stylesheet sets no colour on `body` either, so every piece of
   text the theme has no rule for inherits the browser's #000 instead of the
   theme's own ink. Two near-identical blacks on one page is not a design. */
body {
    color: var(--tk-ink);
}

/* Nothing on this site is browser-blue. A link takes the colour of the text
   around it; this is the weakest possible selector, so every rule the theme
   already has for a link still wins. */
a {
    color: inherit;
}

/* A link inside running text has to be visible as a link, and underline is
   the one signal that survives both light and dark surfaces and does not
   depend on colour vision. */
.text-content p a,
.text-content li a,
.text-content td a,
.text-content h2 a,
.text-content h3 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--tk-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25rem;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.text-content p a:hover,
.text-content li a:hover,
.text-content td a:hover,
.text-content h2 a:hover,
.text-content h3 a:hover,
.text-content p a:focus-visible,
.text-content li a:focus-visible {
    color: var(--tk-gold-ink);
    text-decoration-color: currentColor;
}

/* The footer is dark, so text in it is light - including text added later
   that has no rule of its own. */
footer {
    color: rgba(255, 255, 255, 0.6);
}

footer .legal a:hover,
footer .legal a:focus-visible {
    color: #fff;
}

/* A keyboard focus ring the brand colour, because the browser's own is the
   same blue this file removes. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--tk-gold-ink);
    outline-offset: 2px;
}

footer a:focus-visible {
    outline-color: var(--tk-gold);
}
