@import url("bulma.min.0e2e7a860780.css");
@import url("font-inter.534c9c690b12.css");
@import url("font-libertinus-serif.7499d31a479c.css");

:root {
    --bulma-primary-h: 0deg;
    --bulma-primary-s: 41%;
    --bulma-primary-l: 51%;
    --bulma-link-h: 0deg;
    --bulma-link-s: 41%;
    --bulma-link-l: 51%;
    --bulma-scheme-h: 0;
    --bulma-family-primary: Inter, system-ui, Segoe UI, Roboto, Ubuntu, Helvetica Neue, Helvetica, Arial, sans-serif;
    --bulma-family-secondary: Libertinus Serif, Times New Roman, Times, Liberation Serif, serif;

    --result-note-opacity: 0.5;
}

.is-family-primary {
    font-family: var(--bulma-family-primary) !important;
}

.is-family-secondary {
    font-family: var(--bulma-family-secondary) !important;
}

.is-family-sans-serif {
    font-family: var(--bulma-family-primary) !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    -webkit-text-size-adjust: none;
}

@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

body>main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.home-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.footer {
    --footer-font-size: 0.875rem;
    --bulma-block-spacing: 1rem;
    --bulma-footer-padding: 1.5rem calc(1.5rem + env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) calc(1.5rem + env(safe-area-inset-left, 0px));
    
    overflow: visible;
    margin-left: calc(env(safe-area-inset-left, 0px) * -1);
    margin-right: calc(env(safe-area-inset-right, 0px) * -1);
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) * -1);
    font-size: var(--footer-font-size);
}

.footer .breadcrumb {
    font-size: var(--footer-font-size);
}

.breadcrumb li:last-child a {
	padding-inline-end: 0;
}

.header {
    overflow: visible;
}

.header .navbar {
    margin-top: calc(env(safe-area-inset-top, 0px) * -1);
    margin-left: calc(env(safe-area-inset-left, 0px) * -1);
    margin-right: calc(env(safe-area-inset-right, 0px) * -1);
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);

    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.header .navbar-search {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    justify-content: flex-end;
}

.share-button {
    line-height: 0;
    position: fixed;
    right: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
    z-index: 1000;
    border-radius: 100%;
}

.share-button::part(shareButton) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    pointer-events: none;
}

/* Custom style for results */

.result-block {
    --bulma-link-h: 0;
    --bulma-link-s: 41%;
    --bulma-link-l: 51%;

    --reduced-saturation: 5%;
    --bulma-message-h: var(--bulma-link-h);
    --bulma-message-s: calc(var(--bulma-link-s) / 2);
    --bulma-link-text: hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-l));

    color: hsl(var(--bulma-message-h), var(--reduced-saturation), var(--bulma-message-l));
}

.result-block a {
    color: var(--bulma-link-text) !important;
    text-decoration: none !important;
}

.result-block a:hover {
    text-decoration: underline !important;
}

.result-block sup {
    line-height: 0;
}

.result-body {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .result-body {
        font-size: 1.5rem;
    }
}

.dop-result {
    --bulma-link-h: 2;
    --bulma-link-s: 96%;
    --bulma-link-l: 28%;
}

.dop-result .dop-audio::before {
    content: "🔊";
    font-style: normal;
    font-size: 80%;
    display: inline-block;
    margin-right: 0.1em;
}

.dipi-result {
    --bulma-link-h: 0;
    --bulma-link-s: 51%;
    --bulma-link-l: 40%;
}

.dipi-result .dipi-note {
    opacity: var(--result-note-opacity);
}

.dipi-result .dipi-note::before {
    content: "[";
}

.dipi-result .dipi-note::after {
    content: "]";
}

.hoepli-result {
    --bulma-link-h: 210;
    --bulma-link-s: 97%;
    --bulma-link-l: 38%;
}

.hoepli-result .hoepli-gram {
    font-style: italic;
    opacity: var(--result-note-opacity);
}

.hoepli-result strong.hoepli-acc::after {
    content: ". ";
}

.hoepli-result .hoepli-spec {
    font-style: italic;
    opacity: var(--result-note-opacity);
}

.hoepli-result .hoepli-spec::after {
    content: " ";
}

.treccani-result {
    --bulma-link-h: 354;
    --bulma-link-s: 30%;
    --bulma-link-l: 31%;
}

.treccani-result .treccani-strong-dot::after {
    content: " ";
}

.corriere-result {
    --bulma-link-h: 190;
    --bulma-link-s: 85%;
    --bulma-link-l: 25%;
}

.corriere-result .corriere-grl,
.corriere-result .corriere-box,
.corriere-result .corriere-green {
    font-style: italic;
    opacity: var(--result-note-opacity);
}

.corriere-result .corriere-grl::after,
.corriere-result .corriere-box::after,
.corriere-result .corriere-green::after {
    content: " ";
}

.corriere-result p>strong:first-child::after,
.corriere-result li>strong:first-child::after {
    content: ". ";
}

.garzanti-result {
    --bulma-link-h: 220;
    --bulma-link-s: 56%;
    --bulma-link-l: 38%;
}

.garzanti-result strong::after {
    content: ". ";
}

.internazionale-result {
    --bulma-link-h: 48;
    --bulma-link-s: 90%;
    --bulma-link-l: 40%;
}

.internazionale-result .internazionale-lemma_qualifica,
.internazionale-result abbr {
    opacity: var(--result-note-opacity);
}

@media (prefers-color-scheme: dark) {
    .result-block {
        --bulma-link-text: hsl(var(--bulma-link-h), var(--bulma-link-s), calc(100% - var(--bulma-link-l)));
    }
}

[data-theme=dark] .result-block,
.theme-dark .result-block {
    --bulma-link-text: hsl(var(--bulma-link-h), var(--bulma-link-s), calc(100% - var(--bulma-link-l)));
}
