/* ==========================================================================
   «تمكّن» — الاستراتيجية الصفية: صفحة المتجر، البدء، الاستوديو، البطاقات.
   مبنية على رموز athar.css: زوايا حادة، لون الهوية، كثافة معلومات عالية.
   ========================================================================== */

.tmk {
    --tmk-ink: #16305c;
    --tmk-accent: #1e3a6e;
    --tmk-soft: #eef3fb;
    --tmk-line: #aac0e4;
    --ath-accent: #1e3a6e;
    --ath-accent-soft: #eef3fb;
    --ath-accent-line: #aac0e4;
}

.tmk .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ المتجر */

.tmk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 40px;
    align-items: center;
    padding: 28px 0 12px;
}

.tmk-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.25;
    color: var(--ink);
}

.tmk-hero h1 span {
    color: var(--tmk-accent);
}

.tmk-hero p {
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.9;
    max-width: 640px;
}

.tmk-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--muted);
}

.tmk-hero__proof span::before {
    content: '✓ ';
    color: var(--tmk-accent);
    font-weight: 800;
}

.tmk-mock {
    border: 1px solid var(--line);
    background: #fff;
    padding: 18px;
    box-shadow: 0 24px 60px -32px rgba(22, 48, 92, .45);
}

.tmk-mock__q {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}

.tmk-mock__q span {
    color: var(--muted);
}

.tmk-mock__choice {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--tmk-accent);
    color: #fff;
    display: grid;
    gap: 2px;
}

.tmk-mock__choice small {
    opacity: .8;
    font-size: 12px;
}

.tmk-mock__choice strong {
    font-family: 'Alexandria', sans-serif;
    font-size: 21px;
}

.tmk-mock__choice em {
    font-style: normal;
    font-size: 12.5px;
    opacity: .9;
}

.tmk-mock__steps {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.tmk-mock__steps li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.tmk-mock__steps bdi {
    flex: none;
    width: 48px;
    font-weight: 800;
    color: var(--tmk-accent);
    font-family: 'Alexandria', sans-serif;
}

.tmk-mock__steps .is-check {
    background: var(--tmk-soft);
    padding: 4px 6px;
    margin-inline: -6px;
}

.tmk-how__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.tmk-how__grid > div {
    display: grid;
    gap: 6px;
    background: #fff;
    padding: 18px;
}

.tmk-how__grid b {
    font-family: 'Alexandria', sans-serif;
    color: var(--ath-gold);
    font-size: 13px;
}

.tmk-how__grid strong {
    font-size: 16px;
    color: var(--ink);
}

.tmk-how__grid span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.tmk-samples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tmk-sample {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--tmk-accent);
    background: #fff;
    padding: 18px;
}

.tmk-sample > span {
    font-size: 12.5px;
    color: var(--muted);
}

.tmk-sample h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

.tmk-sample p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}

.tmk-sample__links {
    display: flex;
    gap: 16px;
    font-weight: 700;
    font-size: 14px;
}

.tmk-chain ol {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.tmk-chain li {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.tmk-chain li strong {
    font-family: 'Alexandria', sans-serif;
    font-size: 17px;
}

.tmk-chain li span {
    color: var(--muted);
    font-size: 13.5px;
}

.tmk-chain li.is-here {
    background: var(--tmk-accent);
    border-color: var(--tmk-accent);
    color: #fff;
}

.tmk-chain li.is-here span {
    color: rgba(255, 255, 255, .85);
}

/* ------------------------------------------------------------------ البدء */

.tmk-start {
    max-width: 880px;
    margin: 0 auto;
}

.tmk-start__head h1 {
    margin: 8px 0;
    font-size: clamp(24px, 3.6vw, 34px);
}

.tmk-start__head p {
    color: var(--ink-2);
    line-height: 1.8;
    margin: 0 0 18px;
}

.tmk-start__back {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.tmk-source {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: var(--tmk-soft);
    border: 1px solid var(--tmk-line);
    border-inline-start: 4px solid var(--tmk-accent);
    font-size: 14px;
}

.tmk-source span {
    color: var(--ink-2);
}

.tmk-source--warn {
    background: #fffbeb;
    border-color: #fde68a;
    border-inline-start-color: #b45309;
}

.tmk-form {
    display: grid;
    gap: 14px;
}

.tmk-q {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    background: #fff;
    min-width: 0;
}

.tmk-q legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    font-family: 'Alexandria', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
}

.tmk-q legend b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--tmk-accent);
    color: #fff;
    font-size: 14px;
}

