/* Shared layout adjustments; calculator formulas and result markup stay intact. */
.font-body, .font-label, .font-inter { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.font-headline { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; }
.rating-container .star { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #b56800; font: 26px/1 Arial, sans-serif; cursor: pointer; }
.rating-container .star:disabled { cursor: default; opacity: .55; }
.mg-site-header { position: relative; z-index: 40; }
.mg-site-header summary { list-style: none; cursor: pointer; }
.mg-site-header summary::-webkit-details-marker { display: none; }
.mg-category-menu[open] > .mg-category-panel { display: block; }
.mg-category-panel { display: none; }
.mg-site-header a:focus-visible, .mg-site-header summary:focus-visible,
.mg-mobile-menu a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid #0052cc; outline-offset: 3px; }
.mg-mobile-menu { margin: 0; padding: 20px; border: 0; width: min(100%, 420px); max-width: 100%; height: 100dvh; max-height: 100dvh; background: #fff; color: #131b2e; overflow-y: auto; overscroll-behavior: contain; }
.mg-mobile-menu::backdrop { background: rgb(19 27 46 / 45%); }
.mg-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mg-menu-heading button, #mobileMenuBtn { min-width: 44px; min-height: 44px; }
.mg-mobile-menu a { display: block; min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
body > .pt-32.max-w-7xl { padding-top: 24px; }
.mg-site-header ~ main > .grid, .mg-site-header ~ main > .grid > * { min-width: 0; }
.mg-home-search { display: flex; gap: 8px; position: relative; }
.mg-home-search input { flex: 1; min-width: 0; padding: 16px; font-size: 16px; }
.mg-home-search button { flex: none; padding: 12px 18px; min-height: 48px; }
.mg-home-search #searchResults { top: 100%; left: 0; }
.mg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mg-featured-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; }
.mg-category-page > .flex > * { min-width: 0; }
.mg-site-header ~ main h1, .mg-site-header ~ main h2,
.mg-site-header ~ main h3 { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
    .mg-category-page > .flex > aside { order: 2; }
}
@media (max-width: 767px) {
    body > .pt-32.max-w-7xl { padding: 16px 16px 0; }
    .mg-site-header ~ main { padding: 20px 16px 48px; }
    .mg-site-header ~ main > header { margin-bottom: 24px; }
    .mg-site-header ~ main > header h1 { font-size: clamp(1.75rem, 7.5vw, 2.25rem); line-height: 1.15; margin-bottom: 12px; }
    .mg-category-page h1 { font-size: 1.75rem; line-height: 1.2; overflow-wrap: anywhere; }
    #verdictTitle { white-space: normal; font-size: 1.5rem; line-height: 1.25; }
    #activeTakeHome { white-space: normal; overflow-wrap: anywhere; font-size: 2rem; line-height: 1.2; }
    .mg-site-header ~ main > header > p { font-size: 16px; line-height: 1.55; }
    .mg-site-header ~ main > header > span { margin-bottom: 12px; }
    .rating-container { flex-wrap: wrap; }
    .mg-site-header ~ main form input:not([type="checkbox"]):not([type="radio"]),
    .mg-site-header ~ main form select, .mg-site-header ~ main form textarea { min-width: 0; max-width: 100%; font-size: max(16px, 1em); }
    .mg-site-header ~ main form button { min-height: 44px; }
    .mg-site-header ~ main > .grid section { padding: 20px 16px; }
    .mg-site-header ~ main > section.mt-20 { margin-top: 40px; }
    .mg-site-header ~ main > section > .p-8 { padding: 24px 16px; }
    .mg-home { padding-top: 32px; }
    .mg-home > section { padding-left: 0; padding-right: 0; margin-bottom: 48px; }
    .mg-home h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.12; }
    .mg-home h1 br { display: none; }
    .mg-home .mg-hero-copy { font-size: 17px; margin-bottom: 24px; }
    .mg-home .mg-info-card { padding: 24px 16px; }
    .mg-site-footer > div { padding: 32px 16px; }
    .mg-site-footer .grid { gap: 24px 16px; }
    .mg-site-footer a { display: inline-block; padding-top: 6px; padding-bottom: 6px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    .mg-site-header *, .mg-mobile-menu *, .mg-home * { animation: none !important; transition: none !important; }
}
