/*
 * Page blocks (PLAN §5), shared by the standard and the senior version (resources/views/blocks).
 * Colours fall back to the coat-of-arms palette when the page defines no tokens.
 */

.tk-block {
    margin: 0 0 2.5rem;
}

.tk-block__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
    font-size: 1.6rem;
    line-height: 1.25;
}

.tk-block__title .tk-icon {
    color: #1d6f35;
}

.tk-block__intro {
    margin: -0.4rem 0 1.25rem;
    color: #556070;
    font-size: 1.125rem;
}

/* Text from the rich editor (it has no ID-SK classes). */

.tk-rich-text p,
.tk-rich-text ul,
.tk-rich-text ol,
.tk-rich-text blockquote,
.tk-rich-text table {
    margin: 0 0 1.25rem;
}

.tk-rich-text h2,
.tk-rich-text h3,
.tk-rich-text h4,
.tk-rich-text h5,
.tk-rich-text h6 {
    color: #111827;
    line-height: 1.3;
}

.tk-rich-text h2 {
    position: relative;
    margin: 2.5rem 0 1rem;
    padding-top: 0.9rem;
    font-size: 1.6rem;
}

.tk-rich-text h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2.75rem;
    height: 4px;
    border-radius: 2px;
    background: #2fa84f;
}

.tk-rich-text > :first-child {
    margin-top: 0;
}

.tk-rich-text h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.3rem;
}

.tk-rich-text h4,
.tk-rich-text h5,
.tk-rich-text h6 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.15rem;
}

.tk-rich-text a {
    color: #1d6f35;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.tk-rich-text ul {
    padding-left: 0;
    list-style: none;
}

.tk-rich-text ul > li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.85rem;
}

/* A check mark in a soft green circle. */
.tk-rich-text ul > li::before,
.tk-feature__list li::before {
    content: "";
    position: absolute;
    top: 0.3em;
    left: 0;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #dcf3e2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.tk-rich-text ol {
    padding-left: 0;
    list-style: none;
    counter-reset: tk-step;
}

.tk-rich-text ol > li {
    position: relative;
    margin-bottom: 0.85rem;
    padding-left: 2.5rem;
    counter-increment: tk-step;
}

.tk-rich-text ol > li::before {
    content: counter(tk-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #1d6f35;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.tk-rich-text blockquote {
    padding: 1rem 1.25rem;
    border-left: 5px solid #2fa84f;
    border-radius: 0 14px 14px 0;
    background: #f0f9f2;
    font-style: italic;
}

.tk-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.tk-rich-text table {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e3e8e5;
    border-radius: 14px;
    border-collapse: separate;
    border-spacing: 0;
}

.tk-rich-text th,
.tk-rich-text td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #e3e8e5;
    text-align: left;
    vertical-align: top;
}

.tk-rich-text th {
    background: #f0f9f2;
    font-weight: 800;
}

.tk-rich-text tr:last-child td {
    border-bottom: 0;
}

.tk-rich-text tr:nth-child(even) td {
    background: #fafbfa;
}

/* Image box: a photo next to a short text with buttons. */

.tk-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--tk-tone-bg, #e7f5ea), #fff 75%);
}

.tk-media--reverse .tk-media__figure {
    order: 2;
}

.tk-media--no-image {
    grid-template-columns: minmax(0, 1fr);
}

.tk-media__figure {
    margin: 0;
}

.tk-media__figure img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 2px 4px rgb(16 24 40 / 8%), 0 16px 32px rgb(16 24 40 / 12%);
}

/* Logos and emblems are shown whole. */
.tk-media--contain .tk-media__figure img {
    padding: 1.5rem;
    box-sizing: border-box;
    background: #fff;
    object-fit: contain;
}

.tk-media__figure figcaption {
    margin-top: 0.6rem;
    color: #556070;
    font-size: 0.9375rem;
    text-align: center;
}

.tk-media__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--tk-tone-fg, #1d6f35);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tk-media__title {
    margin: 0 0 0.85rem;
    font-size: 1.6rem;
    line-height: 1.25;
}

.tk-media__text {
    margin: 0 0 0.9rem;
}

.tk-media__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
}

/* Icon boxes */

.tk-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-features--2 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.tk-features--4 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
}

.tk-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    border: 1px solid #e3e8e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
}

