/* wp-type-archive.css — styling for type_archive.html.
   Extracted from inline <style> blocks so the bytes are cached instead of
   re-sent with every HTML response. All blocks were Jinja-free, so this is a
   verbatim copy in original document order. The <link> replaces the largest
   block in-place, keeping the cascade position unchanged.
   Bump the ?v= on every edit. */

/* ── type-archive layout ─────────────────────────────── */
  /* ── Hero strip ─────────────────────────────────────── */
  .ti-hero { display: flex; flex-direction: column; margin: 1.25rem 0 1rem; }
  .ti-title-row { order: 1; }
  .ti-hero h1 { margin: 0 0 .25rem; font-size: 2rem; line-height: 1.15; }
  .ti-hero p  { margin: 0 0 .75rem; color: #4b5563; font-size: 1rem; line-height: 1.55; }
  .ti-lede { margin: 0 0 1.25rem; }
  .ti-lede a { color: #2464c4; font-weight: 700; text-decoration: none; }
  .ti-lede a:hover { text-decoration: underline; }
  .ti-lede strong { color: #1f2937; font-weight: 700; }
  .ti-hero-grid {
    display: grid; gap: .75rem;
    grid-template-columns: repeat(4, 1fr);
    order: 3;
  }
  .ti-lede { order: 2; }
  .ti-add-cta-wrap { order: 2; margin: -.55rem 0 1.25rem; }
  .ti-add-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: #059669; color: #fff !important;
    padding: .55rem 1rem; border-radius: 6px;
    font-weight: 700; text-decoration: none !important;
    white-space: nowrap;
  }
  @media (max-width: 880px) { .ti-hero-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 767px) {
    .ti-hero { margin: .65rem 0 .75rem; }
    .ti-hero-grid { order: 2; }
    .ti-lede { order: 3; margin: 1rem 0 .45rem; }
    .ti-add-cta-wrap { order: 4; margin: 0 0 .7rem; }
    .ti-add-cta { width: 100%; box-sizing: border-box; }
    .ti-daily { margin-top: .75rem !important; }
  }
  .ti-hero-tile {
    position: relative; display: block;
    aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
    text-decoration: none !important; color: #fff !important;
    background: #1f2937;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
  }
  .ti-hero-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s;
  }
  .ti-hero-tile:hover img { transform: scale(1.04); }
  .ti-hero-tile .lbl {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: .65rem .8rem .55rem;
    background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 100%);
    font-weight: 700; font-size: .95rem;
  }

  /* ── Daily-featured giant hero ──────────────────────── */
  .ti-daily {
    position: relative; margin: 2rem 0 .25rem;
    border-radius: 14px; overflow: hidden;
    aspect-ratio: 21/9; background: #1f2937;
  }
  .ti-daily img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
  }
  .ti-daily .ti-daily-meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,0));
    color: #fff;
  }
  .ti-daily .ti-daily-tag {
    display: inline-block; background: #f97316; color: #fff;
    font-size: .7rem; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
    margin-bottom: .65rem;
  }
  .ti-daily h2 { font-size: 1.5rem; margin: 0 0 .15rem; line-height: 1.2; }
  .ti-daily p  { margin: 0 0 .65rem; opacity: .9; font-size: .95rem; }
  .ti-daily a.cta {
    display: inline-block; background: #fff; color: #1f2937 !important;
    padding: .55rem 1rem; border-radius: 6px;
    font-weight: 700; text-decoration: none !important;
    margin-right: .55rem;
  }
  .ti-daily a.cta-secondary {
    color: #fff !important; text-decoration: underline !important;
    font-weight: 600; font-size: .92rem;
  }
  @media (max-width: 700px) {
    .ti-daily { aspect-ratio: 4/3; }
    .ti-daily h2 { font-size: 1.15rem; }
  }

  /* ── Cluster bands ──────────────────────────────────── */
  .ti-cluster { margin: 2rem 0 .25rem; }
  .ti-cluster h2 {
    font-size: 1.15rem; margin: 0 0 .65rem; color: #1f2937;
    font-weight: 700;
  }
  .ti-pill-grid {
    display: grid; gap: .4rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .ti-pill-grid a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .55rem .8rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
    color: #1f2937; text-decoration: none;
    font-size: .92rem; font-weight: 500;
    transition: border-color .12s, color .12s, background .12s;
  }
  .ti-pill-grid a:hover {
    border-color: #2464c4; color: #1e40af; background: #f3f7ff;
  }
  .ti-pill-grid .ct {
    font-size: .72rem; color: #9ca3af; margin-left: .5rem;
    font-weight: 400;
  }

  /* ── AI Featured Tool hero — image left, prompt input right.
        On wide screens the image stretches to match the form's height
        (no fixed aspect-ratio so it doesn't go enormous on big monitors).
        On mobile the layout stacks: image on top (16:9), form below. */
  .ti-ai-hero {
    margin: 2.25rem 0 .25rem;
    background: #fff;
    border: 1px solid #e5e7eb; border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: stretch;
    min-height: 320px;
  }
  @media (max-width: 880px) {
    .ti-ai-hero { grid-template-columns: 1fr; min-height: 0; }
    .ti-ai-art  { aspect-ratio: 16/9; min-height: 0 !important; max-height: none !important; }
  }
  .ti-ai-art {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 50%, #db2777);
    min-height: 320px; max-height: 460px;
  }
  .ti-ai-art img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
  }
  .ti-ai-art .ti-ai-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: #1f2937; color: #fff;
    font-size: .68rem; font-weight: 800; letter-spacing: .07em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
    display: inline-flex; align-items: center; gap: .35rem;
  }
  .ti-ai-art .ti-ai-badge::before {
    content: "✨"; font-size: .9rem;
  }
  .ti-ai-form {
    padding: 1.75rem; display: flex; flex-direction: column; gap: .85rem;
  }
  .ti-ai-form h2 { font-size: 1.4rem; margin: 0; line-height: 1.15; font-weight: 800; }
  .ti-ai-form p  { margin: 0; color: #6b7280; font-size: .95rem; line-height: 1.5; }
  .ti-ai-form textarea {
    width: 100%; padding: .75rem .9rem; min-height: 88px;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-family: inherit; font-size: .95rem; resize: vertical;
  }
  .ti-ai-form textarea:focus { outline: none; border-color: #4f46e5; }
  .ti-ai-style-row {
    display: flex; flex-wrap: wrap; gap: .35rem;
  }
  .ti-ai-style {
    background: #f3f4f6; color: #374151;
    padding: .35rem .75rem; border-radius: 999px;
    font-size: .82rem; cursor: pointer;
    border: 1px solid transparent;
    user-select: none;
  }
  .ti-ai-style:hover { background: #e0e7ff; color: #4338ca; }
  .ti-ai-style.is-active { background: #4f46e5; color: #fff; border-color: #4f46e5; }
  .ti-ai-row {
    display: flex; gap: .75rem; align-items: center;
  }
  .ti-ai-row select {
    flex: 1; padding: .55rem .75rem;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: .9rem; background: #fff;
  }
  .ti-ai-cta {
    display: inline-block; padding: .75rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff; font-weight: 800;
    border: none; border-radius: 8px;
    cursor: pointer; font-size: .98rem;
    text-decoration: none !important;
    align-self: flex-start;
  }
  .ti-ai-cta:hover { filter: brightness(1.08); }

  /* ── Tools strip — image-as-background, text overlaid at bottom.
        Horizontal scroll with L/R arrows — no row wrap. */
  .ti-tools { margin: 2.25rem 0 .25rem; position: relative; }
  .ti-tools h2 { font-size: 1.15rem; margin: 0 0 .65rem; font-weight: 700; }
  .ti-tools-scroll-wrap { position: relative; }
  .ti-tools-row {
    display: flex; gap: .65rem;
    overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: .25rem .1rem .75rem;
    scrollbar-width: none;
  }
  .ti-tools-row::-webkit-scrollbar { display: none; }
  .ti-tool {
    position: relative;
    flex: 0 0 220px; aspect-ratio: 1 / 1;
    border-radius: 12px; overflow: hidden;
    text-decoration: none !important; color: inherit !important;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    scroll-snap-align: start;
    transition: transform .18s ease-out, box-shadow .18s ease-out;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    will-change: transform;
  }
  .ti-tool:hover {
    transform: translateY(-6px) scale(1.015);
    /* Shadow on hover removed per request — the lift + image zoom give
       enough hover feedback without the dramatic drop-shadow halo. */
  }
  .ti-tool:hover img { transform: scale(1.06); }
  .ti-tool > picture, .ti-tool > picture img { transition: transform .35s ease-out; }
  .ti-tool > picture, .ti-tool > picture img,
  .ti-tool > .ti-tool-art {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }
  /* Text overlay — gradient scrim from bottom, white text */
  .ti-tool .ti-tool-meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.5rem 1rem .85rem;
    background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 35%, rgba(0,0,0,0) 100%);
    color: #fff;
  }
  .ti-tool .ti-tool-name { font-weight: 800; font-size: 1rem; line-height: 1.2; margin: 0 0 .2rem;
                            text-shadow: 0 1px 2px rgba(0,0,0,.5); }
  .ti-tool .ti-tool-desc { color: rgba(255,255,255,.92); font-size: .78rem; line-height: 1.3;
                            margin: 0; display: -webkit-box; -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical; overflow: hidden; }
  /* Fallback SVG (when no Gemini image yet) — center, color, no scrim needed */
  .ti-tool > .ti-tool-art {
    display: flex; align-items: center; justify-content: center;
    color: #4f46e5;
  }
  .ti-tool > .ti-tool-art svg { width: 64px; height: 64px; }

  /* Scroll arrows — sticky on left/right edges */
  .ti-tools-scroll-wrap .ti-pa {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; color: #374151; font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: background .12s;
    line-height: 1;
  }
  .ti-tools-scroll-wrap .ti-pa:hover { background: #f3f4f6; }
  .ti-tools-scroll-wrap .ti-pa.left  { left: -8px; }
  .ti-tools-scroll-wrap .ti-pa.right { right: -8px; }
  .ti-tools-scroll-wrap .ti-pa[hidden] { display: none; }

  /* ── Latest cascade with kw badges ──────────────────── */
  .ti-recent { margin: 2.25rem 0 .25rem; }
  .ti-recent-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0 0 .65rem;
  }
  .ti-recent h2 { font-size: 1.15rem; margin: 0; font-weight: 700; }
  .ti-recent-grid {
    display: grid; gap: .5rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .ti-recent-card {
    position: relative; aspect-ratio: 3/4;
    border-radius: 6px; overflow: hidden;
    background: #f3f4f6; display: block;
  }
  .ti-recent-card img { width: 100%; height: 100%; object-fit: cover; }
  .ti-recent-badge {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,0));
    color: #fff; font-size: .72rem; font-weight: 600;
    padding: 1.5rem .55rem .35rem; line-height: 1.2;
  }
  .ti-recent-badge a { color: #fff; text-decoration: none; }
  .ti-recent-badge a:hover { text-decoration: underline; }

  /* ── Articles strip ─────────────────────────────────── */
  .ti-articles { margin: 2.25rem 0 .25rem; }
  .ti-articles h2 { font-size: 1.15rem; margin: 0 0 .65rem; font-weight: 700; }
  .ti-articles-row {
    display: grid; gap: .85rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .ti-article {
    display: block; padding: .9rem 1rem; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 10px;
    text-decoration: none !important;
    transition: border-color .12s;
  }
  .ti-article:hover { border-color: #2464c4; }
  .ti-article img {
    width: 100%; height: 130px; object-fit: cover;
    border-radius: 6px; margin-bottom: .55rem;
  }
  .ti-article .ti-art-title { font-weight: 700; color: #111827; font-size: .95rem; line-height: 1.3; margin: 0 0 .25rem; }
  .ti-article .ti-art-sub { color: #6b7280; font-size: .82rem; margin: 0; }

  /* ── FAQ-left + (Creator stack Premium)-right two-col layout ─── */
  .ti-bottom-grid {
    display: grid; gap: 1.25rem; margin: 2.25rem 0 .25rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
  .ti-bottom-grid > .ti-faq { margin: 0; }    /* normalize spacing inside grid */
  .ti-bottom-grid > .ti-cta-stack { display: flex; flex-direction: column; gap: 1rem; }
  @media (max-width: 880px) {
    .ti-bottom-grid { grid-template-columns: 1fr; }
  }
  /* Legacy support: ti-cta-row keeps working if used elsewhere */
  .ti-cta-row {
    display: grid; gap: 1rem; margin: 2.25rem 0 .25rem;
    grid-template-columns: 1fr 1fr;
  }
  @media (max-width: 700px) { .ti-cta-row { grid-template-columns: 1fr; } }
  .ti-cta-card {
    padding: 1.5rem 1.25rem; border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex; flex-direction: column; gap: .55rem;
  }
  /* Contributor — same look as the wallpaper-detail "Become a Creator"
     card: white background + 2px solid black border + centered button. */
  .ti-cta-card.contributor {
    background: #fff;
    border: 2px solid #1f2937;
    text-align: center; align-items: center;
  }
  /* Premium — same yellow style as the hamburger CTA + premium plans page:
     soft yellow bg + amber border + dark amber CTA. */
  .ti-cta-card.premium {
    background: #fef9c3;
    border: 2px solid #f59e0b;
  }
  .ti-cta-card h3 { margin: 0 0 .15rem; font-size: 1.1rem; font-weight: 800; color: #1f2937; }
  .ti-cta-card p { margin: 0 0 .35rem; font-size: .92rem; line-height: 1.45; color: #4b5563; }
  .ti-cta-card ul { margin: 0 0 .55rem; padding: 0 0 0 1.1rem; font-size: .88rem; color: #374151; text-align: left; }
  .ti-cta-card a.btn {
    display: inline-block;
    padding: .65rem 1.25rem; border-radius: 8px;
    font-weight: 800; text-decoration: none !important;
  }
  .ti-cta-card.contributor a.btn {
    background: #1f2937; color: #fff !important;
  }
  .ti-cta-card.contributor a.btn:hover { background: #111827; }
  .ti-cta-card.premium a.btn {
    background: #f59e0b; color: #1f2937 !important;
  }
  .ti-cta-card.premium a.btn:hover { background: #d97706; color: #fff !important; }

  /* ── FAQ accordion ──────────────────────────────────── */
  .ti-faq { margin: 2.25rem 0 1.5rem; }
  .ti-faq h2 { font-size: 1.15rem; margin: 0 0 .65rem; font-weight: 700; }
  .ti-faq details {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
    padding: .55rem .85rem; margin-bottom: .35rem;
  }
  .ti-faq summary {
    list-style: none; cursor: pointer;
    font-weight: 600; color: #1f2937;
    display: flex; justify-content: space-between; align-items: center;
  }
  .ti-faq summary::-webkit-details-marker { display: none; }
  .ti-faq summary::after { content: "▾"; color: #9ca3af; transition: transform .15s; }
  .ti-faq details[open] summary::after { transform: rotate(180deg); }
  .ti-faq details p { margin: .55rem 0 .25rem; color: #4b5563; font-size: .92rem; }

  .ti-trending-tag {
    display: inline-block;
    background: #fef3c7; color: #92400e;
    font-size: .65rem; font-weight: 700;
    padding: 1px 5px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: .04em;
    margin-right: .35rem;
  }

  .ti-az-cta {
    display: inline-block; margin-top: .5rem;
    color: #2464c4; font-weight: 600; text-decoration: none;
    font-size: .92rem;
  }
  .ti-az-cta:hover { text-decoration: underline; }

/* ── house-ad fallback swap ─────────────────────────────── */
        .housead-block .housead-paid .wpc-ad { width:100%; height:100%; }
        .housead-block:has(.housead-paid .wpc-ad--filled)
             .housead-fallback { display: none; }

/* ── longform copy block ─────────────────────────────── */
          .ti-longform h2 { font-size: 1.4rem; font-weight: 800; color: #111827; margin: 0 0 .85rem; }
          .ti-longform h3 { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin: 1.4rem 0 .5rem; }
          .ti-longform p, .ti-longform li { color: #4b5563; font-size: .95rem; line-height: 1.65; }
          .ti-longform p { margin: 0 0 .85rem; }
          .ti-longform a { color: #2464c4; text-decoration: none; }
          .ti-longform a:hover { text-decoration: underline; }
          .ti-longform ul { margin: 0 0 1rem; padding-left: 1.25rem; }
          .ti-longform ul li { margin: .25rem 0; }
