/* Public-site design system: neutral surfaces and a focused translation workspace. */
:root {
  --bg-page: #fff;
  --bg-surface: #fff;
  --canvas-parchment: #fafafa;
  --surface-pearl: #fafafa;
  --text-primary: #18181b;
  --text-secondary: #71717a;
  --text-tertiary: #71717a;
  --brand-color: #18181b;
  --brand-hover: #3f3f46;
  --accent: #18181b;
  --accent-focus: #18181b;
  --border-light: #e4e4e7;
  --max-width: 1100px;
  --radius-lg: 12px;
  --shadow-md: 0 1px 3px #18181b08;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  padding: 0;
  background: #fafafa;
  color: #18181b;
  font: 15px/1.75 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  letter-spacing: normal;
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a1a1aa; outline-offset: 4px; }
h1, h2, h3 { letter-spacing: -.045em; }
a { text-underline-offset: 3px; }
body > main { max-width: 1100px; width: calc(100% - 72px); padding: 45px 0 90px; }
.site-skip-link { position: absolute; inset-inline-start: 20px; top: -100px; padding: 12px 18px; background: #fff; z-index: 2000; }
.site-skip-link:focus { top: 12px; }
body > header.shared-site-header {
  position: relative;
  top: auto;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  border: 0;
  border-bottom: 1px solid #ededf0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  z-index: 1000;
}
.site-header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; width: min(1100px, calc(100% - 72px)); margin: auto; }
.shared-site-header .logo, .shared-site-footer .logo { font: 650 21px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; letter-spacing: -.7px; gap: 10px; color: #18181b; white-space: nowrap; text-decoration: none; }
.shared-site-header .logo-icon, .shared-site-footer .logo-icon { width: 36px; height: 36px; padding: 0; }
.brand-period { color: #18181b; }
.shared-site-header .logo span { display: inline; }
.shared-site-header .nav-links { display: flex; align-items: center; gap: 25px; margin: 0 auto; padding: 0; }
.shared-site-header .nav-links a { padding: 8px 0; color: #71717a; font-size: 13px; border-radius: 0; background: transparent; white-space: nowrap; }
.shared-site-header .nav-links a.active { color: #18181b !important; font-weight: 650; }
.shared-site-header .nav-links a:hover { color: #3f3f46; background: transparent; }
.shared-site-header .header-actions { display: flex; gap: 14px; align-items: center; }
.shared-site-header .btn-history-toggle { padding: 8px; border: 0; background: transparent; color: #71717a; min-height: 40px; }
.shared-site-header .btn-history-toggle span { display: none; }
.shared-site-header .lang-btn { border: 1px solid #e4e4e7; padding: 7px 10px; border-radius: 6px; font-size: 11px; min-height: 36px; background: #fff; }
.shared-site-header .lang-dropdown { opacity: 1; visibility: visible; transform: none; top: calc(100% + 8px); inset-inline-end: 0; inset-inline-start: auto; max-height: min(420px,70vh); overflow: auto; }
.shared-site-header .lang-dropdown a { font-size: 13px; padding: 7px 12px; }
.shared-site-header .lang-dropdown a[aria-current] { color: #18181b; background: #f4f4f5; }
.site-help { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #71717a; text-decoration: none; }
.site-help > span { border: 1px solid #e4e4e7; border-radius: 50%; width: 21px; text-align: center; line-height: 21px; }
.shared-site-header .mobile-help { display: none; }
.site-eyebrow { color: #18181b; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; font-weight: 750; }
.translator-page > .hero { width: 100%; max-width: 850px; margin: 0 auto 36px; padding: 10px 0 0; text-align: center; }
.translator-page > .hero h1 { color: #18181b; font-size: clamp(30px, 4vw, 40px); font-weight: 650; line-height: 1.15; letter-spacing: -2px; margin: 16px 0; }
.translator-page > .hero .hero-description { font-size: 16px; line-height: 1.65; color: #71717a; max-width: 650px; margin: auto; }
.translator-page .app-container { width: 100%; max-width: none; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px #18181b08; overflow: hidden; padding: 0; }
.tool-workspace-heading { display: flex; justify-content: space-between; gap: 20px; padding: 16px 24px; border-bottom: 1px solid #ededf0; font-size: 12px; color: #71717a; }
.tool-workspace-heading > span:first-child { font-size: 13px; font-weight: 600; }
.tool-workspace-heading b { margin: 0 12px; color: #18181b; }
.translator-page .upload-card { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.translator-page .gt-empty { display: block; padding: 24px; min-height: 0; text-align: center; }
.upload-intro { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 300px; padding: 36px 20px; border: 1px dashed #d4d4d8; border-radius: 8px; background: #fafafa; text-align: center; }
.translator-page .upload-icon-wrapper { background: #fff; color: #52525b; box-shadow: 0 1px 2px #18181b08; border: 1px solid #e4e4e7; transform: none; width: 48px; height: 48px; border-radius: 10px; margin: 0 0 20px; }
.translator-page .upload-icon-wrapper svg { width: 24px; height: 24px; transform: none; }
.translator-page .upload-title { font-size: 21px; font-weight: 600; color: #18181b; margin: 0 0 6px; }
.translator-page .upload-desc { color: #71717a; font-size: 13px; margin: 0; }
.translator-page .gt-empty .btn-primary { margin: 22px 0 0; gap: 8px; }
.upload-format-note { color: #71717a; font-size: 11px; margin-top: 20px; }
.btn-primary, .btn-secondary { border-radius: 7px; font-size: 14px; font-weight: 650; min-height: 44px; padding: 12px 21px; }
.btn-primary { color: #fff; background: #18181b; border: 1px solid #18181b; box-shadow: 0 4px 10px #18181b15; }
.btn-primary:hover { background: #3f3f46; transform: none; }
.btn-secondary { border: 1px solid #e4e4e7; color: #18181b; background: #fff; }
.lang-select, .form-input, .form-textarea { border: 1px solid #e4e4e7; background: #fff; color: #18181b; border-radius: 7px; }
.lang-select { min-height: 44px; padding: 10px 12px; font-size: 13px; }
.translator-page .gt-ready { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; padding: 30px; }
.translator-page .gt-ready-preview { grid-row: span 2; background: #fafafa; border: 1px solid #e4e4e7; border-radius: 12px; min-height: 300px; padding: 24px; }
.translator-page .gt-ready-bar { display: flex; flex-direction: column; align-items: stretch; justify-content: center; border: 0; padding: 8px 0 0; gap: 12px; }
.translator-page .gt-ready-bar .gt-language-field { display: grid; gap: 8px; }
.translator-page .gt-ready-bar .gt-language-field span { color: #71717a; font-size: 12px; }
.translator-page .gt-ready-bar .lang-select { width: 100%; flex: none; }
.translator-page .gt-ready-bar .icon-btn { align-self: center; min-height: 36px; min-width: 40px; }
.translator-page .gt-status { padding: 0; font-size: 12px; }
.translator-page .gt-compare { gap: 24px; padding: 28px; background: #fafafa; }
.translator-page .gt-pane { border-radius: 12px; padding: 18px; background: #fff; border: 1px solid #e4e4e7; }
.translator-page .gt-pane figcaption { text-transform: none; letter-spacing: normal; color: #18181b; font-size: 13px; }
.translator-page .gt-result-footer { padding: 18px 28px; }
.translator-page .features-section, .translator-page .how-to-section, .translator-page > .faq-section { padding: 48px 0; background: transparent; width: 100%; margin: 0; border: 0; border-radius: 0; }
.section-header { margin-bottom: 35px; text-align: start; }
.section-header h2 { color: #18181b; font-size: 26px; line-height: 1.3; font-weight: 650; }
.section-header p { font-size: 15px; line-height: 1.8; color: #71717a; }
.faq-container { max-width: 800px; }
.faq-row { border: 0; border-bottom: 1px solid #e4e4e7; border-radius: 0; background: transparent; margin: 0; box-shadow: none; }
.faq-question { color: #18181b; font-size: 14px; padding: 22px 0; }
.faq-answer p { color: #71717a; font-size: 14px; line-height: 1.9; }
.tool-content { background: #fff; border: 0; box-shadow: none; padding: 48px 0 0; color: #71717a; font-size: 15px; line-height: 1.85; }
.tool-content > section { margin-bottom: 40px; }
.tool-content h2, .tool-content h3, .tool-content h4 { color: #18181b; }
.related-tools { padding: 45px 0; border-top: 1px solid #ededf0; }
.related-tools h2 { font-size: 24px; color: #18181b; }
.related-tool-link { background: #fafafa; border-color: #e4e4e7; color: #18181b; }
body > .breadcrumb-container { width: min(1100px,calc(100% - 72px)); padding: 0; margin: 25px auto 0; }
.breadcrumbs { flex-wrap: wrap; font-size: 12px; color: #71717a; gap: 10px; }
.about-page main { padding-top: 25px; }
.about-page .about-hero { margin: 10px auto 40px !important; padding: 25px 0 0; }
.about-hero h1 { font-size: clamp(30px,4vw,40px); line-height: 1.2; font-weight: 650; color: #18181b; }
.about-hero .highlight { color: #18181b; background: transparent; -webkit-text-fill-color: currentColor; }
.about-hero p { font-size: 16px; line-height: 1.8; color: #71717a; max-width: 640px; margin: 18px auto 0; }
.about-content { padding: 0; max-width: 860px; }
.about-card { border: 1px solid #e4e4e7; box-shadow: none; padding: 40px 48px; border-radius: 16px; }
.about-card p { color: #71717a; font-size: 15px; line-height: 1.9; }
.contact-form { gap: 24px; }
.form-group label { color: #18181b; font-size: 13px; }
.form-input, .form-textarea { font-size: 15px; padding: 13px 16px; }
.blog-hero { margin: 10px auto 45px; padding: 20px 0; max-width: 780px; }
.blog-hero h1 { color: #18181b; font-size: clamp(30px,4vw,40px); font-weight: 650; letter-spacing: -2px; }
.blog-hero p { color: #71717a; font-size: 16px; line-height: 1.8; }
.blog-page-inner { width: 100%; max-width: none; padding: 0; }
.blog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.blog-card { box-shadow: none; border: 1px solid #e4e4e7; border-radius: 14px; background: #fff; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 1px 3px #18181b08; }
.blog-card-media { height: 200px; background: #f4f4f5; }
.blog-card-content { padding: 25px; }
.blog-card-title { color: #18181b; font-size: 22px; line-height: 1.35; }
.blog-card-excerpt { color: #71717a; font-size: 14px; line-height: 1.85; }
.blog-category { color: #18181b; background: #f4f4f5; font-size: 10px; letter-spacing: .8px; }
.blog-read-more { color: #18181b; font-size: 13px; }
body > #postContentArea { padding-top: 35px; }
.post-shell { background: #fff; border: 0; box-shadow: none; }
.post-title { color: #18181b; font-size: clamp(32px,4vw,48px); letter-spacing: -1.7px; line-height: 1.2; }
.post-content { color: #424b5c; font-size: 17px; line-height: 1.95; }
.post-content h2, .post-content h3 { color: #18181b; letter-spacing: -.6px; }
.author-box-card { background: #fafafa; border: 1px solid #e4e4e7; border-radius: 14px; box-shadow: none; }
body > footer.shared-site-footer { background: #fafafa; border-top: 1px solid #edf0f5; border-radius: 0; margin: 0; padding: 50px 0 0; width: 100%; max-width: none; }
.shared-site-footer .footer-content { display: grid; grid-template-columns: 1.5fr .65fr 1fr; gap: 70px; max-width: 1100px; width: calc(100% - 72px); margin: auto; padding: 0 0 40px; }
.shared-site-footer .footer-brand p { color: #71717a; font-size: 12px; margin: 18px 0 10px; max-width: 300px; }
.shared-site-footer .footer-contact { color: #71717a; font-size: 12px; text-decoration: none; }
.shared-site-footer .footer-links-col { display: flex; flex-direction: column; gap: 9px; }
.shared-site-footer .footer-links-col h4 { color: #18181b; font-size: 12px; text-transform: none; letter-spacing: 0; margin: 0 0 6px; }
.shared-site-footer .footer-links-col a { color: #71717a; font-size: 12px; margin: 0; text-decoration: none; }
.shared-site-footer .footer-links-col a:hover { color: #18181b; }
.shared-site-footer .footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #e4e4e7; width: calc(100% - 72px); max-width: 1100px; margin: auto; padding: 20px 0; }
.shared-site-footer .footer-bottom p { color: #71717a; font-size: 11px; margin: 0; }
.shared-site-footer .footer-ad { margin: 15px auto 0; }
.not-found-page main { text-align: center; padding: 90px 0 !important; margin: auto !important; }
.not-found-page h1 { font-size: 42px; margin: 14px 0 22px; }
.not-found-page main p { color: #71717a; margin-bottom: 15px; }
.not-found-page main a { color: #18181b; }
/* Author profile keeps its content and column structure within the same system. */
.author-page { --blue: #18181b; --blue-dark: #3f3f46; --text: #18181b; --text-soft: #71717a; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
.author-page > .hero { background: #fafafa; border: 0; border-radius: 0; box-shadow: none; width: 100%; max-width: none; margin: 0; padding: 65px 36px; position: static; }
.author-page .hero-grid, .author-page .hero-glow, .author-page .hero-glow-2 { display: none; }
.author-page .hero-name { color: #18181b; }
.author-page .hero-name-highlight { color: #18181b; }
.author-page .hero-title, .author-page .hero-desc { color: #71717a; }
.author-page .hero-eyebrow { color: #18181b; background: #f4f4f5; border-color: #e4e4e7; }
.author-page .page-body { max-width: 1100px; width: calc(100% - 72px); padding: 60px 0; margin: auto; }
.author-page .card { border-color: #e4e4e7; border-radius: 14px; box-shadow: none; }
.author-page .stats { background: #fff; border-color: #e4e4e7; }
.author-page .stat-num { color: #18181b; }
.author-page .articles-section { width: calc(100% - 72px); max-width: 1100px; margin: 0 auto 60px; padding: 0; }
[dir=rtl] .gt-ready-bar, [dir=rtl] .about-card { text-align: start; }
@media (max-width: 1050px) {
  .shared-site-header .nav-links { gap: 17px; }
  .site-help { display: none; }
  .site-header-inner { gap: 18px; }
  .shared-site-header .logo { font-size: 21px; }
  .shared-site-footer .footer-content { gap: 35px; }
}
@media (max-width: 768px) {
  body > main, body > .breadcrumb-container, .site-header-inner, .shared-site-footer .footer-content, .shared-site-footer .footer-bottom { width: calc(100% - 40px); }
  .site-header-inner { min-height: 74px; flex-wrap: wrap; gap: 12px; }
  .shared-site-header .logo { font-size: 21px; }
  .shared-site-header .header-actions { margin-inline-start: auto; gap: 7px; }
  .shared-site-header .menu-toggle { display: flex; flex: none; width: 40px; height: 40px; padding: 10px; margin: 0 0 0 4px; justify-content: center; gap: 4px; }
  .shared-site-header .nav-links { position: static; inset: auto; order: 4; width: 100%; min-height: 0; height: auto; display: none; flex-direction: column; align-items: stretch; padding: 0 0 20px; margin: 0; opacity: 1; visibility: visible; transform: none; background: #fff; box-shadow: none; border: 0; gap: 0; }
  .shared-site-header .nav-links.active { display: flex; }
  .shared-site-header .nav-links a, .shared-site-header .mobile-help { display: block; padding: 11px 0; font-size: 14px; }
  body.menu-open { overflow: auto; }
  body > main { padding: 35px 0 60px; }
  .translator-page > .hero h1 { font-size: 36px; letter-spacing: -1.7px; }
  .translator-page > .hero .hero-description { font-size: 14px; }
  .tool-workspace-heading { padding: 18px 20px; gap: 12px; font-size: 10px; }
  .tool-workspace-heading > span:first-child { font-size: 9px; letter-spacing: 1px; }
  .tool-workspace-heading b { margin: 0 6px; }
  .translator-page .gt-empty { gap: 24px; padding: 22px; }
  .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .blog-card-content { padding: 20px; }
  .blog-card-title { font-size: 20px; }
  .shared-site-footer .footer-content { grid-template-columns: 1.2fr 1fr; gap: 35px; }
  .shared-site-footer .footer-brand { grid-column: 1/-1; }
  .author-page .page-body { width: calc(100% - 40px); }
}
@media (max-width: 600px) {
  .shared-site-header .logo { font-size: 19px; gap: 7px; }
  .shared-site-header .logo-icon { width: 29px; height: 29px; }
  .shared-site-header .btn-history-toggle { display: none; }
  .site-header-inner { gap: 9px; }
  .shared-site-header .lang-btn { padding: 5px 7px; min-height: 32px; font-size: 10px; }
  .translator-page > .hero { margin-bottom: 28px; }
  .translator-page > .hero h1 { font-size: 34px; }
  .site-eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .translator-page .app-container { border-radius: 12px; }
  .translator-page .gt-empty, .translator-page .gt-ready { display: flex; flex-direction: column; gap: 26px; padding: 16px; }
  .upload-intro { width: 100%; min-height: 300px; padding: 30px 15px; }
  .translator-page .gt-ready-preview { width: 100%; min-height: 240px; padding: 16px; }
  .translator-page .gt-ready-bar { width: 100%; padding: 0; }
  .translator-page .gt-status { width: 100%; }
  .translator-page .gt-compare { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .translator-page .gt-pane { padding: 16px; }
  .translator-page .gt-result-footer { padding: 16px; }
  .translator-page .features-section, .translator-page .how-to-section, .translator-page > .faq-section { padding: 50px 0; }
  .section-header h2 { font-size: 27px; }
  .section-header p { font-size: 14px; }
  .about-page .about-hero { margin-bottom: 30px !important; }
  .about-card { padding: 26px 22px; }
  .about-card p { font-size: 14px; }
  .about-content { padding: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding-top: 5px; margin-bottom: 30px; }
  .blog-card-media { height: 220px; }
  .post-content { font-size: 15px; line-height: 1.9; }
  .post-title { font-size: 32px; }
  .shared-site-footer .footer-content { gap: 30px 20px; padding-bottom: 30px; }
  .shared-site-footer .logo { font-size: 21px; }
  .shared-site-footer .footer-bottom { display: block; padding: 20px 0; }
  .shared-site-footer .footer-bottom p + p { margin-top: 7px; }
  .shared-site-footer .footer-tools a { overflow-wrap: anywhere; }
  .author-page > .hero { padding: 45px 20px; }
  .author-page .hero-name { font-size: 40px; }
  .author-page .articles-section { width: calc(100% - 40px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Remove legacy width caps and intrinsic placeholders at the shell boundary. */
body > header.shared-site-header, body > footer.shared-site-footer, .author-page > .hero { max-width: none !important; }
body > main { max-width: 1100px !important; }
.translator-page .image-workspace { width: 100%; max-width: none; }
.translator-page .gt-empty, .translator-page .gt-ready, .translator-page .gt-result { width: 100%; }
.translator-page > #features, .translator-page > #how-it-works, .translator-page > .showcase-section, .translator-page > #faq { content-visibility: visible; contain-intrinsic-size: none; }
.translator-page .section-header { width: 100%; max-width: none; }
.shared-site-footer .footer-content, .shared-site-footer .footer-bottom { border-inline: 0; border-bottom: 0; border-radius: 0; background: transparent; }
.shared-site-footer .footer-content { border-top: 0; }
@media(max-width:600px) {
  .translator-page .how-to-grid { grid-template-columns: 1fr; }
}
.shared-site-footer .footer-brand { display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.shared-site-footer .footer-brand .logo { order: 0; }
.author-page .hero-body > * { opacity: 1; transform: none; animation: none; }
.author-page h1, .author-page h2, .author-page h3, .author-page h4 { font-family: inherit; }
.author-page .hero-name-highlight { background: none; -webkit-text-fill-color: #18181b; }
.author-page .hero-actions .btn-ghost { color: #18181b; border-color: #e4e4e7; background: #fff; }
.author-page .profile-card { background: #fafafa; }
.author-page .profile-name { color: #18181b; }
.author-page .profile-role, .author-page .profile-location { color: #71717a; }
.about-card a, .about-hero a, .post-content a { color: #18181b; }
.author-page .hero-actions .btn-primary, .author-page .hero-actions .btn-ghost { width: auto; }
.author-page .hero-body, .author-page .hero-name { text-align: start; }
.shared-site-header .mobile-history { display: none; }
@media(max-width:768px) {
  .shared-site-header .mobile-history { display: block; text-align: start; border: 0; background: transparent; color: #71717a; font: inherit; padding: 11px 0; }
}

/* Compact content supports the tool without competing with it. */
.tool-workspace-heading a { color: #71717a; font-size: 12px; text-decoration: none; }
.tool-workspace-heading a:hover { color: #18181b; }
.tool-privacy-note { padding: 14px 24px; border-top: 1px solid #ededf0; color: #71717a; font-size: 12px; text-align: center; }
.tool-privacy-note a { color: #52525b; text-decoration: underline; }
.simple-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.simple-step-number { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid #e4e4e7; border-radius: 50%; background: #fff; color: #52525b; font-size: 12px; margin-bottom: 16px; }
.simple-steps h3, .simple-use-grid h3 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; line-height: 1.5; margin: 0 0 8px; }
.simple-steps p, .simple-use-grid p { color: #71717a; font-size: 14px; line-height: 1.7; margin: 0; }
.translator-page > .simple-use-cases { padding: 40px 0; background: transparent; }
.simple-use-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 40px; }
.simple-use-grid article { padding: 24px; border: 1px solid #e4e4e7; border-radius: 10px; background: #fff; }
.simple-use-grid svg { display: block; color: #71717a; margin-bottom: 16px; }
.translator-page .faq-container { margin-inline: 0; max-width: 100%; }
.translator-page .faq-icon-wrapper { background: transparent; border: 0; box-shadow: none; color: #71717a; }
.translator-page .faq-question:hover { color: #18181b; }
.translator-page .related-tools { background: transparent; box-shadow: none; border-radius: 0; }
@media(max-width:600px) {
  .simple-steps, .simple-use-grid { grid-template-columns: 1fr; gap: 24px; }
  .simple-steps article { padding-inline-start: 44px; position: relative; }
  .simple-step-number { position: absolute; inset-inline-start: 0; top: 0; }
  .translator-page > .hero h1 { font-size: 30px; font-weight: 650; letter-spacing: -1px; }
  .translator-page .gt-empty { padding: 16px; }
  .translator-page .upload-intro { min-height: 280px; }
  .tool-workspace-heading > span:first-child { font-size: 12px; letter-spacing: 0; }
  .simple-use-grid article { padding: 20px; }
}

.translator-page > .tool-top-ad { margin-top: 28px; margin-bottom: 0; }
.translator-page .faq-container { gap: 0; }
.translator-page .faq-question { padding-block: 20px; text-align: start; line-height: 1.5; }
.translator-page .faq-question:focus-visible { outline: 2px solid #71717a; outline-offset: -3px; border-radius: 5px; }
.translator-page .faq-answer-inner { padding: 0; }
.translator-page .faq-row.active .faq-answer-inner { padding-bottom: 20px; }
.translator-page .faq-row.active { background: transparent; }
.translator-page .faq-answer p { margin: 0; }
.translator-page .related-tools { margin-inline: 0; width: 100%; max-width: none; }
.translator-page .related-tools h2 { text-align: start; font-size: 24px; margin-bottom: 20px; }
.translator-page .related-tool-link { border: 1px solid #e4e4e7; min-height: 48px; padding: 12px 16px; font-size: 14px; background: #fff; justify-content: space-between; }
.translator-page .related-tool-link::after { content: '↗'; color: #71717a; }
.translator-page .related-tool-link:hover { background: #f4f4f5; }

/* Align manual ad placements with the content column. AdSense controls creative
   sizing; disable its mobile full-bleed mode in the ad markup, without clipping. */
.translator-page > .tool-top-ad,
.translator-page > .post-app-ad,
.translator-page .in-article-ad-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-inline: 0;
  margin-inline: auto;
}
.shared-site-footer > .footer-ad {
  width: min(1100px, calc(100% - 72px));
  max-width: 1100px;
  padding-inline: 0;
  margin: 28px auto 24px;
}
@media(max-width:768px) {
  .shared-site-footer > .footer-ad { width: calc(100% - 40px); }
}
