/* Riad — arches, zellige, terre cuite (compact mobile) */
.tpl-riad { --radius: 18px; --tile: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.rd-head { position: relative; padding: calc(1.6rem + env(safe-area-inset-top)) 0 0; display: grid; justify-items: center; }
.rd-pattern { position: absolute; inset: 0 0 25%; opacity: .5;
    background-image: conic-gradient(from 45deg at 50% 50%, var(--tile) 0 25%, transparent 0 50%, var(--tile) 0 75%, transparent 0), radial-gradient(circle at 50% 50%, transparent 38%, color-mix(in srgb, var(--accent) 30%, transparent) 39% 42%, transparent 43%);
    background-size: 30px 30px, 30px 30px; mask-image: linear-gradient(180deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); }
.rd-arch { position: relative; width: min(54%, 210px); aspect-ratio: 4 / 5; border-radius: 999px 999px 12px 12px; overflow: hidden; border: 5px solid var(--surface); outline: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 4px; box-shadow: 0 24px 40px -24px rgba(80,40,20,.6); animation: rdOpen 1.2s var(--ease) both; }
@keyframes rdOpen { from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); } to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); } }
.rd-arch img { width: 100%; height: 100%; object-fit: cover; }
.rd-logo { position: relative; margin-top: -30px; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-size: 1.3rem; border: 4px solid var(--bg); box-shadow: 0 8px 18px -8px rgba(80,40,20,.5); }
.rd-logo img { width: 100%; height: 100%; object-fit: cover; }
.rd-id { padding: .6rem 1.3rem 0; text-align: center; }
.rd-kicker { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.rd-name { margin-top: .25rem; font-family: var(--display); font-size: clamp(1.85rem, 8.5vw, 2.3rem); line-height: 1.05; text-wrap: balance; }
.rd-div { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .55rem 0; color: var(--accent); }
.rd-div span { width: 44px; height: 1px; background: currentColor; opacity: .6; }
.rd-div svg { width: 22px; height: 22px; animation: rdTurn 16s linear infinite; }
@keyframes rdTurn { to { transform: rotate(360deg); } }
.rd-tag { color: var(--muted); font-size: .86rem; }
.rd-point { display: inline-flex; align-items: center; gap: .3rem; margin-top: .65rem; padding: .35rem .8rem; border-radius: 99px; background: var(--tile); color: var(--accent); font-weight: 700; font-size: .78rem; }
.rd-point svg { width: 14px; height: 14px; }
.rd-welcome { padding: .8rem 1.6rem 0; text-align: center; font-family: var(--display); font-size: .95rem; line-height: 1.45; color: color-mix(in srgb, var(--text) 80%, transparent); }
.rd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding: 1rem 1rem 0; }
.rd-tile { display: grid; justify-items: center; align-content: start; gap: .2rem; padding: 1.05rem .6rem .85rem; text-align: center; border-radius: 999px 999px 16px 16px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: 0 10px 20px -16px rgba(80,40,20,.5); transition: transform .2s var(--ease); }
.rd-tile:first-child { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.rd-tile:active { transform: translateY(2px); }
.rd-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .25rem; border-radius: 50%; background: var(--tile); color: var(--accent); }
.rd-tile:first-child .rd-ico { background: rgba(255,255,255,.2); color: inherit; }
.rd-ico svg { width: 21px; height: 21px; }
.rd-tile b { font-family: var(--display); font-weight: 400; font-size: 1rem; line-height: 1.15; }
.rd-tile small { font-size: .72rem; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-tile:first-child small { color: inherit; opacity: .85; }
.tpl-riad .sheet-title, .tpl-riad .menu-sec-title, .tpl-riad .sheet-head h2 { font-weight: 400; }
.tpl-riad .cs-dock { border-radius: 26px 26px 16px 16px; background: rgba(255,250,244,.92); }
