/* English pages only (added by tools/build.py after every other stylesheet).
   Layout fixes for places where the English text is longer than the Norwegian; from the visual review, 12 Nov 2026. */

/* A text link inside running text wraps like text. Elsewhere .textlink is an inline-block with a 44 px tap height,
   which pushed "Front Page Check." onto a line of its own and opened gaps between lines. */
main p > a.textlink, main li > a.textlink { display: inline; min-height: 0; margin-top: 0; }

/* Legal tables: never shrink a column below its longest word ("protectio / n"). */
#webbit-public.wb-legacy main table { overflow-wrap: break-word; }

/* Article tables on a phone: a little smaller, words hyphenated at proper points instead of split ("Freel / ancer"). */
@media (max-width: 600px) {
  .tablewrap { overflow-x: auto; }
  .tablewrap table { font-size: .875em; table-layout: fixed; width: 100%; }
  .tablewrap th, .tablewrap td { overflow-wrap: normal; word-break: normal; hyphens: auto; }
  .tablewrap caption { text-align: left; }
}

/* Vestfold Plumbing price list only: the price sentences wrap inside the table instead of running off its edge,
   and on a phone the price sits under the service name. */
body[data-company-edition="vestfold-ror"] .price-table { table-layout: fixed; }
body[data-company-edition="vestfold-ror"] .price-table tbody th { width: 32%; }
body[data-company-edition="vestfold-ror"] .price-table td { white-space: normal; text-align: left; }
@media (max-width: 600px) {
  body[data-company-edition="vestfold-ror"] .price-table { table-layout: auto; }
  body[data-company-edition="vestfold-ror"] .price-table thead { display: none; }
  body[data-company-edition="vestfold-ror"] .price-table tr,
  body[data-company-edition="vestfold-ror"] .price-table tbody th,
  body[data-company-edition="vestfold-ror"] .price-table td { display: block; width: auto; }
}

/* Lindberg, The Office: "Time for business." fits on one line, as "Tid til bedriften." does. */
body[data-company-edition="lindberg-kontoret"] .hero h1 { max-width: 14ch; }

/* Classic designs: the business name in the header stays on one line ("Lia Physiotherapy", "Fjordvendt Active"). */
.sign > b { white-space: nowrap; }

/* Fjellgrunn Groundworks: the name and the menu toggle each stay on one line on a phone. */
.classic-header summary { white-space: nowrap; }
@media (max-width: 480px) { .classic-header .classic-wordmark { font-size: min(22px, 5.2vw); white-space: nowrap; } }

/* Footer contact lines each on their own row (on two pages they ran together: "400 500 01sales@webbit.no"). */
.site-footer .foot-identity address > a, .site-footer .foot-identity address > span { display: flex !important; }

/* Demo header buttons stay on one line ("Book a table", "Contact us"); the logo gives way a little instead. */
.lp-nav .lp-button { white-space: nowrap; }

/* Vestfold Plumbing & Heating: the longer English name fits the phone header on one line. */
@media (max-width: 600px) { .header-inner .brand span { font-size: .9em; } }

/* No single word alone on the last line of a paragraph; headings share their words across lines. */
main p, main li, main dd { text-wrap: pretty; }
main h1, main h2, main h3 { text-wrap: balance; }

/* Archive price lists: the currency span was styled for a small "kr" after the number; a leading € reads better closer to full size. */
.price .price-currency { font-size: .8em; letter-spacing: 0; }

/* Trade page headings: gallery-fit.css switches text-wrap off for them; balance them like the other headings. */
.branch-heading h1 { text-wrap: balance; }

/* Prices page, extras table: the product names stay on one line at desktop width, as in Norwegian. */
@media (min-width: 900px) { .price-addons tbody th { white-space: nowrap; } }

/* Classic scene menus: an item a little wider than its Norwegian box stays one line, so the fitting script does not shrink it. */
.scene a.navword:not(.navhome) { white-space: nowrap; }
