/**
 * Kultiva — About, with Brands (boards "About" and "Mobile — About").
 * Headings take the base.css tokens. Phones: one column, the story as a
 * vertical timeline, two brand tiles across, governance folded after its
 * first paragraph, and a Night card to visit. From 992 px: the facts beside
 * the intro, the story on Night, and a Ground band to visit.
 */

/* ============================================
   WHO WE ARE
   ============================================ */

.k-ahero {
    padding-block: var(--k-section-y);
    border-bottom: 1px solid var(--k-line);
    background: var(--k-surface-2);
}

.k-ahero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.k-ahero__intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.k-ahero__intro .k-eyebrow,
.k-ahero h1 {
    margin: 0;
}

.k-ahero h1 {
    color: var(--k-text-max);
}

.k-ahero__lead {
    max-width: 620px;
    margin: 0;
    color: var(--k-text);
    font-size: 17px;
    line-height: 1.55;
}

.k-afacts {
    margin: 0;
    padding: 4px 18px;
    border-radius: var(--k-radius-sheet);
    background: var(--k-surface);
    font-size: 15px;
}

.k-afacts > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--k-line-soft);
}

.k-afacts > div:last-child {
    border-bottom: 0;
}

/* Both columns wrap between words; the value never narrower than its longest word (Armenian
   "սարքավորումներ" broke mid-word at 375 px when only the value could shrink) */
.k-afacts dt {
    flex: 0 1 auto;
    color: var(--k-text-muted);
    font-weight: 400;
}

.k-afacts dd {
    margin: 0;
    color: var(--k-text-strong);
    font-weight: 700;
    overflow-wrap: break-word;
}

/* From 576 px a fact's label and value share a row */
@media (min-width: 576px) {
    .k-afacts > div {
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
    }

    .k-afacts dd {
        text-align: right;
    }
}


/* ============================================
   SECTIONS
   ============================================ */

.k-asection {
    padding-block: var(--k-section-y);
}

.k-asection h2 {
    margin: 0;
    color: var(--k-text-max);
}

.k-asection__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 24px;
    margin-bottom: 18px;
}

.k-asection__note {
    max-width: 520px;
    margin: 0;
    color: var(--k-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.k-asection__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--k-control);
    color: var(--k-text-strong);
    font-weight: 700;
    white-space: nowrap;
}

/* What we're here to do */
.k-agoals {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-agoal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: var(--k-radius-card);
    background: var(--k-surface-2);
}

.k-agoal h3 {
    margin: 0;
    color: var(--k-text-max);
}

.k-agoal p {
    max-inline-size: 68ch;
    margin: 0;
    color: var(--k-text);
    font-size: 16px;
    line-height: 1.55;
}

/* Our story so far: a vertical timeline on phones */
.k-astory {
    background: var(--k-surface-2);
}

.k-astory__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0 0;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--k-chip-line);
    list-style: none;
}

.k-astory__list li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    color: var(--k-text);
    font-size: 16px;
    line-height: 1.45;
}

.k-astory__list li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -21px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--k-green);
    box-shadow: 0 0 0 3px var(--k-surface-2);
}

.k-astory__when {
    color: var(--k-text-max);
    font-size: 17px;
    font-weight: 800;
}

/* Brands: a tile per brand. Its logo sits centred on a white stage of one height, so logos line up across a row,
   and a foot under a hairline says what the tile opens (Arthur, 2026-10-31) */
.k-abrands {
    background: var(--k-surface-2);
}

.k-astory + .k-abrands {
    border-top: 1px solid var(--k-line);
}

.k-abrand-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-abrand {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--k-line-soft);
    border-radius: var(--k-radius-card);
    background: var(--k-surface);
    color: var(--k-text-strong);
    text-decoration: none;
    transition: border-color var(--k-fast) ease-out, box-shadow var(--k-fast) ease-out,
        transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

a.k-abrand:hover {
    color: var(--k-text-strong);
}

/* Hover is for a mouse: on a touch screen it would stay on the tile after the tap */
@media (hover: hover) and (pointer: fine) {
    a.k-abrand:hover {
        border-color: var(--k-chip-line);
        box-shadow: var(--k-shadow-hover);
    }
}

a.k-abrand:active {
    border-color: var(--k-chip-line);
}

@media (prefers-reduced-motion: no-preference) {
    a.k-abrand:active {
        transform: scale(0.98);
        transition-delay: 0s, 0s, 70ms;
    }
}

.k-abrand__stage {
    display: grid;
    place-items: center;
    height: 88px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--k-line-soft);
}

.k-abrand__name {
    color: var(--k-text-navy);
    font-size: 17px;
    font-weight: 800;
    font-stretch: 80%;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

/* Drawn at its width and height attributes: the same visual weight for every logo (website/about_page.py) */
.k-abrand__logo {
    display: block;
    max-width: 100%;
    max-height: 68px;
    height: auto;
}

.k-abrand__foot {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
    padding: 10px 14px 12px;
}

.k-abrand__range {
    color: var(--k-text-muted);
    font-size: 14px;
    line-height: 1.35;
}

.k-abrand__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--k-text-muted);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

a.k-abrand .k-abrand__go {
    color: var(--k-text-green);
    font-weight: 700;
}

.k-abrand__go .bi {
    transition: transform var(--k-fast) ease-out;
}

@media (hover: hover) and (pointer: fine) {
    a.k-abrand:hover .k-abrand__go .bi {
        transform: translateX(3px);
    }
}

/* Phones: two narrow tiles a row, so every logo shrinks by the same factor and they still weigh alike */
@media (max-width: 767.98px) {
    .k-abrand__logo {
        zoom: 0.72;
    }
}

.k-abrands__local {
    margin: 28px 0 12px;
    color: var(--k-text-max);
}

