/* json-camera, 2013.
   Light by default, rounded corners, soft shadows, gentle gradients, Georgia
   italics for the subheads. The web when depth was still allowed. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --page:      #f4f5f7;
  --card:      #ffffff;
  --ink:       #2f3640;
  --ink-soft:  #5a6472;
  --ink-faint: #8b95a3;
  --rule:      #dfe3e8;
  --rule-soft: #edf0f3;

  --blue:      #2b8ae0;
  --blue-dark: #1f6fb8;
  --green:     #35a86b;
  --green-dark:#2a8a56;
  --amber:     #e8a33d;
  --rose:      #d9534f;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: Menlo, Monaco, Consolas, "Courier New", monospace;

  --r:  6px;
  --r-lg: 8px;
  --shadow:    0 1px 3px rgba(45, 55, 70, .10), 0 1px 2px rgba(45, 55, 70, .06);
  --shadow-lg: 0 4px 14px rgba(45, 55, 70, .12), 0 1px 3px rgba(45, 55, 70, .08);
  --gut: 26px;
  --max: 1080px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .92em; background: var(--rule-soft);
  padding: 2px 5px; border-radius: 3px; color: #46506080; color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-soft); }

h1, h2, h3 { color: var(--ink); }
.lede { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

/* -- masthead ------------------------------------------------------------- */

.nav {
  background: linear-gradient(to bottom, #ffffff, #f7f8fa);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(45,55,70,.04);
  position: sticky; top: 0; z-index: 40;
}
.nav-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gut);
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { font-family: var(--serif); font-size: 21px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--blue); }
.brand b { color: var(--green); font-weight: 700; }
.brand i { font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--ink-soft); font-size: 14px; padding: 8px 13px;
  border-radius: var(--r); transition: background .13s ease, color .13s ease;
}
.nav-links a:hover { background: var(--rule-soft); color: var(--ink); text-decoration: none; }
.nav-links a.on { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }

/* -- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); padding: 13px 24px;
  border-radius: var(--r); border: 1px solid var(--green-dark);
  background: linear-gradient(to bottom, #43bd7c, var(--green));
  color: #fff; cursor: pointer; text-shadow: 0 -1px 0 rgba(0,0,0,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow);
  transition: filter .13s ease;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; color: #fff; }
.btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.16); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn-blue { border-color: var(--blue-dark); background: linear-gradient(to bottom, #3c9ceb, var(--blue)); }
.btn-plain {
  background: linear-gradient(to bottom, #ffffff, #f2f4f7); color: var(--ink);
  border-color: #c9d0d8; text-shadow: none;
}
.btn-plain:hover { color: var(--ink); }
.btn-lg { font-size: 17px; padding: 16px 34px; }
.btn-sm { font-size: 13px; padding: 8px 14px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}

/* -- jumbotron ------------------------------------------------------------ */

