/*
 * Where the article chrome stops and a ported page's own design begins.
 *
 * The singular template styles prose: .om-site-main .om-page-content a paints
 * every link in the content card brand teal with a dashed underline. That is
 * right for a link inside a paragraph and wrong for an anchor that arrived with
 * its own background, radius and colour — which is what every builder page
 * ports. The underline is the part that cannot be fixed from the page's own
 * stylesheet without repeating the colour declaration, so it is removed here.
 *
 * A classed anchor is the boundary: prose links carry no class, components
 * always do.
 */
.om-site-main .om-page-content a[class] {
  border-bottom: 0;
}

/*
 * The parent reset paints every button with the accent colour, which is a
 * form-control default rather than a design decision and only reaches 3.8:1 on
 * white. Buttons in ported pages set their own background and expect the label
 * to come from the surrounding text, so the default is put back to inherit.
 *
 * Same specificity as the reset rule, loaded later, and any component class
 * still outranks it.
 */
button,
[type="button"],
[type="submit"] {
  color: inherit;
}

/*
 * The same over-reach in the other direction: om-single.css also sets
 * text-align: start on every p, li and heading in the content card. A payment
 * gateway overlay that centres its own spinner caption then gets pulled to the
 * reading edge — measured 23px off centre on /online-payment/, because the
 * overlay is printed inside the Gravity Forms confirmation, which is inside the
 * content card.
 *
 * An element whose class or id comes from another plugin is a design island: it
 * has already chosen its alignment, and the article typography stops at its
 * border. inherit keeps whatever the island itself declared. The id half is not
 * theoretical — that overlay carries no class at all.
 */
.om-site-main .om-page-content :is( [class*="derahyar-"], [id*="derahyar-"] ) :where(p, li, blockquote, h1, h2, h3, h4) {
  text-align: inherit;
}
