/* The gap: coverage timeline and two-column problem lists */

.tl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.75rem; }
.tl__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }

.tl__toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--page-deep); isolation: isolate; }
.tl__toggle button { position: relative; z-index: 1; border: 0; background: transparent; padding: .55rem 1.2rem; border-radius: 999px; font-family: var(--font-display); font-size: .98rem; font-weight: 500; color: var(--text-soft); transition: color var(--t-med) var(--ease-out); white-space: nowrap; }
.tl__toggle button[aria-selected="true"] { color: #fff; }
.tl__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink-900); transition: transform var(--t-med) var(--ease-out); box-shadow: 0 4px 12px rgba(6,47,43,.25); }
.tl[data-mode="reforme"] .tl__thumb { transform: translateX(100%); }

.tl__readout { font-size: 1rem; color: var(--text-soft); }
.tl__readout strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; color: var(--ink-900); margin-right: .35rem; }

.tl__weeks { display: grid; grid-template-columns: repeat(4, 1fr); font-size: var(--fs-micro); color: var(--text-faint); font-weight: 500; margin-bottom: .6rem; }
.tl__weeks span { padding-left: 2px; }
.tl__days { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: clamp(2px, .5vw, 6px); align-items: end; height: clamp(120px, 18vw, 170px); }
.day { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.day::before { content: ""; position: absolute; inset: auto 0 0 0; height: 100%; border-radius: 6px; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(6,47,43,.05) 4px 5px); opacity: 0; }
.day__bar { width: 100%; border-radius: 6px; transform-origin: bottom; transition: transform 700ms var(--ease-out), background 500ms, opacity 500ms, box-shadow 500ms; }
.day--visit .day__bar { height: 100%; background: var(--ink-900); }
.day--home .day__bar { height: 58%; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(6,47,43,.18); }
.day--home .day__bar::after { content: ""; display: block; height: 100%; border-radius: 5px; background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(6,47,43,.07) 4px 5px); }
.day--rest .day__bar { height: 4px; background: var(--line); }
.tl[data-mode="reforme"] .day--home .day__bar { background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); box-shadow: none; transition-delay: calc(var(--n) * 28ms); }
.tl[data-mode="reforme"] .day--home .day__bar::after { opacity: 0; }

.tl__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.1rem; font-size: var(--fs-small); color: var(--text-soft); }
.tl__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.key--visit { background: var(--ink-900); }
.key--unseen { box-shadow: inset 0 0 0 1.5px rgba(6,47,43,.25); }
.key--seen { background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); }
.tl__foot { color: var(--text-faint); }

.gap2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(3rem, 6vw, 5rem); }
.gap2__col h3 { padding-bottom: 1rem; border-bottom: 2px solid var(--ink-900); }
.gap2__col li { padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--text-soft); display: flex; gap: .85rem; align-items: baseline; }
.gap2__col li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--alert); transform: translateY(-2px); }

@media (max-width: 760px) {
  .gap2 { grid-template-columns: minmax(0, 1fr); }
  .tl__legend { gap: .4rem 1rem; }
}
