/*
 * Purger admin. One hand-written stylesheet, no build step.
 * Colours follow the public site (DESIGN.md): paper, ink, red, blue.
 * Text is a system sans so long forms stay easy to read; headings keep
 * the site's Times New Roman.
 */

:root {
    --paper: #fbf7ec;
    --card: #fffdf7;
    --ink: #1d1a17;
    --muted: #645c52;
    --line: #cfc6b4;
    --red: #c3271b;
    --red-dark: #9d1d13;
    --blue: #1f4796;
    --green: #2a6a3c;
    --amber-bg: #fdf1cf;
    --red-bg: #fbe4e0;
    --green-bg: #e4f1e5;
    --radius: 6px;
    --serif: "Times New Roman", Times, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1.0625rem/1.5 var(--sans);
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    line-height: 1.2;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: 2rem;
    color: var(--red);
}

h2 {
    font-size: 1.375rem;
}

h3 {
    font-size: 1.1875rem;
    margin-top: 1.5em;
    padding-top: 0.75em;
    border-top: 1px solid var(--line);
}

h4 {
    font-size: 1.0625rem;
    margin-top: 1em;
}

p,
ul,
ol,
dl {
    margin: 0 0 1em;
}

a {
    color: var(--blue);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--red-dark);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

.skip {
    position: absolute;
    left: -999rem;
}

.skip:focus {
    left: 0.5rem;
    top: 0.5rem;
    z-index: 2;
    padding: 0.5rem 0.75rem;
    background: var(--card);
}

/* Top bar */

.bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border-bottom: 2px solid var(--red);
}

.bar-name {
    font: 700 1.25rem/1.2 var(--serif);
    color: var(--red);
    text-decoration: none;
}

.bar-name span,
.guest-name span {
    font: 400 0.8125rem/1 var(--sans);
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem 0.25rem;
    flex: 1 1 auto;
}

.nav a {
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
}

.nav a:hover {
    background: var(--paper);
}

.nav a[aria-current="page"] {
    background: var(--ink);
    color: var(--card);
}

.bar-out {
    margin: 0;
}

/* Page */

.page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.head,
.group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.head h1,
.group-head h2 {
    margin: 0;
}

.lead {
    color: var(--muted);
    max-width: 44rem;
}

.back {
    margin-bottom: 0.5rem;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.panel > :last-child {
    margin-bottom: 0;
}

.group {
    margin-bottom: 2rem;
}

.empty {
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

.foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    max-width: 56rem;
    margin: 0 auto;
    padding: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9375rem;
}

.foot span {
    margin-left: auto;
}

/* Messages */

.notice {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
}

.notice > :last-child {
    margin-bottom: 0;
}

.notice ul {
    padding-left: 1.25rem;
}

.notice--ok {
    background: var(--green-bg);
    border-color: var(--green);
}

.notice--error {
    background: var(--red-bg);
    border-color: var(--red);
}

.notice--pending {
    background: var(--amber-bg);
    border-color: #b8891a;
}

body > .notice--pending {
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    text-align: center;
}

.tag {
    display: inline-block;
    padding: 0.0625rem 0.4375rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    font: 400 0.8125rem/1.4 var(--sans);
    vertical-align: middle;
}

/* Buttons */

.button {
    display: inline-block;
    min-height: 2.75rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--red-dark);
    border-radius: var(--radius);
    background: var(--red);
    color: #fff;
    font: 600 1rem/1.4 var(--sans);
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--red-dark);
    color: #fff;
}

.button--quiet {
    background: var(--card);
    border-color: var(--ink);
    color: var(--ink);
}

.button--quiet:hover {
    background: var(--paper);
    color: var(--ink);
}

.link {
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.link:hover {
    color: var(--red-dark);
}

.link--danger {
    color: var(--red-dark);
}

/* Forms */

.form {
    max-width: 40rem;
}

.field {
    margin-bottom: 1.125rem;
}

label,
legend {
    font-weight: 600;
}

.field > label {
    display: block;
    margin-bottom: 0.25rem;
}

.optional {
    margin-left: 0.25rem;
    color: var(--muted);
    font-weight: 400;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="time"],
input[type="file"],
select,
textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.625rem;
    border: 1px solid #8d8474;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input[type="time"] {
    width: auto;
}

input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--red);
}

input:disabled {
    background: var(--paper);
    color: var(--muted);
}