.tmk-goals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tmk-goal {
    position: relative;
    cursor: pointer;
}

.tmk-goal input,
.tmk-segment input,
.tmk-chips input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tmk-goal span {
    display: grid;
    gap: 3px;
    height: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .15s, background .15s;
}

.tmk-goal strong {
    font-size: 15px;
    color: var(--ink);
}

.tmk-goal small {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

.tmk-goal input:checked + span {
    border-color: var(--tmk-accent);
    background: var(--tmk-soft);
    box-shadow: inset 0 0 0 1px var(--tmk-accent);
}

.tmk-goal input:focus-visible + span,
.tmk-segment input:focus-visible + span,
.tmk-chips input:focus-visible + span {
    outline: 3px solid rgba(30, 58, 110, .3);
    outline-offset: 1px;
}

.tmk-segment {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    width: fit-content;
    max-width: 100%;
}

.tmk-segment label {
    position: relative;
    cursor: pointer;
}

.tmk-segment span {
    display: block;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink-2);
    border-inline-start: 1px solid var(--line);
}

.tmk-segment label:first-child span {
    border-inline-start: 0;
}

.tmk-segment input:checked + span {
    background: var(--tmk-accent);
    color: #fff;
}

.tmk-segment--small span {
    padding: 7px 12px;
    font-size: 13.5px;
}

.tmk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tmk-chips label {
    position: relative;
    cursor: pointer;
}

.tmk-chips span {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13.5px;
    color: var(--ink-2);
}

.tmk-chips input:checked + span {
    border-color: var(--tmk-accent);
    background: var(--tmk-soft);
    color: var(--tmk-ink);
    font-weight: 700;
}

.tmk-chips--small span {
    padding: 5px 9px;
    font-size: 12.5px;
}

.tmk-more {
    border: 1px solid var(--line);
    background: #fff;
}

.tmk-more summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--ink);
}

.tmk-more summary small {
    color: var(--muted);
    font-weight: 500;
}

.tmk-more__body {
    display: grid;
    gap: 14px;
    padding: 0 18px 18px;
}

.tmk-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--tmk-soft);
    border: 1px solid var(--tmk-line);
}

.tmk-form__foot span {
    color: var(--ink-2);
    font-size: 14px;
    max-width: 520px;
}

/* ------------------------------------------------------------------ الاستوديو */

.tmk-journey {
    margin: 0 0 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 10px 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.tmk-journey ol {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmk-journey ol::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 14%;
    left: 14%;
    height: 2px;
    background: var(--line-subtle);
    content: '';
    z-index: 0;
}

.tmk-journey li {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 12px;
    background: #ffffff;
    color: var(--muted);
    text-align: start;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.tmk-journey li b {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid var(--line);
    background: #ffffff;
    color: var(--muted);
    font-family: 'Alexandria', sans-serif;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.tmk-journey li.is-done {
    color: var(--ink-2);
}

.tmk-journey li.is-done b {
    border-color: var(--tmk-accent);
    background: var(--tmk-soft);
    color: var(--tmk-accent);
}

.tmk-journey li.is-active {
    color: var(--tmk-ink);
    font-weight: 800;
}

.tmk-journey li.is-active b {
    border-color: var(--tmk-accent);
    background: var(--tmk-accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--tmk-soft);
}

.tmk-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.tmk-bar__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tmk-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tmk-bar__back:hover {
    background: var(--tmk-soft);
    border-color: var(--tmk-accent);
    color: var(--tmk-accent);
    text-decoration: none;
}

.tmk-bar__title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tmk-bar__title h1 {
    margin: 0;
    font-family: 'Alexandria', sans-serif;
    font-size: clamp(22px, 2.7vw, 30px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
}

.tmk-bar__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.tmk-ref {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-family: 'Alexandria', monospace;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: 0.04em;
}

.tmk-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    min-width: 76px;
}

.tmk-save:not(:empty)::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--good);
    box-shadow: 0 0 0 2px var(--good-soft);
}

.tmk-notices {
    margin-bottom: 14px;
}

.tmk-share-url {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--tmk-soft);
    border: 1px solid var(--tmk-line);
}

.tmk-share-url input {
    flex: 1;
    min-width: 240px;
    direction: ltr;
}

