/*
Theme Name: ProjectMakeAtHome Coursera
Theme URI: https://projectmakeathome.com
Author: PMAH Team
Author URI: https://projectmakeathome.com
Description: Coursera-inspired theme for ProjectMakeAtHome. Requires pmah-setup-v2 plugin for CPT and taxonomies.
Version: 1.0.39
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: pmah-coursera
*/

:root {
  /* Warm Workshop palette */
  --pmah-bg: #F7F5F2;
  --pmah-text: #1C1917;
  --pmah-primary: #F25C05;
  --pmah-primary-dark: #C44A00;
  --pmah-link: #1F6F8B;
  --pmah-link-dark: #185A70;
  /* Legacy aliases (templates use pmah-blue for links) */
  --pmah-blue: #1F6F8B;
  --pmah-blue-dark: #185A70;
  --pmah-orange-50: #FFF4EB;
  --pmah-orange-100: #FFE8D6;
  --pmah-gray-50: #FAF9F7;
  --pmah-gray-100: #F1EEEA;
  --pmah-gray-200: #E4DFD8;
  --pmah-gray-600: #57534E;
  --pmah-gray-700: #44403C;
  --pmah-slate-dark: #14181E;
  --pmah-forest: #3D7A5F;
  --pmah-forest-dark: #2F5F4A;
  --pmah-forest-soft: #E8F2EC;
  --pmah-font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --pmah-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pmah-radius: 12px;
}

body {
  background-color: var(--pmah-bg);
  color: var(--pmah-text);
}

a {
  color: var(--pmah-link);
}

/* Homepage hero — full-bleed maker atmosphere */
.pmah-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #12171e;
}

.pmah-hero--atmosphere {
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(242, 92, 5, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(10, 132, 255, 0.16) 0%, transparent 50%),
    linear-gradient(155deg, #0e1319 0%, #1a222d 48%, #121820 100%);
}

.pmah-hero--photo {
  background-image:
    linear-gradient(105deg, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.72) 42%, rgba(8, 12, 18, 0.45) 100%),
    var(--pmah-hero-photo);
  background-size: cover;
  background-position: center;
}

.pmah-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

.pmah-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.pmah-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 3.75rem;
}

.pmah-hero-brand {
  font-family: var(--pmah-font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 1rem;
}

.pmah-hero-brand::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: var(--pmah-primary);
}

.pmah-hero-headline {
  font-family: var(--pmah-font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: rgba(255, 255, 255, 0.94);
  margin: 0 0 1rem;
  max-width: 22ch;
}

.pmah-hero-sub {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.pmah-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pmah-primary);
  background: var(--pmah-orange-50);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.pmah-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--pmah-radius);
  font-weight: 700;
  font-size: 15px;
  background: var(--pmah-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(242, 92, 5, 0.2), 0 8px 20px rgba(242, 92, 5, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.pmah-btn-primary:hover {
  background: var(--pmah-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(242, 92, 5, 0.25), 0 12px 28px rgba(242, 92, 5, 0.35);
  color: #fff;
}

.pmah-btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.pmah-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-1px);
}

/* Category lane pills */
.pmah-lane-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1f26;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pmah-lane-pill:hover {
  border-color: var(--pmah-primary);
  background: var(--pmah-orange-50);
  transform: translateY(-1px);
}

.pmah-lane-pill__icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  color: var(--pmah-primary);
}

.pmah-lane-pill__count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.pmah-lane-pill--all {
  border-color: transparent;
  background: transparent;
  color: var(--pmah-link);
}

/* Topic icon grid */
.pmah-topic-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.15rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--pmah-gray-200);
  background: #fff;
  text-decoration: none;
  color: var(--pmah-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pmah-topic-tile:hover {
  transform: translateY(-4px);
  border-color: var(--pmah-primary);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
}

.pmah-topic-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: var(--pmah-orange-50);
  color: var(--pmah-primary);
}

.pmah-topic-tile__name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
}

.pmah-topic-tile__count {
  font-size: 0.75rem;
  color: var(--pmah-gray-600);
  font-weight: 600;
}

