/* Thira Guide — reader. Scoped to #thira-guide so the theme's styles don't leak in or out. */

#thira-guide {
	--tg-bg: #FFFFFF;
	--tg-ink: #1A1714;
	--tg-sub: #3D3833;
	--tg-grey: #6E6862;
	--tg-rule: #D9D2C5;
	--tg-line: #CFC7B8;
	--tg-oat: #EDE7DB;
	--tg-ox: #301014;
	--tg-serif: 'Crimson Pro', Georgia, serif;
	--tg-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	background: var(--tg-bg);
	color: var(--tg-ink);
	font-family: var(--tg-serif);
	font-size: 17px;
	line-height: 1.45;
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
	padding: 8px 0 56px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

#thira-guide *,
#thira-guide *::before,
#thira-guide *::after {
	box-sizing: border-box;
}

#thira-guide a {
	color: var(--tg-ink);
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

#thira-guide a:hover {
	color: var(--tg-ox);
}

#thira-guide ul,
#thira-guide li {
	list-style: none;
	margin: 0;
	padding: 0;
}

#thira-guide li::before {
	content: none;
}

#thira-guide button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: inherit;
	min-height: 0;
	cursor: pointer;
}

#thira-guide img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0;
}

#thira-guide a:focus-visible,
#thira-guide button:focus-visible,
#thira-guide .tg-gallery:focus-visible {
	outline: 1px solid var(--tg-ink);
	outline-offset: 3px;
}

#thira-guide .tg-title:focus {
	outline: none;
}

/* Type ---------------------------------------------------------------- */

#thira-guide .tg-label {
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-grey);
}

#thira-guide .tg-title {
	margin: 0;
	padding: 0;
	font-family: var(--tg-serif);
	font-weight: 400;
	font-style: normal;
	font-size: 48px;
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tg-ink);
}

#thira-guide .tg-title-sm {
	font-size: 36px;
}

#thira-guide .tg-title-place {
	font-size: 38px;
	line-height: 1.1;
}

#thira-guide .tg-intro {
	font-size: 17px;
	line-height: 1.45;
	color: var(--tg-sub);
	max-width: 320px;
}

#thira-guide .tg-intro-place {
	font-size: 18px;
	line-height: 1.5;
}

#thira-guide .tg-meta,
#thira-guide .tg-address {
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--tg-grey);
}

#thira-guide .tg-address {
	font-size: 13px;
	color: var(--tg-sub);
	margin-top: 6px;
}

#thira-guide .tg-small {
	font-size: 15px;
	line-height: 1.45;
	color: var(--tg-sub);
	max-width: 280px;
}

#thira-guide .tg-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 0.3em;
	text-decoration-thickness: 1px;
}

#thira-guide .tg-loading {
	padding: 64px 0;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-grey);
}

/* Structure ----------------------------------------------------------- */

#thira-guide .tg-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 32px 8px 0;
}

#thira-guide .tg-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
}

#thira-guide .tg-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding-right: 12px;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

#thira-guide .tg-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
}

#thira-guide .tg-tabs {
	display: flex;
	justify-content: center;
	gap: 36px;
	margin-top: 28px;
}

#thira-guide .tg-tab {
	padding: 12px 0;
	border-bottom: 1px solid transparent;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-grey);
}

#thira-guide .tg-tab[aria-current="page"] {
	font-weight: 400;
	color: var(--tg-ox);
	border-bottom-color: var(--tg-ox);
}

#thira-guide .tg-list {
	margin-top: 24px;
	border-bottom: 1px solid var(--tg-rule);
}

#thira-guide .tg-list-tight {
	margin-top: 0;
}

#thira-guide .tg-row-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 18px 0;
	border-top: 1px solid var(--tg-rule);
}

#thira-guide .tg-row-name {
	font-size: 24px;
	line-height: 1.2;
}

#thira-guide .tg-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 26px 0;
	border-top: 1px solid var(--tg-rule);
}

#thira-guide .tg-item-name {
	font-size: 25px;
	line-height: 1.2;
}

#thira-guide .tg-item-note {
	font-size: 16px;
	line-height: 1.45;
	color: var(--tg-sub);
	max-width: 300px;
}

#thira-guide .tg-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

#thira-guide .tg-chip {
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--tg-line);
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-ink);
}

#thira-guide .tg-chip[aria-pressed="true"] {
	background: var(--tg-ox);
	border-color: var(--tg-ox);
	color: #FFFFFF;
	font-weight: 400;
}

#thira-guide .tg-foot {
	padding-top: 32px;
}

