/* ARC-GM v1.2: native shortcode-powered Contact Cards and curated News Tiles. */
.arcgm-main .cc-news-tiles,
.cc-projects.cc-projects-single .cc-news-tiles { margin: 22px 0 42px; width: 100%; max-width: 100%; }
.arcgm-main .cc-news-tiles__grid,
.cc-projects.cc-projects-single .cc-news-tiles__grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px; align-items: stretch;
}
.arcgm-main .cc-news-tiles__card,
.cc-projects.cc-projects-single .cc-news-tiles__card {
    min-width: 0; display: flex; flex-direction: column; overflow: hidden;
    position: relative; background: #fff; border: 1px solid #e6ebf1;
    box-shadow: 0 2px 12px rgba(28,40,94,.06);
}
.arcgm-main .cc-news-tiles__media,
.cc-projects.cc-projects-single .cc-news-tiles__media {
    display: block; height: 205px; background: #c7e9ff; overflow: hidden;
}
.arcgm-main .cc-news-tiles__media img,
.cc-projects.cc-projects-single .cc-news-tiles__media img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform .25s ease;
}
.cc-news-tiles__media:hover img { transform: scale(1.04); }
.cc-news-tiles__placeholder {
    display: flex; height: 100%; width: 100%; align-items: center;
    justify-content: center; background: #c7e9ff; color: #1c285e;
    font-size: 20px; font-weight: 700;
}
.arcgm-main .cc-news-tiles__body,
.cc-projects.cc-projects-single .cc-news-tiles__body {
    display: flex; flex: 1 1 auto; flex-direction: column;
    align-items: flex-start; padding: 22px 24px 36px;
}
.cc-news-tiles__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.cc-news-tiles__meta span {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #0051c2;
}
.cc-news-tiles__meta time { font-size: 12px; color: #526074; }
.arcgm-main .cc-news-tiles__body h3,
.cc-projects.cc-projects-single .cc-news-tiles__body h3 {
    font-size: 22px; line-height: 1.25; margin: 0 0 13px;
    font-weight: 700; color: #1c285e;
}
.cc-news-tiles__body h3 a { color: inherit; text-decoration: none; }
.cc-news-tiles__body h3 a:hover { text-decoration: underline; }
.arcgm-main .cc-news-tiles__body p,
.cc-projects.cc-projects-single .cc-news-tiles__body p {
    font-size: 15px; line-height: 1.5; color: #263349; margin: 0 0 19px;
}
.cc-news-tiles__read {
    margin-top: auto; color: #0051c2; font-size: 14px;
    text-decoration: none; font-weight: 700;
}
.cc-news-tiles__read:hover { text-decoration: underline; }
.cc-news-tiles__read span { padding-left: 8px; }
.cc-news-tiles__strip {
    display: block; height: 13px; width: 100%; background: #1c285e;
    position: absolute; left: 0; bottom: 0;
    border-right: 38px solid #c7e9ff;
}
.cc-projects.cc-projects-single .cc-projects-news { margin-top: 42px; margin-bottom: 48px; }
.cc-projects.cc-projects-single .cc-projects-news .cc-projects-related-heading { margin-bottom: 18px; }

/* Editor preview only. All frontend rendering remains through native shortcodes. */
.keditor-component .arcgm-contact-embed,
.keditor-component .arcgm-news-embed {
    min-height: 78px; padding: 20px 22px; display: flex;
    align-items: center; color: #1c285e; background: #c7e9ff;
    border-left: 5px solid #fc5d5d; line-height: 1.4;
}
.keditor-component .arcgm-contact-embed::before,
.keditor-component .arcgm-news-embed::before {
    content: attr(data-editor-summary); font-weight: 700; font-size: 15px;
}
.keditor-component .arcgm-embed-token { display: none !important; }
.arcgm-component-settings { padding: 10px 8px 22px; }
.arcgm-component-settings > label,
.arcgm-component-settings > div > label {
    display: block; margin: 15px 0 5px; font-weight: 700;
}
.arcgm-component-settings input,
.arcgm-component-settings select,
.arcgm-component-settings textarea {
    display: block; width: 100%; max-width: 100%; border: 1px solid #ccd6e5;
    padding: 9px; min-height: 38px; box-sizing: border-box;
    background: #fff; color: #1c285e;
}
.arcgm-component-settings select[multiple] { min-height: 210px; }
.arcgm-component-settings__help { font-size: 12px; margin-top: 15px; color: #4f5c73; }
.arc-projects-news-panel .arc-projects-news-select { width: 100%; min-height: 200px; background: white; border: 1px solid #ccd6e5; padding: 6px; }

@media (max-width: 960px) {
    .arcgm-main .cc-news-tiles__grid,
    .cc-projects.cc-projects-single .cc-news-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .arcgm-main .cc-news-tiles__grid,
    .cc-projects.cc-projects-single .cc-news-tiles__grid { grid-template-columns: minmax(0, 1fr); }
    .arcgm-main .cc-news-tiles__media,
    .cc-projects.cc-projects-single .cc-news-tiles__media { height: 195px; }
}

/* v1.3: once CoreCMS substitutes a shortcode, remove the blue edit-only placeholder.
   :has() is supported by modern Chrome, Safari and Firefox. */
.arcgm-main .arcgm-news-embed:has(.cc-news-tiles),
.arcgm-main .arcgm-contact-embed:has(.arc-team-shortcode, .arc-awards, .cc-team, .cc-awardholders){background:transparent!important;border:0!important;padding:0!important;display:block!important;min-height:0!important}
.arcgm-main .arcgm-news-embed:has(.cc-news-tiles)::before,
.arcgm-main .arcgm-contact-embed:has(.arc-team-shortcode, .arc-awards, .cc-team, .cc-awardholders)::before{content:none!important}
.arcgm-main .arcgm-news-embed:has(.cc-news-tiles) .arcgm-embed-token,
.arcgm-main .arcgm-contact-embed:has(.arc-team-shortcode, .arc-awards, .cc-team, .cc-awardholders) .arcgm-embed-token{display:block!important}
/* Searchable Page Builder chooser, independent from generic select/multiple styles. */
.arcgm-news-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;max-width:100%}
.arcgm-news-picker__pane{min-width:0;background:#f6f7f8;border:1px solid #d8dce5;border-radius:10px;overflow:hidden}
.arcgm-news-picker__pane>strong{display:block;padding:11px;background:#edf0f4;font-size:12px;color:#1c285e}
.arcgm-news-picker__pane>input{display:block;width:calc(100% - 16px)!important;margin:8px!important;box-sizing:border-box}
.arcgm-news-picker__rows{max-height:265px;overflow:auto;padding:8px}
.arcgm-news-picker__row{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:6px;padding:8px;background:white;border:1px solid #dce1e8;border-radius:7px;font-size:12px}
.arcgm-news-picker__row>span{min-width:0;line-height:1.35;overflow-wrap:anywhere}
.arcgm-news-picker__row small{display:block;color:#64748b;margin-top:4px}
.arcgm-news-picker__row button{border:1px solid #d0d6df;border-radius:6px;padding:7px 9px;background:#fff;color:#1c285e;font-weight:700;cursor:pointer;flex-shrink:0}
.arcgm-news-picker__row button:disabled{opacity:.4;cursor:default}
.arcgm-news-picker__row button:hover:not(:disabled){background:#ffe626}
.arcgm-news-picker__empty{color:#64748b;font-size:12px;padding:13px 8px}
.arcgm-news-picker__selected-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:620px){.arcgm-news-picker{grid-template-columns:1fr}}

/* Case-study slider editor placeholder uses the same preview system. */
.keditor-component .arcgm-projects-embed{min-height:78px;padding:20px 22px;display:flex;align-items:center;color:#1c285e;background:#c7e9ff;border-left:5px solid #fc5d5d;line-height:1.4}
.keditor-component .arcgm-projects-embed::before{content:attr(data-editor-summary);font-weight:700;font-size:15px}
.arcgm-main .arcgm-projects-embed:has(.cc-projects-slider-section){background:transparent!important;border:0!important;padding:0!important;display:block!important;min-height:0!important}
.arcgm-main .arcgm-projects-embed:has(.cc-projects-slider-section)::before{content:none!important}
.arcgm-main .arcgm-projects-embed:has(.cc-projects-slider-section) .arcgm-embed-token{display:block!important}
.keditor-component .arcgm-projects-embed .arcgm-embed-token{display:none!important}
