/* Route 53, CloudFront and Global Accelerator: the figures on its slides.
   Terminals, JSON and the shared colours are in ../iam.css. */

:root { --r53: #8c4fff; --cf: #8c4fff; --s3c: #3f8624; --ok: #1d8102; --no: #d13212; --net: #ed7100; --aws: #7d3cff; }

.ic { width: 34px; height: 34px; flex: none; }
.ic.sm { width: 22px; height: 22px; vertical-align: middle; }
.term.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.sv-fig { gap: 12px; }

[data-sec="intro"] { --sec: #334155; }
[data-sec="dns"] { --sec: #6d28d9; }
[data-sec="routing"] { --sec: #0369a1; }
[data-sec="health"] { --sec: #be123c; }
[data-sec="acm"] { --sec: #b45309; }
[data-sec="cf"] { --sec: #7c3aed; }
[data-sec="ga"] { --sec: #0f766e; }
[data-sec="compare"] { --sec: #475569; }

/* Tables. */
.tbl { border-collapse: collapse; background: #fff; border: 1px solid var(--sv-line); font-size: 14px; }
.tbl th, .tbl td { padding: 7px 11px; border-top: 1px solid #eef0f3; text-align: left; vertical-align: top; }
.tbl tr:first-child th { border-top: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--sv-ink2); }
.tbl tr:not(:first-child) th { font-weight: 700; }
.tbl code { font: 13px var(--mono); overflow-wrap: anywhere; }

/* Exam questions. */
.pe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pe-q { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 8px; background: #fffbea; border: 1px solid #e8d48a; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.pe-q > b { font-size: 16px; color: #8a6500; }
.pe-q p { margin: 0 0 6px; }
.pe-a, .pe-w { display: grid; grid-template-columns: 1.2em minmax(0, 1fr); gap: 4px; font-size: 13px; }
.pe-a { font-weight: 600; color: #1b5e05; }
.pe-w { color: var(--sv-ink2); }
.pe-q:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* The world map. */
.map { width: 100%; height: auto; background: #f7f9fb; border: 1px solid var(--sv-line); border-radius: 10px; }
.map .lbl { font: 700 14px system-ui, sans-serif; fill: #16191f; paint-order: stroke; stroke: #f7f9fb; stroke-width: 5px; }
.edge-dot { fill: #8c4fff; opacity: .8; }
.reg-dot { fill: #fff; stroke: #232f3e; stroke-width: 2; }
.edge-bg { fill: #fff; stroke: #7d3cff; stroke-width: 2; }
.net-path { stroke: var(--net); stroke-width: 4; stroke-linecap: round; }
.aws-path { fill: none; stroke: var(--aws); stroke-width: 3.5; stroke-linecap: round; }
.person circle:first-child { fill: #fff; stroke: #232f3e; stroke-width: 2; }
.person .head, .person .body { fill: #232f3e; }
.map-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--sv-ink2); }
.map-key span { display: inline-flex; align-items: center; gap: 6px; }
.map-key i { width: 24px; height: 5px; border-radius: 3px; background: var(--c); }
.map-key .k-edge { width: 9px; height: 9px; border-radius: 50%; --c: #8c4fff; }
.map-key .k-reg { width: 10px; height: 10px; border-radius: 2px; background: #fff; border: 2px solid #232f3e; }
.map-key .k-net { --c: var(--net); } .map-key .k-aws { --c: var(--aws); }
.es-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.es { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 8px 12px; }
.es span { display: flex; flex-direction: column; } .es small { color: var(--sv-ink2); font-size: 13px; }

/* One request through the edge. */
.rp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 14px; align-items: center; }
.rp-user { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 30px; background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 12px; }
.rp-user b { font-size: 15px; } .rp-user code { font: 12px var(--mono); overflow-wrap: anywhere; }
.rp-mid { display: flex; flex-direction: column; gap: 8px; }
.rp-box { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; background: #fff; border: 2px solid var(--sv-line); border-radius: 10px; padding: 8px 12px; }
.rp-box .ic { grid-row: 1 / 3; } .rp-box small { color: var(--sv-ink2); font-size: 12.5px; }
.rp-box.dns, .rp-box.edge { border-color: #8c4fff; background: #f7f3ff; }
.rp-region { position: relative; border: 2px dashed #0972d3; border-radius: 12px; padding: 26px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.rp-region > small { position: absolute; top: 5px; left: 12px; font-size: 12.5px; font-weight: 600; color: var(--sv-ink2); }
.rp-step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--sv-ink2); }
.n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sec, #334155); color: #fff; font-weight: 700; font-size: 13px; flex: none; }

/* A DNS lookup. */
.dl { width: 100%; max-height: 100%; }
.dl-c, .dl-srv { fill: #fff; stroke: #c6ccd2; stroke-width: 1.5; }
.dl-srv.r53 { stroke: #8c4fff; stroke-width: 2.5; fill: #f7f3ff; }
.dl-res { fill: #f2f3f3; stroke: #545b64; stroke-width: 2; }
.dl-t { font: 600 14px system-ui, sans-serif; fill: #16191f; }
.dl-s { font: 12.5px system-ui, sans-serif; fill: #545b64; }
.dl-q { stroke: #545b64; stroke-width: 2; }
.dl-a { stroke: #0972d3; stroke-width: 2; }
.dl-m { font: 12.5px var(--mono); fill: #545b64; } .dl-m.a { fill: #0972d3; font-weight: 600; }

/* A hosted zone. */
.hz { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 2fr); gap: 12px; align-items: center; }
.hz-reg { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 10px; font-size: 13px; }
.hz-reg small { color: var(--sv-ink2); font-weight: 600; } .hz-reg code { font: 12px var(--mono); }
.hz-arrow { font-size: 13px; font-weight: 600; color: #6d28d9; white-space: nowrap; }
.hz-zone { background: #f7f3ff; border: 2px solid #8c4fff; border-radius: 10px; padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hz-h { display: flex; gap: 10px; align-items: center; } .hz-h span { display: flex; flex-direction: column; } .hz-h code { font: 12.5px var(--mono); }
.rr { width: 100%; } .rr tr.auto td { color: var(--sv-ink2); background: #fafafa; }
.hz-note { font-size: 12.5px; color: var(--sv-ink2); }

/* Alias and CNAME. */
.al { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.al-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.al-col ul { margin: 0; padding-left: 20px; font-size: 14px; }
.al-h { font-size: 15px; padding: 3px 10px; border-radius: 6px; align-self: flex-start; }
.al-h.cname { background: #f2f3f3; } .al-h.alias { background: #ede4ff; color: #5b21b6; }

/* Routing policies. */
.pol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pol-c { background: #fff; border: 1px solid var(--sv-line); border-top: 5px solid #0369a1; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 90px; }
.pol-c span { font-size: 13.5px; color: var(--sv-ink2); }
.pol-ip { border-top-color: #8a8f96; }
.wt { display: flex; flex-direction: column; gap: 12px; }
.wt-bar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font: 600 13px system-ui; color: #fff; }
.wt-bar span { display: grid; place-items: center; } .wt-bar .b { background: #0972d3; } .wt-bar .g { background: #1d8102; }
.wt-q { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.wt-q small { color: var(--sv-ink2); margin-right: 6px; }
.wt-q i { width: 24px; height: 24px; border-radius: 50%; } .wt-q i.b { background: #0972d3; } .wt-q i.g { background: #1d8102; }
.wt-f { font: 13.5px var(--mono); color: var(--sv-ink2); }
.lt-l { stroke-width: 2; opacity: .55; } .lt-l.a { stroke: #0972d3; } .lt-l.b { stroke: #c2410c; } .lt-l.c { stroke: #1d8102; }
.person.a circle:first-child { stroke: #0972d3; } .person.a .head, .person.a .body { fill: #0972d3; }
.person.b circle:first-child { stroke: #c2410c; } .person.b .head, .person.b .body { fill: #c2410c; }
.person.c circle:first-child { stroke: #1d8102; } .person.c .head, .person.c .body { fill: #1d8102; }
.lt-r { stroke: #fff; stroke-width: 2; } .lt-r.a { fill: #0972d3; } .lt-r.b { fill: #c2410c; } .lt-r.c { fill: #1d8102; }

.fo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fo-st { background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.fo-st > small { font-weight: 600; color: var(--sv-ink2); }
.fo-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 2px solid var(--sv-line); border-radius: 8px; padding: 6px 10px; }
.fo-row span { display: flex; flex-direction: column; } .fo-row code { font: 12px var(--mono); }
.fo-row.on { border-color: #0972d3; background: #f0f7fc; } .fo-row.off { opacity: .5; }
.fo-row em { font-style: normal; font-weight: 600; font-size: 13px; } em.ok { color: var(--ok); } em.no { color: var(--no); }
.fo-ans { font-size: 14px; }

.geo { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.geo-c { background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.geo-c small { color: var(--sv-ink2); font-size: 13px; }
.geo-c svg { width: 100%; height: auto; }
.gp-band { fill: #f2f3f3; } .gp-a { fill: #dbeafe; stroke: #0972d3; } .gp-b { fill: #ffedd5; stroke: #c2410c; }
.geo .lbl { font: 600 13px system-ui; fill: #16191f; } .gp-t { font: 12.5px system-ui; fill: #545b64; }
.gp-f { font: 12.5px var(--mono); color: var(--sv-ink2); }

.mv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.mv-recs { display: flex; flex-direction: column; gap: 6px; }
.mv-r { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--sv-line); border-left: 4px solid var(--ok); border-radius: 6px; padding: 6px 10px; font-size: 13.5px; }
.mv-r code { font: 13px var(--mono); } .mv-r.bad { border-left-color: var(--no); color: var(--no); }
.choose td:last-child, .choose td { font-weight: 600; }

/* Health checks. */
.hc-p { fill: none; stroke: #1d8102; stroke-width: 2.5; } .hc-p.bad { stroke: var(--no); stroke-dasharray: 5 5; }
.hc-c { fill: #1d8102; stroke: #fff; stroke-width: 2; } .hc-c.bad { fill: var(--no); }
.hks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hk { background: #fff; border: 1px solid var(--sv-line); border-top: 5px solid #be123c; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.hk > span { font-size: 13.5px; color: var(--sv-ink2); }
.hk-d { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; background: #fafafa; border-radius: 6px; padding: 8px; }
.hk-d code { font: 12px var(--mono); }
.hk-d.tree { flex-direction: column; align-items: flex-start; }
.hk-d.tree span { padding: 2px 8px; border-radius: 6px; background: #ecfdf3; } .hk-d.tree .par { background: #fff1f2; font-weight: 600; }
.hk-d.tree .bad { background: #fee2e2; color: var(--no); }

/* Certificates. */
.ct { display: grid; grid-template-columns: auto auto auto; grid-template-areas: "b l a" "c c c"; gap: 12px; align-items: center; justify-content: start; }
.ct-b { grid-area: b; } .ct-link { grid-area: l; } .ct-alb { grid-area: a; } .ct-card { grid-area: c; }
.ct-b, .ct-alb { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 10px 16px; font-size: 28px; }
.ct-b b, .ct-alb b { font-size: 15px; } .ct-b small, .ct-alb small { font-size: 12.5px; color: var(--sv-ink2); }
.ct-link { font-size: 22px; color: var(--ok); display: flex; flex-direction: column; align-items: center; } .ct-link span { font-size: 12.5px; }
.ct-card { background: #fffaf0; border: 2px solid #b45309; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.ct-h { display: flex; gap: 8px; align-items: center; }
.kv { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
.kv span { color: var(--sv-ink2); } .kv code { font: 12.5px var(--mono); overflow-wrap: anywhere; }
.dv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: start; }
.dv-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dv-steps li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.cr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "cf cf" "a b"; gap: 12px; }
.cr-cf { grid-area: cf; display: flex; align-items: center; gap: 10px; background: #f7f3ff; border: 2px solid #8c4fff; border-radius: 10px; padding: 8px 12px; }
.cr-cf small { color: var(--sv-ink2); }
.cr-reg { position: relative; border: 2px dashed #0972d3; border-radius: 12px; padding: 28px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.cr-reg > small { position: absolute; top: 5px; left: 12px; font: 600 13px var(--mono); color: var(--sv-ink2); }
.cr-cert, .cr-res { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 6px 10px; }
.cr-cert { border: 2px solid #b45309; } .cr-cert code { font: 12.5px var(--mono); }
.cr-use { font-size: 13px; font-weight: 600; color: #7c3aed; }

/* CloudFront. */
.ds { width: 100%; height: auto; }
.ds-edge { fill: #f7f3ff; stroke: #8c4fff; stroke-width: 2; } .ds-org { fill: #fff; stroke: #0972d3; stroke-width: 2; stroke-dasharray: 6 4; }
.ds-t { font: 600 14px system-ui, sans-serif; fill: #16191f; } .ds-s { font: 12.5px system-ui, sans-serif; fill: #1d8102; }
.ds-s.miss { fill: #c2410c; } .ds-org ~ .ds-s { fill: #16191f; }
.ds .lbl { font: 12.5px system-ui; fill: #545b64; }
.ds-q { stroke: #545b64; stroke-width: 2; } .ds-o { fill: none; stroke: #c2410c; stroke-width: 2.5; stroke-dasharray: 6 4; }
.bh { display: flex; flex-direction: column; gap: 12px; }
.bh-t td { vertical-align: middle; }
.bh-req { display: flex; flex-direction: column; gap: 4px; font-size: 14px; } .bh-req code { font: 13px var(--mono); }
.ca-pol { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.ca-pol span { background: #fff; border: 1px solid var(--sv-line); border-radius: 6px; padding: 3px 8px; }
.oac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: start; }
.oac-flow { display: flex; flex-direction: column; gap: 10px; }
.of { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--sv-line); border-left: 5px solid var(--ok); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.of.no { border-left-color: var(--no); } .of.no b { color: var(--no); } .of.ok b { color: var(--ok); }
.json { white-space: pre-wrap; overflow-wrap: anywhere; }
.sg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sg-c { background: #fff; border: 1px solid var(--sv-line); border-top: 5px solid #7c3aed; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sg-c > span { font-size: 13.5px; color: var(--sv-ink2); }
.sg-u { font: 12px/1.5 var(--mono); overflow-wrap: anywhere; background: #fafafa; border-radius: 6px; padding: 6px 8px; }
.sg-u em { font-style: normal; color: #7c3aed; font-weight: 600; }
.sg-flow { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13.5px; }
.sg-flow span { display: flex; gap: 8px; background: #f7f3ff; border-radius: 8px; padding: 8px; }
.sg-flow i { font-style: normal; font-weight: 700; color: #7c3aed; }

/* Global Accelerator. */
.ga-ips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #f0fdfa; border: 2px solid #0f766e; border-radius: 10px; padding: 8px 12px; }
.ga-ips code { font: 700 14px var(--mono); background: #fff; border-radius: 6px; padding: 2px 8px; } .ga-ips small { color: var(--sv-ink2); }
.ga { display: flex; flex-direction: column; gap: 12px; }
.ga-acc { display: flex; align-items: center; gap: 10px; background: #f0fdfa; border: 2px solid #0f766e; border-radius: 10px; padding: 8px 12px; align-self: flex-start; }
.ga-acc small { color: var(--sv-ink2); }
.ga-gs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ga-g { position: relative; border: 2px dashed #0972d3; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ga-gh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ga-gh b { font-family: var(--mono); }
.dial { width: 120px; height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; } .dial i { display: block; height: 100%; background: #0f766e; }
.ga-gh small { color: var(--sv-ink2); }
.ga-ep { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 6px 10px; font-size: 13.5px; }
.ga-ep code { font: 13px var(--mono); flex: 1; } .ga-ep span { color: var(--sv-ink2); }
.ts th img, .ts th .ic { vertical-align: middle; }
.ts, .pa { font-size: 13.5px; }

@media (max-width: 860px) {
  .rp, .hz, .al, .fo, .geo, .mv, .dv, .oac, .sg2, .ga-gs, .hks, .es-row { grid-template-columns: 1fr; }
  .pol { grid-template-columns: 1fr 1fr; }
  .pe { grid-template-columns: 1fr; }
  .cr { grid-template-columns: 1fr; grid-template-areas: "cf" "a" "b"; }
  .sg-flow { grid-template-columns: 1fr; }
  .ct { grid-template-columns: 1fr; grid-template-areas: "b" "l" "a" "c"; }
  .tbl { font-size: 13px; }
}
.rt tr > :first-child { white-space: nowrap; }