.tmk-stage-intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 22px;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--tmk-accent);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.tmk-stage-intro__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tmk-stage-intro__meta > span:first-child {
    display: inline-flex;
    align-items: center;
    color: var(--tmk-accent);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tmk-stage-intro__tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--tmk-soft);
    border: 1px solid var(--tmk-line);
    color: var(--tmk-ink);
    font-size: 11.5px;
    font-weight: 700;
}

.tmk-stage-intro h2 {
    margin: 2px 0 4px;
    color: var(--ink);
    font-family: 'Alexandria', sans-serif;
    font-size: clamp(20px, 2.3vw, 25px);
    font-weight: 800;
    line-height: 1.35;
}

.tmk-stage-intro p {
    max-width: 820px;
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.75;
}

.tmk-studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (min-width: 1024px) {
    .tmk-studio {
        grid-template-columns: 390px minmax(0, 1fr);
        gap: 28px;
    }

    .tmk-editor {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--line) transparent;
    }

    .tmk-editor::-webkit-scrollbar {
        width: 5px;
    }
    .tmk-editor::-webkit-scrollbar-thumb {
        background: var(--line);
    }
}

.tmk-editor {
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.tmk-editor > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    background: #ffffff;
    border-bottom: 1px solid var(--line-subtle);
    user-select: none;
    transition: background 0.15s ease;
}

.tmk-editor > summary:hover {
    background: #f8fafc;
}

.tmk-editor > summary strong {
    color: var(--tmk-accent);
    font-family: 'Alexandria', sans-serif;
    font-size: 15px;
    font-weight: 700;
    display: block;
}

.tmk-editor > summary span {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 220px;
}

