/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: #1f2937;
  background-color: #f8f9fb;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
}

/* TYPOGRAPHY */

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.3rem;
}

p,
li {
  margin-bottom: 1rem;
}

/* LISTS **/
ol,
ul,
ol li,
ul li {
  margin-left: 12pt;
  margin-bottom: 0pt;
}

/* SECTION DIVIDER */
.section-divider {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

/* HEADER */

header {
  width: 100%;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fb;
}

.hero-hook {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 768px) {
  .hero-hook {
    font-size: 2rem; /* Scales down smoothly so it doesn't clip on phones */
    margin-bottom: 1rem;
  }
}

/* CONTAINERS */

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

.profile-container {
  margin-top: 1rem;

  align-items: center;
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 1.5rem;
}

.profile-container-left{
  display:block;
  align-items: center;
}

.profile-container-left p {
  max-width: 650px;
}

.profile-container-right {
  margin: 0;
}

.profile-container-right img {
  width: auto;
  max-width: 17rem;
}

/* LOGO */

.logo h1 {
  font-size: 1.8rem;
}

/* NAVIGATION */

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  margin-left: 1.5rem;
  color: #1f2937;
  font-weight: 500;
}

nav a:hover {
  color: #0696D7;
  text-decoration: none;
}

/* SECTIONS */

section {
  margin-bottom: 5rem;
}

/* LOGO CAROUSEL */
/* TOOLS SECTION */

.tools {
  margin: 5rem 0;
}

/* SLIDER CONTAINER */

.logo-slider {
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  margin-top: 2rem;
  padding: 1.5rem 0;
  white-space: nowrap;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 22s linear infinite;
}

.logo-set {
  display: flex;
  align-items: center;
}

/* LOGOS */

.logo-set img {
  /*height: 500px;*/
  /*opacity: 0.7;*/
  /*filter: grayscale(100%);*/
  padding: 0 0.5rem;
  margin: 0 1rem;
}

.logo-set img:hover {
  opacity: 1;
}

/* ANIMATION */

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ON HOVER */
.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /*margin: 0 3rem;*/
  position: relative;

  transition: transform 0.25s ease;
}

.logo-item img {
  height: 40px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.25s ease;
}

.logo-item:hover img {
  transform: scale(1.6);
  opacity: 1;
  filter: grayscale(0%);
}

.logo-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #1f2937;

  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;

  white-space: nowrap;
}

.logo-item:hover .logo-label {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLL GRADIENT */
.logo-slider::before,
.logo-slider::after {
  content: "";

  position: absolute;

  top: 0;

  width: 100px;
  height: 100%;

  z-index: 2;
}

.logo-slider::before {
  left: 0;

  background: linear-gradient(
    to right,
    #f8f9fb,
    transparent
  );
}

.logo-slider::after {
  right: 0;

  background: linear-gradient(
    to left,
    #f8f9fb,
    transparent
  );
}

/* SKILLS SECTION*/
.skills {
  margin: 5rem 0;
}

.skills-container {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 4rem;

  align-items: stretch;
}

.skills-left {
  display: flex;
  align-items: center; /* vertically centers text inside full height */
}

.skills-left-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically centers text block */
  height: 100%;
}

.skills-left h2 {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.skills-left p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 90%;
}

.skills-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 615px;

  align-content: stretch; /* IMPORTANT */
}

.skill-card {
  width: 100%;

  border: 1px solid #dce1e7;
  border-radius: 12px;
  padding: 1rem;

  background: white;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  min-height: 150px; /* key for uniformity */
}

.skill-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;

  overflow-wrap: anywhere;
}

