/*
 * Designooor Directories — front-end styles
 * Editorial / magazine aesthetic: sharp corners, thin rules, generous
 * whitespace, no drop-shadows or scale-hover gimmicks. Cards are
 * transparent by default and rely on `currentColor` for borders/text,
 * so they inherit whatever background the page/theme already has —
 * light mode, dark mode, doesn't matter, nothing to detect or guess.
 */

.dsn-grid,
.dsn-calendar,
.dsn-timeline,
.dsn-single {
	--dsn-accent: #b8863a;      /* used sparingly: dots, tag borders, hover */
	--dsn-line: currentColor;
	--dsn-radius: 0px;

	box-sizing: border-box;
	margin: 32px 0;
	color: inherit;
}

.dsn-grid *,
.dsn-calendar *,
.dsn-timeline *,
.dsn-single *,
.dsn-grid *::before,
.dsn-calendar *::before,
.dsn-timeline *::before {
	box-sizing: border-box;
}

.dsn-empty {
	padding: 24px 0;
	opacity: .6;
	font-size: 14px;
}

/* ---------- Grid layout ---------- */

.dsn-grid {
	display: grid;
	gap: 1px;
	background: currentColor;
	opacity: 1;
	border-top: 1px solid currentColor;
	border-left: 1px solid currentColor;
}

.dsn-grid { grid-template-columns: repeat(3, 1fr); }
.dsn-cols-1 { grid-template-columns: repeat(1, 1fr); }
.dsn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dsn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.dsn-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.dsn-cols-4,
	.dsn-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.dsn-grid,
	.dsn-cols-1,
	.dsn-cols-2,
	.dsn-cols-3,
	.dsn-cols-4 { grid-template-columns: repeat(1, 1fr); }
}

/* ---------- Card base ---------- */

.dsn-card {
	position: relative;
	background: var(--dsn-card-surface, transparent);
	color: inherit;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	display: flex;
	flex-direction: column;
	opacity: .96;
}

.dsn-card:hover { opacity: 1; }

.dsn-card-body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.dsn-card-title {
	margin: 0;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.dsn-card-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: background-size .25s ease;
}

.dsn-card-title a:hover {
	background-size: 100% 1px;
}

.dsn-divider {
	border: none;
	border-top: 1px solid currentColor;
	opacity: .18;
	margin: 4px 0;
}

/* ---------- Status dot + eyebrow row (replaces old badge pills) ---------- */

.dsn-tag-row {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	opacity: .75;
}

.dsn-tag-row-sep { opacity: .4; }

.dsn-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	display: inline-block;
	background: currentColor;
	opacity: .5;
}

.dsn-status-dot.dsn-status-active { background: #2e8b57; opacity: 1; }
.dsn-status-dot.dsn-status-upcoming { background: #2457a6; opacity: 1; }
.dsn-status-dot.dsn-status-expired { background: currentColor; opacity: .35; }

.dsn-partner-text { color: var(--dsn-accent); opacity: 1; }

.dsn-eyebrow {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	z-index: 2;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 10px;
	background: #111;
	color: #fff;
}

.dsn-status-expired { opacity: .75; }
.dsn-status-expired .dsn-event-thumb img { filter: grayscale(0.5); }

/* ---------- Event card specifics ---------- */

.dsn-event-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: rgba(128,128,128,.08);
}

.dsn-event-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dsn-meta-list,
.dsn-single-meta {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 13px;
	opacity: .75;
}

.dsn-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dsn-meta-row a { color: inherit; }

.dsn-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	opacity: .75;
}

/* ---------- Company card specifics ---------- */

.dsn-company-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 22px 0;
	text-decoration: none;
	color: inherit;
}

.dsn-company-logo {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	overflow: hidden;
	background: rgba(128,128,128,.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.dsn-company-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.dsn-company-card .dsn-card-title { font-size: 1.1em; }

.dsn-company-bio {
	margin: 14px 22px 0;
	font-size: 13.5px;
	line-height: 1.7;
	opacity: .75;
}

.dsn-single-bio { margin: 0 0 4px; font-size: 15px; }

.dsn-company-card .dsn-divider { margin: 14px 22px; }

.dsn-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 22px;
}

.dsn-single .dsn-tags { padding: 0; margin-bottom: 4px; }

.dsn-tag {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 5px 10px;
	border: 1px solid var(--dsn-accent);
	color: var(--dsn-accent);
	white-space: nowrap;
}

.dsn-company-contact { padding: 0 22px; }

/* ---------- Icons (inline, no font dependency) ---------- */

.dsn-icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	opacity: .7;
}

