/* Travel notebook, guide illustrations and free time in the planner */
.trip-cover {
  min-width: 0;
  isolation: isolate;
  padding: 0 .98rem .95rem;
  border: 1px solid #b4c2d5;
  border-radius: 17px;
  background: #d7e0ed;
  box-shadow: 7px 8px 0 #ccd6e4, 13px 14px 0 #dae1ea;
}
.notebook-cover {
  display: flex;
  align-items: center;
  min-height: 106px;
  margin: 0 -.98rem .68rem;
  padding: .9rem 1.15rem 1rem;
  border-radius: 16px 16px 1px 1px;
  background: linear-gradient(90deg, #233a59 10%, #233a59e0 38%, transparent 82%), url('./notebook-rio.svg') right 40% center / cover no-repeat, #233a59;
  color: #eef2f8;
}
.notebook-cover h2 {font-size: clamp(1.47rem, 2.7vw, 2.06rem);color: #edf1f7}
.notebook-cover p {font-size: 1rem;color: #d7e0ed;margin-top: .35rem;max-width: 37ch;line-height: 1.46}
.cover-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: .65rem;
}
.date-mode {
  display: flex;
  align-items: center;
  gap: .37rem;
  min-width: 0;
  min-height: 48px;
  padding: .46rem .56rem;
  text-align: left;
  line-height: 1.2;
  font-size: var(--text-small);
  font-weight: 690;
  border: 1px solid #a0acb0;
  border-radius: 8px;
  background: #f7f9fb;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.date-mode span {min-width: 0;hyphens: auto}
.cover-controls button:focus-visible,.mode-examples button:focus-visible {z-index: 2;outline-offset: 2px}
.date-mode-month {border-style: dashed}
.date-mode-event:not([aria-pressed=true]) {border-color: #ba7f7d;background: #e8eef5}
.date-mode:hover {background: #eef2f8;border-color: var(--deep)}
.date-mode[aria-pressed=true] {
  color: #fcfcfd;
  background: var(--blue);
  border-color: var(--blue);
  border-style: solid;
  box-shadow: inset 0 -3px #ba514c;
}
.date-mode .ico {flex: none;width: 1.06rem;height: 1.06rem}
.cover-contents {
  min-width: 0;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  gap: .58rem;
  border: 1px solid #b8c6da;
  border-radius: 10px;
  padding: .86rem;
  background: #f4f7fa;
}
.cover-contents h3 {color: var(--deep);font-size: clamp(1.25rem, 2.65vw, 1.9rem);letter-spacing: -.028em}
.cover-month-sheet {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: .65rem .8rem;
  padding: .28rem 0;
}
.month-heading h3 {
  margin: 0 0 .2rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .98;
  letter-spacing: -.052em;
}
.month-heading p {color: #4c5e6f;font-size: var(--text-small);line-height: 1.42}
.cover-marginalia {display: grid;gap: .34rem;min-width: 0}
.cover-visit-row {
  display: flex;
  align-items: center;
  gap: .46rem;
  border: 1px solid #d5dae1;
  padding: .48rem .5rem;
  min-height: 43px;
  border-radius: 7px;
  background: #e7ebf1;
  color: #24344a;
  font-size: var(--text-small);
  line-height: 1.27;
  font-weight: 690;
}
.cover-visit-row .ico {flex: none}
.margin-fill {
  --margin-surface: #e7edf5;
  border: 1px dashed #ad5d5a;
  border-radius: 7px;
  color: #723633;
  background-color: var(--margin-surface);
  background-image: repeating-linear-gradient(132deg, transparent 0 7px, #b4545010 7px 8px);
}
.cover-actions {display: flex;flex-wrap: wrap;justify-content: space-between;align-items: baseline;gap: .28rem .65rem;margin-top: auto;padding-top: .12rem}
.cover-actions .cover-action {min-height: 44px;padding: .48rem .72rem;font-size: var(--text-small)}
.cover-actions .text-link {font-size: var(--text-small);min-height: 44px;text-decoration: underline;text-decoration-thickness: 1px}
.cover-dates {margin: 0;padding: 0;list-style: none;display: grid;grid-template-columns: repeat(auto-fit,minmax(min(100%,5.4rem),1fr));gap: .25rem}
.cover-dates li {display: grid;justify-items: center;align-content: start;gap: .13rem;min-width: 0;border: 1px solid #c0c9d6;border-radius: 6px;padding: .35rem .14rem;background: #ebf0f6;text-align: center}
.cover-dates li.sample-full {background: #e6eaef;border-color: #bdc5d0}
.cover-dates time {font-variant-numeric: tabular-nums;font-size: 1.15rem;font-weight: 740;line-height: 1}
.cover-dates span {font-size: var(--text-meta);color: #4c5f6b;line-height: 1.35;hyphens: auto}
.cover-counts {display: flex;flex-wrap: wrap;gap: .32rem .55rem;margin: 0}
.cover-counts div {display: flex;flex-direction: row-reverse;align-items: baseline;gap: .35rem;font-size: var(--text-small);color: var(--muted);margin: 0}
.cover-counts dd {margin: 0;font-weight: 790;font-size: 1.08rem;color: var(--deep)}
.cover-ticket {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: .56rem .67rem;
  border: 1px solid #c28e8c;
  border-radius: 8px;
  background: #e0e8f2;
}
.cover-ticket-year {color: #863a37;border-right: 1px dashed #b67673;padding-right: .62rem;font-size: clamp(1.2rem, 3.24vw, 1.8rem);font-family: var(--display);font-weight: 700}
.cover-ticket h3 {font-size: clamp(1.04rem, 1.8vw, 1.35rem)}
.cover-event-date {font-size: 1rem;color: var(--muted);margin: .16rem 0}
.cover-ticket .badge {font-size: var(--text-meta);margin-top: .15rem}

.data-line {display: flex;flex-wrap: wrap;align-items: baseline;gap: .15rem .43rem;border: 1px solid;border-radius: 7px;padding: .44rem .57rem;font-size: var(--text-small);line-height: 1.45}
.data-line strong {display: inline-flex;align-items: center;gap: .25rem;min-width: 0}
.data-line .ico {flex: none}
.data-pending {background: #e5ebf3;border-color: #98aecc;border-style: dashed;color: #6c3836}
.data-documented {background: #e5eaf0;border-color: #c4cbd5;color: #2b3b50}
.visual-source {display: flex;flex-wrap: wrap;gap: .12rem .42rem;align-items: baseline;color: #485b66;font-size: var(--text-meta)}
.visual-source a {display: inline-block;color: #254b4d;font-weight: 680;line-height: 1.4;padding-block: .24em}
.visual-references {display: flex;flex-wrap: wrap;gap: .32rem .65rem;margin-top: .55rem}
.visual-note {font-size: var(--text-meta);color: var(--muted);margin-top: .38rem;line-height: 1.46}
.guide-illustration {
  min-width: 0;
  border: 1px solid #b4c2d6;
  border-radius: 14px;
  color: var(--deep);
  padding: .92rem;
  background: #e4eaf3;
}
.guide-illustration figcaption {display: grid;gap: .22rem;margin-bottom: .63rem}
.guide-illustration figcaption h2 {font-size: clamp(1.32rem, 2.57vw, 1.92rem);color: var(--deep);letter-spacing: -.017em}
.illustration-kicker {font-size: var(--text-meta);display: flex;gap: .37rem;align-items: center;color: #3e6061;font-weight: 720}
.illustration-kicker .ico {flex: none}
.illustration-when {background: #ebf0f6}
.temperature-plot {padding: .44rem .52rem .37rem;margin: .48rem 0;border: 1px solid #c2d0e2;border-radius: 8px;background: #f9fbfd}
.temperature-row {padding: .21rem .22rem}
.temperature-value {display: flex;gap: .45rem;align-items: baseline;justify-content: space-between;font-size: .88rem;min-width: 0}
.temperature-value strong {font-size: 1.06rem;color: var(--deep);white-space: nowrap}
.temperature-track {display: block;width: 100%;height: auto;max-height: 31px;color: #8a9a9e}
.temperature-mark {stroke: #f9fbfd;stroke-width: 1.4;fill: #a63f3b}
.temperature-mark.month-7 {fill: #374c68}
.temperature-scale {color: #53656e;display: flex;justify-content: space-between;padding-inline: .27rem;font-size: .73rem}
.itinerary-strip {display: grid;grid-template-columns: repeat(3,minmax(0,1fr));gap: .36rem;margin: 0;padding: 0;list-style: none}
.itinerary-strip li {min-width: 0;display: grid;grid-template-rows: auto 1fr auto;gap: .36rem;padding: .48rem .39rem;border: 1px solid #b1bdcd;border-radius: 8px;background: #f9fbfd;font-size: var(--text-small)}
.itinerary-strip li>span {font-size: var(--text-meta);color: #556772;font-variant-numeric: tabular-nums}
.itinerary-stop {display: grid;justify-items: start;align-content: start;gap: .23rem;min-width: 0;line-height: 1.26}
.itinerary-stop .ico {width: 1.33rem;height: 1.33rem;color: #36475e}
.itinerary-strip small {display: block;padding: .28rem .24rem;font-size: var(--text-meta);line-height: 1.38;hyphens: auto}
.itinerary-math {display: flex;align-items: flex-start;gap: .42rem;margin-top: .65rem;color: #415c62;font-size: var(--text-small)}
.itinerary-math .ico {flex: none;margin-top: .19rem}
.illustration-july {background: #e7ebf1;border-color: #c9cfd8}
.july-scheme {display: grid;grid-template-columns: minmax(64px,.36fr) minmax(0,1fr);gap: .64rem}
.july-scheme>img {width: 100%;height: 100%;object-fit: cover;border-radius: 8px;min-height: 155px}
.day-sequence {display: grid;gap: .31rem;list-style: none;margin: 0;padding: 0}
.day-sequence-item {display: flex;align-items: center;gap: .39rem;padding: .38rem .45rem;min-width: 0;border: 1px solid #cdd3dc;border-radius: 7px;background: #f8fafc;font-size: var(--text-small);line-height: 1.37}
.day-sequence-item.margin-fill {border-color: #ad5d5a;border-style: dashed;background-color: #e7edf5;background-image: repeating-linear-gradient(132deg, transparent 0 7px,#b4545010 7px 8px)}
.day-sequence-item>span {flex: none;padding: .18rem;color: #3c4c62}
.day-sequence p {font-size: var(--text-meta);color: var(--muted);margin: .17rem 0 0}
.illustration-july .text-link {font-size: var(--text-small);margin-top: .28rem;min-height: 44px}
.illustration-carnival {background: #e3eaf3;border-color: #b3c4db}
.edition-strips {display: grid;gap: .39rem;margin-bottom: .57rem}
.edition-strip {display: grid;grid-template-columns: 30px minmax(0,1fr);gap: .15rem .44rem;align-items: start;min-width: 0;padding: .43rem .49rem;border: 1px solid #aebfd7;border-radius: 7px;background: #f2f5fa}
.edition-perf {grid-row: span 2;align-self: stretch;border-right: 1px dashed #be8683;display: grid;place-items: center;color: #914542}
.edition-strip-info {min-width: 0}
.edition-strip-info strong {display: block;font-size: .91rem;line-height: 1.23}
.edition-strip-info p {font-size: var(--text-small);color: var(--muted);margin-top: .12rem}
.edition-strip .badge {justify-self: start;font-size: var(--text-meta)}
.illustration-christ {background: #233a59;border-color: #233a59}
.illustration-christ figcaption h2,.illustration-christ .illustration-kicker {color: #eef2f8}
.access-board {list-style: none;margin: 0 0 .55rem;padding: 0;display: grid;gap: .29rem}
.access-board li>a {display: grid;grid-template-columns: 28px minmax(0,1fr) auto;gap: .4rem;align-items: center;padding: .43rem .46rem;border: 1px solid #64738a;border-radius: 7px;background: #294563;color: #ecf1f7;text-decoration: none}
.access-board li>a:hover {background: #365870;color: #f1f4f9}
.access-board strong,.access-board small {display: block;line-height: 1.24}
.access-board strong {font-size: .92rem}
.access-board small {color: #d7e1ee;font-size: var(--text-meta);margin-top: .1rem}
.access-board-icon {display: grid;place-items: center;color: #bacbe1}
.illustration-christ .visual-source,.illustration-christ .visual-source a {color: #dae3ef}
.illustration-stay {background: #e0e8f2}
.base-ledger {display: grid;grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);gap: .54rem;min-width: 0}
.base-airports {padding: .53rem .57rem;border-radius: 8px;background: #e5e9ee;border: 1px solid #bac2ce}
.base-airports .data-label {font-size: var(--text-meta);color: #2a3a50;font-weight: 720}
.base-airports dl {margin: .4rem 0 0;display: grid;gap: .2rem}
.base-airports dl div {display: flex;flex-wrap: wrap;gap: .03rem .4rem;align-items: baseline}
.base-airports dt {font-family: var(--display);font-size: 1.05rem;font-weight: 740}
.base-airports dd {margin: 0;font-size: var(--text-small);color: #365861}
.base-checks {display: grid;gap: .3rem;padding: .38rem .55rem;border: 1px dashed #c08380;border-radius: 8px;background: #f1f4f9}
.base-checks div+div {border-top: 1px solid #c2d0e2;padding-top: .28rem}
.base-checks strong {display: block;font-size: .83rem;line-height: 1.25}
.base-checks .ico {color: #954c49}
.base-checks p {font-size: var(--text-meta);color: #4e636d;margin: .13rem 0 0;line-height: 1.44}
.notebook-margin {display: flex;gap: .53rem;align-items: flex-start;padding: .58rem .66rem;margin: .45rem 0 .78rem;font-size: var(--text-small);line-height: 1.48}
.notebook-margin .ico {flex: none;width: 1.18rem;height: 1.18rem;margin-top: .1rem}
.notebook-margin strong {color: #703836}
.notebook-margin p {margin: .09rem 0 0}

.agenda-slot[data-planned-time] {
  background: #f5f8fb;
  box-shadow: inset 3px 0 #b45652;
}
.agenda-slot[data-planned-time] .slot-time {
  color: #76403e;
}
.agenda-slot[data-planned-time] .slot-time span {
  display: block;
  margin-top: .17rem;
  color: #794240;
  font-size: var(--text-meta);
  line-height: 1.23;
  font-weight: 600;
}
.agenda-slot[data-planned-time] .planned-time-heading {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: .35rem;
  border: 1px dashed #ac5f5c;
  padding: .26rem .41rem;
  border-radius: 6px;
  background: #e1e8f2;
  color: #673331;
}
.agenda-slot[data-planned-time] .slot-backup {border-color: #c58b88;background: #e5ebf4}
.mode-examples button[data-switch=month]:not([aria-pressed=true]) {border-style: dashed}
.mode-examples button[data-switch=event]:not([aria-pressed=true]) {border-color: #bc7f7c;background: #e8eef5}
.example-pane[data-switch-panel=month] .month-proof {border-color: #9fabbb;background: #ebeff5}
.example-pane[data-switch-panel=event] .edition-proof {background: #dfe7f1;border-color: #aec1da}
.home-events .edition .status-wait {border-style: dashed}

@media (max-width: 990px) {
  .cover-month-sheet {grid-template-columns: 1fr}
  .cover-contents {min-height: auto}
}
@media (max-width: 750px) {
  .trip-cover {box-shadow: 5px 6px 0 #ccd6e4, 8px 9px 0 #dae1ea;padding: 0 .65rem .68rem}
  .notebook-cover {min-height: 82px;margin: 0 -.65rem .53rem;padding: .69rem .75rem;background-position: right center}
  .cover-controls {margin-bottom: .5rem;gap: .38rem}
  .date-mode {display: grid;align-content: start;justify-items: start;align-items: start;gap: .3rem;padding: .48rem .38rem}
  .cover-contents {padding: .61rem;gap: .46rem}
  .cover-month-sheet {grid-template-columns: minmax(0,.73fr) minmax(0,1.27fr);gap: .5rem}
  .month-heading h3 {font-size: clamp(1.7rem,7.8vw,2.7rem)}
  .cover-visit-row {padding: .4rem .4rem;min-height: 38px;gap: .28rem}
  .guide-illustration {padding: .7rem}
}
@media (max-width: 425px) {
  :is(:lang(de),:lang(fr)) .cover-controls {grid-template-columns: 1fr}
  :is(:lang(de),:lang(fr)) .date-mode {display: flex;align-items: center;gap: .55rem;padding-inline: .56rem}
  .july-scheme {grid-template-columns: minmax(46px,.24fr) minmax(0,1fr);gap: .45rem}
}
@media (max-width: 365px) {
  .cover-controls {grid-template-columns: 1fr}
  .date-mode {display: flex;align-items: center;gap: .55rem;padding-inline: .56rem}
  .cover-month-sheet {grid-template-columns: 1fr}
  .july-scheme {grid-template-columns: 1fr}
  .july-scheme>img {min-height: 0;max-height: 78px}
}
@media (prefers-reduced-motion: reduce) {
  .date-mode {transition: none}
}
@media print {
  .agenda-slot[data-planned-time] {box-shadow:none;border-left: 2px solid #864947}
}
