/* ==========================================================================
   0xHTX Community page
   Load AFTER styles.css. All rules are scoped to this page.
   ========================================================================== */

/* 01. Shared navigation */
.community-page #navigation [aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 9px;
  text-decoration-thickness: 2px;
}

/* 02. Introduction and jump links */
.community-page .community-main { padding-bottom: 48px; }
.community-page .community-intro { padding: 58px 0 46px; }
.community-page .community-intro h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.04;
}
.community-page .community-lead {
  max-width: 760px;
  margin-top: 22px;
  color: #c4cdc6;
  font-size: 20px;
  line-height: 1.6;
}
.community-page .community-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* 03. Section headings */
.community-page .community-section { padding: 38px 0 42px; }
.community-page .community-section + .community-section {
  border-top: 1px solid var(--line);
}
.community-page .community-section > .eyebrow { margin-bottom: 12px; }

/* 04. Discord cards: same gradient and border as homepage topic cards */
.community-page .community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.community-page .community-card,
.community-page .community-website,
.community-page .community-suggest {
  background: linear-gradient(120deg, #251036, #1d0d2c);
  border: 1px solid #7032a3;
  border-radius: 6px;
}
.community-page .community-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
}
.community-page .community-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.community-page .community-chat { width: 30px; height: 30px; flex-shrink: 0; color: #bd92d3; }
.community-page .community-category {
  font: 10px / 1.5 var(--mono);
  letter-spacing: 1px;
  color: #c9a9d9;
  text-align: right;
}
.community-page .community-card h3 { font-size: 25px; }
.community-page .community-card > p {
  color: #d0c5dc;
  font-size: 15px;
  margin: 14px 0 24px;
}
.community-page .community-visit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--green);
  font: 13px / 1.6 var(--mono);
}
.community-page .community-visit:hover { text-decoration: underline; text-underline-offset: 5px; }
.community-page .community-card > .community-visit {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #513260;
}

