/* CAQA CareHandoff: the shift-close line */
:root{
  --ink:#10241f;--soft:#45574f;--out:#f7f1de;--inc:#e1f0ec;--paper:#ffffff;--rule:#b9c4bc;
  --band:#ffd447;--held:#8f1150;--held-wash:#fbe9f2;--ok:#0c5f52;
  --display:"Bookman Old Style","URW Bookman",serif;
  --text:"Leelawadee UI",Leelawadee,sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--text);font-size:17px;line-height:1.5}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.18;margin:0 0 .6rem;text-wrap:balance}
h2{font-size:clamp(1.35rem,2.3vw,1.95rem)}
h3{font-size:1.05rem}
p{margin:0 0 .8rem}
a{color:var(--ink)}
button{font:inherit;color:var(--ink)}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #1747b5;outline-offset:3px}
main>section{padding:3.2rem max(1.25rem,calc((100% - 1160px)/2))}

/* header: the current page straddles the header rule */
.top{padding:.45rem max(1.25rem,calc((100% - 1300px)/2)) 0;margin-bottom:20px}
.toprow{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-bottom:8px}
.caqa-lockup{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;min-height:44px}
.pw{font-family:var(--display);font-weight:700;font-size:1.1rem}
.ask{display:inline-flex;align-items:center;min-height:44px;padding:0 1.1rem;border:2px solid var(--ink);border-radius:4px;text-decoration:none;font-weight:700}
.onrule{display:flex;justify-content:flex-end;gap:.4rem;border-bottom:4px solid var(--ink);height:26px}
.onrule a{display:flex;align-items:center;justify-content:center;min-height:44px;height:44px;margin-top:2px;min-width:6.4rem;padding:0 .8rem;text-decoration:none;background:var(--paper);border:1px solid var(--rule);border-radius:22px;transform:translateY(0);position:relative;top:0}
.onrule a[aria-current]{background:var(--band);border:3px solid var(--ink);font-weight:700}
.pg-index .top{margin-bottom:22px}

.status{font-size:.98rem;color:var(--soft);margin:0}
.lede{font-size:1.18rem;max-width:46rem}