.pmah-topic-svg,
.pmah-meta-svg,
.pmah-badge-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pmah-badge-svg {
  width: 12px;
  height: 12px;
}

/* Project cards — CSS-only lift */
.pmah-project-card {
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pmah-project-card:hover {
  transform: translateY(-4px);
  border-color: var(--pmah-primary);
  box-shadow: 0 14px 28px rgba(28, 25, 23, 0.1);
}

.pmah-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Workshop surface behind project grid */
.pmah-surface-workshop {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(242, 92, 5, 0.07), transparent 55%),
    linear-gradient(180deg, #F1EEEA 0%, #F7F5F2 100%);
}

.pmah-surface-workshop::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394a3b8' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pmah-surface-workshop > .pmah-container {
  position: relative;
  z-index: 1;
}

.pmah-section-title {
  font-family: var(--pmah-font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #111827;
  line-height: 1.25;
}

.font-display,
.pmah-hero-brand,
.pmah-hero-headline,
.pmah-section-title {
  font-family: var(--pmah-font-display);
}

body {
  font-family: var(--pmah-font-body);
}

.pmah-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pmah-how-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.pmah-how-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.25rem 0;
}

.pmah-how-step__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pmah-font-body);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--pmah-primary) 0%, var(--pmah-primary-dark) 100%);
  box-shadow: 0 6px 16px rgba(242, 92, 5, 0.25);
}

.pmah-beginner-band {
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(61, 122, 95, 0.14), transparent 55%),
    linear-gradient(90deg, #E8F2EC 0%, #F7F5F2 55%, #FFF4EB 100%);
  border-top: 1px solid #C5D9CD;
  border-bottom: 1px solid #C5D9CD;
}

/* Project card media placeholder (no thumbnail yet) */
.pmah-card-media-ph {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    linear-gradient(145deg, #1a222d 0%, #2a3441 55%, #F25C0522 100%);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.pmah-card-media-ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.pmah-card-media-ph__icon {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.9;
}

.pmah-bookmark-icon {
  display: block;
  flex-shrink: 0;
}

.pmah-card-media-ph__label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Reveal on scroll */
.pmah-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.pmah-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .pmah-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Subtle premium defaults */
body { text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; }
a, p, h1, h2, h3, h4, h5, h6, li, td, th { overflow-wrap: anywhere; }

/* Header menu: prevent odd wrapping */
header nav ul { list-style: none; margin: 0; padding: 0; }
header nav li { margin: 0; }
header > .pmah-container nav ul,
header > div.pmah-container nav ul { flex-wrap: nowrap; white-space: nowrap; }

/* Mobile drawer */
body.pmah-mobile-menu-open {
  overflow: hidden;
}

.pmah-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.pmah-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pmah-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(100vw, 22rem);
  max-width: 100%;
  height: 100dvh;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  visibility: hidden;
}

.pmah-mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.pmah-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.pmah-mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.pmah-mobile-menu-list,
.pmah-mobile-menu-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pmah-mobile-menu-list > li {
  border-bottom: 1px solid #f3f4f6;
}

.pmah-mobile-menu-list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.25rem;
  color: #374151;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.pmah-mobile-menu-list > li > a:hover,
.pmah-mobile-menu-list > li.current-menu-item > a,
.pmah-mobile-menu-list > li.current-menu-ancestor > a {
  color: var(--pmah-blue);
}

.pmah-mobile-menu-label {
  flex: 1;
  min-width: 0;
}

.pmah-mobile-menu-list .menu-item-has-children {
  position: relative;
}

.pmah-mobile-menu-list .menu-item-has-children > a {
  padding-right: 2.75rem;
}

.pmah-mobile-submenu-toggle {
  position: absolute;
  right: 0;
  top: 0.35rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f9fafb;
  color: #4b5563;
  cursor: pointer;
}

.pmah-mobile-submenu-toggle:hover {
  border-color: var(--pmah-blue);
  color: var(--pmah-blue);
}

.menu-item-has-children.is-expanded .pmah-mobile-submenu-toggle i {
  transform: rotate(180deg);
}

