/* Cloud Shared Responsibility Mapper: a lease plan on whiteprint stock. Colour carries the owner of a bay and nothing else:
   edged red = yours, shaded grey = the provider's, hatched blue = shared, dashed red = run for you by the MSP, a solid red
   corner = yours with nobody named. Direction and walks in design-brief.md. */
:root {
  --stock: #f5f4f7; --white: #fff; --ink: #1f1e24; --ink2: #48464f; --rule: #d9d6df; --rule2: #e8e6ec;
  --red: #c7321f; --grey: #bdbac6; --blue: #2f5fb3;
  --sans: 'Albert Sans', system-ui, sans-serif; --mono: 'Ubuntu Mono', ui-monospace, Menlo, monospace;
  --hatch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M-1 1l2-2M0 6L6 0M5 7l2-2' stroke='%238096c8' stroke-width='1'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stock); color: var(--ink); font: 16px/1.55 var(--sans); text-rendering: geometricPrecision; }
a { color: var(--ink); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono, .cref, abbr, .code { font-family: var(--mono); font-size: .95em; }
.n, .num, .d { font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums; }
abbr { text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k, .legend, th, .fname, .fl, .plan-tag { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

/* header: on the stock under one rule */
header.site { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 18px 0 12px; border-bottom: 1.5px solid var(--ink); flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand em { font-style: normal; font-weight: 400; }
header nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
header nav a { text-decoration: none; }
header nav a:hover { text-decoration: underline; }
#nav-auth { display: inline-flex; gap: 18px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 34px 0 24px; }
.hero.home { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); grid-template-areas: 'intro spec' 'body spec' 'body photo' 'body .'; align-items: start; row-gap: 18px; }
.hero.home .intro { grid-area: intro; } .hero.home .spec { grid-area: spec; } .hero.home .body { grid-area: body; } .hero.home figure.person { grid-area: photo; }
.hero.home h1 { margin-bottom: 0; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink2); margin: 0 0 10px; }
h1 { font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; }
h1.ph { font-size: 34px; }
h2 { font-size: 22px; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lede { font-size: 18px; line-height: 1.55; margin: 0 0 18px; max-width: 640px; }
.reads { margin: 0 0 18px; max-width: 640px; }
.reads p { margin: 0 0 8px; font-size: 15.5px; }
.reads p:last-child { margin: 0; }
.cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta .hint { flex-basis: 100%; }
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
figure.person { margin: 0; }
figure.person img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
figure.person figcaption { font-size: 15px; line-height: 1.5; padding-top: 10px; }

/* buttons, hints */
.btn { display: inline-block; font: 600 15px var(--sans); background: var(--ink); color: var(--white); border: 1.5px solid var(--ink); border-radius: 2px; padding: 10px 16px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--white); }
.btn.small { font-size: 14px; padding: 7px 12px; }
.plan-tag { font-size: 12px; font-weight: 600; margin-left: 8px; padding-left: 8px; border-left: 1px solid currentColor; }
.hint { color: var(--ink2); font-size: 14px; line-height: 1.5; }
.row { display: flex; gap: 10px; align-items: center; }
.notice { border: 1.5px solid var(--ink); background: var(--white); padding: 12px 16px; margin: 16px 0; font-size: 15px; }
.locked { color: var(--ink2); font-style: italic; }

/* the specimen excerpt on the first screen */
.specimen { border: 1.5px solid var(--ink); background: var(--white); padding: 12px 14px 12px; }
.specimen .legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.specimen .cap { font-size: 17px; margin: 10px 0 6px; }
.specimen .capsub { font-size: 13.5px; color: var(--ink2); margin: 6px 0 0; }

/* the plan: services as strips, areas as bays */
.planwrap { max-width: 100%; overflow-x: auto; position: relative; }
table.plan { border-collapse: separate; border-spacing: 2px; font-size: 13px; }
table.plan th { font-weight: 600; font-size: 12px; text-align: center; padding: 2px 0 4px; color: var(--ink); }
table.plan th.rl { text-align: left; padding: 3px 10px 3px 0; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; white-space: nowrap; background: var(--stock); position: sticky; left: 0; z-index: 1; }
table.plan th.rl .nm { display: inline-block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.specimen table.plan th.rl { background: var(--white); }
.specimen table.plan th.rl .nm { max-width: 148px; }
.specimen table.plan td { width: 20px; min-width: 20px; height: 19px; }
.specimen table.plan th { font-size: 11px; }
table.plan th.rl .sn { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); display: inline-block; min-width: 26px; }
table.plan td { width: 30px; min-width: 30px; height: 24px; padding: 0; background: var(--white); }
table.plan td.y { box-shadow: inset 0 0 0 1.5px var(--red); }
table.plan td.o { background: var(--red); }
table.plan td.p { background: var(--grey); }
table.plan td.s { background: var(--white) var(--hatch) repeat; box-shadow: inset 0 0 0 2px var(--white); }
table.plan td.m { outline: 2px dashed var(--red); outline-offset: -3px; }
table.plan td.nd { font-size: 12.5px; font-style: italic; color: var(--ink2); background: var(--white); padding-left: 8px; width: auto; height: 24px; }
.key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.kk { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sw { display: inline-block; width: 20px; height: 15px; background: var(--white); }
.sw.y { box-shadow: inset 0 0 0 1.5px var(--red); }
.sw.o { background: var(--red); }
.sw.p { background: var(--grey); }
.sw.s { background: var(--white) var(--hatch) repeat; }
.sw.m { outline: 2px dashed var(--red); outline-offset: -3px; }
.plan-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1181px) { .plan-body { grid-template-columns: minmax(0, auto) 330px; gap: 32px; justify-content: space-between; align-items: start; } .plan-body .titleblock { grid-template-columns: 1fr 1fr; position: sticky; top: 16px; } .plan-body .titleblock > div { border-bottom: 1px solid var(--rule); } .plan-body .titleblock > div.tbw { grid-column: span 2; } }
.colkey { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 10px; font-size: 13px; }
.colkey li { break-inside: avoid; padding: 1px 0; }
.colkey code { display: inline-block; min-width: 30px; }
.swipe { display: none; }
.titleblock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--white); font-size: 14px; justify-self: end; width: 100%; max-width: 1000px; }
.titleblock > div { padding: 7px 10px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.titleblock > div { border-bottom: 0; }
.titleblock > div:last-child { border-right: 0; }
.titleblock .big { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--red); }
.titleblock .sheet { font-weight: 700; font-size: 16px; }
.titleblock .k { font-weight: 600; color: var(--ink2); }

/* sections */
section { margin: 34px 0 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); padding-top: 10px; margin-bottom: 12px; }
.folio { font-size: 14px; color: var(--ink2); }
.explain .form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1.5px solid var(--ink); padding-top: 16px; }
.explain .form .k { font-family: var(--mono); font-variant: normal; font-size: 13px; color: var(--ink2); display: block; margin-bottom: 4px; }
.explain .form p { margin: 0; font-size: 15px; }
.prose { max-width: 760px; }

