/* Approved module design, limited to the refined cottage's three home cards. */
body[data-home-theme="bookmark"] #home {
  --cottage-text-scale: 1;
}
:root[data-text-size="large"] body[data-home-theme="bookmark"] #home {
  --cottage-text-scale: 1.2;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) {
  position: relative;
  border: 12px solid transparent;
  border-image: url('assets/cottage-sections-v29.7/frame.webp') 176 / 48px / 0 stretch;
  border-radius: 18px;
  padding: 14px 13px 15px;
  margin: 0 0 26px;
  background: linear-gradient(var(--paper-wash), var(--paper-wash)),
    url('assets/cottage-sections-v29.7/paper.webp') center / 1400px 1400px;
  /* Position and size the image from the outer rim, not the padded content. */
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: 0 5px 0 #a7804433, 0 10px 16px #62431d12;
  overflow: visible;
}
body[data-home-theme="bookmark"] #home #travel-card {
  --paper-wash: #e7efd7c2;
  --module-button: #607a50;
  margin-top: 24px;
}
body[data-home-theme="bookmark"] #home #daily-companionship {
  --paper-wash: #f7e4dbbd;
  --module-button: #98665b;
}
body[data-home-theme="bookmark"] #home #task-board {
  --paper-wash: #f5e9c9b8;
  --module-button: #89713c;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board)::before {
  display: none;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) :is(.daily-heading, .travel-heading) {
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
  padding: 1px 0 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--module-button) 22%, transparent);
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) :is(.daily-heading, .travel-heading)>div:first-child {
  min-width: 0;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) .notice-heading {
  gap: 7px;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) :is(.notice-heading h2, .travel-heading>div>h2) {
  position: relative;
  font-size: calc(17px * var(--cottage-text-scale));
  line-height: 1.55;
  letter-spacing: 0;
  color: #5d4028;
  font-weight: 650;
  padding: 7px 8px 7px 10px;
  margin: 7px 0 0;
  border: 1px solid #c9a267;
  border-radius: 7px;
  background: linear-gradient(9deg, transparent 48%, #fff3 49%, #fff0 62%), linear-gradient(#f4db9f, #eac68e);
  box-shadow: inset 0 1px #fff5d4, 0 2px 0 #ad7e4438;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) :is(.notice-heading h2, .travel-heading>div>h2)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 3px;
  background: #a27639;
  box-shadow: 0 1px #fff5cb;
  border-radius: 50%;
}
body[data-home-theme="bookmark"] #home #travel-card .travel-heading h2 {
  font-size: calc(16px * var(--cottage-text-scale));
  display: inline-block;
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-home-theme="bookmark"] #home #travel-card:not(.is-travelling) .travel-heading .notice-heading h2 {
  padding-right: 30px;
}
body[data-home-theme="bookmark"] #home #travel-card:not(.is-travelling) .travel-heading .notice-heading h2::after {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  margin: 0;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) .notice-heading .notice-trigger {
  margin: 7px 0 0;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship) :is(.travel-stamp, .companionship-status) {
  background: #fffbec9c;
  border: 1px solid color-mix(in srgb, var(--module-button) 22%, transparent);
  box-shadow: 0 2px 0 #8c6e2910;
  color: var(--module-button);
  padding: 7px 8px;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) :is(.companionship-row, .travel-rules-details, .task-row) {
  border-color: color-mix(in srgb, var(--module-button) 21%, transparent);
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) :is(.companionship-footer>p, .companionship-row p, .task-period-note, .task-copy p) {
  color: #7c8065;
}
body[data-home-theme="bookmark"] #home #travel-card:not(.is-travelling)>p {
  color: #7c8065;
}
body[data-home-theme="bookmark"] #home #task-board .task-tabs {
  background: #e6d6b494;
  border: 1px solid #cdb78470;
  border-radius: 9px;
  padding: 3px;
}
body[data-home-theme="bookmark"] #home #task-board .task-tabs button {
  font-size: calc(11px * var(--cottage-text-scale));
  padding: 7px 8px;
}
body[data-home-theme="bookmark"] #home #task-board .task-tabs button.selected {
  background: #fff9e6;
  color: #7c6333;
  box-shadow: 0 2px 3px #7e673c18;
}
body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) :is(.small-button, .task-prize button) {
  border: 1px solid #00000009;
  box-shadow: inset 0 1px #fff2, 0 2px 0 #48412520;
}
body[data-home-theme="bookmark"] #home #task-board .task-prize button:disabled {
  background: #eee5cd;
  color: #9a947b;
  box-shadow: none;
}
body[data-home-theme="bookmark"] #home #task-board .task-track {
  background: #e2d7b8;
}
/* Active trips keep their destination backdrop under the new timber rim. */
body[data-home-theme="bookmark"] #home #travel-card.is-travelling {
  background-color: #edf1e3;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%, 100% auto;
}
@media (max-width: 375px) {
  body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) {
    padding-inline: 8px;
    border-width: 10px;
  }
  body[data-home-theme="bookmark"] #home :is(#travel-card, #daily-companionship, #task-board) .notice-heading h2 {
    font-size: calc(16px * var(--cottage-text-scale));
  }
  body[data-home-theme="bookmark"] #home #travel-card .travel-heading h2 {
    font-size: calc(15px * var(--cottage-text-scale));
  }
}
