/* OQTJ WordPress inner pages, posts, archives, search, and 404 — light portal layer (21 Nov 2026).
   Self-hosted CSS only. No dark theme leaks. Zero horizontal overflow. */
:root,html{color-scheme:light only}
html,body{overflow-x:hidden;max-width:100%}
body.pub.oqtj-inner{
  background-color:#ffffff !important;
  background-image:none !important;
  color:var(--ink,#0f172a);
  padding-bottom:88px;
}
@media (prefers-color-scheme:dark){
  :root,html,body{color-scheme:light only;background-color:#fff;color:#0f172a}
}

/* Hide any legacy full-width WhatsApp bars/widgets inside the_content() */
.mobile-sticky-wa,.whatsapp-float,.whatsapp-tooltip{display:none !important}

/* Compact floating Register pill */
a.register-pill{
  position:fixed;z-index:9999;
  left:auto;right:max(16px,env(safe-area-inset-right,0px));
  bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 12px));
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:0 26px;width:auto;max-width:calc(100vw - 32px);
  border-radius:999px;
  background:linear-gradient(135deg,#047857,#0f766e);
  color:#fff !important;font-weight:800;text-decoration:none;
  box-shadow:0 10px 28px rgba(4,120,87,.35);line-height:1
}
a.register-pill:hover,a.register-pill:focus-visible{
  background:linear-gradient(135deg,#065f46,#047857);color:#fff !important
}

.site-foot .support a{display:inline;padding:0;font-weight:inherit;color:inherit}

/* Inner main layout */
main.oqtj-inner-main{
  padding:1.4rem 1.1rem 2.5rem;
  min-width:0;
}
.oqtj-page-wrap{min-width:0}

/* Bare prose pages (e.g. /jobs/nazra/, /jobs/tajweed/, /apply/) keep a comfortable 54rem reading column
   while <section>, <article>, and grid wrappers expand up to 74rem */
.oqtj-page-wrap > h1,
.oqtj-page-wrap > h2,
.oqtj-page-wrap > h3,
.oqtj-page-wrap > h4,
.oqtj-page-wrap > p,
.oqtj-page-wrap > ul,
.oqtj-page-wrap > ol,
.oqtj-page-wrap > table,
.oqtj-page-wrap > blockquote,
.oqtj-page-wrap > details,
.oqtj-page-wrap > .oqtj-callout,
.oqtj-page-wrap > .oqtj-warn,
.oqtj-page-wrap > .oqtj-danger,
.oqtj-page-wrap > .oqtj-cta-box,
.oqtj-page-wrap > section:not(.page-header):not(.featured-work):not(.faq-section):not(.contact-section):not(.cta-section):not(.blog-section):not(.process-section){
  max-width:54rem;
  margin-inline:auto;
}

/* Typography across inner content */
.oqtj-inner-main h1,
.oqtj-inner-main .archive-h1{
  font-size:clamp(1.6rem,4.4vw,2.45rem);
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--ink,#0f172a);
  font-weight:850;
  margin:.2rem 0 .85rem;
}
.oqtj-inner-main h2{
  font-size:clamp(1.25rem,3vw,1.65rem);
  line-height:1.25;
  color:#064e3b;
  font-weight:800;
  margin:1.75rem 0 .65rem;
}
.oqtj-inner-main h3{
  font-size:1.12rem;
  line-height:1.3;
  color:var(--ink,#0f172a);
  font-weight:750;
  margin:1.25rem 0 .45rem;
}
.oqtj-inner-main p{
  margin:.65rem 0;
  color:var(--ink2,#334155);
  line-height:1.68;
}
.oqtj-inner-main ul,
.oqtj-inner-main ol{
  margin:.65rem 0 1.1rem;
  padding-left:1.35rem;
  color:var(--ink2,#334155);
}
.oqtj-inner-main li{margin:.38rem 0;line-height:1.65}
.oqtj-inner-main a{
  color:var(--em,#047857);
  font-weight:650;
  text-underline-offset:3px;
}
.oqtj-inner-main a:hover{color:#065f46}
.oqtj-inner-main strong{color:var(--ink,#0f172a)}
.oqtj-inner-main blockquote{
  margin:1.1rem 0;padding:.85rem 1.15rem;
  background:var(--em-l,#ecfdf5);
  border-left:4px solid var(--em,#047857);
  border-radius:.75rem;
  color:var(--ink2,#334155);
}

/* Tables (responsive on 390px mobile without page overflow) */
.oqtj-inner-main table{
  width:100%;
  border-collapse:collapse;
  margin:1.25rem 0;
  background:#fff;
  border:1px solid var(--line,#e2e8f0);
  border-radius:.85rem;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  font-size:.95rem;
}
.oqtj-inner-main th,
.oqtj-inner-main td{
  padding:.75rem .9rem;
  text-align:left;
  border-bottom:1px solid var(--line,#e2e8f0);
  vertical-align:top;
}
.oqtj-inner-main thead th{
  background:var(--em-l,#ecfdf5);
  color:#064e3b;
  font-weight:800;
}
.oqtj-inner-main tbody tr:last-child td{border-bottom:0}
.oqtj-inner-main tbody tr:hover{background:#f8fafc}
@media (max-width:44rem){
  .oqtj-inner-main table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    max-width:100%;
  }
}

/* Forms */
.oqtj-inner-main input[type="text"],
.oqtj-inner-main input[type="email"],
.oqtj-inner-main input[type="url"],
.oqtj-inner-main input[type="tel"],
.oqtj-inner-main input[type="search"],
.oqtj-inner-main select,
.oqtj-inner-main textarea{
  width:100%;
  padding:.7rem .9rem;
  border:1px solid #cbd5e1;
  border-radius:.7rem;
  background:#fff;
  color:var(--ink,#0f172a);
  font:inherit;
}
.oqtj-inner-main input:focus,
.oqtj-inner-main select:focus,
.oqtj-inner-main textarea:focus{
  outline:2px solid var(--em,#047857);
  border-color:var(--em,#047857);
}

/* Images */
.oqtj-inner-main img{
  max-width:100%;
  height:auto;
  border-radius:.85rem;
}

/* Legacy theme banners & sections restyled to light portal */
.page-header{
  background:linear-gradient(135deg,#ecfdf5 0%,#f0f9ff 65%,#fffbeb 100%);
  border:1px solid var(--em-m,#d1fae5);
  border-radius:1.4rem;
  padding:clamp(1.35rem,3.8vw,2.4rem);
  margin:0 0 1.8rem;
  box-shadow:var(--shadow);
}
.page-header-content{max-width:54rem}
.page-header p:last-child{margin-bottom:0}

.section-eyebrow{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.3rem .75rem;border-radius:999px;
  font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;font-weight:800;
  background:#fff;color:var(--em,#047857);border:1px solid var(--em-m,#d1fae5);
  margin:0 0 .65rem !important;
}

.section-title{
  font-size:clamp(1.4rem,3.6vw,2rem);
  color:var(--ink,#0f172a);
  margin:0 0 1rem;
}

/* Legacy card grids */
.services-grid,
.portfolio-showcase,
.process-steps,
.contact-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(17.5rem,100%),1fr));
  gap:1.15rem;
  margin:1.1rem 0 1.8rem;
}
.services-grid > article,
.service-card,
.portfolio-item,
.process-step,
.contact-info,
.contact-form-wrapper{
  background:#fff;
  border:1px solid var(--line,#e2e8f0);
  border-radius:1.15rem;
  padding:1.35rem 1.4rem;
  box-shadow:var(--shadow);
  min-width:0;
}
.services-grid > article h3,
.portfolio-info h3,
.process-step h3,
.contact-info h2,
.contact-form-wrapper h2{
  margin-top:0;
}
.step-number{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:2.3rem;height:2.3rem;padding:0 .65rem;border-radius:.7rem;
  background:var(--em-l,#ecfdf5);color:var(--em,#047857);
  font-weight:850;font-size:.95rem;margin-bottom:.65rem;
}

.tech-stack{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.85rem}
.tech{
  display:inline-block;padding:.22rem .65rem;border-radius:999px;
  background:var(--em-l,#ecfdf5);color:var(--em,#047857);
  border:1px solid var(--em-m,#d1fae5);font-size:.78rem;font-weight:750;
}

/* FAQ section */
.faq-section{margin:1rem 0 2rem}
.faq-grid{display:grid;gap:.75rem;max-width:54rem;margin:0 auto}
.faq-item{
  background:#fff;border:1px solid var(--line,#e2e8f0);
  border-radius:1.1rem;padding:.25rem 1.15rem;box-shadow:var(--shadow);
}
.faq-item summary{
  cursor:pointer;font-weight:800;padding:.9rem 0;color:var(--ink,#0f172a);
  list-style-position:outside;
}
.faq-item p{margin:0 0 1rem;color:var(--muted,#475569)}

/* Legacy CTA section */
.cta-section{
  background:linear-gradient(135deg,#065f46 0%,#047857 55%,#0369a1 100%);
  color:#fff;
  border-radius:1.4rem;
  padding:clamp(1.4rem,4vw,2.4rem);
  margin:2rem 0;
  box-shadow:var(--shadow);
}
.cta-section h2,.cta-section p{color:#fff}
.cta-section p{opacity:.94}
.cta-buttons{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1rem}

/* Legacy .btn classes mapped to light portal buttons */
.oqtj-inner-main a.btn,
.oqtj-inner-main .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:2.9rem;padding:.6rem 1.25rem;
  border-radius:.85rem;font-weight:800;text-decoration:none;
  border:1px solid transparent;cursor:pointer;
  transition:transform .08s,box-shadow .15s,background .15s;
}
.oqtj-inner-main .btn:hover{transform:translateY(-1px)}
.oqtj-inner-main a.btn-primary,
.oqtj-inner-main .btn-primary{
  background:linear-gradient(135deg,#047857,#0f766e);
  color:#fff !important;
  box-shadow:0 8px 20px rgba(4,120,87,.26);
}
.oqtj-inner-main a.btn-secondary,
.oqtj-inner-main .btn-secondary{
  background:#fff;
  color:var(--em,#047857) !important;
  border-color:#a7f3d0;
  box-shadow:0 2px 6px rgba(15,23,42,.05);
}
.cta-section a.btn-primary{background:#fff;color:var(--em,#047857) !important}
.cta-section a.btn-secondary{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#1c1300 !important;border-color:transparent}
.oqtj-inner-main .btn-large{min-height:3.25rem;padding:.75rem 1.5rem;font-size:1.02rem}

/* Blog archive / category / search / single post cards */
.blog-section{margin:0 0 2rem}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr));
  gap:1.1rem;
}
.blog-card{
  background:#fff;border:1px solid var(--line,#e2e8f0);
  border-radius:1.15rem;padding:1.2rem 1.25rem;box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:.4rem;
}
.blog-meta{
  display:inline-block;align-self:flex-start;
  padding:.2rem .6rem;border-radius:999px;
  background:var(--em-l,#ecfdf5);color:var(--em,#047857);
  font-weight:800;font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;
}

.oqtj-single-wrap,
.oqtj-archive-list{
  max-width:56rem;
  margin:0 auto;
  display:grid;
  gap:1.35rem;
}
.oqtj-article-card,
.oqtj-archive-card{
  background:#fff;
  border:1px solid var(--line,#e2e8f0);
  border-radius:1.25rem;
  padding:clamp(1.2rem,3vw,2rem);
  box-shadow:var(--shadow);
  min-width:0;
}
.oqtj-archive-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;
  margin-bottom:.45rem;font-size:.86rem;color:var(--muted,#475569);
}
.archive-card-title{
  margin:.15rem 0 .8rem !important;
  font-size:clamp(1.25rem,3vw,1.55rem) !important;
  line-height:1.25 !important;
}
.archive-card-title a{text-decoration:none;color:var(--ink,#0f172a)}
.archive-card-title a:hover{color:var(--em,#047857)}
.oqtj-post-body{min-width:0;overflow-wrap:anywhere}

/* Guide pages (.oqtj-guide) inside inner shell */
.oqtj-guide{max-width:52rem;margin:0 auto;padding:0;min-width:0}
.oqtj-guide h1{margin-top:.2rem}
.oqtj-shot img{max-width:min(340px,100%)}

@media (max-width:36rem){
  main.oqtj-inner-main{padding:1rem .85rem 2.2rem}
  .oqtj-inner-main a.btn,.oqtj-inner-main .btn{width:100%}
}

/* Code / preformatted message templates (prevent clipping on 390px) */
.oqtj-inner-main pre{
  white-space:pre-wrap;
  word-break:break-word;
  overflow-x:auto;
  max-width:100%;
  background:#f8fafc;
  border:1px solid var(--line,#e2e8f0);
  border-radius:.85rem;
  padding:.95rem 1.1rem;
  margin:1rem 0;
  font-size:.9rem;
  line-height:1.55;
  color:var(--ink,#0f172a);
}
.oqtj-inner-main code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.9em;
}
