/* 100xFounder front-end. Neutral styles that sit on top of any theme. */
.xf {
  --xf-accent: #4f46e5;
  --xf-accent-soft: rgba(79, 70, 229, 0.08);
  --xf-success: #059669;
  --xf-border: rgba(127, 127, 127, 0.22);
  --xf-muted: rgba(100, 100, 110, 0.95);
  --xf-surface: rgba(127, 127, 127, 0.05);
  --xf-radius: 12px;
  line-height: 1.55;
}
.xf *, .xf *::before, .xf *::after { box-sizing: border-box; }
.xf a { text-decoration: none; }
.xf h1, .xf h2, .xf h3 { line-height: 1.2; }
.xf-muted { color: var(--xf-muted); font-size: 0.92em; }
.xf-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--xf-accent); margin: 0 0 0.4rem; }
.xf-lead { font-size: 1.1rem; color: var(--xf-muted); max-width: 46rem; }
.xf-error { color: #dc2626; font-weight: 600; }

/* Buttons and badges */
.xf-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.xf-button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.15rem; border-radius: 999px; border: 1px solid var(--xf-accent); background: var(--xf-accent); color: #fff !important; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.xf-button:hover { filter: brightness(1.08); }
.xf-button--ghost { background: transparent; color: var(--xf-accent) !important; }
.xf-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0; }
.xf-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--xf-border); font-size: 0.75rem; color: var(--xf-muted); }
.xf-badge--accent { border-color: var(--xf-accent); color: var(--xf-accent); background: var(--xf-accent-soft); }
.xf-badge--success { border-color: var(--xf-success); color: var(--xf-success); }

/* Cards and grids */
.xf-card { display: block; border: 1px solid var(--xf-border); border-radius: var(--xf-radius); padding: 1.1rem 1.2rem; background: var(--xf-surface); color: inherit; margin: 1rem 0; }
.xf-card--highlight { border-color: var(--xf-success); }
a.xf-card:hover { border-color: var(--xf-accent); }
.xf-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.xf-grid .xf-card { margin: 0; }
.xf-grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.xf-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.xf-grid__full { grid-column: 1 / -1; }
.xf-grid-2, .xf-grid-3 { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .xf-grid-2 { grid-template-columns: 1fr 1fr; }
  .xf-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Startup listings */
.xf-logo { border-radius: 22%; object-fit: cover; flex-shrink: 0; display: inline-flex; }
.xf-logo--initial { align-items: center; justify-content: center; background: var(--xf-accent-soft); color: var(--xf-accent); font-weight: 700; font-size: 1.4rem; }
.xf-startup-card { display: flex; gap: 0.9rem; align-items: flex-start; }
.xf-startup-card__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.xf-startup__head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 0.6rem; }
.xf-tagline { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.25rem; }
.xf-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: inline-flex; flex-shrink: 0; }
.xf-spotlight-card { display: flex; flex-direction: column; gap: 0.7rem; }
.xf-spotlight-card__head { display: flex; gap: 0.8rem; align-items: center; }
.xf-spotlight-card__head > span { display: flex; flex-direction: column; }

