/*
Theme Name: StartupFairNote
Theme URI: https://startupfairnote.com/
Author: StartupFairNote
Description: Responsive startup support opportunity curation theme.
Version: 0.4.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: startupfairnote
*/

:root {
  --sfn-bg: #eef3f7;
  --sfn-hero: #fff9ed;
  --sfn-surface: #ffffff;
  --sfn-ink: #07182d;
  --sfn-navy: #07182d;
  --sfn-text: #38485c;
  --sfn-muted: #718196;
  --sfn-line: rgba(20, 42, 70, 0.18);
  --sfn-soft-line: rgba(20, 42, 70, 0.1);
  --sfn-green: #31a75a;
  --sfn-lime: #c9f06a;
  --sfn-blue: #2476e8;
  --sfn-red: #f25555;
  --sfn-orange: #ff9100;
  --sfn-shadow: 0 18px 42px rgba(7, 24, 45, 0.11);
  --sfn-card-shadow: 0 14px 30px rgba(18, 34, 56, 0.1);
  --sfn-card-shadow-hover: 0 22px 48px rgba(18, 34, 56, 0.16);
  --sfn-radius: 18px;
  --sfn-max: 1500px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f8fbfd 0, #eef3f7 320px, #eef3f7 100%),
    radial-gradient(circle at 2% 60%, rgba(255, 226, 218, 0.38), transparent 28vw),
    radial-gradient(circle at 96% 86%, rgba(224, 244, 217, 0.62), transparent 30vw),
    var(--sfn-bg);
  color: var(--sfn-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

.sfn-hero-chips,
.sfn-category-strip {
  scrollbar-width: none;
}

.sfn-hero-chips::-webkit-scrollbar,
.sfn-category-strip::-webkit-scrollbar {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sfn-header__inner,
.sfn-main,
.sfn-footer__inner,
.sfn-footer__bottom-inner {
  width: min(var(--sfn-max), calc(100% - 80px));
  margin: 0 auto;
}

.sfn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 0 0;
  background: transparent;
}

.sfn-header__inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(480px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 0 34px;
  border-radius: 16px 16px 0 0;
  background: rgba(7, 24, 45, 0.98);
  color: #fff;
  box-shadow: 0 16px 34px rgba(7, 24, 45, 0.12);
  backdrop-filter: blur(16px);
}

.sfn-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}

.sfn-logo__mark {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-block;
  transform: rotate(-8deg);
}

.sfn-logo__mark::before,
.sfn-logo__mark::after,
.sfn-logo__mark span:nth-child(2) {
  content: "";
  position: absolute;
  border-radius: 9px;
}

.sfn-logo__mark::before {
  left: 4px;
  top: 5px;
  width: 12px;
  height: 25px;
  background: linear-gradient(180deg, #6acb7e, #3b8cff);
  transform: rotate(39deg);
}

.sfn-logo__mark::after {
  right: 4px;
  top: 5px;
  width: 12px;
  height: 25px;
  background: linear-gradient(180deg, #c9f06a, #50b765);
  transform: rotate(39deg);
}

.sfn-logo__mark span {
  display: none;
}

.sfn-logo__mark span:nth-child(2) {
  display: block;
  left: 11px;
  top: 9px;
  width: 13px;
  height: 17px;
  background: #eaf8ff;
  transform: rotate(-42deg);
}

.sfn-logo__text {
  font-size: 24px;
  line-height: 1;
}

.sfn-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfn-nav li {
  position: relative;
  list-style: none;
}

.sfn-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 900;
}

.sfn-nav a:hover,
.sfn-nav .current-menu-item > a,
.sfn-nav .current-menu-ancestor > a {
  color: var(--sfn-lime);
}

.sfn-nav .sub-menu {
  min-width: 210px;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 80;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(7, 24, 45, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sfn-nav .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.sfn-nav li:hover > .sub-menu,
.sfn-nav li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 8px);
}

.sfn-nav .sub-menu a {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  white-space: nowrap;
}

.sfn-nav .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sfn-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sfn-header-search {
  width: 42px;
  height: 42px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.sfn-header-search input {
  width: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sfn-header-search button,
.sfn-menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.sfn-menu-toggle {
  display: none;
}

.sfn-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sfn-main {
  padding: 0 0 72px;
}

.sfn-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 40px;
  align-items: center;
  min-height: 340px;
  margin-top: 0;
  padding: 38px 68px 30px;
  overflow: hidden;
  border: 1px solid rgba(7, 24, 45, 0.04);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 235, 184, 0.52), transparent 22vw),
    linear-gradient(104deg, rgba(255, 250, 239, 0.98) 0 56%, rgba(255, 245, 221, 0.74) 56% 100%);
  box-shadow: var(--sfn-shadow);
}

.sfn-hero::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -26%;
  width: 60%;
  height: 76%;
  border-radius: 100% 0 0 0;
  background: rgba(244, 221, 179, 0.32);
}