/* 05. Website rows */
.community-page .community-websites { margin-top: 28px; display: grid; gap: 14px; }
.community-page .community-website {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.6fr) auto;
  gap: 26px;
  align-items: center;
  padding: 24px;
}
.community-page .community-website h3 { font-size: 23px; }
.community-page .community-website p { margin: 0; color: #d0c5dc; font-size: 15px; }
.community-page .community-domain { color: #bdabc6; font: 12px / 1.7 var(--mono); overflow-wrap: anywhere; }
.community-page .community-website > .community-visit { border-left: 1px solid #513260; padding-left: 26px; }

/* 06. Suggestion callout */
.community-page .community-suggest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 8px 0 0;
  padding: 28px;
}
.community-page .community-suggest h2 { font-size: clamp(24px, 2.6vw, 30px); }
.community-page .community-suggest p { max-width: 640px; color: #d0c5dc; font-size: 15px; }
.community-page .community-suggest .button { flex-shrink: 0; border-color: var(--green); color: var(--green); }

/* 07. Tablet */
@media (max-width: 950px) {
  .community-page #navigation { gap: 18px; }
  .community-page .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-page .community-website { grid-template-columns: 1fr auto; gap: 14px 24px; }
  .community-page .community-website > div { grid-row: 2; }
  .community-page .community-website > .community-visit { grid-column: 2; grid-row: 1 / span 2; }
  .community-page .community-suggest { align-items: flex-start; flex-direction: column; }
}

/* 08. Mobile: existing script.js controls only the header navigation */
@media (max-width: 650px) {
  .community-page #navigation { flex-wrap: wrap; justify-content: flex-start; gap: 16px 22px; }
  .community-page .community-intro { padding: 38px 0 28px; }
  .community-page .community-intro h1 { font-size: clamp(40px, 10vw, 62px); }
  .community-page .community-lead { font-size: 17px; }
  .community-page .community-section { padding: 30px 0; }
  .community-page .community-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .community-page .community-website { grid-template-columns: 1fr; gap: 14px; }
  .community-page .community-website > div,
  .community-page .community-website > .community-visit { grid-column: auto; grid-row: auto; }
  .community-page .community-website > .community-visit { border-left: 0; border-top: 1px solid #513260; padding: 14px 0 0; }
  .community-page .community-suggest { padding: 24px; }
  .community-page .community-main { padding-bottom: 32px; }
}

/* 09. Houston Area Tech Events — additions scoped exclusively to this section. */
.community-page #houston-events .htx-calendar-intro { max-width: 760px; color: #c4cdc6; }
.community-page #houston-events .htx-calendar-intro a,
.community-page #houston-events .htx-calendar-credit a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.community-page #houston-events .htx-calendar { margin-top: 28px; background: linear-gradient(120deg,#251036,#1d0d2c); border: 1px solid #7032a3; border-radius: 6px; overflow: hidden; }
.community-page #houston-events .htx-calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 25px 26px 20px; border-bottom: 1px solid #513260; }
.community-page #houston-events .htx-calendar-label { margin: 0 0 9px; color: #c9a9d9; font: 10px/1.5 var(--mono); letter-spacing: .12em; }
.community-page #houston-events .htx-calendar-toolbar h3 { font: 700 clamp(23px,2.5vw,30px)/1.2 var(--mono); letter-spacing: -.04em; }
.community-page #houston-events .htx-calendar-controls { display: flex; gap: 8px; flex-shrink: 0; }
.community-page #houston-events .htx-calendar-controls button { min-width: 44px; min-height: 44px; padding: 8px 12px; background: #130b1c; color: var(--green); border: 1px solid #745087; border-radius: 3px; font: 13px var(--mono); }
.community-page #houston-events .htx-calendar-controls button:hover { border-color: var(--green); background: #1b2b23; }
.community-page #houston-events .htx-calendar-status { margin: 0; padding: 12px 26px; color: #c9b9d3; font: 11px/1.6 var(--mono); border-bottom: 1px solid #513260; }
.community-page #houston-events .htx-calendar-status.is-error { color: #ffd5aa; }
.community-page #houston-events .htx-calendar-status a { text-decoration: underline; color: var(--green); }
.community-page #houston-events .htx-calendar-layout { display: grid; grid-template-columns: minmax(0,2.3fr) minmax(245px,1fr); }
.community-page #houston-events .htx-calendar-month-view { min-width: 0; padding: 16px; }
.community-page #houston-events .htx-calendar-weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); color: #c9a9d9; font: 10px var(--mono); text-transform: uppercase; text-align: center; padding: 6px 0 16px; }
.community-page #houston-events .htx-calendar-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.community-page #houston-events .htx-calendar-date { position: relative; min-width: 0; min-height: 88px; border: 1px solid #493056; border-radius: 3px; padding: 9px 7px; background: #130b1c99; color: #f3f4ee; text-align: left; display: flex; flex-direction: column; gap: 7px; font: 12px/1.3 var(--mono); }
.community-page #houston-events .htx-calendar-date:hover { border-color: #b78bc9; background: #352042; }
.community-page #houston-events .htx-calendar-date.is-outside { color: #86778f; background: #130b1c44; }
.community-page #houston-events .htx-calendar-date.is-today .htx-calendar-number { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.community-page #houston-events .htx-calendar-date[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #173126; }
.community-page #houston-events .htx-calendar-chip { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 2px solid var(--green); background: #00ef8312; color: #c9ffe1; padding: 4px; font: 10px/1.3 var(--mono); }
.community-page #houston-events .htx-calendar-more { color: #c9a9d9; font-size: 9px; }
.community-page #houston-events .htx-calendar-agenda { padding: 23px; border-left: 1px solid #513260; background: #11091966; min-width: 0; }
.community-page #houston-events .htx-calendar-agenda h3 { font: 700 20px/1.3 var(--mono); letter-spacing: -.03em; }
.community-page #houston-events .htx-calendar-event { border-top: 1px solid #513260; padding-top: 20px; margin-top: 20px; }
.community-page #houston-events .htx-calendar-event h4 { margin: 8px 0 0; font: 700 18px/1.4 var(--mono); overflow-wrap: anywhere; }
.community-page #houston-events .htx-calendar-event time { color: var(--green); font: 11px/1.6 var(--mono); }
.community-page #houston-events .htx-calendar-location { font-size: 13px; color: #d0c5dc; overflow-wrap: anywhere; margin-top: 10px; white-space: pre-line; }
.community-page #houston-events .htx-calendar-description { color: #c9b9d3; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; max-height: 220px; overflow-y: auto; margin-top: 12px; }
.community-page #houston-events .htx-calendar-event a { display: inline-block; color: var(--green); font: 12px/1.7 var(--mono); margin-top: 14px; text-decoration: underline; text-underline-offset: 4px; }
.community-page #houston-events .htx-calendar-empty { color: #c9b9d3; font-size: 14px; line-height: 1.7; margin-top: 20px; }
.community-page #houston-events .htx-calendar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 26px; border-top: 1px solid #513260; font: 11px/1.7 var(--mono); color: #c9b9d3; }
.community-page #houston-events .htx-calendar-bottom a { color: var(--green); }
.community-page #houston-events .htx-calendar-bottom i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; }
.community-page #houston-events .htx-calendar-credit { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 900px; }
@media(max-width:950px) { .community-page #houston-events .htx-calendar-layout { grid-template-columns: 1fr; } .community-page #houston-events .htx-calendar-agenda { border-left: 0; border-top: 1px solid #513260; } }
@media(max-width:650px) {
 .community-page #houston-events .htx-calendar-toolbar { padding: 20px 14px; flex-wrap: wrap; }
 .community-page #houston-events .htx-calendar-controls { width: 100%; justify-content: flex-start; }
 .community-page #houston-events .htx-calendar-month-view { padding: 10px 6px; }
 .community-page #houston-events .htx-calendar-date { min-height: 66px; padding: 7px 4px; gap: 5px; }
 .community-page #houston-events .htx-calendar-chip { width: 5px; height: 5px; min-height: 5px; border: 0; border-radius: 50%; background: var(--green); padding: 0; font-size: 0; }
 .community-page #houston-events .htx-calendar-more { font-size: 0; width: 3px; height: 3px; background: #c9a9d9; border-radius: 50%; }
 .community-page #houston-events .htx-calendar-bottom, .community-page #houston-events .htx-calendar-status { padding: 14px; }
 .community-page #houston-events .htx-calendar-agenda { padding: 20px; }
}