#thira-guide .tg-empty {
	margin: 40px auto 0;
}

/* Place --------------------------------------------------------------- */

#thira-guide .tg-photo {
	margin-top: 8px;
}

#thira-guide .tg-photo img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	background: var(--tg-oat);
}

#thira-guide .tg-hours-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 8px;
	font-family: var(--tg-serif);
	font-size: 17px;
}

#thira-guide .tg-hours-line {
	padding: 10px 0;
	font-size: 17px;
}

#thira-guide .tg-chev {
	transition: transform 0.2s ease;
}

#thira-guide [aria-expanded="true"] .tg-chev {
	transform: rotate(180deg);
}

#thira-guide .tg-week {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 250px;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 13px;
	color: var(--tg-grey);
}

#thira-guide .tg-week-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

#thira-guide .tg-week-row.is-today {
	color: var(--tg-ink);
	font-weight: 400;
}

#thira-guide .tg-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding-top: 32px;
}

#thira-guide .tg-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 280px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--tg-ink);
	background: transparent;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-ink);
}

#thira-guide .tg-btn:hover {
	color: var(--tg-ink);
	background: var(--tg-oat);
}

#thira-guide .tg-btn-primary,
#thira-guide .tg-btn-primary:hover {
	background: var(--tg-ox);
	border-color: var(--tg-ox);
	color: #FFFFFF;
	font-weight: 400;
}

#thira-guide .tg-btn-disabled,
#thira-guide .tg-btn-disabled:hover {
	opacity: 0.5;
	cursor: default;
	background: transparent;
}

#thira-guide .tg-dir {
	display: flex;
	gap: 10px;
	width: 100%;
	max-width: 280px;
}

#thira-guide .tg-dir .tg-btn {
	flex: 1 1 0;
	border-color: var(--tg-line);
	padding: 0 8px;
}

#thira-guide .tg-section {
	margin-top: 48px;
}

#thira-guide .tg-section-label {
	padding-bottom: 18px;
}

#thira-guide .tg-near-name {
	font-size: 21px;
	line-height: 1.2;
}

/* Map ----------------------------------------------------------------- */

#thira-guide .tg-map-wrap {
	margin-top: 20px;
}

#thira-guide .tg-map {
	height: 62vh;
	min-height: 360px;
	max-height: 600px;
	background: #F4F1EA;
}

#thira-guide .tg-map-msg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 24px;
	font-size: 17px;
	color: var(--tg-sub);
}

#thira-guide .tg-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-height: 150px;
	padding: 22px 8px 8px;
	border-top: 1px solid var(--tg-rule);
}

#thira-guide .tg-card-name {
	font-size: 25px;
	line-height: 1.2;
}

/* Purchase screen ----------------------------------------------------- */

#thira-guide .tg-gallery {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	padding: 0 12%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 12%;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

#thira-guide .tg-gallery::-webkit-scrollbar {
	display: none;
}

#thira-guide .tg-slide {
	flex: 0 0 76%;
	aspect-ratio: 2 / 3;
	scroll-snap-align: center;
	background: var(--tg-oat);
}

/* One cover sits centred; several still swipe from the start. */
#thira-guide .tg-slide:first-child {
	margin-left: auto;
}

#thira-guide .tg-slide:last-child {
	margin-right: auto;
}

#thira-guide .tg-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#thira-guide .tg-counter {
	padding-top: 14px;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--tg-grey);
}

#thira-guide.tg-locked .tg-head {
	padding-top: 28px;
}

@media (min-width: 768px) {
	#thira-guide .tg-title {
		font-size: 56px;
	}

	#thira-guide .tg-title-sm {
		font-size: 40px;
	}

	#thira-guide .tg-title-place {
		font-size: 44px;
	}
}


/* Guides index: [thira_guides] ----------------------------------------- */

.tgi {
	max-width: 560px;
	margin: 0 auto;
	padding: 8px 0 56px;
	text-align: center;
	font-family: 'Crimson Pro', Georgia, serif;
	color: #1A1714;
	-webkit-font-smoothing: antialiased;
}

.tgi *,
.tgi *::before,
.tgi *::after {
	box-sizing: border-box;
}

.tgi .tgi-head {
	margin: 0 0 48px;
	padding: 24px 0 48px;
	border-bottom: 1px solid #D9D2C5;
}

.tgi .tgi-head .tgi-label {
	margin-bottom: 14px;
}

