/* Al-Samarrai Footer 1.0.2 — deep green with the khatam lattice the header
 * uses, a gold seam with a medallion on top, four columns that fold to two
 * and one on tablet and phone. The logo sits on the same paper tile with a
 * gold ring as in the header. Selectors start at #colophon.ahf so Astra's
 * footer and link CSS cannot reach them. */

#colophon.ahf { --ahf-green: #1a4232; --ahf-deep: #12301f; --ahf-gold: #dcbc7e; --ahf-gold-d: #a98545; --ahf-paper: #fbf9f4; --ahf-cream: #f1e7d3;
	position: relative; isolation: isolate; margin: 0; padding: 0; color: rgba(241, 231, 211, .82); font-family: inherit; font-size: 15px; line-height: 1.8; text-align: start;
	background: linear-gradient(165deg, var(--ahf-green), var(--ahf-deep) 70%); }
#colophon.ahf::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23dcbc7e' stroke-opacity='0.08' stroke-width='1.1'%3E%3Cpath d='M100.00 50.00L85.36 64.64L85.36 85.36L64.64 85.36L50.00 100.00L35.36 85.36L14.64 85.36L14.64 64.64L0.00 50.00L14.64 35.36L14.64 14.64L35.36 14.64L50.00 0.00L64.64 14.64L85.36 14.64L85.36 35.36ZM93.00 50.00L80.41 62.59L80.41 80.41L62.59 80.41L50.00 93.00L37.41 80.41L19.59 80.41L19.59 62.59L7.00 50.00L19.59 37.41L19.59 19.59L37.41 19.59L50.00 7.00L62.59 19.59L80.41 19.59L80.41 37.41ZM70.33 58.42L61.91 61.91L58.42 70.33L50.00 66.84L41.58 70.33L38.09 61.91L29.67 58.42L33.16 50.00L29.67 41.58L38.09 38.09L41.58 29.67L50.00 33.16L58.42 29.67L61.91 38.09L70.33 41.58L66.84 50.00ZM-14.64 -14.64h29.29v29.29h-29.29ZM-10.14 -10.14h20.29v20.29h-20.29ZM85.36 -14.64h29.29v29.29h-29.29ZM89.86 -10.14h20.29v20.29h-20.29ZM-14.64 85.36h29.29v29.29h-29.29ZM-10.14 89.86h20.29v20.29h-20.29ZM85.36 85.36h29.29v29.29h-29.29ZM89.86 89.86h20.29v20.29h-20.29Z'/%3E%3Ccircle cx='50' cy='50' r='9'/%3E%3C/g%3E%3Cg fill='%23dcbc7e' fill-opacity='0.12'%3E%3Ccircle cx='50' cy='50' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='100' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='100' r='2.2'/%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 96px 96px; -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35)); mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35)); }
#colophon.ahf *, #colophon.ahf *::before, #colophon.ahf *::after { box-sizing: border-box; }
#colophon.ahf .ahf-g { display: block; width: 18px; height: 18px; flex: none; }
#colophon.ahf a { color: inherit; text-decoration: none; }
#colophon.ahf ul { list-style: none; margin: 0; padding: 0; }
#colophon.ahf p { margin: 0; }

/* The container matches the rest of the site: 1160px, 16 / 24 / 32 gutter. */
#colophon.ahf .ahf-in { max-width: 1160px; margin-inline: auto; padding-inline: 32px; }

/* Gold seam with a small eight-pointed medallion in the middle. */
#colophon.ahf .ahf-seam { position: relative; height: 3px; background: linear-gradient(90deg, transparent, var(--ahf-gold-d) 18%, var(--ahf-gold) 50%, var(--ahf-gold-d) 82%, transparent); }
#colophon.ahf .ahf-seam span { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--ahf-deep); border: 2px solid var(--ahf-gold); transform: rotate(45deg); border-radius: 4px; }
#colophon.ahf .ahf-seam span::after { content: ""; position: absolute; inset: 3px; border: 1.5px solid var(--ahf-gold); transform: rotate(45deg); border-radius: 2px; }

#colophon.ahf .ahf-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px 44px; padding-top: 64px; padding-bottom: 52px; }

/* Brand column */
#colophon.ahf .ahf-id { display: flex; align-items: center; gap: 14px; }
#colophon.ahf .ahf-logo { flex: none; display: grid; place-items: center; width: 68px; height: 68px; padding: 6px; border-radius: 16px; background: var(--ahf-paper); box-shadow: 0 0 0 1.5px var(--ahf-gold-d), 0 8px 20px -8px rgba(0, 0, 0, .55); }
#colophon.ahf .ahf-logo img { display: block; width: 100%; height: auto; }
#colophon.ahf .ahf-id-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#colophon.ahf .ahf-id-t strong { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.45; }
#colophon.ahf .ahf-id-t small { color: var(--ahf-gold); font-size: 13px; line-height: 1.6; }
#colophon.ahf .ahf-about { margin-top: 20px; max-width: 38ch; font-size: 15px; line-height: 1.95; }
#colophon.ahf .ahf-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#colophon.ahf .ahf-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ahf-cream); background: rgba(255, 255, 255, .06); border: 1px solid rgba(220, 188, 126, .28); transition: background .25s, color .25s, border-color .25s, transform .25s; }
#colophon.ahf .ahf-social a .ahf-g { width: 17px; height: 17px; }
#colophon.ahf .ahf-social a:hover, #colophon.ahf .ahf-social a:focus-visible { background: var(--ahf-gold); border-color: var(--ahf-gold); color: var(--ahf-green); transform: translateY(-2px); }