.skill-card p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.skill-card img {
  height: 3em;   /* matches H3 font size */
  width: auto;
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* PROJECT CARDS */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.project-card {
  text-decoration: none;
  color: inherit;

  height: 250px;
  perspective: 1000px;
}

.project-card-inner {
  position: relative;

  width: 100%;
  height: 100%;

  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  padding: 2rem;
  backface-visibility: hidden;
  background: white;
}

.project-card-front {
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: center;

  gap: 0.8rem;

  text-align: center;
  padding: 2rem;
}

.project-card-back {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.6;

  flex-direction: column;
  gap: 1rem;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 90%;
}

.project-card-header img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.project-card-header h3 {
  margin: 0;
  line-height: 1.2;
  text-align: left;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.divider {
  width: 1px;
  height: 24px;
  background: #d1d5db;
}

.project-card-front h3 {
  margin: 0;
  line-height: 1;
}

.project-card-front p {
  margin: 0;
  display: block;
  width: 100%;
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 90%;
}

/* BUTTON */
.project-btn {
  display: inline-block;

  padding: 0.4rem 0.9rem;
  border-radius: 999px; /* oblong pill */

  background: #0b5cab; /* AEC-style blue */
  color: white;

  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2px;

  transition: all 0.25s ease;

  margin-top: 0.5rem;
}

/* HOVER STATE */
.project-btn:hover {
  background: #094c8f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(6, 150, 215, 0.18);
}

/* ACTIVE/CLICK FEEDBACK */
.project-btn:active {
  transform: translateY(0px);
  box-shadow: none;
}

.project-card:hover {
  transform: translateY(-4px);
}

/* MOBILE */

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* IMAGES */

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* FOOTER */

footer {
  margin-top: 4rem;
  padding-top: 2rem;

  border-top: 1px solid #ddd;

  font-size: 0.9rem;
  color: #666;

  text-align: center;
}

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN ARCHITECTURE
   ========================================================================== */

@media (max-width: 992px) {
  /* Prevent Profile layout from clipping on intermediate viewports */
  .profile-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .profile-container-left p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-container-right img {
    max-width: 15rem;
    margin: 0 auto;
  }

  /* Structural adjustment for Skills Layout */
  .skills-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .skills-left {
    text-align: center;
  }
  
  .skills-left p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Header Structural Adjustments */
  .header-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  /* Clean layout adjustments for layout blocks */
  .skills-right {
    grid-template-columns: 1fr;
  }

  /* DISABLE THE 3D FLIP ARCHITECTURE ON TOUCH DEVICES FOR BETTER UX */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    height: auto;
    perspective: none;
  }

  .project-card-inner {
    transition: none;
    transform-style: flat;
  }

  /* Force layout engine to stop stacking elements natively */
  .project-card:hover .project-card-inner {
    transform: none;
  }

  /* Transform front and back states into unified layout elements */
  .project-card-front,
  .project-card-back {
    position: relative;
    width: 100%;
    height: auto;
    transform: none;
    backface-visibility: visible;
    border-radius: 12px;
  }

  .project-card-front {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 2.5rem 1.5rem 1rem 1.5rem;
  }

  .project-card-back {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 0 1.5rem 2.5rem 1.5rem;
  }
  
  .project-card:hover {
    transform: translateY(-2px);
  }
}

/* ==========================================================================
   LINE 667: DOCS PORTAL HOVER LANDING PAGE SYSTEM
   ========================================================================== */

.portal-landing {
  margin-top: 4rem;
  margin-bottom: 6rem;
}

.portal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* SEARCH BAR PLATFORM */
.search-container {
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
  padding: 0 1rem;
}

#docs-search {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  background-color: white;
  color: #1f2937;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

#docs-search:focus {
  outline: none;
  border-color: #0b5cab;
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.15);
}

/* THE 6-CARD GRID ARCHITECTURE */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portal-card {
  background: white;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
  flex: 1 1 calc(33.333% - 1.5rem);
  min-height: 200px;
}

.portal-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1rem;
}

.card-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.portal-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* 1. Ensure the parent card doesn't clip children */
.portal-card {
  position: relative; /* Context foundation */
  overflow: visible !important; /* Forces grid tracks to allow spill-out */
  z-index: 1;
  transition: transform 0.2s ease, z-index 0s;
}

.no-wrap-context {
  white-space: nowrap;
}

.global-tooltip-trigger {
  cursor: help;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-left: 0.35rem;
  display: inline-block;
  transition: color 0.2s ease;
}

.global-tooltip-trigger:hover {
  color: #2563eb;
}

/* This box lives directly on the document body, immune to card overflow constraints */
.global-floating-tooltip {
  position: absolute;
  background-color: #1e293b;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  width: 250px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
  z-index: 99999; /* Forces it over every layout layer on the page */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%); /* Keeps arrow pinpoint centered */
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.global-floating-tooltip.visible {
  opacity: 1;
  visibility: visible;
}
/* Prevents the last word of the title and the info icon from separating */
.no-wrap-context {
  white-space: nowrap;
}

/* INTERIOR CARD CONTENT LINKS */
.sample-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sample-links li {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.sample-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.15s ease;
}

.sample-links a:hover {
  color: #0b5cab;
  text-decoration: underline;
}

/* ==========================================================================
   INNER ARTICLE VIEW LAYOUT (WITH ACTIVE LEFT SIDEBAR)
   ========================================================================== */

.kb-inner-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-top: 4rem;
  margin-bottom: 6rem;
  align-items: start;
}

.kb-article-sidebar {
  position: sticky;
  top: 3rem;
  background: #f8f9fb;
  padding-right: 1rem; /* Reduced right padding to maximize horizontal line space */
}

.back-to-portal {
  display: inline-block;
  text-decoration: none;
  font-size: 0.8rem; /* Scaled down from 0.9rem */
  font-weight: 600;
  color: #0b5cab;
  margin-bottom: 0.75rem; /* Cut down significantly from 2rem to flush list upward */
}

.kb-article-sidebar h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin-bottom: 0.5rem; /* Reduced from 1rem to keep it tight against the first link group */
}

.kb-inner-nav {
  display: flex;
  flex-direction: column;
  gap: 1px; /* Changed from 0.25rem (4px) to 1px for high-density nesting */
}

.nav-group-title {
  font-size: 0.72rem; /* Scaled down slightly from 0.8rem for scannability */
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  margin-top: 0.5rem; /* Halved from 1rem to remove large empty pockets between blocks */
  margin-bottom: 0.1rem; /* Tightened from 0.25rem to push titles right against their links */
}

