/* MAGODUCK V42 usability correction: complete navigation, populated footer,
   legible type, preview placeholders, and illustrative hero assets.
   Loaded after the existing chrome and homepage CSS. */

/* Navigation links stay clickable at their permanent page URLs. */
.mg-chrome-desktop-nav {gap:13px}
.mg-chrome-desktop-nav>a {
  font-size:14px;letter-spacing:0;
}
.mg-chrome-header .mg-chrome-search input {font-size:15px!important}

/* Original four-column footer with readable, permanent links. */
.mg-chrome-footer .mg-chrome-wrap {max-width:1180px}
.mg-chrome-footer-grid {gap:26px}
.mg-chrome-footer-grid h2 {font-size:16px;line-height:1.4;margin-bottom:9px}
.mg-chrome-footer-grid a {min-height:26px;font-size:14px;line-height:1.55;color:#e7edf8}
.mg-chrome-footer-brand p {font-size:15px;color:#e4ebf6;line-height:1.7}
.mg-chrome-footer .mg-chrome-privacy-note {font-size:13px;line-height:1.6;color:#d0dced}
.mg-chrome-footer-bottom {font-size:13px;color:#d2dfef}
.mg-chrome-footer-cta {font-size:15px}

/* Homepage: inherited 8–12px text was unreadable, especially on phones. */
.magoduck-home {font-size:16px;line-height:1.6}
.magoduck-home .idu-hero-copy>p,
.magoduck-home .idu-lead,
.magoduck-home .idu-why-copy>p,
.magoduck-home .idu-content-section p,
.magoduck-home .idu-guide-grid p,
.magoduck-home .idu-heading-centered>p,
.magoduck-home .idu-blog-box p,
.magoduck-home .idu-final-cta-box p {
  font-size:16px;line-height:1.65;color:#35465f;
}
.magoduck-home .idu-trust-pill {font-size:13px;color:#126638}
.magoduck-home .idu-trust-pill>span {font-size:11px}
.magoduck-home .idu-benefit b {font-size:14px;line-height:1.35;color:#24334c}
.magoduck-home .idu-benefit small {font-size:12px;line-height:1.4;color:#47576e}
.magoduck-home .idu-benefits {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.magoduck-home .idu-heading p {font-size:14px;line-height:1.55;color:#47576e}
.magoduck-home .idu-view {font-size:14px}
.magoduck-home .idu-card-copy strong {font-size:16px;line-height:1.35}
.magoduck-home .idu-card-copy small {font-size:14px;line-height:1.55;color:#40516b}
.magoduck-home .idu-card-status {font-size:12px;line-height:1.5}
.magoduck-home .idu-category {min-height:76px;gap:10px}
.magoduck-home .idu-category strong {font-size:14px;line-height:1.35}
.magoduck-home .idu-category small {font-size:12px;line-height:1.4;color:#47576e}
.magoduck-home .idu-eyebrow {font-size:12px;letter-spacing:.09em;color:#2957a5}
.magoduck-home .idu-checks {font-size:14px;line-height:1.5;color:#35465f}
.magoduck-home .idu-fact-box {font-size:14px;line-height:1.65;color:#35465f}
.magoduck-home .idu-hero-search input,
.magoduck-home .idu-small-search input,
.magoduck-home .idu-sort-label select {font-size:15px}
.magoduck-home .idu-small-search,
.magoduck-home .idu-sort-label select {min-height:44px;height:44px}
.magoduck-home .idu-tool-card {min-height:172px}

/* Text readability is consistent on other MAGODUCK-owned pages too. */
.magoduck-about .idu-about-details p,
.magoduck-about .idu-about-card p,
.magoduck-about .idu-about-transparency p {
  font-size:16px;line-height:1.65;color:#35465f;
}
.magoduck-article .idu-article-meta {font-size:14px;line-height:1.5}
.magoduck-article .idu-article-standfirst {font-size:17px;line-height:1.65}

/* Room to breathe once text is large enough to read. */
@media (max-width:1140px) and (min-width:951px) {
  .mg-chrome-header-row {gap:12px}
  .mg-chrome-desktop-nav {gap:9px}
  .mg-chrome-desktop-nav>a {font-size:13px}
  .mg-chrome-search {width:168px}
}
@media (max-width:950px) {
  .mg-chrome-mobile-nav {grid-auto-rows:minmax(44px,auto)}
}
@media (max-width:630px) {
  .mg-chrome-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}
  .mg-chrome-footer-grid h2 {font-size:15px}
  .mg-chrome-footer-grid a {font-size:14px}
  .mg-chrome-footer-brand p {font-size:15px}
  .magoduck-home .idu-hero-copy>p {font-size:16px}
  .magoduck-home .idu-benefits {grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .magoduck-home .idu-tool-card {min-height:180px}
  .magoduck-home .idu-heading-row,.magoduck-home .idu-tools-head {align-items:flex-start}
}
@media (max-width:380px) {
  .mg-chrome-footer-grid {grid-template-columns:1fr 1fr}
  .mg-chrome-footer-grid {column-gap:10px}
}
@media (prefers-reduced-motion:reduce) {
  .mg-chrome-header *, .mg-chrome-footer * {animation:none!important;transition:none!important}
}

/* An empty preview is not a broken image. Once JS assigns a blob URL, the
   actual preview image returns automatically with no additional state. */
.magoduck-tool .preview-img-wrap {position:relative}
.magoduck-tool .preview-img-wrap img:not([src]) {display:none!important}
.magoduck-tool .preview-img-wrap:has(img:not([src]))::after {
  content:"Choose a file to see the preview";
  display:flex;align-items:center;justify-content:center;
  width:min(88%,360px);min-height:72px;padding:14px;
  color:#273b60;background:rgba(255,255,255,.9);
  border:1px solid #cad7e9;border-radius:14px;
  font-size:15px;font-weight:650;line-height:1.5;text-align:center;
}
.magoduck-tool[data-theme=dark] .preview-img-wrap:has(img:not([src]))::after {
  color:#ebf1ff;background:#17243a;border-color:#526786;
}

/* Text across actual converters and Help must be readable on Windows screens. */
.magoduck-tool .hero p,
.magoduck-tool .workspace-head p,
.magoduck-tool .content-section p,
.magoduck-tool .section-head p,
.magoduck-help .idu-help-introduction p,
.magoduck-help .idu-help-hero p {
  font-size:clamp(16px,1.25vw,19px);
  line-height:1.65;
  font-weight:450;
  opacity:1;
}
.magoduck-tool .magoduck-browser-preflight p,
.magoduck-tool .magoduck-browser-preflight small {
  font-size:15px;line-height:1.55;font-weight:450;
}
.magoduck-help .idu-help-searchbox input,
.magoduck-help .idu-help-introduction p {font-weight:450}

/* Meaningful illustrations fill the previously empty W×H/shape hero space. */
.magoduck-tool .overlay-hero-card .mg-v42-tool-hero-img {
  display:block;width:100%;height:auto;max-height:370px;
  object-fit:contain;object-position:center;
}