.dsn-icon-calendar { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8v10H5V10h14z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8v10H5V10h14z'/></svg>"); }
.dsn-icon-pin { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/></svg>"); }
.dsn-icon-phone { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.9 15.9 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.9 15.9 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/></svg>"); }
.dsn-icon-mail { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 5h20v14H2V5zm2 2v.4l8 5.2 8-5.2V7H4zm16 2.4-7.4 4.8a1 1 0 0 1-1.2 0L4 9.4V17h16V9.4z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 5h20v14H2V5zm2 2v.4l8 5.2 8-5.2V7H4zm16 2.4-7.4 4.8a1 1 0 0 1-1.2 0L4 9.4V17h16V9.4z'/></svg>"); }
.dsn-icon-link { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.9 12a5 5 0 0 1 5-5H12v2H8.9a3 3 0 1 0 0 6H12v2H8.9a5 5 0 0 1-5-5zm7.1 1h2v-2h-2v2zm4.1-6H12v2h3.1a3 3 0 1 1 0 6H12v2h3.1a5 5 0 0 0 0-10z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3.9 12a5 5 0 0 1 5-5H12v2H8.9a3 3 0 1 0 0 6H12v2H8.9a5 5 0 0 1-5-5zm7.1 1h2v-2h-2v2zm4.1-6H12v2h3.1a3 3 0 1 1 0 6H12v2h3.1a5 5 0 0 0 0-10z'/></svg>"); }

/* ---------- Buttons — sharp corners, matches site's own solid black CTA style ---------- */

.dsn-card-actions {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.dsn-company-card .dsn-card-actions { padding: 6px 22px 22px; }
.dsn-single .dsn-card-actions { padding-top: 4px; }

.dsn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid currentColor;
	transition: background .18s ease, color .18s ease;
	white-space: nowrap;
}

.dsn-btn-solid {
	background: #111;
	border-color: #111;
	color: #fff;
}
.dsn-btn-solid:hover { background: var(--dsn-accent); border-color: var(--dsn-accent); }

.dsn-btn-outline {
	background: transparent;
	color: inherit;
}
.dsn-btn-outline:hover {
	background: currentColor;
	color: Canvas;
}

/* ===========================================================
 * SINGLE PAGE detail block (auto-injected above post content)
 * =========================================================== */

.dsn-single {
	margin: 0 0 28px;
	padding-bottom: 4px;
}

.dsn-single .dsn-tag-row { margin-bottom: 14px; }
.dsn-single .dsn-single-meta { margin-bottom: 16px; font-size: 14px; }

/* ===========================================================
 * CALENDAR (month grid) — sidebar widget / shortcode / Elementor
 * =========================================================== */

.dsn-calendar {
	font-size: 13px;
	max-width: 320px;
}

.dsn-calendar-title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.dsn-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-weight: 700;
	letter-spacing: .03em;
}

.dsn-calendar-nav-btn {
	color: inherit;
	text-decoration: none;
	font-size: 18px;
	line-height: 1;
	padding: 2px 8px;
	border: 1px solid currentColor;
	opacity: .6;
}
.dsn-calendar-nav-btn:hover { opacity: 1; }

.dsn-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
}

.dsn-calendar-weekday {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	opacity: .5;
	padding-bottom: 6px;
}

.dsn-calendar-cell {
	position: relative;
	padding: 7px 0;
	font-size: 12px;
	opacity: .6;
}

.dsn-calendar-cell-empty { opacity: 0; }

.dsn-calendar-cell.dsn-has-event {
	opacity: 1;
	font-weight: 700;
	cursor: default;
}

.dsn-calendar-cell.dsn-has-event::after {
	content: '';
	position: absolute;
	bottom: 1px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--dsn-accent);
}

.dsn-calendar-cell.dsn-is-today {
	background: #111;
	color: #fff;
	opacity: 1;
}

.dsn-calendar-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid currentColor;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.dsn-calendar-list a {
	display: flex;
	gap: 10px;
	align-items: baseline;
	color: inherit;
	text-decoration: none;
}

.dsn-calendar-list-date {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .55;
	flex: 0 0 auto;
}

.dsn-calendar-list-title {
	font-size: 12.5px;
	line-height: 1.4;
}

.dsn-calendar-list a:hover .dsn-calendar-list-title { text-decoration: underline; }

.dsn-calendar-empty {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid currentColor;
	opacity: .5;
	font-size: 12.5px;
}

/* ===========================================================
 * TIMELINE — vertical editorial list, grouped by month
 * =========================================================== */

.dsn-timeline {
	position: relative;
}

.dsn-timeline-group + .dsn-timeline-group {
	margin-top: 4px;
}

.dsn-timeline-month {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .55;
	margin: 30px 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid currentColor;
}

.dsn-timeline-group:first-child .dsn-timeline-month { margin-top: 0; }

.dsn-timeline-item {
	display: grid;
	grid-template-columns: 56px 14px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid currentColor;
	border-bottom-color: rgba(128,128,128,.18);
	text-decoration: none;
	color: inherit;
}

.dsn-timeline-item:last-child { border-bottom: none; }

.dsn-timeline-date {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .6;
}

.dsn-timeline-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: .3;
	justify-self: center;
}

.dsn-timeline-item.dsn-status-active .dsn-timeline-dot { background: #2e8b57; opacity: 1; }
.dsn-timeline-item.dsn-status-upcoming .dsn-timeline-dot { background: #2457a6; opacity: 1; }
.dsn-timeline-item.dsn-status-expired .dsn-timeline-dot { opacity: .25; }

.dsn-timeline-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dsn-timeline-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.dsn-timeline-item:hover .dsn-timeline-title { text-decoration: underline; }

.dsn-timeline-loc {
	font-size: 12px;
	opacity: .6;
}

.dsn-timeline-status {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .55;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.dsn-timeline-item {
		grid-template-columns: 44px 10px 1fr;
	}
	.dsn-timeline-status { display: none; }
}
