/**
 * Hibaat Zakat Calculator — the visitor-facing styles.
 * ---------------------------------------------------------------------------
 * WHERE THE COLOURS COME FROM
 *   The Hibaat theme publishes its palette as CSS variables on :root. This file
 *   reads them, with the Hibaat values written out as fallbacks — so the
 *   calculator inherits the site's palette when the theme is active, and still
 *   looks like Hibaat on any other theme.
 *
 *   To restyle, change the variables in the .hz-app block below. Nothing further
 *   down hard-codes a colour.
 *
 * SCOPING
 *   Everything is under .hz-app so the calculator cannot leak styles into the
 *   rest of the page, and a theme's own form styles cannot leak in.
 *
 * @package Hibaat_Zakat_Calculator
 */

/* =========================================================================
 * TOKENS
 * ====================================================================== */

.hz-app {
	--hz-ivory:    var(--ivory, #FBFAF7);
	--hz-espresso: var(--espresso, #241E16);
	--hz-gold:     var(--gold, #B08D57);
	--hz-cream:    var(--cream, #F3ECDF);
	--hz-muted:    var(--muted, #7A6F60);

	--hz-line:     rgba(36, 30, 22, 0.12);
	--hz-line-soft:rgba(36, 30, 22, 0.07);
	--hz-danger:   #9B2C2C;
	--hz-ok:       #2F6B4F;

	--hz-serif:    var(--serif, 'Marcellus', 'Times New Roman', serif);
	--hz-ital:     var(--ital, 'Cormorant Garamond', Georgia, serif);
	--hz-sans:     var(--sans, 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);

	--hz-radius:   2px;
	--hz-pad:      clamp(20px, 5vw, 56px);
	--hz-lattice:  46px;

	position: relative;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 0;
	max-width: 940px;
	background: var(--hz-ivory);
	color: var(--hz-espresso);
	font-family: var(--hz-sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
	border: 1px solid var(--hz-line-soft);
	border-radius: var(--hz-radius);
	overflow: hidden;
}

.hz-app *,
.hz-app *::before,
.hz-app *::after {
	box-sizing: border-box;
}

/* The diamond lattice — two crossed hairline grids, very faint. It is the
   Hibaat motif and it is the only decoration in the whole component. */
.hz-app__lattice {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image:
		repeating-linear-gradient( 45deg, transparent 0, transparent calc(var(--hz-lattice) - 1px), rgba(176, 141, 87, 0.13) calc(var(--hz-lattice) - 1px), rgba(176, 141, 87, 0.13) var(--hz-lattice)),
		repeating-linear-gradient(-45deg, transparent 0, transparent calc(var(--hz-lattice) - 1px), rgba(176, 141, 87, 0.13) calc(var(--hz-lattice) - 1px), rgba(176, 141, 87, 0.13) var(--hz-lattice));
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0) 320px);
	mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0) 320px);
}

.hz-app__inner {
	position: relative;
	padding: var(--hz-pad);
}

/* =========================================================================
 * HEAD
 * ====================================================================== */

.hz-head {
	text-align: center;
	margin: 0 0 clamp(24px, 4vw, 40px);
}

.hz-eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--hz-gold);
}

.hz-title {
	margin: 0 0 12px;
	font-family: var(--hz-serif);
	font-weight: 400;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: var(--hz-espresso);
}

.hz-intro {
	margin: 0 auto;
	max-width: 54ch;
	font-family: var(--hz-ital);
	font-size: clamp(17px, 2.2vw, 20px);
	line-height: 1.6;
	color: var(--hz-muted);
}

/* =========================================================================
 * THE GUIDE
 * ====================================================================== */

