/*
Theme Name: Theme Compostela-Directory
Author: Loquere.Dev
Description: Completely custom user-end layout.
Version: 1.0
*/


/*
Theme Name: Theme Compostela-Directory
Author: Loquere.Dev
Description: Completely custom user-end layout.
Version: 1.0
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #111;
    background-color: #f8fbf9;
    background-image:
        radial-gradient(ellipse 105% 62% at 52% 118%, rgba(166, 204, 177, 0.32) 0%, rgba(166, 204, 177, 0.18) 44%, transparent 76%),
        radial-gradient(ellipse 82% 44% at 8% 112%, rgba(214, 232, 216, 0.72) 0%, rgba(214, 232, 216, 0.26) 49%, transparent 80%),
        radial-gradient(ellipse 90% 45% at 102% 110%, rgba(224, 238, 225, 0.8) 0%, rgba(224, 238, 225, 0.25) 52%, transparent 82%),
        linear-gradient(#f8fbf9, #f8fbf9);
    background-size: 160% 160%, 160% 160%, 160% 160%, auto;
    background-position: 20% 100%, 0 100%, 100% 100%, 0 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: valley-drift 16s ease-in-out infinite alternate;
}

@keyframes valley-drift {
    to {
        background-position: 80% 85%, 100% 90%, 0 95%, 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }

    .info-card__sketch path {
        animation: none;
        stroke-dashoffset: 0;
    }

    .carousel-track {
        transition: none;
    }
}

.interface-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 30px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(820px, 100%);
    margin: 0 auto 12px;
}

.info-card {
    position: relative;
    min-width: 0;
    min-height: 112px;
    padding: 16px 20px;
    border: 1px solid #dce5df;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f6faf7);
    text-align: center;
    box-shadow: 0 5px 18px rgba(30, 56, 42, 0.06);
}

.info-card__sketch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.info-card__sketch path {
    fill: none;
    stroke: #78a68b;
    stroke-width: 0.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: info-card-draw 1.4s ease-out forwards;
}

.info-card:nth-child(2) .info-card__sketch path {
    animation-delay: 180ms;
}

.info-card:nth-child(3) .info-card__sketch path {
    animation-delay: 360ms;
}

@keyframes info-card-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.info-card__title {
    margin: 0 0 10px;
    color: #36745c;
    font-size: 14px;
    font-weight: 700;
}

.info-card__primary,
.info-card__secondary {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.info-card__primary {
    font-weight: 700;
}

.info-card__secondary {
    color: #555;
}

.info-attribution {
    width: min(820px, 100%);
    margin: -8px auto 10px;
    color: #666;
    font-size: 11px;
    text-align: right;
}

.info-attribution a {
    color: inherit;
}

/* Slider layout */
.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

/* Carousel viewport */
.card-carousel {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border: none;
    border-radius: 80px;
    background: transparent;
}

/* Horizontal post track */
.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

