/*
Theme Name: StartupFairNote
Theme URI: https://startupfairnote.com/
Author: StartupFairNote
Description: StartupFairNote operational listing theme for startup grants, fairs, demo days, mentoring, and education opportunities.
Version: 0.2.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: startupfairnote
*/

:root {
  --sfn-bg: #f8fafc;
  --sfn-surface: #ffffff;
  --sfn-ink: #0f172a;
  --sfn-navy: #081833;
  --sfn-text: #334155;
  --sfn-muted: #64748b;
  --sfn-line: #dfe7f0;
  --sfn-soft-line: #edf2f7;
  --sfn-mint: #10a489;
  --sfn-mint-soft: #e9fbf5;
  --sfn-blue: #2f6fde;
  --sfn-blue-soft: #edf4ff;
  --sfn-red: #ef476f;
  --sfn-red-soft: #fff0f3;
  --sfn-purple: #6d5dfc;
  --sfn-purple-soft: #f0efff;
  --sfn-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
  --sfn-radius: 8px;
  --sfn-max: 1368px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: 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;
}

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

a:hover {
  color: var(--sfn-blue);
}

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 {
  width: min(var(--sfn-max), calc(100% - 72px));
  margin: 0 auto;
}

.sfn-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--sfn-line);
}

.sfn-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.sfn-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sfn-navy);
  font-weight: 900;
  white-space: nowrap;
}

.sfn-logo__mark {
  width: 34px;
  height: 34px;
  color: #43c4ad;
}

.sfn-logo__mark svg,
.sfn-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.sfn-logo__text strong {
  color: var(--sfn-mint);
}

.sfn-nav {
  display: flex;
  justify-content: center;
  gap: 54px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfn-nav li {
  display: flex;
}

.sfn-nav a {
  position: relative;
  display: inline-flex;
  min-height: 78px;
  align-items: center;
  padding: 0 2px;
  color: var(--sfn-navy);
  font-size: 16px;
  font-weight: 850;
}

.sfn-nav a::after,
.sfn-nav .current-menu-item > a::after,
.sfn-nav a.is-current::after,
.sfn-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  height: 3px;
  border-radius: 999px;
  background: #45cdb5;
  opacity: 0;
}

.sfn-nav .current-menu-item > a::after,
.sfn-nav a.is-current::after,
.sfn-nav a:hover::after {
  opacity: 1;
}

.sfn-header__tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sfn-search {
  width: 330px;
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background: #fff;
}

.sfn-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--sfn-ink);
  font: inherit;
}

.sfn-search button {
  width: 48px;
  height: 100%;
  border: 0;
  background: #fff;
  color: var(--sfn-navy);
  cursor: pointer;
}

.sfn-search button .sfn-icon {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  stroke-width: 2.5;
}

.sfn-icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.sfn-icon-button .sfn-icon {
  width: 21px;
  height: 21px;
}

.sfn-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sfn-navy);
  cursor: pointer;
  font-size: 21px;
  font-weight: 900;
}

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

.sfn-dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
  min-width: 0;
}

.sfn-dashboard-head > * {
  min-width: 0;
}

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

.sfn-kicker {
  margin: 0 0 8px;
  color: var(--sfn-blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sfn-page-title {
  margin: 0;
  color: var(--sfn-navy);
  font-size: clamp(34px, 3.2vw, 42px);
  line-height: 1.12;
}

.sfn-page-subtitle {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--sfn-muted);
  font-size: 17px;
  font-weight: 600;
}

.sfn-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sfn-shadow);
}

.sfn-stat {
  min-height: 120px;
  padding: 22px 26px;
  border-right: 1px solid var(--sfn-soft-line);
}

.sfn-stat:last-child {
  border-right: 0;
}

.sfn-stat span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sfn-navy);
  font-size: 15px;
  font-weight: 850;
}

.sfn-stat-icon {
  width: 17px;
  height: 17px;
  padding: 2px;
  border-radius: 999px;
}