.hz-guide__toggle {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 22px 0 0;
	padding: 9px 20px 9px 12px;
	background: transparent;
	border: 1px solid var(--hz-line);
	border-radius: 999px;
	color: var(--hz-espresso);
	font-family: var(--hz-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hz-guide__toggle:hover,
.hz-guide__toggle:focus-visible {
	border-color: var(--hz-gold);
	background: rgba(176, 141, 87, 0.07);
}

.hz-guide__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 1px solid var(--hz-gold);
	border-radius: 50%;
	color: var(--hz-gold);
	font-family: var(--hz-serif);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0;
}

.hz-guide__toggle[aria-expanded="true"] .hz-guide__icon {
	background: var(--hz-gold);
	color: var(--hz-ivory);
}

.hz-guide {
	margin: 0 0 clamp(24px, 4vw, 36px);
	padding: clamp(20px, 3vw, 30px);
	background: var(--hz-cream);
	border: 1px solid rgba(176, 141, 87, 0.28);
	border-radius: var(--hz-radius);
}

.hz-guide[hidden] {
	display: none;
}

.hz-guide__steps {
	counter-reset: hz-step;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: clamp(18px, 3vw, 28px);
}

.hz-guide__steps > li {
	counter-increment: hz-step;
	margin: 0;
	padding: 0;
	position: relative;
}

.hz-guide__steps > li::before {
	content: counter(hz-step);
	display: block;
	margin-bottom: 8px;
	font-family: var(--hz-serif);
	font-size: 13px;
	letter-spacing: 0.2em;
	color: var(--hz-gold);
}

.hz-guide__steps h3 {
	margin: 0 0 6px;
	font-family: var(--hz-serif);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.3;
	color: var(--hz-espresso);
}

.hz-guide__steps p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--hz-muted);
}

.hz-guide__note {
	margin: clamp(18px, 3vw, 26px) 0 0;
	padding-top: 16px;
	border-top: 1px solid rgba(176, 141, 87, 0.28);
	font-family: var(--hz-ital);
	font-size: 16px;
	font-style: italic;
	color: var(--hz-muted);
}

/* =========================================================================
 * NOTICES
 * ====================================================================== */

.hz-notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border-radius: var(--hz-radius);
	font-size: 14px;
	line-height: 1.55;
}

.hz-notice--error {
	background: rgba(155, 44, 44, 0.06);
	border: 1px solid rgba(155, 44, 44, 0.25);
	border-left: 3px solid var(--hz-danger);
	color: var(--hz-danger);
}

/* =========================================================================
 * FORM SHELL
 * ====================================================================== */

.hz-form {
	margin: 0;
}

/* The honeypot. Off-screen rather than display:none — some bots skip anything
   that is display:none, and this one is meant to be filled in. */
.hz-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.hz-block {
	margin: 0 0 clamp(26px, 4vw, 38px);
	padding: clamp(20px, 3vw, 30px);
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid var(--hz-line-soft);
	border-radius: var(--hz-radius);
	min-width: 0;
}

.hz-legend {
	display: flex;
	align-items: center;
	gap: 12px;
	float: left;
	width: 100%;
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--hz-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hz-espresso);
}

/* float:left above needs clearing on the fieldset, which is the classic way to
   make a flex legend behave the same in every browser. */
.hz-legend + * {
	clear: both;
}

.hz-legend__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	background: var(--hz-espresso);
	color: var(--hz-ivory);
	border-radius: 50%;
	font-family: var(--hz-serif);
	font-size: 13px;
	letter-spacing: 0;
}

/* =========================================================================
 * FIELDS
 * ====================================================================== */

.hz-field {
	min-width: 0;
}

.hz-field label,
.hz-check > span {
	display: block;
	margin: 0 0 7px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hz-muted);
}

.hz-field label em {
	font-style: normal;
	text-transform: none;
	letter-spacing: 0.02em;
	opacity: 0.75;
}

.hz-req {
	color: var(--hz-gold);
}

.hz-app input[type="text"],
.hz-app input[type="email"],
.hz-app input[type="tel"],
.hz-app select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	background: #FFFFFF;
	border: 1px solid var(--hz-line);
	border-radius: var(--hz-radius);
	color: var(--hz-espresso);
	font-family: var(--hz-sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hz-app select {
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237A6F60' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	cursor: pointer;
}

.hz-app input[type="text"]:focus,
.hz-app input[type="email"]:focus,
.hz-app input[type="tel"]:focus,
.hz-app select:focus {
	outline: none;
	border-color: var(--hz-gold);
	box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}

.hz-app input::placeholder {
	color: var(--hz-muted);
	opacity: 0.5;
}

.hz-app input[aria-invalid="true"],
.hz-app select[aria-invalid="true"] {
	border-color: var(--hz-danger);
	box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.1);
}

