/* =========================================================
   Obside — Article UI (v1)
   Namespace: .ob-article
   Place in: /wp-content/themes/hello-elementor-child/custom-articles.css
   ========================================================= */

   .ob-article {
    /* Palette & tokens (tweak these 7 vars to retheme) */
    --bg: #ffffff;
    --surface: #ffffff;
    --muted-surface: #faf9ff;          /* subtle violet tint */
    --text: #111216;
    --text-dim: #5a5d6c;
    --primary: #9456FF;                /* indigo */
    --accent: #ff6bd6;                 /* pink */
    --ring: rgba(107, 76, 255, 0.25);
    --border: #ececf3;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(17, 18, 22, .06);
  
    /* Typo scale */
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --mono: ui-monospace, Menlo, Consolas, "SFMono-Regular", "Roboto Mono", monospace;
    --leading: 1.7;
    --maxw: 820px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 72px;
  
    color: var(--text);
    background: var(--bg);
    font-family: var(--font);
    line-height: var(--leading);
    font-size: clamp(16px, 1.5vw, 18px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    margin-top: 50px;
  }
  
  /* Page container */
  .ob-article .ob-container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: clamp(20px, 4vw, 40px);
  }
  
  /* Optional: soft gradient hero band for article titles  */
  .ob-article .ob-hero {
    border-radius: calc(var(--radius) * 1.25);
    padding: clamp(28px, 4vw, 48px);
    margin: 0 auto var(--space-5);
    background:
      radial-gradient(1200px 500px at 20% -10%, rgba(107,76,255,.10), transparent 60%),
      radial-gradient(900px 400px at 90% -20%, rgba(255,107,214,.10), transparent 60%),
      var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
  
  /* Headings */
  .ob-article h1,
  .ob-article .h1 {
    font-size: clamp(34px, 4.4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3);
    font-weight: 800;
  }
  .ob-article h2 {
    font-size: clamp(26px, 3vw, 30px);
    line-height: 1.2;
    margin: var(--space-6) 0 var(--space-3);
    font-weight: 700;
  }
  .ob-article h3 {
    font-size: clamp(20px, 2.3vw, 22px);
    margin: var(--space-5) 0 var(--space-2);
    font-weight: 700;
  }
  .ob-article h4 {
    font-size: 18px;
    margin: var(--space-4) 0 var(--space-2);
    font-weight: 700;
  }
  
  /* Lead paragraph (optional: add .lead to first paragraph) */
  .ob-article .lead {
    font-size: clamp(18px, 2vw, 20px);
    color: var(--text-dim);
    margin-bottom: var(--space-5);
  }
  
  /* Paragraphs & inline */
  .ob-article p { margin: 0 0; color: var(--text); }
  .ob-article strong { font-weight: 700; }
  .ob-article em { font-style: italic; }
  .ob-article a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
  }
  .ob-article a:hover { text-decoration: underline; }
  
  /* Call-to-action button look for links with .ob-btn */
  .ob-article .ob-btn {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), #5b3fe6);
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(107,76,255,.25);
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  .ob-article .ob-btn:hover {
    background: linear-gradient(180deg, var(--primary), #725be4);
    text-decoration: none;
    font-weight: 700;
  }
  
  /* Lists */
  .ob-article ul, .ob-article ol {
    margin: 0 0 var(--space-4);
    padding-left: 1.3em;
  }
  .ob-article li { margin: 6px 0; }
  .ob-article ul li { list-style: disc; }
  .ob-article ol li { list-style: decimal; }
  
  /* Check-style list */
  .ob-article ul { list-style: none; padding-left: 0; }
  .ob-article ul li {
    position: relative; padding-left: 28px;
  }
  .ob-article ul li::before {
    content: "✓";
    position: absolute; left: 0; top: 2px;
    width: 20px; height: 20px;
    display: inline-grid; place-items: center;
    font-weight: 700; font-size: 12px;
    color: #fff;
    background: linear-gradient(180deg, var(--primary), #5b3fe6);
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(107,76,255,.25);
  }
  .ob-article ul li::marker {
    content: "";
  }
  
  /* Blockquotes */
  .ob-article blockquote {
    margin: var(--space-5) 0;
    padding: 18px 20px 18px 22px;
    background: var(--muted-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: calc(var(--radius) - 6px);
    color: var(--text-dim);
  }
  
  /* Code & pre */
  .ob-article code {
    font-family: var(--mono);
    font-size: 0.95em;
    background: #f5f6ff;
    border: 1px solid #eaecff;
    padding: 2px 6px;
    border-radius: 6px;
  }
  .ob-article pre {
    font-family: var(--mono);
    font-size: 0.92em;
    background: #0f11261a; /* faint indigo */
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 6px);
    padding: 16px 18px;
    overflow: auto;
  }
  
  /* Images & figures */
  .ob-article img,
  .ob-article figure img {
    max-width: 100%;
    display: block;
    border-radius: calc(var(--radius) - 6px);
    box-shadow: var(--shadow);
  }
  .ob-article figure {
    margin: var(--space-5) 0;
    text-align: center;
  }
  .ob-article figcaption {
    color: var(--text-dim);
    font-size: 0.92em;
    margin-top: 10px;
    display: none;
  }
  
  /* Tables */
  .ob-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-4) 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 6px);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .ob-article thead th {
    text-align: left;
    font-weight: 700;
    background: linear-gradient(180deg, #fbfaff, #f6f4ff);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }
  .ob-article tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f1f6;
  }
  .ob-article tbody tr:last-child td { border-bottom: 0; }
  .ob-article tbody tr:hover td { background: #fafaff; }
  
  /* Callouts / info boxes (use .callout + .success/.warn/.note) */
  .ob-article .callout {
    margin: var(--space-5) 0;
    padding: 18px 20px;
    border-radius: calc(var(--radius) - 6px);
    border: 1px solid var(--border);
    background: var(--muted-surface);
    box-shadow: var(--shadow);
  }
  .ob-article .callout.success { border-left: 4px solid #22c55e; }
  .ob-article .callout.warn    { border-left: 4px solid #f59e0b; }
  .ob-article .callout.note    { border-left: 4px solid var(--primary); }
  
  /* “Card” pattern (for examples, notes, etc.) */
  .ob-article .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin: var(--space-4) 0;
  }
  .ob-article .card .card-title {
    font-weight: 700; margin-bottom: 8px;
  }
  
  /* Kicker / meta row (date, read time) */
  .ob-article .meta {
    display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
    color: var(--text-dim); font-size: .95em;
  }
  
  /* HR */
  .ob-article hr {
    border: 0; height: 1px; background: var(--border);
    margin: var(--space-5) 0;
  }
  
  /* Forms inside content (e.g., newsletter) */
  .ob-article form input[type="email"],
  .ob-article form input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .ob-article form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px var(--ring);
  }
  .ob-article form .actions {
    display: flex; gap: 12px; margin-top: 12px;
  }
  
  /* Responsive tweaks */
  @media (max-width: 640px) {
    .ob-article { --maxw: 94vw; }
    .ob-article .ob-hero { padding: 22px; }
    .ob-article table { font-size: 0.95em; }
  }
  
  /* Optional: style Gutenberg “Alignwide/full” inside the namespace */
  .ob-article .alignwide  { max-width: min(1120px, 94vw); margin-inline: auto; }
  .ob-article .alignfull  { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
  