﻿/* Background */
/* Taken from IRENA Publishing Handbook 2025-04-14 */
.bg-irena-blue {
    background-color: #0073AE;
}
.bg-irena-grey {
    background-color: #5E5B5C;
}

/* Body */
body {
    font-family: Graphik, sans-serif;
    margin-bottom: 60px;
}

/* Buttons*/
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
/* Eurostat cells*/
.selected-for-update {
    border: 2px solid #059669 !important; /* emerald border */
    position: relative;
}

.selected-for-update::after {
    content: "✔";
    position: absolute;
    bottom: 2px; /* moved to bottom */
    right: 4px; /* bottom right corner */
    font-size: 0.8rem;
    color: #059669;
    font-weight: bold;
}
.eurostat-cell.cursor-pointer:hover {
    background-color: #f0fdf4; /* light hover only for DB cells */
}
/* Fonts */
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Extralight.woff2") format("woff2"),url("/fonts/Graphik-Extralight.woff") format("woff");
    font-weight: 100;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Light.woff2") format("woff2"),url("/fonts/Graphik-Light.woff") format("woff");
    font-weight: 300;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Regular.woff2") format("woff2"),url("/fonts/Graphik-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Medium.woff2") format("woff2"),url("/fonts/Graphik-Medium.woff") format("woff");
    font-weight: 500;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Semibold.woff2") format("woff2"),url("/fonts/Graphik-Semibold.woff") format("woff");
    font-weight: 600;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Bold.woff2") format("woff2"),url("/fonts/Graphik-Bold.woff") format("woff");
    font-weight: 700;
    font-display: swap
}

/* HTML */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Markdown */
.markdown {
    font-family: 'Graphik', sans-serif;
    color: #1f2937; /* slate-800 */
    min-width: 128ch;
    max-width: 256ch;
    margin: 0 auto;
    padding: 4rem;
    background-color: #f9fafb; /* light background */
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.markdown h1, .markdown h2, .markdown h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.markdown h1 {
    font-size: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.25rem;
}
.markdown h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.2rem;
}
.markdown h3 {
    font-size: 1.25rem;
}
.markdown p {
    margin: 1rem 0;
}
.markdown ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}
.markdown li {
    margin-bottom: 0.5rem;
}
.markdown a {
    color: #2563eb; /* blue-600 */
    text-decoration: underline;
}
.markdown code {
    background-color: #f3f4f6;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.875em;
}
.markdown blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1rem;
    color: #6b7280;
    font-style: italic;
    margin: 1rem 0;
}
.markdown img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
    margin-bottom: 2px;
    height: 22px; /* Optional: Force consistent size */
}
    .markdown table {
        border-collapse: collapse;
        width: 100%;
    }

    .markdown th,
    .markdown td {
        border: 1px solid #d0d7de;
        padding: 6px 13px;
    }
/* Polygon */
.polygon {
    position: relative;
    background-color: var(--tw-bg-opacity, 1);
    color: white; /* Ensuring text visibility */
    padding: 10px; /* Padding for text inside the box */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20px 100%, 0% 70%);
    /* clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);*/
    /* clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); */
    /* clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%); */
    /*width: calc(350px+ var(--identation-level)); /* Adjust the width to make the box narrower */
    display: block;
    margin-left: calc(var(--indentation-level, 0) * 20px);
}
/* Scroll */
.scroll-sync-top,
.scroll-sync-bottom {
    overflow-x: auto;
}

.scroll-sync-top .scroll-sync-inner {
    height: 1px;
}

.scroll-sync-top::-webkit-scrollbar,
.scroll-sync-bottom::-webkit-scrollbar {
    height: 10px;
}
div::-webkit-scrollbar {
    width: 10px;
}

div::-webkit-scrollbar-track {
    background-color: #9993 !important;
}

div::-webkit-scrollbar-thumb {
    background-color: #9999 !important;
}