.pmah-mobile-submenu {
  padding: 0 0 0.5rem 0.75rem;
}

.pmah-mobile-submenu a {
  display: block;
  padding: 0.5rem 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}

.pmah-mobile-submenu a:hover,
.pmah-mobile-submenu .current-menu-item > a {
  color: var(--pmah-blue);
}

.pmah-mobile-quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
}

.pmah-mobile-quick-link:hover {
  background: var(--pmah-orange-50);
  color: var(--pmah-blue);
}

@media (min-width: 1024px) {
  .pmah-mobile-backdrop,
  .pmah-mobile-drawer {
    display: none !important;
  }
}

/* Chips/badges/buttons: keep labels intact */
.category-chip, .queue-status, .meta-tag { white-space: nowrap; }

/* Site-wide visibility pass: make fields, panels, and tappable surfaces read clearly */
main input:not([type="hidden"]):not([type="submit"]),
main textarea,
main select,
header input:not([type="hidden"]):not([type="submit"]),
footer input:not([type="hidden"]):not([type="submit"]) {
  border-color: #94A3B8;
  border-width: 1.5px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}

main input:not([type="hidden"]):not([type="submit"]):focus,
main textarea:focus,
main select:focus,
header input:not([type="hidden"]):not([type="submit"]):focus,
footer input:not([type="hidden"]):not([type="submit"]):focus {
  border-color: var(--pmah-primary);
  box-shadow: 0 0 0 3px rgba(242, 92, 5,.18);
}

main [class*="border-gray-200"],
header [class*="border-gray-200"],
footer [class*="border-gray-200"] {
  border-color: #CBD5E1;
}

