/* ===========================
   BASE
=========================== */
body {
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
  color: var(--color-text);
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: normal;
  margin: 0;
  letter-spacing: 0.04em;
}

h2 {
  font-size: 20px;
}

.guidebook-title {
  font-weight: bold;
  margin-top: 4px;
  margin-bottom: 24px;
}

h3 {
  font-size: 14px;
}

a {
  text-decoration: none;
  color: var(--color-text);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 1;
}

.tos-link {
  font-weight: bold;
  color: var(--color-text-muted);
  opacity: 1;
}

.tos-link:hover {
  color: var(--color-text);
}

/* ===========================
   ACCORDION HEADER
=========================== */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--color-surface);
  color: var(--color-link);
  border: none;
  border-left: 8px solid var(--color-accent);
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: pointer;
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: bold;
  margin-top: 0;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.accordion-header:first-of-type {
  margin-top: 0;
}

.accordion-header h2 {
  color: inherit;
  font-weight: bold;
}

.accordion-header:hover {
  background: var(--color-inv-bg);
  color: var(--color-inv-text);
  border-left-color: var(--color-inv-text);
}

.accordion-header[aria-expanded="true"] {
  background: var(--color-accent);
  color: #fff;
  border-left-color: transparent;
}

.accordion-arrow {
  font-size: 0;
  color: inherit;
  flex-shrink: 0;
  margin-left: 8px;
}

.accordion-arrow::before {
  content: '+';
  font-size: 18px;
}

.accordion-header[aria-expanded="true"] .accordion-arrow::before {
  content: '−';
}

/* ===========================
   ACCORDION BODY
=========================== */
.accordion-body {
  background: var(--color-surface);
  box-shadow: 0 0 0 1px transparent;
  overflow: hidden;
  max-height: 0;
  padding: 0 16px;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, box-shadow 0.35s ease;
  box-sizing: border-box;
}

.accordion-body.open {
  opacity: 1;
  padding: 16px;
  box-shadow: 0 0 0 1px var(--color-border);
  margin-bottom: 16px;
}

/* ===========================
   SECTION CONTENT
=========================== */
.section-content {
  padding-top: 12px;
  padding-bottom: 4px;
}

/* ===========================
   LISTS
=========================== */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul ul {
  text-indent: 0;
  padding-left: 24px;
}

ul li {
  margin-bottom: 18px;
}

.table-of-contents li {
  margin-bottom: 6px;
}

.table-of-contents li::before {
  content: "";
}

.file-info-needed li {
  margin-bottom: 3px;
}

/* ===========================
   ORDER PROCESS
=========================== */
.section-note {
  margin-bottom: 24px;
  text-align: center;
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 20px;
  text-align: center;
}

.process a {
  pointer-events: none;
  cursor: default;
  color: var(--color-text);
  opacity: 1;
}

.process img {
  width: 100px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 4px;
  color: var(--purple-300);
  background-color: var(--purple-300);
}

.process-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  height: 40px;
}

.process-info {
  font-size: 16px;
  text-align: center;
  margin-bottom: 24px;
}

/* ===========================
   EXAMPLE BLOCK
=========================== */
.example {
  background-color: var(--color-surface);
  padding: 16px 20px;
  border-left: 3px solid var(--color-border);
  margin-top: 12px;
  margin-bottom: 4px;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}

/* ===========================
   TABLE
=========================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table, th, td {
  border: 1px solid var(--color-border-subtle);
}

th, td {
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
}

th {
  background-color: #f7f7f7;
  font-weight: normal;
  letter-spacing: 0.02em;
}

/* ===========================
   MISC
=========================== */
.breadcrumb {
  font-size: 18px;
}

.separator {
  margin-top: 24px;
  margin-bottom: 24px;
}

.last-updated {
  color: var(--color-text-faint);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-top: 48px;
  margin-bottom: 4px;
}

.note {
  font-style: italic;
  color: var(--color-text-muted);
}

.online-icon {
  width: 20px;
  height: 7px;
  background-color: var(--color-status-online);
  display: inline-block;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 2px;
}

.offline-icon {
  width: 20px;
  height: 7px;
  background-color: var(--color-status-offline);
  display: inline-block;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 2px;
}

.end-note {
  margin-top: 32px;
  padding-top: 16px;
}

.end-note li {
  opacity: 0.45;
  font-size: 13px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
  body {
    padding: 24px 16px;
    font-size: 14px;
  }

  .separator {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  h2 {
    font-size: 16px;
  }

  .section-content {
    margin-left: 0;
  }

  ul ul {
    padding-left: 20px;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    border: 1px solid var(--color-border-subtle);
    margin-bottom: 10px;
  }

  td {
    border-bottom: 1px solid var(--color-border-subtle);
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  td::before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  .changelog-section td {
    border: none;
    border-bottom: 1px solid var(--color-border-subtle);
    position: relative;
    padding-left: 8px;
    text-align: left;
  }

  .file-setup-table td:nth-of-type(1)::before { content: ""; }
  .file-setup-table td:nth-of-type(2)::before { content: "Stickers, Holographic"; }
  .file-setup-table td:nth-of-type(3)::before { content: "Emboss Stickers"; }
  .file-setup-table td:nth-of-type(4)::before { content: "Emboss Holographic"; }
  .file-setup-table td:nth-of-type(5)::before { content: "Spot Holographic"; }
  .file-setup-table td:nth-of-type(6)::before { content: "Emboss Spot Holographic Sticker"; }
}
