/* ---------- title row ---------- */
.title-row {
  position: relative;
  margin-bottom: 8px;
}

.title-row h1 { margin: 0; padding-right: 130px; }

.title-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-actions .share-btn { text-align: center; }

.title-actions .share-btn-solid {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--ink-mid);
}

.title-actions .share-btn-solid:hover { box-shadow: 1px 1px 0 var(--ink-mid); }

@media (max-width: 520px) {
  .title-row h1 { padding-right: 0; }
  .title-actions { position: static; flex-direction: row; margin-top: 12px; }
}

/* ---------- share row ---------- */
.share-row {
  margin: 4px 0 28px;
}

.share-btn {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 16px;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--faint);
  filter: url(#wobble);
  transition: transform 0.08s, box-shadow 0.08s;
  cursor: pointer;
}

.share-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--faint);
}

/* ---------- section block ---------- */
.section-block {
  margin-bottom: 4px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* ---------- checklist item ---------- */
.checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed var(--faint);
  cursor: pointer;
  user-select: none;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cb-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  margin-top: 4px;
  position: relative;
  background: transparent;
  transition: background 0.1s;
}

.checklist-item input[type="checkbox"]:checked ~ .cb-box {
  background: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5 L6 11 L11.5 3.5' stroke='%23f4efe5' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.cb-text {
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  transition: color 0.15s;
}

.checklist-item input[type="checkbox"]:checked ~ .cb-text {
  color: var(--done-text);
}

/* ---------- pattern interrupt ---------- */
.share-interrupt {
  text-align: center;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 28px 24px;
  margin: 40px 0;
  filter: url(#wobble);
}

.share-interrupt p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
}
