/* =============================================================
   ls-components.css — Lytton Studio
   Shared components used across multiple pages.
   Imported via head.php or per-page $extra_css.
   Mobile-first · WCAG 2.2 AA
   Last updated: 13-Aug-2026 — case-study callouts split into two
   components: aside.highlight-outcome (inside a case study) and
   aside.case-study-note (a quote, OUTSIDE the case study)
   ============================================================= */


/* ── Section label (eyebrow text) ──────────────────────────── */
.ls-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ls-teal-mid, #4E7A5B);
  margin: 0 0 0.6rem;
  display: block;
}


/* ═══════════════════════════════════════════════════════════
   ABOUT MY APPROACH SECTION
   Used on: services.php
   ============================================================ */

.ls-approach-section {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ls-bg-tint);
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ls-approach-inner {
  margin: 0 auto;
}

.ls-approach-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ls-teal-mid, #4E7A5B);
  margin: 0 0 0.6rem;
  display: block;
}

.ls-approach-heading {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ls-teal, #3F6B4C);
  margin: 0 0 1.6rem;
  line-height: 1.35;
}

/* Single column on mobile, two-column on wider screens */
.ls-approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ls-approach-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ls-text-muted, #565A61);
  margin: 0 0 1.1rem;
}

.ls-approach-body p:last-of-type {
  margin-bottom: 1.6rem;
}

/* Outcome box */
.ls-approach-outcome {
  border: 2px solid var(--ls-teal, #3F6B4C);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin: 0 0 1.8rem;
}

.ls-approach-outcome p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ls-teal, #3F6B4C);
  margin: 0;
}

