/* Basic Reset & Body Styles */
:root {
    --ocps-orange: #E87722;
    --ocps-dark-blue: #041E42;
    --ocps-light-grey: #B1B3B3;
    --ocps-dark-grey: #27251F;

    /* Assigning roles to OCPS colors */
    --primary-color: var(--ocps-orange);         /* Used for main accents, headings */
    --secondary-color: var(--ocps-light-grey);   /* Used for secondary text, borders */
    --background-color: var(--ocps-dark-blue);   /* Main background for the body */
    --card-background: #ffffff;                 /* Cards/container will remain white for contrast */
    --text-color: var(--ocps-dark-grey);         /* Darker text for readability on white backgrounds */
    --border-color: var(--ocps-light-grey);
    --hover-shadow: rgba(0, 0, 0, 0.2);          /* Slightly darker shadow for contrast */
	
	--ocps-navy: #121d4f;
    --warning-red: #7a1f1f;
    --warning-background: #fff4e8;
    --orange-dark: #b94700;
    --border: #cbd2da;
    --text: #262b33;
}


* {
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', 'Montserrat', 'Spectral', 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color); /* Dark blue background */
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 960px;
    align-self: center;
    margin: 20px auto;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* Slightly more prominent shadow */
    text-align: center;
}

/* Header Styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    width: 480px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px;
}

header h1 {
    color: var(--ocps-dark-blue); /* Changed to dark blue for contrast on white background */
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 600;
}

header p {
    font-size: 1.2em;
    color: var(--ocps-dark-grey); /* Dark grey for secondary text */
    margin-bottom: 0; /* Adjusted since logo is above */
}

/* Combine with CSS for visual disabling and pointer-events */
.disabled-link-aria[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
  color: #aaa;
  text-decoration: none;
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.card-grid .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  text-align: center;
}

.card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--hover-shadow); /* More pronounced hover shadow */
}

.card h2 {
    color: var(--ocps-orange); /* Orange for card headings */
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    font-size: 1em;
    color: var(--ocps-dark-grey); /* Dark grey for card body text */
    margin-bottom: 20px;
}

.card .arrow {
    font-size: 2em;
    color: var(--ocps-orange); /* Orange for arrow */
    position: absolute;
    bottom: 20px;
    right: 25px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.card:hover .arrow {
    opacity: 1;
}

/* Footer Styles */
footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: var(--ocps-light-grey); /* Light grey for footer text */
}

/* --- Documentation Page Specific Styles --- */
.documentation-page .container {
    text-align: left; /* Align text left for better readability on documentation page */
}

.documentation-content {
    margin-top: 30px;
}

.documentation-content section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color); /* Subtle separator for sections */
}

.documentation-content section:last-child {
    border-bottom: none; /* No border for the last section */
}

.documentation-content h2 {
    color: var(--ocps-dark-blue); /* Section titles in dark blue */
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.documentation-content h3 {
    color: var(--ocps-orange); /* Sub-headings in orange */
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.documentation-content p {
    color: var(--ocps-dark-grey);
    margin-bottom: 15px;
}

.documentation-content ol,
.documentation-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--ocps-dark-grey);
}

.documentation-content ol li,
.documentation-content ul li {
    margin-bottom: 8px;
    text-align:left;
}

.documentation-content a {
    color: var(--ocps-orange); /* Links in orange */
    text-decoration: none;
    transition: color 0.2s ease;
}

.documentation-content a:hover {
    text-decoration: underline;
    color: var(--ocps-dark-blue); /* Dark blue on hover */
}