main [class*="border-gray-100"] { border-color: #E2E8F0; }

main a[class*="rounded"],
main button[class*="rounded"],
footer button[class*="rounded"],
header button[class*="rounded"] {
  text-decoration: none;
}

main a[class*="rounded"]:focus-visible,
main button[class*="rounded"]:focus-visible,
header button:focus-visible,
footer button:focus-visible {
  outline: 3px solid rgba(242, 92, 5,.28);
  outline-offset: 2px;
}


.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Fluid layout rhythm (enterprise-style spacing) */
:root{
  /* Slightly narrower for a more "standard" website feel */
  --pmah-container: 90rem; /* cap content width (~1440px) */
  /* Standard fixed gutters on large screens */
  --pmah-gutter: 50px;
  /* Small-screen padding */
  --pmah-pad-x: clamp(0.75rem, 2.2vw, 1.25rem);
  --pmah-section-y: clamp(2.5rem, 6vw, 5rem);
}

.pmah-container{
  /* Ensure ~50px left/right space on wide screens */
  width: min(var(--pmah-container), calc(100% - (2 * var(--pmah-gutter))));
  margin-inline: auto;
  padding-inline: 0;
}

@media (max-width: 1023px){
  .pmah-container{
    width: 100%;
    padding-inline: var(--pmah-pad-x);
  }
}
.pmah-section{ padding-block: var(--pmah-section-y); }

@media (min-width: 420px) {
  .xs\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root {
    --pmah-section-y: 2.25rem;
  }
  .prose h2 { font-size: 1.5rem; }
  .prose h3 { font-size: 1.25rem; }
  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .comment-respond,
  .comment-list .comment,
  .comment-list .pingback,
  .comment-list .trackback {
    padding: 1rem;
  }
  .comment-list .children { margin-left: 0.5rem; }
}

/* Utility: line clamps (Tailwind CDN doesn't ship the plugin by default) */
.line-clamp-1,.line-clamp-2,.line-clamp-3{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.line-clamp-1{ -webkit-line-clamp: 1; }
.line-clamp-2{ -webkit-line-clamp: 2; }
.line-clamp-3{ -webkit-line-clamp: 3; }

.pmah-build-step.pmah-step-done { opacity: 0.72; }
.pmah-build-step.pmah-step-done .bg-pmah-primary { background: linear-gradient(135deg, var(--pmah-primary-dark) 0%, var(--pmah-primary) 100%); }
.pmah-build-step.pmah-step-done .pmah-step-check { opacity: 1; }

body.pmah-print-view header,
body.pmah-print-view footer,
body.pmah-print-view .pmah-no-print { display: none !important; }
body.pmah-print-view .pmah-print-toolbar { display: block !important; }
body.pmah-print-view .lg\:col-span-2 { grid-column: 1 / -1; }
body.pmah-print-view .pmah-container { max-width: 48rem; }
@media print {
  body.pmah-print-view header,
  body.pmah-print-view footer,
  body.pmah-print-view .pmah-no-print,
  body.pmah-print-view .pmah-print-toolbar { display: none !important; }
  body.pmah-print-view .pmah-container { max-width: 100%; }
  a[href]::after { content: none !important; }
}

.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }

.prose { color: #111827; }
.prose h2 { font-size: 1.875rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--pmah-blue); text-decoration: underline; }
.prose a:hover { color: var(--pmah-link-dark); }
.prose img { border-radius: 0.75rem; margin: 1.5rem 0; }
.prose code { background: #F3F4F6; padding: 0.15rem 0.35rem; border-radius: 0.4rem; font-size: 0.95em; }
.prose pre { background: #0B1220; color: #E5E7EB; border-radius: 0.9rem; padding: 1.1rem; overflow-x: auto; }
.prose pre code { background: transparent; padding: 0; }
.prose blockquote { border-left: 4px solid #E5E7EB; padding-left: 1rem; color: #374151; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid #E5E7EB; padding: 0.6rem 0.7rem; text-align: left; }
.prose thead th { background: #F9FAFB; }

/* Forms inside content (comments, embeds, basic WP forms) */
.prose label { display: block; font-weight: 600; color: #111827; margin: 0.75rem 0 0.35rem; }
.prose input[type="text"],
.prose input[type="email"],
.prose input[type="url"],
.prose input[type="password"],
.prose input[type="search"],
.prose input[type="tel"],
.prose input[type="number"],
.prose textarea,
.prose select {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  color: #111827;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.prose textarea { min-height: 9rem; resize: vertical; }
.prose input:focus,
.prose textarea:focus,
.prose select:focus {
  border-color: var(--pmah-primary);
  box-shadow: 0 0 0 3px rgba(242, 92, 5,.2);
}
.prose input::placeholder,
.prose textarea::placeholder { color: #9CA3AF; }

.prose button,
.prose input[type="submit"],
.prose .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 0.9rem;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: var(--pmah-primary);
  color: #fff;
  cursor: pointer;
  transition: transform .06s ease, background-color .15s ease, box-shadow .15s ease;
}
.prose button:hover,
.prose input[type="submit"]:hover,
.prose .submit:hover { background: var(--pmah-primary-dark); }
.prose button:active,
.prose input[type="submit"]:active,
.prose .submit:active { transform: translateY(1px); }
.prose button:disabled,
.prose input[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* WP comment form spacing */
.comment-respond {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.85rem;
  background: #F8FAFC;
}
.comment-respond .comment-form { margin-top: 1.25rem; }
.comment-respond .comment-form p { margin-bottom: 0.9rem; }
.comment-respond label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: #111827;
}
.comment-respond .comment-notes,
.comment-respond .logged-in-as { color: #6B7280; font-size: 0.95rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  border: 1.5px solid #94A3B8;
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: #111827;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.comment-respond textarea { min-height: 10rem; resize: vertical; }
.comment-respond input:focus,
.comment-respond textarea:focus {
  border-color: var(--pmah-primary);
  box-shadow: 0 0 0 3px rgba(242, 92, 5,.2);
}
.comment-respond .form-submit { margin-top: 1rem; margin-bottom: 0; }
.comment-respond input[type="submit"],
.comment-respond .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--pmah-primary);
  border-radius: 0.65rem;
  padding: 0.75rem 1.2rem;
  background: var(--pmah-primary);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(242, 92, 5,.22);
  transition: transform .06s ease, background-color .15s ease, box-shadow .15s ease;
}
.comment-respond input[type="submit"]:hover,
.comment-respond .submit:hover {
  background: var(--pmah-primary-dark);
  box-shadow: 0 10px 22px rgba(224,95,0,.25);
}
.comment-respond input[type="submit"]:active,
.comment-respond .submit:active { transform: translateY(1px); }

.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
  border: 1px solid #CBD5E1;
  border-radius: 0.85rem;
  background: #fff;
  padding: 1rem;
}
.comment-list .children {
  margin-top: 1rem;
  margin-left: 1rem;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #111827;
  font-weight: 700;
}
.comment-author .avatar { border-radius: 999px; }
.comment-metadata,
.comment-awaiting-moderation {
  margin-top: 0.35rem;
  color: #6B7280;
  font-size: 0.875rem;
}
.comment-content {
  margin-top: 0.85rem;
  color: #374151;
  line-height: 1.7;
}
.comment-content p { margin-bottom: 0.75rem; }
.reply { margin-top: 0.75rem; }
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pmah-blue);
  border-radius: 0.65rem;
  padding: 0.45rem 0.75rem;
  color: var(--pmah-blue);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}
.comment-reply-link:hover { background: #EFF6FF; }

/* Pagination */
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 6px 12px; border-radius: 10px; border: 1px solid #E5E7EB; background: white; color: #374151; font-size: 14px; font-weight: 600; text-decoration: none; margin: 0 2px; }
.page-numbers.current { background: var(--pmah-primary); color: white; border-color: var(--pmah-primary); }
.page-numbers:hover { border-color: var(--pmah-primary); color: var(--pmah-primary); }

.pmah-bookmark-saved {
  border-color: var(--pmah-blue);
  background: var(--pmah-orange-50);
}

.pmah-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Reading progress — top edge of viewport (not between nav and breadcrumbs) */
.pmah-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pmah-reading-progress.is-visible {
  opacity: 1;
}

.pmah-reading-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pmah-primary), var(--pmah-link));
  transition: width 0.12s ease-out;
  box-shadow: 0 0 8px rgba(242, 92, 5, 0.35);
}

@media print {
  .pmah-reading-progress {
    display: none !important;
  }
}

.pmah-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--pmah-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.pmah-back-to-top:hover {
  background: var(--pmah-orange-50);
  transform: translateY(-2px);
}

.pmah-back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.pmah-youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pmah-toc-link.is-active {
  background: var(--pmah-orange-50);
  color: var(--pmah-text);
  font-weight: 700;
}

.pmah-toc-link.is-active .pmah-toc-num {
  background: var(--pmah-primary);
  color: #fff;
}

.pmah-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.92);
}