.ls-outcome-secondary {
  color: var(--ls-teal-mid, #4E7A5B);
  font-style: italic;
}

/* Info cards */
.ls-approach-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.ls-approach-card {
  background: var(--ls-bg-green, #E9F2EA);
  border-radius: 6px;
  padding: 1rem 1.1rem;
}

.ls-approach-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ls-teal-mid, #4E7A5B);
  margin: 0 0 0.45rem;
  display: block;
}

.ls-approach-card p {
  font-size: 0.93rem;
  color: var(--ls-teal, #3F6B4C);
  margin: 0;
  line-height: 1.7;
}

@media (min-width: 42.5rem) {
  .ls-approach-grid { grid-template-columns: 3fr 1fr; }
  .ls-approach-cards { grid-template-columns: 1fr 1fr; }
  .ls-approach-heading { font-size: 1.55rem; }
}


/* ═══════════════════════════════════════════════════════════
   CAPABILITIES & OUTCOMES TABLE
   Used on: services.php
   ============================================================ */

.ls-cap-section {
  background: var(--ls-bg-tint);
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  margin: 0 0 2rem 0;
  padding: 1.5rem;
}

.ls-cap-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ls-teal, #3F6B4C);
  margin-bottom: 0.5rem;
}

.ls-cap-section .ls-intro {
  font-size: 1.05rem;
  color: var(--ls-text-muted, #565A61);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.ls-cap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.ls-cap-table thead tr {
  background-color: var(--ls-teal, #3F6B4C);
  color: #ffffff;
}

.ls-cap-table thead th {
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ls-cap-table tbody tr {
  border-bottom: 1px solid #DCE3DC;
  transition: background 0.15s;
}

.ls-cap-table tbody tr:hover {
  background-color: var(--ls-bg-green, #E9F2EA);
}

.ls-cap-table tbody tr:last-child {
  border-bottom: none;
}

.ls-cap-table td {
  padding: 1rem 1.2rem 1rem 0;
  vertical-align: top;
  line-height: 1.6;
  color: #2F3237;
}

.ls-cap-table td.cap-cell {
  width: 35%;
  font-weight: 600;
  color: var(--ls-teal, #3F6B4C);
  padding-left: 0;
}

.ls-cap-table td.out-cell {
  width: 65%;
  color: var(--ls-text-muted, #565A61);
}

.ls-cap-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ls-teal-mid, #4E7A5B);
  margin-bottom: 0.3rem;
}

.ls-cap-table td.out-cell strong {
  color: var(--ls-teal, #3F6B4C);
  font-weight: 600;
}

.ls-cap-footnote {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #565A61;
  font-style: italic;
  line-height: 1.6;
}

/* Mobile default: stacked card view */
.ls-cap-table thead { display: none; }

.ls-cap-table tbody tr {
  display: block;
  margin-bottom: 1.2rem;
  border: 1px solid #DCE3DC;
  border-radius: 6px;
  padding: 0.8rem;
  border-bottom: 1px solid #DCE3DC;
}

.ls-cap-table td {
  display: block;
  width: 100% !important;
  padding: 0.4rem 0.6rem;
}

.ls-cap-table td.cap-cell {
  font-size: 1rem;
  border-bottom: 1px solid #DCE3DC;
  padding-bottom: 0.6rem;
  margin-bottom: 0.4rem;
}

/* Tablet+: restore standard table layout */
@media (min-width: 40rem) {
  .ls-cap-table thead { display: table-header-group; }

  .ls-cap-table tbody tr {
    display: table-row;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    border-bottom: 1px solid #DCE3DC;
  }

  .ls-cap-table tbody tr:last-child { border-bottom: none; }

  .ls-cap-table td {
    display: table-cell;
    width: auto !important;
    padding: 1rem 1.2rem 1rem 0;
  }

  .ls-cap-table td.cap-cell {
    width: 35% !important;
    font-size: inherit;
    border-bottom: none;
    padding-bottom: inherit;
    margin-bottom: 0;
    padding-left: 0;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESOURCES PAGE COMPONENTS
   Used on: resources.php
   ============================================================ */

.resources-section-heading {
  font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.4rem);
  color: var(--ls-teal);
  margin-bottom: 0.5rem;
}

.resources-section-intro {
  font-size: 0.95rem;
  color: var(--ls-text-muted);
  max-width: 70ch;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Featured article */
.resources-thinking {
  margin-bottom: 2rem;
}

.resource-article {
  border-left: 4px solid var(--ls-teal);
}

.resource-article h4 {
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.3rem);
  color: var(--ls-teal);
  margin-bottom: 0.75rem;
}

.resource-article p {
  font-size: 0.97rem;
  color: var(--ls-text-muted);
  line-height: 1.8;
  margin-bottom: 0.85rem;
  max-width: 72ch;
}

.resource-cta-line {
  margin-top: 1rem;
  margin-bottom: 0 !important;
}

/* Skeletons grid */
.resources-skeletons {
  margin-bottom: 2rem;
}

.skeletons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .skeletons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skeleton-card h4 {
  font-size: clamp(1rem, 0.8vw + 0.9rem, 1.2rem);
  color: var(--ls-teal);
  margin-bottom: 0.5rem;
}

.skeleton-card p {
  font-size: 0.9rem;
  color: var(--ls-text-muted);
  margin-bottom: 0.75rem;
}

/* Toolbox grid */
.resources-links {
  margin-bottom: 2rem;
}

.toolbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 40rem) {
  .toolbox-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .toolbox-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.toolbox-card {
  background: var(--ls-bg-tint);
  border: 1px solid var(--ls-border);
  border-radius: var(--ls-radius);
  padding: 1.1rem 1.25rem;
}

.toolbox-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ls-teal);
  margin-bottom: 0.75rem;
}

.resource-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-links-list li {
  font-size: 0.88rem;
  color: var(--ls-text-muted);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.resource-links-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ls-teal);
  font-size: 0.8rem;
}

.resource-links-list a {
  color: var(--ls-link);
  text-decoration: none;
  font-weight: 500;
}

.resource-links-list a:hover {
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════
   CASE STUDIES SUB-NAVIGATION
   Used on: portfolio sub-pages
   ============================================================ */

.sub-nav {
  background: #E9F2EA;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
}

.subnav-grid {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.subnav-grid a {
  text-decoration: none;
  color: #2F3237;
  padding: 0.25rem 0.5rem;
}

.subnav-grid a.active {
  border-bottom: 3px solid #6B5E93;
  font-weight: 600;
  color: #3F6B4C;
}

.sub-nav a.active {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}

/* Mobile-first subnav pill style */
.subnav {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  scrollbar-width: none; /* Firefox */
}

.subnav::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.subnav li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--subnav-bg, #f2f2f2);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .subnav {
    overflow-x: visible;
    justify-content: flex-start;
  }
}


/* ═══════════════════════════════════════════════════════════
   CASE-STUDY CALL-OUTS — TWO SEPARATE COMPONENTS
   Rewritten 13-Aug-2026

   They were one component doing two jobs, which is why an Outcome
   ended up wearing a quotation mark. Now split:

   1. aside.highlight-outcome  — a RESULT.
      Sits INSIDE a case study, in the right-hand rail.
      Sage-tinted, so it contrasts with the section around it.
      No quote mark. A result is not something anyone said.

        <section class="case-grid">
          <div class="case-body">  ...headings, pills, paragraphs...  </div>
          <aside class="highlight-outcome">
            <h4>Outcome</h4>
            <p>...</p>
          </aside>
        </section>

   2. aside.case-study-note  — a QUOTE.
      Sits OUTSIDE the case study, as a sibling of <section>.
      White, full width, big opening quote mark, italic.
      This is the pattern already used on portfolioVirtualWorlds.php.

        </section>

        <aside class="case-study-note">
          <h4>Context</h4>          optional label
          <p>Quote text.</p>
          <cite>Name, role</cite>   optional attribution
        </aside>

        <section class="case-grid">
   ============================================================ */


/* ── 1. OUTCOME — inside the case study ── */
aside.highlight-outcome {
  background: var(--ls-bg-tint);
  border: 1px solid var(--ls-border);
  border-left: 4px solid var(--ls-teal);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin: 1.5rem 0 0;
  overflow-wrap: anywhere;
}

aside.highlight-outcome h4 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ls-border);
  color: var(--ls-teaberry-deep);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

aside.highlight-outcome p {
  margin: 0;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--ls-text);
}

/* Margin rail. Needs exactly TWO direct children in the section:
   .case-body then the aside. Below 60rem the aside drops underneath. */
@media (min-width: 60rem) {
  section.case-grid {
    display: grid;
    grid-template-columns: 70% 1fr;
    column-gap: 2.5rem;
    align-items: start;
  }
  section.case-grid > aside.highlight-outcome {
    margin: 0;
    position: sticky;   /* delete these two lines to let it scroll away */
    top: 1.5rem;
  }
}

/* Legacy float — any section WITHOUT .case-grid, e.g. portfolioCMS.php */
@media (min-width: 37.5rem) {
  section:not(.case-grid) > aside.highlight-outcome {
    float: right;
    clear: right;
    width: clamp(13.75rem, 26%, 18.75rem);
    margin: 0 0 1.5rem 2rem;
  }
}


/* ── 2. QUOTE — outside the case study ──
   Styling lives in theme.css alongside .quote-block, so every quote on
   the site looks the same. Nothing to set here. Markup:

     </section>
     <aside class="case-study-note">
       <h4>Context</h4>        optional label
       <p>Quote text.</p>
       <cite>Name, role</cite> optional attribution
     </aside>
     <section class="case-grid">                                     */


.caseStudyList {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESCUE SERVICE SECTION
   Used on: services.php
   Added 20-Apr-2026
   ============================================================ */

.ls-rescue-section {
  background: #fff8ef;
  border: 1px solid #f0d5b0;
  border-left: 4px solid #c47a2e;
  border-radius: var(--ls-radius);
  padding: 1rem;
  margin: 0 auto 2rem;
  max-width: 52rem;
  box-shadow: var(--ls-shadow);
}

@media (min-width: 40rem) {
  .ls-rescue-section {
    padding: 1.25rem;
  }
}

.ls-rescue-inner {
  max-width: 100%;
}

.ls-rescue-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a5020;
  margin-bottom: 0.5rem;
  display: block;
}

.ls-rescue-title {
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
  color: #8C5A5A;
  margin-bottom: 0.75rem;
}

.ls-rescue-lede {
  font-size: 0.92rem;
  color: var(--ls-text);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.ls-rescue-block {
  margin-bottom: 1rem;
}

.ls-rescue-subhead {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4E7A5B;
  margin-bottom: 0.4rem;
}

.ls-rescue-text {
  margin-bottom: 1rem;
  color: var(--ls-text-muted);
  line-height: 1.65;
}

.ls-rescue-list {
  padding-left: 1.25rem;
  margin: 0;
}

.ls-rescue-list li {
  margin-bottom: 0.6rem;
  color: var(--ls-text-muted);
  line-height: 1.55;
}

.ls-rescue-cta {
  border-top: 1px solid #e0c8a8;
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.ls-rescue-cta-text {
  font-style: italic;
  color: #5a4020;
  margin-bottom: 1rem;
}

.ls-rescue-btn {
  background-color: #8C5A5A;
  color: #ffffff !important;
  padding: 0.7rem 1.4rem;
  border-radius: var(--ls-radius-pill);
  font-weight: 600;
}

.ls-rescue-btn:hover,
.ls-rescue-btn:focus {
  background-color: #754747;
}