.tk-feature__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: var(--tk-tone-bg, #e7f5ea);
    color: var(--tk-tone-fg, #1d6f35);
}

.tk-feature__icon .tk-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.tk-feature__title {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.tk-feature__text {
    margin: 0;
    color: #4b5563;
}

.tk-feature__list {
    display: grid;
    gap: 0.35rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.tk-feature__list li {
    position: relative;
    padding-left: 1.65rem;
}

.tk-feature__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--tk-tone-fg, #1d6f35);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tk-feature__link .tk-icon {
    width: 1rem;
    height: 1rem;
}

/* Facts (infobox with numbers) */

.tk-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 1rem;
    margin: 0;
}

.tk-fact {
    display: grid;
    grid-template-areas: "icon" "value" "label";
    align-content: start;
    gap: 0.35rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: #f0f9f2;
}

.tk-fact__icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    background: #fff;
    color: #1d6f35;
}

.tk-fact__value {
    grid-area: value;
    margin: 0;
    color: #14532d;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.15;
}

.tk-fact__label {
    grid-area: label;
    color: #4b5563;
    font-size: 0.9375rem;
}

/* People */

.tk-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-person {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid #e3e8e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
}

.tk-person__avatar {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2fa84f, #166534);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.tk-person__photo {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.tk-person__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tk-person__name {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.tk-person__role {
    color: #556070;
    font-size: 0.9375rem;
}

.tk-person__contacts {
    display: grid;
    gap: 0.35rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.tk-person__contacts li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-wrap: anywhere;
}

.tk-person__contacts .tk-icon {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    color: #1d6f35;
}

.tk-person__contacts a {
    color: #111827;
}

/* One person: a profile card with a large photo. */
.tk-people--single {
    grid-template-columns: minmax(0, 1fr);
}

.tk-people--single .tk-person {
    gap: 1.75rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, #f0f9f2, #fff 60%);
}

.tk-people--single .tk-person__photo {
    width: 11rem;
    height: 13rem;
    border-radius: 20px;
}

.tk-people--single .tk-person__avatar {
    width: 6rem;
    height: 6rem;
    font-size: 2rem;
}

.tk-people--single .tk-person__name {
    font-size: 1.6rem;
}

.tk-people--single .tk-person__role {
    font-size: 1.05rem;
}

/* Documents */

.tk-docs__search {
    position: relative;
    margin: 0 0 1rem;
}

.tk-docs__search-label {
    position: absolute;
    top: 1.5rem;
    left: 1.1rem;
    display: flex;
    color: #556070;
    transform: translateY(-50%);
}

.tk-docs__search-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.6rem 1rem 0.6rem 3rem;
    border: 2px solid #cfd8d3;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 1.05rem;
}

.tk-docs__search-input:focus {
    border-color: #0b0c0c;
    outline: 3px solid #ffdd00;
}

.tk-docs__empty {
    margin: 0.75rem 0 0;
    color: #556070;
}

.tk-docs__group {
    margin: 0 0 0.75rem;
    overflow: hidden;
    border: 1px solid #e3e8e5;
    border-radius: 18px;
    background: #fff;
}

.tk-docs__summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 800;
    list-style: none;
}

.tk-docs__summary::-webkit-details-marker {
    display: none;
}

.tk-docs__summary::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    margin-right: 0.3rem;
    border-right: 3px solid #556070;
    border-bottom: 3px solid #556070;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.tk-docs__group[open] > .tk-docs__summary::after {
    transform: rotate(225deg);
}

.tk-docs__group[open] > .tk-docs__summary {
    border-bottom: 1px solid #e3e8e5;
    background: #f6f8f6;
}

.tk-docs__summary:focus-visible {
    outline: 3px solid #ffdd00;
    outline-offset: -3px;
}

.tk-docs__count {
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: #dcf3e2;
    color: #166534;
    font-size: 0.85rem;
}

.tk-docs__group .tk-files {
    padding: 0.75rem;
}