.pmah-lightbox.hidden {
  display: none;
}

.pmah-lightbox-img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.pmah-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.pmah-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

img.pmah-lightbox-trigger {
  transition: opacity 0.15s ease;
}

img.pmah-lightbox-trigger:hover {
  opacity: 0.92;
}

.pmah-submit-project-page .pmah-submit-form-wrap form,
.pmah-submit-form {
  margin: 0;
}

.pmah-submit-form input[type="text"],
.pmah-submit-form input[type="email"],
.pmah-submit-form input[type="url"],
.pmah-submit-form select,
.pmah-submit-form textarea {
  font-size: 0.95rem;
}

/* Primary CTAs — do not rely on Tailwind alone (LiteSpeed may omit utility classes) */
.pmah-btn-primary,
.pmah-submit-btn,
button.pmah-submit-btn,
.pmah-submit-form button[type="submit"],
.pmah-submit-form .pmah-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  background-color: var(--pmah-primary) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(242, 92, 5, 0.25);
  transition: background-color 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease;
}

.pmah-btn-primary:hover,
.pmah-submit-btn:hover,
.pmah-submit-form button[type="submit"]:hover {
  background-color: var(--pmah-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.pmah-btn-primary:focus-visible,
.pmah-submit-btn:focus-visible,
.pmah-submit-form button[type="submit"]:focus-visible {
  outline: 3px solid rgba(242, 92, 5, 0.35);
  outline-offset: 2px;
}

.pmah-submit-form input[type="checkbox"] {
  accent-color: var(--pmah-primary);
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

button[class*="bg-pmah-primary"],
a[class*="bg-pmah-primary"][class*="text-white"],
input[type="submit"][class*="bg-pmah-primary"] {
  background-color: var(--pmah-primary) !important;
  color: #fff !important;
}

button[class*="bg-pmah-primary"]:hover,
a[class*="bg-pmah-primary"][class*="text-white"]:hover,
input[type="submit"][class*="bg-pmah-primary"]:hover {
  background-color: var(--pmah-primary-dark) !important;
  color: #fff !important;
}

.pmah-submit-project-page .entry-content > h2:first-child,
.pmah-submit-form-wrap > h2:first-child {
  display: none;
}

/* Category cards — accent line on top (reference mockup) */
.pmah-category-card {
  position: relative;
  overflow: hidden;
}

.pmah-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pmah-primary), var(--pmah-link));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.pmah-category-card:hover::before,
.pmah-category-card:focus-visible::before {
  transform: scaleX(1);
}

.pmah-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pmah-primary);
}

