/* ------ WEB SERVICES CUSTOM STYLES ------ */

a { /* Fix for color contrast accessibility */
    color: #0250C5;
}

a.footnote-ref { /* Fix for "only color distinction" accessibility */
    text-decoration: underline;
}

nav[role="doc-toc"] > ul li a {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    line-height: 44px !important;
}

/* Custom styles for the Precalculus notes */

/* Vertical spacing classes to match LaTeX \vskip commands */
/* Conversion: 1 inch ≈ 96px for screen display */

.vspace-xs {
    height: 10px;      /* ~0.1 inches */
}

.vspace-sm {
    height: 19px;      /* ~0.2 inches */
}

.vspace-md {
    height: 72px;      /* ~0.75 inches */
}

.vspace-lg {
    height: 144px;     /* ~1.5 inches */
}

.vspace-2in {
    height: 192px;     /* 2 inches */
}

/* Definition and Example boxes */
.callout-note {
    border-left-color: #2780e3;
    margin-top: 1em;
    margin-bottom: 1em;
}

.callout-tip {
    border-left-color: #3fb618;
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Tables */
table {
    margin: 1em auto;
}

/* Math display */
.display-math {
    margin: 1em 0;
}

/* Centered images */
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Page breaks for print */
@media print {
    .pagebreak {
        page-break-before: always;
    }
    
    /* Adjust vertical spacing for print (72dpi vs 96dpi) */
    .vspace-xs { height: 7.2px; }
    .vspace-sm { height: 14.4px; }
    .vspace-md { height: 54px; }
    .vspace-lg { height: 108px; }
    .vspace-2in { height: 144px; }
}