/* Home and directory */
.xf-hero { padding: 2.2rem 0 1.2rem; }
.xf-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0.2rem 0 0.6rem; max-width: 18ch; }
.xf-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.xf-filters input, .xf-filters select { padding: 0.6rem 0.8rem; border: 1px solid var(--xf-border); border-radius: 8px; min-width: 200px; flex: 1; font: inherit; }
.xf-pagination { margin: 1.5rem 0; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.xf-pagination .page-numbers { padding: 0.35rem 0.75rem; border: 1px solid var(--xf-border); border-radius: 6px; }
.xf-pagination .current { background: var(--xf-accent); color: #fff; border-color: var(--xf-accent); }

/* News portal */
.xf-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.3rem; border-bottom: 3px solid var(--xf-accent); padding-bottom: 0.4rem; margin: 2rem 0 1rem; }
.xf-section-title a { font-size: 0.85rem; font-weight: 600; color: var(--xf-accent); white-space: nowrap; }
.xf-news-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .xf-news-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.xf-news-hero { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 760px) { .xf-news-hero { grid-template-columns: 1.4fr 1fr; } }
.xf-news-side .xf-section-title { margin-top: 0; }
.xf-news-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.xf-news-grid--4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.xf-news-card a { display: flex; flex-direction: column; gap: 0.55rem; color: inherit; }
.xf-news-card a:hover .xf-news-title { color: var(--xf-accent); }
.xf-news-thumb { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; background: var(--xf-surface); }
.xf-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.xf-news-card a:hover .xf-news-thumb img { transform: scale(1.03); }
.xf-news-body { display: flex; flex-direction: column; gap: 0.35rem; }
.xf-news-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.xf-news-card--lead .xf-news-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.xf-news-card--lead .xf-news-thumb { aspect-ratio: 16 / 9; }
.xf-news-excerpt { color: var(--xf-muted); }
.xf-news-card--row a { flex-direction: row; align-items: flex-start; padding: 0.7rem 0; border-bottom: 1px solid var(--xf-border); }
.xf-news-card--row .xf-news-thumb { width: 96px; flex-shrink: 0; aspect-ratio: 1; border-radius: 8px; }
.xf-news-card--row .xf-news-title { font-size: 0.95rem; }
.xf-cat { display: inline-block; align-self: flex-start; background: var(--xf-accent); color: #fff !important; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.15rem 0.5rem; border-radius: 4px; }
.xf-news-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.8rem; font-size: 0.78rem; color: var(--xf-muted); }
.xf-news-meta span + span::before { content: "•"; margin-right: 0.8rem; opacity: 0.6; }
.xf-news-sidebar .xf-widget { margin-bottom: 1.5rem; }
.xf-news-sidebar .xf-section-title { margin-top: 0; font-size: 1.1rem; }
.xf-ranked { list-style: none; counter-reset: xf-rank; margin: 0; padding: 0; }
.xf-ranked li { counter-increment: xf-rank; display: flex; gap: 0.7rem; align-items: flex-start; }
.xf-ranked li::before { content: counter(xf-rank); font-size: 1.6rem; font-weight: 800; color: var(--xf-accent); min-width: 1.4rem; line-height: 1.6; }
.xf-ranked .xf-news-card { flex: 1; min-width: 0; }
.xf-plain-list { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.xf-plain-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--xf-border); }
.xf-article-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.2rem; }
.xf-related { margin-top: 2.5rem; }

/* Ads: reserve space to avoid layout shift */
.xf-ad { margin: 1.75rem 0; text-align: center; min-height: 120px; }
.xf-ad--leaderboard { min-height: 110px; }
.xf-ad--sidebar { min-height: 280px; }
.xf-ad__label { display: block; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--xf-muted); margin-bottom: 0.3rem; }

/* Forms */
.xf-form { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.xf-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.xf-form small { font-weight: 400; color: var(--xf-muted); }
.xf-form input:not([type="checkbox"]):not([type="file"]), .xf-form textarea { padding: 0.65rem 0.8rem; border: 1px solid var(--xf-border); border-radius: 8px; font: inherit; width: 100%; background: transparent; color: inherit; }
.xf-form .xf-check { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; }
.xf-form .xf-check input { margin-top: 0.3rem; }
.xf-form .xf-button { align-self: flex-start; }
.xf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer trust links */
.xf-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; padding: 1.2rem 1rem; font-size: 0.85rem; border-top: 1px solid rgba(127, 127, 127, 0.22); }
.xf-footer-links a { color: inherit; opacity: 0.8; }
.xf-footer-links span { opacity: 0.6; }

/* Layout helpers */
.xf .xf.alignwide { max-width: 100%; margin-left: 0; margin-right: 0; }
body.home .wp-block-post-title, body.home .entry-header .entry-title { display: none; }

/* Never overflow narrow screens: grid tracks may shrink below content width */
.xf { max-width: 100%; overflow-wrap: anywhere; }
.xf-news-layout, .xf-news-hero { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .xf-news-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
@media (min-width: 1000px) { .xf-news-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.xf-news-main, .xf-news-sidebar, .xf-news-card, .xf-news-card a, .xf-news-body, .xf-startup-card, .xf-grid > * { min-width: 0; }
.xf-grid, .xf-grid--3, .xf-grid--4, .xf-news-grid, .xf-news-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.xf-directory .xf-grid, .xf-launches .xf-grid, .xf-home .xf-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
