/* Trade show directory (/events and the continent pages). Colors come from the site variables in universal.css. */
.td { --td-primary: var(--primary-color, #ff7f00); --td-secondary: var(--blue-clr, #0b0b99); --td-text: var(--black-color, #222);
      --td-muted: var(--secondary-color-2, #777); --td-border: var(--header-border-color, #e0e0e0); --td-soft: var(--background-clr-4, #f5f5f5);
      --td-primary-soft: #fff3e6; --td-secondary-soft: #ececfb; color: var(--td-text); padding-bottom: 60px; }
.td * { box-sizing: border-box; }
.td a { text-decoration: none; }

/* Hero and search */
.td-hero { background: var(--td-secondary); color: #fff; border-radius: 16px; padding: 44px 40px 36px; margin-top: 40px; }
.td-breadcrumb { font-size: 14px; margin-bottom: 10px; opacity: .85; }
.td-breadcrumb a { color: #fff; text-decoration: underline; }
.td-hero h1 { font-size: 34px; line-height: 1.25; font-weight: 700; margin: 0 0 8px; color: #fff; }
.td-hero p { font-size: 16px; margin: 0 0 26px; color: #dfe0ff; }
.td-search { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; background: #fff; padding: 10px; border-radius: 12px; }
.td-search input, .td-search select { width: 100%; height: 46px; border: 1px solid var(--td-border); border-radius: 8px; padding: 0 14px; font-size: 15px; color: var(--td-text); background: #fff; outline: none; }
.td-search input:focus, .td-search select:focus { border-color: var(--td-primary); }
.td-search button { height: 46px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--td-primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.td-search button:hover { filter: brightness(.95); }

/* Stats */
.td-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 36px; }
.td-stat { background: #fff; border: 1px solid var(--td-border); border-left: 4px solid var(--td-primary); border-radius: 0; padding: 16px 20px; }
.td-stat b { display: block; font-size: 28px; line-height: 1.1; color: var(--td-secondary); }
.td-stat span { font-size: 14px; color: var(--td-muted); }

/* Section headings */
.td-section { margin-bottom: 36px; }
.td-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.td-section-head h2 { font-size: 22px; font-weight: 700; margin: 0; color: var(--td-text); }
.td-section-head a { font-size: 14px; color: var(--td-secondary); }

/* Region cards */
.td-regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.td-region { display: block; border: 1px solid var(--td-border); border-radius: 12px; padding: 18px 20px; background: #fff; color: var(--td-text); transition: border-color .15s, transform .15s; }
.td-region:hover { border-color: var(--td-primary); transform: translateY(-2px); }
.td-region.is-active { border: 2px solid var(--td-primary); background: var(--td-primary-soft); }
.td-region i { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--td-secondary-soft); color: var(--td-secondary); font-style: normal; font-size: 18px; margin-bottom: 10px; }
.td-region strong { display: block; font-size: 16px; }
.td-region small { font-size: 14px; color: var(--td-muted); }

/* Chips (industries, countries) */
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--td-border); border-radius: 999px; font-size: 14px; color: var(--td-text); background: #fff; }
.td-chip em { font-style: normal; font-size: 12px; color: var(--td-muted); }
.td-chip:hover { border-color: var(--td-primary); color: var(--td-primary); }
.td-chip.is-active { background: var(--td-primary); border-color: var(--td-primary); color: #fff; }
.td-chip.is-active em { color: #fff; }

/* Month tabs */
.td-months { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--td-border); margin-bottom: 20px; scrollbar-width: none; }
.td-months::-webkit-scrollbar { display: none; }
.td-month { flex: 0 0 auto; padding: 10px 14px; font-size: 14px; color: var(--td-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.td-month em { font-style: normal; font-size: 12px; margin-left: 4px; color: #aaa; }
.td-month:hover { color: var(--td-secondary); }
.td-month.is-active { color: var(--td-secondary); border-bottom-color: var(--td-primary); font-weight: 600; }
.td-month.is-empty { opacity: .5; }

/* Result bar */
.td-resultbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 15px; color: var(--td-muted); }
.td-resultbar b { color: var(--td-text); }
.td-clear { color: var(--td-primary); font-weight: 600; }

/* Event cards */
.td-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.td-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--td-border); border-radius: 12px; overflow: hidden; color: var(--td-text); transition: border-color .15s, transform .15s; }
.td-card:hover { border-color: var(--td-primary); transform: translateY(-3px); }
.td-card-img { position: relative; height: 150px; background: var(--td-soft); display: flex; align-items: center; justify-content: center; }
.td-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; background: #fff; }
.td-card-initials { font-size: 34px; font-weight: 700; color: var(--td-secondary); letter-spacing: 1px; }
.td-card-tag { position: absolute; left: 12px; top: 12px; background: var(--td-secondary); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-card-body { display: flex; gap: 14px; padding: 16px; flex: 1; }
.td-date { flex: 0 0 56px; height: 62px; border-radius: 10px; background: var(--td-primary-soft); border: 1px solid var(--td-primary); text-align: center; padding-top: 6px; }
.td-date small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--td-primary); }
.td-date b { display: block; font-size: 24px; line-height: 1.1; color: var(--td-text); }
.td-card-info { min-width: 0; }
.td-card-info h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; color: var(--td-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-card:hover h3 { color: var(--td-secondary); }
.td-card-info p { font-size: 14px; margin: 0 0 3px; color: var(--td-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-card-foot { border-top: 1px solid var(--td-border); padding: 11px 16px; font-size: 14px; color: var(--td-primary); font-weight: 600; }

/* Empty state and pager */
.td-empty { text-align: center; border: 1px dashed var(--td-border); border-radius: 12px; padding: 48px 20px; }
.td-empty h3 { font-size: 20px; margin: 0 0 6px; }
.td-empty p { color: var(--td-muted); margin: 0 0 16px; }
.td-btn { display: inline-block; padding: 11px 24px; border-radius: 8px; background: var(--td-primary); color: #fff !important; font-weight: 600; }
.td-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.td-pager a, .td-pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--td-border); border-radius: 8px; font-size: 14px; color: var(--td-text); background: #fff; }
.td-pager a:hover { border-color: var(--td-primary); color: var(--td-primary); }
.td-pager .is-active { background: var(--td-secondary); border-color: var(--td-secondary); color: #fff; }
.td-pager .is-disabled { opacity: .4; }

/* Organizer call to action */
.td-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--td-primary-soft); border: 1px solid var(--td-primary); border-radius: 12px; padding: 24px 28px; margin-top: 44px; }
.td-cta h3 { font-size: 20px; margin: 0 0 4px; color: var(--td-text); }
.td-cta p { margin: 0; color: var(--td-muted); }

@media (max-width: 1024px) {
    .td-search { grid-template-columns: 1fr 1fr; }
    .td-search input { grid-column: 1 / -1; }
    .td-search button { grid-column: 1 / -1; }
    .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .td-regions, .td-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .td-hero { padding: 28px 18px 22px; border-radius: 12px; margin-top: 20px; }
    .td-hero h1 { font-size: 24px; }
    .td-search { grid-template-columns: 1fr; }
    .td-grid { grid-template-columns: 1fr; }
    .td-stat b { font-size: 22px; }
    .td-stats { gap: 10px; }
    .td-regions { gap: 10px; }
    .td-region { padding: 14px; }
    .td-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Event detail page (/event/{slug}) ---------- */
.te-hero { padding: 32px 36px; }
.te-hero-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.te-logo { position: relative; width: 150px; height: 150px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.te-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; background: #fff; }
.te-pill { display: inline-block; background: var(--td-primary); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.te-title h1 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; color: #fff; font-weight: 700; }
.te-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 12px; font-size: 16px; color: #dfe0ff; }
.te-meta span { display: inline-flex; align-items: center; gap: 7px; }
.te-meta svg, .te-fact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.te-status { display: inline-block; font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: #fff; }
.te-status.is-live { background: #1f9d55; }
.te-status.is-ended { background: rgba(255, 255, 255, .1); color: #c9cbf0; }
.te-actions { display: flex; flex-direction: column; gap: 10px; min-width: 200px; text-align: center; }
.te-actions .td-btn { padding: 13px 22px; }
.te-btn-light { display: block; padding: 12px 22px; border-radius: 8px; background: #fff; color: var(--td-secondary) !important; font-weight: 600; }
.te-btn-light:hover { background: var(--td-primary-soft); }
.te-link-light { color: #fff !important; font-size: 14px; text-decoration: underline !important; }

.te-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.te-fact { background: #fff; border: 1px solid var(--td-border); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.te-fact i { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--td-primary-soft); color: var(--td-primary); margin-bottom: 10px; }
.te-fact span { display: block; font-size: 13px; color: var(--td-muted); margin-bottom: 2px; }
.te-fact b { display: block; font-size: 16px; color: var(--td-text); overflow-wrap: anywhere; }
.te-fact small { display: block; font-size: 13px; color: var(--td-muted); margin-top: 2px; }
.te-fact small a { color: var(--td-secondary); }

.te-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 40px; }
.te-panel { background: #fff; border: 1px solid var(--td-border); border-radius: 12px; padding: 24px 26px; }
.te-panel h2 { font-size: 22px; font-weight: 700; margin: 0 0 14px; color: var(--td-text); }
.te-panel h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--td-text); padding-bottom: 8px; border-bottom: 2px solid var(--td-primary); display: inline-block; }
.te-description { font-size: 16px; line-height: 1.75; color: var(--paragraph-color, #555); overflow-wrap: anywhere; }
.te-description p { margin: 0 0 12px; }
.te-extra { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--td-border); font-size: 15px; }
.te-extra dt { color: var(--td-muted); }
.te-extra dd { margin: 0; color: var(--td-text); }
.te-side { display: grid; gap: 16px; }
.te-card { padding: 20px 22px; }
.te-card p { margin: 0 0 6px; font-size: 15px; color: var(--td-muted); overflow-wrap: anywhere; }
.te-card .te-strong { color: var(--td-text); font-weight: 600; }
.te-card a { color: var(--td-secondary); }
.te-card a:hover { color: var(--td-primary); }
.te-share { display: flex; flex-wrap: wrap; gap: 8px; }
.te-share a, .te-share button { padding: 8px 14px; border: 1px solid var(--td-border); border-radius: 8px; background: #fff; font-size: 14px; color: var(--td-text) !important; cursor: pointer; font-family: inherit; }
.te-share a:hover, .te-share button:hover { border-color: var(--td-primary); color: var(--td-primary) !important; }

@media (max-width: 1024px) {
    .te-hero-grid { grid-template-columns: 120px minmax(0, 1fr); }
    .te-logo { width: 120px; height: 120px; }
    .te-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
    .te-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .te-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .te-hero { padding: 24px 18px; }
    .te-hero-grid { grid-template-columns: 1fr; gap: 16px; }
    .te-logo { width: 96px; height: 96px; }
    .te-title h1 { font-size: 24px; }
    .te-meta { font-size: 14px; }
    .te-actions { flex-direction: column; align-items: stretch; }
    .te-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .te-fact { padding: 14px; }
    .te-fact i { width: 30px; height: 30px; margin-bottom: 6px; }
    .te-fact b { font-size: 14px; }
    .te-panel { padding: 20px 18px; }
    .te-extra { grid-template-columns: 1fr; gap: 2px; }
    .te-extra dd { margin-bottom: 8px; }
}