.tgi .tgi-h1 {
	margin: 0 0 18px;
	padding: 0;
	font-family: 'Crimson Pro', Georgia, serif;
	font-weight: 400;
	font-size: 52px;
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: none;
	color: #1A1714;
}

.tgi .tgi-lede {
	max-width: 400px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.45;
	color: #3D3833;
}

@media (max-width: 600px) {
	.tgi {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tgi .tgi-h1 {
		font-size: 42px;
	}
}

.tgi .tgi-item {
	display: block;
	padding: 48px 0;
	border-top: 1px solid #D9D2C5;
	color: #1A1714;
	text-decoration: none;
	box-shadow: none;
}

.tgi .tgi-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.tgi .tgi-cover {
	display: block;
	width: 64%;
	max-width: 320px;
	margin: 0 auto 32px;
	aspect-ratio: 2 / 3;
	background: #EDE7DB;
	overflow: hidden;
}

.tgi .tgi-cover img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.tgi .tgi-label {
	display: block;
	font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 300;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6E6862;
}

.tgi .tgi-title {
	display: block;
	margin: 12px 0 14px;
	font-size: 40px;
	line-height: 1.1;
	color: #1A1714;
}

.tgi .tgi-intro {
	display: block;
	max-width: 340px;
	margin: 0 auto 16px;
	font-size: 17px;
	line-height: 1.45;
	color: #3D3833;
}

.tgi .tgi-more {
	display: inline-block;
	margin-top: 24px;
	padding-bottom: 4px;
	border-bottom: 1px solid #1A1714;
	font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1A1714;
}

.tgi .tgi-item:hover .tgi-title,
.tgi .tgi-item:hover .tgi-more {
	color: #301014;
	border-color: #301014;
}

.tgi .tgi-item:focus-visible {
	outline: 1px solid #1A1714;
	outline-offset: 6px;
}


/* Guides FAQ: under the Guides list and on each purchase screen ----------- */

:is(#thira-guide, .tgi) .tg-faq {
	max-width: 440px;
	margin: 72px auto 0;
	text-align: center;
	font-family: 'Crimson Pro', Georgia, serif;
	color: #1A1714;
}

:is(#thira-guide, .tgi) .tg-faq-label {
	margin-bottom: 20px;
	font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6E6862;
}

:is(#thira-guide, .tgi) .tg-faq-item {
	border-top: 1px solid #D9D2C5;
}

:is(#thira-guide, .tgi) .tg-faq-item:last-child {
	border-bottom: 1px solid #D9D2C5;
}

:is(#thira-guide, .tgi) .tg-faq-item summary {
	display: block;
	padding: 18px 0;
	font-size: 19px;
	line-height: 1.3;
	color: #1A1714;
	cursor: pointer;
	list-style: none;
}

:is(#thira-guide, .tgi) .tg-faq-item summary::-webkit-details-marker {
	display: none;
}

:is(#thira-guide, .tgi) .tg-faq-item summary::after {
	content: '+';
	display: inline-block;
	margin-left: 10px;
	font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 300;
	color: #6E6862;
	transition: transform 0.3s ease;
}

:is(#thira-guide, .tgi) .tg-faq-item[open] summary::after {
	transform: rotate(45deg);
}

:is(#thira-guide, .tgi) .tg-faq-item summary:hover {
	color: #301014;
}

:is(#thira-guide, .tgi) .tg-faq-a {
	padding: 0 0 22px;
	font-size: 16px;
	line-height: 1.5;
	color: #3D3833;
}

:is(#thira-guide, .tgi) .tg-faq-a a {
	color: #1A1714;
	text-decoration: none;
	border-bottom: 1px solid #CFC7B8;
}


/* Purchase screen: one H1 holding label + city name (same look as before) */
#thira-guide .tg-h1 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

#thira-guide .tg-h1 > span {
	display: block;
}

/* Purchase screen: Inside the Guide (neighborhoods and counts) */
#thira-guide .tg-inside {
	max-width: 440px;
	margin: 64px auto 0;
	text-align: center;
}

#thira-guide .tg-inside-title {
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-grey);
}

#thira-guide .tg-inside-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 0;
	border-top: 1px solid var(--tg-rule);
}

#thira-guide .tg-inside-list li:last-child {
	border-bottom: 1px solid var(--tg-rule);
}

#thira-guide .tg-inside-name {
	font-family: var(--tg-serif);
	font-size: 22px;
	line-height: 1.2;
	color: var(--tg-ink);
}

#thira-guide .tg-inside-n {
	font-family: var(--tg-sans);
	font-weight: 300;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tg-grey);
}