.documentation-content .note {
    font-style: italic;
    color: var(--secondary-color);
    border-left: 3px solid var(--ocps-orange);
    padding-left: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* FAQ Item Styling */
.faq-item {
    background-color: #f8f9fa; /* Light grey background for FAQ items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--ocps-dark-blue); /* FAQ question in dark blue */
    font-size: 1.2em;
}

/* Back to Home Button */
.back-to-home {
    margin-top: 50px;
    text-align: center;
}

.button-link {
    display: inline-block;
    background-color: var(--ocps-orange);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button-link:hover {
    background-color: #d16a1b; /* Slightly darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    
}

.input-section button {
    display: inline-block;
    background-color: var(--ocps-orange);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.input-section button:hover {
    background-color: #d16a1b; /* Slightly darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.input-section input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 25px; /* Adjusted horizontal padding to match button, keep vertical */
    border: 1px solid var(--border-color);
    border-radius: 25px; /* Increased for a more rounded, pill-like shape */
    font-size: 1.1em; /* Matched button's font size */
    background-color: var(--card-bg);
    color: var(--text-main);
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
/* Keep the placeholder and focus styles as they are: */
.input-section input[type="text"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.input-section input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 232, 119, 34), 0.3);
}
.banner-page {
    width: min(1100px, calc(100% - 32px));
    margin: 40px auto;
}

.sspr-warning {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 14px 18px;
    border: 2px solid var(--warning-red);
    border-left-width: 8px;
    border-radius: 0;
    background: var(--warning-background);
    color: #27231f;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sspr-warning:hover {
    background: #ffe6cf;
}

.sspr-warning:focus-visible {
    outline: 3px solid var(--ocps-navy);
    outline-offset: 3px;
}

.sspr-warning__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--warning-red);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.sspr-warning__message {
    flex: 1;
}

.sspr-warning__title {
    display: block;
    margin-bottom: 2px;
    color: #651818;
    font-size: 1.1rem;
    font-weight: 700;
}

.sspr-warning__action {
    margin-left: auto;
    color: var(--ocps-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reset-dialog {
    width: min(920px, calc(100% - 32px));
    max-height: 90vh;
    padding: 0;
    overflow: auto;
    border: 0;
    border-top: 6px solid var(--orange-dark);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 18px 60px rgb(0 0 0 / 35%);
}

.reset-dialog::backdrop {
    background: rgb(0 0 0 / 68%);
}

.reset-dialog__header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #d7dce2;
    background: #f7f8fa;
}

.reset-dialog__header h2 {
    margin: 0;
    color: var(--ocps-navy);
    font-size: 1.55rem;
    line-height: 1.3;
}

.reset-dialog__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 2px solid var(--ocps-navy);
    border-radius: 4px;
    background: #fff;
    color: var(--ocps-navy);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.reset-dialog__close:hover,
.reset-dialog__close:focus-visible {
    background: var(--ocps-navy);
    color: #fff;
}

.reset-dialog__body {
    padding: 24px;
}

.reset-dialog__lead {
    margin-top: 0;
    padding: 12px 14px;
    border-left: 4px solid var(--warning-red);
    background: var(--warning-background);
}

.unsupported-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.unsupported-page {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f7f8fa;
}

.unsupported-page img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    border: 1px solid #adb5bf;
    background: #fff;
}

.unsupported-page figcaption {
    margin-top: 12px;
}

.unsupported-page figcaption strong {
    display: block;
    margin-bottom: 4px;
    color: var(--warning-red);
}

.reset-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid #d7dce2;
    background: #f7f8fa;
}

.reset-dialog__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 2px solid var(--ocps-navy);
    border-radius: 4px;
    background: var(--ocps-navy);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.reset-dialog__button--secondary {
    background: #fff;
    color: var(--ocps-navy);
}

.reset-dialog__button:hover,
.reset-dialog__button:focus-visible {
    outline: 3px solid var(--orange-dark);
    outline-offset: 2px;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .sspr-warning {
        align-items: flex-start;
    }

    .sspr-warning__action {
        display: none;
    }

    .unsupported-pages {
        grid-template-columns: 1fr;
    }

    .unsupported-page img {
        height: auto;
        max-height: 360px;
    }

    .reset-dialog__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .reset-dialog__button,
    .reset-dialog__footer form {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }

    header p {
        font-size: 1em;
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }

    .container {
        padding: 20px;
    }

    .documentation-content h2 {
        font-size: 1.5em;
    }

    .documentation-content h3 {
        font-size: 1.1em;
    }

    .button-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }

}