/* An input and its unit selector, joined into one control. */
.hz-combo {
	display: flex;
	align-items: stretch;
}

.hz-combo > input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.hz-combo > select {
	flex: 0 0 auto;
	width: auto;
	min-width: 104px;
	margin-left: -1px;
	background-color: var(--hz-cream);
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.hz-combo > input:focus,
.hz-combo > select:focus {
	position: relative;
	z-index: 1;
}

.hz-prefix {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 13px;
	background: var(--hz-cream);
	border: 1px solid var(--hz-line);
	border-right: 0;
	border-radius: var(--hz-radius) 0 0 var(--hz-radius);
	color: var(--hz-muted);
	font-family: var(--hz-serif);
	font-size: 14px;
	white-space: nowrap;
}

.hz-prefix + input {
	border-radius: 0;
}

.hz-hint {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--hz-muted);
}

/* =========================================================================
 * ITEM ROWS
 * ====================================================================== */

.hz-items {
	display: block;
}

.hz-item {
	position: relative;
	display: grid;
	grid-template-columns: 28px minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 0.9fr) 32px;
	align-items: end;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--hz-line-soft);
}

.hz-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.hz-item__n {
	padding-bottom: 12px;
	font-family: var(--hz-serif);
	font-size: 15px;
	color: var(--hz-gold);
	text-align: center;
}

