/*
 * ALL AT SEA Awards — the Guest Book (/guestbook/, v0.11.0).
 *
 * Read on a phone, at a bar, in sunlight, one-handed. Large type, big tap
 * targets, one column, nothing that needs explaining. Tokens from the Type &
 * Space Standard with a literal fallback on every var().
 */

.aas-gb {
	--gb-navy: var(--aas-navy, #163A57);
	--gb-foam: var(--aas-foam, #F1F4F4);
	--gb-text: var(--aas-text, #1B3A50);
	--gb-muted: var(--aas-muted-2, #3E566A);
	--gb-sunset: var(--aas-sunset-link, #A63C22);
	--gb-hair: var(--aas-hair, #D3DEE0);
	--gb-paper: #FBF8F1;

	color: var(--gb-text);
	font-size: var(--fs-body, 1.25rem);
	line-height: var(--lh-body, 1.7);
}

.aas-gb__wrap {
	max-width: 44rem;
	margin: 0 auto;
	padding: var(--space-16, 16px) var(--space-16, 16px) var(--space-96, 96px);
}

.aas-gb__head { margin-bottom: var(--space-16, 16px); }
.aas-gb__head--sealed { display: flex; align-items: center; gap: var(--space-16, 16px); }
.aas-gb__seal { flex: 0 0 auto; line-height: 0; }
.aas-gb__seal img { width: 84px; height: 84px; }

/* One request on this page. The site's other asks (the awards band, the
   leaderboard advert, the newsletter band, the sticky advert) stand down
   here, as they do on the bar kit page. */
.aas-guest-book-page .aas-band--awards,
.aas-guest-book-page .aas-ad-band--leaderboard,
.aas-guest-book-page .aas-signup,
.aas-guest-book-page .aas-anchor { display: none !important; }

.aas-gb__kicker {
	margin: 0 0 2px;
	font-family: var(--aas-sans, "Archivo", system-ui, sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gb-muted);
}
.aas-gb__kicker a { color: inherit; text-decoration: none; }
.aas-gb__kicker a:hover { text-decoration: underline; }

.aas-gb__title {
	margin: 0;
	font-size: clamp(1.6rem, 6vw, 2.75rem);
	line-height: 1.1;
	color: var(--gb-navy);
}

.aas-gb__island { margin: 2px 0 0; font-size: 1rem; color: var(--gb-muted); }

.aas-gb__section {
	margin: 0 0 var(--space-56, 56px);
	padding-top: var(--space-32, 32px);
	border-top: 1px solid var(--gb-hair);
}

.aas-gb__h2 {
	margin: 0 0 var(--space-16, 16px);
	font-size: 1.6rem;
	line-height: 1.2;
	color: var(--gb-navy);
}

.aas-gb__h3 {
	margin: 0 0 var(--space-16, 16px);
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--gb-navy);
}

.aas-gb__lede { margin: 0 0 var(--space-24, 24px); }

.aas-gb__small { font-size: 0.95rem; line-height: 1.5; color: var(--gb-muted); }

/* ------------------------------------------------------------- Honours */

.aas-gb__honours { display: grid; gap: var(--space-24, 24px); border-top: 0; padding-top: 0; }

.aas-gb__honour {
	display: flex;
	align-items: center;
	gap: var(--space-24, 24px);
	color: inherit;
	text-decoration: none;
}
.aas-gb__honour img { flex: 0 0 auto; width: 120px; height: 120px; }
.aas-gb__honour-text { line-height: 1.45; }
.aas-gb__honour-text strong { display: block; font-size: 1.3rem; color: var(--gb-navy); }

/* -------------------------------------------------------------- Button */

.aas-gb__button {
	display: inline-block;
	min-height: 56px;
	padding: 14px 28px;
	border: 0;
	border-radius: 6px;
	background: var(--gb-sunset);
	color: #fff;
	font-family: var(--aas-sans, "Archivo", system-ui, sans-serif);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}
.aas-gb__button:hover,
.aas-gb__button:focus { background: var(--gb-navy); color: #fff; }

/* ------------------------------------------------------------ The book */

.aas-gb__entries { margin: 0 0 var(--space-40, 40px); }

.aas-gb__entry {
	margin: 0 0 var(--space-16, 16px);
	padding: var(--space-24, 24px);
	border: 0;
	border-left: 4px solid var(--gb-sunset);
	border-radius: 0 6px 6px 0;
	background: var(--gb-paper);
	font-style: normal;
}
.aas-gb__entry p {
	margin: 0 0 var(--space-8, 8px);
	font-family: var(--aas-serif, Georgia, "Times New Roman", serif);
	font-size: 1.3rem;
	line-height: 1.5;
	color: var(--gb-navy);
}
.aas-gb__entry footer { font-size: 1rem; color: var(--gb-muted); }
.aas-gb__when { white-space: nowrap; }

/* v0.11.7: on the index, each line says whose book it came from. */
.aas-gb__at { display: block; margin-top: var(--space-4, 4px); }
.aas-gb__at a { font-weight: 700; color: var(--gb-sunset); }

.aas-gb__entry--lead { padding: var(--space-16, 16px); }
.aas-gb__entry--lead p { font-size: 1.15rem; }

.aas-gb__empty { margin: 0 0 var(--space-32, 32px); font-style: italic; color: var(--gb-muted); }

.aas-gb__yours {
	margin: 0 0 var(--space-32, 32px);
	padding: var(--space-24, 24px);
	border: 2px solid var(--gb-navy);
	border-radius: 6px;
	scroll-margin-top: 120px;
}
.aas-gb__yours-h { margin: 0 0 var(--space-16, 16px); font-size: 1.4rem; font-weight: 700; color: var(--gb-navy); }
.aas-gb__yours .aas-gb__entry { margin-bottom: var(--space-8, 8px); }

/* ---------------------------------------------------------------- Form */

.aas-gb__form {
	margin: 0 0 var(--space-40, 40px);
	padding: var(--space-16, 16px);
	border-radius: 6px;
	background: var(--gb-foam);
	scroll-margin-top: 120px;
}

.aas-gb__field { margin: 0 0 var(--space-16, 16px); }
.aas-gb__field label.aas-gb__question {
	margin-bottom: 8px;
	font-family: var(--aas-serif, Georgia, "Times New Roman", serif);
	font-size: clamp(1.35rem, 5.2vw, 1.9rem);
	line-height: 1.2;
}
.aas-gb__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .aas-gb__pair { grid-template-columns: 1fr; gap: 0; } }
.aas-gb__submit { margin: 0 0 var(--space-24, 24px); }
.aas-gb__submit .aas-gb__button { width: 100%; }
.aas-gb__field--email { padding-top: var(--space-16, 16px); border-top: 1px solid var(--gb-hair); }
.aas-gb__field--email label { font-weight: 400; }
.aas-gb__button--quiet { background: var(--gb-navy); }
.aas-gb__honour-line { margin: 0 0 8px; font-size: 1rem; }
.aas-gb__honour-line a { color: var(--gb-navy); }
.aas-gb__field label { display: block; margin-bottom: 4px; font-weight: 700; color: var(--gb-navy); }
.aas-gb__optional { font-weight: 400; color: var(--gb-muted); }
.aas-gb__hint { display: block; margin-bottom: 6px; font-size: 0.95rem; line-height: 1.4; color: var(--gb-muted); }

.aas-gb__field input[type="text"],
.aas-gb__field input[type="email"],
.aas-gb__field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--gb-muted);
	border-radius: 6px;
	background: #fff;
	color: var(--gb-text);
	font: inherit;
	font-size: 1.15rem; /* 16px or more: iOS will not zoom the page on focus. */
}
.aas-gb__field textarea { min-height: 5.5rem; resize: vertical; }

.aas-gb__field--check label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; }
.aas-gb__field--check input { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 6px; }

.aas-gb__error { display: block; margin-top: 6px; font-weight: 700; color: #A11616; }

/* Hidden from people, present for scripts. Not display:none: some scripts skip those. */
.aas-gb__trap {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------- Index */

.aas-gb__islands { columns: 2 16rem; column-gap: var(--space-40, 40px); margin-bottom: var(--space-32, 32px); }
.aas-gb__island-group { break-inside: avoid; margin-bottom: var(--space-24, 24px); }
.aas-gb__island-group .aas-gb__h3 { margin-bottom: 4px; }
.aas-gb__places { margin: 0; padding: 0; list-style: none; }
.aas-gb__places li { padding: 6px 0; }
.aas-gb__places a { font-weight: 700; color: var(--gb-sunset); }
.aas-gb__tag {
	margin-left: 6px;
	font-family: var(--aas-sans, "Archivo", system-ui, sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gb-muted);
}

.aas-gb__foot { padding-top: var(--space-24, 24px); border-top: 1px solid var(--gb-hair); }
.aas-gb__foot a { font-weight: 700; color: var(--gb-sunset); }

/* v0.11.2: the contest's own picture is the vote ask; it carries the place's pick. */
.aas-gb__card { display: block; margin: 0 0 var(--space-16, 16px); border-radius: 10px; overflow: hidden; }
.aas-gb__card img { display: block; width: 100%; height: auto; }
.aas-gb__card:hover, .aas-gb__card:focus { outline: 3px solid var(--gb-sunset); outline-offset: 2px; }
