/*
 * Typography add-on for prose rendered inside div.textcontent.
 *
 * /css/app.css is the legacy compiled Tailwind-1 bundle and stays byte-identical
 * to the Laravel original; this file only adds what that bundle never had.
 *
 * Tailwind's preflight resets `ul` to list-style:none / margin:0 / padding:0, and
 * neither resources/sass/app.scss nor the compiled bundle ever restored it for
 * .textcontent. Result: every <ul> in an estate description (and on /404 and
 * /datenschutz) rendered as unindented, bulletless lines in the wrong font,
 * indistinguishable from body copy. That defect is inherited from the Laravel
 * original — it was not introduced by the Astro rebuild.
 */

div.textcontent ul {
    font-family: "PT Serif", serif;
    line-height: 1.625;
    list-style: disc outside;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

div.textcontent ul li {
    margin-bottom: 0.375rem;
}

/*
 * Estate descriptions nest a second <ul> inside the outer list (the Miele
 * appliance block under "Eine sterneverdächtige Einbauküche"). Without this it
 * sits flush with its parent items and reads as one flat list.
 */
div.textcontent ul ul {
    list-style: circle outside;
    margin-top: 0.375rem;
    margin-bottom: 0.75rem;
}

/*
 * A bare <b> directly in the prose is used as a sub-heading ("Die Highlights:").
 * Give it the heading font and its own line instead of gluing it to the list above.
 */
div.textcontent > b,
div.textcontent > strong {
    display: block;
    font-family: Raleway, sans-serif;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/*
 * Section headings had the same 1rem above as below, so "Ausstattung" or "Lage"
 * stuck to the paragraph before it. Only headings that actually follow content
 * get the extra air.
 */
div.textcontent h1:not(:first-child),
div.textcontent h2:not(:first-child),
div.textcontent h3:not(:first-child),
div.textcontent h4:not(:first-child),
div.textcontent h5:not(:first-child) {
    margin-top: 2rem;
}
