/*
 * The cruise port schedule inside a Journal article (template-parts/blog-cruise.php).
 *
 * The Journal's paper and ink (assets/css/blog.css): white #fff, newsprint #f5f1eb, ink #16161a,
 * text #2b2a27, muted #6b665e, rules #e7e1d8, tangerine #e0692a, dark tangerine #b4501b, leaf
 * #2f5d46. Ships in port shade from sand to tangerine: none #f5f1eb, one #f6c9a8, two #e88a4f,
 * three #b4501b. Tables in Trebuchet, figures in Georgia. No rounded cards.
 */

.tgcs { --tgcs-sans: 'Trebuchet MS', 'Lucida Grande', sans-serif; --tgcs-serif: Georgia, 'Times New Roman', serif; }
.tgcs h3.tgcs-h3, .tgcs .tgcs-cal__year { margin: 34px 0 12px; font-family: var(--tgcs-serif); font-size: 22px; font-weight: 400; line-height: 1.25; color: #16161a; }
.tgcs .tgcs-table-wrap + p, .tgcs .tgcs-hist + .tgcs-note + .tgcs-table-wrap + p { margin-top: 22px; }
.tgcs .tgcs-note { margin: 14px 0 0; font-family: var(--tgcs-sans); font-size: 14px; line-height: 1.55; color: #6b665e; }

/* ---------------------------------------------------------------- At a glance */

.tgcs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; border-top: 2px solid #16161a; }
.tgcs-tile { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 18px 20px 0; border-bottom: 1px solid #e7e1d8; }
.tgcs-tile + .tgcs-tile:not(:nth-child(3n+1)) { padding-left: 18px; border-left: 1px solid #e7e1d8; }
.tgcs-tile dd { margin: 0; font-family: var(--tgcs-serif); font-size: clamp(30px, 1.6vw + 18px, 42px); line-height: 1; letter-spacing: -.01em; color: #e0692a; }
.tgcs-tile--long dd { font-size: clamp(24px, .8vw + 18px, 30px); white-space: nowrap; }
.tgcs-tile dt { font-family: var(--tgcs-sans); font-size: 14px; line-height: 1.4; color: #4a4741; }

.tgcs-strip { margin: 30px 0 0; }
.tgcs-strip__years { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tgcs-strip svg { display: block; width: 100%; height: auto; overflow: visible; }
.tgcs-strip rect { fill: #d9cfc1; }
.tgcs-strip .is-past rect { fill: #ece6dc; }
.tgcs-strip .is-lead rect { fill: #e0692a; }
.tgcs-strip text { font-family: var(--tgcs-sans); text-anchor: middle; }
.tgcs-strip__v { font-size: 10px; fill: #6b665e; }
.tgcs-strip .is-lead .tgcs-strip__v { fill: #b4501b; font-weight: 700; }
.tgcs-strip__k { font-size: 10px; fill: #8a847a; }
.tgcs-strip__y { font-size: 12px; font-weight: 700; letter-spacing: .12em; fill: #16161a; text-anchor: middle; }
.tgcs-strip figcaption, .tgcs-key { margin-top: 10px; font-family: var(--tgcs-sans); font-size: 13px; line-height: 1.5; color: #6b665e; }

/* ---------------------------------------------------------------- Find your ship */

.tgcs-find__bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; align-items: end; padding: 18px; background: #f5f1eb; border-top: 2px solid #16161a; }
.tgcs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-family: var(--tgcs-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2f5d46; }
.tgcs-field input, .tgcs-field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfc5b6; border-radius: 0; background: #fff; font: 400 16px/1.2 var(--tgcs-sans); letter-spacing: 0; text-transform: none; color: #16161a; }
.tgcs-field input:focus, .tgcs-field select:focus { outline: 2px solid #e0692a; outline-offset: 1px; border-color: #e0692a; }
.tgcs-check { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-family: var(--tgcs-sans); font-size: 15px; color: #2b2a27; cursor: pointer; }
.tgcs-check input { width: 20px; height: 20px; margin: 0; accent-color: #e0692a; }
.tgcs-find__count { margin: 14px 0 8px !important; font-family: var(--tgcs-sans); font-size: 14px; color: #6b665e; }
.tgcs-find__none { margin: 16px 0 0 !important; padding: 16px; background: #fdf0e7; font-family: var(--tgcs-sans); font-size: 15px; color: #16161a; }

.tgcs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tgcs-find .tgcs-table-wrap { max-height: 640px; overflow-y: auto; border-bottom: 1px solid #e7e1d8; }
.tgcs-table { width: 100%; border-collapse: collapse; font-family: var(--tgcs-sans); font-size: 14px; line-height: 1.4; color: #2b2a27; }
.tgcs-table caption { padding: 0 0 8px; font-size: 13px; text-align: left; color: #6b665e; caption-side: top; }
.tgcs-find .tgcs-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tgcs-table th, .tgcs-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid #ece6dc; text-align: left; vertical-align: top; }
.tgcs-table thead th { position: sticky; top: 0; z-index: 1; padding-top: 12px; background: #fff; border-bottom: 2px solid #16161a; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #16161a; }
.tgcs-table abbr { text-decoration: none; cursor: help; }
.tgcs-table .tgcs-num { text-align: right; white-space: nowrap; }
.tgcs-td-date { white-space: nowrap; color: #16161a; }
.tgcs-td-ship strong { display: block; font-size: 15px; color: #16161a; }
.tgcs-td-ship span { display: block; font-size: 13px; color: #6b665e; }
.tgcs-also { display: block; margin-top: 3px; font-size: 12px; font-style: normal; color: #b4501b; }
.tgcs-td-time { white-space: nowrap; }
.tgcs-td-time span { display: block; font-size: 12px; color: #6b665e; }
.tgcs-gone { display: block; margin-top: 3px; font-size: 11px; font-style: normal; color: #8a847a; }
.tgcs-dash { color: #b9b1a5; }

.tgcs-chip { display: inline-block; padding: 3px 9px; border: 1px solid currentColor; font-size: 12px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.tgcs-chip--t6 { color: #fff; background: #2f5d46; border-color: #2f5d46; }
.tgcs-chip--t5 { color: #2f5d46; background: #e3eee7; }
.tgcs-chip--t4 { color: #2f5d46; background: #f2f6f3; }
.tgcs-chip--t3 { color: #8a5a12; background: #fbf3e2; }
.tgcs-chip--t2 { color: #b4501b; background: #fdf0e7; }
.tgcs-chip--t1, .tgcs-chip--none { color: #6b665e; background: #f5f1eb; }

.tgcs-dots { display: inline-block; position: relative; vertical-align: middle; width: 36px; height: 8px; background:
	radial-gradient(circle at 4px 4px, var(--d1, #e7e1d8) 3.5px, transparent 4px) 0 0 / 12px 8px no-repeat,
	radial-gradient(circle at 4px 4px, var(--d2, #e7e1d8) 3.5px, transparent 4px) 12px 0 / 12px 8px no-repeat,
	radial-gradient(circle at 4px 4px, var(--d3, #e7e1d8) 3.5px, transparent 4px) 24px 0 / 12px 8px no-repeat; }
.tgcs-dots--1 { --d1: #e0692a; }
.tgcs-dots--2 { --d1: #e0692a; --d2: #e0692a; }
.tgcs-dots--3 { --d1: #e0692a; --d2: #e0692a; --d3: #e0692a; }
.tgcs .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Busy days */

.tgcs-cal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.tgcs-month { margin: 0; }
.tgcs-month.is-past { opacity: .5; }
.tgcs-month figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid #16161a; font-family: var(--tgcs-sans); font-size: 12px; color: #6b665e; }
.tgcs-month figcaption strong { font-family: var(--tgcs-serif); font-size: 15px; font-weight: 400; color: #16161a; }
.tgcs-month__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.tgcs-wd { font-family: var(--tgcs-sans); font-size: 9px; font-weight: 700; text-align: center; color: #8a847a; }
.tgcs-day { display: grid; place-items: center; aspect-ratio: 1; font-family: var(--tgcs-sans); font-size: 10px; line-height: 1; color: #8a847a; background: #f5f1eb; }
.tgcs-day--pad { background: none; }
.tgcs-day--1 { background: #f6c9a8; color: #6b3a1a; }
.tgcs-day--2 { background: #e88a4f; color: #fff; font-weight: 700; }
.tgcs-day--3 { background: #b4501b; color: #fff; font-weight: 700; }
.tgcs-day[title] { cursor: help; }
.tgcs-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0 !important; font-family: var(--tgcs-sans); font-size: 13px; color: #6b665e; }
.tgcs-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tgcs-legend i { display: inline-block; width: 16px; height: 16px; aspect-ratio: auto; }
.tgcs-days { list-style: none; margin: 0; padding: 0; font-family: var(--tgcs-sans); font-size: 15px; line-height: 1.5; }
.tgcs-days li { padding: 9px 0; border-bottom: 1px solid #ece6dc; }
.tgcs-days time { display: inline-block; min-width: 132px; font-weight: 700; color: #16161a; }
.tgcs-more { margin-top: 18px; border-top: 1px solid #e7e1d8; }
.tgcs-more summary { padding: 14px 0; font-family: var(--tgcs-sans); font-size: 15px; font-weight: 700; color: #b4501b; cursor: pointer; }
.tgcs-more[open] summary { color: #16161a; }

/* ---------------------------------------------------------------- Month by month */

.tgcs-bars { margin: 26px 0 0; }
.tgcs-bars svg { display: block; width: 100%; height: auto; }
.tgcs-bars__grid { stroke: #ece6dc; stroke-width: 1; }
.tgcs-bars__tick { font-family: var(--tgcs-sans); font-size: 11px; fill: #8a847a; }
.tgcs-bars__b--0 rect { fill: #d9c7b0; }
.tgcs-bars__b--1 rect { fill: #e0692a; }
.tgcs-bars__b text { font-family: var(--tgcs-sans); font-size: 11px; text-anchor: middle; fill: #6b665e; }
.tgcs-bars__b--1 text { fill: #b4501b; font-weight: 700; }
.tgcs-bars__k { font-family: var(--tgcs-sans); font-size: 12px; text-anchor: middle; fill: #4a4741; }
.tgcs-key { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tgcs-key span { display: inline-flex; align-items: center; gap: 8px; }
.tgcs-key__sw { display: inline-block; width: 14px; height: 14px; }
.tgcs-key__sw--0 { background: #d9c7b0; }
.tgcs-key__sw--1 { background: #e0692a; }
.tgcs-key__note { flex-basis: 100%; }
.tgcs-table--plain td { text-align: right; }
.tgcs-table--plain thead th:not(:first-child) { text-align: right; }
.tgcs-total th, .tgcs-total td { font-weight: 700; color: #16161a; border-top: 2px solid #16161a; }

/* ---------------------------------------------------------------- Cruise lines */

.tgcs-lines th[scope=row] { min-width: 150px; }
.tgcs-pick { padding: 0; border: 0; background: none; font: 700 15px/1.35 var(--tgcs-sans); text-align: left; color: #16161a; text-decoration: underline; text-decoration-color: #e0692a; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.tgcs-pick:hover, .tgcs-pick:focus-visible { color: #b4501b; }
.tgcs-ships { font-size: 13px; color: #6b665e; }
.tgcs-usual { white-space: nowrap; font-size: 13px; }
.tgcs-showall { margin-top: 16px; padding: 12px 20px; border: 1.5px solid #16161a; background: #fff; font: 700 14px/1 var(--tgcs-sans); color: #16161a; cursor: pointer; }
.tgcs-showall:hover { border-color: #e0692a; color: #b4501b; }

/* ---------------------------------------------------------------- The ships */

.tgcs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.tgcs-rank { list-style: none; margin: 0; padding: 0; counter-reset: tgcs; }
.tgcs-rank li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: 'n ship v' 'n line v'; column-gap: 8px; padding: 10px 0; border-bottom: 1px solid #ece6dc; font-family: var(--tgcs-sans); line-height: 1.35; counter-increment: tgcs; }
.tgcs-rank li::before { content: counter(tgcs, decimal-leading-zero); grid-area: n; font-family: var(--tgcs-serif); font-size: 16px; font-style: italic; color: #e0692a; }
.tgcs-rank strong { grid-area: ship; font-size: 15px; color: #16161a; }
.tgcs-rank span { grid-area: line; font-size: 13px; color: #6b665e; }
.tgcs-rank em { grid-area: v; align-self: center; font-size: 13px; font-style: normal; font-weight: 700; color: #b4501b; white-space: nowrap; }

/* ---------------------------------------------------------------- What fits */

.tgcs-hist { list-style: none; margin: 22px 0 0; padding: 0; font-family: var(--tgcs-sans); font-size: 14px; }
.tgcs-hist li { display: grid; grid-template-columns: 140px minmax(0, 1fr) 46px; align-items: center; gap: 12px; padding: 6px 0; }
.tgcs-hist__k { color: #2b2a27; }
.tgcs-hist__bar { height: 14px; background: #f5f1eb; }
.tgcs-hist__bar i { display: block; height: 100%; background: #e0692a; }
.tgcs-hist__v { font-weight: 700; text-align: right; color: #16161a; }
.tgcs-fits { margin-top: 26px; }
.tgcs-fits th[scope=row] a { font-weight: 700; color: #16161a; text-decoration-color: #e0692a; }
.tgcs-fits th[scope=row] span { display: block; font-weight: 400; font-size: 13px; color: #6b665e; }
.tgcs-meter { display: inline-block; width: 60px; height: 8px; margin-right: 10px; vertical-align: middle; background: linear-gradient(90deg, #2f5d46 calc(var(--v) * 1%), #ece6dc 0); }

/* ---------------------------------------------------------------- Download and cite */

.tgcs-dl { margin-top: 24px; padding: 26px 28px; border-top: 3px solid #16161a; background: #f5f1eb; }
.tgcs-dl__upd { margin: 0 0 18px !important; font-family: var(--tgcs-sans); font-size: 14px; color: #4a4741; }
.tgcs-dl__upd span { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #2f5d46; }
.tgb-main .tgcs-dl .tgb-btn--line { color: #16161a; background: #fff; }
.tgb-main .tgcs-dl .tgb-btn--line:hover { color: #fff; background: #16161a; border-color: #16161a; }
.tgcs-dl__lic { margin: 16px 0 0 !important; font-family: var(--tgcs-sans); font-size: 14px; line-height: 1.55; color: #4a4741; }
.tgcs-cite { position: relative; margin: 22px 0 0; padding: 16px 18px; border-left: 3px solid #e0692a; background: #fff; }
.tgcs-cite figcaption { margin-bottom: 6px; font-family: var(--tgcs-sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #2f5d46; }
.tgcs-cite blockquote { margin: 0; }
.tgcs-cite blockquote p { margin: 0 70px 0 0 !important; font-family: var(--tgcs-sans); font-size: 14px; line-height: 1.55; color: #16161a; overflow-wrap: anywhere; }
.tgcs-copy { position: absolute; top: 14px; right: 14px; padding: 8px 12px; border: 1px solid #16161a; background: #fff; font: 700 13px/1 var(--tgcs-sans); color: #16161a; cursor: pointer; }
.tgcs-copy:hover { background: #16161a; color: #fff; }
.tgcs-dl__src { margin: 16px 0 0 !important; font-family: var(--tgcs-sans); font-size: 14px; color: #4a4741; }

/* ---------------------------------------------------------------- Smaller screens */

@media (max-width: 720px) {
	.tgcs-tiles { grid-template-columns: 1fr 1fr; }
	.tgcs-tile, .tgcs-tile + .tgcs-tile:not(:nth-child(3n+1)) { padding: 16px 12px 16px 0; border-left: 0; }
	.tgcs-tile:nth-child(even) { padding-left: 14px !important; border-left: 1px solid #e7e1d8 !important; }
	.tgcs-strip__years { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.tgcs-find__bar { grid-template-columns: 1fr 1fr; padding: 14px; }
	.tgcs-field--q { grid-column: 1 / -1; }
	.tgcs-find .tgcs-table-wrap { max-height: 70vh; }
	/* Calls as cards: date and fit on top, ship, then the times. */
	.tgcs-find .tgcs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.tgcs-find .tgcs-table, .tgcs-find .tgcs-table tbody { display: block; }
	.tgcs-find .tgcs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'date fit' 'ship ship' 'time n'; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid #ece6dc; }
	.tgcs-find .tgcs-table tr[hidden] { display: none; }
	.tgcs-find .tgcs-table td { padding: 0; border: 0; }
	.tgcs-td-date { grid-area: date; font-size: 13px; font-weight: 700; }
	.tgcs-td-fit { grid-area: fit; }
	.tgcs-td-ship { grid-area: ship; }
	.tgcs-td-time { grid-area: time; display: flex; gap: 8px; align-items: baseline; }
	.tgcs-td-time span { display: inline; }
	.tgcs-td-n { grid-area: n; align-self: center; }
	.tgcs-cal__grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
	.tgcs-two { grid-template-columns: minmax(0, 1fr); }
	.tgcs-hist li { grid-template-columns: 112px minmax(0, 1fr) 40px; gap: 8px; }
	.tgcs-dl { margin-right: -16px; margin-left: -16px; padding: 22px 16px; }
	.tgcs-lines .tgcs-ships { display: none; }
	.tgcs-lines thead th:nth-child(2) { display: none; }
}
@media (max-width: 420px) {
	.tgcs-cal__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 10px; }
	.tgcs-day { font-size: 9px; }
	.tgcs-fits td:nth-child(2) { display: none; }
	.tgcs-fits thead th:nth-child(2) { display: none; }
}