/* opening: outgoing above, headline on the line, incoming below */
.open{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"board"}
.open{position:relative}
.board{display:flex;flex-direction:column}
.open{display:flex;flex-direction:column}
.open>.title{order:0}
.zone{padding:.55rem max(1.25rem,calc((100% - 1300px)/2)) .8rem}
.zone.out{background:var(--out)}
.zone.inc{background:var(--inc)}
.zh{display:flex;flex-wrap:wrap;align-items:baseline;gap:.1rem 1.2rem;margin-bottom:.45rem}
.zh h2{font-size:1.1rem;margin:0}
.zh p{margin:0;font-size:.93rem;color:var(--soft)}
.cards,.ins,.held{list-style:none;margin:0;padding:0}
.cards,.ins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}
.card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--rule);border-top:5px solid var(--ink);padding:.45rem .7rem .55rem;line-height:1.3}
.card.crit{border:2px solid var(--held);border-top-width:9px}
.card p{margin:0 0 .15rem;font-size:.93rem}
.card h3{font-size:.98rem;margin:.1rem 0 .25rem}
.meta{display:flex;justify-content:space-between;gap:.5rem;align-items:center}
.flag{background:var(--held);color:#fff;font-weight:700;padding:0 .5rem;font-size:.85rem}
.plain{border:1px solid var(--soft);padding:0 .5rem;font-size:.85rem}
.chg span,.own span{color:var(--soft)}
.card .ackline{margin-top:auto;font-weight:700;padding-top:.2rem}
.card[data-ack="yes"] .ackline{color:var(--ok)}
.card[data-ack="yes"] .ackline::before{content:"";display:inline-block;width:.45rem;height:.8rem;border:solid var(--ok);border-width:0 3px 3px 0;transform:rotate(45deg);margin:0 .5rem 0 .1rem}
.card[data-ack="no"] .ackline{color:var(--held)}
.card[data-ack="no"] .ackline::before{content:"";display:inline-block;width:.75rem;height:.75rem;border:2px dashed var(--held);border-radius:50%;margin-right:.45rem}
.ackbtn{min-height:44px;margin-top:.25rem;background:var(--paper);border:2px solid var(--ink);border-radius:4px;cursor:pointer;font-size:.9rem;line-height:1.2;padding:.2rem .4rem}
.ackbtn[aria-pressed="true"]{background:var(--ink);color:#fff}

.title{background:var(--band);padding:.65rem max(1.25rem,calc((100% - 1300px)/2)) .7rem;text-align:center;border-block:4px solid var(--ink)}
.title h1{font-size:clamp(1.6rem,3vw,2.5rem);margin:0}
.title .status{color:var(--ink)}
.line{background:var(--paper);border-block:4px solid var(--ink);padding:.5rem max(1.25rem,calc((100% - 1300px)/2));display:grid;grid-template-columns:minmax(0,19rem) minmax(0,1fr);gap:.4rem 1.2rem;align-items:center}
.gstate{font-weight:700;margin:0;line-height:1.3}
.gbtns{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.35rem}
.gbtns button,.hb button{min-height:44px;padding:.2rem .85rem;border:2px solid var(--ink);border-radius:4px;background:var(--paper);cursor:pointer;font-size:.95rem}
.gbtns .close{background:var(--ink);color:#fff}
.held{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(22rem,1fr))}
.heldcard{background:var(--held-wash);border:3px solid var(--held);padding:.45rem .8rem .55rem;position:relative}
.heldcard p{margin:0;font-size:.95rem;line-height:1.35}
.hb{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.3rem}
.hb .drop{border-style:dashed;border-color:var(--held)}
.clear{margin:0;border:2px dashed var(--ok);padding:.6rem .9rem;color:var(--ok);font-weight:700}
.say{grid-column:1/-1;margin:0;color:var(--held);font-weight:700}
.say:empty{display:none}
.say.calm{color:var(--ok)}
.in{border:1px solid var(--rule);background:var(--paper);padding:.4rem .7rem .5rem;line-height:1.3}
.in p{margin:0 0 .15rem;font-size:.93rem}
.in.got{border-left:8px solid var(--ok)}
.in.carried{border:2px dashed var(--soft)}
.in.online,.in.waiting{border:2px dotted var(--held);background:transparent}
.in.waiting{border-color:var(--soft)}
.in .why{color:var(--soft)}
.in.online .why{color:var(--held);font-weight:700}

/* order on the first screen: outgoing, headline on the line, controls, incoming */
@media (min-width:1001px){
  .open{display:grid;grid-template-areas:"out" "title" "line" "inc"}
  .board{display:contents}
  .title{grid-area:title}.zone.out{grid-area:out}.line{grid-area:line;border-top:0}.zone.inc{grid-area:inc}
  .title{border-bottom-width:1px}
}

/* overview lower */
.why .cols{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem}
.benefit{margin:1.2rem 0 0;font-family:var(--display);font-size:clamp(1.2rem,2.2vw,1.7rem);border-block:4px solid var(--ink);padding:.9rem 0;text-align:center}
.notthis{background:var(--ink);color:#fff}
.notthis ul{list-style:none;margin:1rem 0 0;padding:0}
.notthis li{padding:.9rem 0;border-top:1px solid #5f7a70}
.notthis b{display:inline-block;min-width:18rem;color:var(--band);font-family:var(--display)}
.who>div{display:grid;grid-template-columns:1fr;margin-top:1rem}
.who article{padding:1.2rem 1.4rem}
.who article:first-child{background:var(--out);border-bottom:6px solid var(--ink)}
.who article:last-child{background:var(--inc)}
.routes{display:grid;grid-template-columns:repeat(3,1fr);margin-top:2.4rem;border-top:4px solid var(--ink)}
.routes a{display:block;text-decoration:none;padding:1rem 1rem 1.2rem 0;min-height:48px;position:relative}
.routes a::before{content:"";position:absolute;top:-11px;left:0;width:14px;height:14px;border-radius:50%;background:var(--band);border:3px solid var(--ink)}
.routes b{display:block;font-family:var(--display);font-size:1.2rem}

/* inner heads: two shift tints split by the line */
main>.head{background:linear-gradient(var(--out) 0 62%,var(--inc) 62% 100%);position:relative;padding-top:2.4rem;padding-bottom:1.6rem}
.head h1{font-size:clamp(1.75rem,3.8vw,3rem);background:var(--paper);border:4px solid var(--ink);padding:.7rem 1.1rem;display:inline-block;max-width:24ch}
.head .lede{margin:.6rem 0 0}
.head .status{margin-bottom:.5rem}

.exploded{display:grid;grid-template-columns:minmax(0,40rem) minmax(0,1fr);gap:2rem;margin-top:1rem;align-items:end}
.bigcard{border:3px solid var(--held);border-top-width:14px;padding:1rem 1.3rem}
.bt{font-family:var(--display);font-weight:700;font-size:1.35rem;margin:.5rem 0}
.bigcard dl{margin:0}
.bigcard dl div{display:grid;grid-template-columns:10rem minmax(0,1fr);gap:1rem;padding:.65rem 0;border-top:1px dashed var(--soft)}
.bigcard dt{font-weight:700}
.bigcard dd{margin:0}
.side{border-left:4px solid var(--ink);padding-left:1rem}
.rule{background:var(--inc)}
.rule blockquote{margin:1rem 0 1.4rem;background:var(--band);border-block:4px solid var(--ink);padding:1.2rem 1.4rem}
.rule blockquote p{margin:0;font-family:var(--display);font-size:clamp(1.2rem,2.5vw,1.8rem);line-height:1.3}
table{width:100%;border-collapse:collapse;background:var(--paper);table-layout:fixed}
th,td{border:2px solid var(--ink);padding:.75rem .85rem;text-align:left;vertical-align:top}
thead th:first-child{width:18%}
td.hold{background:var(--held-wash);box-shadow:inset 0 0 0 4px var(--held);font-weight:700}
.note{margin-top:1rem;max-width:56rem}
.roles dl{margin:1rem 0 0}
.roles dl div{display:grid;grid-template-columns:20rem minmax(0,1fr);gap:1.4rem;padding:1.2rem 0;border-top:4px solid var(--ink)}
.roles dt{font-family:var(--display);font-weight:700}
.roles dd{margin:0}
.access{background:var(--ink);color:#fff}
.access p{max-width:54rem}
.two{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:1rem}
.two>div,.two>article{padding:1.1rem 1.3rem;background:var(--out);border-top:6px solid var(--ink)}
.two>div+div,.two>article+article{background:var(--inc)}
.two ul{padding-left:1.1rem;margin:0}
.two li{margin-bottom:.4rem}
.compare .two>.ok{background:var(--inc);border:2px solid var(--ok)}
.compare .two>.no{background:var(--held-wash);border:3px solid var(--held)}
.compare .two{margin-bottom:1.2rem}
.next,.go{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.4rem 1.4rem;background:var(--ink);color:#fff;text-decoration:none;font-weight:700;border-radius:4px}

/* workflow: vertical clock line */
.timeline{list-style:none;margin:1.4rem 0 0;padding:0}
.timeline li{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:2.8rem;position:relative}
.timeline li::before{content:"";position:absolute;left:calc(8rem - 2px);top:0;bottom:0;border-left:4px solid var(--ink)}
.timeline li::after{content:"";position:absolute;left:calc(8rem - 9px);top:.35rem;width:18px;height:18px;border-radius:50%;background:var(--paper);border:4px solid var(--ink)}
.timeline .time{font-family:var(--display);font-size:1.45rem;text-align:right;margin:0}
.timeline li>div{padding:0 0 2rem}
.timeline li>div p{max-width:46rem}
.res{display:inline-block;margin:0;font-weight:700;border:2px solid var(--ink);padding:.2rem .8rem}
.timeline .hold::before{border-left-style:dashed;border-color:var(--held)}
.timeline .hold::after{border-radius:0;transform:rotate(45deg);background:var(--held);border-color:var(--held)}
.timeline .hold .res{border-color:var(--held);background:var(--held-wash);color:var(--held)}
.timeline .done::after{background:var(--ok);border-color:var(--ok)}
.timeline .done .res{border-color:var(--ok);color:var(--ok)}
.compare{background:var(--out)}

/* demo */
.avail .havenot{border-top-style:dashed}
.faq details{border:2px solid var(--ink);margin-bottom:.5rem;max-width:56rem}
.faq summary{cursor:pointer;min-height:48px;padding:.75rem 1rem;font-weight:700}
.faq details p{padding:0 1rem}
.cover-talk{background:var(--out)}
.cover-talk ol{font-size:1.1rem}
.cover-talk li{margin-bottom:.5rem}
.enquire{background:var(--band);border-block:4px solid var(--ink);text-align:center}

.foot{background:var(--ink);color:#fff;padding:2rem max(1.25rem,calc((100% - 1160px)/2))}
.foot .caqa-lockup{background:#fff;color:var(--ink);padding:.3rem .8rem}
.foot ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:0 1.6rem}
.foot ul a{color:#fff;display:inline-flex;align-items:center;min-height:44px}
.foot a:focus-visible{outline-color:var(--band)}
.foot p{max-width:54rem;font-size:.98rem}

@media (max-width:1000px){
  .cards,.ins{grid-template-columns:repeat(2,minmax(0,1fr))}
  .line{grid-template-columns:minmax(0,1fr)}
  .held{grid-template-columns:minmax(0,1fr)}
  .exploded{grid-template-columns:1fr}
}
@media (max-width:760px){
  main>section{padding:2.2rem 1rem}
  .top{padding:.35rem .6rem 0}
  .top .caqa-lockup img{width:80px;height:28px}
  .top .caqa-lockup{gap:.4rem}
  .pw{font-size:.95rem}
  .ask{padding:0 .6rem;font-size:.92rem}
  .onrule{justify-content:space-between;gap:.25rem}
  .onrule a{min-width:0;flex:1;padding:0 .2rem;font-size:.95rem}
  .zone,.title,.line{padding-left:.75rem;padding-right:.75rem}
  .title{border-top:0}
  .cards,.ins{grid-template-columns:minmax(0,1fr)}
  .why .cols,.two,.routes{grid-template-columns:1fr}
  .why .cols{gap:0}
  .routes{border-top:0;border-left:4px solid var(--ink);margin-left:.5rem}
  .routes a{padding-left:1.2rem}
  .routes a::before{top:1.35rem;left:-11px}
  .notthis b{display:block;min-width:0}
  .bigcard dl div,.roles dl div{grid-template-columns:1fr;gap:.2rem}
  th,td{padding:.5rem .4rem;font-size:.92rem;overflow-wrap:break-word}
  thead th:first-child{width:24%}
  .timeline li{grid-template-columns:minmax(0,1fr);gap:.2rem;padding-left:2.2rem}
  .timeline li::before{left:.55rem}
  .timeline li::after{left:calc(.55rem - 7px)}
  .timeline .time{text-align:left}
}
