/* PROMEMIO UI v3 base: document defaults, focus, utilities. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: var(--text-base);
    font-weight: var(--weight-body);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--color-accent);
}

a:hover {
    text-decoration: underline;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
strong,
span {
    overflow-wrap: anywhere;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

:root[data-contrast="high"] :focus-visible {
    outline-width: 3px;
}

/* Programmatically focusable containers (skip-link targets such as .pm-main,
   and dialogs) are not interactive controls and do not draw a focus ring. */
[tabindex="-1"]:focus-visible {
    outline: none;
}

.pm-icon {
    display: block;
    width: var(--icon-size);
    height: var(--icon-size);
    flex: 0 0 auto;
}

.promemio-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.pm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pm-skip-link {
    position: absolute;
    top: calc(-1 * var(--space-7));
    left: var(--space-4);
    z-index: 50;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-control);
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: var(--weight-strong);
    text-decoration: none;
}

.pm-skip-link:focus {
    top: var(--space-2);
}

[hidden] {
    display: none !important;
}