.sfn-hero__copy,
.sfn-hero__visual {
  position: relative;
  z-index: 2;
}

.sfn-hero h1 {
  max-width: 640px;
  margin: 0;
  color: var(--sfn-ink);
  font-size: clamp(40px, 3.8vw, 56px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.sfn-hero__lead {
  max-width: 520px;
  margin: 14px 0 0;
  color: #4f5d70;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.7;
}

.sfn-hero-search {
  width: min(560px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 7px 8px 7px 22px;
  border: 1px solid rgba(7, 24, 45, 0.07);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 13px 28px rgba(7, 24, 45, 0.08);
}

.sfn-hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--sfn-ink);
  font-size: 15px;
  font-weight: 700;
}

.sfn-hero-search button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--sfn-navy);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.sfn-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.sfn-hero-chips a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid rgba(7, 24, 45, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--sfn-text);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 24, 45, 0.04);
}

.sfn-hero-chips .sfn-icon {
  width: 14px;
  height: 14px;
}

.sfn-hero-chips a.is-red {
  color: var(--sfn-red);
}

.sfn-hero-chips a.is-green {
  color: var(--sfn-green);
}

.sfn-hero-chips a.is-blue {
  color: var(--sfn-blue);
}

.sfn-hero__visual {
  min-height: 260px;
}

.sfn-illustration {
  position: absolute;
  inset: 18px 238px 8px 0;
}

.sfn-city {
  position: absolute;
  bottom: 82px;
  width: 44px;
  border-radius: 8px 8px 0 0;
  opacity: 0.38;
}

.sfn-city--one {
  left: 92px;
  height: 120px;
  background: #a3d6df;
}

.sfn-city--two {
  left: 156px;
  height: 170px;
  background: #d8eebf;
}

.sfn-city--three {
  left: 220px;
  height: 92px;
  background: #bfe4d1;
}

.sfn-desk {
  position: absolute;
  left: 170px;
  bottom: 12px;
  width: 290px;
  height: 176px;
}

.sfn-laptop {
  position: absolute;
  left: 34px;
  top: 24px;
  width: 188px;
  height: 116px;
  border: 12px solid #243b58;
  border-radius: 14px 14px 7px 7px;
  background: linear-gradient(145deg, #f5fbff, #ddecf6);
  transform: rotate(-4deg);
  box-shadow: 0 18px 34px rgba(7, 24, 45, 0.14);
}

.sfn-laptop::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -32px;
  height: 20px;
  border-radius: 0 0 18px 18px;
  background: #293f5d;
}

.sfn-laptop span {
  position: absolute;
  left: 28px;
  bottom: 26px;
  width: 30px;
  height: 36px;
  border-radius: 6px 6px 0 0;
  background: #86cfe4;
  box-shadow: 42px -18px 0 #f4b263, 84px -4px 0 #88d58f;
}

.sfn-laptop i {
  position: absolute;
  right: 25px;
  top: 24px;
  width: 70px;
  height: 40px;
  border-bottom: 5px solid #5aa56d;
  border-left: 5px solid transparent;
  transform: skew(-20deg);
}

.sfn-cup {
  position: absolute;
  left: -10px;
  bottom: 8px;
  width: 54px;
  height: 60px;
  border-radius: 0 0 16px 16px;
  background: #dcecf1;
}

.sfn-cup::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 13px;
  width: 22px;
  height: 24px;
  border: 7px solid #dcecf1;
  border-left: 0;
  border-radius: 0 16px 16px 0;
}

.sfn-plant {
  position: absolute;
  right: -10px;
  bottom: 10px;
  width: 44px;
  height: 66px;
  border-radius: 0 0 14px 14px;
  background: #d7e7dc;
}