.sfn-stat-icon--red {
  color: #ef4f42;
  background: #fff1f2;
}

.sfn-stat-icon--mint {
  color: var(--sfn-mint);
  background: var(--sfn-mint-soft);
}

.sfn-stat-icon--blue {
  color: var(--sfn-blue);
  background: var(--sfn-blue-soft);
}

.sfn-stat strong {
  display: block;
  margin-top: 9px;
  color: var(--sfn-mint);
  font-size: 31px;
  line-height: 1;
}

.sfn-stat:nth-child(1) strong {
  color: #ef4f42;
}

.sfn-stat:nth-child(3) strong {
  color: var(--sfn-blue);
}

.sfn-stat small {
  display: block;
  margin-top: 8px;
  color: var(--sfn-muted);
  font-size: 12px;
  font-weight: 850;
}

.sfn-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.sfn-list-panel,
.sfn-panel,
.sfn-entry,
.sfn-page-card {
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sfn-shadow);
}

.sfn-list-panel {
  overflow: hidden;
  min-width: 0;
}

.sfn-toolbar {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--sfn-line);
}

.sfn-segments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
}

.sfn-segment {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--sfn-line);
  background: #fff;
  color: var(--sfn-navy);
  cursor: pointer;
  font-weight: 900;
}

.sfn-segment:last-child {
  border-right: 0;
}

.sfn-segment.is-active,
.sfn-segment:hover {
  background: var(--sfn-mint-soft);
  color: #08796c;
}

.sfn-filter-row {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.sfn-select {
  flex: 1 1 0;
  min-width: 136px;
  max-width: 190px;
  min-height: 44px;
  padding: 0 34px 0 42px;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background-color: #fff;
  background-position: 14px 50%, calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 17px 17px, 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #1e293b;
  font-weight: 850;
  appearance: none;
}

.sfn-select:nth-child(1) {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h5v5H5zM14 5h5v5h-5zM5 14h5v5H5zM14 14h5v5h-5z'/%3E%3C/svg%3E"), linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
}

.sfn-select:nth-child(2) {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s7-6.1 7-12A7 7 0 1 0 5 9c0 5.9 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"), linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
}

.sfn-select:nth-child(3) {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8 4-3 3 3 3M5 7h14M16 14l3 3-3 3M5 17h14'/%3E%3C/svg%3E"), linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
}

.sfn-reset-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sfn-muted);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.sfn-reset-button .sfn-icon {
  width: 16px;
  height: 16px;
}

.sfn-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 20px 20px;
}

.sfn-home-page-content > .sfn-page-head,
.sfn-home-page-content > .sfn-stat-strip {
  display: none;
}

.sfn-home-page-content .sfn-card-grid {
  padding-top: 18px;
}

