/*
 * The Logbook: single entries (.dt-lb) and the index (.dt-lbx).
 * White pages; dark only for the hero, the spec strip and Quick answers.
 * Loaded only by single-logbook.php and archive-logbook.php.
 */

.dt-lb { --lb-ink: #16171a; --lb-soft: #5d6067; --lb-rule: rgba(10,10,11,.12); --lb-paper: #f6f5f2; --lb-mono: "DM Mono", ui-monospace, monospace; background: #fff; color: var(--lb-ink); }

/* Hero ----------------------------------------------------------------- */
.dt-lb__hero { position: relative; min-height: clamp(440px, 72vh, 760px); display: flex; align-items: flex-end; background: var(--dt-black); overflow: hidden; isolation: isolate; }
.dt-lb__hero--plain { min-height: 0; padding-top: 5rem; }
.dt-lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dt-lb__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,8,9,.92) 0%, rgba(8,8,9,.55) 38%, rgba(8,8,9,.1) 70%, rgba(8,8,9,.25) 100%); }
.dt-lb__heroin { width: 100%; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.dt-lb__heroin .dt-eyebrow { color: var(--dt-silver); text-decoration: none; }
.dt-lb__hero h1.dt-disp { color: #fff; font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: .95; max-width: 15ch; margin: 1rem 0 1.2rem; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.dt-lb__dek { max-width: 60ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: rgba(242,240,236,.9); margin: 0 0 1.2rem; }
.dt-lb__heroin time { font-family: var(--lb-mono); font-size: .78rem; letter-spacing: .04em; color: rgba(242,240,236,.65); }
.dt-lb__credit { position: absolute; right: var(--dt-gutter); bottom: .7rem; margin: 0; max-width: min(46ch, 60vw); text-align: right; font-size: .7rem; line-height: 1.4; color: rgba(242,240,236,.55); }
.dt-lb__credit a { color: inherit; }

/* Spec strip ------------------------------------------------------------ */
.dt-lb__spec { display: flex; flex-wrap: wrap; gap: 0; margin: 0; background: var(--dt-black); color: var(--dt-white); padding-block: 1.3rem; }
.dt-lb__spec > div { padding: .2rem 2.2rem .2rem 0; margin-right: 2.2rem; border-right: 1px solid var(--dt-line); }
.dt-lb__spec > div:last-child { border-right: 0; margin-right: 0; }
.dt-lb__spec dt { font-family: var(--dt-cond); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--dt-muted); order: 2; }
.dt-lb__spec dd { margin: 0 0 .15rem; font-family: var(--lb-mono); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; color: #fff; }
.dt-lb__spec > div { display: flex; flex-direction: column-reverse; }

/* Layout ---------------------------------------------------------------- */
.dt-lb__wrap { display: grid; grid-template-columns: minmax(0, 780px) 260px; justify-content: space-between; gap: 4rem; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.dt-lb__body { min-width: 0; font-size: 1.1rem; line-height: 1.75; }
.dt-lb__body > p:first-of-type { font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.55; color: #0b0b0c; }
.dt-lb__body p { margin: 0 0 1.15rem; }
.dt-lb__body a { color: inherit; text-decoration: underline; text-decoration-color: var(--dt-rosso); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dt-lb__body a:hover { color: var(--dt-rosso); }
.dt-lb__body strong { font-weight: 600; }

/* Headings */
.dt-lb__body h2 { font-family: var(--dt-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -.005em; color: #0b0b0c; margin: 3.4rem 0 1.2rem; scroll-margin-top: 1.5rem; }
.dt-lb__no { display: flex; align-items: center; gap: .8rem; font-family: var(--lb-mono); font-style: normal; font-weight: 500; font-size: .8rem; letter-spacing: .06em; color: var(--dt-rosso); margin-bottom: .7rem; }
.dt-lb__no::after { content: ""; width: 42px; height: 3px; background: linear-gradient(90deg, #d9d6cf 0 33.333%, var(--dt-rosso) 33.333% 66.666%, var(--dt-verde) 66.666%); }
.dt-lb__body h3 { font-family: var(--dt-cond); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; margin: 2.2rem 0 .7rem; }

/* Lists */
.dt-lb__body ul, .dt-lb__body ol { padding-left: 0; margin: 0 0 1.4rem; }
.dt-lb__body ul { list-style: none; }
.dt-lb__body ul > li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; }
.dt-lb__body ul > li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--dt-rosso); }
.dt-lb__body ol { list-style: none; counter-reset: lb; }
.dt-lb__body ol > li { counter-increment: lb; position: relative; padding: .7rem 0 .7rem 3rem; border-bottom: 1px solid var(--lb-rule); }
.dt-lb__body ol > li::before { content: counter(lb, decimal-leading-zero); position: absolute; left: 0; top: .8rem; font-family: var(--lb-mono); font-size: .85rem; color: var(--dt-rosso); }

/* Photos and the map: the full width of the text column, with a stripe on top */
.dt-lb__body .dt-lfig, .dt-lb__body .dt-lmap { margin: 2rem 0 2.4rem; }
.dt-lb__body .dt-lfig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--lb-paper); }
.dt-lb__body .dt-lfig figcaption, .dt-lb__body .dt-lmap figcaption { font-size: .78rem; line-height: 1.45; color: var(--lb-soft); margin-top: .55rem; }
.dt-lb__body .dt-lfig figcaption a { text-decoration-thickness: 1px; }
.dt-lb__body .dt-lmap { border-top: 3px solid transparent; border-image: var(--dt-tri) 1; padding-top: 0; scroll-margin-top: 1.5rem; }
.dt-lb__body h2 + .dt-lfig { margin-top: .4rem; }

/* Road tables: a spec sheet */
.dt-lb__body .dt-gtable { margin: 1.6rem 0 2.2rem; border-top: 3px solid #0b0b0c; }
.dt-lb__body .dt-gtable table { font-size: .95rem; min-width: 540px; }
.dt-lb__body .dt-gtable thead th { background: transparent; color: var(--lb-soft); padding: .75rem .9rem .6rem 0; border-bottom: 1px solid #0b0b0c; }
.dt-lb__body .dt-gtable tbody th, .dt-lb__body .dt-gtable td { padding: .8rem .9rem .8rem 0; }
.dt-lb__body .dt-gtable tbody th a { text-decoration: none; font-weight: 600; }
.dt-lb__body .dt-gtable tbody th a:hover { color: var(--dt-rosso); }
.dt-lb__body .dt-gtable td { font-family: var(--lb-mono); font-size: .86rem; white-space: nowrap; }
.dt-lb__body .dt-gtable td:first-of-type { font-family: var(--dt-cond); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--lb-soft); }
.dt-lb__body .dt-gtable tbody tr:hover { background: var(--lb-paper); }

/* Hotel cards inside the text */
.dt-lb__body .dt-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.2rem; margin: 1.4rem 0 2.4rem; }
.dt-lb__body .dt-card h3 { letter-spacing: .04em; margin: .6rem 0 .3rem; }
.dt-lb__body .dt-card a { text-decoration: none; }

/* Quick answers: the one dark block in the text */
.dt-lb__body .dt-gfaq { margin: 3.4rem 0 0; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--dt-black); color: var(--dt-white); border-top: 3px solid transparent; border-image: var(--dt-tri) 1; }
.dt-lb__body .dt-gfaq h2 { color: #fff; margin-top: 0; }
.dt-lb__body .dt-gfaq .dt-lb__no::after { background: var(--dt-tri); }
.dt-lb__body .dt-gfaq dl > div { border-color: var(--dt-line); padding: 1rem 0; }
.dt-lb__body .dt-gfaq dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dt-lb__body .dt-gfaq dt { color: #fff; font-size: 1.05rem; }
.dt-lb__body .dt-gfaq dd { color: var(--dt-silver); font-size: 1rem; }
.dt-lb__body .dt-greviewed { font-size: .8rem; color: var(--lb-soft); opacity: 1; margin-top: 1rem; }
.dt-lb__body .dtw-credit { font-size: .78rem; color: var(--lb-soft); }

/* Read next: photo cards */
.dt-lb__body .dt-reading { margin-top: 3.4rem; }
.dt-lb__body .dt-reading h2 { margin-bottom: 1.2rem; }
.dt-lb__body .dt-gguides { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.4rem; }
.dt-lb__body .dt-gguides a { padding: 0 0 1.1rem; border: 0; border-bottom: 1px solid var(--lb-rule); text-decoration: none; }
.dt-lb__body .dt-gguides a:hover b { color: var(--dt-rosso); }
.dt-lb__body .dt-gguides b { font-family: var(--dt-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; margin: .8rem 0 .45rem; }
.dt-lb__back { margin-top: 2.6rem; font-family: var(--dt-cond); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; }
.dt-lb__back a { text-decoration: none !important; }

/* Side rail ------------------------------------------------------------ */
.dt-lb__rail { display: flex; flex-direction: column; gap: 1.2rem; align-self: start; position: sticky; top: 1.5rem; }
.dt-lb__rail > * { position: static; }
.dt-lb__toc .dt-cap { display: block; margin-bottom: .8rem; color: var(--lb-soft); }
.dt-lb__toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; border-top: 3px solid transparent; border-image: var(--dt-tri) 1; }
.dt-lb__toc li { counter-increment: toc; border-bottom: 1px solid var(--lb-rule); }
.dt-lb__toc a { display: flex; gap: .8rem; padding: .6rem 0; font-size: .92rem; line-height: 1.35; color: var(--lb-ink); text-decoration: none; }
.dt-lb__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--lb-mono); font-size: .75rem; color: var(--dt-rosso); padding-top: .15rem; }
.dt-lb__toc a:hover { color: var(--dt-rosso); }
.dt-lb__railbtn { display: block; text-align: center; padding: .9rem 1rem; background: var(--dt-black); color: #fff !important; text-decoration: none; font-family: var(--dt-cond); text-transform: uppercase; letter-spacing: .16em; font-size: .82rem; border-bottom: 3px solid var(--dt-rosso); }
.dt-lb__railbtn:hover { background: var(--dt-rosso); }
.dt-lb__raillink { font-size: .85rem; color: var(--lb-soft); text-decoration: none; }
.dt-lb__raillink:hover { color: var(--dt-rosso); }

/* Contents for narrow screens */
.dt-lb__toc--inline { display: none; margin: 0 0 2rem; border: 1px solid var(--lb-rule); border-top: 3px solid transparent; border-image: var(--dt-tri) 1; }
.dt-lb__toc--inline summary { cursor: pointer; padding: .9rem 1rem; font-family: var(--dt-cond); text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; list-style: none; display: flex; justify-content: space-between; }
.dt-lb__toc--inline summary::after { content: "+"; font-family: var(--lb-mono); color: var(--dt-rosso); }
.dt-lb__toc--inline[open] summary::after { content: "–"; }
.dt-lb__toc--inline ol { margin: 0 1rem 1rem !important; border: 0 !important; }
.dt-lb__toc--inline li { padding: 0 !important; }
.dt-lb__toc--inline li::before { display: none; }
.dt-lb__toc--inline a { text-decoration: none !important; }

@media (max-width: 1080px) {
	.dt-lb__wrap { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 820px; }
	.dt-lb__rail { display: none; }
	.dt-lb__toc--inline { display: block; }
}
@media (max-width: 640px) {
	.dt-lb__hero { min-height: clamp(380px, 78vh, 560px); }
	.dt-lb__credit { position: static; text-align: left; max-width: none; padding: 0 var(--dt-gutter) .8rem; }
	.dt-lb__hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
	.dt-lb__spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
	.dt-lb__spec > div { border: 0; margin: 0; padding: 0; }
	.dt-lb__body { font-size: 1.05rem; }
}

/* The index ------------------------------------------------------------ */
.dt-lbx__lead { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 60vh, 620px); margin: 0 0 3rem; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; background: var(--dt-black); }
.dt-lbx__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.dt-lbx__lead:hover img { transform: scale(1.03); }
.dt-lbx__lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,8,9,.9), rgba(8,8,9,.3) 55%, rgba(8,8,9,.05)); }
.dt-lbx__leadin { padding-block: clamp(2rem, 5vw, 3.5rem); max-width: 980px; }
.dt-lbx__leadin .dt-cap { color: var(--dt-gt); }
.dt-lbx__leadin h2.dt-disp { color: #fff; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: .95; margin: .7rem 0 1rem; max-width: 18ch; }
.dt-lbx__leadin p { max-width: 60ch; color: rgba(242,240,236,.88); margin: 0 0 1.2rem; font-size: 1.1rem; }
.dt-lbx__go { font-family: var(--dt-cond); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; border-bottom: 2px solid var(--dt-rosso); padding-bottom: .2rem; }
.dt-lbx .dt-log__card h2 { font-family: var(--dt-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.02; }
.dt-lbx .dt-log__card h2 a:hover { color: var(--dt-rosso); }
.dt-lbx .dt-log__card time { font-family: "DM Mono", ui-monospace, monospace; font-size: .74rem; letter-spacing: .04em; }
.dt-lbx .dt-log__ph { position: relative; }
.dt-lbx .dt-log__ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--dt-tri); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.dt-lbx .dt-log__card:hover .dt-log__ph::after { transform: scaleX(1); }
.dt-lbx .dt-log__ph img { transition: transform .6s ease; }
.dt-lbx .dt-log__card:hover .dt-log__ph img { transform: scale(1.04); }

/* Fixes on white: hotel card titles were styled for dark pages; card lists take no bullets. */
.dt-lb__body .dt-card h3, .dt-lb__body .dt-card h3 a { color: var(--lb-ink); }
.dt-lb__body .dt-card h3 a:hover { color: var(--dt-rosso); }
.dt-lb__body .dt-card p { color: var(--lb-soft); }
.dt-lb__body .dt-card__ph { background: #e9e7e2; }
.dt-lb__body ul.dt-gguides > li, .dt-lb__body ul.dt-glist > li { padding-left: 0; margin-bottom: 0; }
.dt-lb__body ul.dt-gguides > li::before, .dt-lb__body ul.dt-glist > li::before { display: none; }

/* The lead story sits on a photo: beat the older "Logbook headings are black" rule. */
body.dt .dt-lbx .dt-lbx__lead h2.dt-disp { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
body.dt .dt-lbx .dt-lbx__lead, body.dt .dt-lbx .dt-lbx__go { color: #fff; }
body.dt .dt-lbx .dt-lbx__leadin .dt-cap { color: var(--dt-gt); }