/* the tool */
.tool { margin: 30px 0 0; border: 1.5px solid var(--ink); background: var(--white); padding: 14px; }
.tool .bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tool .bar .spacer { flex: 1; }
.tool .bar .hint { flex: 1 1 420px; color: var(--ink2); font-size: 14px; }
.tool code { background: var(--stock); padding: 0 3px; }
textarea.paste { width: 100%; min-height: 190px; margin: 12px 0; font: 13.5px/1.5 var(--mono); color: var(--ink); background: var(--white); border: 1px solid var(--ink2); border-radius: 2px; padding: 10px; resize: vertical; }
fieldset.ticks { border: 0; border-top: 1px solid var(--rule); margin: 12px 0 0; padding: 10px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 15px; }
fieldset.ticks legend { font-size: 14px; font-weight: 600; color: var(--ink2); padding: 0 0 6px; float: left; width: 100%; }
fieldset.ticks label { display: inline-flex; align-items: center; gap: 6px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ink); }

/* the result */
.leadline { font-size: 26px; font-weight: 600; margin: 26px 0 12px; letter-spacing: -.01em; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.summary > div { padding: 12px 14px 12px 0; }
.summary > div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.summary .n { font-size: 30px; line-height: 1.1; display: block; font-weight: 700; }
.summary > div:first-child .n { color: var(--red); }
.summary .l { font-size: 14px; font-weight: 600; }
.summary .sub { display: block; font-weight: 400; color: var(--ink2); font-size: 13.5px; }
.regime-line { max-width: 900px; margin: 12px 0 0; }
table.plain { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--white); }
table.plain th, table.plain td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain th { font-size: 13px; color: var(--ink2); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
table.plain td.c, table.plain th.c { text-align: right; font-family: var(--mono); font-size: 13px; }
table.sh { max-width: 560px; }
table.plain tr.rem td { color: var(--ink2); font-style: italic; }
table.plain tr.tot td { border-top: 1.5px solid var(--ink); font-weight: 600; }
ol.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
li.sv { display: grid; grid-template-columns: 52px minmax(0, 1fr) 190px; align-items: start; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
li.sv .num { font-family: var(--mono); font-size: 13px; color: var(--ink2); }
li.sv .sname { margin: 0; font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
li.sv .meta { margin: 2px 0 0; font-size: 14px; color: var(--ink2); display: flex; gap: 4px 0; flex-wrap: wrap; }
li.sv .meta > span + span::before { content: "\00b7"; margin: 0 8px; color: var(--ink2); font-style: normal; }
li.sv .meta .none, li.sv .meta b { color: var(--ink); }
li.sv .from { font-style: italic; }
.flags { margin-top: 5px; font-weight: 600; }
.fl.orphan, .fl.cmmc { color: var(--red); }
.fl + .fl::before { content: "/"; margin: 0 7px; color: var(--ink2); font-weight: 400; }
li.sv .mg { text-align: right; font-size: 13.5px; color: var(--ink2); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
li.sv .mg .bw { display: block; font-style: italic; }
li.sv .toggle { margin-left: 10px; display: inline-block; width: 17px; height: 17px; border: 1px solid var(--ink2); border-radius: 2px; text-align: center; vertical-align: middle; position: relative; top: -1px; }
li.sv .toggle::after { content: "+"; font: 600 14px/16px var(--sans); color: var(--ink); }
li.sv.open .toggle::after { content: "-"; }
li.sv .why { display: none; grid-column: 2 / 4; margin-top: 8px; cursor: auto; }
li.sv.open .why { display: block; }
.dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 5px 0; font-size: 14.5px; border-bottom: 1px dotted var(--rule); }
.dl .k { font-weight: 600; color: var(--ink); padding-top: 2px; }
.dl .sub { display: block; color: var(--ink2); font-size: 13.5px; }
.dl .pasted { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.dot { margin: 0 6px; color: var(--ink2); }
table.split { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; background: var(--white); }
table.split th, table.split td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule2); vertical-align: top; }
table.split th { font-size: 12.5px; color: var(--ink2); border-bottom: 1.5px solid var(--ink); }
table.split td:first-child { white-space: nowrap; }
.ow { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.ow::before { content: ""; display: inline-block; width: 16px; height: 12px; background: var(--white); flex: none; }
.ow.y::before { box-shadow: inset 0 0 0 1.5px var(--red); }
.ow.o::before { background: var(--red); }
.ow.p::before { background: var(--grey); }
.ow.s::before { background: var(--white) var(--hatch) repeat; box-shadow: inset 0 0 0 1px var(--rule); }
.ow.m::before { outline: 2px dashed var(--red); outline-offset: -2px; }
.clause { white-space: nowrap; }
.cref { font-size: 12.5px; }
.lvl { font-size: 12px; color: var(--ink2); }
.blocks { margin: 10px 0 0; }
.ctrl { border-left: 2px solid var(--ink); background: var(--white); padding: 8px 12px; margin: 8px 0; font-size: 14.5px; }
.ctrl .ch { font-weight: 600; }
.ctrl p.q { margin: 6px 0; }
.ctrl .ev { font-size: 14px; color: var(--ink2); line-height: 1.5; }
.ctrl .ev b { color: var(--ink); }
.ctrl ul.evl { margin: 2px 0 6px; padding-left: 18px; }
.ctrl ul.evl li { margin: 0; }
.fl-note { font-size: 13.5px; color: var(--ink2); font-style: italic; }
section.finds details { border-bottom: 1px solid var(--rule); background: var(--white); margin: 0 0 6px; border: 1px solid var(--rule); }
section.finds summary { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none; align-items: baseline; }
section.finds summary::-webkit-details-marker { display: none; }
section.finds .fname { font-weight: 700; font-size: 14.5px; }
section.finds .ftitle { font-size: 15px; }
section.finds .who { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
section.finds .fbody { padding: 0 12px 12px; font-size: 15px; }
section.finds ul.items { padding-left: 18px; margin: 8px 0; }
section.finds ul.items li { margin: 0 0 6px; }
.iq { font-style: italic; }
.ask { border-top: 1px solid var(--rule); padding-top: 8px; }

/* static pages */
ul.idx { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
ul.idx li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding: 7px 0; }
ul.idx li span { color: var(--ink2); font-size: 13.5px; font-family: var(--mono); }
h3.idxg { margin: 22px 0 6px; }
.qtext { font-family: var(--mono); font-size: 14px; background: var(--white); border: 1px solid var(--rule); padding: 8px 10px; display: inline-block; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); background: var(--white); margin-top: 18px; }
.pricing > div { padding: 18px; display: flex; flex-direction: column; }
.pricing > div .btn { margin-top: auto; align-self: flex-start; }
.pricing .price { min-height: 50px; display: flex; align-items: flex-end; gap: 4px; }
.pricing .price small { margin-bottom: 8px; }
.pricing > div + div { border-left: 1px solid var(--rule); }
.pricing .price { font-size: 38px; font-weight: 700; font-family: var(--mono); }
.pricing .price small { font-size: 14px; margin-right: 4px; }
.pricing .price.word { font-family: var(--sans); font-size: 28px; }
.pricing .per { color: var(--ink2); font-size: 14px; margin-bottom: 10px; min-height: 21px; }
.pricing ul { padding-left: 18px; font-size: 15px; }
.list .item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; flex-wrap: wrap; }
.list .item .meta { color: var(--ink2); font-size: 14px; }

footer.site { width: calc(100% - 32px); max-width: 1148px; padding-left: 0; padding-right: 0; display: flex; gap: 8px 16px; flex-wrap: wrap; border-top: 1.5px solid var(--ink); margin-top: 48px; padding-top: 16px; padding-bottom: 40px; font-size: 14px; color: var(--ink2); }
footer.site a { color: var(--ink); }
footer.site > span:nth-last-child(-n+2) { flex-basis: 100%; }

.modal { display: none; position: fixed; inset: 0; background: rgba(31, 30, 36, .45); align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal.open { display: flex; }
.modal .box { background: var(--white); border: 1.5px solid var(--ink); padding: 20px; max-width: 440px; width: 100%; }
.modal .legend { font-weight: 700; font-size: 17px; }
.modal input[type=email] { width: 100%; font: 16px var(--sans); padding: 9px 10px; border: 1px solid var(--ink2); border-radius: 2px; }
.ok { color: var(--ink); } .err { color: var(--red); }

@media (max-width: 1080px) { .plan-body { grid-template-columns: minmax(0, 1fr); }  .titleblock { grid-template-columns: 1fr 1fr; } .titleblock > div { border-bottom: 1px solid var(--rule); } }
@media (max-width: 900px) {
  .hero.home { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'spec' 'body' 'photo'; }
  .swipe { display: block; font-size: 13.5px; color: var(--ink2); margin: 0 0 6px; }
  header nav a.wide { display: none; }
  h1 { font-size: 30px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .summary > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .explain .form { grid-template-columns: 1fr; gap: 14px; }
  .pricing { grid-template-columns: 1fr; }
  .pricing > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  li.sv { grid-template-columns: 40px minmax(0, 1fr); }
  li.sv .mg { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 10px; flex-wrap: wrap; }
  li.sv .why { grid-column: 1 / 3; }
  section.finds summary { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  section.finds .who { text-align: left; }
  ul.idx { columns: 1; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  table.split thead { display: none; }
  table.split tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule2); }
  table.split td { display: block; border: 0; padding: 2px 0; }
  table.split td:first-child { white-space: normal; font-weight: 600; }
  table.plan th.rl { white-space: nowrap; width: 138px; min-width: 138px; max-width: 138px; overflow: hidden; }
  .specimen table.plan th.rl { width: 128px; min-width: 128px; max-width: 128px; }
  table.plan th.rl .sn { min-width: 24px; font-size: 11px; vertical-align: top; }
  table.plan th.rl .nm { max-width: 100px; white-space: normal; display: inline-block; max-height: 2.4em; overflow: hidden; font-size: 12px; line-height: 1.2; vertical-align: top; }
  .specimen table.plan th.rl .nm { max-width: 92px; }
  table.plan td { width: 26px; min-width: 26px; }
  .leadline { font-size: 22px; }
}
@media print { header.site nav, .tool, #actions, .no-print, .cta, figure.person { display: none !important; } body { background: #fff; } li.sv .why { display: block; } }
