.artesa-imported-content { color: #111; line-height: 1.65; }
.artesa-hide-desktop { display: none !important; }
.artesa-import-row {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 32px);
    margin: 0 auto clamp(24px, 5vw, 56px);
    padding: clamp(12px, 2vw, 24px);
}

/* Pagina Proiecte finalizate: taburi, proiecte recente și arhivă cronologică. */
.artesa-completed-projects {
    --artesa-blue: #0754db;
    --artesa-cyan: #24bdcc;
    --artesa-ink: #101820;
    margin: 0 auto;
    max-width: 1500px;
    padding: 34px clamp(20px, 5vw, 78px) 80px;
}
.artesa-project-tabs {
    border-radius: 4px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
    margin-bottom: 38px;
}
.artesa-project-tab {
    align-items: center;
    background: #edf7fc;
    border: 1px solid #cbdfe9;
    border-radius: 7px;
    color: var(--artesa-ink);
    display: flex;
    font-family: Montserrat, sans-serif;
    font-size: clamp(16px, 1.4vw, 21px);
    font-weight: 700;
    gap: 9px;
    justify-content: center;
    min-height: 72px;
    padding: 14px 20px;
    text-decoration: none !important;
}
.artesa-project-tab__count { font-weight: inherit; white-space: nowrap; }
.artesa-project-tab--all:not(.is-active) { background: #f5fbff; }
.artesa-project-tab.is-active { background: var(--artesa-cyan); color: #fff; }
.artesa-project-tab:not(.is-active):hover,
.artesa-project-tab:not(.is-active):focus-visible { background: #d8f4f7; color: var(--artesa-ink); }
.artesa-completed-featured {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.7fr 1fr;
    grid-template-rows: repeat(2, minmax(230px, 1fr));
}
.artesa-completed-card {
    background: #fff;
    border: 1px solid #d8e4eb;
    border-radius: 5px;
    color: var(--artesa-ink);
    overflow: hidden;
    position: relative;
}
.artesa-completed-card--lead { grid-row: 1 / 3; min-height: 540px; }
.artesa-completed-card--secondary { display: grid; grid-template-columns: 1fr; min-height: 250px; }
.artesa-completed-card__media { display: block; height: 100%; min-height: 170px; overflow: hidden; }
.artesa-completed-card__media img,
.artesa-completed-card__media .artesa-project-card__placeholder {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}
.artesa-completed-card:hover .artesa-completed-card__media img { transform: scale(1.025); }
.artesa-completed-card--lead .artesa-completed-card__media { inset: 0; position: absolute; }
.artesa-completed-card--lead .artesa-completed-card__media::after {
    background: linear-gradient(0deg, rgba(5, 20, 43, .95), rgba(5, 20, 43, .08) 68%);
    content: "";
    inset: 0;
    position: absolute;
}
.artesa-completed-card__content { padding: 18px 20px 20px; position: relative; }
.artesa-completed-card--lead .artesa-completed-card__content {
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 26px 28px;
    position: absolute;
    right: 0;
    z-index: 1;
}
.artesa-completed-card__meta {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .035em;
    margin: 0 0 9px;
    text-transform: uppercase;
}
.artesa-completed-card--lead .artesa-completed-card__date,
.artesa-completed-card--lead .artesa-completed-card__location,
.artesa-completed-card--secondary .artesa-completed-card__date,
.artesa-completed-card--secondary .artesa-completed-card__location {
    display: block;
}
.artesa-completed-card--lead .artesa-completed-card__date + .artesa-completed-card__location,
.artesa-completed-card--secondary .artesa-completed-card__date + .artesa-completed-card__location {
    margin-top: 2px;
}
.artesa-completed-card__badge {
    background: #b9f1f5;
    border-radius: 999px;
    color: #071c28;
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 8px;
    padding: 5px 12px;
    text-transform: uppercase;
}
.artesa-completed-card h3 { font-family: Montserrat, sans-serif; font-size: clamp(20px, 2vw, 30px); line-height: 1.12; margin: 0; }
.artesa-completed-card h3 a { color: inherit; text-decoration: none; }
.artesa-completed-card__excerpt { font-size: 14px; line-height: 1.5; margin: 9px 0 0; }
.artesa-completed-card__title-arrow { color: inherit; display: inline; white-space: nowrap; }
.artesa-completed-archive-head {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    margin: 54px 0 14px;
}
.artesa-completed-archive-head h2 { font-family: Montserrat, sans-serif; font-size: clamp(28px, 3vw, 44px); margin: 0; }
.artesa-project-years { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; margin-left: auto; }
.artesa-project-years a {
    background: #eaf2f7;
    border: 1px solid #cbdfe9;
    border-radius: 999px;
    color: #263746;
    font-size: 12px;
    min-width: 48px;
    padding: 8px 13px;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}
.artesa-project-year__count { font-size: inherit; font-weight: 400; }
.artesa-project-years a.is-active { background: var(--artesa-cyan); color: #fff; }
.artesa-project-years a:not(.is-active):hover,
.artesa-project-years a:not(.is-active):focus-visible { background: #d8f4f7; color: #263746; }
.artesa-completed-archive {
    border-bottom: 0 !important;
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* RuralBots: carduri mari egale, bazate pe cardul principal din Proiecte finalizate. */
.artesa-project-showcase {
    display: grid;
    gap: 22px;
    grid-auto-rows: 1fr;
}
.artesa-project-showcase--1 { grid-template-columns: 1fr; }
.artesa-project-showcase--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artesa-project-showcase--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.artesa-project-showcase--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.artesa-project-showcase .artesa-completed-card--lead {
    aspect-ratio: 16 / 9;
    color: #fff;
    grid-row: auto;
    height: auto;
    min-height: 0;
}
.artesa-project-showcase .artesa-completed-card--lead h3,
.artesa-project-showcase .artesa-completed-card--lead h3 a,
.artesa-project-showcase .artesa-completed-card--lead h3 a:visited,
.artesa-project-showcase .artesa-completed-card--lead .artesa-completed-card__meta,
.artesa-project-showcase .artesa-completed-card--lead .artesa-completed-card__excerpt {
    color: #fff;
}

/* Widgeturi reutilizabile pentru paginile programelor ARTESA. */
.artesa-program-projects-widget,
.artesa-program-articles-widget {
    --artesa-blue: #0754db;
    --artesa-cyan: #24bdcc;
    --artesa-ink: #101820;
    box-sizing: border-box;
    max-width: 100%;
}
.artesa-program-projects-widget .artesa-project-showcase,
.artesa-program-articles-widget .artesa-program-articles__grid {
    width: 100%;
}
.artesa-program-articles-widget .artesa-program-articles__grid {
    column-gap: 32px;
}
.artesa-program-articles-widget .artesa-completed-card--archive:nth-child(n) {
    margin-left: 0;
    margin-right: 0;
}
.artesa-program-articles-widget .artesa-completed-card--archive h3 a,
.artesa-program-articles-widget .artesa-completed-card--archive h3 a:visited {
    color: var(--artesa-ink);
}
.artesa-program-articles__actions {
    margin-top: 32px;
    text-align: center;
}
.artesa-program-articles__button {
    background: var(--artesa-blue);
    border: 1px solid var(--artesa-blue);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 22px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.artesa-program-articles__button:hover,
.artesa-program-articles__button:focus-visible {
    background: #003aaf;
    border-color: #003aaf;
    color: #fff;
}
.artesa-program-articles__button[aria-busy="true"] {
    cursor: progress;
    opacity: .65;
}
.artesa-program-articles__error {
    color: #a61b1b;
    margin: 12px 0 0;
}

/* Articole Timeline afișate exact în ritmul vizual al Arhivei proiectelor. */
.artesa-timeline-archive .artesa-timeline-archive-card {
    min-width: 0;
}
.artesa-timeline-archive .artesa-completed-card__media {
    background: #edf7fc;
}
.artesa-completed-card--archive {
    align-items: stretch;
    border-width: 1px 0 0;
    border-radius: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    min-height: 0;
    padding: 12px 12px 12px 0;
}
.artesa-completed-card--archive:nth-child(odd) { margin-right: 22px; }
.artesa-completed-card--archive:nth-child(even) { margin-left: 22px; }
.artesa-completed-card--archive:last-child,
.artesa-completed-card--archive:nth-last-child(2):nth-child(odd) { border-bottom-width: 1px; }
.artesa-completed-card--archive .artesa-completed-card__media {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    position: relative;
}
.artesa-completed-card--archive .artesa-completed-card__media img,
.artesa-completed-card--archive .artesa-completed-card__media .artesa-project-card__placeholder {
    height: 100% !important;
    inset: 0;
    max-height: none;
    object-fit: cover;
    position: absolute;
    width: 100% !important;
}
.artesa-completed-card[style*="--artesa-image-focus"] .artesa-completed-card__media img { object-position: center var(--artesa-image-focus) !important; }
.artesa-completed-card--archive .artesa-completed-card__content { align-self: center; padding: 0; }
.artesa-completed-card--archive h3 { font-size: 16px; }
.artesa-completed-card--archive .artesa-completed-card__meta { color: #52606d; font-size: 10px; margin-bottom: 5px; }
.artesa-completed-card--archive .artesa-completed-card__date,
.artesa-completed-card--archive .artesa-completed-card__location { display: block; }
.artesa-completed-card--archive .artesa-completed-card__date + .artesa-completed-card__location { margin-top: 2px; }
.artesa-completed-empty,
.artesa-completed-note { margin: 42px 0; text-align: center; }

@media (max-width: 900px) {
    .artesa-project-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .artesa-project-tab--all { grid-column: 1 / -1; }
    .artesa-completed-featured { grid-template-columns: 1.35fr 1fr; }
    .artesa-completed-card--lead { min-height: 490px; }
    .artesa-completed-archive { grid-template-columns: 1fr; }
    .artesa-project-showcase--2,
    .artesa-project-showcase--3,
    .artesa-project-showcase--4 { grid-template-columns: 1fr; }
    .artesa-completed-card--archive:nth-child(n) { margin-left: 0; margin-right: 0; }
    .artesa-completed-card--archive:nth-last-child(2):nth-child(odd):not(:last-child) { border-bottom-width: 0; }
}

@media (max-width: 1024px) {
    .artesa-completed-card--archive { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .artesa-completed-projects { padding: 20px 16px 54px; }
    .artesa-project-tabs { margin-bottom: 24px; }
    .artesa-project-tab { font-size: 13px; min-height: 58px; padding: 10px 8px; }
    .artesa-completed-featured { display: block; }
    .artesa-completed-card--lead,
    .artesa-completed-card--secondary { margin-bottom: 16px; min-height: 0; }
    .artesa-completed-card--lead .artesa-completed-card__media { height: 290px; position: relative; }
    .artesa-completed-card--lead .artesa-completed-card__content { background: #071c28; position: relative; }
    .artesa-project-showcase { grid-template-columns: 1fr; }
    .artesa-project-showcase .artesa-completed-card--lead { aspect-ratio: auto; height: auto; min-height: 0; }
    .artesa-completed-card--secondary .artesa-completed-card__media { height: 210px; }
    .artesa-completed-archive-head { align-items: flex-start; flex-direction: column; margin-top: 38px; }
    .artesa-project-years { justify-content: flex-start; margin-left: 0; }
    .artesa-completed-card--archive { gap: 10px; padding-right: 12px; }
}
.artesa-import-col { flex: 1 1 280px; min-width: 0; }
.artesa-col-12 { flex-basis: 100%; }
.artesa-col-8 { flex-basis: calc(66.666% - 16px); }
.artesa-col-6 { flex-basis: calc(50% - 16px); }
.artesa-col-4 { flex-basis: calc(33.333% - 16px); }
.artesa-col-3 { flex-basis: calc(25% - 16px); }
.artesa-image { margin: 0; }
.artesa-image img,
.artesa-gallery img,
.artesa-service-card img {
    border-radius: 12px;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}
.artesa-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.artesa-gallery figure { margin: 0; }
.artesa-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.artesa-video,
.artesa-embed { max-width: 100%; overflow: hidden; }
.artesa-video iframe,
.artesa-embed iframe { max-width: 100%; }
.artesa-button {
    background: #024ad8;
    border-radius: 8px;
    color: #fff !important;
    display: inline-block;
    font-weight: 600;
    padding: 11px 18px;
    text-decoration: none;
}
.artesa-service-card,
.artesa-iconbox {
    background: #fff;
    border: 1px solid #d9e2e8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(2, 74, 216, .08);
    overflow: hidden;
}
.artesa-service-body,
.artesa-iconbox { padding: 20px; }
.artesa-card-link,
.artesa-read-more { color: #024ad8; font-weight: 600; }
.artesa-accordion-item {
    border: 1px solid #d9e2e8;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}
.artesa-accordion-item summary {
    background: #24bdcc;
    cursor: pointer;
    font-weight: 600;
    padding: 14px 18px;
}
.artesa-accordion-content { padding: 18px; }
.artesa-counter { text-align: center; }
.artesa-counter strong { color: #024ad8; display: block; font-size: clamp(2rem, 5vw, 3.5rem); }
.artesa-counter span { display: block; }
.artesa-project-grid {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}
.artesa-project-grid--1 { grid-template-columns: 1fr; }
.artesa-project-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artesa-project-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.artesa-project-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.artesa-project-grid--weighted { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.artesa-project-grid--weighted > .artesa-project-card:first-child { grid-column: span 4; }
.artesa-project-grid--weighted > .artesa-project-card:nth-child(2) { grid-column: span 2; }
.artesa-project-grid--weighted > .artesa-project-card:nth-child(n + 3) { grid-column: span 3; }
.artesa-project-grid--weighted > .artesa-project-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.artesa-project-grid--horizontal { grid-template-columns: 1fr; }
.artesa-project-grid--horizontal .artesa-project-card { flex-direction: row; }
.artesa-project-grid--horizontal .artesa-project-card__image {
    flex: 0 0 44%;
    height: 190px;
    max-height: 190px;
    min-height: 190px;
}
.artesa-project-grid--horizontal .artesa-project-card__image img,
.artesa-project-grid--horizontal .artesa-project-card__placeholder {
    aspect-ratio: auto;
    height: 100%;
    max-height: 190px;
    object-fit: cover;
    width: 100%;
}
.artesa-project-grid--horizontal .artesa-project-card__body { padding: 22px; }
.artesa-project-card {
    background: #fff;
    border: 1px solid #dbe6ef;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(17, 24, 39, .08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.artesa-project-card:hover {
    box-shadow: 0 18px 42px rgba(2, 74, 216, .14);
    transform: translateY(-4px);
}
.artesa-project-card__image {
    background: linear-gradient(135deg, #024ad8, #24bdcc);
    display: block;
    overflow: hidden;
}
.artesa-project-card__image img {
    aspect-ratio: 16 / 10;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}
.artesa-project-card--fit-contain .artesa-project-card__image { background: #fff; }
.artesa-project-card--fit-contain .artesa-project-card__image img {
    object-fit: contain;
    padding: 10px;
}
.artesa-project-card:hover .artesa-project-card__image img { transform: scale(1.035); }
.artesa-project-card__placeholder {
    align-items: center;
    aspect-ratio: 16 / 10;
    color: #fff;
    display: flex;
    font-size: 1.4rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: .12em;
}
.artesa-project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}
.artesa-project-card__body h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0 0 12px;
}
.artesa-project-card__body h3 a { color: #111; text-decoration: none; }
.artesa-project-card__body p {
    color: #46515c;
    line-height: 1.6;
    margin: 0 0 22px;
}
.artesa-project-card__link {
    color: #024ad8;
    font-weight: 700;
    margin-top: auto;
    text-decoration: none;
}
.artesa-project-card__link span { display: inline-block; transition: transform .2s ease; }
.artesa-project-card__link:hover span { transform: translateX(4px); }
.artesa-projects-empty { margin-top: 28px; }
.artesa-home-projects {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}
.artesa-home-projects__featured,
.artesa-home-projects__compact {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.artesa-home-projects__featured--1 { grid-template-columns: 1fr; }
.artesa-home-featured {
    background: var(--artesa-card-overlay, #effcff);
    border: 1px solid #cceff3;
    border-radius: 14px;
    min-height: 330px;
    overflow: hidden;
    position: relative;
}
.artesa-home-featured__image {
    inset: 0;
    position: absolute;
}
.artesa-home-featured__image::after {
    background: linear-gradient(90deg, var(--artesa-card-overlay-strong, rgba(239, 252, 255, .92)) 0%, var(--artesa-card-overlay-mid, rgba(239, 252, 255, .83)) 38%, var(--artesa-card-overlay-soft, rgba(239, 252, 255, .3)) 68%, rgba(239, 252, 255, 0) 100%);
    content: "";
    inset: 0;
    position: absolute;
}
.artesa-home-featured__image img,
.artesa-home-featured__image .artesa-project-card__placeholder {
    display: block;
    height: 100%;
    max-height: none;
    object-fit: cover;
    padding: 0;
    width: 100%;
}
.artesa-home-featured.artesa-project-card--fit-contain .artesa-home-featured__image img {
    background: #fff;
    object-fit: contain;
}
.artesa-home-featured__body {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 30px;
    position: relative;
    width: min(62%, 390px);
    z-index: 1;
}
.artesa-home-featured--text-right .artesa-home-featured__image::after {
    background: linear-gradient(270deg, var(--artesa-card-overlay-strong, rgba(239, 252, 255, .92)) 0%, var(--artesa-card-overlay-mid, rgba(239, 252, 255, .83)) 38%, var(--artesa-card-overlay-soft, rgba(239, 252, 255, .3)) 68%, rgba(239, 252, 255, 0) 100%);
}
.artesa-home-featured--text-right .artesa-home-featured__body { margin-left: auto; }
.artesa-home-featured__body h3,
.artesa-home-compact__body h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin: 0 0 10px;
}
.artesa-home-featured__body h3 a,
.artesa-home-compact__body h3 a {
    color: var(--artesa-card-title, #0c2b70);
    text-decoration: none;
}
.artesa-home-featured__body p,
.artesa-home-compact__body p {
    color: var(--artesa-card-text, #263746);
    line-height: 1.45;
    margin: 0 0 18px;
}
.artesa-home-project-button {
    background: var(--artesa-card-button, #024ad8);
    border: 1px solid var(--artesa-card-button, #024ad8);
    border-radius: 7px;
    color: #fff;
    display: inline-block;
    font-size: .94rem;
    font-weight: 700;
    margin-top: auto;
    padding: 10px 16px;
    text-decoration: none;
}
.artesa-home-project-button:hover,
.artesa-home-project-button:focus {
    background: #003aaa;
    border-color: #003aaa;
    color: #fff;
}
.artesa-home-project-button span {
    display: inline-block;
    transition: transform .2s ease;
}
.artesa-home-project-button:hover span { transform: translateX(4px); }
.artesa-home-compact {
    background: var(--artesa-card-overlay-strong, rgba(239, 252, 255, .92));
    border: 1px solid #cceff3;
    border-radius: 12px;
    display: grid;
    grid-template-columns: minmax(180px, 43%) minmax(0, 1fr);
    min-height: 176px;
    overflow: hidden;
}
.artesa-home-compact__image {
    background: #fff;
    display: block;
    height: 100%;
    min-height: 176px;
    overflow: hidden;
}
.artesa-home-compact__image img,
.artesa-home-compact__image .artesa-project-card__placeholder {
    display: block;
    height: 100%;
    max-height: none;
    min-height: 100%;
    object-fit: cover;
    padding: 0;
    width: 100%;
}
.artesa-home-compact.artesa-project-card--fit-contain .artesa-home-compact__image img {
    object-fit: contain;
    padding: 10px;
}
.artesa-home-compact__body {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.artesa-home-compact__body h3 { font-size: 1.12rem; }
.artesa-home-compact__body p { font-size: .93rem; }
.artesa-timeline-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.artesa-timeline-card {
    background: #fff;
    border: 1px solid #d9e2e8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(2, 74, 216, .08);
    overflow: hidden;
}
.artesa-timeline-image { display:block; aspect-ratio:16 / 10; overflow:hidden; }
.artesa-timeline-image img { display:block; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; }
.artesa-timeline-body { padding: 18px; }
.artesa-timeline-body time { color: #52606d; font-size: .875rem; }
.artesa-timeline-body h3 { font-size: 1.15rem; margin: 8px 0 14px; }
.artesa-timeline-body h3 a { color: #111; text-decoration: none; }
.artesa-timeline-grid--1 { grid-template-columns: 1fr; }
.artesa-timeline-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artesa-timeline-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.artesa-timeline-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.artesa-timeline-grid--compact { gap: 20px; }
.artesa-timeline-grid--compact .artesa-timeline-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 150px;
}
.artesa-timeline-grid--compact .artesa-timeline-card:not(.artesa-timeline-card--has-image) { grid-template-columns: 1fr; }
.artesa-timeline-grid--compact .artesa-timeline-image { display: block; min-height: 150px; overflow: hidden; }
.artesa-timeline-grid--compact .artesa-timeline-image img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}
.artesa-timeline-grid--compact .artesa-timeline-body {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}
.artesa-timeline-grid--compact .artesa-timeline-body h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 6px 0 12px;
}
.artesa-timeline-grid--compact .artesa-read-more { margin-top: auto; }
@media (max-width: 900px) {
    .artesa-project-grid--weighted,
    .artesa-project-grid--3,
    .artesa-project-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .artesa-project-grid--weighted > .artesa-project-card { grid-column: auto; }
    .artesa-project-grid--weighted > .artesa-project-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .artesa-timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .artesa-home-projects__featured,
    .artesa-home-projects__compact { grid-template-columns: 1fr; }
    .artesa-hide-desktop { display: revert !important; }
    .artesa-hide-tablet { display: none !important; }
}
@media (max-width: 640px) {
    .artesa-import-row { display: block; padding: 12px 0; }
    .artesa-import-col { margin-bottom: 20px; }
    .artesa-gallery,
    .artesa-project-grid,
    .artesa-timeline-grid { grid-template-columns: 1fr; }
    .artesa-timeline-grid { gap: 20px; }
    .artesa-timeline-card {
        border: 0;
        border-radius: 17px;
        box-shadow: 0 6px 20px rgba(2, 74, 216, .08);
    }
    .artesa-timeline-body { padding: 10px 16px 12px; }
    .artesa-timeline-body time {
        display: block;
        font-family: Inter, sans-serif;
        font-size: 13px;
        line-height: 1.35;
    }
    .artesa-timeline-body h3 {
        font-family: Montserrat, sans-serif;
        font-size: 17px;
        line-height: 1.2;
        margin: 5px 0 7px;
    }
    .artesa-timeline-body .artesa-read-more {
        display: inline-block;
        font-family: Inter, sans-serif;
        font-size: 13px;
        line-height: 1.35;
    }
    .artesa-timeline-grid--compact .artesa-timeline-card {
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
        grid-template-columns: 110px minmax(0, 1fr);
        min-height: 130px;
    }
    .artesa-timeline-grid--compact .artesa-timeline-card:not(.artesa-timeline-card--has-image) { grid-template-columns: 1fr; }
    .artesa-timeline-grid--compact .artesa-timeline-image,
    .artesa-timeline-grid--compact .artesa-timeline-image img { min-height: 130px; }
    .artesa-timeline-grid--compact .artesa-timeline-body { padding: 14px; }
    .artesa-project-grid--horizontal .artesa-project-card { flex-direction: column; }
    .artesa-project-grid--horizontal .artesa-project-card__image { height: auto; max-height: none; min-height: 0; width: 100%; }
    .artesa-project-grid--horizontal .artesa-project-card__image img,
    .artesa-project-grid--horizontal .artesa-project-card__placeholder { aspect-ratio: 16 / 10; height: auto; max-height: none; }
    .artesa-home-featured { min-height: 390px; }
    .artesa-home-featured__image::after {
        background: linear-gradient(0deg, rgba(239, 252, 255, .98) 0%, rgba(239, 252, 255, .91) 46%, rgba(239, 252, 255, .1) 78%);
    }
    .artesa-home-featured__body {
        justify-content: flex-end;
        min-height: 390px;
        padding: 22px;
        width: 100%;
    }
    .artesa-home-compact { grid-template-columns: 1fr; }
    .artesa-home-compact__image,
    .artesa-home-compact__image img,
    .artesa-home-compact__image .artesa-project-card__placeholder { aspect-ratio: 16 / 9; height: auto; max-height: none; min-height: 0; }
    .artesa-hide-tablet { display: revert !important; }
    .artesa-hide-mobile { display: none !important; }
}

/* --------------------------------------------------------------------------
 * ARTESA article system (v0.12)
 * Same front-end language for migrated SitePad posts and future Gutenberg posts.
 * -------------------------------------------------------------------------- */
body.single-post {
    --artesa-article-blue: #024ad8;
    --artesa-article-cyan: #24bdcc;
    --artesa-article-ink: #101820;
    --artesa-article-muted: #65717c;
    --artesa-article-soft: #f4f8fb;
    --artesa-article-line: #dce6ec;
}
body.single-post article.post .entry-title {
    color: var(--artesa-article-ink);
    font-family: Montserrat, sans-serif;
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: -.025em;
    line-height: 1.07;
    margin-bottom: 14px;
}
body.single-post article.post .entry-meta {
    color: var(--artesa-article-muted);
    font-size: 14px;
}
body.single-post article.post .entry-content {
    color: var(--artesa-article-ink);
    font-size: clamp(17px, 1.45vw, 19px);
    line-height: 1.72;
}
body.single-post article.post .artesa-imported-content {
    color: inherit;
    line-height: inherit;
}
body.single-post article.post .artesa-text,
body.single-post article.post .entry-content > p,
body.single-post article.post .entry-content > h2,
body.single-post article.post .entry-content > h3,
body.single-post article.post .entry-content > blockquote,
body.single-post article.post .entry-content > .wp-block-quote {
    max-width: 820px;
}
body.single-post article.post .artesa-text p,
body.single-post article.post .entry-content > p {
    margin-bottom: 1.35em;
}
body.single-post article.post .artesa-text h2,
body.single-post article.post .entry-content h2 {
    font-family: Montserrat, sans-serif;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
    margin: 1.7em 0 .55em;
}
body.single-post article.post .artesa-text h3,
body.single-post article.post .entry-content h3 {
    font-family: Montserrat, sans-serif;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.25;
    margin: 1.55em 0 .5em;
}
body.single-post article.post .artesa-article-author {
    align-items: center;
    display: flex;
    gap: 11px;
    margin: 10px 0 32px;
}
body.single-post article.post .artesa-article-author__photo,
body.single-post article.post .artesa-article-author__avatar {
    border-radius: 50%;
    display: block;
    height: 44px;
    width: 44px;
}
body.single-post article.post .artesa-article-author__avatar {
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--artesa-article-line);
    object-fit: cover;
}
body.single-post article.post .artesa-article-author__name {
    color: var(--artesa-article-ink);
    font-size: 15px;
    font-weight: 700;
}
body.single-post article.post .artesa-image,
body.single-post article.post .wp-block-image,
body.single-post article.post .wp-block-video,
body.single-post article.post .wp-block-embed,
body.single-post article.post .artesa-video {
    margin: clamp(26px, 4vw, 48px) 0;
}
body.single-post article.post .artesa-image img,
body.single-post article.post .wp-block-image img,
body.single-post article.post .wp-block-video video {
    border-radius: 16px;
}
body.single-post article.post blockquote,
body.single-post article.post .wp-block-quote {
    background: linear-gradient(135deg, rgba(36,189,204,.10), rgba(2,74,216,.055));
    border: 0;
    border-left: 5px solid var(--artesa-article-cyan);
    border-radius: 0 14px 14px 0;
    color: #17314b;
    font-size: clamp(20px, 2.3vw, 28px);
    font-style: normal;
    line-height: 1.45;
    margin: clamp(32px, 5vw, 58px) 0;
    padding: clamp(24px, 4vw, 38px);
}
body.single-post article.post blockquote p:last-child { margin-bottom: 0; }
body.single-post article.post blockquote cite {
    color: var(--artesa-article-muted);
    display: block;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    margin-top: 16px;
}
body.single-post article.post .artesa-video,
body.single-post article.post .wp-block-embed__wrapper {
    aspect-ratio: 16 / 9;
    background: #071c28;
    border-radius: 16px;
    overflow: hidden;
}
body.single-post article.post .artesa-video iframe,
body.single-post article.post .wp-block-embed__wrapper iframe {
    border: 0;
    height: 100%;
    width: 100%;
}
body.single-post article.post .artesa-carousel {
    margin: clamp(32px, 5vw, 58px) 0;
    max-width: 100%;
    position: relative;
}
body.single-post article.post .artesa-carousel__track,
body.single-post article.post .artesa-gallery.artesa-carousel__track,
body.single-post article.post .wp-block-gallery.artesa-carousel__track,
body.single-post article.post .artesa-import-slider.artesa-carousel__track {
    display: flex !important;
    gap: 0 !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
body.single-post article.post .artesa-carousel__track::-webkit-scrollbar { display: none; }
body.single-post article.post .artesa-carousel__slide {
    flex: 0 0 100%;
    margin: 0 !important;
    min-width: 100%;
    scroll-snap-align: start;
}
body.single-post article.post .artesa-gallery.artesa-carousel__track .artesa-carousel__slide img,
body.single-post article.post .wp-block-gallery.artesa-carousel__track .artesa-carousel__slide img {
    aspect-ratio: auto;
    background: var(--artesa-article-soft);
    border-radius: 16px;
    display: block;
    height: min(68vh, 650px);
    object-fit: contain;
    width: 100%;
}
body.single-post article.post .artesa-import-slider.artesa-carousel__track .artesa-video {
    margin: 0;
}
body.single-post article.post .artesa-carousel__controls {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
}
body.single-post article.post .artesa-carousel__button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--artesa-article-line);
    border-radius: 50%;
    color: var(--artesa-article-blue);
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    width: 42px;
}
body.single-post article.post .artesa-carousel__button:hover,
body.single-post article.post .artesa-carousel__button:focus-visible {
    background: var(--artesa-article-blue);
    border-color: var(--artesa-article-blue);
    color: #fff;
}
body.single-post article.post .artesa-carousel__button:disabled {
    cursor: default;
    opacity: .35;
}
body.single-post article.post .artesa-carousel__counter {
    color: var(--artesa-article-muted);
    font-size: 13px;
    min-width: 52px;
    text-align: center;
}
body.single-post article.post .artesa-carousel__counter strong { color: var(--artesa-article-ink); }

@media (max-width: 640px) {
    body.single-post article.post .entry-title { font-size: clamp(30px, 9vw, 42px); }
    body.single-post article.post .entry-content { font-size: 17px; line-height: 1.68; }
    body.single-post article.post .artesa-article-author { margin-bottom: 26px; }
    body.single-post article.post .artesa-gallery.artesa-carousel__track .artesa-carousel__slide img,
    body.single-post article.post .wp-block-gallery.artesa-carousel__track .artesa-carousel__slide img {
        border-radius: 12px;
        height: min(62vh, 520px);
    }
    body.single-post article.post blockquote,
    body.single-post article.post .wp-block-quote {
        border-left-width: 4px;
        border-radius: 0 10px 10px 0;
        font-size: 20px;
        padding: 20px;
    }
}


/* v0.12.2 — editorial single-post layout.
 * SitePad used rows/columns inside posts. On the new site those columns must not
 * keep the old page-builder geometry: article media and text flow vertically.
 */
body.single-post #content > .ast-container,
body.single-post .site-content > .ast-container {
    max-width: 1180px;
    padding-left: clamp(16px, 3vw, 32px);
    padding-right: clamp(16px, 3vw, 32px);
}
body.single-post #primary,
body.single-post .content-area {
    float: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
    width: 100%;
}
body.single-post .site-main { width: 100%; }
body.single-post.ast-separate-container .ast-article-single,
body.single-post article.post {
    box-sizing: border-box;
}
body.single-post.ast-separate-container .ast-article-single {
    padding: clamp(32px, 5vw, 64px) clamp(22px, 5vw, 64px) clamp(44px, 6vw, 78px);
}
body.single-post article.post .entry-header {
    margin-left: auto;
    margin-right: auto;
    max-width: 820px;
}
body.single-post article.post .entry-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
    width: 100%;
}
body.single-post article.post .artesa-imported-content {
    display: block;
    max-width: none;
    width: 100%;
}
body.single-post article.post .artesa-import-row {
    background-color: transparent !important;
    background-image: none !important;
    display: block !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}
body.single-post article.post .artesa-import-col,
body.single-post article.post [class*="artesa-col-"] {
    display: block !important;
    flex: none !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Reading measure: text stays comfortable, media may breathe wider. */
body.single-post article.post .artesa-text,
body.single-post article.post .entry-content > p,
body.single-post article.post .entry-content > h2,
body.single-post article.post .entry-content > h3,
body.single-post article.post .entry-content > h4,
body.single-post article.post .entry-content > ul,
body.single-post article.post .entry-content > ol,
body.single-post article.post .entry-content > blockquote,
body.single-post article.post .entry-content > .wp-block-quote,
body.single-post article.post .artesa-article-author {
    margin-left: auto;
    margin-right: auto;
    max-width: 780px;
}
body.single-post article.post .artesa-text {
    clear: both;
    width: 100%;
}
body.single-post article.post .artesa-text::after,
body.single-post article.post .artesa-import-row::after,
body.single-post article.post .artesa-import-col::after {
    clear: both;
    content: "";
    display: table;
}

/* Media is always a block between paragraphs — never a floating SitePad column. */
body.single-post article.post .artesa-image,
body.single-post article.post .artesa-gallery,
body.single-post article.post .artesa-carousel,
body.single-post article.post .artesa-video,
body.single-post article.post .artesa-embed,
body.single-post article.post .wp-block-image,
body.single-post article.post .wp-block-gallery,
body.single-post article.post .wp-block-video,
body.single-post article.post .wp-block-embed {
    clear: both;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 980px;
    width: 100%;
}
body.single-post article.post .artesa-carousel__track,
body.single-post article.post .artesa-gallery.artesa-carousel__track,
body.single-post article.post .wp-block-gallery.artesa-carousel__track {
    align-items: stretch;
    width: 100%;
}
body.single-post article.post .artesa-gallery.artesa-carousel__track .artesa-carousel__slide,
body.single-post article.post .wp-block-gallery.artesa-carousel__track .artesa-carousel__slide {
    align-items: center;
    background: var(--artesa-article-soft);
    display: flex;
    justify-content: center;
    overflow: hidden;
}
body.single-post article.post .artesa-gallery.artesa-carousel__track .artesa-carousel__slide img,
body.single-post article.post .wp-block-gallery.artesa-carousel__track .artesa-carousel__slide img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    height: auto;
    max-height: none;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 768px) {
    body.single-post #content > .ast-container,
    body.single-post .site-content > .ast-container {
        padding-left: 12px;
        padding-right: 12px;
    }
    body.single-post.ast-separate-container .ast-article-single {
        padding: 26px 18px 42px;
    }
    body.single-post article.post .entry-title {
        font-size: clamp(30px, 8vw, 42px);
    }
    body.single-post article.post .artesa-gallery.artesa-carousel__track .artesa-carousel__slide img,
    body.single-post article.post .wp-block-gallery.artesa-carousel__track .artesa-carousel__slide img {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }
}

/* Use one clean byline: author = avatar + name, with the article date beside it. */
body.single-post article.post .entry-header .entry-meta { display: none; }
body.single-post article.post .artesa-article-byline {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 8px auto 34px;
    max-width: 780px;
}
body.single-post article.post .artesa-article-byline .artesa-article-author {
    margin: 0;
}
body.single-post article.post .artesa-article-date {
    color: var(--artesa-article-muted);
    font-size: 14px;
    line-height: 1.4;
}
body.single-post article.post .artesa-article-date::before {
    color: var(--artesa-article-line);
    content: "•";
    margin-right: 18px;
}
@media (max-width: 520px) {
    body.single-post article.post .artesa-article-byline { gap: 8px 12px; }
    body.single-post article.post .artesa-article-date::before { margin-right: 12px; }
}

/* v0.21.0 — keep Timeline thumbnails cropped, never geometrically stretched. */
.artesa-timeline-grid:not(.artesa-timeline-grid--compact) .artesa-timeline-image { aspect-ratio:16 / 10; }
.artesa-timeline-grid:not(.artesa-timeline-grid--compact) .artesa-timeline-image img { width:100%; height:100% !important; object-fit:cover !important; }
.artesa-timeline-grid--compact .artesa-timeline-image { aspect-ratio:auto; }


/* v0.21.5 — WordPress Posts page (Timeline) + category archives. Astra can
   force featured images to the card box dimensions; give the media a stable
   ratio and crop with object-fit instead of geometrically stretching photos. */
body.blog .ast-article-post .post-thumb-img-content,
body.category .ast-article-post .post-thumb-img-content,
body.archive.category .ast-article-post .post-thumb-img-content {
  aspect-ratio:16 / 9 !important;
  overflow:hidden !important;
}
body.blog .ast-article-post .post-thumb-img-content > a,
body.category .ast-article-post .post-thumb-img-content > a,
body.archive.category .ast-article-post .post-thumb-img-content > a {
  display:block !important;
  width:100% !important;
  height:100% !important;
}
body.blog .ast-article-post .post-thumb-img-content img,
body.blog .ast-article-post .ast-blog-featured-section img,
body.category .ast-article-post .post-thumb-img-content img,
body.category .ast-article-post .ast-blog-featured-section img,
body.archive.category .ast-article-post .post-thumb-img-content img,
body.archive.category .ast-article-post .ast-blog-featured-section img {
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center center;
}
/* Fallback for Astra variants where the image has no post-thumb-img-content
   wrapper: the image itself still gets a stable, non-distorted 16:9 box. */
body.blog .ast-article-post .wp-post-image,
body.category .ast-article-post .wp-post-image,
body.archive.category .ast-article-post .wp-post-image {
  aspect-ratio:16 / 9 !important;
  object-fit:cover !important;
}


/* v0.22.22 — subtle media frame on Timeline cards.
   White-background logos should remain visually separate from the white text
   body without changing the crop, padding or general card design. */
.artesa-timeline-image {
    position: relative;
}
.artesa-timeline-image::after {
    border: 1px solid rgba(2, 74, 216, .13);
    border-bottom-color: rgba(2, 74, 216, .22);
    border-radius: inherit;
    box-sizing: border-box;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}
body.blog .ast-article-post .post-thumb-img-content,
body.category .ast-article-post .post-thumb-img-content,
body.archive.category .ast-article-post .post-thumb-img-content {
    position: relative;
}
body.blog .ast-article-post .post-thumb-img-content::after,
body.category .ast-article-post .post-thumb-img-content::after,
body.archive.category .ast-article-post .post-thumb-img-content::after {
    border: 1px solid rgba(2, 74, 216, .13);
    border-bottom-color: rgba(2, 74, 216, .22);
    border-radius: inherit;
    box-sizing: border-box;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}
/* Astra variants without the usual featured-image wrapper. */
body.blog .ast-article-post .wp-post-image,
body.category .ast-article-post .wp-post-image,
body.archive.category .ast-article-post .wp-post-image {
    outline: 1px solid rgba(2, 74, 216, .13);
    outline-offset: -1px;
}
