/* Raporto Stealth Mode — Shared Styles */

/* Reset and base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: #2d2d2d;
    background-color: #fafafa;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 4rem 2rem;
    }
}

/* Logo */
.logo {
    display: block;
    width: 240px;
    height: auto;
    margin: 0 0 3rem 0;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.logo-link:focus,
.logo-link:focus-visible {
    outline: none;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #354840;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.75rem;
        margin-bottom: 2.5rem;
    }
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #354840;
    line-height: 1.3;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    h2 {
        font-size: 1.75rem;
        margin-top: 4rem;
    }
}

h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #354840;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    color: #4a4a4a;
}

.intro {
    font-size: 1.1875rem;
    line-height: 1.65;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .intro {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }
}

/* Status notice */
.status-notice {
    padding: 1.25rem 1.5rem;
    background-color: #f5f5f5;
    border-left: 3px solid #354840;
    margin: 2rem 0 3rem;
    font-size: 0.9375rem;
    color: #4a4a4a;
}

/* Links */
a {
    color: #354840;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

a:focus {
    outline: 2px solid #354840;
    outline-offset: 3px;
}

/* Report cards */
.report-cards {
    margin: 2rem 0 1.5rem;
    display: grid;
    gap: 1.25rem;
}

.report-card {
    padding: 1.75rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
    border-color: #354840;
    box-shadow: 0 2px 8px rgba(53, 72, 64, 0.08);
}

.report-card h4 {
    font-size: 1.125rem;
    font-weight: 400;
    color: #354840;
    margin-bottom: 0.5rem;
}

.report-card p {
    font-size: 0.9375rem;
    color: #6a6a6a;
    margin-bottom: 0.75rem;
}

.report-card a {
    display: inline-block;
    text-decoration: none;
    font-size: 0.9375rem;
    padding-bottom: 2px;
    border-bottom: 1px solid #354840;
}

.report-card a:hover {
    opacity: 1;
    border-bottom-width: 2px;
}

.report-card a:focus {
    outline: 2px solid #354840;
    outline-offset: 4px;
}

/* Note box */
.note {
    padding: 1.25rem 1.5rem;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    color: #5a5a5a;
    line-height: 1.6;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0;
}

ul li {
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 1.0625rem;
    color: #4a4a4a;
    line-height: 1.6;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #354840;
}

/* Footer */
.footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e5e5e5;
}

.footer p {
    font-size: 0.875rem;
    color: #6a6a6a;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: #354840;
    text-decoration: none;
    margin-right: 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links a:not(:last-child)::after {
    content: " ·";
    margin-left: 0.5rem;
    color: #ababab;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body {
        background-color: #ffffff;
    }

    .report-card {
        border: 1px solid #000;
        break-inside: avoid;
    }

    .cookie-banner {
        display: none;
    }
}

/* Cookie Consent Banner - Raporto Premium */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f7f4;
    border-top: 1px solid #e1dfdb;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 1.5rem 0;
}

.cookie-banner-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
    padding-top: 0.25rem;
    /* Optical alignment with buttons */
}

.cookie-banner-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    color: #354840;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.cookie-banner-text p {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 0.25rem 0;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
    padding-top: 0.25rem;
    /* Matches text alignment */
}

.cookie-btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #354840;
    background: transparent;
    color: #354840;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-align: center;
}

.cookie-btn:hover {
    background-color: #354840;
    color: #ffffff;
}

.cookie-btn:focus {
    outline: 2px solid #354840;
    outline-offset: 2px;
}

.cookie-btn-accept {
    background-color: #354840;
    color: #ffffff;
    border-color: #2a3a33;
}

.cookie-link {
    display: inline-block;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    color: #354840;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1.25rem;
    }

    .cookie-banner-actions {
        width: 100%;
        padding-top: 0;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-banner-text {
        padding-top: 0;
    }
}

/* Contact Page Styles */
.contact-link {
    color: #354840;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.contact-link:hover {
    border-bottom-color: #354840;
}

.address {
    font-style: normal;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin: 0.5rem 0 2rem;
}

ul {
    padding-left: 1.5rem;
    margin: 1rem 0 2rem;
}

ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Print styles */
@media print {
    .cookie-banner {
        display: none;
    }
}