.hz-item__remove {
	width: 32px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--hz-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.55;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.hz-item__remove:hover,
.hz-item__remove:focus-visible {
	color: var(--hz-danger);
	opacity: 1;
}

.hz-item__remove[hidden] {
	display: none;
}

/*
 * The rate for this row's carat. Only rendered at all when the shop has
 * unticked "Show no figures on screen" in Settings, so on a default install
 * this block never matches anything.
 */
.hz-item__rate {
	grid-row: 2;
	grid-column: 2 / 5;
	margin: 6px 0 0;
	font-family: var(--hz-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hz-gold);
}

.hz-add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	padding: 10px 20px;
	background: transparent;
	border: 1px dashed rgba(176, 141, 87, 0.55);
	border-radius: var(--hz-radius);
	color: var(--hz-gold);
	font-family: var(--hz-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hz-add:hover,
.hz-add:focus-visible {
	background: rgba(176, 141, 87, 0.09);
	border-style: solid;
}

.hz-add[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* =========================================================================
 * RATE CHOICE
 * ====================================================================== */

.hz-choice {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.hz-radio {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 16px 18px;
	background: #FFFFFF;
	border: 1px solid var(--hz-line);
	border-radius: var(--hz-radius);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hz-radio:hover {
	border-color: rgba(176, 141, 87, 0.5);
}

.hz-radio input[type="radio"] {
	flex: 0 0 auto;
	margin: 3px 0 0;
	accent-color: #B08D57;
	width: 16px;
	height: 16px;
}

.hz-radio strong {
	display: block;
	font-family: var(--hz-serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.3;
	color: var(--hz-espresso);
}

.hz-radio em {
	display: block;
	margin-top: 4px;
	font-family: var(--hz-sans);
	font-style: normal;
	font-size: 13px;
	line-height: 1.55;
	color: var(--hz-muted);
}

.hz-radio:has(input:checked) {
	border-color: var(--hz-gold);
	background: rgba(176, 141, 87, 0.05);
}

/* Fallback for browsers without :has() — the JS adds this class too. */
.hz-radio.is-selected {
	border-color: var(--hz-gold);
	background: rgba(176, 141, 87, 0.05);
}

.hz-radio input[disabled] + span {
	opacity: 0.45;
}

.hz-custom {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 16px;
	margin-top: 18px;
	padding-top: 20px;
	border-top: 1px solid var(--hz-line-soft);
}

.hz-custom[hidden] {
	display: none;
}

.hz-custom .hz-hint {
	grid-column: 1 / -1;
	margin-top: 0;
}

/* =========================================================================
 * DETAILS
 * ====================================================================== */

.hz-grid2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px 18px;
}

.hz-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--hz-line-soft);
	cursor: pointer;
}

.hz-check input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 1px 0 0;
	width: 16px;
	height: 16px;
	accent-color: #B08D57;
}

.hz-check > span {
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.01em;
	text-transform: none;
	line-height: 1.55;
}

/* =========================================================================
 * ACTIONS
 * ====================================================================== */

.hz-actions {
	text-align: center;
}

.hz-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-width: 260px;
	margin: 0;
	padding: 17px 42px;
	background: var(--hz-espresso);
	border: 1px solid var(--hz-espresso);
	border-radius: var(--hz-radius);
	color: var(--hz-ivory);
	font-family: var(--hz-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hz-submit:hover,
.hz-submit:focus-visible {
	background: var(--hz-gold);
	border-color: var(--hz-gold);
	color: #FFFFFF;
}

.hz-submit[disabled] {
	cursor: progress;
	opacity: 0.75;
}

.hz-submit__spin {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(251, 250, 247, 0.3);
	border-top-color: var(--hz-ivory);
	border-radius: 50%;
	animation: hz-spin 0.7s linear infinite;
}

.hz-submit.is-busy .hz-submit__spin {
	display: block;
}

@keyframes hz-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.hz-submit__spin { animation-duration: 2.4s; }
	.hz-app * { transition-duration: 0.01ms !important; }
}

.hz-error {
	margin: 18px auto 0;
	max-width: 52ch;
	padding: 12px 16px;
	background: rgba(155, 44, 44, 0.06);
	border: 1px solid rgba(155, 44, 44, 0.25);
	border-radius: var(--hz-radius);
	color: var(--hz-danger);
	font-size: 14px;
	line-height: 1.55;
}

.hz-error[hidden] {
	display: none;
}

.hz-privacy {
	margin: 20px auto 0;
	max-width: 56ch;
	font-size: 12px;
	line-height: 1.6;
	color: var(--hz-muted);
	opacity: 0.9;
}

/* =========================================================================
 * DONE
 * ====================================================================== */

.hz-done {
	text-align: center;
	padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
	background: var(--hz-cream);
	border: 1px solid rgba(176, 141, 87, 0.32);
	border-radius: var(--hz-radius);
}

.hz-done[hidden] {
	display: none;
}

.hz-done:focus {
	outline: none;
}

/* A small gold diamond, drawn rather than an image so it never fails to load. */
.hz-done__mark {
	width: 26px;
	height: 26px;
	margin: 0 auto 18px;
	border: 1px solid var(--hz-gold);
	background: rgba(176, 141, 87, 0.14);
	transform: rotate(45deg);
}

.hz-done__title {
	margin: 0 0 10px;
	font-family: var(--hz-serif);
	font-weight: 400;
	font-size: clamp(22px, 3.4vw, 30px);
	line-height: 1.2;
	color: var(--hz-espresso);
}

.hz-done__body {
	margin: 0 auto 26px;
	max-width: 48ch;
	font-family: var(--hz-ital);
	font-size: 18px;
	line-height: 1.6;
	color: var(--hz-muted);
}

.hz-done__cta {
	display: inline-block;
	padding: 16px 40px;
	background: var(--hz-espresso);
	border: 1px solid var(--hz-espresso);
	border-radius: var(--hz-radius);
	color: var(--hz-ivory);
	font-family: var(--hz-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hz-done__cta:hover,
.hz-done__cta:focus-visible {
	background: var(--hz-gold);
	border-color: var(--hz-gold);
	color: #FFFFFF;
	text-decoration: none;
}

/*
 * The download, offered as an outline beside the filled button above it. Two
 * equally solid buttons would make the visitor stop and choose; this way the
 * report link stays the obvious move and the download is plainly there for
 * anyone who wants the file itself.
 */
.hz-done__second {
	display: inline-block;
	margin-left: 12px;
	padding: 16px 32px;
	background: transparent;
	border: 1px solid var(--hz-line);
	border-radius: var(--hz-radius);
	color: var(--hz-espresso);
	font-family: var(--hz-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.3s ease, color 0.3s ease;
}

.hz-done__second:hover,
.hz-done__second:focus-visible {
	border-color: var(--hz-gold);
	color: var(--hz-gold);
	text-decoration: none;
}

.hz-done__second[hidden] { display: none; }

@media (max-width: 560px) {
	/* Side by side, the two buttons crowd a phone. Stacked, they do not. */
	.hz-done__cta,
	.hz-done__second {
		display: block;
		margin-left: 0;
		text-align: center;
	}

	.hz-done__second { margin-top: 12px; }
}

.hz-done__again {
	margin: 20px 0 0;
	font-size: 13px;
}

.hz-linkish {
	padding: 0;
	background: none;
	border: 0;
	border-bottom: 1px solid rgba(176, 141, 87, 0.5);
	color: var(--hz-muted);
	font-family: var(--hz-sans);
	font-size: 13px;
	font-weight: 300;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.hz-linkish:hover,
.hz-linkish:focus-visible {
	color: var(--hz-gold);
	border-color: var(--hz-gold);
}

/* =========================================================================
 * NISAB — bottom of the screen, as specified
 * ====================================================================== */

.hz-nisab {
	margin: clamp(24px, 4vw, 34px) 0 0;
	padding: 18px 20px;
	background: rgba(176, 141, 87, 0.07);
	border: 1px solid rgba(176, 141, 87, 0.3);
	border-left: 3px solid var(--hz-gold);
	border-radius: var(--hz-radius);
	font-size: 13px;
	line-height: 1.65;
	color: var(--hz-muted);
}

.hz-nisab[hidden] {
	display: none;
}

/* =========================================================================
 * SCRIPTURE
 * ====================================================================== */

.hz-scripture {
	margin: clamp(34px, 6vw, 56px) 0 0;
	text-align: center;
}

.hz-rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 clamp(24px, 4vw, 34px);
}

.hz-rule::before,
.hz-rule::after {
	content: "";
	flex: 1 1 auto;
	max-width: 190px;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(176, 141, 87, 0.45), transparent);
}

.hz-rule span {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border: 1px solid var(--hz-gold);
	transform: rotate(45deg);
}

.hz-verse,
.hz-hadith {
	margin: 0 auto;
	padding: 0;
	max-width: 60ch;
	border: 0;
	quotes: none;
}

.hz-hadith {
	margin-top: clamp(22px, 3.5vw, 32px);
	padding-top: clamp(22px, 3.5vw, 32px);
	border-top: 1px solid var(--hz-line-soft);
}

.hz-verse p,
.hz-hadith p {
	margin: 0 0 12px;
	font-family: var(--hz-ital);
	font-style: italic;
	font-size: clamp(18px, 2.6vw, 23px);
	line-height: 1.55;
	color: var(--hz-espresso);
}

.hz-verse cite,
.hz-hadith cite {
	display: block;
	font-family: var(--hz-sans);
	font-style: normal;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hz-gold);
}

/* =========================================================================
 * NARROW SCREENS
 * ====================================================================== */

@media (max-width: 720px) {
	.hz-item {
		grid-template-columns: 22px minmax(0, 1fr) 30px;
		align-items: start;
		gap: 10px 12px;
		padding: 20px 0;
	}

	.hz-item__n {
		grid-row: 1;
		grid-column: 1;
		padding-bottom: 0;
		padding-top: 26px;
	}

	.hz-item__remove {
		grid-row: 1;
		grid-column: 3;
		height: 34px;
		margin-top: 22px;
	}

	.hz-item .hz-field--label {
		grid-row: 1;
		grid-column: 2;
	}

	.hz-item .hz-field--weight {
		grid-row: 2;
		grid-column: 2;
	}

	.hz-item .hz-field--karat {
		grid-row: 3;
		grid-column: 2;
	}

	.hz-item__rate {
		grid-row: 4;
		grid-column: 2;
	}

	.hz-custom {
		grid-template-columns: minmax(0, 1fr);
	}

	.hz-submit {
		width: 100%;
		min-width: 0;
		padding-left: 20px;
		padding-right: 20px;
		letter-spacing: 0.16em;
	}

	.hz-done__cta {
		display: block;
		padding-left: 20px;
		padding-right: 20px;
		letter-spacing: 0.16em;
	}
}

/* =========================================================================
 * PRINT — the calculator is not the deliverable, the report is
 * ====================================================================== */

@media print {
	.hz-app {
		border: 0;
	}
	.hz-app__lattice,
	.hz-guide__toggle,
	.hz-add,
	.hz-actions,
	.hz-done__again {
		display: none !important;
	}
}
