/* 247888 Bootstrap redesign — shared public, tool, guide, and admin surfaces. */
:root{
  --bs-font-sans-serif:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;
  --bs-body-font-family:var(--bs-font-sans-serif);
  --bs-primary:#2563eb;
  --bs-primary-rgb:37,99,235;
  --ink:#0f172a;
  --ink-2:#334155;
  --muted:#64748b;
  --line:#e2e8f0;
  --soft:#f8fafc;
  --soft-blue:#eff6ff;
  --white:#fff;
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --shadow:0 22px 60px rgba(15,23,42,.09);
  --shadow-soft:0 10px 30px rgba(15,23,42,.06);
  --radius:20px;
  --max:1240px;
}

[data-theme=dark]{
  --ink:#f8fafc;
  --ink-2:#dbe4f0;
  --muted:#9aa9bd;
  --line:#263247;
  --soft:#111a2b;
  --soft-blue:#14243d;
  --white:#0b1220;
  --shadow:0 22px 60px rgba(0,0,0,.28);
  --shadow-soft:0 10px 30px rgba(0,0,0,.2);
}

html{font-size:16px;scroll-padding-top:82px}
body,button,input,textarea,select{font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif}
body{font-size:15px;line-height:1.65;background:var(--white);color:var(--ink);overflow-x:hidden}
h1,h2,h3,h4,h5,h6,strong,b{font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif}
a{text-underline-offset:3px}
.container-xxl{--bs-gutter-x:2.5rem;max-width:1280px}