/* Text */
/* Taken from IRENA Publishing Handbook 2025-04-14 */
.text-irena-blue {
    color: #0073AE;
}
.text-irena-grey {
    color: #5E5B5C;
}
.text-shadow-black {
    text-shadow: 1px 1px 5px black;
}
/* Background */
/* Taken from IRENA Publishing Handbook 2025-04-14 */
.bg-irena-blue {
    background-color: #0073AE;
}
.bg-irena-grey {
    background-color: #5E5B5C;
}

/* Body */
body {
    font-family: Graphik, sans-serif;
    margin-bottom: 60px;
}

/* Buttons*/
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Fonts */
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Extralight.woff2") format("woff2"),url("/fonts/Graphik-Extralight.woff") format("woff");
    font-weight: 100;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Light.woff2") format("woff2"),url("/fonts/Graphik-Light.woff") format("woff");
    font-weight: 300;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Regular.woff2") format("woff2"),url("/fonts/Graphik-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Medium.woff2") format("woff2"),url("/fonts/Graphik-Medium.woff") format("woff");
    font-weight: 500;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Semibold.woff2") format("woff2"),url("/fonts/Graphik-Semibold.woff") format("woff");
    font-weight: 600;
    font-display: swap
}
@font-face {
    font-family: Graphik;
    src: url("/fonts/Graphik-Bold.woff2") format("woff2"),url("/fonts/Graphik-Bold.woff") format("woff");
    font-weight: 700;
    font-display: swap
}

/* HTML */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Markdown */
.markdown {
    font-family: 'Graphik', sans-serif;
    color: #1f2937; /* slate-800 */
    min-width: 128ch;
    max-width: 256ch;
    margin: 0 auto;
    padding: 4rem;
    background-color: #f9fafb; /* light background */
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.markdown h1, .markdown h2, .markdown h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.markdown h1 {
    font-size: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.25rem;
}
.markdown h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.2rem;
}
.markdown h3 {
    font-size: 1.25rem;
}
.markdown p {
    margin: 1rem 0;
}
.markdown ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}
.markdown li {
    margin-bottom: 0.5rem;
}
.markdown a {
    color: #2563eb; /* blue-600 */
    text-decoration: underline;
}
.markdown code {
    background-color: #f3f4f6;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.875em;
}
.markdown blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1rem;
    color: #6b7280;
    font-style: italic;
    margin: 1rem 0;
}
.markdown img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
    margin-bottom: 2px;
    height: 22px; /* Optional: Force consistent size */
}
    .markdown table {
        border-collapse: collapse;
        width: 100%;
    }

    .markdown th,
    .markdown td {
        border: 1px solid #d0d7de;
        padding: 6px 13px;
    }
/* Polygon */
.polygon {
    position: relative;
    background-color: var(--tw-bg-opacity, 1);
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20px 100%, 0% 70%);
    display: block;
    margin-left: calc(var(--indentation-level, 0) * 20px);
}
/*
.polygon {
    background-color: inherit;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-left: calc(var(--indentation-level, 0) * 20px);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20px 100%, 0% 70%);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
    */


/* Scroll */
.scroll-sync-top,
.scroll-sync-bottom {
    overflow-x: auto;
}

.scroll-sync-top .scroll-sync-inner {
    height: 1px;
}

.scroll-sync-top::-webkit-scrollbar,
.scroll-sync-bottom::-webkit-scrollbar {
    height: 10px;
}
.scroll-sync-bottom thead th {
    position: sticky;
    top: 0;
    background-color: #f9fafb; /* Tailwind bg-gray-50 */
    z-index: 40; /* Above product column and scroll bars */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05); /* subtle shadow on scroll */
    }
/* Text */
/* Taken from IRENA Publishing Handbook 2025-04-14 */
.text-irena-blue {
    color: #0073AE;
}
.text-irena-grey {
    color: #5E5B5C;
}
.text-shadow-black {
    text-shadow: 1px 1px 5px black;
}