/* Removes top margin from the very first category header so it aligns with the baseline */
.nav-group-title:first-of-type {
  margin-top: 0;
}

.kb-inner-nav a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.82rem; /* Scaled down from 0.95rem so long titles wrap less and stay on one line */
  font-weight: 500;
  padding: 0.2rem 0.35rem; /* Shaved vertical padding from 0.4rem to 0.2rem to group links closely */
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1.3; /* Tightened link line-height to ensure any multi-line wrapping stays compact */
}

.kb-inner-nav a:hover,
.kb-inner-nav a.active {
  color: #0b5cab;
  background: #eef2f6;
  font-weight: 600;
}

/* INNER ARTICLE CONTENT BODY */
.doc-body h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.doc-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.doc-body hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

/* RESPONSIVE DESIGN CONTROLS */
@media (max-width: 992px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kb-inner-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .kb-article-sidebar {
    position: relative;
    top: 0;
    padding-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Project Introduction: Lowkey Minimalist Accordion
   ========================================================================== */

.project-intro-accordion {
  background-color: transparent; 
  border: none;                  
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: none;              
}

.project-intro-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;             
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid #e2e8f0; 
}

.accordion-toggle-icon {
  width: 6px;
  height: 6px;
  border-right: 2px solid #94a3b8;  
  border-bottom: 2px solid #94a3b8; 
  transform: rotate(45deg); 
  transition: transform 0.2s ease-in-out;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.project-intro-accordion[open] .accordion-toggle-icon {
  transform: rotate(225deg); 
}

.project-intro-accordion .accordion-content {
  padding: 1rem 0; 
}

.project-intro-accordion summary h2 {
  color: #475569;                
  margin: 0;
  font-size: 0.95rem;            
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-intro-accordion h3 {
  color: #64748b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-intro-accordion p,
.project-intro-accordion li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #334155;
}

.section-divider {
  border: 0;
  border-top: 1px solid #f1f5f9;
  margin: 1.5rem 0;
}

/* ==========================================================================
   Compact Download Component: Contained & Low-Noise
   ========================================================================== */

.accordion-download-zone {
  margin-top: 1.25rem;
  padding: 1rem;            /* Tight internal padding */
  background-color: #f8fafc; /* Very light background for separation */
  border: 1px solid #e2e8f0; /* Subtle border */
  border-radius: 4px;
}

.download-notice-text {
  font-size: 0.8rem;        /* Smaller font */
  line-height: 1.4;
  color: #64748b;           /* Softer grey */
  margin-bottom: 0.75rem;   /* Tighter spacing */
}

/* The Download Button Style */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px; 
  padding: 5px 10px; /* Reduced vertical and horizontal padding */
  font-size: 0.85rem; /* Smaller font */
  background-color: #f1f5f9; /* Soft grey background */
  color: #334155 !important; /* Dark text for contrast */
  border: 1px solid #cbd5e1; /* Subtle border */
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content; /* Keeps the button from stretching */
}

.btn-download:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

/* Tighten the SVG icon spacing */
.btn-download svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* Subtle micro-interaction */
.btn-download:hover svg {
  transform: translateY(1px); /* Slight downward nudge */
}

/* Modal Overlay Backdrop Setup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

/* Modal View State Active State */
.modal-overlay.is-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Central Overlay Form Card Container */
.modal-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  transform: translateY(15px);
  transition: transform 0.2s ease-in-out;
}

.modal-overlay.is-active .modal-card {
  transform: translateY(0);
}

/* Typography Mechanics inside Dialogs */
.modal-card h2 {
  font-size: 1.35rem;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.modal-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Form Group Layout Configurations */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-group input {
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #0b5cab;
  background: #ffffff;
}

/* Modal Actions Layout Structure Row */
.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Interactive CTA Form Button Controls */
.btn-modal-cancel, 
.btn-modal-submit {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.btn-modal-cancel {
  background-color: #f1f5f9;
  color: #475569;
}

.btn-modal-cancel:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

.btn-modal-submit {
  background-color: #0b5cab;
  color: #ffffff;
}

.btn-modal-submit:hover {
  background-color: #08437d;
}

.btn-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* PROJECT META DATA */
.doc-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem; /* Tight vertical gap, generous horizontal gap */
  margin: 1.5rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8; /* Subtle gray label */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.meta-value {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 500;
}

/* Mobile responsiveness: stack to one column on small screens */
@media (max-width: 600px) {
  .doc-meta-bar {
    grid-template-columns: 1fr;
  }
}

/* Meta-commentary callout */
.portfolio-callout {
  margin: 1.5rem 0 1.5rem 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
  font-style: italic; /* Forces all text, including the label, to be italic */
  letter-spacing: 0.01em;
  display: block;      /* Ensures the container respects the margin */
}

/* Forces the label to be inline */
.portfolio-callout::before {
  content: "Author’s Note: ";
  font-weight: 700;    /* Makes it bold */
  display: inline;     /* Ensures it stays on the same line */
}