/* LMPure – styles for dashboard features: Premium lock box, ad slots, guides. */

/* ---------- Premium lock (tool set to Premium only) ---------- */
.lmp-lock { margin: 28px 0 8px; padding: 36px 28px; border: 1px solid var(--rule, var(--line, #d9dfe9)); border-radius: 14px; background: var(--sheet, var(--card, #fff)); text-align: center; box-shadow: var(--paper-shadow, none); }
.lmp-lock-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #fff3dd; color: #b8650f; }
.lmp-lock-icon svg { display: block; }
.lmp-lock h2 { font-size: 1.5rem; margin: 0 0 8px; }
.lmp-lock p { color: var(--ink-2, var(--muted, #4a5672)); max-width: 52ch; margin: 0 auto 18px; }
.lmp-lock-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lmp-lock-btns .btn + .btn { background: transparent; color: var(--ink, #14213d); border: 1px solid var(--rule, var(--line, #d9dfe9)); }
.lmp-lock .lmp-lock-note { font-size: 14px; margin: 16px auto 0; color: var(--ink-3, var(--muted, #737d93)); }

/* ---------- Google AdSense slots ---------- */
.lmp-ad { margin: 36px auto; max-width: 760px; min-height: 100px; text-align: center; }
.lmp-ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, var(--muted, #737d93)); margin-bottom: 6px; }
.content .lmp-ad, .plain .lmp-ad { margin: 32px 0; }

/* ---------- guides ---------- */
.lmp-home-guides { margin-top: 48px; margin-bottom: 56px; }
.lmp-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lmp-gh h2 { font-size: 1.55rem; margin: 0; }
.lmp-gh a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lmp-guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lmp-guide-grid--in { margin: 4px 0 8px; }
.lmp-guide-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border: 1px solid var(--rule, #d9dfe9); border-radius: 12px; background: var(--sheet, #fff); color: var(--ink, #14213d); text-decoration: none; transition: border-color .15s, transform .15s; }
.lmp-guide-card:hover { border-color: var(--cobalt, #2442d6); color: var(--ink, #14213d); transform: translateY(-1px); }
.lmp-guide-card strong { font-size: 1.05rem; line-height: 1.3; }
.lmp-guide-card span { font-size: 15px; line-height: 1.5; color: var(--ink-2, #4a5672); }
.lmp-guide-card .lmp-gc-cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt, #2442d6); }
.plain .lmp-guide-grid { max-width: none; }
.lmp-guide-meta { color: var(--ink-3, #737d93); font-size: 15px; margin-top: -8px; }
.lmp-guide .crumbs { padding: 0 0 18px; }
.lmp-guide h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.lmp-guide ul, .lmp-guide ol { padding-left: 1.3em; margin: 0 0 1em; }
.lmp-guide li { margin: 0 0 .4em; color: #2c3854; }
.lmp-guide blockquote, .plain blockquote { margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--marker, #ffe14d); background: var(--marker-soft, #fff6c2); border-radius: 0 8px 8px 0; }
.lmp-guide table, .plain table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 15px; }
.lmp-guide th, .lmp-guide td, .plain th, .plain td { border: 1px solid var(--rule, #d9dfe9); padding: 8px 10px; text-align: left; vertical-align: top; }
.lmp-guide th, .plain th { background: var(--rule-2, #e9edf3); }
.lmp-guide code { background: var(--rule-2, #e9edf3); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.lmp-try { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--cobalt-tint, #e8ecfc); }
.lmp-try b { display: block; }
.lmp-try span { color: var(--ink-2, #4a5672); font-size: 15px; }
.lmp-draft { background: #fff3dd; border: 1px solid #f0c27a; padding: 8px 12px; border-radius: 8px; font-size: 14px; }

@media (max-width: 640px) {
  .lmp-lock { padding: 28px 18px; }
  .lmp-gh { flex-direction: column; gap: 4px; }
}

/* footer links wrap on small screens (Terms, Disclaimer and Guides were added) */
.footer-base { flex-wrap: wrap; row-gap: 6px; }
/* guides index is already grouped by category */
.lmp-guide-grid--in .lmp-gc-cat { display: none; }

/* LMPure new tools: footer has one more column (Image & exam tools) */
@media (min-width: 1001px) { .footer-grid { grid-template-columns: 1.3fr repeat(6, 1fr); gap: 22px; } }
/* Header: five menus wrap onto two lines on phones instead of running off the screen */
@media (max-width: 640px) { .site-nav { flex-wrap: wrap; justify-content: flex-start; column-gap: 10px; row-gap: 0; } .site-nav .menu-btn { padding: 7px 4px; } }
/* Homepage: Premium tools sits in its own column (5-column layout) */
#tools #premium { grid-column: auto; }
#tools #premium .tile-grid { grid-template-columns: 1fr; }

/* ===== Icon style B: solid colour tile, white icon (colour per section) ===== */
a.tile[href="/compress-pdf/"],
a.tile[href="/compress-image/"],
a.tile[href="/merge-pdf/"],
a.tile[href="/split-pdf/"],
a.tile[href="/rearrange-pdf/"],
a.tile[href="/rotate-pdf/"],
a.tile[href="/delete-pdf-pages/"],
a.tile[href="/extract-pdf-pages/"],
a.tile[href="/crop-pdf/"],
a.tile[href="/jpg-to-pdf/"],
a.tile[href="/pdf-to-jpg/"],
a.tile[href="/ocr-pdf/"],
a.tile[href="/png-to-pdf/"],
a.tile[href="/pdf-to-png/"],
a.tile[href="/pdf-to-word/"],
a.tile[href="/word-to-pdf/"],
a.tile[href="/grayscale-pdf/"],
a.tile[href="/edit-pdf/"],
a.tile[href="/sign-pdf/"],
a.tile[href="/watermark-pdf/"],
a.tile[href="/add-page-numbers/"],
a.tile[href="/password-protect-pdf/"],
a.tile[href="/unlock-pdf/"],
body[data-page="compress-pdf"] .tool-head,
body[data-page="compress-image"] .tool-head,
body[data-page="merge-pdf"] .tool-head,
body[data-page="split-pdf"] .tool-head,
body[data-page="rearrange-pdf"] .tool-head,
body[data-page="rotate-pdf"] .tool-head,
body[data-page="delete-pdf-pages"] .tool-head,
body[data-page="extract-pdf-pages"] .tool-head,
body[data-page="crop-pdf"] .tool-head,
body[data-page="jpg-to-pdf"] .tool-head,
body[data-page="pdf-to-jpg"] .tool-head,
body[data-page="ocr-pdf"] .tool-head,
body[data-page="png-to-pdf"] .tool-head,
body[data-page="pdf-to-png"] .tool-head,
body[data-page="pdf-to-word"] .tool-head,
body[data-page="word-to-pdf"] .tool-head,
body[data-page="grayscale-pdf"] .tool-head,
body[data-page="edit-pdf"] .tool-head,
body[data-page="sign-pdf"] .tool-head,
body[data-page="watermark-pdf"] .tool-head,
body[data-page="add-page-numbers"] .tool-head,
body[data-page="password-protect-pdf"] .tool-head,
body[data-page="unlock-pdf"] .tool-head,
#menu-pdf,
#pdf { --ic: #d93a3a; }
a.tile[href="/photo-signature-resizer/"],
a.tile[href="/passport-photo-maker/"],
a.tile[href="/age-calculator/"],
a.tile[href="/cgpa-to-percentage/"],
a.tile[href="/percentage-calculator/"],
a.tile[href="/resize-image/"],
a.tile[href="/crop-image/"],
a.tile[href="/image-converter/"],
a.tile[href="/heic-to-jpg/"],
a.tile[href="/remove-background/"],
body[data-page="photo-signature-resizer"] .tool-head,
body[data-page="passport-photo-maker"] .tool-head,
body[data-page="age-calculator"] .tool-head,
body[data-page="cgpa-to-percentage"] .tool-head,
body[data-page="percentage-calculator"] .tool-head,
body[data-page="resize-image"] .tool-head,
body[data-page="crop-image"] .tool-head,
body[data-page="image-converter"] .tool-head,
body[data-page="heic-to-jpg"] .tool-head,
body[data-page="remove-background"] .tool-head,
#menu-images,
#images { --ic: #0f8a6a; }
a.tile[href="/answer-writing-checker/"],
a.tile[href="/pdf-to-epub/"],
a.tile[href="/pdf-to-flipbook/"],
a.tile[href="/pdf-to-audio/"],
a.tile[href="/protect-pdf/"],
a.tile[href="/question-paper-maker/"],
a.tile[href="/certificate-maker/"],
a.tile[href="/omr-sheet-generator/"],
a.tile[href="/omr-checker/"],
a.tile[href="/hindi-ocr/"],
a.tile[href="/ad-campaign-studio/"],
a.tile[href="/video-maker/"],
body[data-page="answer-writing-checker"] .tool-head,
body[data-page="pdf-to-epub"] .tool-head,
body[data-page="pdf-to-flipbook"] .tool-head,
body[data-page="pdf-to-audio"] .tool-head,
body[data-page="protect-pdf"] .tool-head,
body[data-page="question-paper-maker"] .tool-head,
body[data-page="certificate-maker"] .tool-head,
body[data-page="omr-sheet-generator"] .tool-head,
body[data-page="omr-checker"] .tool-head,
body[data-page="hindi-ocr"] .tool-head,
body[data-page="ad-campaign-studio"] .tool-head,
body[data-page="video-maker"] .tool-head,
#menu-premium,
#premium { --ic: #c27400; }
a.tile[href="/APS-UNICODE-converter/"],
a.tile[href="/hindi-english-translator/"],
a.tile[href="/hindi-typing/"],
a.tile[href="/hindi-typing-test/"],
a.tile[href="/scientific-writer/"],
a.tile[href="/humanizer/"],
a.tile[href="/grammar-checker/"],
a.tile[href="/notes-maker/"],
a.tile[href="/flashcard-maker/"],
a.tile[href="/resume-maker/"],
a.tile[href="/biodata-maker/"],
a.tile[href="/qr-code-generator/"],
body[data-page="APS-UNICODE-converter"] .tool-head,
body[data-page="hindi-english-translator"] .tool-head,
body[data-page="hindi-typing"] .tool-head,
body[data-page="hindi-typing-test"] .tool-head,
body[data-page="scientific-writer"] .tool-head,
body[data-page="humanizer"] .tool-head,
body[data-page="grammar-checker"] .tool-head,
body[data-page="notes-maker"] .tool-head,
body[data-page="flashcard-maker"] .tool-head,
body[data-page="resume-maker"] .tool-head,
body[data-page="biodata-maker"] .tool-head,
body[data-page="qr-code-generator"] .tool-head,
#menu-writing,
#writing { --ic: #6d3fd1; }
a.tile[href="/citation-generator/"],
a.tile[href="/apa-citation-generator/"],
a.tile[href="/mla-citation-generator/"],
a.tile[href="/reference-converter/"],
a.tile[href="/paper-finder/"],
a.tile[href="/journal-finder/"],
a.tile[href="/literature-review-table/"],
a.tile[href="/similarity-checker/"],
a.tile[href="/word-counter/"],
a.tile[href="/text-summarizer/"],
a.tile[href="/text-cleaner/"],
a.tile[href="/thesis-formatter/"],
body[data-page="citation-generator"] .tool-head,
body[data-page="apa-citation-generator"] .tool-head,
body[data-page="mla-citation-generator"] .tool-head,
body[data-page="reference-converter"] .tool-head,
body[data-page="paper-finder"] .tool-head,
body[data-page="journal-finder"] .tool-head,
body[data-page="literature-review-table"] .tool-head,
body[data-page="similarity-checker"] .tool-head,
body[data-page="word-counter"] .tool-head,
body[data-page="text-summarizer"] .tool-head,
body[data-page="text-cleaner"] .tool-head,
body[data-page="thesis-formatter"] .tool-head,
#menu-research,
#research { --ic: #2442d6; }

/* tool cards (homepage, related tools) */
.tile-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--ic, #2442d6); color: #fff !important; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(16, 24, 40, .14); margin-bottom: 12px; }
.tile-icon svg { width: 26px !important; height: 26px !important; stroke-width: 2; }
.tile-grid--compact .tile-icon { width: 42px; height: 42px; margin-bottom: 10px; }
.tile-grid--compact .tile-icon svg { width: 24px !important; height: 24px !important; }
#tools .tile { grid-template-columns: 44px minmax(0, 1fr) !important; column-gap: 14px !important; align-items: center; }
#tools .tile-icon { width: 44px !important; height: 44px !important; margin: 0 !important; grid-row: span 2; }
#tools .tile-icon svg { width: 25px !important; height: 25px !important; }
@media (min-width: 1200px) and (max-width: 1599px) {
  #tools .tile { grid-template-columns: 38px minmax(0, 1fr) !important; column-gap: 11px !important; }
  #tools .tile-icon { width: 38px !important; height: 38px !important; border-radius: 10px; }
  #tools .tile-icon svg { width: 22px !important; height: 22px !important; }
}
/* tool page heading */
.tool-head-icon { background: var(--ic, #2442d6); color: #fff; border: 0; border-radius: 14px; box-shadow: 0 4px 12px rgba(16, 24, 40, .16); }
.tool-head-icon svg { stroke-width: 2; }
/* header menus */
.menu-group a svg { width: 30px !important; height: 30px !important; padding: 6px; border-radius: 8px; background: var(--ic, #2442d6); color: #fff; stroke-width: 2.1; box-sizing: border-box; }
@media (max-width: 420px) { .menu-group a svg { width: 26px !important; height: 26px !important; padding: 5px; } }