.tk-files {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e3e8e5;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tk-file:hover {
    border-color: #1d6f35;
    box-shadow: 0 6px 18px rgb(16 24 40 / 8%);
}

.tk-file__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: #fde8e8;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.tk-file__icon--doc,
.tk-file__icon--docx,
.tk-file__icon--odt,
.tk-file__icon--rtf {
    background: #e8f0fe;
    color: #1d4ed8;
}

.tk-file__icon--xls,
.tk-file__icon--xlsx,
.tk-file__icon--ods {
    background: #e7f5ea;
    color: #1d6f35;
}

.tk-file__icon--jpg,
.tk-file__icon--jpeg,
.tk-file__icon--png,
.tk-file__icon--url {
    background: #fff4d6;
    color: #854d0e;
}

.tk-file--audio .tk-file__icon {
    background: #f1eafe;
    color: #6d28d9;
}

.tk-file__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.tk-file__link {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tk-file__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.tk-file:hover .tk-file__link {
    text-decoration: underline;
}

.tk-file__link:focus-visible {
    outline: 3px solid #ffdd00;
    box-shadow: 0 0 0 6px #0b0c0c;
}

.tk-file__meta {
    color: #556070;
    font-size: 0.875rem;
}

.tk-file__download {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #8a949f;
}

.tk-file:hover .tk-file__download {
    color: #1d6f35;
}

/* The player stays clickable above the link that covers the row. */
.tk-file__audio {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    margin-top: 0.6rem;
}

/* Text of a radio announcement under its player. */
.tk-file__text {
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

.tk-file__text summary {
    color: #1d6f35;
    font-weight: 700;
    cursor: pointer;
}

.tk-file__text p {
    margin: 0.5rem 0 0;
    font-weight: 400;
    line-height: 1.55;
}

/* Price list */

.tk-prices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}

.tk-price-card {
    padding: 1.35rem 1.5rem;
    border: 1px solid #e3e8e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
}

.tk-price-card__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.tk-price-card__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #e7f5ea;
    color: #1d6f35;
}

.tk-price-table {
    width: 100%;
    border-collapse: collapse;
}

.tk-price-table th,
.tk-price-table td {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #d7ded9;
    font-weight: 400;
    text-align: left;
    vertical-align: top;
}

.tk-price-table td {
    padding-left: 1rem;
    color: #14532d;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.tk-price-table tr:last-child th,
.tk-price-table tr:last-child td {
    border-bottom: 0;
}

/* Gallery */

.tk-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #eef2ef;
}

.tk-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.tk-gallery__item:hover img {
    transform: scale(1.05);
}

.tk-gallery__item:focus-visible {
    outline: 3px solid #ffdd00;
    box-shadow: 0 0 0 6px #0b0c0c;
}

.tk-gallery__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.5rem 0.65rem 0.45rem;
    background: linear-gradient(transparent, rgb(0 0 0 / 70%));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Callout */

.tk-callout {
    display: flex;
    gap: 0.85rem;
    padding: 1.15rem 1.35rem;
    border-left: 6px solid var(--tk-tone-fg, #1d4ed8);
    border-radius: 14px;
    background: var(--tk-tone-bg, #e8f0fe);
}

.tk-callout__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--tk-tone-fg, #1d4ed8);
}

.tk-callout__title {
    margin: 0 0 0.25rem;
    font-weight: 800;
}

.tk-callout__text {
    margin: 0;
}

.tk-callout__action {
    margin: 0.9rem 0 0;
}

/* Links with icons */

.tk-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.tk-link-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border: 1px solid #e3e8e5;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tk-link-tile:hover {
    border-color: var(--tk-tone-fg, #1d6f35);
    box-shadow: 0 6px 18px rgb(16 24 40 / 8%);
}

.tk-link-tile__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--tk-tone-bg, #e7f5ea);
    color: var(--tk-tone-fg, #1d6f35);
}

.tk-link-tile__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Image and accordion */

.tk-figure {
    margin-right: 0;
    margin-left: 0;
}

.tk-figure img {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.tk-figure figcaption {
    margin-top: 0.5rem;
    color: #556070;
    font-size: 0.9375rem;
}

.tk-block__title + .tk-details,
.tk-details + .tk-details {
    margin-top: 0;
}

@media (max-width: 767px) {
    .tk-media {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1rem;
    }

    .tk-media--reverse .tk-media__figure {
        order: 0;
    }

    .tk-people--single .tk-person {
        flex-direction: column;
    }
}

/* Items hidden by the document search. */
.tk-file[hidden],
.tk-docs__group[hidden] {
    display: none;
}

/* A collapsible card with documents (one procurement, one category of forms). */
.tk-docs__group--card {
    margin-bottom: 0.75rem;
}

.tk-docs__group--card .tk-files {
    padding: 0.75rem;
}

.tk-docs__summary-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #e7f5ea;
    color: #1d6f35;
}

.tk-docs__group--card .tk-docs__summary {
    font-size: 1.1rem;
    line-height: 1.35;
}

/* Accordion: cards instead of the plain ID-SK details. */
.tk-details.govuk-details {
    margin: 0 0 0.6rem;
    border: 1px solid #e3e8e5;
    border-radius: 16px;
    background: #fff;
}

.tk-details .govuk-details__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    color: #111827;
    font-weight: 800;
}

.tk-details .govuk-details__summary::before {
    display: none;
}

.tk-details .govuk-details__summary::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.3rem;
    border-right: 3px solid #1d6f35;
    border-bottom: 3px solid #1d6f35;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.tk-details[open] .govuk-details__summary::after {
    transform: rotate(225deg);
}