.tmk-editor > summary::after {
    content: '▾';
    font-size: 15px;
    color: var(--muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.tmk-editor[open] > summary::after {
    transform: rotate(180deg);
}

.tmk-situation {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 0;
    background: var(--surface-2, #f8fafc);
}

.tmk-situation h2 {
    margin: 0;
    font-size: 16px;
    font-family: 'Alexandria', sans-serif;
}

.tmk-more--side summary {
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--line);
}

.tmk-more--side .tmk-more__body {
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 0;
    display: grid;
    gap: 12px;
}

.tmk-main {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.tmk-plan {
    display: grid;
    gap: 18px;
}

.tmk-plan__situation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    width: fit-content;
}

.tmk-plan__situation::before {
    content: '🎯';
    font-size: 13px;
}

.tmk-choice {
    display: grid;
    gap: 6px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #142a52 0%, #1e3a6e 100%);
    color: #ffffff;
    border: 1px solid #142a52;
    box-shadow: 0 4px 16px -6px rgba(30, 58, 110, 0.35);
}

.tmk-choice__label {
    font-size: 12.5px;
    font-weight: 700;
    color: #94b8ff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tmk-choice__name {
    font-family: 'Alexandria', sans-serif;
    font-size: clamp(23px, 2.6vw, 29px);
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
}

.tmk-choice__with {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tmk-choice__with span {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.tmk-why {
    margin-top: -18px;
    padding: 16px 24px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.tmk-why strong {
    color: var(--tmk-accent);
    font-family: 'Alexandria', sans-serif;
}

.tmk-why summary {
    cursor: pointer;
    color: var(--tmk-accent);
    font-family: 'Alexandria', sans-serif;
    font-weight: 700;
    font-size: 15px;
    user-select: none;
}

.tmk-why p {
    margin: 8px 0 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.7;
}

.tmk-why ul {
    margin: 0;
    padding-inline-start: 20px;
    color: var(--ink-2);
    line-height: 1.8;
    font-size: 14.5px;
    display: grid;
    gap: 4px;
}

.tmk-alt {
    padding: 12px 18px;
    border: 1px dashed var(--line-strong);
    background: #ffffff;
    font-size: 14px;
    color: var(--ink-2);
}

.tmk-alt summary {
    cursor: pointer;
    color: var(--tmk-accent);
    font-weight: 700;
    font-size: 14px;
}

.tmk-alt__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding-top: 10px;
}

.tmk-block {
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 20px 24px;
    min-width: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.tmk-block--quiet {
    background: var(--surface-2, #f8fafc);
}

.tmk-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-subtle);
}

.tmk-block__head h3 {
    margin: 0;
    font-family: 'Alexandria', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
}

.tmk-block__head span,
.tmk-block__head a {
    font-size: 13px;
    color: var(--muted);
}

.tmk-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.tmk-steps li {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line-subtle);
    align-items: start;
}

.tmk-steps li:first-child {
    border-top: 0;
    padding-top: 2px;
}

.tmk-steps__time {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8px 6px;
    background: var(--tmk-soft);
    border: 1px solid var(--tmk-line-subtle);
    gap: 2px;
}

.tmk-steps__time bdi {
    font-family: 'Alexandria', monospace;
    font-weight: 800;
    color: var(--tmk-accent);
    font-size: 14.5px;
    letter-spacing: 0.03em;
}

.tmk-steps__time small {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.tmk-steps li.is-check .tmk-steps__time {
    background: var(--tmk-accent);
    border-color: var(--tmk-accent);
}

.tmk-steps li.is-check .tmk-steps__time bdi,
.tmk-steps li.is-check .tmk-steps__time small {
    color: #ffffff;
}

.tmk-steps li.is-frame strong {
    color: var(--ink-2);
}

.tmk-steps strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.tmk-steps p {
    margin: 5px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--ink-2);
}

.tmk-steps p b {
    color: var(--tmk-accent);
    font-weight: 700;
    margin-inline-end: 4px;
}

.tmk-lock i {
    display: block;
    height: 9px;
    margin-top: 7px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: tmk-shimmer 2.2s infinite linear;
}

@keyframes tmk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tmk-lock-note {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--tmk-line);
    background: var(--tmk-soft);
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.7;
}

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

.tmk-q-stem {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.6;
}

.tmk-q-options {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tmk-q-options li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 13.5px;
    color: var(--ink);
}

.tmk-q-options b {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    background: var(--tmk-soft);
    color: var(--tmk-accent);
    font-family: 'Alexandria', sans-serif;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.tmk-q-options .is-answer {
    border-color: var(--good-border);
    background: var(--good-soft);
    color: #065f46;
    font-weight: 700;
}

.tmk-q-options .is-answer b {
    background: var(--good);
    color: #ffffff;
}

.tmk-q-spec,
.tmk-success,
.tmk-decision {
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid var(--line-subtle);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-2);
}

.tmk-success b {
    color: var(--good);
    font-weight: 700;
}

.tmk-decision b {
    color: var(--tmk-accent);
    font-weight: 700;
}

.tmk-branches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.tmk-branches li {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--line-subtle);
    border-inline-start: 4px solid #1d4ed8;
    background: #f8fafc;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-2);
}

.tmk-branches li strong {
    color: var(--ink);
    font-weight: 700;
}

.tmk-branches .is-not_understood {
    border-inline-start-color: #b45309;
    background: #fffbeb;
}

.tmk-branches .is-mixed {
    border-inline-start-color: #1d4ed8;
    background: #eff6ff;
}

.tmk-branches .is-mastered {
    border-inline-start-color: var(--good);
    background: var(--good-soft);
}

.tmk-materials {
    margin: 0;
    padding-inline-start: 20px;
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.7;
}

.tmk-materials .is-tip {
    color: var(--muted);
}

.tmk-content,
.tmk-issue {
    display: grid;
    gap: 14px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.tmk-main.is-issued .tmk-issue {
    border-color: var(--tmk-line);
    border-inline-start: 5px solid var(--tmk-accent);
}

.tmk-content {
    padding: 0;
}

.tmk-content > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    background: #f8fafc;
    border-bottom: 1px solid var(--line-subtle);
    user-select: none;
    transition: background 0.15s ease;
}

.tmk-content > summary:hover {
    background: #f1f5f9;
}

.tmk-content > summary strong {
    color: var(--ink);
    font-family: 'Alexandria', sans-serif;
    font-size: 15px;
}

.tmk-content > summary span {
    color: var(--muted);
    font-size: 13px;
}

.tmk-content > summary::after {
    content: '▾';
    font-size: 15px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.tmk-content[open] > summary::after {
    transform: rotate(180deg);
}

.tmk-content__body {
    display: grid;
    gap: 14px;
    padding: 20px 24px;
}

.tmk-question {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    background: #fbfcfe;
    min-width: 0;
}

.tmk-question legend {
    padding: 0 8px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink);
}

.tmk-question__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tmk-question__options label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 6px 10px;
    transition: border-color 0.15s ease;
}

.tmk-question__options label:focus-within {
    border-color: var(--tmk-accent);
}