/* Header and Bootstrap offcanvas navigation */
.site-header.navbar{height:72px;min-height:72px;padding:0;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);box-shadow:0 8px 30px rgba(15,23,42,.04);backdrop-filter:blur(16px)}
[data-theme=dark] .site-header.navbar{background:rgba(11,18,32,.96)}
.site-header .navbar-shell{height:100%;display:flex;align-items:center;gap:24px}
.brand{gap:10px;font-size:20px;font-weight:800;letter-spacing:-.035em;color:var(--ink)}
.brand:hover{color:var(--blue)}
.brand-mark{display:block;width:38px;height:38px;object-fit:cover;border-radius:12px;background:none;box-shadow:0 8px 22px rgba(37,99,235,.24)}
.site-header .desktop-nav{display:flex;align-items:center;gap:4px;margin:0}
.site-header .desktop-nav a{padding:9px 11px;border-radius:10px;color:var(--ink-2);font-size:13px;font-weight:600}
.site-header .desktop-nav a:hover,.site-header .desktop-nav a:focus-visible{color:var(--blue);background:var(--soft-blue)}
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.header-search{width:220px;height:42px;margin:0;border:1px solid var(--line);border-radius:13px;background:var(--soft);font-size:12px;color:var(--muted);box-shadow:none}
.header-search:hover,.header-search:focus-visible{border-color:#93b4ff;background:var(--white);color:var(--blue)}
.header-search i{font-size:15px}
.header-search kbd{font-size:10px}
.icon-button,.favorites-link,.menu-button,.navbar-toggler{width:42px;height:42px;border:1px solid var(--line);border-radius:13px;background:var(--white);display:inline-grid;place-items:center;padding:0;color:var(--ink-2);box-shadow:none}
.icon-button:hover,.favorites-link:hover,.menu-button:hover,.navbar-toggler:hover{border-color:#b7cbf8;background:var(--soft-blue);color:var(--blue)}
.favorites-link{width:auto;padding-inline:12px;display:inline-flex;justify-content:center;font-size:12px;font-weight:600}
.navbar-toggler:focus{box-shadow:0 0 0 3px rgba(37,99,235,.16)}
.navbar-toggler i{font-size:21px}
.mobile-offcanvas{--bs-offcanvas-width:min(330px,88vw);background:var(--white);color:var(--ink);border-left:1px solid var(--line)}
.mobile-offcanvas .offcanvas-header{padding:18px 20px;border-bottom:1px solid var(--line)}
.mobile-offcanvas .offcanvas-body{padding:18px 20px}
.mobile-offcanvas .mobile-nav{display:grid;gap:6px}
.mobile-offcanvas .mobile-nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:12px;color:var(--ink-2);font-weight:600}
.mobile-offcanvas .mobile-nav a:hover{background:var(--soft-blue);color:var(--blue)}
.mobile-offcanvas .mobile-nav i{width:20px;text-align:center;color:var(--blue)}
.mobile-offcanvas .mobile-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.mobile-offcanvas .mobile-tools a{padding:10px;border:1px solid var(--line);border-radius:11px;font-size:11px;font-weight:600;text-align:center}
.mobile-offcanvas .btn-close{filter:none}
[data-theme=dark] .mobile-offcanvas .btn-close{filter:invert(1)}

/* Hero */
.hero{display:block;min-height:0;padding:68px 0 64px;background:var(--soft-blue);overflow:hidden}
.hero::before{display:none}
.hero-copy{position:relative;z-index:1}
.hero h1{max-width:680px;margin:13px 0 20px;font-size:clamp(48px,5.3vw,70px);line-height:1.04;letter-spacing:-.055em;font-weight:800}
.hero h1 em{color:var(--blue)}
.hero-copy>p{max-width:620px;font-size:16px;line-height:1.75;color:var(--muted)}
.eyebrow{font-size:11px;line-height:1.2;letter-spacing:.13em;font-weight:700;color:var(--blue)}
.hero-search{height:62px;max-width:680px;margin-top:28px;grid-template-columns:26px auto 1fr auto;padding:0 13px 0 17px;border:1px solid #b8cdfb;border-radius:16px;background:var(--white);box-shadow:0 14px 36px rgba(37,99,235,.12)}
.hero-search:hover{border-color:var(--blue);transform:none}
.hero-search .search-glyph{font-size:0;transform:none}
.hero-search .search-glyph::before{content:"\f52a";font-family:bootstrap-icons;font-size:19px;color:var(--blue)}
.trend-row{margin-top:15px;gap:7px;font-size:10px}
.trend-row a{padding:5px 9px;background:var(--white);border-color:#d8e2f1;font-weight:500}
.hero-board{padding:18px;border:1px solid #d7e3f5;border-radius:24px;background:var(--white);box-shadow:var(--shadow);transform:none}
.hero-board::before,.hero-board::after{display:none}
.board-top,.board-foot{font-size:12px}
.status{background:#e9f8ef;color:#087a45;font-weight:600}
.quick-grid{gap:9px}
.quick-grid .tool-card.compact{min-height:122px}

/* Shared cards and icons */
.tool-icon{width:46px;height:46px;border-radius:13px;font-size:18px;box-shadow:0 9px 20px color-mix(in srgb,var(--icon-color,#2563eb) 20%,transparent)}
.tool-icon.large{width:58px;height:58px;border-radius:17px;font-size:22px}
.tool-card.card{min-width:0;display:flex;flex-direction:row;align-items:center;gap:13px;padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);box-shadow:0 6px 18px rgba(15,23,42,.03);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.tool-card.card:hover{color:var(--ink);border-color:#b7cbf8;box-shadow:var(--shadow-soft);transform:translateY(-2px)}
.tool-card strong{font-size:13px;font-weight:650;line-height:1.35}
.tool-card small{font-size:10px;line-height:1.55;color:var(--muted)}
.tool-card .card-arrow{font-size:14px;color:var(--blue)}
.tool-card.compact{flex-direction:column;align-items:flex-start}

/* Trust and section rhythm */
.trust-strip{display:block;padding:0;background:var(--white);border-block:1px solid var(--line)}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);padding-block:22px}
.trust-grid>div{display:grid;grid-template-columns:38px 1fr;column-gap:12px;padding:0 24px;border-right:1px solid var(--line)}
.trust-grid>div:first-child{padding-left:0}
.trust-grid>div:last-child{padding-right:0;border-right:0}
.trust-icon{grid-row:1/3;width:36px;height:36px;border-radius:11px;background:#eaf8f0;color:#0a9156;font-size:15px}
.trust-strip b{font-size:12px;font-weight:650}
.trust-strip small{font-size:10px;color:var(--muted)}
.section-wrap{padding-block:70px;padding-inline:max(24px,calc((100vw - var(--max))/2))}
.section-wrap.tinted{background:var(--soft)}
.section-heading{margin-bottom:27px;align-items:flex-end}
.section-heading h2{margin:8px 0 5px;font-size:clamp(30px,3.2vw,42px);line-height:1.12;letter-spacing:-.04em;font-weight:750}
.section-heading p{font-size:13px;color:var(--muted)}
.section-heading>a{font-size:12px;font-weight:650;color:var(--blue)}
.tool-card-grid{gap:12px}
.tool-card-grid .tool-card{min-height:94px}

/* Compact category cards */
.category-grid{display:flex;grid-template-columns:none;gap:0}
.category-card.card{height:100%;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--white);box-shadow:0 8px 24px rgba(15,23,42,.045)}
.category-card.card:hover{border-color:#bfd0f5;box-shadow:var(--shadow-soft)}
.category-card-head{gap:12px;padding-bottom:14px}
.category-card-head h3{margin:1px 0 4px;font-size:16px;line-height:1.35;font-weight:700}
.category-card-head p{display:-webkit-box;margin:0;font-size:10px;line-height:1.55;color:var(--muted);-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mini-tool-links{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:14px 0}
.mini-tool-links a{min-width:0;padding:7px 9px;border-radius:9px;background:var(--soft);font-size:10px;font-weight:500;color:var(--ink-2);text-overflow:ellipsis;overflow:hidden}
.mini-tool-links a::before{display:none}
.mini-tool-links a:hover{background:var(--soft-blue);color:var(--blue)}
.view-all{padding-top:12px;font-size:10px;font-weight:650}

/* Benefits and guides */
.privacy-panel{min-height:360px;padding:48px;border-radius:26px;background:#0c3276;color:#fff;box-shadow:var(--shadow)}
.privacy-panel::before,.privacy-panel::after{display:none}
.privacy-panel h2{font-size:42px;font-weight:750}
.privacy-panel p{font-size:14px;color:#d5e2f7}
.privacy-ring{border-color:rgba(255,255,255,.35);box-shadow:none}
.light-button{font-weight:600}
.benefit-list{gap:28px;padding-top:42px}
.benefit-list h3{font-size:16px;font-weight:650}
.benefit-list p{font-size:12px}
.guide-grid{gap:14px}
.guide-card{padding:13px;border-radius:18px;box-shadow:0 6px 20px rgba(15,23,42,.035)}
.guide-card strong{font-weight:650}
.guide-card p{font-size:10px}
.seo-library{background:var(--soft)}

/* Listings and category pages */
.listing-hero,.simple-hero,.category-hero{padding-block:62px;background:var(--soft-blue)}
.listing-hero h1,.simple-hero h1,.category-hero h1{font-size:clamp(40px,5vw,58px);font-weight:750;line-height:1.08;letter-spacing:-.05em}
.listing-hero>p,.simple-hero>p,.category-hero>div>p{font-size:15px;color:var(--muted)}
.breadcrumbs{font-size:10px;font-weight:500}
.page-search{height:54px;border:1px solid #cbd8ec;border-radius:15px;background:var(--white);box-shadow:0 9px 26px rgba(15,23,42,.05)}
.page-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.page-search input.form-control{border:0;background:transparent;box-shadow:none;color:var(--ink);font-size:13px}
.listing-layout{gap:34px}
.listing-layout aside{border-radius:16px}
.filter-chip{border-radius:10px;font-family:inherit}
.filter-chip.active{background:var(--blue);color:#fff}
.listing-meta{font-size:11px}
.category-highlights{gap:8px}
.category-highlights li{font-size:11px}
.content-band{background:var(--white)}

/* Tool workspace */
.tool-page{padding-top:36px}
.tool-title h1{font-size:clamp(38px,5vw,58px);font-weight:750;letter-spacing:-.05em}
.tool-title p{font-size:14px;color:var(--muted)}
.save-tool{border-radius:12px;font-weight:600}
.tool-workspace{border:1px solid var(--line);border-radius:22px;background:var(--white);box-shadow:var(--shadow);overflow:hidden}
.workspace-head,.result-head{min-height:58px}
.workspace-head strong,.result-head strong{font-size:12px;font-weight:650}
.tool-fields{gap:14px}
.form-field>span{font-size:10px;font-weight:650;color:var(--ink-2)}
.form-field .form-control,.form-field .form-select,.stack-form .form-control,.admin-editor .form-control,.admin-editor .form-select{min-height:46px;border-color:#d4deeb;border-radius:11px;background-color:var(--white);color:var(--ink);font-size:12px}
.form-field textarea.form-control{min-height:170px;line-height:1.65}
.form-field .form-control:focus,.form-field .form-select:focus,.stack-form .form-control:focus,.admin-editor .form-control:focus,.admin-editor .form-select:focus{border-color:#8eb0f8;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.file-drop{border-radius:14px}
.primary-button.btn,.run-button.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 17px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-size:12px;font-weight:650;box-shadow:0 8px 18px rgba(37,99,235,.2)}
.primary-button.btn:hover,.run-button.btn:hover{background:var(--blue-dark);color:#fff}
.small-button.btn,.secondary-button.btn{border-radius:10px;font-size:11px;font-weight:600}
.result-body{font-size:13px}
.local-note{border-radius:15px}
.tool-content{gap:60px}
.tool-content article h2{font-size:28px;font-weight:700}
.tool-content article p,.tool-content article li{font-size:14px;line-height:1.8}
.faq-list details{border-radius:13px}
.aside-card{border-radius:15px}

/* Guides and legal pages */
.guide-detail>header{padding-top:60px;padding-bottom:54px;background:var(--soft-blue)}
.guide-detail>header h1{font-size:clamp(40px,5.6vw,62px);font-weight:750}
.guide-byline{font-size:10px}
.guide-body{gap:60px}
.guide-body .lead{font-size:17px}
.guide-body h2,.legal-content h2{font-weight:700}
.guide-body p,.legal-content p{font-size:14px;line-height:1.85}

/* Search dialog */
.search-dialog{width:min(720px,calc(100vw - 28px));border:0;border-radius:20px;background:var(--white);color:var(--ink);box-shadow:0 30px 100px rgba(15,23,42,.3)}
.dialog-search{border-radius:14px}
.search-result{border-radius:13px}
.dialog-close{font-family:inherit}

/* Footer */
.site-footer{background:#081225;color:#cbd5e1}
.site-footer .brand{color:#fff}
.site-footer .brand-mark{box-shadow:none}
.site-footer p,.site-footer a{color:#aab7ca}
.site-footer a:hover{color:#fff}
.footer-grid{padding-top:55px;padding-bottom:42px}
.footer-grid strong{color:#fff;font-weight:650}
.footer-bottom{font-size:10px}

/* Bootstrap-informed admin styling while retaining the existing workflow. */
.admin-body{font-family:"Poppins",sans-serif}
.admin-header .brand-mark{width:34px;height:34px}
.admin-table{font-family:inherit}
.admin-editor,.login-card{border-radius:18px}

@media(max-width:991.98px){
  .site-header .desktop-nav,.site-header .header-search,.site-header .favorites-link{display:none!important}
  .hero{padding:52px 0}
  .hero h1{font-size:52px}
  .hero-board{max-width:720px;margin-inline:auto}
  .trust-grid{grid-template-columns:1fr 1fr;row-gap:20px}
  .trust-grid>div{border-right:0;padding-inline:0}
  .trust-grid>div:nth-child(odd){padding-right:20px;border-right:1px solid var(--line)}
  .trust-grid>div:nth-child(even){padding-left:20px}
  .category-card.card{padding:18px}
  .tool-content{gap:36px}
}

@media(max-width:767.98px){
  .container-xxl{--bs-gutter-x:2rem}
  .site-header.navbar{height:64px;min-height:64px}
  .brand{font-size:18px}
  .brand-mark{width:36px;height:36px}
  .header-actions{gap:6px}
  .icon-button,.menu-button,.navbar-toggler{width:40px;height:40px;border-radius:12px}
  .hero{padding:40px 0 36px}
  .hero h1{margin:12px 0 16px;font-size:42px;line-height:1.08;letter-spacing:-.047em}
  .hero-copy>p{font-size:14px;line-height:1.7}
  .hero-search{height:56px;margin-top:22px;border-radius:14px;grid-template-columns:23px 1fr}
  .hero-search em,.hero-search kbd{display:none}
  .trend-row{margin-top:12px;overflow:hidden;flex-wrap:nowrap}
  .trend-row a{white-space:nowrap}
  .hero-board{padding:13px;border-radius:19px}
  .quick-grid .tool-card.compact{min-height:104px;padding:12px}
  .quick-grid .tool-card.compact small{display:none}
  .trust-grid{padding-block:18px;row-gap:16px}
  .trust-grid>div{grid-template-columns:34px 1fr;column-gap:9px}
  .trust-icon{width:32px;height:32px}
  .trust-strip b{font-size:10px}
  .trust-strip small{font-size:8px}
  .section-wrap{padding:48px 16px}
  .section-heading{align-items:flex-start;gap:14px;margin-bottom:21px}
  .section-heading h2{font-size:28px}
  .section-heading p{font-size:11px;line-height:1.55}
  .section-heading>a{font-size:10px}
  .tool-card-grid{grid-template-columns:1fr}
  .tool-card-grid .tool-card{min-height:78px;padding:12px}
  .tool-card small{-webkit-line-clamp:1}
  .category-card.card{padding:16px;border-radius:16px}
  .category-card-head{padding-bottom:12px}
  .category-card-head h3{font-size:15px}
  .category-card-head p{font-size:9px}
  .mini-tool-links{gap:6px;padding:12px 0}
  .mini-tool-links a{padding:7px 8px;font-size:9px}
  .mini-tool-links a:nth-child(n+5){display:none}
  .privacy-panel{min-height:auto;padding:30px 21px;border-radius:20px}
  .privacy-panel h2{font-size:32px}
  .privacy-panel p{font-size:12px}
  .privacy-visual{display:none}
  .benefit-list{padding:30px 0 0;gap:22px}
  .guide-card{min-height:0}
  .listing-hero,.simple-hero,.category-hero{padding:40px 16px}
  .listing-hero h1,.simple-hero h1,.category-hero h1{font-size:36px}
  .listing-hero>p,.simple-hero>p,.category-hero>div>p{font-size:13px}
  .listing-layout{padding:34px 16px 54px}
  .filter-list{gap:7px}
  .content-band{padding:45px 16px}
  .tool-page{padding:24px 14px 40px}
  .tool-title-row{gap:10px}
  .tool-title .tool-icon{display:grid}
  .tool-title h1{font-size:34px}
  .tool-title p{font-size:12px}
  .save-tool{width:42px;height:42px;padding:0;font-size:0}
  .save-tool::before{font-family:bootstrap-icons;content:"\f417";font-size:17px}
  .save-tool.saved::before{content:"\f415"}
  .tool-workspace{border-radius:17px}
  .tool-form,.tool-result{padding:0}
  .workspace-head,.result-head{padding-inline:15px}
  .tool-fields{padding:16px}
  .tool-actions{padding:15px;align-items:stretch}
  .run-button.btn{width:100%}
  .result-body{padding:16px;min-height:220px}
  .local-note{padding:13px}
  .tool-content{padding:46px 16px;gap:28px}
  .tool-content article h2{font-size:24px}
  .tool-content article p,.tool-content article li{font-size:13px}
  .guide-detail>header{padding:40px 16px}
  .guide-detail>header h1{font-size:36px}
  .guide-body{padding:44px 16px}
  .guide-body .lead{font-size:15px}
  .search-dialog{padding:7px;inset-block-start:3vh}
  .search-result{padding:10px}
  .footer-grid{padding:42px 16px 34px}
}

@media(max-width:430px){
  .container-xxl{--bs-gutter-x:1.5rem}
  .site-header [data-theme-toggle]{display:none}
  .hero h1{font-size:36px}
  .hero-copy>p{font-size:13px}
  .quick-grid{grid-template-columns:1fr 1fr}
  .quick-grid .tool-card.compact{min-height:96px}
  .quick-grid .tool-icon{width:36px;height:36px;font-size:15px}
  .quick-grid .tool-card strong{font-size:11px}
  .trust-grid>div:nth-child(odd){padding-right:12px}
  .trust-grid>div:nth-child(even){padding-left:12px}
  .category-card-head .tool-icon{width:42px;height:42px;font-size:17px}
  .seo-links{grid-template-columns:1fr}
  .tool-title .tool-icon{display:none}
}

@media(prefers-reduced-motion:reduce){
  .tool-card.card{transition:none}
}

/* Bootstrap controls also cover server-rendered administration forms. */
.stack-form input,.stack-form textarea,.stack-form select,.admin-editor input:not([type=checkbox]),.admin-editor textarea,.admin-editor select{width:100%;min-height:46px;border:1px solid #d4deeb;border-radius:11px;padding:10px 12px;background:var(--white);color:var(--ink);font:inherit;font-size:12px}
.stack-form textarea,.admin-editor textarea{min-height:120px;resize:vertical}
.stack-form input:focus,.stack-form textarea:focus,.admin-editor input:focus,.admin-editor textarea:focus,.admin-editor select:focus{outline:0;border-color:#8eb0f8;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
