/* Terms and privacy pages: plain, readable on a phone. */
:root {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f6f1fb;
  color: #3b2a4a;
  font: 15px/1.75 -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 18px 60px;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}
.brand a {
  color: #9a7bc0;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  text-decoration: none;
}
h1 {
  font-size: 22px;
  margin: 4px 0;
}
h2 {
  font-size: 16px;
  margin: 28px 0 6px;
}
.meta {
  color: #8a8094;
  font-size: 13px;
  margin-top: 0;
}
ul,
ol {
  padding-left: 22px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  border: 1px solid #e6dff0;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #f6f1fb;
}
.foot {
  margin-top: 36px;
  color: #8a8094;
  font-size: 14px;
}
.copy {
  margin-top: 20px;
  color: #a79fb0;
  font-size: 13px;
}
a {
  color: #7c4fd6;
}

/* Guide pages (guide/*.html, faq.html) */
figure {
  margin: 16px 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(58, 47, 39, 0.12);
}
figure.phone img {
  max-width: 300px;
}
figcaption {
  color: #8a8094;
  font-size: 13px;
  margin-top: 6px;
}
pre {
  background: #2d2438;
  color: #f4ecff;
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace;
}
.cta {
  display: inline-block;
  margin: 8px 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ff7a59;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.cards {
  list-style: none;
  padding: 0;
}
.cards li {
  border: 1px solid #e6dff0;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}
.langs {
  font-size: 13px;
  color: #8a8094;
}
details {
  border-bottom: 1px solid #eee6f5;
  padding: 10px 0;
}
summary {
  font-weight: 700;
  cursor: pointer;
}
/* Japanese and Chinese have no spaces between words: keep-all would never break a line. */
html[lang^="ja"] body,
html[lang^="zh"] body {
  word-break: normal;
  line-break: strict;
}
pre,
code {
  word-break: normal;
}
body {
  overflow-wrap: anywhere;
}

/* Generated pages: idea rooms, 가구 도감 */
.cols {
  columns: 2;
  column-gap: 24px;
}
.cards.ideas img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 6px;
}
/* Room pictures side by side (the /make/ pages): as many as fit, `--card` the narrowest one. */
.cards.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card, 150px), 1fr));
  gap: 10px;
}
.cards.grid li {
  margin: 0;
}
.items {
  list-style: none;
  padding: 0;
}
.items li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0eaf6;
  scroll-margin-top: 12px;
}
.items img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f6f1fb;
}
.items li:target {
  background: #fff6e8;
}
.tags,
h2 small {
  color: #8a8094;
}
h4 {
  margin: 18px 0 2px;
  font-size: 15px;
}
.cards.tuts img {
  float: right;
  width: 96px;
  height: auto;
  margin: 0 0 6px 10px;
  border-radius: 10px;
}
.cards.tuts li {
  overflow: hidden;
}
.tip {
  background: #f6f1fb;
  border-radius: 10px;
  padding: 8px 12px;
}
h3 small {
  font-weight: 400;
}

#stats-switch {
  margin-left: 6px;
  padding: 4px 12px;
  border: 1px solid #9a7bc0;
  border-radius: 999px;
  background: #fff;
  color: #6b4a94;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
