/* disciplinary-outcome-letter-template (build_disciplinary_outcome_letter_template.py). Every rule starts with .ti-outcome.
   Centrepiece: the outcome letter with its four sections, the right of appeal as a tear-off slip at the foot. */
.ti-outcome .do-in{max-width:1220px;margin:0 auto;padding:0 28px}
.ti-outcome section[class^="do-"] h2{font-size:clamp(1.55rem,2.4vw,2rem);letter-spacing:-.028em;line-height:1.14;margin:0}

.ti-outcome .do-top{background:var(--plum);color:#fff;padding:72px 0 84px}
.ti-outcome .do-top-g{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:72px;align-items:start}
.ti-outcome .do-top h2{color:#fff}
.ti-outcome .do-tx p{margin:14px 0 0;font-size:1.06rem;line-height:1.7;color:#f4dfe6}
.ti-outcome .do-h-fill{margin-top:48px !important}
.ti-outcome .do-rail{list-style:none;margin:34px 0 0;padding:0;position:relative}
.ti-outcome .do-rail:before{content:"";position:absolute;left:8px;top:10px;bottom:10px;width:2px;background:#fff}
.ti-outcome .do-rail li{position:relative;padding:0 0 26px 38px;font-family:var(--head)}
.ti-outcome .do-rail li:last-child{padding-bottom:0}
.ti-outcome .do-rail li:before{content:"";position:absolute;left:0;top:3px;width:18px;height:18px;border-radius:50%;background:var(--plum);border:2px solid #fff;box-sizing:border-box}
.ti-outcome .do-rail li.do-now:before{background:var(--cfield);border-color:var(--cfield)}
.ti-outcome .do-rail b{display:block;font-size:1.02rem;font-weight:700}
.ti-outcome .do-rail span{display:block;font-family:var(--body);font-size:.92rem;color:#ffc9d6;margin-top:2px}

.ti-outcome .do-letter{color:var(--ink);max-width:620px;justify-self:end;width:100%}
.ti-outcome .do-page{background:#fff;border-radius:4px 4px 0 0;padding:44px 48px 34px}
.ti-outcome .do-hd{display:flex;justify-content:space-between;align-items:flex-start}
.ti-outcome .do-addr{display:grid;gap:7px;width:150px}
.ti-outcome .do-addr i,.ti-outcome .do-date i{display:block;height:6px;border-radius:3px;background:#f3cfda}
.ti-outcome .do-addr i:last-child{width:60%}
.ti-outcome .do-date{width:90px}
.ti-outcome .do-title{font-family:var(--head);font-weight:700;font-size:1.35rem;letter-spacing:-.02em;margin:34px 0 0}
.ti-outcome .do-secs{list-style:none;margin:8px 0 0;padding:0;counter-reset:s}
.ti-outcome .do-secs li{counter-increment:s;position:relative;padding:22px 0 8px 48px;border-top:1px solid #f3cfda;margin-top:18px}
.ti-outcome .do-secs li:before,.ti-outcome .do-slip-h i{content:counter(s);position:absolute;left:0;top:20px;width:30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;font-family:var(--head);font-weight:700;font-size:.9rem;display:flex;align-items:center;justify-content:center;font-style:normal}
.ti-outcome .do-secs b{display:block;font-family:var(--head);font-size:1.05rem}
.ti-outcome .do-secs span{display:block;font-size:.9rem;color:var(--cd);font-weight:700;margin:3px 0 0}
.ti-outcome .do-ln{display:block;height:6px;border-radius:3px;background:#f3cfda;margin:12px 0 0}
.ti-outcome .do-ln.w70{width:70%}
.ti-outcome .do-ln.w45{width:45%}
.ti-outcome .do-slip{position:relative;background:var(--cfield);border-radius:0 0 4px 4px;padding:26px 48px 30px;border-top:3px dashed var(--plum)}
.ti-outcome .do-slip:before,.ti-outcome .do-slip:after{content:"";position:absolute;top:-13px;width:24px;height:24px;border-radius:50%;background:var(--plum)}
.ti-outcome .do-slip:before{left:-12px}
.ti-outcome .do-slip:after{right:-12px}
.ti-outcome .do-slip-h{position:relative;font-family:var(--head);font-weight:700;font-size:1.05rem;margin:0;padding:4px 0 4px 48px}
.ti-outcome .do-slip-h i{top:0}
.ti-outcome .do-fields{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin:20px 0 0 48px}
.ti-outcome .do-fields span{display:flex;align-items:flex-end;gap:8px;font-size:.9rem;font-weight:700;white-space:nowrap}
.ti-outcome .do-fields span i{flex:1;min-width:30px;border-bottom:2px dotted var(--ink);height:1em}

.ti-outcome .do-notes{padding:72px 0 28px}
.ti-outcome .do-notes-g{display:grid;grid-template-columns:1fr 1fr;gap:0}
.ti-outcome .do-law{padding:6px 56px 6px 0;border-right:2px solid var(--ink)}
.ti-outcome .do-before{padding:6px 0 6px 56px}
.ti-outcome .do-notes p{margin:14px 0 0;font-size:1.04rem;line-height:1.7;color:#3d3b41}

/* the subscription box, laid across the page */
.ti-outcome .do-get{padding:44px 0 20px}
.ti-outcome .tpl{border:2px solid var(--ink);border-radius:16px;margin:0;max-width:none}
.ti-outcome .tplbar{display:none}
.ti-outcome .tplgate{background:#fff0f4;text-align:left;padding:0;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-rows:auto auto auto 1fr}
.ti-outcome .tplgate>*{grid-column:1;margin-left:0;margin-right:0;padding-left:40px;padding-right:40px}
.ti-outcome .tplgate h3{margin-top:38px;font-size:1.5rem;color:var(--ink)}
.ti-outcome .tplgate>p{color:#3d3b41;max-width:60ch}
.ti-outcome .tplcta{justify-content:flex-start;margin-bottom:38px;align-self:start}
.ti-outcome .tplcta .btn{background:var(--ink);color:#fff;white-space:normal}
.ti-outcome .tplsignin,.ti-outcome .tplplans{color:var(--ink);text-decoration:underline}
.ti-outcome .tplgate .tpldfy{grid-column:2;grid-row:1 / span 4;margin:0;padding:38px 36px;background:#fff;border-top:0;border-left:2px solid var(--ink);max-width:none;text-align:left}
.ti-outcome .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.ti-outcome .tpldfy button{background:var(--ink)}
.ti-outcome .do-get:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}

.ti-outcome .do-ask{padding:56px 0 56px}
.ti-outcome .do-qs{margin-top:22px;border-top:2px solid var(--ink);max-width:none}
.ti-outcome .do-qs .fqa{max-width:78ch}

@media(max-width:980px){
.ti-outcome .do-top-g{grid-template-columns:1fr;gap:44px}
.ti-outcome .do-letter{justify-self:start}
.ti-outcome .do-notes-g{grid-template-columns:1fr}
.ti-outcome .do-law{padding:0 0 32px;border-right:0;border-bottom:2px solid var(--ink)}
.ti-outcome .do-before{padding:32px 0 0}
.ti-outcome .tplgate{grid-template-columns:1fr;grid-template-rows:none}
.ti-outcome .tplgate .tpldfy{grid-column:1;grid-row:auto;border-left:0;border-top:2px solid var(--ink)}
}
@media(max-width:560px){
.ti-outcome .do-top{padding:48px 0 56px}
.ti-outcome .do-page{padding:32px 24px 26px}
.ti-outcome .do-slip{padding:22px 24px 26px}
.ti-outcome .do-fields{grid-template-columns:1fr;margin-left:0;gap:14px}
.ti-outcome .tplgate>*{padding-left:22px;padding-right:22px}
.ti-outcome .tplgate .tpldfy{padding:28px 22px}
}
