/* WordPress, Knowledge Library, paywall and WooCommerce additions to the NavalArchitect.ai design. */

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; left: 12px; top: 12px; z-index: 100; padding: 12px 16px; background: var(--white); color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Menus rendered by wp_nav_menu */
.main-nav ul { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav .current-menu-item > a, .main-nav a[aria-current="page"], .main-nav .current-menu-ancestor > a { color: var(--teal); }
.mobile-nav ul, .mobile-nav li { display: contents; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 23px; list-style: none; margin: 0; padding: 0; }
.footer-disclaimer { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9fb0b9; font-size: 11px; line-height: 1.6; }
.site-footer .brand-name span:empty { display: none; }

/* Search */
.na-hero-search { max-width: 540px; margin: 0 0 22px; }
.na-hero-search label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
.na-search-row { display: flex; flex-wrap: wrap; gap: 8px; }
.na-search-row .form-input { flex: 1 1 240px; min-width: 0; min-height: 48px; margin-top: 0; font-size: 15px; }
.na-search-row .button { min-height: 48px; }
.hero-actions:empty { display: none; }
.na-library-search { margin-top: 28px; }

/* Topic filters as links */
a.filter-button { display: inline-flex; align-items: center; min-height: 44px; }
a.filter-button:hover { border-color: var(--ocean); color: var(--ink); }
a.filter-button[aria-current="page"] { border-color: var(--ink); color: var(--white); background: var(--ink); }

/* Listing rows */
.na-row h2 a:hover { color: var(--ocean); text-decoration: underline; text-underline-offset: 4px; }
.na-access { justify-self: end; color: #3f6170; font-size: 11px; font-weight: 650; text-align: right; }
.na-access.is-paid { color: #7a4c2d; }
.na-result-count { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.na-empty { padding: 32px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.na-empty strong { color: var(--ink); font-size: 18px; }
.pagination ul, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 28px 0 0; padding: 0; }
.pagination a, .pagination span, .nav-links a, .nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #cbd7d9; color: var(--ink); font-size: 13px; }
.pagination .current, .nav-links .current { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 720px) { .na-access { justify-self: start; text-align: left; } }

/* Article */
.na-article-head { max-width: 860px; }
.na-article-head h1 { margin-top: 18px; }
.na-article-head .page-hero-copy { font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.article-body img, .article-body video, .article-body iframe { max-width: 100%; height: auto; }
.article-body figure { margin: 28px 0; }
.article-body figcaption, .wp-element-caption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 23px; font-size: 13px; }
.article-body th, .article-body td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body .wp-block-table { overflow-x: auto; }
.article-body ol { padding-left: 23px; margin: 0 0 23px; }
.article-body blockquote { margin: 25px 0; padding: 20px 22px; background: #edf3f3; color: #38535e; font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.article-body pre, .article-body code { font-size: 13px; background: #eef2f1; }
.article-body pre { padding: 14px; overflow-x: auto; }
.na-featured img { display: block; width: 100%; }
.na-sources, .na-related { list-style: none; margin: 0; padding: 0; }
.na-sources li, .na-related li { padding: 9px 0; border-bottom: 1px solid #e0e7e7; color: var(--copy); font-size: 13px; line-height: 1.5; }
.na-related a { color: var(--ocean); }
.na-related a:hover { text-decoration: underline; }
.na-page-body { max-width: 760px; }

/* Title block (drawing-style record: drafted, checked, revision, sources) */
.na-titleblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 26px 0 0; border: 1px solid var(--ink); background: var(--white); }
.na-titleblock > div { padding: 10px 14px; border-right: 1px solid var(--line); }
.na-titleblock > div:last-child { border-right: 0; }
.na-titleblock dt { color: #677b84; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.na-titleblock dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; font-weight: 600; }

/* Waterline divider and paywall, styled to the site (plugin markup) */
.article-body .na-waterline { margin: 38px 0 0; }
.article-body .na-waterline path { stroke: var(--ocean); }
.article-body .na-waterline-label { color: var(--ocean); }
.paywall.na-paywall { margin-top: 18px; }
.paywall.na-paywall .na-outline { margin: 14px 0 22px; padding-left: 20px; color: #d2dfe3; font-size: 14px; line-height: 1.7; }
.paywall.na-paywall .na-price-note, .paywall.na-paywall .na-signin { color: #c1cfd5; font-size: 12px; }
.paywall.na-paywall .na-signin a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.paywall.na-paywall .button { min-height: 50px; }
.na-paid-notice { color: #244d4b; background: #e7f1ef; border-left: 3px solid #73aaa2; }

/* Pages: WooCommerce */
.page-hero.is-compact { padding: 44px 0 36px; }
.page-hero.is-compact h1 { font-size: clamp(34px, 4vw, 48px); }
.na-shop-content { color: var(--copy); font-size: 14px; line-height: 1.6; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) { border-radius: 4px; background: var(--ink); color: var(--white); font-weight: 600; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--ocean); color: var(--white); }
.woocommerce-account .na-articles { margin: 26px 0; }
.na-articles h2 { font-size: 26px; }
.na-articles ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.na-articles li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.na-articles a { color: var(--ocean); font-weight: 600; }

/* Newsletter widget */
.na-newsletter-form { flex: 0 1 440px; }
.na-newsletter-form input[type="email"], .na-newsletter-form input[type="text"] { min-height: 46px; padding: 0 12px; border: 0; border-radius: 3px; }
.na-newsletter-form button, .na-newsletter-form input[type="submit"] { min-height: 46px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; background: transparent; color: var(--white); font-weight: 600; }

/* WordPress alignment classes */
.alignleft { float: left; margin: 0 22px 12px 0; }
.alignright { float: right; margin: 0 0 12px 22px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-button__link { border-radius: 4px; background: var(--ink); color: var(--white); }

/* Print: article text only. The Waterline plugin removes paid sections from printouts. */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; }
  .site-header, .site-footer, .article-aside, .newsletter, .skip-link, .breadcrumbs, .na-hero-search, .filter-bar { display: none !important; }
  .page-hero, .content-section { padding: 0 0 12px !important; border: 0 !important; }
  .article-layout { display: block !important; }
  .article-body { font-size: 11pt; color: #000; }
}
.article-body .paywall .button, .article-body .na-buy { text-decoration: none; }

/* Full-width section pages (template-wide.php) */
.na-wide-content { color: var(--copy); }
.na-wide-content > .wp-block-group { margin: 0; padding: 72px max(20px, calc((100% - 1200px) / 2)); }
.na-wide-content > .wp-block-group.is-alt { background: #eef2f1; }
.na-wide-content > .wp-block-group.is-dark { background: var(--ink); color: var(--white); }
.na-wide-content > .wp-block-group.is-dark h2, .na-wide-content > .wp-block-group.is-dark h3 { color: var(--white); }
.na-wide-content > .wp-block-group.is-dark p { color: #c1cfd5; }
.na-wide-content > :not(.wp-block-group) { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.na-wide-content h2 { margin: 0 0 14px; }
.na-wide-content h3 { margin: 0 0 10px; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.2; }
.na-wide-content p { line-height: 1.7; }
.na-wide-content .wp-block-group > * + * { margin-top: 16px; }
.na-kicker { margin: 0 0 14px !important; color: var(--ocean); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.na-intro { max-width: 640px; color: var(--muted); font-size: 16px; }
.na-note { max-width: 760px; margin-top: 28px !important; padding: 15px 18px; border-left: 3px solid var(--teal); background: #eaf2f1; color: #405963; font-size: 13px; }
.na-note a, .na-intro a, .na-wide-content .wp-block-details a { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
.na-cards { gap: 16px !important; margin-top: 28px !important; }
.na-cards > .wp-block-column { padding: 26px; background: var(--white); border: 1px solid #dfe6e5; }
.na-cards > .wp-block-column > * { margin: 0 0 10px; }
.na-cards > .wp-block-column p { color: var(--muted); font-size: 14px; }
.na-cards .na-kicker { color: #6d8a92; }
.na-cards .na-card-link { margin-top: 14px !important; }
.na-cards .na-card-link a { color: var(--ocean); font-size: 13px; font-weight: 650; border-bottom: 1px solid #8da9b2; padding-bottom: 5px; }
.na-cards > .wp-block-column.is-featured { background: var(--ink); border-color: var(--ink); border-top: 2px solid var(--teal); }
.na-cards > .wp-block-column.is-featured h3 { color: var(--white); }
.na-cards > .wp-block-column.is-featured p { color: #bccbd1; }
.na-cards > .wp-block-column.is-featured .na-kicker { color: #a9d2ce; }
.na-cards > .wp-block-column.is-featured .na-card-link a { color: var(--teal); border-color: #628b91; }
.na-steps > .wp-block-column > .na-kicker:first-child { font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; color: var(--ocean); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px !important; }
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 21px; border-radius: 4px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; text-decoration: none; }
.wp-block-button__link:hover { background: var(--ocean); color: var(--white); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid #aebdc3; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--ocean); background: rgba(20, 62, 91, .05); }
.wp-block-details { max-width: 760px; padding: 16px 0; border-top: 1px solid var(--line); }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
.wp-block-details summary { cursor: pointer; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.wp-block-details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.na-price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 860px; }
.na-price-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.na-price-list a { color: var(--ink); font-family: var(--serif); font-size: 19px; }
.na-price-list a:hover { color: var(--ocean); text-decoration: underline; }

/* Tools */
.na-estimator { max-width: 720px; margin-top: 32px; }
.demo-field select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid #607882; border-radius: 3px; color: var(--white); background: #112c40; font-size: 16px; }
.na-report-tool .content-heading { margin-bottom: 24px; }
.na-report-output { margin-top: 40px; }

/* Contact form */
.na-contact-form { max-width: 620px; display: grid; gap: 16px; }
.na-contact-form .form-field { display: block; font-weight: 600; }
.na-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.na-form-notice { max-width: 620px; margin: 0 0 18px; }
.na-form-notice.is-error { border-left-color: #b3563d; background: #f7e9e4; }

@media (max-width: 720px) {
  .na-wide-content > .wp-block-group { padding-top: 52px; padding-bottom: 52px; }
}

/* Print the freeboard report only */
@media print {
  body.na-has-report .page-hero, body.na-has-report :has(> .na-report-tool) > :not(.na-report-tool), body.na-has-report .na-report-form-wrap, body.na-has-report .report-toolbar button, body.na-has-report .na-report-output > .price-note { display: none !important; }
  body.na-has-report .na-wide-content > .wp-block-group:not(:has(.na-report-tool)) { display: none !important; }
  body.na-has-report .na-wide-content > .wp-block-group { padding: 0 !important; background: #fff !important; }
  body.na-has-report .report-paper { padding: 0; border: 0; box-shadow: none; }
  body.na-has-report .report-table, body.na-has-report .report-checklist, body.na-has-report .report-calculation { break-inside: avoid; }
}
.na-wide-content .demo-calculator h3 { color: var(--white); margin: 8px 0 9px; }