/* How we are governed */
.k-agov__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.k-agov__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--k-text);
    font-size: 16px;
    line-height: 1.55;
}

.k-agov__text p {
    max-inline-size: 68ch;
    margin: 0;
}

.k-agov__more {
    border-top: 1px solid var(--k-line);
    border-bottom: 1px solid var(--k-line);
}

.k-agov__more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--k-control-lg);
    color: var(--k-text-strong);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
    transition: color var(--k-fast) ease-out, transform var(--k-fast) var(--k-ease-out);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .k-agov__more summary:hover {
        color: var(--k-text-green-strong);
    }
}

.k-agov__more summary:active {
    background: var(--k-surface-3);
}

/* A row as wide as the column: the press waits 70 ms, so a scroll that starts on it does not flinch it */
@media (prefers-reduced-motion: no-preference) {
    .k-agov__more summary:active {
        transform: scale(0.98);
        transition-delay: 0s, 70ms;
    }
}

.k-agov__more summary::-webkit-details-marker {
    display: none;
}

.k-agov__more summary .bi {
    transition: transform var(--k-fast) ease-out;
}

.k-agov__more[open] summary .bi {
    transform: rotate(180deg);
}

.k-agov__more p {
    margin: 0 0 12px;
}

.k-agov__rest {
    display: none;
}

/* Come and see the machines: a Night card on phones */
.k-avisit {
    padding-bottom: var(--k-section-y);
}

.k-avisit__box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
    border-radius: var(--k-radius-sheet);
    background: var(--k-band);
    color: var(--k-on-night-2);
}

.k-avisit__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.k-avisit h2 {
    margin: 0;
    color: var(--k-on-night);
}

.k-avisit__text p {
    max-inline-size: 68ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.k-avisit__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.k-avisit .k-btn--secondary {
    border-color: var(--k-on-night-2);
    background: transparent;
    color: var(--k-on-night);
}

.k-avisit .k-btn--secondary:active {
    background: var(--k-on-night-edge);
    color: var(--k-on-night);
}

@media (hover: hover) and (pointer: fine) {
    .k-avisit .k-btn--secondary:hover {
        background: var(--k-on-night-edge);
        color: var(--k-on-night);
    }
}


/* ============================================
   768 PX AND UP
   ============================================ */

@media (min-width: 768px) {
    .k-ahero__lead {
        font-size: 18px;
    }

    .k-afacts {
        padding: 8px 24px;
    }

    .k-afacts > div {
        padding: 14px 0;
    }

    .k-agoals {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 16px;
    }

    .k-agoal {
        gap: 12px;
        padding: 28px;
    }

    .k-agoal p {
        font-size: 16px;
        line-height: 1.6;
    }

    .k-abrand-list {
        grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
        gap: 12px;
    }

    .k-abrand__stage {
        height: 112px;
        padding: 16px 20px;
    }

    .k-abrand__name {
        font-size: 20px;
    }

    .k-abrand__foot {
        padding: 12px 20px 14px;
    }

    .k-agov__text {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 24px 40px;
        font-size: 16px;
        line-height: 1.65;
    }

    .k-agov__more {
        display: none;
    }

    .k-agov__rest {
        display: contents;
    }

    .k-avisit__box {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: clamp(28px, 4vw, 48px);
        border-radius: var(--k-radius-panel);
        background: var(--k-surface-2);
        color: var(--k-text);
    }

    .k-avisit__text {
        max-width: 640px;
    }

    .k-avisit h2 {
        color: var(--k-text-max);
    }

    .k-avisit__text p {
        font-size: 17px;
    }

    .k-avisit__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .k-avisit .k-btn--secondary {
        border-color: var(--k-text-strong);
        color: var(--k-text-strong);
    }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .k-avisit .k-btn--secondary:hover {
        background: var(--k-surface);
        color: var(--k-text-strong);
    }
}

@media (min-width: 768px) {
    .k-avisit .k-btn--secondary:active {
        background: var(--k-surface-3);
        color: var(--k-text-strong);
    }
}


/* ============================================
   992 PX AND UP
   ============================================ */

@media (min-width: 992px) {
    .k-ahero__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 40px 64px;
    }

    .k-ahero__intro {
        flex: 1 1 560px;
        gap: 22px;
    }

    .k-afacts {
        flex: 1 1 380px;
    }

    .k-asection__head {
        align-items: flex-end;
        margin-bottom: 28px;
    }

    /* The story on Night, left to right along a Harvest line */
    .k-astory {
        background: var(--k-band);
    }

    .k-astory h2 {
        margin-bottom: 40px;
        color: var(--k-on-night);
    }

    .k-astory__list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
        gap: 0;
        margin: 0;
        padding: 0;
        border-top: 2px solid var(--k-harvest);
        border-left: 0;
    }

    .k-astory__list li {
        gap: 10px;
        padding: 24px 24px 0 0;
        color: var(--k-on-night-2);
        font-size: 16px;
        line-height: 1.55;
    }

    .k-astory__list li::before {
        content: none;
    }

    .k-astory__when {
        color: var(--k-harvest);
        font-size: 44px;
        font-stretch: 85%;
        line-height: 1;
    }

    .k-astory + .k-abrands {
        border-top: 0;
    }

    .k-agov__inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 32px 64px;
    }

    .k-agov__inner h2 {
        flex: 1 1 320px;
    }

    .k-agov__text {
        flex: 999 1 640px;
        min-width: 0;
    }
}


/* ============================================
   DARK (a preview; the roles are in base.css)
   ============================================ */

/* A brand's logo is drawn for a light background: its part of the tile stays light */
:root[data-theme="dark"] .k-abrand__stage {
    background: var(--k-white);
}
