/*
    CMS content pages (pages/show.blade.php: about, directions, privacy,
    diamond-beach, wildwood, wildwood-crest, north-wildwood) — font, size,
    line-height and padding matched to the Square1 reference pages
    (islandrealtygroup.php, directions.php, privacy.php ... + styles.css).
    Scoped to .irg-content-page and only loaded by those pages; Tenants &
    Owners and the themed Wildwood NJ pages keep their own typography.
*/

/* body,td {Montserrat; 17px; #333}; content in a width="90%" table with a
   40px spacer above and a 50px spacer below. */
.irg-content-page {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    color: #333333;
    width: 90%;
    max-width: none;
    padding: 40px 0 50px;
    -webkit-text-size-adjust: none;
}

/* Default heading margins (Tailwind's preflight zeroes them) and the
   styles.css sizes. Line-height is the table's 40px .medspacing. Unlayered,
   so it also evens out sizing utilities baked into the CP HTML. */
.irg-content-page h1 {
    font-size: 42px;
    font-weight: 100;
    line-height: 40px;
    margin: 0.67em 0;
    color: #333333;
}

.irg-content-page h2 {
    font-size: 32px;
    font-weight: 300;
    line-height: 40px;
    margin: 0.83em 0;
}

.irg-content-page h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 40px;
    margin: 1em 0;
}

.irg-content-page h4 {
    font-size: 24px;
    font-weight: 300;
    line-height: 40px;
    margin: 1.33em 0;
}

.irg-content-page p,
.irg-content-page li {
    font-size: 17px;
    line-height: 40px;
}

.irg-content-page p {
    margin: 1em 0;
}

.irg-content-page strong,
.irg-content-page b {
    font-weight: 700;
}

/* Privacy: the reference's privacy.php table has no .medspacing, so text
   keeps the normal line-height and its lists keep their bullets. The
   !important beats the layout's global p {line-height: 40px !important}. */
.irg-content-page--plain h1,
.irg-content-page--plain h2,
.irg-content-page--plain h3,
.irg-content-page--plain h4 {
    line-height: normal;
}

.irg-content-page--plain p,
.irg-content-page--plain li {
    line-height: normal !important;
}

.irg-content-page--plain ul {
    margin: 1em 0;
    padding-left: 40px;
    list-style: disc;
}

.irg-content-page--plain ol {
    margin: 1em 0;
    padding-left: 40px;
    list-style: decimal;
}

/* About: the CP body sizes its photo with t.gif spacers (height="15" /
   "550") under a .bgcenter background cell; Tailwind's img {height:auto}
   would otherwise scale the 1px spacer to its width and tile the photo. */
.irg-content-page img[src$="t.gif"] {
    display: block;
}

.irg-content-page img[src$="t.gif"][height="15"] {
    height: 15px;
}

.irg-content-page img[src$="t.gif"][height="550"] {
    height: 550px;
}

/* .bgcenter {background-position: center top; background-repeat: no-repeat;} */
.irg-content-page .bgcenter {
    background-position: center top;
    background-repeat: no-repeat;
}

@media (max-width: 639px) {
    .irg-content-page {
        width: auto;
        padding: 24px 16px 40px;
    }

    .irg-content-page h1 {
        font-size: 32px;
    }

    .irg-content-page h2 {
        font-size: 26px;
    }

    .irg-content-page h3,
    .irg-content-page h4 {
        font-size: 20px;
    }
}
