/* ==========================================================================
   NORMAL TEMPLATE STYLES
   Editorial, refined typography, warm ivory palette, hand-drawn hero annotation
   ========================================================================== */

[data-template="normal"] {
  /* ==========================================================================
     HERO SECTION
     ========================================================================== */
  .hero-section {
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
  }

  .hero-section::before {
    content: "";
    position: absolute;
    top: 54%;
    left: 72%;
    transform: translateY(-50%);
    width: 440px;
    height: 440px;
    background-image: url('/static/images/tbs_simple_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
  }

  [data-theme="dark"] .hero-section::before {
    opacity: 0.04;
    filter: brightness(1.2);
  }

  .hero-section > .container {
    position: relative;
    z-index: 1;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-badge-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text-heading);
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    color: var(--accent-muted);
    letter-spacing: -0.015em;
  }

  .hero-bio {
    font-size: 1.12rem;
    line-height: 1.68;
    color: var(--text-secondary);
    max-width: 580px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
  }

  /* Profile Photo with Hand-Drawn Annotation */
  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem 2rem;
  }

  .profile-frame-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    margin-top: 1.5rem;
  }

  .profile-circle-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--tag-bg) 100%);
    border: 3px solid var(--border-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 2;
  }

  .profile-circle-frame img,
  .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
  }

  .profile-avatar-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-heading);
    user-select: none;
  }

  .avatar-initials {
    font-size: 4.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--text-heading);
    background: linear-gradient(135deg, var(--text-heading), var(--accent-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .avatar-role-label {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
  }

  /* SVG Annotation Container */
  .hand-drawn-annotation {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 360px;
    height: 360px;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
  }

  .marker-stroke {
    stroke: var(--annotation-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .marker-circle {
    stroke-width: 3.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    animation: drawCircle 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .marker-arrow {
    stroke-width: 3.2;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: drawArrow 0.8s 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .annotation-text-badge {
    position: absolute;
    top: -28px;
    right: -100px;
    font-family: var(--font-handwriting);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--annotation-blue);
    line-height: 1.15;
    transform: rotate(15deg);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    background-color: var(--annotation-bg);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    border: 1.5px dashed var(--annotation-blue);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.12);
    z-index: 6;
  }

  @keyframes drawCircle {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
  }

  @keyframes drawArrow {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
  }

  /* ==========================================================================
     SECTION QUICK NAVIGATION PILLS (FULL BUTTONS)
     ========================================================================== */
  .section-quick-nav {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    background-color: var(--bg-alt);
    position: sticky;
    top: 4.25rem;
    z-index: 30;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .section-nav-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .section-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .section-nav-pill .pill-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    opacity: 0.9;
  }

  .section-nav-pill:hover {
    color: var(--btn-primary-text);
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }

  .section-nav-pill:hover .pill-num {
    color: var(--btn-primary-text);
  }

  .section-nav-pill.active {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    font-weight: 700;
    box-shadow: var(--shadow);
  }

  .section-nav-pill.active .pill-num {
    color: var(--btn-primary-text);
    opacity: 1;
  }

  /* ==========================================================================
     SECTION CONTAINERS
     ========================================================================== */
  .section-block {
    padding: 5rem 0;
    border-top: 1px solid var(--border-subtle);
    scroll-margin-top: 8rem;
  }

  .section-block.alt-bg {
    background-color: var(--bg-alt);
  }

  /* Summary Section & Background Section TBS Watermark */
  .summary-section,
  #about {
    position: relative;
    overflow: hidden;
  }

  .summary-section::before,
  #about::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    width: 440px;
    height: 440px;
    background-image: url('/static/images/tbs_simple_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    transition: opacity var(--transition-normal);
  }

  [data-theme="dark"] .summary-section::before,
  [data-theme="dark"] #about::before {
    opacity: 0.5;
    filter: brightness(1.2);
  }

  .summary-section > .container,
  #about > .container {
    position: relative;
    z-index: 1;
  }

  /* ==========================================================================
     ABOUT SECTION (01 // BACKGROUND BOXES)
     ========================================================================== */
  .about-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .about-narrative {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 900px;
  }

  .about-narrative .lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-heading);
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .about-narrative p + p {
    margin-top: 1.25rem;
  }

  /* 01 // Background 3 Feature Boxes Grid */
  .about-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .highlight-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  }

  .highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-focus);
  }

  .highlight-icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-alt);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.15rem;
  }

  .highlight-body h4 {
    color: var(--text-heading);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
  }

  .highlight-body p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.25rem;
  }

  .highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-card);
  }

  .tag-pill {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background-color: var(--tag-bg);
    color: var(--tag-text);
  }

  /* ==========================================================================
     SKILLS SECTION
     ========================================================================== */
  .skills-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .skills-filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .skills-filter-btn:hover {
    color: var(--text-heading);
    border-color: var(--text-heading);
  }

  .skills-filter-btn.active {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
  }

  .skill-group-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  .skill-group-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }

  .skill-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .skill-group-title {
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .skill-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .language-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: var(--tag-bg);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
  }

  .language-item .lang-name {
    font-weight: 600;
    color: var(--text-heading);
  }

  .language-item .lang-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
  }

  /* ==========================================================================
     PROJECTS SECTION
     ========================================================================== */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
  }

  .project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    position: relative;
  }

  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--text-heading);
  }

  .project-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-number {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-muted);
  }

  .project-title {
    color: var(--text-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
  }

  .project-description {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  /* ==========================================================================
     EXPERIENCE TIMELINE
     ========================================================================== */
  .timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 2.5rem;
  }

  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    background-color: var(--timeline-line);
  }

  .timeline-item {
    position: relative;
    margin-bottom: 3rem;
  }

  .timeline-item:last-child {
    margin-bottom: 0;
  }

  .timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0.4rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    border: 3px solid var(--timeline-dot);
    box-shadow: 0 0 0 4px var(--bg-main);
    z-index: 2;
  }

  .timeline-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow);
  }

  .timeline-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .timeline-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
  }

  .timeline-dates {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .timeline-company-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .timeline-company {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--accent-muted);
  }

  .timeline-tasks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-task {
    position: relative;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .timeline-task::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-muted);
  }

  /* ==========================================================================
     EDUCATION & VOLUNTEERING
     ========================================================================== */
  .edu-vol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .info-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
  }

  .info-card-sub {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--accent-muted);
    margin-top: 0.25rem;
  }

  .info-card-details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* ==========================================================================
     CONTACT SECTION
     ========================================================================== */
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.25rem;
  }

  .contact-item-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
  }

  .contact-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-heading);
    box-shadow: var(--shadow-hover);
  }

  .contact-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background-color: var(--tag-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-heading);
    flex-shrink: 0;
  }

  .contact-info-wrap {
    overflow: hidden;
  }

  .contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
  }

  .contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ==========================================================================
     EMPTY STATES (SIDE QUESTS & WRITING)
     ========================================================================== */
  .editorial-page {
    padding: clamp(2rem, 5vw, 4rem) 1.25rem clamp(3rem, 6vw, 6rem);
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .empty-state-editorial {
    margin: 2rem auto 0;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .empty-state-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--tag-bg);
    color: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .empty-state-title {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    font-weight: 700;
    color: var(--text-heading);
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 0 0.5rem;
  }

  .empty-state-text {
    max-width: 480px;
    width: 100%;
    color: var(--text-secondary);
    font-size: clamp(0.92rem, 2.8vw, 1.02rem);
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 0 0.75rem;
    box-sizing: border-box;
  }

  .empty-state-meta {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .empty-state-meta span {
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .empty-state-editorial .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  [data-template="normal"] {
    .hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2.5rem;
    }

    .hero-content {
      align-items: center;
    }

    .hero-bio {
      margin: 0 auto;
    }

    .hero-actions {
      justify-content: center;
    }

    .about-highlights-grid {
      grid-template-columns: 1fr;
    }

    .edu-vol-grid {
      grid-template-columns: 1fr;
    }

    .profile-frame-wrap {
      width: clamp(210px, 46vw, 250px);
      height: clamp(210px, 46vw, 250px);
      margin: 1.5rem auto 0;
    }

    .hero-visual {
      padding: 2.25rem 0.5rem 1.5rem;
      overflow: visible;
    }

    .hand-drawn-annotation {
      position: absolute;
      top: -15%;
      left: -15%;
      width: 130%;
      height: 130%;
    }

    .annotation-text-badge {
      font-size: clamp(1rem, 3.2vw, 1.25rem);
      top: -24px;
      right: -10px;
      padding: 0.25rem 0.55rem;
      white-space: normal;
      max-width: 180px;
      text-align: center;
      transform: rotate(10deg);
    }
  }
}

@media (max-width: 768px) {
  [data-template="normal"] {
    .section-quick-nav {
      top: 3.75rem;
      padding: 0.5rem 0;
    }

    .section-nav-pills {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      justify-content: flex-start;
      padding: 0.2rem 0.75rem;
      gap: 0.45rem;
    }

    .section-nav-pills::-webkit-scrollbar {
      display: none;
    }

    .section-nav-pill {
      flex-shrink: 0;
      padding: 0.35rem 0.75rem;
      font-size: 0.82rem;
    }

    .section-block {
      padding: 3.5rem 0;
      scroll-margin-top: 6.5rem;
    }

    .hero-section {
      padding: 3.5rem 0 4rem;
    }
  }
}

@media (max-width: 600px) {
  [data-template="normal"] {
    .hero-title {
      font-size: clamp(1.85rem, 7.5vw, 2.5rem);
      line-height: 1.15;
    }

    .hero-subtitle {
      font-size: 1.15rem;
    }

    .hero-bio {
      font-size: 1rem;
    }

    .hero-actions .btn {
      padding: 0.55rem 1rem;
      font-size: 0.88rem;
    }

    .timeline {
      padding-left: 1.75rem;
    }

    .timeline::before {
      left: 7px;
    }

    .timeline-dot {
      left: -1.75rem;
      width: 18px;
      height: 18px;
      top: 0.45rem;
    }

    .timeline-card {
      padding: 1.25rem 1rem;
    }

    .timeline-top {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
    }

    .timeline-role {
      font-size: 1.05rem;
    }

    .timeline-dates {
      font-size: 0.8rem;
    }

    .timeline-company-row {
      gap: 0.4rem;
    }

    .info-card {
      padding: 1.35rem 1rem;
    }

    .info-card-header {
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .info-card-title {
      font-size: 1.1rem;
    }

    .project-card {
      padding: 1.5rem;
    }

    .project-title {
      font-size: 1.2rem;
    }

    .empty-state-editorial {
      padding: 2rem 1.25rem;
      margin-top: 1.5rem;
      width: 100%;
    }

    .empty-state-text {
      padding: 0 0.5rem;
    }

    .empty-state-meta {
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.4rem;
    }

    .contact-item-card {
      padding: 1rem;
    }

    .contact-value {
      font-size: 0.88rem;
    }
  }
}

@media (max-width: 400px) {
  [data-template="normal"] {
    .profile-frame-wrap {
      width: 195px;
      height: 195px;
    }

    .annotation-text-badge {
      font-size: 0.92rem;
      top: -18px;
      right: -6px;
      max-width: 140px;
      padding: 0.2rem 0.4rem;
    }

    .hero-actions {
      gap: 0.5rem;
    }

    .hero-actions .btn {
      padding: 0.5rem 0.85rem;
      font-size: 0.84rem;
    }

    .skill-group-card {
      padding: 1.25rem 0.85rem;
    }

    .editorial-page {
      padding: 1.75rem 0.85rem 3rem;
    }

    .empty-state-editorial {
      padding: 1.75rem 1rem;
    }

    .empty-state-text {
      padding: 0;
      font-size: 0.9rem;
    }
  }
}