.pmah-brand-link {
  text-decoration: none;
}

.pmah-brand-link {
  min-width: 0;
  max-width: min(42vw, 7.5rem);
}

@media (min-width: 640px) {
  .pmah-brand-link {
    max-width: none;
  }
}

.pmah-brand-link:hover {
  opacity: 0.92;
}

.pmah-brand-logo {
  display: block;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Stacked square logo — header (~44px tall in 64px bar) */
.pmah-brand-logo--header {
  height: 2.75rem;
  max-height: 2.75rem;
  max-width: 5.5rem;
}

@media (min-width: 640px) {
  .pmah-brand-logo--header {
    height: 3rem;
    max-height: 3rem;
    max-width: 6rem;
  }
}

/* Footer: white pad so square logo reads on dark footer */
.pmah-brand-logo-wrap--footer {
  display: inline-block;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  line-height: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pmah-brand-logo--footer {
  height: 3.25rem;
  max-height: 3.25rem;
  max-width: 6.5rem;
}

@media (min-width: 640px) {
  .pmah-brand-logo--footer {
    height: 3.75rem;
    max-height: 3.75rem;
    max-width: 7.25rem;
  }
}

/* Homepage hero showcase */
.pmah-brand-logo--hero {
  width: 100%;
  max-width: 11rem;
  height: auto;
  max-height: none;
}

@media (min-width: 640px) {
  .pmah-brand-logo--hero {
    max-width: 13rem;
  }
}

@media (min-width: 1024px) {
  .pmah-brand-logo--hero {
    max-width: 15rem;
  }
}

/* Font Awesome in buttons/links */
.pmah-bookmark-btn i,
.pmah-site-header i[class^="fa-"],
.pmah-site-footer i[class^="fa-"] {
  display: inline-block;
  line-height: 1;
  font-style: normal;
}

@media print {
  .pmah-lightbox,
  .pmah-project-toc {
    display: none !important;
  }
}

/* Project guide media placeholders (content + components) */
.pmah-media-placeholder,
figure.pmah-media-placeholder {
  margin: 1.5rem 0;
}

.pmah-media-placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 220px;
  padding: 1.5rem;
  border: 2px dashed #CBD5E1;
  border-radius: 1rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  color: #64748B;
  text-align: center;
}

.pmah-media-placeholder-box--sm {
  min-height: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.65rem;
}

.pmah-media-placeholder-icon {
  font-size: 2rem;
  line-height: 1;
}

.pmah-media-placeholder-box--sm .pmah-media-placeholder-icon {
  font-size: 1.25rem;
}

.pmah-media-placeholder-text {
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 28rem;
}

.pmah-media-placeholder figcaption,
figure.pmah-media-placeholder figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748B;
  text-align: center;
}

.prose .pmah-guide-step {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  border-left: 4px solid var(--pmah-primary);
  background: #FFFBF7;
  border-radius: 0 0.75rem 0.75rem 0;
}

.prose .pmah-guide-step h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: #1C1917;
}

.prose .pmah-video-note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: 0.875rem;
}