.jumbo {
  background: linear-gradient(to bottom, #ffffff, #eef1f5);
  border-bottom: 1px solid var(--rule);
  padding: 74px 0 66px; text-align: center;
}
.jumbo h1 {
  margin: 0 0 16px; font-family: var(--serif); font-weight: normal;
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1.15; letter-spacing: -.01em;
}
.jumbo h1 em { color: var(--green); font-style: italic; }
.jumbo p {
  margin: 0 auto 30px; max-width: 60ch; font-size: 19px; color: var(--ink-soft);
}
.jumbo .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* -- sections ------------------------------------------------------------- */

.section { padding: 62px 0; }
.section.tint { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section > .wrap > h2 {
  margin: 0 0 10px; font-family: var(--serif); font-weight: normal;
  font-size: clamp(26px, 3.4vw, 36px); text-align: center;
}
.section > .wrap > p.sub {
  margin: 0 auto 44px; max-width: 62ch; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft);
}
.section.left > .wrap > h2, .section.left > .wrap > p.sub { text-align: left; margin-left: 0; }

/* -- cards ---------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 26px 24px; box-shadow: var(--shadow); transition: box-shadow .16s ease, transform .16s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card .ico {
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: linear-gradient(to bottom, #eaf4fd, #dbeafb); color: var(--blue);
  border: 1px solid #cfe3f7;
}
.card .ico.g { background: linear-gradient(to bottom, #e7f7ee, #d8f0e3); color: var(--green); border-color: #c9e8d7; }
.card .ico.a { background: linear-gradient(to bottom, #fdf3e2, #fbead0); color: #c98a24; border-color: #f2ddb9; }
.card h3 { margin: 0 0 9px; font-size: 17.5px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.7px; }
.card p + p { margin-top: 10px; }

/* numbered steps */
.card .num {
  font-family: var(--serif); font-style: italic; font-size: 30px;
  color: var(--green); line-height: 1; margin-bottom: 12px;
}

/* -- stat strip ----------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow);
}
.stat .n { font-family: var(--serif); font-size: clamp(25px, 3.2vw, 34px); color: var(--green); line-height: 1.1; }
.stat .t { font-size: 13.5px; color: var(--ink-soft); margin-top: 7px; }

/* -- tables --------------------------------------------------------------- */

.tablecard {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.tablecard > h3 {
  margin: 0; padding: 16px 22px; font-size: 15.5px; font-weight: 600;
  background: linear-gradient(to bottom, #fbfcfd, #f4f6f8); border-bottom: 1px solid var(--rule);
}
.tablecard .foot {
  padding: 14px 22px; border-top: 1px solid var(--rule); background: #fbfcfd;
  font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 14.5px;
}
.tablescroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.6px; }
th, td { padding: 13px 22px; text-align: left; border-top: 1px solid var(--rule-soft); }
thead th {
  border-top: 0; border-bottom: 1px solid var(--rule); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 600;
}
tbody tr:nth-child(even) { background: #fafbfc; }
td.n, th.n { text-align: right; font-family: var(--mono); font-size: 13.6px; }
.good { color: var(--green); font-weight: 600; }
.bad  { color: var(--rose); font-weight: 600; }
.win  { background: #f2faf5 !important; }

/* -- definition rows ------------------------------------------------------ */

.deflist { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.deflist > div { display: grid; grid-template-columns: 230px 1fr; border-top: 1px solid var(--rule-soft); }
.deflist > div:first-child { border-top: 0; }
.deflist dt { padding: 20px 22px; font-weight: 600; background: #fbfcfd; border-right: 1px solid var(--rule-soft); }
.deflist dd { margin: 0; padding: 20px 22px; color: var(--ink-soft); font-size: 14.7px; }
.deflist dd b { color: var(--ink); }

/* -- code ----------------------------------------------------------------- */

.snip { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden; }
.snip-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 18px; background: linear-gradient(to bottom, #fbfcfd, #f4f6f8);
  border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.snip pre { margin: 0; padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.2px; line-height: 1.7; color: #3b4654; }
.snip .k { color: #b0248a; }
.snip .s { color: var(--green-dark); }
.snip .c { color: var(--ink-faint); font-style: italic; }
.copy {
  background: linear-gradient(to bottom, #ffffff, #f2f4f7); border: 1px solid #c9d0d8;
  border-radius: 4px; color: var(--ink-soft); font: 600 11.5px/1 var(--sans);
  text-transform: uppercase; letter-spacing: .05em; padding: 6px 11px; cursor: pointer;
}
.copy:hover { color: var(--ink); }
.copy.done { color: var(--green); border-color: #a8d8bf; }

/* -- callouts ------------------------------------------------------------- */

.callout {
  border-radius: var(--r-lg); padding: 20px 22px; border: 1px solid;
  background: #fff; box-shadow: var(--shadow); font-size: 15px;
}
.callout b { display: block; margin-bottom: 5px; font-size: 15.5px; }
.callout.info { border-color: #cfe3f7; background: linear-gradient(to bottom, #f7fbff, #eff7fe); }
.callout.info b { color: var(--blue-dark); }
.callout.warn { border-color: #f2ddb9; background: linear-gradient(to bottom, #fffdf7, #fdf6e9); }
.callout.warn b { color: #b8801f; }
.callout.ok   { border-color: #c9e8d7; background: linear-gradient(to bottom, #f7fdfa, #eef9f3); }
.callout.ok b { color: var(--green-dark); }
.callout p { margin: 0; color: var(--ink-soft); }
.callout p + p { margin-top: 9px; }

/* -- app pages ------------------------------------------------------------ */

.page-head { background: linear-gradient(to bottom, #ffffff, #f2f4f7);
  border-bottom: 1px solid var(--rule); padding: 44px 0 38px; }
.page-head h1 { margin: 0 0 10px; font-family: var(--serif); font-weight: normal;
  font-size: clamp(28px, 4vw, 40px); }
.page-head p { margin: 0; max-width: 64ch; color: var(--ink-soft); font-size: 17px; }

.app { padding: 34px 0 74px; }
.cols { display: grid; grid-template-columns: 350px 1fr; gap: 26px; align-items: start; }

.panel { background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-hd {
  padding: 14px 20px; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 14px;
  background: linear-gradient(to bottom, #fbfcfd, #f4f6f8);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-soft);
}
.panel-bd { padding: 20px; }

.drop {
  border: 2px dashed #c3ccd6; border-radius: var(--r-lg); background: #fafbfc;
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.drop:hover { border-color: var(--blue); background: #f6faff; }
.drop.hot { border-color: var(--green); background: #f2fbf6; }
.drop .big { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.drop .small { font-size: 13.5px; color: var(--ink-soft); }
.drop input { display: none; }

/* `hidden` is only display:none at low specificity, so any later display rule
   silently beats it. This bit the file chip: it showed as an empty box. */
[hidden] { display: none !important; }

.picked { margin-top: 13px; padding: 11px 14px; border: 1px solid var(--rule);
  border-radius: var(--r); background: #fbfcfd; display: flex;
  align-items: center; justify-content: space-between; gap: 12px; }
.picked .nm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked .sz { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }

.field { margin-top: 20px; }
.field > label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
select {
  width: 100%; padding: 10px 12px; border: 1px solid #c9d0d8; border-radius: var(--r);
  background: #fff; color: var(--ink); font: 14px var(--sans);
}
.segment { display: flex; border: 1px solid #c9d0d8; border-radius: var(--r); overflow: hidden; }
.segment label { flex: 1; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: block; text-align: center; padding: 10px 8px; cursor: pointer;
  font-size: 13.5px; color: var(--ink-soft); background: linear-gradient(to bottom,#fff,#f5f7f9);
  border-left: 1px solid #dfe3e8; }
.segment label:first-child span { border-left: 0; }
.segment input:checked + span {
  background: linear-gradient(to bottom, #3c9ceb, var(--blue)); color: #fff; font-weight: 600;
  text-shadow: 0 -1px 0 rgba(0,0,0,.12);
}
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.3px; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--blue); }
.hint { font-size: 13px; color: var(--ink-faint); margin-top: 8px; line-height: 1.55;
  font-family: var(--serif); font-style: italic; }

.empty {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 70px 30px; text-align: center; color: var(--ink-faint);
  font-family: var(--serif); font-style: italic; font-size: 16px; box-shadow: var(--shadow);
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.compare.solo { grid-template-columns: 1fr; }
.shot { background: #fff; }
.shot .cap { padding: 10px 14px; font-size: 12.8px; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--rule-soft); }
.shot .cap b { color: var(--green); }
.shot img { width: 100%; height: auto; background: #eef1f5; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cellstat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow); }
.cellstat .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 600; }
.cellstat .v { font-family: var(--serif); font-size: 26px; margin-top: 7px; }
.cellstat .v.good { color: var(--green); }
.cellstat .s { font-size: 12.8px; color: var(--ink-faint); margin-top: 4px; }

.table-scroll { overflow-x: auto; }
tr.hi td { background: #f2faf5; font-weight: 600; }

pre.code { margin: 0; padding: 18px; background: #fbfcfd; border: 1px solid var(--rule);
  border-radius: var(--r); font-family: var(--mono); font-size: 12.8px; line-height: 1.7;
  color: var(--ink-soft); overflow-x: auto; max-height: 340px; }
pre.code .s { color: var(--green-dark); }

details.disclose { background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow); }
details.disclose > summary { padding: 14px 20px; cursor: pointer; font-weight: 600;
  font-size: 14px; color: var(--ink-soft); list-style: none; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::after { content: " +"; color: var(--green); }
details.disclose[open] > summary::after { content: " \2212"; }
details.disclose > summary:hover { color: var(--ink); }
details.disclose .inner { padding: 0 20px 20px; }

.stack > * + * { margin-top: 22px; }
.alert { border-radius: var(--r-lg); padding: 18px 20px; border: 1px solid #edc9c7;
  background: linear-gradient(to bottom,#fffafa,#fdf1f1); font-size: 14.6px; box-shadow: var(--shadow); }
.alert b { display: block; margin-bottom: 4px; color: var(--rose); }
.info { border-radius: var(--r-lg); padding: 15px 18px; border: 1px solid #cfe3f7;
  background: linear-gradient(to bottom,#f7fbff,#eff7fe); font-size: 14.4px; color: var(--ink-soft); }

.busy { display: flex; align-items: center; gap: 13px; padding: 24px; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow);
  font-size: 14.5px; color: var(--ink-soft); }
.spin { width: 16px; height: 16px; border: 2px solid var(--rule); border-top-color: var(--green);
  border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.bar { height: 4px; border-radius: 2px; background: var(--rule-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); width: 30%; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

/* -- footer --------------------------------------------------------------- */

.foot { background: #fff; border-top: 1px solid var(--rule); padding: 40px 0 52px; margin-top: 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: flex-start; }
.foot p { margin: 0 0 7px; color: var(--ink-faint); font-size: 13.5px; max-width: 54ch; }
.foot .by { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.foot .by a { font-style: normal; font-weight: 600; }
.foot-links { display: flex; gap: 20px; font-size: 13.8px; }

/* -- responsive ----------------------------------------------------------- */

@media (max-width: 940px) {
  .cols { grid-template-columns: 1fr; }
  .cards, .cards.two { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .deflist > div { grid-template-columns: 1fr; }
  .deflist dt { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding-bottom: 12px; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  .jumbo { padding: 52px 0 46px; }
  .section { padding: 44px 0; }
  .cards, .cards.two, .stats, .grid-4 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .nav-links a { padding: 7px 9px; font-size: 13px; }
  .brand { font-size: 18px; }
  .jumbo .actions .btn { width: 100%; }
}
