/* RELICFRONT tip block (shared, Basti 19.11.: "Tipps besser optisch darstellen, gilt für alle Seiten").
   Uses only the tokens from site.css. Load after site.css: <link rel="stylesheet" href="/assets/tip.css?v=1">

   Single tip:
   <aside class="rf-tip" data-kind="tip|counter|warn" aria-label="Tip">
     <p class="rf-tip-label">Counter tip</p>
     <p class="rf-tip-if">If assassins keep killing your archers,</p>      (optional: the situation)
     <p class="rf-tip-then">add a <strong>Warden</strong> ...</p>            (the advice)
   </aside>
   List of tips (e.g. per faction):  <ul class="rf-tips" data-kind="tip"><li>...</li></ul>            */

.rf-tip{--k:var(--gold);--k-soft:rgba(214,163,92,.10);--k-line:rgba(214,163,92,.38);
  position:relative;display:grid;grid-template-columns:2.6rem minmax(0,1fr);column-gap:1rem;align-items:start;
  margin:1.6rem 0;padding:1.05rem 1.2rem 1.1rem 1rem;max-width:44rem;
  background:linear-gradient(100deg,var(--k-soft),rgba(255,255,255,.015) 60%),var(--panel);
  border:1px solid var(--k-line);border-left:3px solid var(--k);border-radius:var(--r);
  box-shadow:0 10px 26px rgba(0,0,0,.28)}
.rf-tip[data-kind="counter"]{--k:#7fb0f5;--k-soft:rgba(91,156,240,.10);--k-line:rgba(91,156,240,.38)}
.rf-tip[data-kind="warn"]{--k:#e3878c;--k-soft:rgba(226,100,95,.10);--k-line:rgba(226,100,95,.38)}
/* the medallion with the icon */
.rf-tip::before{content:"";grid-row:1 / span 3;width:2.6rem;height:2.6rem;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.10),transparent 60%),var(--bg-2);
  border:1px solid var(--k-line);box-shadow:inset 0 0 0 3px var(--bg-2),inset 0 0 0 4px var(--k-line)}
.rf-tip::after{content:"";position:absolute;left:1rem;top:1.05rem;width:2.6rem;height:2.6rem;background:var(--k);
  -webkit-mask:var(--icon) center/1.35rem no-repeat;mask:var(--icon) center/1.35rem no-repeat;
  --icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E")}
.rf-tip[data-kind="counter"]::after{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8-8 9-4.6-1-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E")}
.rf-tip[data-kind="warn"]::after{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18h.01'/%3E%3C/svg%3E")}
.rf-tip>p{grid-column:2;margin:0;max-width:none}
.rf-tip-label{font:700 .74rem/1.2 var(--f-ui);letter-spacing:.16em;text-transform:uppercase;color:var(--k);margin:.15rem 0 .45rem!important}
.rf-tip-if{color:var(--text);font:600 1.05rem/1.4 var(--f-text);margin-bottom:.35rem!important}
.rf-tip-then{color:var(--text-soft);font-size:.98rem;line-height:1.6}
.rf-tip-if+.rf-tip-then{position:relative;padding-left:1.4rem}
.rf-tip-if+.rf-tip-then::before{content:"\2192";position:absolute;left:0;top:0;color:var(--k);font-weight:700}
.rf-tip strong{color:var(--text)}

.rf-tips{list-style:none;margin:1rem 0;padding:0;display:grid;gap:.6rem}
.rf-tips>li{position:relative;margin:0;padding:.75rem .95rem .75rem 2.7rem;background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:var(--r);color:var(--text-soft);line-height:1.55}
.rf-tips>li::before{content:"";position:absolute;left:.85rem;top:.85rem;width:1.15rem;height:1.15rem;background:var(--gold);
  -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='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%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='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center/contain no-repeat}
@media (max-width:520px){.rf-tip{grid-template-columns:2.1rem minmax(0,1fr);column-gap:.8rem;padding:.95rem 1rem}.rf-tip::before{width:2.1rem;height:2.1rem}.rf-tip::after{width:2.1rem;height:2.1rem;top:.95rem;-webkit-mask-size:1.1rem;mask-size:1.1rem}}
@media print{.rf-tip{box-shadow:none;background:none}}