.sfn-opportunity-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.sfn-opportunity-card:hover {
  border-color: #b9d7ff;
  transform: translateY(-2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.sfn-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

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

.sfn-badge,
.sfn-dday {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sfn-badge {
  background: #f1f5f9;
  color: #334155;
}

.sfn-badge--status-open {
  background: var(--sfn-mint-soft);
  color: #08796c;
}

.sfn-badge--status-urgent {
  background: var(--sfn-red-soft);
  color: var(--sfn-red);
}

.sfn-badge--status-planned {
  background: var(--sfn-purple-soft);
  color: var(--sfn-purple);
}

.sfn-badge--category {
  background: var(--sfn-blue-soft);
  color: #1d4ed8;
}

.sfn-dday {
  background: var(--sfn-red-soft);
  color: var(--sfn-red);
}

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

.sfn-card__title {
  margin: 0;
  color: var(--sfn-navy);
  font-size: 19px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.sfn-card__summary {
  min-height: 46px;
  margin: 8px 0 12px;
  color: var(--sfn-muted);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.55;
}

.sfn-info-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--sfn-soft-line);
}

.sfn-info-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid var(--sfn-soft-line);
  font-size: 13px;
}

.sfn-info-row dt {
  color: #08796c;
  font-weight: 900;
}

.sfn-info-row dd {
  margin: 0;
  color: #334155;
  font-weight: 750;
}

.sfn-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.sfn-button,
.sfn-link-button,
.sfn-outline-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.sfn-button {
  min-width: 126px;
  padding: 0 16px;
  background: var(--sfn-navy);
  color: #fff;
}

.sfn-button:hover {
  background: #12284a;
  color: #fff;
}

.sfn-link-button {
  color: #334155;
}

.sfn-sidebar {
  display: grid;
  gap: 12px;
}

.sfn-panel__inner {
  padding: 22px;
}

.sfn-panel h2,
.sfn-panel h3 {
  margin: 0 0 18px;
  color: var(--sfn-navy);
  font-size: 18px;
  line-height: 1.25;
}

.sfn-panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.sfn-panel-title-row h2 {
  margin: 0;
}

.sfn-panel-title-row a {
  color: var(--sfn-muted);
  font-size: 13px;
  font-weight: 900;
}

.sfn-mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfn-mini-list a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sfn-mini-list strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sfn-navy);
  font-size: 14px;
  line-height: 1.35;
}

.sfn-mini-list em {
  min-width: 32px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.sfn-mini-list span {
  color: var(--sfn-muted);
  font-weight: 900;
}

.sfn-quick-menu .sfn-icon {
  width: 20px;
  height: 20px;
  color: #334155;
}

.sfn-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sfn-keywords a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--sfn-line);
  border-radius: 999px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.sfn-notice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfn-notice-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sfn-notice-list a {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sfn-notice-list time {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.sfn-alert-panel {
  background: #fbfdff;
}

.sfn-alert-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sfn-alert-panel p {
  margin: 0 0 14px;
  color: var(--sfn-muted);
  font-size: 13px;
  font-weight: 700;
}

.sfn-alert-icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid #bdd5fb;
  border-radius: 999px;
  color: var(--sfn-blue);
  background: #f4f8ff;
}

.sfn-outline-button {
  padding: 0 14px;
  border: 1px solid #b8d1f4;
  background: #fff;
  color: var(--sfn-blue);
  font-size: 13px;
}

.sfn-entry-shell {
  display: grid;
  grid-template-columns: minmax(0, 820px) 320px;
  gap: 28px;
  align-items: start;
}

.sfn-entry {
  overflow: hidden;
  padding: 0;
}

.sfn-entry > .sfn-entry-meta,
.sfn-entry > h1,
.sfn-entry > .sfn-entry-deck,
.sfn-entry > .sfn-entry-tags,
.sfn-entry > .sfn-featured-image,
.sfn-entry > .sfn-entry-content {
  margin-left: clamp(22px, 4vw, 48px);
  margin-right: clamp(22px, 4vw, 48px);
}

.sfn-entry > .sfn-entry-meta {
  margin-top: clamp(24px, 4vw, 42px);
}

.sfn-entry h1 {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--sfn-navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
}

.sfn-entry-deck {
  max-width: 720px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #475569;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

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

.sfn-entry-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0 11px;
  background: #f8fbff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.sfn-entry-content {
  padding-bottom: clamp(26px, 4vw, 46px);
}

.sfn-entry-content h1 {
  display: none;
}

.sfn-entry h2 {
  position: relative;
  margin: 42px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--sfn-soft-line);
  color: var(--sfn-navy);
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.3;
  letter-spacing: 0;
}

.sfn-entry h2::before {
  content: "";
  position: absolute;
  top: 27px;
  left: -18px;
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sfn-blue), var(--sfn-mint));
}

.sfn-entry h3 {
  margin: 28px 0 10px;
  color: #10223f;
  font-size: 21px;
  line-height: 1.35;
}

