/* ==========================================================================
   Footer — desktop & mobile
   ========================================================================== */

.dn-footer { margin-top: 60px; background: #fff; color: #333; }
.dn-footer-in { border-top: 1px solid #e3e3e3; padding-top: 44px; padding-bottom: 22px; }
.dn-footer p { margin: 0; }

/* Logo */
.dn-footer-logo { margin-bottom: 34px; line-height: 0; }
.dn-footer-logo a { display: inline-block; }
.dn-footer-logo img { height: 30px; width: auto; max-width: 240px; object-fit: contain; }
.dn-footer-sitename {
	display: inline-flex; align-items: center; gap: 6px; font-family: var(--dn-font-head);
	font-size: 23px; line-height: 1.2; font-weight: 700; color: #1a1a1a;
}
.dn-footer-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dn-accent); }

/* Link grid */
.dn-footer-menu {
	list-style: none; margin: 0; padding: 0 0 26px;
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 20px;
}
.dn-footer-menu a { font-size: 16px; line-height: 1.5; color: #222; }
.dn-footer-menu a:hover { color: var(--dn-link); }

/* Follow + apps */
.dn-footer-mid {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
	padding: 24px 0 36px; border-top: 1px solid #e3e3e3;
}
.dn-footer-label { font-size: 13px; color: #555; margin-bottom: 14px !important; }
.dn-footer-follow .dn-footer-label { padding-left: 88px; }
.dn-footer-social { display: flex; align-items: center; gap: 22px; }
.dn-footer-social a { display: inline-flex; line-height: 0; border-radius: 50%; transition: transform .15s; }
.dn-footer-social a:hover { transform: translateY(-2px); }
.dn-footer-apps { text-align: right; }
.dn-footer-apps .dn-footer-label { padding-right: 62px; }
.dn-app-badges { display: flex; gap: 16px; justify-content: flex-end; }
.dn-app-badge {
	display: inline-flex; align-items: center; gap: 9px; min-width: 128px; height: 40px; padding: 0 16px;
	background: #fff; color: #111; border: 1px solid #d5d5d5; border-radius: 4px;
	font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.05; text-align: left;
}
.dn-app-badge small { display: block; font-size: 7.5px; font-weight: 400; text-transform: uppercase; letter-spacing: .2px; }
.dn-app-badge:hover { border-color: #999; color: #111; }

/* Bottom links with dot separators */
.dn-footer-links-wrap { border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; padding: 9px 0; }
.dn-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 6px; }
.dn-footer-links li { display: inline-flex; align-items: center; }
.dn-footer-links li:not(:last-child)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c4c4c4; margin: 0 14px; }
.dn-footer-links a { font-size: 14px; color: #555; }
.dn-footer-links a:hover { color: var(--dn-link); }

/* Copyright */
.dn-footer-copy { text-align: center; padding-top: 14px; font-size: 12.5px; color: #666; }
.dn-footer-credit { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.dn-copy-sep { color: #bbb; }
.dn-footer-addr { margin-bottom: 8px !important; }
.dn-footer-widgets { margin-top: 12px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.dn-footer-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Mobile: everything centred ---------- */
@media (max-width: 767px) {
	.dn-footer { margin-top: 36px; }
	.dn-footer-in { padding-top: 26px; padding-bottom: 18px; }
	.dn-footer-logo { text-align: center; margin-bottom: 16px; }
	.dn-footer-logo img { height: 28px; margin: 0 auto; }

	.dn-footer-menu {
		display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; padding-bottom: 20px;
	}
	.dn-footer-menu a { font-size: 16.5px; }

	.dn-footer-mid { flex-direction: column; align-items: center; gap: 0; padding: 0; border-top: 0; }
	.dn-footer-follow, .dn-footer-apps { width: 100%; text-align: center; border-top: 1px solid #e3e3e3; padding: 20px 0; }
	.dn-footer-follow .dn-footer-label, .dn-footer-apps .dn-footer-label { padding: 0; margin-bottom: 12px !important; }
	.dn-footer-social { justify-content: center; gap: 26px; }
	.dn-app-badges { justify-content: center; }
	.dn-app-badge { min-width: 0; padding: 0 22px; height: 42px; }

	.dn-footer-links-wrap { padding: 16px 0; }
	.dn-footer-links { row-gap: 12px; }
	.dn-footer-links a { font-size: 15px; }

	.dn-footer-copy { padding-top: 16px; }
	.dn-footer-credit { flex-direction: column; gap: 12px; }
	.dn-footer-editor { order: -1; }
	.dn-copy-sep { display: none; }
}

/* Unlicensed copy notice */
.dn-unlicensed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); background: #111; color: #fff; font-size: 14px; text-align: center; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
.dn-unlicensed a { padding: 4px 12px; border-radius: 999px; background: #d10a11; color: #fff; font-size: 13px; }
.dn-unlicensed a:hover { background: #fff; color: #111; }
body:has(.dn-unlicensed) { padding-bottom: 44px; }
