/* Connected Municipality homepage pieces: sample question card and skyline. */

.cm-sq {
    --cm-sq-navy: #073b64;
    --cm-sq-lane: #0b72b8;
    background: #ffffff;
    color: #12263a;
    border-radius: 24px;
    padding: 32px;
    box-sizing: border-box;
    text-align: left;
}

.cm-sq--lane-find { --cm-sq-lane: #0b7a66; }
.cm-sq--lane-do { --cm-sq-lane: #7a5a06; }
.cm-sq--lane-take-part { --cm-sq-lane: #6b4fa0; }
.cm-sq--lane-behind-the-scenes { --cm-sq-lane: #4e5d6c; }

.cm-sq__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cm-sq__lane {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cm-sq-lane);
}

.cm-sq__tag {
    font-size: 13px;
    color: #4a5568;
}

.cm-sq p.cm-sq__q {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #12263a;
}

.cm-sq p.cm-sq__try {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    font-size: 15px;
    color: #4a5568;
}

.cm-sq__answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cm-sq .cm-sq__answer {
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid #c9d6e2;
    border-radius: 12px;
    background: #ffffff;
    color: var(--cm-sq-navy);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.cm-sq .cm-sq__answer {
    --cm-tone: #4e5d6c;
    --cm-tone-soft: #e6eaee;
    --cm-tone-tint: #f3f5f7;
    --cm-tone-ink: #4e5d6c;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.cm-sq .cm-sq__answer--good { --cm-tone: #2f9e6e; --cm-tone-soft: #d3efdf; --cm-tone-tint: #eef8f2; --cm-tone-ink: #1d6b45; }
.cm-sq .cm-sq__answer--mixed { --cm-tone: #d9a21b; --cm-tone-soft: #fde9c8; --cm-tone-tint: #fff6e6; --cm-tone-ink: #8a5a00; }
.cm-sq .cm-sq__answer--gap { --cm-tone: #c0392b; --cm-tone-soft: #f8d3cf; --cm-tone-tint: #fdeeec; --cm-tone-ink: #a3271a; }
.cm-sq .cm-sq__answer--unsure { --cm-tone: #7d8b99; --cm-tone-soft: #e6eaee; --cm-tone-tint: #f3f5f7; --cm-tone-ink: #4e5d6c; }

.cm-sq__answer-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cm-tone-soft);
    color: var(--cm-tone-ink);
}

.cm-sq .cm-sq__answer:hover {
    border-color: var(--cm-tone);
    background: #ffffff;
    color: var(--cm-sq-navy);
}

.cm-sq .cm-sq__answer:focus-visible {
    outline: 3px solid #078b96;
    outline-offset: 2px;
}

.cm-sq .cm-sq__answer[aria-pressed="true"] {
    background: var(--cm-tone-tint);
    border-color: var(--cm-tone);
    color: var(--cm-sq-navy);
}

.cm-sq .cm-sq__answer[aria-pressed="true"] .cm-sq__answer-icon {
    background: var(--cm-tone);
    color: #ffffff;
}

.cm-sq .cm-sq__answer--mixed[aria-pressed="true"] .cm-sq__answer-icon {
    color: #2b1f00;
}

.cm-sq__reply {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #eaf2f3;
    border-left: 4px solid transparent;
}

.cm-sq__reply--good { background: #eef8f2; border-left-color: #2f9e6e; }
.cm-sq__reply--mixed { background: #fff6e6; border-left-color: #d9a21b; }
.cm-sq__reply--gap { background: #fdeeec; border-left-color: #c0392b; }
.cm-sq__reply--unsure { background: #f3f5f7; border-left-color: #7d8b99; }

.cm-sq p.cm-sq__reply-more {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 700;
}

.cm-sq p.cm-sq__reply-more a {
    color: var(--cm-sq-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cm-sq__reply[hidden] {
    display: none;
}

.cm-sq p.cm-sq__reply-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--cm-sq-navy);
}

.cm-sq p.cm-sq__reply-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #12263a;
}

@media (max-width: 480px) {
    .cm-sq { padding: 24px 20px; }
    .cm-sq p.cm-sq__q { font-size: 22px; }
    .cm-sq .cm-sq__answer { gap: 8px; padding: 10px; font-size: 15px; }
    .cm-sq__answer-icon { width: 26px; height: 26px; }
    .cm-sq__answer-icon svg { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
    .cm-sq .cm-sq__answer { gap: 6px; padding: 8px; font-size: 14px; }
    .cm-sq__answer-icon { width: 22px; height: 22px; }
}

/* Town skyline along the bottom of a Kadence row: add the class "cm-skyline". */
.cm-skyline {
    position: relative;
    overflow: hidden;
}

.cm-skyline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: url("../images/home/skyline.svg") bottom center / 100% 120px no-repeat;
    pointer-events: none;
    z-index: 0;
}

.cm-skyline > .kt-row-column-wrap,
.cm-skyline > .kb-row-layout-wrap {
    position: relative;
    z-index: 1;
}
