:root {
  --ohlone-red: #d32f2f;
  --ohlone-red-dark: #b71c1c;
  --ohlone-bg: #f8fafc;
  --ohlone-surface: #ffffff;
  --ohlone-border: #e2e8f0;
  --ohlone-text: #0f172a;
  --ohlone-muted: #475569;
  --ohlone-blue: #1976d2;
  --ohlone-blue-soft: #eef4fb;
  --ohlone-header-text: #ffffff;
  --ohlone-shadow: rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ohlone-bg);
  color: var(--ohlone-text);
  line-height: 1.5;
}

a,
button,
input,
select,
textarea,
.custom-post-card,
.nav-item,
.post-card-tag,
.site-brand {
  pointer-events: auto !important;
  cursor: pointer !important;
}

a {
  text-decoration: none;
}

.site-main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.post-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  background: var(--ohlone-surface);
  border: 1px solid var(--ohlone-border);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--ohlone-shadow);
}

.post-article h1,
.post-article h2,
.post-article h3,
.post-article h4 {
  color: var(--ohlone-text);
  line-height: 1.2;
}

.post-article p,
.post-article li {
  color: var(--ohlone-text);
  line-height: 1.7;
}

.post-article img {
  max-width: 100%;
  height: auto;
}

.post-article table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

.post-tags-container {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 12px 0;
  border-top: 1px solid var(--ohlone-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
}

.post-tags-container strong {
  color: var(--ohlone-muted);
  margin-right: 6px;
}

.post-tags-container a {
  color: var(--ohlone-blue);
}

.tag-cloud-box {
  background: var(--ohlone-surface);
  border: 1px solid var(--ohlone-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tag-cloud-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-cloud-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  background: #f1f5f9;
  color: #1e293b;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--ohlone-border);
}

.tag-pill:hover {
  background: var(--ohlone-blue);
  color: #ffffff;
  border-color: var(--ohlone-blue);
}

.ohlone-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.custom-post-card {
  display: flex;
  flex-direction: column;
  background: var(--ohlone-surface);
  border: 1px solid var(--ohlone-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
}

.custom-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.card-image-wrap a,
.card-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
}

.card-image-wrap img {
  object-fit: cover;
}

.card-content-wrap {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-category {
  margin-bottom: 8px;
}

.card-category a {
  font-size: 11px;
  font-weight: 800;
  color: var(--ohlone-red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  font-family: sans-serif;
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.card-title a {
  color: var(--ohlone-text);
  text-decoration: none;
}

.card-desc {
  font-size: 13px;
  color: var(--ohlone-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.post-card-tag {
  background: var(--ohlone-blue-soft);
  color: var(--ohlone-blue);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  font-family: sans-serif;
}

.post-card-tag:hover {
  background: var(--ohlone-blue);
  color: var(--ohlone-surface);
}

.youtube-embed {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  margin: 24px auto;
}

.youtube-embed iframe,
iframe[src*="youtube.com/embed"],
iframe[src*="youtu.be"] {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
}

.site-header-clean {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: var(--ohlone-surface);
  border-bottom: 1px solid var(--ohlone-border);
  box-shadow: 0 4px 14px var(--ohlone-shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-header-clean,
.site-header-clean a,
.site-header-clean .site-brand div {
  color: var(--ohlone-header-text);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-brand > div {
  display: block;
}

.site-brand-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ohlone-header-text);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.site-brand-subtitle {
  font-size: 13px;
  color: var(--ohlone-header-text);
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

.site-nav a:hover,
.site-header-clean a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ohlone-header-text);
}

.site-header-clean {
  background: var(--ohlone-red) !important;
  border-bottom-color: var(--ohlone-red-dark) !important;
}

.site-header-clean a,
.site-header-clean .site-brand div {
  color: #ffffff !important;
}

.site-header-clean a:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.site-footer-clean {
  background: var(--ohlone-red) !important;
  border-top-color: var(--ohlone-red-dark) !important;
  color: #ffffff !important;
  padding: 32px 20px;
  text-align: center;
  border-top: 1px solid #1e293b;
  font-size: 14px;
  margin-top: 48px;
}

.site-footer-clean a {
  color: #ffffff !important;
  text-decoration: underline;
}

#SITE_FOOTER {
  background: var(--ohlone-red) !important;
}

#SITE_FOOTER,
#SITE_FOOTER * {
  color: #ffffff !important;
}