.tk-details .govuk-details__summary-text {
    text-decoration: none;
}

.tk-details .govuk-details__summary:hover .govuk-details__summary-text {
    text-decoration: underline;
}

.tk-details .govuk-details__text {
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    border-left: 0;
}

/*
 * Administration (Filament): the municipality's brand on top of Filament's own styles – the
 * font and green of the website, the coat of arms, a calmer sidebar, the sign-in page and the
 * dashboard widgets. Plain CSS without a Tailwind theme (no new dependency).
 */

@font-face {
    font-family: "Source Sans Pro";
    src: url("/assets/fonts/SourceSansPro-Regular.woff2") format("woff2"), url("/assets/fonts/SourceSansPro-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans Pro";
    src: url("/assets/fonts/SourceSansPro-Bold.woff2") format("woff2"), url("/assets/fonts/SourceSansPro-Bold.woff") format("woff");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans Pro";
    src: url("/assets/fonts/SourceSansPro-Black.woff2") format("woff2"), url("/assets/fonts/SourceSansPro-Black.woff") format("woff");
    font-weight: 800 900;
    font-style: normal;
    font-display: swap;
}

/* Brand: coat of arms, the name and "Administrácia". */

.tk-admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.tk-admin-brand__erb {
    width: auto;
    height: 2.75rem;
}

.tk-admin-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.tk-admin-brand__name {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 800;
}

.tk-admin-brand__kicker {
    margin-top: 0.15rem;
    color: var(--primary-700);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Sidebar: a soft green-grey surface, clear group labels and the active item in green. */

.fi-sidebar {
    background: #f6f8f6;
    border-inline-end: 1px solid #e3e8e5;
}

.fi-sidebar-group-label {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: var(--primary-100);
}

.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-icon {
    color: var(--primary-800);
}

/* Topbar: a thin green line of the municipality on top of every page. */

.fi-topbar {
    border-top: 4px solid var(--primary-600);
}

/* Sign-in and other pages without the sidebar: green background, the card in front. */

.fi-simple-layout {
    background:
        radial-gradient(circle at 12% 18%, rgb(47 168 79 / 28%) 0, transparent 38%),
        radial-gradient(circle at 88% 85%, rgb(255 255 255 / 8%) 0, transparent 35%),
        linear-gradient(140deg, #052e16 0%, #14532d 50%, #1d6f35 100%);
}

.fi-simple-main {
    border-radius: 22px;
    box-shadow: 0 30px 80px rgb(5 46 22 / 45%);
}

/* Filament gives the logo a fixed height; on the sign-in card the brand is taller (erb above the name). */
.fi-simple-page .fi-logo {
    height: auto !important;
}

.fi-simple-page .tk-admin-brand {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
}

.fi-simple-page .tk-admin-brand__erb {
    height: 4.5rem;
}

.fi-simple-page .tk-admin-brand__name {
    font-size: 1.5rem;
}

.tk-admin-back {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.875rem;
}

.tk-admin-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-700);
    font-weight: 700;
    text-decoration: none;
}

.tk-admin-back a:hover {
    text-decoration: underline;
}

.tk-admin-back__icon {
    width: 1rem;
    height: 1rem;
}

/* Dashboard: greeting, quick actions and the list of waiting work. */

.tk-admin-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgb(255 255 255 / 12%) 0, transparent 40%),
        linear-gradient(135deg, #14532d 0%, #1d6f35 100%);
    color: #fff;
}

.tk-admin-welcome__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.tk-admin-welcome__text {
    margin: 0.25rem 0 0;
    color: rgb(255 255 255 / 85%);
}

.tk-admin-welcome__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tk-admin-welcome__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.tk-admin-welcome__link:hover {
    background: rgb(255 255 255 / 20%);
}

.tk-admin-welcome__link svg {
    width: 1rem;
    height: 1rem;
}

.tk-admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 0.85rem;
}

.tk-admin-action {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tk-admin-action:hover {
    border-color: var(--tk-action-fg, var(--primary-600));
    box-shadow: 0 10px 24px rgb(16 24 40 / 8%);
    transform: translateY(-1px);
}

.tk-admin-action:focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 2px;
}