.sfn-plant span {
  position: absolute;
  bottom: 46px;
  width: 24px;
  height: 44px;
  border-radius: 100% 0 100% 0;
  background: #8ac69a;
}

.sfn-plant span:nth-child(1) {
  left: -10px;
  transform: rotate(-25deg);
}

.sfn-plant span:nth-child(2) {
  right: -12px;
  transform: rotate(28deg);
}

.sfn-paper-note {
  position: absolute;
  left: 120px;
  bottom: 0;
  width: 54px;
  height: 38px;
  border-radius: 8px;
  background: #ffd9a8;
  transform: rotate(-12deg);
}

.sfn-hero-status {
  position: absolute;
  top: 16px;
  right: 0;
  width: 280px;
  padding: 20px;
  border: 1px solid rgba(7, 24, 45, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--sfn-shadow);
  backdrop-filter: blur(12px);
}

.sfn-hero-status__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sfn-hero-status__head strong {
  color: var(--sfn-ink);
  font-size: 15px;
  font-weight: 950;
}

.sfn-hero-status__head span {
  color: var(--sfn-muted);
  font-size: 12px;
  font-weight: 800;
}

.sfn-hero-status a {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid var(--sfn-soft-line);
  border-radius: 15px;
  background: #fff;
}

.sfn-hero-status a span {
  color: var(--sfn-text);
  font-weight: 900;
}

.sfn-hero-status a strong {
  font-size: 28px;
  font-weight: 950;
}

.sfn-hero-status a:nth-child(2) strong {
  color: var(--sfn-green);
}

.sfn-hero-status a:nth-child(3) strong {
  color: var(--sfn-orange);
}

.sfn-hero-status a:nth-child(4) strong {
  color: var(--sfn-blue);
}

.sfn-stat-board {
  display: none;
}

.sfn-category-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 24px;
  padding: 8px;
  border: 1px solid rgba(7, 24, 45, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(7, 24, 45, 0.06);
}

.sfn-category-strip button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #536174;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  transform: translateY(0);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sfn-category-strip button.is-active,
.sfn-category-strip button:hover {
  background: var(--sfn-navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(7, 24, 45, 0.13);
}

.sfn-section {
  margin-bottom: 30px;
}

.sfn-featured-section {
  padding: 24px;
  border: 1px solid rgba(20, 42, 70, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(18, 34, 56, 0.08);
}

.sfn-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 14px;
}

.sfn-section-head h2,
.sfn-panel-head h2 {
  margin: 0;
  color: var(--sfn-ink);
  font-size: 23px;
  line-height: 1.18;
  font-weight: 950;
}

.sfn-section-kicker {
  display: inline-flex;
  margin: 4px 0 0 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff1f1;
  color: var(--sfn-red);
  font-size: 12px;
  font-weight: 950;
}

.sfn-filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sfn-filter-selects select,
.sfn-filter-selects button {
  min-height: 38px;
  border: 1px solid rgba(20, 42, 70, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--sfn-text);
  font-size: 13px;
  font-weight: 850;
}

.sfn-filter-selects select {
  padding: 0 32px 0 12px;
}

.sfn-filter-selects button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  cursor: pointer;
}

.sfn-filter-selects .sfn-icon {
  width: 15px;
  height: 15px;
}

.sfn-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  transition: opacity 180ms ease;
}

.sfn-archive-section {
  margin-top: 24px;
}

.sfn-archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sfn-archive-grid .sfn-opportunity-card {
  min-height: 280px;
}

.sfn-page-card + .sfn-featured-section .sfn-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

[data-sfn-filtering="true"] .sfn-card-grid {
  opacity: 0.96;
}

.sfn-opportunity-card {
  min-height: 252px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(20, 42, 70, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0, #ffffff 68%, #fbfcfe 100%);
  box-shadow: var(--sfn-card-shadow);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.sfn-opportunity-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--sfn-green);
}

.sfn-opportunity-card[data-status="urgent"]::before {
  background: var(--sfn-red);
}

.sfn-opportunity-card[data-status="planned"]::before {
  background: var(--sfn-blue);
}

.sfn-opportunity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 24, 45, 0.34);
  box-shadow: var(--sfn-card-shadow-hover);
}

.sfn-opportunity-card.is-card-hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  pointer-events: none;
}

.sfn-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px 12px 22px;
  border-bottom: 1px solid rgba(20, 42, 70, 0.09);
  background: rgba(248, 250, 252, 0.74);
}

