/* Shared responsive stylesheet for upasani.org */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #b1c6c0 url(FAQ_files/Mod_background.jpg) repeat;
  color: #515151;
  font: 16px/1.55 Helvetica, Arial, sans-serif;
}
a { color: #1284ba; text-decoration: none; }
a:hover { color: #6b6b6b; text-decoration: underline; }
.page {
  max-width: 684px;
  margin: 10px auto 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.banner {
  background: #e77664;
  margin: 15px 15px 0;
  padding: 18px 20px 22px;
}
.banner .title {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 14vw, 5.4rem);
  font-weight: 200;
  line-height: 1.05;
  text-shadow: 0 3px 5px rgba(0,0,0,.35);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0 15px;
  padding: 6px 4px;
  background: #e77664;
  list-style: none;
  font-size: .88rem;
}
.nav a { display: block; padding: 6px 10px; color: #000; }
.nav a:hover { color: #463c3c; text-decoration: none; }
.nav .current a { color: #fff; }
.content { padding: 8px 20px 28px; }
h1.heading {
  margin: 14px 0 12px;
  color: #1284ba;
  font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  font-weight: 200;
  line-height: 1.15;
  text-shadow: 0 2px 3px rgba(0,0,0,.18);
}
h2 { margin: 28px 0 6px; font-size: 1.15rem; color: #444; }
h3 { margin: 24px 0 4px; font-size: 1.02rem; color: #1284ba; }
h4 { margin: 16px 0 2px; font-size: 1rem; color: #444; }
p { margin: 8px 0; }
ul { margin: 6px 0; padding-left: 1.4em; }
li { margin: 4px 0; }
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-bottom: 8px; }
.toc h2 { margin-top: 8px; font-size: 1rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0; }
.sitefoot { text-align: center; color: #fff; font-size: .8rem; padding: 0 0 24px; }
@media (max-width: 600px) {
  .page { margin: 0 0 16px; box-shadow: none; }
  .banner, .nav { margin-left: 8px; margin-right: 8px; }
  .content { padding: 4px 14px 24px; }
  .toc { grid-template-columns: 1fr; }
  .nav a { padding: 9px 9px; }
}
@media (max-width: 600px) { .toc > div + div h2 { margin-top: 22px; } }

/* Welcome page */
.hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 14px 0 6px; }
.hero img { display: block; max-width: 100%; height: auto; }
.appbox { flex: 1 1 200px; min-width: 200px; background: #d9e3df; padding: 14px 16px; color: #1284ba; font-style: italic; }
.appbox p { margin: 0 0 6px; }
.appbox ul { list-style: none; margin: 0; padding: 0; }
.appbox li { margin: 2px 0; }
.appbox a { font-weight: 700; }
@media (max-width: 600px) {
  .hero > a, .hero > img { flex: 0 0 100%; }
  .hero img { width: 100%; max-width: 360px; }
}

.sidebar { float: right; width: 150px; margin: 4px 0 12px 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.sidebar img { display: block; max-width: 100%; height: auto; }
.sidebar .portrait { width: 136px; }
.sidebar .phone { width: 142px; }
.sidebar .concert { width: 145px; }
@media (max-width: 600px) {
  .sidebar { width: 108px; margin-left: 12px; gap: 12px; }
  .sidebar .portrait { width: 100px; }
  .sidebar .phone { width: 106px; }
  .sidebar .concert { width: 108px; }
}

.content { display: flow-root; }

.sidebar figure { margin: 0; text-align: right; }
.sidebar figcaption { font-size: 11px; line-height: 1.3; color: #666; margin-top: 4px; }
.sidebar .wide { width: 150px; }
@media (max-width: 600px) { .sidebar .wide { width: 108px; } .sidebar figcaption { font-size: 10px; } }

.side { float: right; clear: right; width: 150px; margin: 4px 0 12px 18px; text-align: right; }
.side img { display: block; margin-left: auto; width: 150px; max-width: 100%; height: auto; }
.side img[alt*="Mixer"] { width: 142px; }
.side figcaption { font-size: 11px; line-height: 1.3; color: #666; margin-top: 4px; }
@media (max-width: 600px) { .side { width: 108px; margin-left: 12px; } .side img { width: 108px; } .side img[alt*="Mixer"] { width: 106px; } .side figcaption { font-size: 10px; } }

.hero-photo { margin: 6px 0 16px; text-align: center; }
.hero-photo img { display: block; margin: 0 auto; width: 320px; max-width: 100%; height: auto; }
.hero-photo figcaption { font-size: 11px; color: #666; margin-top: 4px; }

.side.guru { width: 200px; }
.side.guru img { width: 200px; }
@media (max-width: 600px) { .side.guru { width: 140px; } .side.guru img { width: 140px; } }


/* App pages */
.appbar { display: flex; gap: 16px; align-items: center; margin: 14px 0 4px; }
.appbar p { margin: 2px 0; }
.appicon { flex: none; border-radius: 22%; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.badge { display: block; margin-top: 8px; height: auto; }
h2.quick { margin: 18px 0 4px; }
.toc ul.sub { padding-left: 1.2em; }
.toc ul.sub a { padding: 4px 0; font-size: .95em; }
.sec { display: flow-root; }
.center { text-align: center; }
ul.bul, ul.checks { list-style: none; padding-left: 0; margin: 8px 0; }
ul.bul li, ul.checks li { position: relative; padding-left: 1.5em; margin: 6px 0; }
ul.bul li::before { content: ""; position: absolute; left: .3em; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: #e77664; }
ul.checks li::before { content: ""; position: absolute; left: .32em; top: .38em; width: .3em; height: .6em; border: solid #3f9d6a; border-width: 0 .17em .17em 0; transform: rotate(45deg); }
.side-pair { float: right; clear: right; display: flex; gap: 10px; margin: 4px 0 12px 18px; }
.side-pair img { display: block; width: 112px; height: auto; }
@media (max-width: 600px) { .side-pair { gap: 6px; margin-left: 10px; } .side-pair img { width: 80px; } }
.center img { max-width: 100%; height: auto; }

/* make the whole screenshot clickable (block image inside inline link) */
.side a, .side-pair a, .hero-photo a { display: block; }
.center a { display: inline-block; }

/* keep floated screenshots above positioned list items so clicks reach the link */
.side, .side-pair { position: relative; z-index: 1; }

.side img.portrait { width: 136px; }
@media (max-width: 600px) { .side img.portrait { width: 100px; } }

.backtop { clear: both; height: 0; margin: 26px 0; border-bottom: 1px solid #d3dcd9; }

a.hlink { color: #1284ba; }
a.hlink:hover { color: #6b6b6b; text-decoration: underline; }
