/* 151: the military time chart (tool 33946) and the printable chart buttons (33946, 21801, 39708). Loaded by
   inc/pages/tc-151.php on those 3 pages only. Colors are the tools' own: navy #1d2b3a, gray #4f5d6b, line #dfe6ed,
   soft #eef2f6, tint #f1f8fc, blue #2aa5d5. */

/* table 1: every hour (the page's own table look; the caption names it) */
.mil151-scroll { overflow-x: auto; margin: 22px 0 0; }
.mil-article table.mil151-t1 { margin: 0; }
.mil151-t1 caption { caption-side: top; text-align: left; padding: 0 0 10px; font: 700 19px/1.3 "Work Sans", Arial, sans-serif; color: #1d2b3a; }
.mil-article .mil151-t1 td:nth-child(2) { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mil-article .mil151-t1 td:first-child { white-space: nowrap; }

/* table 2: every 15 minutes, in a fold that is open on a computer and closed on a phone */
.mil151-more { margin: 28px 0 0; border: 1px solid #dfe6ed; border-radius: 12px; background: #fff; }
.mil151-more > summary { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-height: 56px; padding: 15px 56px 13px 20px; cursor: pointer; list-style: none; border-radius: 12px; }
.mil151-more > summary::-webkit-details-marker { display: none; }
.mil151-more > summary:focus-visible { outline: 3px solid #2aa5d5; outline-offset: 2px; }
.mil-article .mil151-more > summary .mil151-h3 { margin: 0 !important; font-size: 19px !important; }
.mil151-sum-note { color: #4f5d6b; font-size: 15px; }
.mil151-chev { position: absolute; top: 24px; right: 22px; width: 10px; height: 10px; border-right: 2px solid #1d2b3a; border-bottom: 2px solid #1d2b3a; transform: rotate(45deg); }
.mil151-more[open] > summary .mil151-chev { top: 28px; transform: rotate(225deg); }
.mil-article ul.mil151-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0 !important; padding: 16px 20px 20px !important; border-top: 1px solid #eef2f6; }
.mil-article .mil151-grid li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; margin: 0 !important; padding: 8px 12px; border: 1px solid #dfe6ed; border-radius: 10px; background: #f8fafc; font-size: 15px !important; line-height: 1.4 !important; color: #4f5d6b !important; }
.mil-article .mil151-grid b { color: #1d2b3a; font-weight: 700; font-variant-numeric: tabular-nums; }

/* how to convert */
.mil-article h3.mil151-h3 { margin: 32px 0 8px !important; font-size: 21px !important; }
.mil-article ol.mil151-steps { margin: 0 0 12px; padding-left: 24px; }
.mil-article .mil151-steps li { margin: 4px 0; padding-left: 4px; }
.mil-article p.mil151-ex { margin: 0; }

/* the download button (all 3 pages): the tools' outline button, at least 48 px high */
.tc151-dl-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; }
a.tc151-dl.tc151-dl { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 48px; padding: 10px 20px; border: 2px solid #1d2b3a; border-radius: 10px; background: #fff; color: #1d2b3a !important; font: 700 16px/1.35 "Inter", Arial, sans-serif; text-decoration: none !important; box-shadow: none; transition: background-color .15s ease; }
a.tc151-dl.tc151-dl:hover { background: #f1f8fc; color: #1d2b3a !important; }
a.tc151-dl.tc151-dl:focus-visible { outline: 3px solid #2aa5d5; outline-offset: 2px; }
a.tc151-dl.tc151-dl svg { flex: none; }
.tc151-dl-size { color: #4f5d6b; font-size: 15px; line-height: 1.4; }
.hd-chart-sec .tc151-dl-wrap, .bp-body .tc151-dl-wrap { justify-content: center; }
.hd-chart-sec .tc151-dl-wrap { margin: 20px 0 0; }

@media (max-width: 767px) {
	.mil-article ul.mil151-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 12px 14px !important; gap: 6px; }
	.mil-article .mil151-grid li { padding: 7px 8px; font-size: 14px !important; }
	.mil151-more > summary { padding-left: 16px; }
	.mil-article .mil151-t1 td:first-child { white-space: normal; }
}
@media (max-width: 600px) {
	.mil-article table.mil151-t1 { font-size: 15px; }
	.mil-article .mil151-t1 th, .mil-article .mil151-t1 td { padding: 8px 10px !important; }
	.mil-article .mil151-t1 th:nth-child(2), .mil-article .mil151-t1 td:nth-child(2) { width: 1%; }
}
@media (prefers-reduced-motion: reduce) {
	a.tc151-dl.tc151-dl { transition: none; }
}
