/* reference-list-template (build_reference_list_template.py). Every rule starts with .tk-ref.
   Centrepiece: the list drawn as three referee cards, each with the five details to give and a box ticked once the referee has agreed. */
.tk-ref{overflow-x:clip}
.tk-ref .rf-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tk-ref section[class^="rf-"] h2{font-family:var(--head);font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}
.tk-ref .rf-tx>p,.tk-ref .tp-fill p{font-size:1.08rem;line-height:1.65;margin:12px 0 0}
.tk-ref .rf-ln{display:block;height:7px;border-radius:2px;background:var(--line);margin-top:10px}
.tk-ref .rf-ln.m{width:72%}
.tk-ref .rf-ln.s{width:44%}
.tk-ref .rf-bl{display:block;height:26px;border-bottom:1.5px dotted var(--mute)}
.tk-ref .rf-title{font-family:var(--head);font-weight:700;font-size:1.5rem;letter-spacing:-.025em;line-height:1.15;color:var(--ink)}

.tk-ref .rf-doc{background:var(--plum);color:#fff;padding:68px 0 0}
.tk-ref .rf-doc h2{color:#fff}
.tk-ref .rf-hd{max-width:56ch}
.tk-ref .rf-doc .rf-tx>p{color:#fbeef2}
.tk-ref .rf-cards{margin:44px 0 -110px;position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:start}
.tk-ref .rf-card{background:#fff;color:var(--ink);border-radius:10px;padding:0 26px 24px;box-shadow:0 0 0 2px var(--ink),8px 8px 0 var(--cfield);background-image:linear-gradient(var(--cfield),var(--cfield));background-size:100% 64px;background-repeat:no-repeat}
.tk-ref .rf-card:nth-child(1){transform:rotate(-1.4deg)}
.tk-ref .rf-card:nth-child(2){transform:translateY(18px)}
.tk-ref .rf-card:nth-child(3){transform:rotate(1.2deg) translateY(4px)}
.tk-ref .rf-title{height:64px;display:flex;align-items:center;font-size:1.25rem}
.tk-ref .rf-card dl{margin:14px 0 0;display:grid;gap:8px}
.tk-ref .rf-card dl>div{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:end;gap:10px}
.tk-ref .rf-card dt{font-size:.88rem;font-weight:700;color:var(--cd);padding-bottom:2px}
.tk-ref .rf-card dd{margin:0}
.tk-ref .rf-ok{margin-top:22px;padding-top:16px;border-top:1.5px solid var(--ink);display:flex;align-items:center;gap:10px;font-weight:700;font-size:.95rem}
.tk-ref .rf-ok:before{content:"";flex:none;width:22px;height:22px;border:2px solid var(--ink);border-radius:5px;background:#fff0f4}
.tk-ref .rf-card:nth-child(1) .rf-ok:before{background:var(--ink);box-shadow:inset 0 0 0 4px #fff0f4}

.tk-ref .rf-notes{padding:176px 0 72px}
.tk-ref .rf-notes-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.tk-ref .rf-notes-g>*{padding:4px 36px 4px 0}
.tk-ref .rf-notes-g>*+*{padding-left:36px;border-left:2px solid var(--ink)}
.tk-ref .rf-notes-g>:last-child{padding-right:0}
.tk-ref .rf-notes h2{font-size:1.3rem !important}
.tk-ref .rf-notes .rf-tx>p,.tk-ref .tp-fill p{font-size:1.02rem;color:#2c2a2e}

.tk-ref .rf-plan{padding:0 0 20px}

.tk-ref .rf-get{min-width:0}
.tk-ref .tpl{border:0;border-radius:16px;margin:0;max-width:none;background:var(--ink);}
.tk-ref .tplbar{display:none}
.tk-ref .tplgate{background:var(--ink);text-align:left;padding:32px 30px 30px}
.tk-ref .tplgate h3{color:#fff}
.tk-ref .tplgate>p{color:#eee8ea;margin-left:0;margin-right:0;max-width:none}
.tk-ref .tplcta{justify-content:flex-start}
.tk-ref .tplcta .btn{background:var(--cfield);color:var(--ink);border-color:var(--cfield);white-space:normal}
.tk-ref .tplsignin,.tk-ref .tplplans{color:#fff;text-decoration:underline}
.tk-ref .tpldfy{margin:26px 0 0;padding-top:24px;border-top:1px solid rgba(255,255,255,.35);text-align:left;max-width:none}
.tk-ref .tpldfy h4{color:#fff}
.tk-ref .tpldfy>p{color:#eee8ea;max-width:none;margin-left:0;margin-right:0}
.tk-ref .tpldfy>p a{color:#fff;font-weight:700;text-decoration:underline}
.tk-ref .tpldfy .msg{color:#eee8ea}
.tk-ref .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tk-ref .tpldfy button{background:#fff;color:var(--ink)}
.tk-ref .rf-get:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.tk-ref .rf-get:has(.tpldoc:not(.hidden-guide)) .tpl{background:#fff;border:2px solid var(--ink)}

.tk-ref .tplgate{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:56px;align-content:start;padding:46px 48px}
.tk-ref .tplgate>*{grid-column:1}
.tk-ref .tplgate h3{font-size:1.6rem;margin-bottom:12px}
.tk-ref .tpldfy{grid-column:2;grid-row:1/span 5;align-self:start;margin:0;padding:0 0 0 56px;border-top:0;border-left:1px solid rgba(255,255,255,.35)}
@media(max-width:980px){
  .tk-ref .tplgate{grid-template-columns:1fr;padding:32px 26px}
  .tk-ref .tpldfy{grid-column:1;grid-row:auto;margin:26px 0 0;padding:24px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.35)}
}

.tk-ref .rf-ask{padding:72px max(28px,calc((100% - 1220px)/2 + 28px)) 30px}
.tk-ref .rf-ask .rf-qs{margin-top:22px;max-width:900px}
.tk-ref .rf-ask .faqs{max-width:none;border-top:2px solid var(--ink);padding:0}
.tk-ref .rf-ask details.fq{border-bottom:1px solid var(--ink)}
.tk-ref .rf-ask details.fq>summary{font-family:var(--head);font-size:1.1rem;padding:20px 2px}

.tk-ref .art-rel{padding-block:44px 76px}
.tk-ref .art-rel>h2{font-size:1.3rem;margin-bottom:16px}
.tk-ref .art-rel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tk-ref .art-rel-grid a,.tk-ref .art-rel-grid a:first-child{flex-direction:row;align-items:center;min-height:0;padding:18px 22px;border:0;border-radius:10px;background:#fff0f4;font-size:1rem}
.tk-ref .art-rel-grid a:hover{transform:none;box-shadow:none;background:var(--cfield)}
@media(max-width:620px){
  .tk-ref .art-rel-grid{grid-template-columns:1fr}
}

@media(max-width:980px){
  .tk-ref .rf-cards{grid-template-columns:1fr;max-width:460px;gap:22px}
  .tk-ref .rf-card:nth-child(n){transform:none}
  .tk-ref .rf-notes-g{grid-template-columns:1fr;gap:34px}
  .tk-ref .rf-notes-g>*,.tk-ref .rf-notes-g>*+*{padding:0;border-left:0}
}
@media(max-width:620px){
  .tk-ref .rf-doc{padding-top:48px}
  .tk-ref .rf-cards{margin-right:8px}
  .tk-ref .rf-card{padding:0 18px 20px}
  .tk-ref .rf-card dl>div{grid-template-columns:104px minmax(0,1fr)}
  .tk-ref .rf-notes{padding:156px 0 52px}
}