.tk-admin-action__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: var(--tk-action-bg, var(--primary-50));
    color: var(--tk-action-fg, var(--primary-700));
}

.tk-admin-action__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.tk-admin-action__label {
    display: block;
    font-weight: 800;
}

.tk-admin-action__text {
    display: block;
    margin-top: 0.1rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.35;
}

.tk-admin-action--green { --tk-action-bg: #e7f5ea; --tk-action-fg: #1d6f35; }
.tk-admin-action--blue { --tk-action-bg: #e8f0fe; --tk-action-fg: #1d4ed8; }
.tk-admin-action--teal { --tk-action-bg: #ddf3f1; --tk-action-fg: #0f766e; }
.tk-admin-action--orange { --tk-action-bg: #fff0e6; --tk-action-fg: #c2410c; }
.tk-admin-action--red { --tk-action-bg: #fde8e8; --tk-action-fg: #b91c1c; }
.tk-admin-action--purple { --tk-action-bg: #f1eafe; --tk-action-fg: #6d28d9; }
.tk-admin-action--amber { --tk-action-bg: #fff4d6; --tk-action-fg: #854d0e; }

.tk-admin-todo {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tk-admin-todo__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.tk-admin-todo__title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.tk-admin-todo__icon {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    color: var(--primary-600);
}

.tk-admin-todo__item a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.tk-admin-todo__item a:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

.tk-admin-todo__meta {
    flex-shrink: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.tk-admin-todo__empty {
    margin: 0;
    color: #6b7280;
}

/*
 * Block previews in the page editor: the website's block styles inside the
 * administration. Only `tk-` classes are used, so nothing leaks into Filament's own styles.
 */

.tk-preview {
    padding: 1.25rem 1.5rem 0.25rem;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    font-family: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.tk-preview .tk-block {
    margin-bottom: 1.25rem;
}

.tk-preview h2,
.tk-preview h3 {
    font-weight: 800;
}

.tk-preview .tk-icon {
    flex-shrink: 0;
    width: 1.25em;
    height: 1.25em;
}

.tk-preview__empty {
    margin: 0 0 1rem;
    padding: 1.25rem;
    border: 2px dashed #cfd8d3;
    border-radius: 12px;
    color: #556070;
    text-align: center;
}

/* Tones and buttons as on the website. */
.tk-preview .tk-tone--green { --tk-tone-bg: #e7f5ea; --tk-tone-fg: #1d6f35; }
.tk-preview .tk-tone--blue { --tk-tone-bg: #e8f0fe; --tk-tone-fg: #1d4ed8; }
.tk-preview .tk-tone--teal { --tk-tone-bg: #ddf3f1; --tk-tone-fg: #0f766e; }
.tk-preview .tk-tone--orange { --tk-tone-bg: #fff0e6; --tk-tone-fg: #c2410c; }
.tk-preview .tk-tone--red { --tk-tone-bg: #fde8e8; --tk-tone-fg: #b91c1c; }
.tk-preview .tk-tone--purple { --tk-tone-bg: #f1eafe; --tk-tone-fg: #6d28d9; }
.tk-preview .tk-tone--amber { --tk-tone-bg: #fff4d6; --tk-tone-fg: #854d0e; }

.tk-preview .tk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border: 2px solid #1d6f35;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.tk-preview .tk-btn--primary {
    background: #1d6f35;
    color: #fff;
}

.tk-preview .tk-btn--outline {
    background: #fff;
    color: #1d6f35;
}

.tk-preview .tk-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: #556070;
    font-size: 0.9375rem;
}

/* Long document lists stay short in the editor. */
.tk-preview .tk-docs__group:not(:first-of-type),
.tk-preview .tk-files > li:nth-child(n + 6) {
    display: none;
}

/* Citizen reports: photos and history in the detail (filament/admin/reports). */

.tk-admin-muted {
    margin: 0;
    color: #6b7280;
}

.tk-admin-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.75rem;
}

.tk-admin-photos__item {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.tk-admin-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.tk-admin-photos__item:hover img {
    transform: scale(1.04);
}

.tk-admin-history {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0 0 0 1rem;
    border-left: 3px solid #e5e7eb;
    list-style: none;
}

.tk-admin-history__head {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.tk-admin-history__head span {
    color: #6b7280;
    font-size: 0.8125rem;
}

.tk-admin-history__note {
    margin: 0.35rem 0 0;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #f3f4f6;
    font-size: 0.875rem;
}

.tk-admin-history__note span {
    font-weight: 700;
}

.tk-admin-history__note--public {
    background: var(--primary-50);
}