[aria-invalid="true"] {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

.hint {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.error {
    margin: 0.25rem 0 0;
    color: var(--red-dark);
    font-weight: 600;
    font-size: 0.9375rem;
}

ul.error {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
}

.check label {
    font-weight: 400;
}

.pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0 1rem;
}

.pair--variant {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}

.set {
    min-width: 0;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem 0.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.set legend {
    padding: 0 0.375rem;
    font: 700 1.1875rem/1.2 var(--serif);
}

.set-note {
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.danger {
    max-width: 40rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.danger .hint {
    display: block;
}

/* Lists of records */

.rows {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
}

.row + .row {
    border-top: 1px solid var(--line);
}

.row--off .row-title,
.row--off .row-sub {
    color: var(--muted);
}

.row-main {
    flex: 1 1 auto;
    min-width: 0;
}

.row-title {
    margin: 0;
    font-weight: 600;
}

.row-no {
    display: inline-block;
    min-width: 1.75rem;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

.row-sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
}

.row-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.row-action {
    white-space: nowrap;
}

.row form {
    margin: 0;
}

.move {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.move button {
    width: 2rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1 var(--sans);
    cursor: pointer;
}

.move button:hover:not(:disabled) {
    border-color: var(--ink);
}

.move button:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Dashboard */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.tiles a {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
}

.tiles a:hover {
    border-color: var(--ink);
}

.tiles strong {
    display: block;
    font: 700 1.75rem/1.1 var(--serif);
    color: var(--red);
}

.todo,
.steps {
    padding-left: 1.25rem;
}

.todo li,
.steps li {
    margin-bottom: 0.375rem;
}

/* Photographs */

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.shots a {
    display: block;
    color: var(--ink);
}

.shots img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.shot {
    max-width: 30rem;
    margin: 0 0 1.5rem;
}

.shot img {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.shot figcaption {
    margin-top: 0.375rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Tables */

.hours,
.log {
    width: 100%;
    border-collapse: collapse;
}

.hours th,
.hours td,
.log th,
.log td {
    padding: 0.4375rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.hours thead th,
.log thead th {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
}

/* The column heading names the checkbox on wide screens. */
.hours-closed span {
    display: none;
}

.log {
    font-size: 0.9375rem;
}

.log td:first-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.pager {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.facts {
    display: grid;
    grid-template-columns: minmax(8rem, max-content) 1fr;
    gap: 0.25rem 1rem;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.checks {
    padding: 0;
    list-style: none;
}

.checks li {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0 0.75rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--line);
}

.checks .hint {
    grid-column: 2;
}

.check-ok strong {
    color: var(--green);
}

.check-bad strong {
    color: var(--red-dark);
}

/* Preview before publishing */

.preview-notice {
    padding: 0.5rem 0.75rem;
    border-left: 4px solid var(--red);
    background: var(--paper);
}

.preview-menu {
    padding: 0;
    list-style: none;
}

.preview-menu li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 1rem;
    padding: 0.3125rem 0;
    border-bottom: 1px dotted var(--line);
}

.preview-name {
    font-weight: 600;
}

.preview-name em {
    font-weight: 400;
}

.preview-price {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.preview-desc {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.9375rem;
}

.preview blockquote {
    margin: 0 0 1em;
    padding-left: 1rem;
    border-left: 4px solid var(--red);
    font: italic 1.1875rem/1.4 var(--serif);
}

/* Sign-in, setup and error pages */

.guest {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 1rem;
}

.guest-card {
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    background: var(--card);
}

.guest-name {
    font: 700 1.375rem/1.2 var(--serif);
    color: var(--red);
}

.guest-card h1 {
    font-size: 1.5rem;
    color: var(--ink);
}

.guest-card .button {
    width: 100%;
}

@media (max-width: 34rem) {
    .foot span {
        margin-left: 0;
        width: 100%;
    }

    .row {
        flex-wrap: wrap;
    }

    /* Dugi opis ne smije gurnuti naziv ispod strelica: zauzima ostatak retka, cijena ide u novi red. */
    .row-main {
        flex: 1 1 0;
    }

    .row-price {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem 0.75rem;
        width: 100%;
        padding-left: 2.75rem;
        white-space: normal;
    }

    .pair--variant {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Each day becomes a small block: name, two times, closed. */
    .hours thead {
        display: none;
    }

    .hours tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.375rem 0.5rem;
        padding: 0.625rem 0;
        border-bottom: 1px solid var(--line);
    }

    .hours th,
    .hours td {
        padding: 0;
        border: 0;
    }

    .hours tbody th,
    .hours td:last-child {
        grid-column: 1 / -1;
    }

    .hours input[type="time"] {
        width: 100%;
        min-width: 0;
    }

    .hours-closed {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.75rem;
    }

    .hours-closed span {
        display: inline;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .button,
    .nav a,
    .tiles a {
        transition: background-color 120ms ease, border-color 120ms ease;
    }
}

/* A single checkbox with its label, e.g. "Prikaži obavijest na stranici" */

.field--check label {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    font-weight: 500;
}

/* Jump list at the top of a long page */

.jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0 0 1.5rem;
}

/* Instructions drawer (native dialog, slides in from the right) */

.bar-help {
    padding: 0.375rem 0.875rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    cursor: pointer;
}

.bar-help:hover {
    background: var(--paper);
}

.help {
    width: min(30rem, 94vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0 0 0 auto;
    padding: 0;
    color: var(--ink);
    background: #fff;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: -1rem 0 2.5rem rgb(0 0 0 / 0.18);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), overlay 280ms allow-discrete, display 280ms allow-discrete;
}

.help[open] {
    transform: none;
}

@starting-style {
    .help[open] {
        transform: translateX(100%);
    }
}

.help::backdrop {
    background: rgb(0 0 0 / 0.35);
    opacity: 0;
    transition: opacity 280ms ease, overlay 280ms allow-discrete, display 280ms allow-discrete;
}

.help[open]::backdrop {
    opacity: 1;
}

@starting-style {
    .help[open]::backdrop {
        opacity: 0;
    }
}

.help-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.help-title {
    margin: 0;
    font-weight: 600;
}

.help-close {
    padding: 0 0.5rem;
    color: var(--ink);
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.help-body {
    padding: 1rem 1.25rem 2rem;
}

.help-body h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.help-body h3 {
    margin: 1.25rem 0 0.375rem;
    font-size: 1rem;
}

.help-body ol,
.help-body ul {
    margin: 0.375rem 0 0.75rem;
    padding-left: 1.25rem;
}

.help-body li {
    margin-bottom: 0.375rem;
}

@media (prefers-reduced-motion: reduce) {
    .help,
    .help::backdrop {
        transition-duration: 0.01ms;
    }
}

/*
 * Živost (emil-design-eng, apple-design): isti jezik kao javna stranica, bez šuma.
 * Pokret je samo transform i opacity, kratak i s jakim ease-out; sve se gasi uz prefers-reduced-motion.
 * Hover je samo na mišu (fine pointer), a pritisak na gumb daje odmah povratnu informaciju.
 */

:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-card: 0 1px 0 rgb(60 48 30 / 0.05), 0 10px 24px -16px rgb(60 48 30 / 0.35);
    --dots: radial-gradient(rgb(31 71 150 / 0.09) 1px, transparent 1.2px);
}

body {
    background-color: var(--paper);
    background-image: var(--dots);
    background-size: 14px 14px;
}

/* Zaglavlje: papirnata traka s dvostrukom crvenom crtom i slovom P kao na kartici preglednika. */
.bar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 3px double var(--red);
    box-shadow: 0 6px 16px -14px rgb(60 48 30 / 0.6);
}

.bar-name {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.bar-name::before {
    content: "P";
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--red);
    border-radius: 0.5rem;
    background: var(--paper);
    font: italic 700 1.4rem/1 var(--serif);
    color: var(--red);
}

.nav a {
    transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.nav a:active {
    transform: scale(0.97);
}

.nav a[aria-current="page"] {
    background: var(--red);
    color: #fff;
}

.panel {
    box-shadow: var(--shadow-card);
}

.panel h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Ulaz stranice: dijelovi se pojavljuju jedan za drugim (najviše ~240 ms zakašnjenja). */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.6rem);
    }
}

.page > * {
    animation: rise 380ms var(--ease-out) both;
}

.page > :nth-child(2) { animation-delay: 40ms; }
.page > :nth-child(3) { animation-delay: 80ms; }
.page > :nth-child(4) { animation-delay: 120ms; }
.page > :nth-child(5) { animation-delay: 160ms; }
.page > :nth-child(6) { animation-delay: 200ms; }
.page > :nth-child(n + 7) { animation-delay: 240ms; }

.notice--ok,
.notice--error {
    box-shadow: var(--shadow-card);
}

.notice--ok::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    margin-right: 0.5rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font: 700 0.9rem/1 var(--sans);
}

/* Gumbi: pritisak daje povratnu informaciju odmah. */
.button,
.bar-help,
.move button {
    transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.button:active,
.bar-help:active,
.move button:active:not(:disabled) {
    transform: scale(0.97);
}

/* Kratke radnje na pregledu. */
.hi {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1.125rem;
}

.quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.quick a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.quick a:active {
    transform: scale(0.97);
}

.quick .quick--main {
    border-color: var(--red-dark);
    background: var(--red);
    color: #fff;
}

/* Oznaka stanja. */
.chip {
    padding: 0.1rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 600 0.8125rem/1.5 var(--sans);
}

.chip--ok {
    border-color: var(--green);
    background: var(--green-bg);
    color: var(--green);
}

.chip--wait {
    border-color: #b8891a;
    background: var(--amber-bg);
    color: #7a5a0c;
}

/* Što još nedostaje: stavke s upozorenjem umjesto suhe liste. */
.todo {
    padding: 0;
    list-style: none;
}

.todo li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    margin: 0 0 0.5rem;
    padding: 0.6rem 0.75rem 0.6rem 2.4rem;
    position: relative;
    border: 1px solid #e3cf95;
    border-radius: var(--radius);
    background: var(--amber-bg);
}

.todo li::before {
    content: "!";
    position: absolute;
    left: 0.7rem;
    top: 0.65rem;
    display: grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    background: #b8891a;
    color: #fff;
    font: 700 0.8rem/1 var(--sans);
}

.todo a {
    margin-left: auto;
    font-weight: 600;
}

/* Pločice sadržaja: veliki crveni broj, dvostruka plava crta, strelica na dodir miša. */
.tiles a {
    position: relative;
    border-top: 3px double var(--blue);
    background: var(--paper);
    transition: border-color 160ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.tiles strong {
    font-size: 2.4rem;
}

.tiles a::after {
    content: "→";
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    color: var(--blue);
    opacity: 0;
    transform: translateX(-0.4rem);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.steps {
    counter-reset: step;
    padding: 0;
    list-style: none;
}

.steps li {
    position: relative;
    margin: 0 0 0.6rem;
    padding-left: 2.4rem;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font: 700 0.9rem/1 var(--serif);
}

/* Popis jela: plavi krugovi s brojem kao na jelovniku, broj jela u naslovu kategorije. */
.row-no {
    min-width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font: 700 0.85rem/1.6rem var(--serif);
    text-align: center;
}

.count {
    display: inline-grid;
    place-items: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 600 0.8125rem/1 var(--sans);
}

.row {
    transition: background-color 160ms var(--ease-out);
}

.row-price .tag {
    border-style: dashed;
}

.row-price small {
    color: var(--muted);
}

/* Obrasci: odjeljci imaju crveni naslov i naglašen rub. */
.set {
    border-left: 3px solid var(--red);
    box-shadow: var(--shadow-card);
}

.set legend {
    color: var(--red);
    font-style: italic;
}

/* Prijava: papirnati list s dvostrukim rubom. */
.guest {
    background-image: var(--dots);
    background-size: 14px 14px;
}

.guest-card {
    border: 3px double var(--blue);
    box-shadow: var(--shadow-card);
    animation: rise 420ms var(--ease-out) both;
}

.guest-name::before {
    content: "P";
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    border: 2px solid var(--red);
    border-radius: 0.5rem;
    background: var(--paper);
    font: italic 700 1.4rem/1 var(--serif);
}

/* Lebdenje samo na mišu; na dodir ne ostaje "zaglavljeno". */
@media (hover: hover) and (pointer: fine) {
    .nav a:hover:not([aria-current="page"]) {
        background: var(--amber-bg);
    }

    .button:hover {
        box-shadow: 0 6px 14px -8px rgb(157 29 19 / 0.7);
        transform: translateY(-1px);
    }

    .button:active {
        transform: scale(0.97);
    }

    .quick a:hover {
        border-color: var(--ink);
        background: var(--paper);
    }

    .quick .quick--main:hover {
        background: var(--red-dark);
    }

    .tiles a:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-card);
    }

    .tiles a:hover::after {
        opacity: 1;
        transform: none;
    }

    .row:hover {
        background: var(--paper);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page > *,
    .guest-card {
        animation: none;
    }

    .tiles a::after,
    .tiles a:hover,
    .button:hover {
        transform: none;
        transition: none;
    }
}
