.sftp-profile {
    --sftp-teal: #1f8785;
    --sftp-teal-dark: #176d6b;
    --sftp-teal-soft: #eaf8f7;
    --sftp-gold: #ffad00;
    --sftp-gold-dark: #c57f08;
    --sftp-cream: #fafaf7;
    --sftp-white: #ffffff;
    --sftp-text: #1f2933;
    --sftp-muted: #68747f;
    --sftp-line: #d8e8e7;
    background: var(--sftp-cream);
    color: var(--sftp-text);
    font-family: "Inter", "Open Sans", sans-serif;
    line-height: 1.7;
    min-height: 70vh;
}

.sftp-profile *, .sftp-profile *::before, .sftp-profile *::after { box-sizing: border-box; }
.sftp-container { margin: 0 auto; max-width: 1180px; padding-left: 24px; padding-right: 24px; }

.sftp-hero {
    background: linear-gradient(135deg, var(--sftp-teal-soft) 0%, #fff 68%, #fff7e4 100%);
    border-bottom: 4px solid var(--sftp-gold);
    padding: 54px 0 40px;
}
.sftp-hero-grid { align-items: center; display: grid; gap: 42px; grid-template-columns: 230px minmax(0, 1fr); }
.sftp-photo-wrap { display: flex; justify-content: center; }
.sftp-photo {
    background: linear-gradient(145deg, var(--sftp-teal-dark), var(--sftp-teal));
    border: 5px solid var(--sftp-gold);
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(31, 135, 133, .18);
    display: flex;
    height: 210px;
    object-fit: cover;
    width: 210px;
}
.sftp-photo-placeholder { align-items: center; color: #fff; font-family: "Playfair Display", serif; font-size: 64px; font-weight: 700; justify-content: center; }
.sftp-kicker { color: var(--sftp-teal-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; margin: 0 0 8px; text-transform: uppercase; }
.sftp-identity h1 { color: var(--sftp-teal-dark); font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4vw, 50px); line-height: 1.16; margin: 0 0 18px; }
.sftp-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.sftp-badge { background: var(--sftp-teal); border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; padding: 7px 13px; }
.sftp-badge-gold { background: var(--sftp-gold); color: #2b240f; }

.sftp-stats { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 24px; max-width: 920px; }
.sftp-stats > div { background: rgba(255,255,255,.88); border: 1px solid #a7ddda; border-radius: 10px; box-shadow: 0 5px 16px rgba(31,135,133,.07); padding: 14px 10px; text-align: center; }
.sftp-stats strong { color: var(--sftp-teal-dark); display: block; font-size: 26px; line-height: 1; }
.sftp-stats span { color: var(--sftp-muted); display: block; font-size: 11px; margin-top: 6px; }

.sftp-tabs { background: var(--sftp-teal-dark); position: sticky; top: 0; z-index: 20; }
.admin-bar .sftp-tabs { top: 32px; }
.sftp-tabs-inner { display: flex; overflow-x: auto; }
.sftp-tabs .sftp-tab,
.sftp-tabs .sftp-tab:visited {
    -webkit-text-fill-color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #fff !important;
    cursor: pointer;
    font: 700 14px/1 "Inter", sans-serif;
    padding: 18px 24px;
    white-space: nowrap;
}
.sftp-tabs .sftp-tab:hover,
.sftp-tabs .sftp-tab:focus {
    -webkit-text-fill-color: #fff;
    background: rgba(255,255,255,.10);
    color: #fff !important;
}
.sftp-tabs .sftp-tab.is-active {
    -webkit-text-fill-color: #fff;
    background: var(--sftp-teal);
    border-bottom-color: var(--sftp-gold);
    color: #fff !important;
}

.sftp-body { padding-bottom: 64px; padding-top: 38px; }
.sftp-panel[hidden] { display: none !important; }
.sftp-layout { align-items: start; display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr) 330px; }
.sftp-main-column, .sftp-sidebar { display: grid; gap: 24px; }
.sftp-card { background: var(--sftp-white); border: 1px solid var(--sftp-line); border-radius: 14px; box-shadow: 0 7px 24px rgba(31, 80, 79, .07); padding: 28px; }
.sftp-card h2 { color: var(--sftp-teal-dark); font-family: "Playfair Display", Georgia, serif; font-size: 26px; margin: 0 0 18px; padding-left: 15px; position: relative; }
.sftp-card h2::before { background: var(--sftp-gold); border-radius: 2px; content: ""; height: 30px; left: 0; position: absolute; top: 1px; width: 5px; }
.sftp-rich-content > :first-child { margin-top: 0; }
.sftp-rich-content > :last-child { margin-bottom: 0; }
.sftp-rich-content p { margin-bottom: 1.1em; text-align: justify; }
.sftp-rich-content strong { color: var(--sftp-teal-dark); }
.sftp-rich-content li { margin-bottom: 9px; }
.sftp-empty { color: var(--sftp-muted); font-style: italic; margin: 0; }
.sftp-empty-panel { min-height: 240px; }

.sftp-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.sftp-chips span, .sftp-course-grid span { background: var(--sftp-teal-soft); border: 1px solid #a7ddda; border-radius: 999px; color: var(--sftp-teal-dark); font-size: 13px; font-weight: 600; padding: 7px 12px; }
.sftp-list { list-style: none; margin: 0; padding: 0; }
.sftp-list li { border-left: 3px solid var(--sftp-gold); margin-bottom: 14px; padding: 8px 0 8px 16px; }
.sftp-course-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.sftp-external-links { display: grid; gap: 9px; }
.sftp-external-links a, .sftp-note a { border: 1px solid var(--sftp-line); border-radius: 8px; color: var(--sftp-teal-dark); font-weight: 600; padding: 10px 12px; text-decoration: none; }
.sftp-external-links a:hover, .sftp-note a:hover { background: var(--sftp-teal-soft); border-color: #a7ddda; }
.sftp-note { background: linear-gradient(145deg, #fff, var(--sftp-teal-soft)); }
.sftp-note p { color: var(--sftp-muted); }
.sftp-note a { display: inline-block; margin-top: 6px; }
.sftp-section-heading { align-items: center; border-bottom: 1px solid var(--sftp-line); display: flex; justify-content: space-between; margin-bottom: 24px; padding-bottom: 18px; }
.sftp-section-heading h2 { margin-bottom: 0; }
.sftp-count { background: var(--sftp-gold); border-radius: 999px; color: #2b240f; font-size: 12px; font-weight: 700; padding: 7px 12px; }
.sftp-publication-content > p > strong { display: block; font-size: 17px; margin-top: 24px; }
.sftp-publication-content ol { counter-reset: sftp-pub; list-style: none; margin-left: 0; padding-left: 0; }
.sftp-publication-content ol li { background: #fff; border: 1px solid var(--sftp-line); border-left: 4px solid var(--sftp-teal); border-radius: 9px; margin: 0 0 12px; padding: 15px 17px 15px 44px; position: relative; }
.sftp-publication-content ol li::before { color: var(--sftp-teal-dark); content: counter(list-item) "."; font-weight: 700; left: 16px; position: absolute; }
.sftp-record-list { counter-reset: sftp-record; display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.sftp-record-list > li { background: #fff; border: 1px solid var(--sftp-line); border-left: 4px solid var(--sftp-teal); border-radius: 10px; counter-increment: sftp-record; padding: 18px 18px 18px 52px; position: relative; }
.sftp-record-list > li::before { color: var(--sftp-teal-dark); content: counter(sftp-record) "."; font-weight: 700; left: 18px; position: absolute; top: 19px; }
.sftp-record-list h3 { font-size: 16px; line-height: 1.45; margin: 0 0 10px; }
.sftp-record-list h3 a { color: var(--sftp-teal-dark); text-decoration: none; }
.sftp-record-list h3 a:hover { color: var(--sftp-gold-dark); text-decoration: underline; }
.sftp-record-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.sftp-record-meta span { background: var(--sftp-teal-soft); border-radius: 999px; color: var(--sftp-teal-dark); font-size: 11px; font-weight: 700; padding: 4px 9px; }
.sftp-record-detail { color: var(--sftp-muted); font-size: 13px; margin: 0 0 10px; }
.sftp-record-links { display: flex; flex-wrap: wrap; gap: 12px; }
.sftp-record-links a { color: var(--sftp-teal-dark); font-size: 12px; font-weight: 700; text-decoration: underline; }
.sftp-table-wrap { border: 1px solid var(--sftp-line); border-radius: 10px; overflow-x: auto; }
.sftp-teaching-table { border-collapse: collapse; font-size: 13px; min-width: 850px; width: 100%; }
.sftp-teaching-table th { background: var(--sftp-teal-dark); color: #fff; font-size: 12px; letter-spacing: .02em; padding: 13px 14px; text-align: left; }
.sftp-teaching-table td { border-bottom: 1px solid var(--sftp-line); padding: 12px 14px; vertical-align: top; }
.sftp-teaching-table tbody tr:nth-child(even) { background: var(--sftp-teal-soft); }
.sftp-teaching-table tbody tr:last-child td { border-bottom: 0; }
.sftp-teaching-table td:nth-child(1), .sftp-teaching-table td:nth-child(3), .sftp-teaching-table td:nth-child(4) { white-space: nowrap; }
.sftp-data-source { color: var(--sftp-muted); font-size: 12px; margin: 16px 0 0; }
.sftp-data-source a { color: var(--sftp-teal-dark); font-weight: 700; }

@media (max-width: 900px) {
    .sftp-hero-grid { grid-template-columns: 180px minmax(0, 1fr); }
    .sftp-photo { height: 170px; width: 170px; }
    .sftp-layout { grid-template-columns: 1fr; }
    .sftp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sftp-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .sftp-container { padding-left: 17px; padding-right: 17px; }
    .sftp-hero { padding: 36px 0 30px; }
    .sftp-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .sftp-badges { justify-content: center; }
    .sftp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sftp-sidebar { grid-template-columns: 1fr; }
    .sftp-card { border-radius: 11px; padding: 22px 18px; }
    .sftp-rich-content p { text-align: left; }
    .admin-bar .sftp-tabs { top: 46px; }
}
