/* SMMU Spec custom styles */

/* Make tables more readable */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    font-size: 0.9em;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
    vertical-align: top;
}

table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Figure images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Code blocks for pseudocode */
pre {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    overflow-x: auto;
    font-size: 0.85em;
    line-height: 1.5;
}

code {
    font-size: 0.9em;
}

/* Register field tables - make them compact */
table code {
    font-size: 0.85em;
    background: transparent;
    padding: 0;
}

/* Notes styling */
blockquote {
    border-left: 4px solid #4a90d9;
    padding: 0.5em 1em;
    margin: 1em 0;
    background-color: #f0f7ff;
    border-radius: 0 4px 4px 0;
}

/* Wider content area for register tables */
.content {
    max-width: 1100px;
}

/* Better heading spacing */
h1, h2, h3, h4, h5 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3em;
}

h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2em;
}