/* Link columns */
#colophon.ahf .ahf-h { position: relative; margin: 0 0 20px; padding-bottom: 12px; color: var(--ahf-gold); font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
#colophon.ahf .ahf-h::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 2px; border-radius: 2px; background: var(--ahf-gold-d); }
#colophon.ahf .ahf-links { display: grid; gap: 4px; }
#colophon.ahf .ahf-links a { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; color: rgba(255, 255, 255, .86); font-size: 15px; transition: color .2s, padding .2s; }
#colophon.ahf .ahf-links a::before { content: ""; width: 6px; height: 6px; flex: none; border: 1.5px solid var(--ahf-gold-d); transform: rotate(45deg); transition: background .2s, border-color .2s; }
#colophon.ahf .ahf-links a:hover, #colophon.ahf .ahf-links a:focus-visible, #colophon.ahf .ahf-links a[aria-current] { color: var(--ahf-gold); padding-inline-start: 4px; }
#colophon.ahf .ahf-links a:hover::before, #colophon.ahf .ahf-links a[aria-current]::before { background: var(--ahf-gold); border-color: var(--ahf-gold); }

/* Contact column */
#colophon.ahf .ahf-reach { display: grid; gap: 14px; }
#colophon.ahf .ahf-reach a { display: flex; align-items: center; gap: 12px; color: #fff; }
#colophon.ahf .ahf-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--ahf-gold); background: rgba(220, 188, 126, .1); border: 1px solid rgba(220, 188, 126, .24); transition: background .25s, color .25s; }
#colophon.ahf .ahf-reach a > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
#colophon.ahf .ahf-reach small { color: rgba(241, 231, 211, .62); font-size: 12px; }
#colophon.ahf .ahf-reach bdi { font-size: 15px; overflow-wrap: anywhere; text-align: start; }
#colophon.ahf .ahf-reach a:hover .ahf-ic, #colophon.ahf .ahf-reach a:focus-visible .ahf-ic { background: var(--ahf-gold); color: var(--ahf-green); }
#colophon.ahf .ahf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
#colophon.ahf .ahf-ask { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; background: var(--ahf-gold); color: var(--ahf-green); font-size: 15px; font-weight: 700; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); transition: background .25s, transform .25s; }
#colophon.ahf .ahf-ask .ahf-g { width: 16px; height: 16px; }
#colophon.ahf .ahf-ask:hover, #colophon.ahf .ahf-ask:focus-visible { background: #fff; transform: translateY(-2px); }
#colophon.ahf .ahf-more { display: inline-flex; align-items: center; gap: 6px; color: var(--ahf-gold); font-size: 14px; font-weight: 700; transition: gap .2s, color .2s; }
#colophon.ahf .ahf-more .ahf-g { width: 15px; height: 15px; }
#colophon.ahf .ahf-more:hover, #colophon.ahf .ahf-more:focus-visible { color: #fff; gap: 10px; }

/* Bottom bar: one centred line. The side padding keeps it clear of Astra's
 * fixed scroll-to-top button and keeps the centre true. */
#colophon.ahf .ahf-bar { border-top: 1px solid rgba(220, 188, 126, .18); background: rgba(0, 0, 0, .16); }
#colophon.ahf .ahf-bar .ahf-in { display: flex; justify-content: center; text-align: center; padding: 20px 72px; font-size: 13.5px; color: rgba(241, 231, 211, .7); }

#colophon.ahf a:focus-visible { outline: 2px solid var(--ahf-gold); outline-offset: 3px; }

@media (max-width: 1024px) {
	#colophon.ahf .ahf-in { padding-inline: 24px; }
	#colophon.ahf .ahf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; padding-top: 56px; }
	#colophon.ahf .ahf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(220, 188, 126, .16); }
	#colophon.ahf .ahf-about { grid-column: 1; margin-top: 0; max-width: 60ch; }
	#colophon.ahf .ahf-social { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

@media (max-width: 767px) {
	#colophon.ahf .ahf-in { padding-inline: 16px; }
	#colophon.ahf .ahf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 48px; padding-bottom: 36px; }
	#colophon.ahf .ahf-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding-bottom: 28px; }
	#colophon.ahf .ahf-id { flex-direction: column; gap: 12px; }
	#colophon.ahf .ahf-id-t { align-items: center; }
	#colophon.ahf .ahf-id-t strong { font-size: 18px; }
	#colophon.ahf .ahf-about { margin-top: 14px; font-size: 14.5px; }
	#colophon.ahf .ahf-social { justify-content: center; margin-top: 18px; }
	#colophon.ahf .ahf-h { margin-bottom: 14px; font-size: 15px; }
	#colophon.ahf .ahf-links a { font-size: 14.5px; }
	#colophon.ahf .ahf-contact { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid rgba(220, 188, 126, .16); }
	#colophon.ahf .ahf-reach { gap: 12px; }
	#colophon.ahf .ahf-cta { flex-direction: column; align-items: stretch; }
	#colophon.ahf .ahf-ask { justify-content: center; }
	#colophon.ahf .ahf-more { justify-content: center; }
	#colophon.ahf .ahf-bar .ahf-in { padding: 16px 16px 76px; font-size: 12.5px; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
	#colophon.ahf a, #colophon.ahf a * { transition: none; }
}