.tmk-question__options b {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    background: var(--tmk-soft);
    color: var(--tmk-accent);
    font-family: 'Alexandria', sans-serif;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.tmk-suggest {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #c4b5fd;
    background: #faf5ff;
    font-size: 14px;
    line-height: 1.75;
}

.tmk-suggest p {
    margin: 0;
}

.tmk-suggest__notice {
    font-weight: 700;
    color: #6d28d9;
}

.tmk-suggest__stem {
    font-weight: 700;
}

.tmk-outputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tmk-outputs form {
    margin: 0;
}

.tmk-verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: var(--good-soft);
    border: 1px solid var(--good-border);
    color: var(--good);
    font-size: 12.5px;
    font-weight: 700;
}

.tmk-next-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: var(--tmk-soft);
    border: 1px solid var(--tmk-line-subtle);
}

.tmk-next-action__lead {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tmk-next-action__kicker {
    font-size: 12px;
    font-weight: 800;
    color: var(--tmk-accent);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tmk-next-action__lead strong {
    font-family: 'Alexandria', sans-serif;
    font-size: 16px;
    color: var(--ink);
}

.tmk-next-action .btn {
    padding: 9px 24px;
    font-size: 14.5px;
    font-weight: 700;
}

.tmk-other-actions {
    padding-top: 6px;
    border-top: 1px solid var(--line-subtle);
}

.tmk-other-actions summary {
    padding: 8px 0;
    cursor: pointer;
    color: var(--ink-2);
    font-weight: 700;
    font-size: 13.5px;
}

.tmk-unlock-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--ink-2);
    font-size: 14px;
}

.tmk-unlock-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmk-unlock-list li::before {
    content: '✓';
    color: var(--tmk-accent);
    font-weight: 800;
}

.tmk-issue__form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13.5px;
}

.tmk-offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.tmk-offer {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.15s ease;
}

.tmk-offer:hover {
    border-color: var(--tmk-accent);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(30, 58, 110, 0.08);
}

.tmk-offer.is-featured {
    border-color: var(--tmk-accent);
    background: var(--tmk-soft);
}

.tmk-offer span {
    font-family: 'Alexandria', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--tmk-accent);
}

.tmk-delete {
    margin: 6px 0 0;
}

.tmk-delete button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.15s ease;
}

.tmk-delete button:hover {
    color: var(--critical, #dc2626);
}

/* ------------------------------------------------------------------ بطاقاتي */

.tmk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.tmk-card {
    display: grid;
    gap: 6px;
    align-content: start;
    justify-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--tmk-accent);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.tmk-card:hover {
    border-color: var(--tmk-accent);
}

.tmk-card strong {
    font-size: 15.5px;
    line-height: 1.5;
}

.tmk-card small,
.tmk-card time {
    color: var(--muted);
    font-size: 12.5px;
}

.tmk-card em {
    font-style: normal;
    font-size: 13px;
    color: var(--tmk-accent);
    font-weight: 700;
}

.tmk-empty {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 48px 16px;
    border: 1px dashed var(--line-strong);
    background: #fff;
    text-align: center;
    color: var(--ink-2);
}

/* ------------------------------------------------------------------ الشاشات الصغيرة */

@media (max-width: 1020px) {
    .tmk-studio {
        grid-template-columns: 1fr;
    }

    .tmk-editor {
        order: 0;
    }

    .tmk-main {
        order: 1;
    }
}

@media (max-width: 860px) {
    .tmk-hero,
    .tmk-grid {
        grid-template-columns: 1fr;
    }

    .tmk-goals,
    .tmk-how__grid,
    .tmk-samples,
    .tmk-chain ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tmk-how__grid,
    .tmk-samples,
    .tmk-chain ol,
    .tmk-offers,
    .tmk-q-options,
    .tmk-question__options {
        grid-template-columns: 1fr;
    }

    .tmk .ath-row {
        grid-template-columns: 1fr;
    }

    .tmk-steps li {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
    }

    .tmk-choice__name {
        font-size: 20px;
    }

    .tmk-journey ol {
        gap: 6px;
    }

    .tmk-journey li {
        padding: 4px 6px;
        font-size: 12px;
        gap: 6px;
    }

    .tmk-journey li b {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .tmk-editor > summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .tmk-editor > summary span {
        max-width: 100%;
        white-space: normal;
    }

    .tmk-next-action .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