.sfn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sfn-badge,
.sfn-dday {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.sfn-badge {
  background: #eef2f7;
  color: #44546a;
}

.sfn-badge--open {
  background: #eaf8ee;
  color: var(--sfn-green);
}

.sfn-badge--urgent {
  background: #fff4f3;
  color: #dd4747;
}

.sfn-badge--planned {
  background: #edf4ff;
  color: var(--sfn-blue);
}

.sfn-badge--category {
  background: #f5f8fb;
  color: #334155;
  border: 1px solid rgba(20, 42, 70, 0.1);
}

.sfn-badge--region {
  background: #f7f3e8;
  color: #8a5a00;
}

.sfn-dday {
  min-width: 46px;
  min-height: 32px;
  justify-content: center;
  border-radius: 12px;
  background: var(--sfn-navy);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(7, 24, 45, 0.16);
}

.sfn-opportunity-card[data-status="urgent"] .sfn-dday {
  background: #f25555;
}

.sfn-opportunity-card[data-status="planned"] .sfn-dday {
  background: var(--sfn-blue);
}

.sfn-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 16px 22px;
}

.sfn-card__title {
  min-height: 46px;
  margin: 0;
  color: var(--sfn-ink);
  font-size: 19px;
  line-height: 1.34;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.sfn-card__title a:hover {
  color: var(--sfn-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sfn-card__summary {
  min-height: 42px;
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #526176;
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sfn-info-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(20, 42, 70, 0.1);
  border-radius: 12px;
  background: #f8fafc;
}

.sfn-info-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  font-size: 12.5px;
}

.sfn-info-row dt {
  color: var(--sfn-muted);
  font-weight: 900;
}

.sfn-info-row dd {
  min-width: 0;
  margin: 0;
  color: #526176;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sfn-card__footer {
  margin-top: auto;
  padding-top: 12px;
}

.sfn-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--sfn-navy);
  border-radius: 12px;
  background: var(--sfn-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(7, 24, 45, 0.13);
}

.sfn-button:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.sfn-grid-sections {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.sfn-mini-panel,
.sfn-entry,
.sfn-page-card,
.sfn-post-row,
.sfn-empty {
  border: 1px solid rgba(20, 42, 70, 0.14);
  border-radius: var(--sfn-radius);
  background: #fff;
  box-shadow: var(--sfn-shadow);
}

.sfn-mini-panel {
  min-height: 168px;
  padding: 20px;
}

.sfn-mini-panel:last-child {
  grid-column: 1 / -1;
  min-height: auto;
}

.sfn-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sfn-panel-head a {
  color: var(--sfn-muted);
  font-size: 13px;
  font-weight: 950;
}

.sfn-mini-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--sfn-soft-line);
}

.sfn-mini-row strong,
.sfn-mini-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sfn-mini-row strong {
  color: var(--sfn-ink);
  font-weight: 950;
}

.sfn-mini-row small {
  color: var(--sfn-muted);
  font-size: 12px;
  font-weight: 760;
}

.sfn-mini-row em {
  min-width: 48px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf8f1;
  color: var(--sfn-green);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.sfn-region-grid,
.sfn-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.sfn-region-grid a,
.sfn-keywords a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--sfn-soft-line);
  border-radius: 12px;
  background: #f8fafc;
  color: #43536a;
  font-size: 13px;
  font-weight: 900;
}

.sfn-page-head {
  margin: 44px 0 24px;
}

.sfn-kicker {
  margin: 0 0 10px;
  color: var(--sfn-green);
  font-weight: 950;
}

.sfn-page-title,
.sfn-entry h1 {
  margin: 0;
  color: var(--sfn-ink);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.12;
  font-weight: 950;
}

.sfn-page-subtitle {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--sfn-muted);
  font-size: 17px;
  font-weight: 760;
}

.sfn-entry-shell {
  display: grid;
  grid-template-columns: minmax(0, 900px) 320px;
  gap: 30px;
  align-items: start;
  justify-content: center;
  margin: 58px auto 0;
}

.sfn-entry-shell .sfn-mini-panel:last-child {
  grid-column: auto;
}

.sfn-entry {
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding: clamp(34px, 4vw, 54px);
  border-color: rgba(20, 42, 70, 0.12);
  box-shadow: 0 18px 44px rgba(18, 34, 56, 0.08);
}

