/* العبارات التسويقية — phrase cards, filters, dictionary. Tokens from tkr.css; brand colours only, square corners, hairlines. */
.tkr-phrases a.tkr-btn,.tkr-phrases a.tkr-btn-o{text-decoration:none}
.tkr-phrases .tkr-hero .tkr-actions{align-items:center}
.tkr-phrases .tkr-hero .tkr-btn-o{margin-top:0;min-height:50px}
.tkr-phrases .tkr-hero .tkr-ph-hdl{background:transparent;color:#fff;border:1px solid var(--dbd)}
.tkr-phrases .tkr-hero .tkr-ph-hdl:hover{background:color-mix(in srgb,#fff 8%,transparent);color:#fff;border-color:var(--a)}
.tkr-phrases .tkr-meta b{color:#fff}

/* hero art: two speech bubbles (stroke), lines drawn once, a gentle float */
.tkr-ph-art{width:100%;max-width:340px;color:var(--a)}
.tkr-ph-art .a2{color:var(--b);stroke:var(--b)}
.tkr-ph-art .a3{stroke:#fff;opacity:.85}
.tkr-ph-art .ln{stroke-dasharray:140;stroke-dashoffset:0}
@media (prefers-reduced-motion:no-preference){
  .tkr-js .tkr-ph-art .ln{animation:tkrPhDraw 1.6s ease-out both}
  .tkr-js .tkr-ph-art .l2{animation-delay:.5s}
  .tkr-ph-art .a1{animation:tkrPhFloat 6s ease-in-out infinite}
  .tkr-ph-art .a2{animation:tkrPhFloat 6s ease-in-out 1.5s infinite}
}
@keyframes tkrPhDraw{from{stroke-dashoffset:140}to{stroke-dashoffset:0}}
@keyframes tkrPhFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}

/* drivers */
.tkr-ph-drv{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1px;background:var(--bd);border:1px solid var(--bd)}
.tkr-ph-drv li{background:#fff;padding:18px 20px;display:flex;gap:14px;align-items:flex-start}
.tkr-ph-drv span{font-weight:700;color:var(--at);font-size:20px;line-height:1.3}
.tkr-ph-drv p{color:var(--tx2);margin:0}
.tkr-ph-steps h3{font-size:17px}
.tkr-ph-steps>li{padding:14px 0}

/* filter bar */
.tkr-pf{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:12px 0;margin-bottom:14px;border-bottom:1px solid var(--bds);background:var(--sub)}
.tkr-pf-t{display:flex;gap:6px;flex-wrap:wrap}
.tkr-pf-t button{min-height:44px;border:1px solid var(--bds);background:#fff;color:var(--tx2);font:inherit;font-size:14px;padding:0 14px;cursor:pointer}
.tkr-pf-t button.on{background:var(--n);border-color:var(--n);color:#fff}
.tkr-pf-t button:focus-visible,.tkr-pf-s select:focus-visible{outline:2px solid var(--b);outline-offset:2px}
.tkr-pf-s{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--tx2)}
.tkr-pf-s select{min-height:44px;max-width:260px;border:1px solid var(--bds);background:#fff;font:inherit;font-size:14.5px;color:var(--tx);padding:0 10px;border-radius:0}
.tkr-pf-n{margin:0!important;font-size:14px;color:var(--tx3);margin-inline-start:auto!important}
.tkr .tkr-pf-dl{min-height:44px;font-size:14px;padding:0 16px}
.tkr-ph-empty{color:var(--tx3);padding:20px 0}
@media (min-width:901px){.tkr-pf{position:sticky;top:var(--tkr-sticky,0px);z-index:5}}

/* groups (folds) */
.tkr-ph-gw[hidden]{display:none}
.tkr-ph-gw:last-child .tkr-fold{border-bottom:1px solid var(--bd)}
.tkr-ph-g>summary{padding:14px 0}
.tkr-ph-g .tkr-fold-t{font-size:17.5px}
.tkr-ph-g .tkr-fold-b{padding-bottom:18px}
.tkr-ph-gl{margin:0 0 10px!important}
.tkr-ph-gl a{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;text-decoration:none;min-height:44px}
.tkr-ph-gl a .tkr-ic{width:16px;height:16px}
[dir=rtl] .tkr-ph-gl a .tkr-ic{transform:scaleX(-1)}

/* phrase cards */
.tkr-ph-l{list-style:none;display:grid;gap:1px;background:var(--bd);border:1px solid var(--bd)}
/* 3.1.2: a card is <li data-t><p data-k>…</p><p data-k>…</p></li>; the line is the copy control and one shared button
   (.tkr-ph-cp, moved by phrases.js) shows where it copies */
.tkr-ph{background:#fff;display:grid;grid-template-columns:96px minmax(0,1fr) minmax(0,1fr);gap:12px 22px;padding:14px 16px;align-items:start}
.tkr-ph[hidden]{display:none}
.tkr-ph::before{justify-self:start;font-size:12px;font-weight:700;color:var(--tx2);border:1px solid var(--bds);padding:1px 8px;line-height:1.7;margin-top:3px;white-space:nowrap}
.tkr-ph[data-t=h]::before{background:var(--at2);border-color:var(--at2);color:var(--at)}
.tkr-ph[data-t=b]::before{background:var(--bw);border-color:var(--bw);color:#0B6E9C}
.tkr-ph[data-t=h]::before{content:"عنوان"}.tkr-ph[data-t=t]::before{content:"نص إعلان"}.tkr-ph[data-t=b]::before{content:"زر"}.tkr-ph[data-t=m]::before{content:"رسالة"}
.tkr[lang=en] .tkr-ph[data-t=h]::before{content:"Headline"}.tkr[lang=en] .tkr-ph[data-t=t]::before{content:"Ad copy"}.tkr[lang=en] .tkr-ph[data-t=b]::before{content:"Button"}.tkr[lang=en] .tkr-ph[data-t=m]::before{content:"Message"}
.tkr-ph>p{position:relative;margin:0!important;color:var(--tx);font-size:15.5px;line-height:1.75;overflow-wrap:anywhere}
.tkr-ph>p:only-of-type{grid-column:2/-1}
.tkr-ph>p[data-k=ms]::before,.tkr-ph>p[data-k=sa]::before{display:block;font-size:12px;color:var(--tx3);font-weight:700;line-height:1.7}
.tkr-ph>p[data-k=ms]::before{content:"فصحى"}
.tkr-ph>p[data-k=sa]::before{content:"سعودي";color:var(--at)}
.tkr-ph>p[data-k=sa]:not(:first-of-type){border-inline-start:1px solid var(--bd);padding-inline-start:22px}
.tkr-js .tkr-ph>p{cursor:copy;padding-inline-end:84px;min-height:44px}
.tkr-js .tkr-ph>p:hover,.tkr-js .tkr-ph>p:focus-visible{color:var(--n)}
.tkr-ph>p:focus-visible{outline:2px solid var(--a);outline-offset:4px}
.tkr-ph-cp{position:absolute;top:50%;inset-inline-end:0;transform:translateY(-50%);min-height:44px;min-width:44px;justify-content:center}
.tkr-ph-cp::after{content:"نسخ"}.tkr-ph-cp.ok::after{content:"نُسخ"}
.tkr[lang=en] .tkr-ph-cp::after{content:"Copy"}.tkr[lang=en] .tkr-ph-cp.ok::after{content:"Copied"}
.tkr-ph-cp::before{content:"";width:15px;height:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8h12v12H8zM4 16V4h12'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8h12v12H8zM4 16V4h12'/%3E%3C/svg%3E") center/contain no-repeat}
.tkr-ph-hint{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.tkr-ph-more{margin-top:-1px}
.tkr-ph-more>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:1px solid var(--bd);background:#fff;color:var(--at);font-weight:700;font-size:14.5px;cursor:pointer;list-style:none}
.tkr-ph-more>summary::-webkit-details-marker{display:none}
.tkr-ph-more>summary:hover{background:var(--at2)}
.tkr-ph-more>summary .tkr-ic{width:16px;height:16px}
.tkr-ph-more[open]>summary{display:none}
.tkr-ph-more>.tkr-ph-l{border-top:0}
/* note */
.tkr-ph-note{padding:28px 0}
.tkr-ph-note .tkr-note{margin:0}
.tkr-ph-note .tkr-note ul{list-style:disc;padding-inline-start:18px;display:grid;gap:4px}
.tkr-faq ul{list-style:disc;padding-inline-start:18px}
/* hub */
.tkr-ph-sg{margin-top:28px}
.tkr-ph-sg:first-child{margin-top:0}
.tkr-ph-sg h3{margin-bottom:10px}
.tkr-ph-sg h3 small{font-weight:500;color:var(--tx3);font-size:.8em}
.tkr-ph-sg[hidden]{display:none}
.tkr-ph-cc{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));padding:0}
.tkr-ph-cc .tkr-card-in{padding:14px 16px 14px;padding-inline-end:40px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 12px}
.tkr-ph-cc .tkr-card-i{margin:0;width:38px;height:38px;grid-row:span 2}
.tkr-ph-cc .tkr-card-t{font-size:15.5px;line-height:1.45}
.tkr-ph-cc .tkr-card-m{margin:0}
.tkr-ph-cc .tkr-card-a{bottom:auto;top:50%;margin-top:-10px;inset-inline-end:14px}
@media (min-width:1024px){.tkr-ph-c1{grid-template-columns:1fr}.tkr-ph-c2{grid-template-columns:repeat(2,1fr)}.tkr-ph-c3{grid-template-columns:repeat(3,1fr)}.tkr-ph-c4{grid-template-columns:repeat(4,1fr)}.tkr-ph-c5{grid-template-columns:repeat(5,1fr)}.tkr-ph-c5r2{grid-template-columns:repeat(10,1fr)}.tkr-ph-c5r2>li{grid-column:span 2}.tkr-ph-c5r2>li:nth-last-child(-n+2){grid-column:span 5}}
.tkr-ph-band{padding:48px 0}
.tkr-ph-band-in{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 40px}
.tkr-ph-band .tkr-h2{color:#fff}
/* dictionary */
.tkr-ph-dict .tkr-search{flex:1 1 280px;min-height:48px}
.tkr-dl-f{position:static}
.tkr-dw-g[hidden]{display:none}
.tkr-dw-f>summary{padding:16px 0}
.tkr-dw-l{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1px;background:var(--bd);border:1px solid var(--bd)}
.tkr-dw{background:#fff;padding:14px 16px}
.tkr-dw[hidden]{display:none}
.tkr-dw-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.tkr-dw-ms{color:var(--tx2)}
.tkr-dw-ar{color:var(--a);font-size:14px}
[dir=ltr] .tkr-dw-ar{display:inline-block;transform:scaleX(-1)}
.tkr-dw-sa{font-size:17.5px;color:var(--n)}
.tkr-dw-tr{color:var(--tx3);font-size:14px}
.tkr-dw-rg{font-size:12px;font-weight:700;color:#0B6E9C;border:1px solid var(--bw);background:var(--bw);padding:0 7px}
.tkr-dw-n{font-size:14px;color:var(--tx2);margin:6px 0 0!important}
.tkr-dw-m{font-size:15px;color:var(--tx);margin:6px 0 0!important}
.tkr-dw-ex{font-size:14px;color:var(--tx3);margin:6px 0 0!important;line-height:1.8}
.tkr-dw-ex span{color:var(--tx3);font-weight:700;font-size:12.5px}
.tkr-dw-ex b{color:var(--tx);font-weight:600}
.tkr-dw-f .tkr-fold-b{padding-bottom:18px}

@media (max-width:640px){
  .tkr-ph{grid-template-columns:1fr;gap:6px;padding:10px 14px;position:relative}
  .tkr-ph::before{position:absolute;top:10px;inset-inline-start:66px;margin:0} /* on the «فصحى» label line, clear of the copy button */
  .tkr[lang=en] .tkr-ph::before{position:static}
  .tkr-ph>p,.tkr-ph>p:only-of-type{grid-column:1/-1}
  .tkr-ph>p[data-k]::before{line-height:1.9}
  .tkr-js .tkr-ph>p{padding-inline-end:52px}
  .tkr-ph-cp::after{content:none!important}
  .tkr-ph-cp{padding:0;top:auto;bottom:0;transform:none} /* clear of the type chip at the top corner */
  .tkr-ph>p[data-k=sa]:not(:first-of-type){border-inline-start:0;padding-inline-start:0;border-top:1px dashed var(--bd);padding-top:10px}
  .tkr-pf{gap:8px}
  .tkr-pf-t{flex-wrap:nowrap;overflow-x:auto;width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .tkr-pf-t::-webkit-scrollbar{display:none}
  .tkr-pf-t{gap:4px}
  .tkr-pf-t button{flex:none;padding:0 9px;font-size:13.5px}
  .tkr-pf-s{flex:1 1 auto}.tkr-pf-s select{max-width:none;width:100%}
  .tkr-pf-n{margin-inline-start:0!important;flex:1 1 auto}
  .tkr-dw-l{grid-template-columns:1fr}
  .tkr-ph-cc{grid-template-columns:1fr 1fr}
  .tkr-ph-cx>li:last-child:nth-child(odd){grid-column:1/-1}
  .tkr-ph-cc .tkr-card-in{padding:12px;grid-template-columns:1fr;gap:2px}
  .tkr-ph-cc .tkr-card-i,.tkr-ph-cc .tkr-card-a{display:none}
  .tkr-ph-cc .tkr-card-t{font-size:14.5px}
  .tkr-ph-band .tkr-btn{width:100%}
  .tkr-phrases .tkr-hero .tkr-actions>*{width:100%}
}
@media (max-width:640px){.tkr-phrases .tkr-fchips{flex-wrap:nowrap;overflow-x:auto;width:100%;scrollbar-width:none;-webkit-overflow-scrolling:touch}.tkr-phrases .tkr-fchips::-webkit-scrollbar{display:none}.tkr-phrases .tkr-fchips button{flex:none;min-height:44px}}
.tkr-phrases .tkr-eyebrow a{display:inline-flex;align-items:center;min-height:44px}

/* 3.1.2 UX: filter chips at least 44px wide (the short «الكل»), and 14px on phones */
.tkr-pf-t button{min-width:44px}
@media (max-width:640px){.tkr-pf-t button{font-size:14px}}
