/* Additions for the CFML rebuild (keeps the original look; only styles new elements). */
.dmw-notice { background: #fff8e1; border: 1px solid #f0c36d; color: #5a4400; padding: 12px 16px; margin: 16px 0; border-radius: 4px; }
.dmw-flash { padding: 12px 16px; margin: 16px 0; border-radius: 4px; }
.dmw-flash-success { background: #e8f5e9; border: 1px solid #81c784; color: #1b5e20; }
.dmw-flash-error, .dmw-errors { background: #fdecea; border: 1px solid #e57373; color: #8a1c1c; padding: 12px 16px; margin: 16px 0; border-radius: 4px; }
.dmw-errors ul { margin: 0 0 0 18px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
table.cart { width: 100%; margin: 12px 0 24px; border-collapse: collapse; }
table.cart td, table.cart th { border: 1px solid #c9d6e2; padding: 6px 8px; vertical-align: top; }
table.cart thead td, table.cart thead th { background: #003c67; color: #fff; }
table.cart tfoot td { font-weight: bold; text-align: right; }
table.cart .num { text-align: right; white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.btn-link-like { background: none; border: 0; color: #2C88C9; text-decoration: underline; cursor: pointer; padding: 0; }
.dmw-price-preview { font-size: 1.2em; font-weight: bold; color: #003c67; margin: 6px 0 12px; }
.form-group label .req { color: #b00; }
li.current-menu-item > a { text-decoration: none; }
.no-card-note { font-size: .95em; color: #444; background: #f3f7fb; border-left: 4px solid #2C88C9; padding: 8px 12px; margin: 10px 0; }
.dmw-test-mode { background: #e8f1ff; border: 2px dashed #1f5fbf; color: #0b2e66; }
.dmw-paybox { border: 1px solid #ddd; border-radius: 4px; padding: 14px 16px; margin: 16px 0; background: #fafafa; }
.dmw-paybox .btn-paypal { background: #ffc439; border: 0; color: #111; font-weight: bold; padding: 10px 22px; border-radius: 4px; cursor: pointer; }
.dmw-paid { color: #1b6e20; }
/* "Pay an Invoice or Renewal Notice" section on the order page (2026-10-17) */
.dmw-invoice-pay { clear: both; margin: 36px 0 24px; padding: 16px 20px 8px; border: 2px solid #2C88C9; border-radius: 6px; background: #f7fbff; }
.dmw-invoice-pay h2 { margin-top: 0; color: #003c67; }
.dmw-invoice-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 4px 0 22px; padding: 14px 18px; border: 2px solid #2C88C9; border-left-width: 6px; border-radius: 6px; background: #eef6fd; }
.dmw-invoice-callout-text { margin: 0; font-size: 1.15em; font-weight: bold; color: #003c67; }
a.dmw-invoice-callout-btn { display: inline-block; padding: 10px 20px; border-radius: 4px; background: #003c67; color: #fff; font-weight: bold; text-decoration: none; text-align: center; line-height: 1.3; }
a.dmw-invoice-callout-btn:hover, a.dmw-invoice-callout-btn:focus { background: #005088; color: #fff; text-decoration: none; }
a.dmw-invoice-callout-btn:focus { outline: 2px solid #003c67; outline-offset: 2px; }
#pay-invoice { scroll-margin-top: 12px; }
@media (max-width: 600px) { .dmw-invoice-callout { padding: 12px 14px; } a.dmw-invoice-callout-btn { display: block; width: 100%; } }

/* ==========================================================================
   Design cleanup (2026-10-17): low-risk, CSS-only polish. Brand colours kept:
   navy #003c67, blue #2C88C9 / #005088, light blue #d0ebfd, red #e51937.
   ========================================================================== */

/* --- typography + spacing ------------------------------------------------ */
body.wrap { color: #333; }
.container article p, .container article li, .container article dd { font-size: 15px; line-height: 1.6; }
.container article h1, .container > .col-md-12 > h1 { margin: 22px 0 16px; font-size: 26px; line-height: 1.25; }
.container article > h2:first-child { margin: 22px 0 16px; font-size: 24px; line-height: 1.25; }   /* Terms page title */
.container article h2 { line-height: 1.3; }
.container article h3 { margin: 18px 0 8px; }
.container .content-padding { font-size: 17px; line-height: 1.6; }
.container > p, .container > .dmw-invoice-pay > p { font-size: 15px; line-height: 1.6; }   /* order page text sits directly in .container */
.container .content-padding p { font-size: 17px; }
.container .faq-form { border: 2px solid #2C88C9; border-radius: 6px; padding: 18px 22px 8px; margin: 22px 0 28px; }
.container .faq-form h1 { margin-top: 0; }
.container .faq-form p { margin-bottom: 16px; }
.tagline p { line-height: 1.6; }
img { max-width: 100%; height: auto; }

/* --- header / nav: current page looks like the hover state ----------------- */
#main-nav ul li.current-menu-item { background: #e51937; border-bottom-color: #eee !important; }
#main-nav ul li.current-menu-item > a { color: #fff; }
#main-nav ul li a:focus-visible { outline: 3px solid #ffc439; outline-offset: -3px; }
#header.site-header { border-bottom: 1px solid #e3e9ef; }

/* --- buttons (one style for all site form buttons; PayPal + link buttons keep theirs) --- */
.container input[type="submit"], .container button[type="submit"]:not(.btn-link-like):not(.btn-paypal), a.dmw-btn {
    display: inline-block; background: #003c67; color: #fff; border: 0; border-radius: 4px; padding: 10px 22px; margin: 4px 0 0;
    font: bold 15px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; text-decoration: none; text-shadow: none; box-shadow: none;
}
.container input[type="submit"]:hover, .container input[type="submit"]:focus, .container button[type="submit"]:not(.btn-link-like):not(.btn-paypal):hover,
.container button[type="submit"]:not(.btn-link-like):not(.btn-paypal):focus, a.dmw-btn:hover { background: #005088; color: #fff; }
.container input[type="submit"]:focus-visible, .container button[type="submit"]:focus-visible { outline: 2px solid #003c67; outline-offset: 2px; }
.dmw-paybox .btn-paypal:hover { filter: brightness(0.95); }

/* --- form fields: same width, height, border and spacing everywhere --------- */
.container .form-group { margin-bottom: 14px; }
.container .form-group > label, .container .form-group > .control-label { display: block; margin: 0 0 5px; font-weight: bold; font-size: 14px; color: #222; }
.container input.form-control, .container select.form-control, .container textarea.form-control {
    display: block; width: 100%; max-width: 100%; box-sizing: border-box; height: auto; min-height: 40px; margin: 0;
    padding: 8px 10px; font-size: 15px; line-height: 1.4; color: #222; background: #fff; border: 1px solid #b9c7d6; border-radius: 4px; box-shadow: none;
}
.container textarea.form-control { min-height: 110px; resize: vertical; }
.container input.form-control:focus, .container select.form-control:focus, .container textarea.form-control:focus {
    border-color: #2C88C9; box-shadow: 0 0 0 3px rgba(44, 136, 201, .2); outline: 0;
}
.container fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.container legend { border: 0; width: auto; margin: 0 0 14px; padding: 0; font-size: 15px; font-weight: normal; color: #444; }
.dmw-invoice-pay .form-group small, .container .form-group .help-block { color: #555; }

/* --- cards ------------------------------------------------------------------ */
.dmw-card { background: #fff; border: 1px solid #d3dde7; border-radius: 6px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.dmw-invoice-pay { border-radius: 6px; padding: 18px 22px 10px; }
.dmw-invoice-callout { margin-top: 0; }

/* --- contact page ------------------------------------------------------------ */
.dmw-contact-page::after { content: ""; display: table; clear: both; }
.dmw-contact-page .dmw-contact-main, .dmw-contact-page .dmw-contact-aside { float: none; width: 100%; max-width: 100%; flex: none; padding-left: 0; padding-right: 0; }
.dmw-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 26px; }
.dmw-contact-info h2 { font-size: 17px; margin: 0 0 12px; }
.dmw-contact-info dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 10px; margin: 0 0 12px; }
.dmw-contact-info dt { font-weight: bold; color: #003c67; font-size: 14px; }
.dmw-contact-info dd { margin: 0; font-size: 15px; line-height: 1.45; }
.dmw-contact-info a { color: #005088; }
.container article p.dmw-contact-hours { margin: 0; padding-top: 12px; border-top: 1px solid #e3e9ef; font-size: 14px; color: #444; }
.dmw-contact-form .form-group:last-child { margin-bottom: 0; }
.dmw-contact-aside .sidebar-widget.social { margin-bottom: 18px; }
.dmw-contact-aside .sidebar-widget.social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.dmw-contact-aside .sidebar-widget.social h2, .dmw-contact-aside .sidebar-widget.blue-border h2 { font-size: 20px; margin: 0 0 10px; }
.dmw-contact-aside .sidebar-widget.blue-border { border: 2px solid #2C88C9; border-radius: 6px; background: #eef6fd; padding: 18px 20px 6px; }
.dmw-contact-aside .sidebar-widget blockquote.testimonial { background: #fff; border: 1px solid #d3dde7; border-radius: 6px; padding: 14px 16px 12px; margin: 0 0 14px; }
.dmw-contact-aside .sidebar-widget blockquote.testimonial::before, .dmw-contact-aside .sidebar-widget blockquote.testimonial::after { content: none; }
.dmw-contact-aside .sidebar-widget blockquote.testimonial p { font-size: 15px; line-height: 1.55; margin: 0 0 8px; color: #333; }
.dmw-contact-aside .sidebar-widget blockquote.testimonial cite { position: static; display: block; text-align: right; font-size: 12px; color: #555; }
@media (min-width: 820px) {
    .dmw-contact-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
    .dmw-contact-grid .dmw-contact-info { grid-column: 2; grid-row: 1; }
    .dmw-contact-grid .dmw-contact-form { grid-column: 1; grid-row: 1; }
    .dmw-contact-aside .sidebar-widget.blue-border { column-count: 2; column-gap: 16px; }
    .dmw-contact-aside .sidebar-widget.blue-border h2 { column-span: all; }
    .dmw-contact-aside .sidebar-widget blockquote.testimonial { break-inside: avoid; display: inline-block; width: 100%; }
}

/* --- footer: AA contrast (white / light blue on navy = 11.6:1 / 9.9:1) ------- */
table.copyright { width: 100%; float: none; clear: both; margin-top: 28px; }
table.copyright td { padding: 12px 10px !important; }
.copyright .link-container { margin: 0; color: #d0ebfd; font-size: 14px; line-height: 2; }
.copyright .link-container a, .copyright .link-container a:visited { display: inline-block; color: #fff; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.copyright .link-container a:hover, .copyright .link-container a:focus { color: #d0ebfd; }
.copyright .link-container a:focus-visible { outline: 2px solid #ffc439; outline-offset: 2px; }
.copyright-text { clear: both; margin-top: 0; padding: 12px 10px 4px; background: #eef2f6; }
.copyright-text p { color: #333; font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
/* one footer box (2026-10-17): navy links + social row, then the copyright strip; the light-blue bottom bar is gone */
.dmw-footer { clear: both; margin: 28px 0 24px; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.dmw-footer table.copyright { margin-top: 0; }
.dmw-footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 8px 0 2px; padding-top: 8px; border-top: 1px solid rgba(208, 235, 253, .25); }
.dmw-footer-social a, .dmw-footer-social a:visited { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 14px; line-height: 1.8; text-decoration: none; }
.dmw-footer-social a:hover, .dmw-footer-social a:focus { color: #d0ebfd; text-decoration: underline; text-underline-offset: 2px; }
.dmw-footer-social a:focus-visible { outline: 2px solid #ffc439; outline-offset: 2px; }
.dmw-social-icon { flex: none; display: block; color: #fff; }
.dmw-footer-social a:hover .dmw-social-icon, .dmw-footer-social a:focus .dmw-social-icon { color: #d0ebfd; }
.dmw-footer .copyright-text { padding: 12px 10px 6px; }

/* --- mobile ------------------------------------------------------------------ */
@media (max-width: 1000px) {
    body table.copyright.hide-on-mobile { display: table; }                 /* footer links (Terms, W-9, catalog) were unreachable on phones */
    body table.copyright .link-container { font-size: 14px; line-height: 2.1; }
    body .container .row { margin-left: 0; margin-right: 0; }               /* bootstrap row gutters pushed the order form 5px off-screen */
    body .container .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
    .container article h1, .container > .col-md-12 > h1 { font-size: 23px; margin-top: 16px; }
    .container .faq-form { padding: 14px 14px 4px; margin: 14px 0 20px; }
    .container .content-padding, .container .content-padding p { font-size: 16px; }
    table.cart { font-size: 14px; }
    table.cart td { word-break: break-word; }
    .dmw-card { padding: 14px; }
}

/* Price list page (2026-10-17): banner + two cards */
img.dmw-pricelist-banner { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 375; object-fit: cover; margin: 4px 0 22px; border-radius: 8px; }
.dmw-pricelist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; margin-bottom: 8px; }
.dmw-pricelist-card { margin: 0; }
.dmw-pricelist-card h2 { margin-top: 0; font-size: 22px; color: #003c67; }
.dmw-pricelist-card p:last-of-type { margin-bottom: 0; }
.dmw-pricelist-dl { display: flex; align-items: center; gap: 20px; }
.dmw-pricelist-thumb { flex: none; display: block; }
.dmw-pricelist-thumb img { display: block; width: 120px; height: auto; border: 1px solid #ccd6e0; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.dmw-btn-row { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; }
a.dmw-btn { display: inline-block; padding: 11px 20px; border: 2px solid #003c67; border-radius: 4px; font-size: 15px; line-height: 1.3; font-weight: bold; text-align: center; text-decoration: none; }
a.dmw-btn-primary, a.dmw-btn-primary:visited { background: #003c67; color: #fff; }
a.dmw-btn-primary:hover, a.dmw-btn-primary:focus { background: #005088; border-color: #005088; color: #fff; text-decoration: none; }
a.dmw-btn-secondary, a.dmw-btn-secondary:visited { background: #fff; color: #003c67; }
a.dmw-btn-secondary:hover, a.dmw-btn-secondary:focus { background: #eef6fd; color: #003c67; text-decoration: none; }
a.dmw-btn:focus-visible { outline: 2px solid #003c67; outline-offset: 2px; }
@media (max-width: 820px) {
    .dmw-pricelist-grid { grid-template-columns: 1fr; gap: 16px; }
    img.dmw-pricelist-banner { aspect-ratio: 2.4 / 1; object-position: 75% 50%; margin-bottom: 16px; border-radius: 6px; }
}
@media (max-width: 480px) {
    .dmw-pricelist-dl { flex-direction: column; align-items: stretch; text-align: center; }
    .dmw-pricelist-thumb { align-self: center; }
    .dmw-btn-row a.dmw-btn, .dmw-pricelist-dl a.dmw-btn { display: block; width: 100%; }
}

/* Order form: several magazine rows per submit + remembered recipient (2026-10-17) */
.dmw-step-tip { padding: 10px 14px; border-left: 4px solid #2C88C9; background: #f4f8fc; border-radius: 4px; }
.dmw-mag-row { margin: 0 0 12px; }
.dmw-mag-row-head { display: none; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.dmw-mag-row-title { font-weight: bold; color: #003c67; }
#magRows.dmw-multi .dmw-mag-row { padding: 12px 14px 2px; border: 1px solid #d5dfe9; border-radius: 6px; background: #fbfdff; }
#magRows.dmw-multi .dmw-mag-row-head { display: flex; }
.dmw-mag-row-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.container button.dmw-mag-remove { margin: 0; padding: 0; color: #b3122b; font-size: 14px; line-height: 1.3; }
.dmw-mag-add-wrap { margin: 0 0 14px; }
.container button.dmw-mag-add { padding: 8px 16px; border: 2px dashed #2C88C9; border-radius: 4px; background: #fff; color: #003c67; font: bold 15px/1.3 Arial, Helvetica, sans-serif; cursor: pointer; }
.container button.dmw-mag-add:hover, .container button.dmw-mag-add:focus { background: #eef6fd; border-style: solid; }
.container button.dmw-mag-add:disabled { opacity: .5; cursor: not-allowed; }
.dmw-recip-note { margin: -4px 0 12px; padding: 8px 12px; background: #eef6fd; border-radius: 4px; font-size: 14px; }
.dmw-recip-note a { font-weight: bold; white-space: nowrap; }
@media (max-width: 480px) { .dmw-mag-row-opts { grid-template-columns: 1fr; } }
/* "Paying by credit or debit card?" callout before every PayPal hand-off (2026-10-18). Brand navy/blue, contrast navy on #eef6fd = 11:1. */
.dmw-card-note { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 12px; padding: 12px 16px; border: 2px solid #2C88C9; border-left-width: 6px; border-radius: 6px; background: #eef6fd; color: #003c67; }
.dmw-card-note p { margin: 0; font-size: 15px; line-height: 1.5; }
.dmw-card-note strong { color: #003c67; }
.dmw-card-note-icon { flex: 0 0 auto; font-size: 26px; line-height: 1.1; }
.dmw-paybox .dmw-card-note { margin-top: 4px; }
@media (max-width: 480px) { .dmw-card-note { padding: 10px 12px; gap: 8px; } .dmw-card-note-icon { font-size: 22px; } }
