:root { --comet-center-width: 680px; }

.comet-sidebar-content-sidebar #c1 { width: 200px; }
.comet-sidebar-content-sidebar #c3 { width: 200px; }

.comet-sidebar-content-sidebar #c2 {
  width: var(--comet-center-width);
  margin: 0 10px;
}

.comet-sidebar-content-sidebar #wrap,
.comet-sidebar-content-sidebar #header {
  width: calc(var(--comet-center-width) + 480px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.comet-sidebar-content-sidebar #header > a,
.comet-sidebar-content-sidebar #header .custom-header,
.comet-sidebar-content-sidebar #header .wp-custom-header,
.comet-sidebar-content-sidebar #header .header-image,
.comet-sidebar-content-sidebar #header .header-image > a {
  display: block;
  width: 100%;
}

.comet-sidebar-content-sidebar #header img,
.comet-sidebar-content-sidebar #header .custom-header img,
.comet-sidebar-content-sidebar #header .wp-custom-header img,
.comet-sidebar-content-sidebar #header .header-image img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

.page-template-full-width-template-php #content #c2,
.attachment #content #c2 {
  width: calc(var(--comet-center-width) + 420px);
  margin: 0;
}

/* Fix centered images only in main content */
#content img.aligncenter,
#content .wp-block-image .aligncenter,
#content .wp-caption.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Center caption text under centered images */
#content .wp-caption.aligncenter .wp-caption-text,
#content .wp-block-image .aligncenter figcaption {
    text-align: center;
}

/* Italicize only H3 and H4 inside main content */
#content h3,
#content h4 {
    font-style: italic !important;
}
/* Keep screen-reader-only text from causing horizontal overflow */
.screen-reader-text,
.wp-block-search__label.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  left: 0;
  top: 0;
  word-wrap: normal !important;
}
/* Add breathing room below code blocks */
#content pre,
#content .wp-block-code,
#content .wp-block-preformatted,
#content .wp-block-syntaxhighlighter-code,
#content .syntaxhighlighter {
  margin-bottom: .5em !important;
}
/* Add breathing room below image blocks */
#content .wp-block-image,
#content figure.wp-caption,
#content .wp-caption {
  margin-bottom: 1.0em !important;
}
/* High-resolution header image (2320x367, displayed at 1160px) */
.comet-sidebar-content-sidebar #header-image img {
  content: url("https://directaccess.richardhicks.com/wp-content/uploads/2026/11/directaccess-header-2320x367-1.jpg");
}

/* ===== Readability refresh (November 2026) ===== */

/* Post body text: 14.7px to 16px, more line spacing (headings scale with it) */
#content .post-text {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

/* Code blocks: shaded panel, border, clearer monospace font (system fonts only) */
#content .wp-block-code {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 1.2em !important;
}

#content .wp-block-code pre,
#content .wp-block-code code,
#content .wp-block-code .cm-line {
  font-family: Consolas, "Cascadia Mono", Menlo, Monaco, monospace;
  font-size: 14px;
  line-height: 1.55;
  color: #24292f;
  background: transparent;
  margin: 0;
}

/* Tables: light borders, shaded header row, alternating rows */
#content .post-text table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
}

#content .post-text th,
#content .post-text td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  vertical-align: top;
}

#content .post-text thead td,
#content .post-text thead th {
  background: #eef0f2;
  font-weight: 600;
  color: #222;
}

#content .post-text tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Sidebar widget titles: 10.7px to 12px, darker grey */
#c1 .widget-title,
#c3 .widget-title {
  font-size: 12px;
  color: #555;
  letter-spacing: .05em;
}

/* Header: shrink the container from 200px to the 184px image height so the
   gap above the menu (10px) matches the gap below it */
.comet-sidebar-content-sidebar #header {
  height: 184px !important;
  min-height: 184px !important;
}