.sfn-entry p,
.sfn-entry li {
  color: #334155;
  font-size: 16.5px;
  line-height: 1.85;
}

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

.sfn-entry ul,
.sfn-entry ol {
  margin: 14px 0 24px;
  padding: 18px 22px 18px 38px;
  border: 1px solid #e4edf7;
  border-radius: 8px;
  background: #fbfdff;
}

.sfn-entry li + li {
  margin-top: 8px;
}

.sfn-entry strong {
  color: #10223f;
  font-weight: 900;
}

.sfn-entry a {
  color: #1d4ed8;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sfn-entry table {
  width: 100%;
  margin: 18px 0 30px;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.sfn-entry th,
.sfn-entry td {
  padding: 13px 15px;
  border-right: 1px solid #e6eef7;
  border-bottom: 1px solid #e6eef7;
  color: #243449;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

.sfn-entry th {
  width: 30%;
  background: #eef8f6;
  color: #075f55;
  font-weight: 900;
}

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

.sfn-entry th:last-child,
.sfn-entry td:last-child {
  border-right: 0;
}

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

.sfn-featured-image {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--sfn-line);
  background: #f8fafc;
}

.sfn-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sfn-entry-actions {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.sfn-entry-actions:empty {
  display: none;
}

.sfn-entry-shell > .sfn-panel {
  position: sticky;
  top: 24px;
}

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

.sfn-post-row {
  padding: 20px;
  border: 1px solid var(--sfn-line);
  border-radius: 8px;
  background: #fff;
}

.sfn-post-row h2 {
  margin: 0 0 8px;
  color: var(--sfn-navy);
  font-size: 22px;
}

.sfn-empty {
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--sfn-muted);
  font-weight: 800;
}

.sfn-footer {
  border-top: 1px solid #1e293b;
  background: #070d18;
  color: #dbeafe;
}

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

.sfn-footer h2,
.sfn-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
}

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

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

.sfn-footer__bottom {
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 13px;
}

.sfn-footer__bottom-inner {
  display: block;
  padding: 14px 0;
}

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

  .sfn-nav,
  .sfn-header__tools {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

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

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

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

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

@media (max-width: 760px) {
  .sfn-header__inner,
  .sfn-main,
  .sfn-footer__inner {
    width: calc(100% - 28px);
    max-width: var(--sfn-max);
  }

  .sfn-header__inner {
    min-height: 64px;
    gap: 12px;
  }

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

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

  .sfn-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sfn-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
  }

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

  .sfn-nav a {
    min-height: 44px;
  }

  .sfn-nav a::after {
    display: none;
  }

  .sfn-header__tools {
    width: 100%;
    min-width: 0;
  }

  .sfn-icon-button {
    display: none;
  }

  .sfn-search {
    width: 100%;
  }

  .sfn-main {
    padding-top: 28px;
  }

  .sfn-page-title {
    font-size: 30px;
    max-width: calc(100vw - 28px);
    overflow-wrap: anywhere;
  }

  .sfn-page-subtitle {
    font-size: 15px;
    max-width: calc(100vw - 28px);
    overflow-wrap: anywhere;
    word-break: break-all;
  }

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

  .sfn-stat {
    min-height: 78px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--sfn-soft-line);
  }

  .sfn-stat:last-child {
    border-bottom: 0;
  }

  .sfn-filter-row {
    flex-direction: column;
  }

  .sfn-segments {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sfn-segment {
    min-width: 0;
  }

  .sfn-segment:nth-child(2) {
    border-right: 0;
  }

  .sfn-segment:nth-child(1),
  .sfn-segment:nth-child(2) {
    border-bottom: 1px solid var(--sfn-line);
  }

  .sfn-select {
    width: 100%;
    max-width: none;
  }

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

  .sfn-opportunity-card {
    min-height: auto;
  }

  .sfn-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .sfn-button,
  .sfn-link-button {
    width: 100%;
  }

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