/* Brand refinements, approved roadmap, and responsive presentation through 3.4.21. */

/* Header identity: keep the generated mark crisp and the Persian wordmark readable at every width. */
.tte-page .tte-header .tte-brand {
    display: flex !important;
    align-items: center !important;
    gap: clamp(7px, .75vw, 11px) !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: min(100%, 248px) !important;
}
.tte-page .tte-header .tte-brand__mark {
    display: grid !important;
    place-items: center !important;
    width: clamp(34px, 3.1vw, 46px) !important;
    height: clamp(42px, 3.9vw, 52px) !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
}
.tte-page .tte-header .tte-brand__mark .tte-logo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.tte-page .tte-header .tte-brand__text {
    display: flex !important;
    flex: 0 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
    line-height: 1.25 !important;
}
.tte-page .tte-header .tte-brand__text b {
    display: block !important;
    color: var(--tte-accent, #0c4d3b) !important;
    font-size: clamp(14px, 1.18vw, 19px) !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}
.tte-page .tte-header .tte-brand__text small {
    display: block !important;
    color: var(--tte-muted, #708078) !important;
    font-size: clamp(8px, .68vw, 10px) !important;
    line-height: 1.45 !important;
    white-space: nowrap !important;
}
@media (max-width: 1000px) {
    .tte-page .tte-header .tte-brand__text small { display: none !important; }
    .tte-page .tte-header .tte-brand__text b { font-size: clamp(14px, 1.6vw, 16px) !important; }
}
@media (max-width: 520px) {
    .tte-page .tte-header .tte-brand { max-width: calc(100vw - 118px) !important; gap: 7px !important; }
    .tte-page .tte-header .tte-brand__mark { width: 33px !important; height: 40px !important; }
    .tte-page .tte-header .tte-brand__text b { font-size: 14px !important; }
}
@media (max-width: 370px) {
    .tte-page .tte-header .tte-brand { max-width: calc(100vw - 108px) !important; gap: 6px !important; }
    .tte-page .tte-header .tte-brand__mark { width: 30px !important; height: 36px !important; }
    .tte-page .tte-header .tte-brand__text b { font-size: 13px !important; }
}

/* 3.4.13 roadmap: the approved Iranian-Islamic educational illustration is a replaceable art layer; station content stays live and editable in Elementor. */
.tte-page .tte-section--paths > .tte-container > .tte-section__head {
    direction: rtl;
    max-width: none;
    margin-inline: 0;
    text-align: right;
}
.tte-page .tte-section--paths .tte-pathmap {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(370px, .94fr);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(182, 155, 99, .4);
    border-radius: 21px;
    background: linear-gradient(145deg, var(--tte-paper, #fff) 0%, var(--tte-cream, #fbf9f1) 100%);
    box-shadow: none;
    direction: ltr;
}
.tte-page .tte-section--paths .tte-pathmap__visual {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 390px;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 600 / 448;
    border: 0;
    border-radius: 0;
    background: var(--tte-map-bg, var(--tte-cream, #fbf9f1));
    box-shadow: none;
}
/* A single soft green-to-gold fade divides the map from its editable station list. */
.tte-page .tte-section--paths .tte-pathmap__visual::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 7%;
    right: 0;
    bottom: 7%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--tte-gold-light, #e6cc83), var(--tte-green, #1c6b55), var(--tte-gold, #b69b63), transparent);
    opacity: .76;
    pointer-events: none;
}
.tte-page .tte-section--paths .tte-pathmap__artwork {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: fill;
    opacity: var(--tte-map-art-opacity, 1);
    pointer-events: none;
    user-select: none;
}
.tte-page .tte-section--paths .tte-pathmap[data-flip-art="yes"] .tte-pathmap__artwork { transform: scaleX(-1); }
.tte-page .tte-section--paths .tte-pathmap__ornaments {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: var(--tte-map-gold, var(--tte-gold, #b69b63));
    stroke-width: 1.15;
    opacity: var(--tte-map-pattern-opacity, .2);
    pointer-events: none;
}
.tte-page .tte-section--paths .tte-pathmap__ornament-star { fill: var(--tte-gold-soft, #f3ecda); stroke: var(--tte-map-gold, var(--tte-gold, #b69b63)); }
.tte-page .tte-section--paths .tte-pathmap__ornament-diamond { fill: var(--tte-green, #1c6b55); stroke: var(--tte-map-gold, var(--tte-gold, #b69b63)); stroke-width: .9; }
.tte-page .tte-section--paths .tte-pathmap__ornament-corner { stroke: var(--tte-map-route, var(--tte-accent, #0c4d3b)); stroke-width: .9; }
.tte-page .tte-section--paths .tte-pathmap__svg {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.tte-page .tte-section--paths .tte-pathmap__road-border,
.tte-page .tte-section--paths .tte-pathmap__road,
.tte-page .tte-section--paths .tte-pathmap__road-center,
.tte-page .tte-section--paths .tte-pathmap__road-progress {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tte-page .tte-section--paths .tte-pathmap__road-border { stroke: var(--tte-map-bg, var(--tte-cream, #fbf9f1)); stroke-width: 9; opacity: .22; }
.tte-page .tte-section--paths .tte-pathmap__road { stroke: var(--tte-map-route, var(--tte-accent, #0c4d3b)); stroke-width: 4.2; opacity: .32; }
.tte-page .tte-section--paths .tte-pathmap__road-center { stroke: var(--tte-map-bg, var(--tte-cream, #fbf9f1)); stroke-width: 1; stroke-dasharray: 1 7; opacity: .28; }
.tte-page .tte-section--paths .tte-pathmap__road-progress { stroke: var(--tte-map-gold, var(--tte-gold, #b69b63)); stroke-width: 2.6; opacity: .88; }
.tte-page .tte-section--paths .tte-pathmap__station-pin { fill: var(--tte-map-bg, var(--tte-cream, #fbf9f1)); stroke: var(--tte-map-gold, var(--tte-gold, #b69b63)); stroke-width: 1.7; transition: fill .18s ease, stroke .18s ease; }
.tte-page .tte-section--paths .tte-pathmap__station-core { fill: var(--tte-map-route, var(--tte-accent, #0c4d3b)); stroke: var(--tte-map-bg, var(--tte-cream, #fbf9f1)); stroke-width: 1; transition: fill .18s ease; }
.tte-page .tte-section--paths .tte-pathmap__station text { fill: #fff; font-family: inherit; font-size: 9px; font-weight: 900; text-anchor: middle; dominant-baseline: central; }
.tte-page .tte-section--paths .tte-pathmap__station.is-passed .tte-pathmap__station-pin { fill: var(--tte-green, #1c6b55); stroke: var(--tte-green, #1c6b55); }
.tte-page .tte-section--paths .tte-pathmap__station.is-passed .tte-pathmap__station-core { fill: var(--tte-gold-light, #e6cc83); }
.tte-page .tte-section--paths .tte-pathmap__station.is-passed text { fill: var(--tte-deep, #073d30); }
.tte-page .tte-section--paths .tte-pathmap__station.is-active .tte-pathmap__station-pin { fill: var(--tte-gold-light, #e6cc83); stroke: var(--tte-map-gold, var(--tte-gold, #b69b63)); stroke-width: 2; }
.tte-page .tte-section--paths .tte-pathmap__station.is-active .tte-pathmap__station-core { fill: var(--tte-map-route, var(--tte-accent, #0c4d3b)); stroke: #fff; stroke-width: 1.1; }
.tte-page .tte-section--paths .tte-pathmap__traveler-halo { fill: rgba(230, 204, 131, .28); stroke: var(--tte-map-gold, var(--tte-gold, #b69b63)); stroke-width: 1.1; pointer-events: none; }
.tte-page .tte-section--paths .tte-pathmap__traveler-core { fill: var(--tte-gold-light, #e6cc83); stroke: var(--tte-map-route, var(--tte-accent, #0c4d3b)); stroke-width: 1.1; pointer-events: none; }
.tte-page .tte-section--paths .tte-pathmap__station-control {
    position: absolute;
    z-index: 4;
    left: var(--tte-station-x);
    top: var(--tte-station-y);
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transform: translate(-50%, -50%);
}
.tte-page .tte-section--paths .tte-pathmap__station-control:hover { background: transparent; box-shadow: none; transform: translate(-50%, -50%); }
.tte-page .tte-section--paths .tte-pathmap__station-control:focus-visible { outline: 2px solid var(--tte-map-gold, var(--tte-gold, #b69b63)); outline-offset: 1px; }
.tte-page .tte-section--paths .tte-pathmap__station-control .tte-icon,
.tte-page .tte-section--paths .tte-pathmap__station-control svg { display: block; width: 14px; height: 14px; }
.tte-page .tte-section--paths .tte-pathmap__station-control i { color: #fff; font-size: 13px; }
.tte-page .tte-section--paths .tte-pathmap__station-art { position: absolute; z-index: 3; left: var(--tte-station-x); top: var(--tte-station-y); display: block; width: clamp(38px, 6.2vw, 66px); height: clamp(38px, 6.2vw, 66px); max-width: none; object-fit: contain; pointer-events: none; transform: translate(-50%, -50%); }
.tte-page .tte-section--paths .tte-pathmap__popup {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 12px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: min(300px, calc(100% - 20px));
    padding: 9px 10px;
    border: 1px solid rgba(182, 155, 99, .46);
    border-radius: 10px;
    background: rgba(255, 255, 255, .98);
    color: var(--tte-text, #20352e);
    direction: rtl;
    text-align: right;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity .18s ease, transform .18s ease, left .35s ease, top .35s ease;
}
.tte-page .tte-section--paths .tte-pathmap__popup.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.tte-page .tte-section--paths .tte-pathmap__popup-image { display: block; width: 72px; height: 72px; border: 1px solid rgba(182, 155, 99, .4); border-radius: 7px; background: var(--tte-gold-soft, #f3ecda); object-fit: cover; }
.tte-page .tte-section--paths .tte-pathmap__popup-copy { min-width: 0; }
.tte-page .tte-section--paths .tte-pathmap__popup-tags { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; margin-bottom: 3px; }
.tte-page .tte-section--paths .tte-pathmap__popup-step { color: var(--tte-map-gold, var(--tte-gold, #b69b63)); font-size: 9px; font-weight: 900; }
.tte-page .tte-section--paths .tte-pathmap__popup-feed { overflow: hidden; color: var(--tte-muted, #708078); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.tte-page .tte-section--paths .tte-pathmap__popup h4 { margin: 0 0 3px; color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); font-size: 12px; font-weight: 900; line-height: 1.55; }
.tte-page .tte-section--paths .tte-pathmap__popup p { margin: 0 0 5px; color: var(--tte-muted, #708078); font-size: 9px; line-height: 1.65; }
.tte-page .tte-section--paths .tte-pathmap__popup-link { display: inline-flex; align-items: center; gap: 5px; color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); font-size: 9px; font-weight: 900; }
.tte-page .tte-section--paths .tte-pathmap__popup-link:hover { color: var(--tte-green, #1c6b55); }
.tte-page .tte-section--paths .tte-pathmap__popup-link .tte-icon { width: 10px; height: 10px; }
.tte-page .tte-section--paths .tte-pathmap__chooser {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(15px, 1.7vw, 22px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    direction: rtl;
    text-align: right;
}
.tte-page .tte-section--paths .tte-pathmap__chooser-head { margin-bottom: 8px; }
.tte-page .tte-section--paths .tte-pathmap__chooser-head > span:first-child { display: inline-flex; align-items: center; margin-bottom: 3px; color: var(--tte-map-gold, var(--tte-gold, #b69b63)); font-size: 10px; font-weight: 900; }
.tte-page .tte-section--paths .tte-pathmap__chooser-head h3 { margin: 0; color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); font-size: clamp(16px, 1.25vw, 19px); font-weight: 900; line-height: 1.5; }
.tte-page .tte-section--paths .tte-pathmap__chooser-head p { margin: 3px 0 0; color: var(--tte-muted, #708078); font-size: 10px; line-height: 1.65; }
.tte-page .tte-section--paths .tte-pathmap__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.tte-page .tte-section--paths .tte-pathmap__counter { color: var(--tte-muted, #708078); font-size: 10px; font-weight: 800; white-space: nowrap; }
.tte-page .tte-section--paths .tte-pathmap__meter { flex: 1 1 auto; min-width: 54px; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(182, 155, 99, .22); direction: rtl; }
.tte-page .tte-section--paths .tte-pathmap__meter > span { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tte-gold-light, #e6cc83), var(--tte-green, #1c6b55)); transition: width .45s ease; }
.tte-page .tte-section--paths .tte-pathmap__routes { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; direction: rtl; }
.tte-page .tte-section--paths .tte-pathmap__routes::before { display: none; }
.tte-page .tte-section--paths .tte-pathmap__route {
    position: relative;
    display: grid;
    grid-template-columns: 22px 22px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--tte-text, #20352e);
    text-align: right;
    text-decoration: none;
    transition: color .16s ease, background .16s ease;
}
.tte-page .tte-section--paths .tte-pathmap__route:not(:last-child)::after { content: ""; position: absolute; right: 30px; bottom: 0; left: 10px; height: 1px; background: linear-gradient(90deg, transparent, rgba(182, 155, 99, .28), rgba(28, 107, 85, .12), transparent); pointer-events: none; }
.tte-page .tte-section--paths .tte-pathmap__route:hover,
.tte-page .tte-section--paths .tte-pathmap__route:focus-visible,
.tte-page .tte-section--paths .tte-pathmap__route.is-active { background: linear-gradient(90deg, transparent, rgba(243, 236, 218, .56), transparent); color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); }
.tte-page .tte-section--paths .tte-pathmap__route:hover { transform: none; box-shadow: none; }
.tte-page .tte-section--paths .tte-pathmap__route:focus-visible { outline: 1px solid rgba(182, 155, 99, .7); outline-offset: -1px; }
.tte-page .tte-section--paths .tte-pathmap__number { display: block; width: auto; height: auto; border: 0; border-radius: 0; background: none; color: var(--tte-map-gold, var(--tte-gold, #b69b63)); font-size: 10px; font-weight: 900; text-align: center; }
.tte-page .tte-section--paths .tte-pathmap__route.is-passed .tte-pathmap__number { color: var(--tte-green, #1c6b55); }
.tte-page .tte-section--paths .tte-pathmap__route.is-active .tte-pathmap__number { color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); }
.tte-page .tte-section--paths .tte-pathmap__route-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tte-page .tte-section--paths .tte-pathmap__route-copy b { overflow: hidden; color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); font-size: 11px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.tte-page .tte-section--paths .tte-pathmap__route-copy small { overflow: hidden; color: var(--tte-muted, #708078); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.tte-page .tte-section--paths .tte-pathmap__route-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 0; background: none; color: var(--tte-muted, #708078); }
.tte-page .tte-section--paths .tte-pathmap__route.is-active .tte-pathmap__route-icon { color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); }
.tte-page .tte-section--paths .tte-pathmap__route-icon .tte-icon,
.tte-page .tte-section--paths .tte-pathmap__route-icon svg { width: 17px; height: 17px; }
.tte-page .tte-section--paths .tte-pathmap__route-arrow { color: var(--tte-map-gold, var(--tte-gold, #b69b63)); opacity: .5; }
.tte-page .tte-section--paths .tte-pathmap__route-arrow .tte-icon { width: 10px; height: 10px; }
.tte-page .tte-section--paths .tte-pathmap__all { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: auto; padding-top: 9px; color: var(--tte-map-route, var(--tte-accent, #0c4d3b)); font-size: 9px; font-weight: 900; }
.tte-page .tte-section--paths .tte-pathmap__all:hover { color: var(--tte-green, #1c6b55); }
.tte-page .tte-section--paths .tte-pathmap__all .tte-icon { width: 12px; height: 12px; }
@media (max-width: 1000px) {
    .tte-page .tte-section--paths .tte-pathmap { grid-template-columns: minmax(0, 1fr); }
    .tte-page .tte-section--paths .tte-pathmap__visual { min-height: clamp(300px, 48vw, 420px); }
    .tte-page .tte-section--paths .tte-pathmap__visual::before { top: auto; right: 7%; bottom: 0; left: 7%; width: auto; height: 2px; background: linear-gradient(90deg, transparent, var(--tte-gold-light, #e6cc83), var(--tte-green, #1c6b55), var(--tte-map-gold, var(--tte-gold, #b69b63)), transparent); }
    .tte-page .tte-section--paths .tte-pathmap__chooser { padding: 16px 18px; }
    .tte-page .tte-section--paths .tte-pathmap__routes { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; }
    .tte-page .tte-section--paths .tte-pathmap__route { grid-template-columns: 20px minmax(0, 1fr) 10px; }
    .tte-page .tte-section--paths .tte-pathmap__route-icon { display: none; }
}
@media (max-width: 720px) {
    .tte-page .tte-section--paths .tte-pathmap__visual { min-height: clamp(250px, 40vw, 330px); }
    .tte-page .tte-section--paths .tte-pathmap__routes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
}
@media (max-width: 440px) {
    .tte-page .tte-section--paths .tte-pathmap__visual { min-height: min(260px, 68vw); }
    .tte-page .tte-section--paths .tte-pathmap__popup { grid-template-columns: 60px minmax(0, 1fr); gap: 7px; width: min(280px, calc(100% - 16px)); padding: 7px 8px; }
    .tte-page .tte-section--paths .tte-pathmap__popup-image { width: 60px; height: 60px; }
    .tte-page .tte-section--paths .tte-pathmap__popup h4 { font-size: 11px; }
    .tte-page .tte-section--paths .tte-pathmap__popup p { font-size: 8px; }
    .tte-page .tte-section--paths .tte-pathmap__routes { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .tte-page .tte-section--paths .tte-pathmap__route,
    .tte-page .tte-section--paths .tte-pathmap__station-control,
    .tte-page .tte-section--paths .tte-pathmap__station-pin,
    .tte-page .tte-section--paths .tte-pathmap__station-core,
    .tte-page .tte-section--paths .tte-pathmap__popup,
    .tte-page .tte-section--paths .tte-pathmap__meter > span,
    .tte-page .tte-hero--home.has-slider .tte-hero__dots button .tte-hero__dot-preview { transition: none !important; }
}

/* Hover/focus a pill to reveal the exact slide it will open. */
.tte-page .tte-hero--home.has-slider .tte-hero__dots button {
    position: relative;
    overflow: visible;
    flex: 0 0 9px;
    z-index: 1;
}
.tte-page .tte-hero--home.has-slider .tte-hero__dots button.is-active { flex-basis: 30px; z-index: 2; }
.tte-page .tte-hero--home.has-slider .tte-hero__dots button .tte-hero__dot-preview {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 16px);
    z-index: 5;
    display: block;
    width: clamp(158px, 17vw, 216px);
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 14px;
    background: #f6f2e8;
    box-shadow: 0 13px 34px rgba(7, 28, 21, .3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.tte-page .tte-hero--home.has-slider .tte-hero__dots button .tte-hero__dot-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tte-page .tte-hero--home.has-slider .tte-hero__dots button .tte-hero__dot-preview b {
    position: absolute;
    inset: auto 0 0;
    display: -webkit-box;
    overflow: hidden;
    padding: 20px 10px 8px;
    background: linear-gradient(0deg, rgba(10, 36, 27, .9), transparent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.6;
    text-align: right;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.tte-page .tte-hero--home.has-slider .tte-hero__dots button:hover .tte-hero__dot-preview,
.tte-page .tte-hero--home.has-slider .tte-hero__dots button:focus-visible .tte-hero__dot-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.tte-page .tte-hero--home.has-slider .tte-hero__dots button:focus-visible { outline: 2px solid #e6cc83; outline-offset: 5px; }
@media (hover: none) {
    .tte-page .tte-hero--home.has-slider .tte-hero__dots button .tte-hero__dot-preview { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .tte-page .tte-hero--home.has-slider .tte-hero__dots button .tte-hero__dot-preview { transition: none !important; }
}

/* 3.4.15: give every hero a fluid image crop and a readable tablet/phone composition. */
.tte-page .tte-hero,
.tte-page .tte-hero__slide.has-hero-image { min-width: 0; overflow: hidden; }
.tte-page .tte-hero__image { display: block; max-width: none !important; height: 100% !important; object-fit: cover !important; }
@media (min-width: 768px) and (max-width: 1024px) {
    .tte-page .tte-hero { min-height: clamp(390px, 48vw, 500px) !important; }
    .tte-page .tte-hero--home { min-height: clamp(460px, 55vw, 560px) !important; }
    .tte-page .tte-hero__image,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__image { inset: 0 !important; width: 100% !important; height: 100% !important; object-position: center 36% !important; }
    .tte-page .tte-hero.tte-hero--courses .tte-hero__image { width: 100% !important; object-position: left center !important; }
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery .tte-hero__image { width: 100% !important; object-position: center center !important; }
    .tte-page .tte-hero__slide::before,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__slide::before { inset: 0 !important; width: 100% !important; height: 100% !important; background-size: cover !important; background-position: center 36% !important; }
    .tte-page .tte-hero__slide::after { background: linear-gradient(270deg, rgba(7, 61, 48, .96) 0%, rgba(7, 61, 48, .82) 43%, rgba(7, 61, 48, .18) 100%) !important; }
    .tte-page .tte-hero__copy,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__copy { width: min(56%, 650px) !important; max-width: 56% !important; }
    .tte-page .tte-hero--courses .tte-hero__copy { width: min(56%, 650px) !important; max-width: 56% !important; }
}
@media (max-width: 767px) {
    .tte-page .tte-hero { min-height: clamp(420px, 118vw, 560px) !important; }
    .tte-page .tte-hero--home { min-height: clamp(480px, 130vw, 620px) !important; }
    .tte-page .tte-hero__slide { overflow: hidden; }
    .tte-page .tte-hero__image,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__image { inset: 0 !important; width: 100% !important; height: 100% !important; object-position: center 34% !important; }
    .tte-page .tte-hero.tte-hero--courses .tte-hero__image { width: 100% !important; object-position: left center !important; }
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery .tte-hero__image { width: 100% !important; object-position: center center !important; }
    .tte-page .tte-hero__slide::before,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__slide::before { inset: 0 !important; width: 100% !important; height: 100% !important; background-size: cover !important; background-position: center 34% !important; }
    .tte-page .tte-hero__slide::after { background: linear-gradient(0deg, var(--tte-hero-deep, #073d30) 0%, rgba(7, 61, 48, .94) 38%, rgba(7, 61, 48, .48) 72%, rgba(7, 61, 48, .08) 100%) !important; }
    .tte-page .tte-hero__inner,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__inner { align-items: flex-end !important; min-height: inherit !important; }
    .tte-page .tte-hero__copy,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__copy,
    .tte-page .tte-hero--courses .tte-hero__copy { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 24px 14px 78px !important; text-align: right !important; }
    .tte-page .tte-hero__title { font-size: clamp(25px, 7vw, 34px) !important; line-height: 1.4 !important; }
    .tte-page .tte-hero__subtitle { max-width: 100% !important; font-size: clamp(12px, 3.6vw, 15px) !important; line-height: 1.7 !important; }
    .tte-page .tte-hero__actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
    .tte-page .tte-hero__actions .tte-btn { min-height: 40px !important; padding-inline: 14px !important; white-space: normal; }
}
@media (max-width: 380px) {
    .tte-page .tte-hero__copy,
    .tte-page .tte-hero:not(.tte-hero--home) .tte-hero__copy { padding-inline: 11px !important; }
    .tte-page .tte-hero__actions .tte-btn { padding-inline: 11px !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery { min-height: clamp(220px, 28vw, 300px) !important; }
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery .tte-hero__copy { width: 56% !important; max-width: 56% !important; }
}
@media (max-width: 767px) {
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery { min-height: clamp(220px, 70vw, 300px) !important; }
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery .tte-hero__copy { width: 100% !important; max-width: none !important; padding: 16px 14px 20px !important; }
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery .tte-hero__title { font-size: clamp(20px, 6vw, 25px) !important; }
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery .tte-hero__subtitle { font-size: clamp(10px, 3vw, 12px) !important; }
    body.tte-page.tte-screen-password-recovery .tte-hero--password-recovery .tte-hero__slide::after { background: linear-gradient(0deg, var(--tte-hero-deep, #073d30) 0%, rgba(7, 61, 48, .88) 44%, rgba(7, 61, 48, .12) 100%) !important; }
}

/* Section-level navigation buttons: a quiet, centered finish after the cards. */
.tte-page .tte-section__more { display: flex; justify-content: center; margin: 22px auto 0; }
.tte-page .tte-section__more .tte-btn { min-width: 190px; }
.tte-page .tte-finder3__actions { display: flex; justify-content: flex-start; margin-top: 14px; }
.tte-page .tte-finder3__all-link { min-height: 40px; padding-inline: 22px; }

/* Give the active station enough room for a useful, readable content description. */
.tte-page .tte-section--paths .tte-pathmap__popup { grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 12px; width: min(340px, calc(100% - 20px)); min-height: 188px; padding: 12px; }
.tte-page .tte-section--paths .tte-pathmap__popup-image { width: 84px; height: 84px; }
.tte-page .tte-section--paths .tte-pathmap__popup h4 { font-size: 13px; line-height: 1.55; }
.tte-page .tte-section--paths .tte-pathmap__popup p { font-size: 10px; line-height: 1.8; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
@media (max-width: 767px) {
    .tte-page .tte-section__more { margin-top: 18px; }
    .tte-page .tte-section__more .tte-btn { width: min(100%, 320px); }
    .tte-page .tte-finder3__actions { justify-content: stretch; }
    .tte-page .tte-finder3__all-link { width: 100%; justify-content: center; }
}
@media (max-width: 440px) {
    .tte-page .tte-section--paths .tte-pathmap__popup { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; width: min(286px, calc(100% - 16px)); min-height: 172px; padding: 8px 9px; }
    .tte-page .tte-section--paths .tte-pathmap__popup-image { width: 58px; height: 58px; }
    .tte-page .tte-section--paths .tte-pathmap__popup h4 { font-size: 11px; }
    .tte-page .tte-section--paths .tte-pathmap__popup p { font-size: 9px; line-height: 1.7; -webkit-line-clamp: 5; }
}

/* Keep the identity tagline inside its own column instead of spilling into «خانه». */
.tte-page .tte-header__row { gap: 12px !important; }
.tte-page .tte-header .tte-brand { min-width: 0 !important; max-width: 210px !important; flex: 0 0 190px !important; }
.tte-page .tte-header .tte-brand__text { min-width: 0 !important; max-width: 100% !important; overflow: hidden !important; }
.tte-page .tte-header .tte-brand__text small { display: block !important; max-width: 100% !important; overflow: hidden !important; font-size: 9px !important; line-height: 1.25 !important; white-space: nowrap !important; text-overflow: ellipsis !important; }
@media (min-width: 1025px) and (max-width: 1320px) {
    .tte-page .tte-header .tte-brand { flex-basis: 172px !important; max-width: 172px !important; }
    .tte-page .tte-header__row { gap: 9px !important; }
    .tte-page .tte-nav { min-width: 0 !important; gap: 0 !important; }
    .tte-page .tte-nav a { padding-inline: 4px !important; font-size: clamp(9px, .75vw, 10px) !important; }
    .tte-page .tte-header__tools { gap: 5px !important; }
}
@media (max-width: 1024px) {
    .tte-page .tte-header .tte-brand { flex: 1 1 auto !important; min-width: 0 !important; max-width: min(100%, 250px) !important; }
    .tte-page .tte-header .tte-brand__text small { display: none !important; }
}

.tte-page .tte-section__more button.tte-btn[disabled] { opacity: .85; cursor: not-allowed; pointer-events: none; }

/* 3.4.17 — sticky header, compact legal bar, and the unified footer identity. */
.tte-page .tte-header,
.tte-site .tte-header,
.elementor-location-header .tte-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
}
body.admin-bar .tte-page .tte-header,
body.admin-bar .tte-site .tte-header,
body.admin-bar .elementor-location-header .tte-header { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .tte-page .tte-header,
    body.admin-bar .tte-site .tte-header,
    body.admin-bar .elementor-location-header .tte-header { top: 46px !important; }
}
#tte-site-footer.tte-footer--simple .tte-fts__about {
    text-align: justify !important;
    text-align-last: right !important;
    text-justify: inter-word;
    line-height: 2.05 !important;
}
#tte-site-footer.tte-footer--simple .tte-fts__brandicon img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
}
#tte-site-footer.tte-footer--simple .tte-fts__sample-note {
    margin: 8px 0 0 !important;
    color: #a8b7aa !important;
    font-size: 10.5px !important;
    line-height: 1.8 !important;
}
#tte-site-footer.tte-footer--simple .tte-fts__social {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 11px 0 10px !important;
}
#tte-site-footer.tte-footer--simple .tte-fts__soc {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
}
#tte-site-footer.tte-footer--simple .tte-fts__soc svg { width: 15px !important; height: 15px !important; }
#tte-site-footer.tte-footer--simple .tte-fts__soc.is-unlinked { cursor: default !important; opacity: .78 !important; }
#tte-site-footer.tte-footer--simple .tte-footer__subbar { padding: 6px 0 !important; }
#tte-site-footer.tte-footer--simple .tte-footer__subbar-inner { gap: 6px 10px !important; }
#tte-site-footer.tte-footer--simple .tte-footer__copy-text,
#tte-site-footer.tte-footer--simple .tte-footer__subbar-nav { font-size: 10.5px !important; line-height: 1.7 !important; }

/* 3.4.18 — clearer Home actions, longer roadmap copy, and resilient responsive hero/slider layouts. */
.tte-page .tte-section__more--courses .tte-btn,
.tte-page .tte-section__more--teachers .tte-btn,
.tte-page .tte-section__more--products .tte-btn,
.tte-page .tte-finder3__actions .tte-finder3__all-link {
    min-width: 220px !important;
    min-height: 48px !important;
    padding: 0 24px !important;
    border: 1px solid var(--tte-accent, #0c4d3b) !important;
    border-radius: var(--tte-btn-radius, 8px) !important;
    background: linear-gradient(115deg, var(--tte-accent, #0c4d3b), var(--tte-green, #1c6b55)) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    box-shadow: 0 8px 20px rgba(12, 77, 59, .2) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease !important;
}
.tte-page .tte-section__more--courses .tte-btn:hover,
.tte-page .tte-section__more--products .tte-btn:hover,
.tte-page .tte-finder3__actions .tte-finder3__all-link:hover {
    background: linear-gradient(115deg, var(--tte-gold-light, #e6cc83), var(--tte-gold, #b69b63)) !important;
    border-color: var(--tte-gold, #b69b63) !important;
    color: var(--tte-deep, #073d30) !important;
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(12, 77, 59, .22) !important;
}
.tte-page .tte-section__more--teachers .tte-btn[disabled] {
    opacity: 1 !important;
    cursor: not-allowed !important;
    filter: saturate(.9);
}
.tte-page .tte-section__more--courses .tte-btn:focus-visible,
.tte-page .tte-section__more--teachers .tte-btn:focus-visible,
.tte-page .tte-section__more--products .tte-btn:focus-visible,
.tte-page .tte-finder3__actions .tte-finder3__all-link:focus-visible {
    outline: 3px solid var(--tte-gold-light, #e6cc83) !important;
    outline-offset: 3px !important;
}
@media (max-width: 767px) {
    .tte-page .tte-section__more--courses .tte-btn,
    .tte-page .tte-section__more--teachers .tte-btn,
    .tte-page .tte-section__more--products .tte-btn,
    .tte-page .tte-finder3__actions .tte-finder3__all-link {
        width: min(100%, 340px) !important;
        min-width: 0 !important;
        min-height: 48px !important;
        padding-inline: 16px !important;
        font-size: 13px !important;
    }
}

/* Newsletter feedback is explicit: accepted addresses are green; duplicates and failures are red. */
.tte-page .tte-newsletter { flex-wrap: wrap; }
.tte-page .tte-newsletter .tte-newsletter__status {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.8 !important;
}
.tte-page .tte-newsletter .tte-newsletter__status.is-success {
    border-color: #b9ddc2;
    background: #edf8f0;
    color: #17643d !important;
}
.tte-page .tte-newsletter .tte-newsletter__status.is-error {
    border-color: #efc2c2;
    background: #fff0f0;
    color: #a52a2a !important;
}

/* Station copy grows to its natural height; no internal clamp or scroll box. */
.tte-page .tte-section--paths .tte-pathmap__visual { overflow: visible !important; }
.tte-page .tte-section--paths .tte-pathmap__popup {
    grid-template-columns: clamp(64px, 7vw, 84px) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
    width: min(390px, calc(100% - 24px)) !important;
    left: 10px;
    min-height: 0 !important;
    max-height: none !important;
    padding: 13px !important;
    overflow: visible !important;
}
.tte-page .tte-section--paths .tte-pathmap__popup-image {
    width: clamp(64px, 7vw, 84px) !important;
    height: clamp(64px, 7vw, 84px) !important;
}
.tte-page .tte-section--paths .tte-pathmap__popup-copy { min-width: 0; }
.tte-page .tte-section--paths .tte-pathmap__popup-tags { align-items: center; gap: 4px 8px; margin-bottom: 5px; }
.tte-page .tte-section--paths .tte-pathmap__popup-step { font-size: 10px !important; }
.tte-page .tte-section--paths .tte-pathmap__popup-feed { max-width: 100%; font-size: 9px !important; }
.tte-page .tte-section--paths .tte-pathmap__popup h4 { margin-bottom: 5px; font-size: 13px !important; line-height: 1.65 !important; white-space: normal; overflow-wrap: anywhere; }
.tte-page .tte-section--paths .tte-pathmap__popup p {
    display: block !important;
    max-height: none !important;
    margin: 0 0 8px !important;
    overflow: visible !important;
    color: var(--tte-muted, #708078) !important;
    font-size: clamp(9px, .84vw, 10.5px) !important;
    line-height: 1.78 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset !important;
}
.tte-page .tte-section--paths .tte-pathmap__popup-link { min-height: 24px; font-size: 10px !important; }
@media (max-width: 440px) {
    .tte-page .tte-section--paths .tte-pathmap__visual { min-height: clamp(250px, 68vw, 300px) !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        gap: 8px !important;
        width: min(320px, calc(100% - 16px)) !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 9px !important;
    }
    .tte-page .tte-section--paths .tte-pathmap__popup-image { width: 58px !important; height: 58px !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup h4 { font-size: 11px !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup p { margin-bottom: 6px !important; font-size: 9px !important; line-height: 1.7 !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup-step { font-size: 9px !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup-feed { font-size: 8px !important; }
}
@media (max-width: 360px) {
    .tte-page .tte-section--paths .tte-pathmap__popup { grid-template-columns: 50px minmax(0, 1fr) !important; gap: 7px !important; padding: 8px !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup-image { width: 50px !important; height: 50px !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup h4 { font-size: 10px !important; }
    .tte-page .tte-section--paths .tte-pathmap__popup p { font-size: 8px !important; line-height: 1.58 !important; }
}

/* Keep every hero crop fluid; move mobile slider controls away from the Persian copy. */
.tte-page .tte-hero { min-width: 0; width: 100%; }
.tte-page .tte-hero__slides,
.tte-page .tte-hero__slide { min-width: 0; }
.tte-page .tte-hero__image { object-fit: cover !important; }
.tte-page .tte-hero__slide::before { background-size: cover !important; }
@media (min-width: 768px) and (max-width: 1024px) {
    .tte-page .tte-hero__copy { min-width: 0; }
    .tte-page .tte-hero__title { font-size: clamp(27px, 4.2vw, 38px) !important; line-height: 1.45 !important; }
    .tte-page .tte-hero__subtitle { font-size: clamp(12px, 1.55vw, 15px) !important; line-height: 1.85 !important; }
    .tte-page .tte-hero__actions .tte-btn { min-height: 44px !important; padding-inline: 18px !important; }
}
@media (max-width: 767px) {
    .tte-page .tte-hero__nav { top: 12px !important; transform: none !important; inset-inline: 12px !important; }
    .tte-page .tte-hero__arrow { width: 36px !important; height: 36px !important; }
    .tte-page .tte-hero__dots { bottom: 13px !important; }
    .tte-page .tte-hero__copy { padding-bottom: 68px !important; }
    .tte-page .tte-hero__actions { gap: 8px !important; }
    .tte-page .tte-hero__actions .tte-btn { min-height: 42px !important; }
}
@media (max-width: 380px) {
    .tte-page .tte-hero__title { font-size: clamp(22px, 6.8vw, 27px) !important; }
    .tte-page .tte-hero__copy { padding-inline: 10px !important; }
}

/* Course carousel: three cards on tablets, two on narrow tablets, and a generous swipe card on phones. */
.tte-page .tte-carousel { width: 100%; max-width: 100%; min-width: 0; }
.tte-page .tte-carousel__viewport { width: 100%; max-width: 100%; min-width: 0; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.tte-page .tte-carousel__track { min-width: 100%; align-items: stretch; }
.tte-page .tte-carousel__track .tte-card { min-width: 0; height: auto; }
@media (min-width: 768px) and (max-width: 1024px) {
    .tte-page .tte-carousel__track { gap: 16px; }
    .tte-page .tte-carousel__track .tte-card { flex-basis: calc((100% - 32px) / 3) !important; }
    .tte-page .tte-carousel__nav { inset-inline: 8px; }
    .tte-page .tte-carousel__arrow { width: 38px; height: 38px; margin-inline: 0; }
}
@media (min-width: 521px) and (max-width: 767px) {
    .tte-page .tte-carousel__track { gap: 14px; }
    .tte-page .tte-carousel__track .tte-card { flex-basis: calc((100% - 14px) / 2) !important; }
    .tte-page .tte-carousel__nav { display: none; }
}
@media (max-width: 520px) {
    .tte-page .tte-carousel__track { gap: 12px; }
    .tte-page .tte-carousel__track .tte-card { flex-basis: 84% !important; }
    .tte-page .tte-carousel__nav { display: none; }
    .tte-page .tte-carousel__dots { margin-top: 11px; }
}
@media (max-width: 767px) {
    .tte-page .tte-section.is-mobile-slider .tte-grid { gap: 12px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-padding-inline: 12px; }
    .tte-page .tte-section.is-mobile-slider .tte-card { min-width: min(84%, 340px); }
}

/* Keep the account's subscriber table inside its card on narrow screens. */
.tte-page .tte-dash-subscribers__note { margin: 0 0 16px; color: var(--tte-muted, #708078); font-size: 12px; line-height: 1.9; }
.tte-page .tte-dash-subscribers__table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--tte-border, #dde4dd); border-radius: 10px; }
.tte-page .tte-dash-subscribers__table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--tte-paper, #fff); }
.tte-page .tte-dash-subscribers__table th,
.tte-page .tte-dash-subscribers__table td { padding: 11px 13px; border-bottom: 1px solid var(--tte-border, #dde4dd); text-align: right; font-size: 12px; }
.tte-page .tte-dash-subscribers__table th { background: var(--tte-cream, #fbf9f1); color: var(--tte-accent, #0c4d3b); font-weight: 900; }
.tte-page .tte-dash-subscribers__table td[dir="ltr"] { direction: ltr; text-align: left; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.tte-page .tte-dash-subscribers__table tr:last-child td { border-bottom: 0; }
.tte-page .tte-dash-subscribers__pagination { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 16px; }
.tte-page .tte-dash-subscribers__pagination a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--tte-border, #dde4dd); border-radius: 9px; background: #fff; color: var(--tte-accent, #0c4d3b); font-size: 12px; font-weight: 800; }
.tte-page .tte-dash-subscribers__pagination a[aria-current="page"] { border-color: var(--tte-accent, #0c4d3b); background: var(--tte-accent, #0c4d3b); color: #fff; }

/* Place the footer introduction a little below the shared logo and keep it within its own column. */
#tte-site-footer.tte-footer--simple .tte-fts__col--brand .tte-fts__about {
    width: min(100%, 40ch) !important;
    max-width: 40ch !important;
    margin: 24px 0 14px !important;
    line-height: 2.05 !important;
}

/* Elementor Theme Builder wraps the header in a short shell; make the shell itself sticky when supported. */
.elementor-location-header:has(.tte-header) {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
    overflow: visible !important;
}
body.admin-bar .elementor-location-header:has(.tte-header) { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .elementor-location-header:has(.tte-header) { top: 46px !important; }
}

/* Home: the lone lower story panel is the article list; the shop panel lives below Hadith. */
.tte-page .tte-home-bottom--articles-only {
    grid-template-columns: minmax(0, 1fr) !important;
}
.tte-page .tte-home-bottom--articles-only > .tte-home-articles {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

/* Contact-page hero follows the site's deep-green / soft-gold hero treatment. */
.tte-page .tte-ct__band {
    position: relative;
    isolation: isolate;
    min-height: 350px;
    overflow: hidden;
    background: var(--tte-hero-deep, #073d30) !important;
}
.tte-page .tte-ct__bandtext {
    z-index: 2;
    padding: clamp(38px, 5vw, 60px) clamp(24px, 5vw, 64px);
}
.tte-page .tte-ct__bandtext h1 {
    max-width: 16ch;
    font-size: clamp(30px, 3.25vw, 40px) !important;
    line-height: 1.55 !important;
    font-weight: 900 !important;
    color: #fff !important;
}
.tte-page .tte-ct__bandtext h1 em {
    color: var(--tte-gold-light, #e6cc83) !important;
}
.tte-page .tte-ct__bandtext p {
    max-width: 54ch;
    font-size: 15px !important;
    line-height: 2.1 !important;
    color: rgba(255,255,255,.82) !important;
}
.tte-page .tte-ct__bandimg {
    min-width: 0;
    z-index: 0;
}
.tte-page .tte-ct__bandimg img {
    filter: saturate(.88);
}
.tte-page .tte-ct__bandimg::after {
    background: transparent !important;
}
.tte-page .tte-ct__band::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(45deg, transparent 49.6%, rgba(230,204,131,.07) 50%, transparent 50.4%) 0 0 / 90px 90px,
        linear-gradient(to right, rgba(7,61,48,0) 24%, rgba(7,61,48,.46) 51%, var(--tte-hero-deep, #073d30) 69%);
}
.tte-page .tte-ct__band::before {
    opacity: .18;
}

/* Finder: result copy is readable at every width and the panel grows with its content. */
.tte-page .tte-finder3 {
    height: auto;
    min-height: 0;
}
.tte-page .tte-finder3__panel {
    min-width: 0;
    height: auto;
}
.tte-page .tte-finder3__choices button {
    min-width: 0;
    overflow-wrap: anywhere;
}
.tte-page .tte-finder3__choices button span {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.tte-page .tte-finder3__result {
    min-height: 0;
    align-items: flex-start;
    padding: 18px 20px;
    transition: min-height .2s ease;
}
.tte-page .tte-finder3__result > div {
    min-width: 0;
}
.tte-page .tte-finder3__result small {
    font-size: 12px;
    line-height: 1.8;
}
.tte-page .tte-finder3__result b {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.tte-page .tte-finder3__result p {
    max-width: 74ch;
    margin: 7px 0 0 !important;
    font-size: clamp(13px, 1.15vw, 15px) !important;
    line-height: 2.05 !important;
    color: var(--tte-text, #20352e);
    overflow-wrap: anywhere;
}

/* Product cards: predictable wrapping, a real quantity stepper, and no off-frame labels. */
.tte-page .tte-grid--products > .tte-product,
.tte-page .tte-product-related .tte-product {
    min-width: 0;
    max-width: 100%;
    height: 100%;
}
.tte-page .tte-product .tte-card__media {
    flex: 0 0 170px;
    min-width: 0;
    height: 170px;
}
.tte-page .tte-product__image-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.tte-page .tte-product__image-clip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tte-page .tte-product__media-icon {
    position: absolute;
    z-index: 1;
    inset-inline-start: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--tte-accent, #0c4d3b);
    color: var(--tte-gold-light, #e6cc83);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.tte-page .tte-product__media-icon .tte-icon {
    width: 18px;
    height: 18px;
}
.tte-page .tte-product .tte-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    gap: 7px;
    padding: 16px;
}
.tte-page .tte-product .tte-card__body h3,
.tte-page .tte-product .tte-card__body p {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}
.tte-page .tte-product .tte-card__body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}
.tte-page .tte-product .tte-card__body h3 a {
    overflow-wrap: anywhere;
}
.tte-page .tte-product .tte-card__body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 12.5px;
    line-height: 1.9;
    color: var(--tte-muted, #708078);
}
.tte-page .tte-product__price,
.tte-page .tte-product .tte-price,
.tte-page .tte-product__old-price {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.tte-page .tte-product__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    gap: 9px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding-top: 6px;
}
.tte-page .tte-product__cart,
.tte-page .tte-product__purchase-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.tte-page .tte-product__details,
.tte-page .tte-product .tte-btn--cart,
.tte-page .tte-product__unavailable {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    height: auto;
    padding: 8px 12px !important;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.65;
    text-align: center;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}
.tte-page .tte-product__details {
    border: 1px solid var(--tte-border, #dde4dd);
    background: #f5f7f1;
    color: var(--tte-accent, #0c4d3b) !important;
}
.tte-page .tte-product__unavailable {
    gap: 7px;
    border: 1px dashed #d6d9cf;
    background: #f7f7f3;
    color: #70796f;
}
.tte-page .tte-product__unavailable .tte-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
.tte-page .tte-quantity-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: min(100%, 142px);
    min-width: 0;
    min-height: 38px;
    margin-inline: auto;
    padding: 3px;
    border: 1px solid var(--tte-border, #dde4dd);
    border-radius: 9px;
    background: #fff;
}
.tte-page .tte-quantity-stepper__button {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #eff3ec;
    color: var(--tte-accent, #0c4d3b);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.tte-page .tte-quantity-stepper__button:hover {
    background: #e5ecdf;
}
.tte-page .tte-quantity-stepper__input {
    flex: 1 1 34px;
    width: 38px;
    min-width: 30px;
    max-width: 48px;
    height: 30px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--tte-text, #20352e);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}
.tte-page .tte-quantity-stepper__input::-webkit-inner-spin-button,
.tte-page .tte-quantity-stepper__input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}
.tte-page .tte-course-card__actions,
.tte-page .tte32-course-grid .tte32-card-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.tte-page .tte-course-card__actions > *,
.tte-page .tte32-course-grid .tte32-card-buttons > * {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.6;
}
.tte-page .tte-course-card__actions .tte-btn,
.tte-page .tte32-course-grid .tte32-card-buttons .tte-btn {
    width: 100%;
    padding-inline: 8px;
    text-align: center;
}

/* Product image lightbox; keeps the site's palette and respects keyboard focus. */
.tte-page .tte-product-detail__image-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
}
.tte-page .tte-product-detail__image-trigger > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: contain;
    padding: 10px;
}
.tte-page .tte-product-detail__image-trigger > span {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(7,61,48,.84);
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
}
.tte-product-lightbox {
    position: fixed;
    width: fit-content;
    max-width: min(94vw, 1200px);
    max-height: 92vh;
    padding: 48px 14px 14px;
    overflow: visible;
    border: 1px solid rgba(230,204,131,.45);
    border-radius: 16px;
    background: #fbfaf4;
    box-shadow: 0 24px 80px rgba(0,0,0,.38);
}
.tte-product-lightbox::backdrop {
    background: rgba(3,20,15,.84);
    backdrop-filter: blur(4px);
}
.tte-product-lightbox img {
    display: block;
    max-width: min(92vw, 1160px);
    max-height: calc(92vh - 72px);
    object-fit: contain;
    border-radius: 9px;
}
.tte-product-lightbox__close {
    position: absolute;
    top: 9px;
    inset-inline-end: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--tte-border, #dde4dd);
    border-radius: 50%;
    background: #fff;
    color: var(--tte-accent, #0c4d3b);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}
.tte-product-related {
    margin-top: 40px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--tte-border, #dde4dd);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
}
.tte-product-related > header {
    margin: 0 0 14px;
}
.tte-product-related h2 {
    margin: 0;
    color: var(--tte-accent, #0c4d3b);
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.7;
}
.tte-product-related__demo-note {
    margin: 0 0 16px;
    color: #6d6245;
    font-size: 12px;
    line-height: 1.9;
}
.tte-product-related .tte-grid--products {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 16px;
}

/* Clear, compact prev/next/ellipsis pagination for long articles and listings. */
.tte-page .tte-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}
.tte-page .tte-pagination a,
.tte-page .tte-pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    width: auto;
    min-height: 38px;
    height: auto;
    padding: 0 11px;
    border: 1px solid var(--tte-border, #dde4dd);
    border-radius: 10px;
    background: #fff;
    color: var(--tte-text, #20352e);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
.tte-page .tte-pagination a[aria-current="page"] {
    border-color: var(--tte-accent, #0c4d3b);
    background: var(--tte-accent, #0c4d3b);
    color: #fff !important;
}
.tte-page .tte-pagination .tte-pagination__prev,
.tte-page .tte-pagination .tte-pagination__next {
    padding-inline: 15px;
}
.tte-page .tte-pagination .tte-pagination__ellipsis {
    min-width: 20px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--tte-muted, #708078);
}
.tte-page .tte-pagination .is-disabled {
    opacity: .45;
}

@media (max-width: 991px) {
    .tte-page .tte-ct__band {
        grid-template-columns: minmax(0, 1fr);
        min-height: 320px;
    }
    .tte-page .tte-ct__bandtext {
        grid-column: 1;
        align-self: center;
        padding: 42px 24px;
    }
    .tte-page .tte-ct__bandimg {
        position: absolute !important;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100% !important;
        order: 0;
    }
    .tte-page .tte-ct__bandimg img {
        width: 100%;
        height: 100%;
        opacity: .8;
        object-position: center;
    }
    .tte-page .tte-ct__band::after {
        background:
            linear-gradient(45deg, transparent 49.6%, rgba(230,204,131,.06) 50%, transparent 50.4%) 0 0 / 80px 80px,
            linear-gradient(to left, rgba(7,61,48,.97) 0%, rgba(7,61,48,.8) 50%, rgba(7,61,48,.55) 100%);
    }
    .tte-page .tte-finder3__panel {
        width: min(100%, 920px);
        margin-inline: auto;
    }
}
@media (max-width: 760px) {
    .tte-page .tte-finder3__choices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tte-page .tte-finder3__result {
        gap: 12px;
        padding: 15px;
    }
    .tte-page .tte-finder3__result > span {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }
    .tte-page .tte-finder3__result .tte-icon {
        width: 27px;
        height: 27px;
    }
    .tte-page .tte-course-card__actions,
    .tte-page .tte32-course-grid .tte32-card-buttons {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 560px) {
    .tte-page .tte-ct__band {
        min-height: 300px;
    }
    .tte-page .tte-ct__bandtext {
        padding: 36px 20px;
    }
    .tte-page .tte-ct__bandtext h1 {
        font-size: 29px !important;
    }
    .tte-page .tte-ct__bandtext p {
        font-size: 13.5px !important;
    }
    .tte-page .tte-product .tte-card__media {
        flex-basis: 150px;
        height: 150px;
    }
    .tte-page .tte-product-related .tte-grid--products {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 3.4.20 — robust sticky chrome, localized cart indicator, store shipping banner, and consistent card rhythm. */
#tte-site-header.tte-header,
.tte-page #tte-site-header,
.tte-site #tte-site-header,
.elementor-location-header #tte-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
}
/* Elementor's outer header wrapper must stick as well; the child alone may be trapped in a short section. */
.elementor-location-header:has(#tte-site-header) {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
    overflow: visible !important;
}
body.admin-bar #tte-site-header,
body.admin-bar .elementor-location-header:has(#tte-site-header) { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar #tte-site-header,
    body.admin-bar .elementor-location-header:has(#tte-site-header) { top: 46px !important; }
}
.tte-page .tte-demo-cart-link--text {
    width: auto !important;
    min-width: 0 !important;
    max-width: 160px !important;
    min-height: 36px !important;
    padding-inline: 9px !important;
    gap: 6px !important;
    font-size: 10px !important;
}
.tte-page .tte-demo-cart-link--text .tte-demo-cart-label { display: inline-flex !important; font-size: 10px !important; }
.tte-page .tte-demo-cart-link--text .tte-demo-cart-count { font-size: 10px !important; }
.tte-page .tte-demo-cart-link:not(.tte-demo-cart-link--text) .tte-demo-cart-label { display: none !important; }

/* Contact Hero: same deep-green fade and white/gold typography as the shared page Heroes. */
.tte-page .tte-ct__bandtext h1 { color: #fff !important; }
.tte-page .tte-ct__bandtext h1 em { color: var(--tte-gold-light, #e6cc83) !important; }
.tte-page .tte-ct__bandtext p { color: rgba(255,255,255,.86) !important; }
.tte-page .tte-ct__bandimg img { opacity: .96; filter: saturate(.9) contrast(.98); }
.tte-page .tte-ct__band::after {
    background:
        linear-gradient(45deg, transparent 49.6%, rgba(230,204,131,.07) 50%, transparent 50.4%) 0 0 / 90px 90px,
        linear-gradient(to right, rgba(7,61,48,0) 18%, rgba(7,61,48,.22) 39%, rgba(7,61,48,.72) 59%, var(--tte-hero-deep, #073d30) 76%);
}
@media (max-width: 991px) {
    .tte-page .tte-ct__band::after {
        background:
            linear-gradient(45deg, transparent 49.6%, rgba(230,204,131,.06) 50%, transparent 50.4%) 0 0 / 80px 80px,
            linear-gradient(to left, rgba(7,61,48,.97) 0%, rgba(7,61,48,.84) 50%, rgba(7,61,48,.62) 100%);
    }
}

/* A consistent vertical rhythm without changing the page structure. */
.tte-page .tte-section { padding-block: clamp(38px, 4vw, 54px); }
.tte-page .tte-section__head { margin-bottom: clamp(20px, 2.4vw, 30px); }
.tte-page .tte-section__more { margin-top: clamp(16px, 2vw, 24px); }
.tte-page .tte-grid { gap: clamp(14px, 1.6vw, 20px); }

/* Store shipping banner — artwork stays on the left; Persian copy sits in the open right-hand field. */
.tte-page .tte-store-shipping {
    position: relative;
    isolation: isolate;
    width: min(1240px, calc(100% - 48px));
    min-height: 390px;
    margin: clamp(34px, 5vw, 64px) auto;
    overflow: hidden;
    border: 1px solid rgba(182,155,99,.2);
    border-radius: 20px;
    background: var(--tte-cream, #fbf9f1);
    box-shadow: 0 14px 38px rgba(17,65,51,.09);
    direction: rtl;
}
.tte-page .tte-store-shipping__visual { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.tte-page .tte-store-shipping__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
}
.tte-page .tte-store-shipping::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(251,249,241,0) 0%, rgba(251,249,241,.03) 34%, rgba(251,249,241,.76) 56%, #fbf9f1 73%);
}
.tte-page .tte-store-shipping__content { position: relative; z-index: 2; display: flex; align-items: center; min-height: inherit; padding-block: 38px; }
.tte-page .tte-store-shipping__content > .tte-container { display: flex; align-items: center; min-height: inherit; }
.tte-page .tte-store-shipping__copy { width: min(49%, 560px); margin-inline-end: auto; color: var(--tte-text, #20352e); }
.tte-page .tte-store-shipping__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--tte-gold, #b69b63); font-size: 12px; font-weight: 800; }
.tte-page .tte-store-shipping__eyebrow span { color: var(--tte-gold, #b69b63); font-size: 16px; }
.tte-page .tte-store-shipping__copy h2 { margin: 0 0 12px; color: var(--tte-accent, #0c4d3b); font-size: clamp(25px, 3vw, 36px); font-weight: 900; line-height: 1.55; }
.tte-page .tte-store-shipping__description,
.tte-page .tte-store-shipping__description p { max-width: 50ch; margin: 0; color: #53645b; font-size: 14px; line-height: 2.05; }
.tte-page .tte-store-shipping__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 12px; border: 1px solid rgba(182,155,99,.35); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--tte-accent, #0c4d3b); font-size: 11px; font-weight: 700; }
.tte-page .tte-store-shipping__note::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--tte-gold, #b69b63); }
@media (max-width: 760px) {
    .tte-page .tte-store-shipping { width: calc(100% - 24px); min-height: 0; margin: 32px auto; border-radius: 16px; }
    .tte-page .tte-store-shipping__visual { position: relative; inset: auto; height: clamp(210px, 58vw, 280px); }
    .tte-page .tte-store-shipping__visual img { object-position: 20% center; }
    .tte-page .tte-store-shipping::after { display: none; }
    .tte-page .tte-store-shipping__content,
    .tte-page .tte-store-shipping__content > .tte-container { min-height: 0; }
    .tte-page .tte-store-shipping__content { padding: 22px 0 26px; background: var(--tte-cream, #fbf9f1); }
    .tte-page .tte-store-shipping__copy { width: 100%; }
    .tte-page .tte-store-shipping__copy h2 { font-size: clamp(23px, 6vw, 30px); }
    .tte-page .tte-store-shipping__description,
    .tte-page .tte-store-shipping__description p { font-size: 13px; }
}

/* Article cards and comparable archive/list cards fade in on scroll; course UI is deliberately excluded. */
.tte-page .tte-reveal,
.tte-archive__row.tte-reveal {
    opacity: 0;
    translate: 0 16px;
    transition: opacity .5s ease, translate .5s ease;
    transition-delay: var(--tte-reveal-delay, 0ms);
}
.tte-page .tte-reveal.is-inview,
.tte-archive__row.tte-reveal.is-inview { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
    .tte-page .tte-reveal,
    .tte-archive__row.tte-reveal { opacity: 1 !important; translate: none !important; transition: none !important; }
}

/* Course listing purchase label stays on one line at desktop and tablet widths. */
.tte-page .tte32-course-grid .tte32-card-grid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 16px; }
.tte-page .tte32-course-grid .tte32-card-buttons { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important; gap: 6px !important; }
.tte-page .tte32-course-grid .tte32-card-buttons > .tte-btn,
.tte-page .tte32-course-grid .tte32-card-buttons > .button,
.tte-page .tte32-course-grid .tte32-card-buttons > button,
.tte-page .tte32-course-grid .tte32-card-buttons > a {
    min-width: 0 !important;
    padding-inline: 6px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
.tte-page .tte32-course-grid .tte32-card-buttons > .tte-btn > span,
.tte-page .tte32-course-grid .tte32-card-buttons > button > span,
.tte-page .tte32-course-grid .tte32-card-buttons > a > span { white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important; }
@media (max-width: 560px) {
    .tte-page .tte32-course-grid .tte32-card-grid { grid-template-columns: minmax(0,1fr); }
    .tte-page .tte32-course-grid .tte32-card-buttons > .tte-btn,
    .tte-page .tte32-course-grid .tte32-card-buttons > button,
    .tte-page .tte32-course-grid .tte32-card-buttons > a { font-size: 11px !important; }
}

/* Natural category chip replaces the former demo-only product badge. */
.tte-page .tte-product__category {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 4px 9px;
    overflow: hidden;
    border: 1px solid rgba(12,77,59,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--tte-accent, #0c4d3b);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(17,65,51,.08);
}


/* Local browser cart confirmation; shown only when WooCommerce owns the header cart. */
.tte-demo-cart-toast {
    position: fixed;
    z-index: 100000;
    inset-inline-start: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: min(680px, calc(100% - 32px));
    padding: 13px 15px;
    border: 1px solid rgba(230, 204, 131, .52);
    border-radius: 14px;
    background: var(--tte-hero-deep, #073d30);
    color: #fff;
    direction: rtl;
    box-shadow: 0 16px 48px rgba(4, 25, 19, .25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    translate: -50% 12px;
    transition: opacity .22s ease, translate .22s ease, visibility .22s ease;
}
.tte-demo-cart-toast[hidden] { display: none !important; }
.tte-demo-cart-toast.is-visible { opacity: 1; visibility: visible; pointer-events: auto; translate: -50% 0; }
.tte-demo-cart-toast__message { min-width: 0; font-size: 12px; line-height: 1.8; }
.tte-demo-cart-toast__link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 13px; border-radius: 8px; background: var(--tte-gold-light, #e6cc83); color: var(--tte-hero-deep, #073d30) !important; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tte-demo-cart-toast__close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: transparent; color: #fff; font: inherit; font-size: 21px; line-height: 1; cursor: pointer; }
.tte-demo-cart-toast__link:focus-visible,
.tte-demo-cart-toast__close:focus-visible { outline: 2px solid var(--tte-gold-light, #e6cc83); outline-offset: 3px; }
@media (max-width: 520px) {
    .tte-demo-cart-toast { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; width: calc(100% - 24px); padding: 11px 12px; }
    .tte-demo-cart-toast__message { grid-column: 1 / -1; font-size: 11px; }
    .tte-demo-cart-toast__link { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .tte-demo-cart-toast { transition: none !important; translate: -50% 0; }
}