/* Individual post */
.post-card {
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 440px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Featured image */
.card-image-wrapper {
    width: 100%;
    max-width: 600px;
    height: 250px;
    margin-bottom: 20px;
}

.card-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Post text */
.card-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-content h3 {
    margin: 10px 0 15px;
    font-size: clamp(24px, 3vw, 36px);
}

.card-excerpt {
    max-width: 700px;
    line-height: 1.7;
}

.card-excerpt p {
    margin: 0 0 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.read-more:hover {
    background: #444;
}

/* Side navigation buttons */
.slide-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color 160ms ease, transform 160ms ease;
}

.arrow-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Compact chevrons inside the navigation buttons. */
.triangle-left,
.triangle-right {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.triangle-left {
    border-right: 12px solid currentColor;
}

.triangle-right {
    border-left: 12px solid currentColor;
}

.slide-arrow:hover {
    background: #36745c;
    transform: scale(1.06);
}

.slide-arrow:focus-visible {
    outline: 3px solid #36745c;
    outline-offset: 3px;
}

.slide-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.slide-arrow:disabled:hover {
    background: #111;
    transform: none;
}

.carousel-autoplay-control {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.carousel-autoplay-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    color: #36745c;
    cursor: pointer;
}

.carousel-autoplay-toggle:hover {
    border-color: #36745c;
    background: #f3f8f5;
}

.carousel-autoplay-toggle:focus-visible {
    outline: 3px solid #36745c;
    outline-offset: 2px;
}

.autoplay-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Search field below the card */
.search-wrapper {
    width: calc(100% - 220px);
    margin: 20px auto 0;
}

.search-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-wrapper input {
    display: block;
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 90px;
    padding: 20px 30px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    color: #111;
    font-size: 20px;
    outline-offset: 3px;
}

.search-wrapper input:focus-visible {
    border-color: #36745c;
    outline: 2px solid #36745c;
}

.voice-search-button {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.voice-search-icon {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.voice-search-button:hover,
.voice-search-button.is-listening {
    background: #36745c;
}

.voice-search-button.is-listening {
    animation: voice-search-pulse 1.2s ease-in-out infinite;
}

.voice-search-button:focus-visible {
    outline: 3px solid #36745c;
    outline-offset: 3px;
}

.search-status {
    min-height: 1.25em;
    margin: 8px 4px 0;
    color: #555;
    font-size: 14px;
}

@keyframes voice-search-pulse {
    50% {
        box-shadow: 0 0 0 6px rgba(54, 116, 92, 0.2);
    }
}

.search-wrapper input::placeholder {
    color: #555;
    opacity: 1;
}

.job-preview {
    width: calc(100% - 220px);
    margin: 24px auto 0;
}

.job-preview__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.job-preview__heading h2 {
    margin: 0;
    color: #36745c;
    font-size: 20px;
}

.job-preview__heading a,
.job-preview__card h3 a {
    color: #36745c;
}

.job-preview__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.job-preview__card {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #dce5df;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
}

.job-preview__empty {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.job-preview__card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.4;
}

.job-preview__card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.article-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 30px;
}

.article-back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: #36745c;
    font-weight: 600;
    text-decoration: none;
}

.article-back-link:hover {
    text-decoration: underline;
}

.article-header h1 {
    margin: 0;
    font-size: 40px;
    line-height: 1.2;
}

.article-date {
    margin: 12px 0 0;
    color: #555;
}

.article-featured-image {
    margin: 32px 0;
}

.article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-content {
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.article-content img,
.article-content video,
.article-content iframe {
    max-width: 100%;
}

.article-content img {
    height: auto;
}

.article-content a {
    color: #36745c;
}

.site-footer {
    width: 100%;
    padding: 0 30px 32px;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.site-footer a {
    color: #36745c;
}

.site-footer a + a {
    margin-left: 16px;
}

.privacy-policy-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 30px;
}

.privacy-policy {
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.privacy-policy h2 {
    margin: 32px 0 8px;
    font-size: 23px;
    line-height: 1.3;
}

.privacy-policy p {
    margin: 0 0 16px;
}

.privacy-policy a {
    color: #36745c;
}

.submission-notice {
    padding: 12px 16px;
    border: 1px solid #b8d2c2;
    border-radius: 8px;
    background: #f3f8f5;
}

.post-submission-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.post-submission-form label {
    margin-top: 8px;
    font-weight: 700;
}

.post-submission-form input,
.post-submission-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5cf;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font: inherit;
}

.post-submission-form textarea {
    min-height: 200px;
    resize: vertical;
}

.post-submission-form input:focus-visible,
.post-submission-form textarea:focus-visible {
    border-color: #36745c;
    outline: 2px solid #36745c;
    outline-offset: 2px;
}

.post-submission-form .read-more {
    justify-self: start;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.submission-privacy-note {
    margin: 12px 0 4px;
    font-size: 14px;
}

.submission-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.article-modal-open {
    overflow: hidden;
}

.article-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.article-modal[hidden] {
    display: none;
}

.article-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.article-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.article-modal__toolbar {
    position: sticky;
    z-index: 2;
    top: -48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin: -48px -48px 24px;
    padding: 12px 16px;
    background: #fff;
}

.article-modal__close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #eee;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.article-modal__close:hover {
    background: #ddd;
}

.article-modal__close:focus-visible {
    outline: 3px solid #36745c;
    outline-offset: 2px;
}

.article-read-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.article-read-controls[hidden] {
    display: none;
}

.article-read-button,
.article-stop-button {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.article-read-button:hover:not(:disabled),
.article-stop-button:hover:not(:disabled) {
    border-color: #36745c;
    color: #36745c;
}

.article-read-button:focus-visible,
.article-stop-button:focus-visible {
    outline: 3px solid #36745c;
    outline-offset: 2px;
}

.article-read-button:disabled,
.article-stop-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.article-read-button svg,
.article-stop-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.article-read-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    color: #555;
    font-size: 14px;
}

.article-modal__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 28px 0;
    border-radius: 8px;
}

.article-modal__content[aria-busy="true"] {
    min-height: 120px;
}

.article-modal__status {
    color: #555;
}

.search-highlight {
    border-radius: 2px;
    background: #ffe66d;
    color: #111;
    padding: 0 2px;
}

.search-highlight:focus {
    outline: 2px solid #36745c;
    outline-offset: 2px;
}

/* Mobile layout */
@media (max-width: 700px) {
    .interface-container {
        padding: 16px 12px;
    }

    .info-cards {
        gap: 8px;
        margin-bottom: 10px;
    }

    .info-card {
        min-height: 116px;
        padding: 12px 6px;
        border-radius: 14px;
    }

    .info-card__title {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .info-card__primary,
    .info-card__secondary {
        font-size: 12px;
    }

    .slider-wrapper {
        gap: 6px;
    }

    .card-carousel {
        border-radius: 30px;
    }

    .post-card {
        min-height: 340px;
        padding: 20px;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .slide-arrow {
        width: 42px;
        height: 42px;
        min-height: 42px;
    }

    .search-wrapper {
        width: 100%;
        margin-top: 12px;
    }

    .job-preview {
        width: 100%;
        margin-top: 18px;
    }

    .job-preview__list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .job-preview__card {
        padding: 12px 14px;
    }

    .search-wrapper input {
        min-height: 65px;
        padding: 15px;
        font-size: 15px;
    }

    .voice-search-button {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .article-container {
        padding: 28px 16px;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
    }

    .privacy-policy-container {
        padding: 28px 16px;
    }

    .privacy-policy {
        font-size: 16px;
    }

    .privacy-policy h2 {
        font-size: 20px;
    }

    .site-footer {
        padding: 0 16px 24px;
    }

    .article-modal {
        padding: 12px;
    }

    .article-modal__dialog {
        max-height: 94vh;
        padding: 28px 20px;
    }

    .article-modal__toolbar {
        top: -28px;
        gap: 6px;
        margin: -28px -20px 20px;
        padding: 8px 10px;
    }

    .article-read-button,
    .article-stop-button,
    .article-modal__close {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .article-read-button svg,
    .article-stop-button svg {
        width: 18px;
        height: 18px;
    }

}