.sfn-page-card {
  max-width: 1080px;
  margin: 48px auto;
  padding: clamp(26px, 5vw, 52px);
}

.sfn-entry h1 {
  max-width: 780px;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
  word-break: keep-all;
}

.sfn-entry-content {
  max-width: 760px;
  margin-top: 26px;
}

.sfn-entry-content h2 {
  margin: 30px 0 12px;
  padding-top: 6px;
  color: var(--sfn-ink);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: 0;
}

.sfn-entry-content h3 {
  margin: 22px 0 10px;
  color: #14243a;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 950;
}

.sfn-entry-content p,
.sfn-entry-content li {
  color: #3d4b5f;
  font-size: 16px;
  line-height: 1.82;
  font-weight: 640;
}

.sfn-entry-content p {
  margin: 0 0 15px;
}

.sfn-entry-content ul,
.sfn-entry-content ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding-left: 22px;
}

.sfn-entry-content strong {
  color: #102138;
  font-weight: 950;
}

.sfn-entry-content a {
  color: #174ea6;
  font-weight: 900;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: inset 0 -0.42em rgba(69, 137, 255, 0.16);
  transition: color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.sfn-entry-content a:hover,
.sfn-entry-content a:focus-visible {
  color: #0b2f6b;
  background: rgba(219, 234, 254, 0.64);
  box-shadow: inset 0 -1.25em rgba(69, 137, 255, 0.18);
}

.sfn-entry-shell .sfn-mini-row {
  min-height: 64px;
  margin-top: 10px;
  padding: 12px 12px;
  border: 1px solid rgba(20, 42, 70, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 8px 18px rgba(18, 34, 56, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.sfn-entry-shell .sfn-mini-row:first-of-type {
  margin-top: 0;
}

.sfn-entry-shell .sfn-mini-row:hover,
.sfn-entry-shell .sfn-mini-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(42, 157, 119, 0.28);
  box-shadow: 0 14px 26px rgba(18, 34, 56, 0.09);
}

.sfn-entry-shell .sfn-mini-row strong {
  color: #102138;
  font-size: 14px;
}

.sfn-entry-shell .sfn-mini-row small {
  margin-top: 3px;
  color: #66768a;
}

.sfn-entry-shell .sfn-mini-row em {
  min-width: 40px;
  min-height: 34px;
  background: #102138;
  color: #ffffff;
}

.sfn-entry-shell .sfn-mini-row:hover em,
.sfn-entry-shell .sfn-mini-row:focus-visible em {
  background: var(--sfn-green);
}

.sfn-entry-content table {
  width: 100%;
  margin: 16px 0 22px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 42, 70, 0.12);
  border-radius: 14px;
  background: #fff;
}

.sfn-entry-content th,
.sfn-entry-content td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(20, 42, 70, 0.09);
  color: #3d4b5f;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.sfn-entry-content th {
  width: 150px;
  background: #f7fafc;
  color: #13243a;
  font-weight: 950;
}

.sfn-entry-content tr:last-child th,
.sfn-entry-content tr:last-child td {
  border-bottom: 0;
}

.sfn-entry-shell > .sfn-mini-panel {
  position: sticky;
  top: 92px;
  min-height: auto;
  margin-top: 0;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(18, 34, 56, 0.08);
}

.sfn-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.sfn-featured-image {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 20px;
}

.sfn-post-list {
  display: grid;
  gap: 18px;
}

.sfn-post-row,
.sfn-empty {
  padding: 24px;
}

.sfn-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(7, 24, 45, 0.08);
  background: #fff;
}

.sfn-footer__inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 40px;
  padding: 44px 0;
}

.sfn-footer .sfn-logo {
  color: var(--sfn-ink);
}

.sfn-footer h3 {
  margin: 0 0 14px;
  color: var(--sfn-ink);
  font-size: 16px;
  font-weight: 950;
}

.sfn-footer p,
.sfn-footer a {
  color: #627187;
  font-size: 14px;
  font-weight: 720;
}

.sfn-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfn-footer__bottom {
  border-top: 1px solid rgba(7, 24, 45, 0.07);
}

.sfn-footer__bottom-inner {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: #7b8a9e;
  font-size: 13px;
  font-weight: 720;
}

@media (max-width: 1180px) {
  .sfn-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .sfn-menu-toggle {
    display: inline-flex;
  }

  .sfn-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 16px;
  }

  .sfn-nav.is-open {
    display: flex;
  }

  .sfn-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .sfn-header-actions {
    display: none;
  }

  .sfn-hero {
    grid-template-columns: 1fr;
  }

  .sfn-illustration {
    inset: 8px 300px 0 0;
  }

  .sfn-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfn-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfn-page-card + .sfn-featured-section .sfn-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfn-grid-sections,
  .sfn-entry-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sfn-header {
    padding: 0;
    background: var(--sfn-navy);
  }

  .sfn-header__inner,
  .sfn-main,
  .sfn-footer__inner,
  .sfn-footer__bottom-inner {
    width: 100%;
  }

  .sfn-header__inner {
    min-height: 64px;
    padding: 0 18px;
    border-radius: 0;
    box-shadow: none;
  }

  .sfn-logo__text {
    font-size: 20px;
  }

  .sfn-logo__mark {
    width: 30px;
    height: 30px;
  }

  .sfn-hero {
    min-height: 0;
    display: block;
    padding: 28px 20px 18px;
    border-radius: 0;
  }

  .sfn-hero__copy {
    z-index: 4;
  }

  .sfn-hero h1 {
    max-width: 360px;
    font-size: 31px;
    line-height: 1.15;
  }

  .sfn-hero__lead {
    max-width: 310px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  .sfn-hero-search {
    width: min(320px, calc(100vw - 40px));
    max-width: min(320px, calc(100vw - 40px));
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 58px;
    gap: 8px;
    min-height: 50px;
    margin-top: 18px;
    padding: 6px;
    overflow: hidden;
  }

  .sfn-hero-search input {
    min-width: 0;
    position: relative;
    z-index: 1;
    font-size: 13px;
  }

  .sfn-hero-search button {
    position: static;
    width: 58px;
    min-width: 0;
    min-height: 38px;
    font-size: 13px;
  }

  .sfn-hero-chips {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sfn-hero-chips a {
    flex: 0 0 auto;
  }

  .sfn-hero__visual {
    z-index: 1;
    min-height: 0;
    margin-top: 16px;
    pointer-events: none;
  }

  .sfn-illustration {
    display: none;
  }

  .sfn-hero-status {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    padding: 15px;
    pointer-events: auto;
  }

  .sfn-hero-status a {
    pointer-events: auto;
  }

  .sfn-hero-status__head {
    justify-content: flex-start;
  }

  .sfn-hero-status a {
    min-height: 50px;
    display: inline-grid;
    width: calc(33.333% - 5px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1px;
    margin: 8px 2px 0;
    padding: 8px 4px;
    text-align: center;
  }

  .sfn-hero-status a span {
    font-size: 12px;
  }

  .sfn-hero-status a strong {
    font-size: 24px;
  }

  .sfn-category-strip {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    grid-template-columns: none;
    overflow-x: auto;
    margin: 18px auto 24px;
    padding: 8px;
    scroll-padding-inline: 18px;
    border-radius: 16px;
  }

  .sfn-category-strip button {
    min-width: max-content;
    min-height: 38px;
    padding: 0 16px;
  }

  .sfn-section,
  .sfn-grid-sections {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }

  .sfn-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .sfn-filter-selects {
    display: none;
  }

  .sfn-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sfn-archive-grid {
    grid-template-columns: 1fr;
  }

  .sfn-page-card + .sfn-featured-section .sfn-card-grid {
    grid-template-columns: 1fr;
  }

  .sfn-opportunity-card {
    min-height: 236px;
  }

  .sfn-grid-sections,
  .sfn-footer__inner {
    grid-template-columns: 1fr;
  }

  .sfn-entry-shell {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 24px auto 0;
  }

  .sfn-entry {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .sfn-entry h1 {
    font-size: 29px;
    line-height: 1.18;
  }

  .sfn-entry-content {
    max-width: none;
    margin-top: 22px;
  }

  .sfn-entry-content h2 {
    margin-top: 26px;
    font-size: 20px;
  }

  .sfn-entry-content p,
  .sfn-entry-content li {
    font-size: 15px;
    line-height: 1.78;
  }

  .sfn-entry-shell > .sfn-mini-panel {
    position: static;
    padding: 18px;
  }

  .sfn-mini-panel:last-child {
    grid-column: auto;
  }

  .sfn-footer__inner,
  .sfn-footer__bottom-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sfn-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
