/*
Theme Name: Trinity Trach-Tube Ties
Theme URI: https://trachtubeties.com/
Author: Restoration from Internet Archive snapshots of trachtubeties.com
Description: Faithful WordPress restoration of the original Trinity Trach-Tube Ties website (2003 to 2016), rebuilt from Wayback Machine snapshots. Reproduces the original sliced-image header, curved content frame, main menu grid and footer bar, with responsive behaviour added for tablet and mobile.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trinity-trach-tube-ties
Tags: one-column, custom-menu, full-width-template
*/

/* ------------------------------------------------------------------
   1. Original classes, recovered verbatim from images/styles.css
      (archived 2003-04-14). Values are unchanged.
   ------------------------------------------------------------------ */

.title {
	font-weight: bold; font-size: 14px; color: #000066; font-family: Verdana, Arial, Helvetica, sans-serif;
}
.subtitle {
	font-weight: bold; font-size: 12px; color: #ff9933; font-family: Verdana, Arial, Helvetica, sans-serif;
}
.nounderline {
	text-decoration: none;
}
.textfont {
	font-size: 11px;
	color: #000000;
	line-height: 20px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-variant: normal;
	text-transform: lowercase;
}
.blueheading {
	font-weight: normal; font-size: 11px; color: #000066; line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif;
}
a:hover {
	color: #000066;
}
.whitefont {
	font-weight: normal; font-size: 11px; color: #ffffff; line-height: 20px; font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none;
}
.navtext {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-variant: small-caps;
	text-transform: capitalize;
	color: #000000;
	text-decoration: none;
}
.botboarder {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #000000;
}
.bodytext {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	font-variant: small-caps;
	color: #000000;
	text-decoration: none;
}
.headingtext {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
	font-variant: small-caps;
	text-transform: capitalize;
	color: #000000;
	text-decoration: none;
}
.numberfont {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

/* ------------------------------------------------------------------
   2. Page shell. The original was a fixed 780px Dreamweaver table
      layout; this reproduces the same proportions with flexbox so the
      chrome can scale down on smaller screens.
   ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 0;
	background: #ffffff;
	color: #000000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}

img { border: 0; }

a { color: #000066; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #ffffff;
	color: #000066;
	padding: 8px 12px;
	z-index: 100;
}
.skip-link:focus { left: 0; }

.site {
	width: 780px;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* --- Header: seven sliced columns totalling 780px --- */

.site-header {
	background: url(assets/images/header_fill.gif) repeat-x left top;
	line-height: 0;
}
.hdr-top img { display: block; width: 100%; height: auto; }

.hdr-row { display: flex; align-items: flex-start; }
.hdr-row img { display: block; width: 100%; height: auto; }

.hdr-logo     { flex: 0 0 53.7179%; max-width: 53.7179%; }
.hdr-photo    { flex: 0 0 13.7179%; max-width: 13.7179%; }
.hdr-gap      { flex: 0 0 1.6667%;  max-width: 1.6667%; }
.hdr-gap-last { flex: 0 0 1.7949%;  max-width: 1.7949%; }

/* --- Breadcrumb strip below the header --- */

.crumbbar {
	display: flex;
	align-items: center;
	line-height: 0;
}
.crumbbar.botboarder { border-bottom: 1px solid #000000; }
.crumb-edge-left  { flex: 0 0 38px; }
.crumb-edge-right { flex: 0 0 56px; margin-left: auto; }
.crumbbar img { display: block; height: 29px; width: auto; }
.crumb-text {
	flex: 1 1 auto;
	line-height: 29px;
	padding-left: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.crumb-text a.navtext:hover { color: #000066; text-decoration: underline; }

/* --- Main frame: left rail, content, right rail --- */

.main-wrap {
	display: flex;
	align-items: stretch;
	flex: 1 1 auto;
}
.col-left {
	flex: 0 0 24px;
	background: url(assets/images/lft_fill.gif) repeat-y left top;
	line-height: 0;
}
.col-right {
	flex: 0 0 56px;
	background: url(assets/images/rgt_fill2.gif) repeat-y left top;
	line-height: 0;
	display: flex;
	align-items: flex-end;
}
.col-left img, .col-right img { display: block; width: 100%; height: auto; }

.content {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}

/* --- Footer bar --- */

.site-footer {
	display: flex;
	align-items: stretch;
	line-height: 0;
}
.ft-edge-left  { flex: 0 0 8px; }
.ft-edge-right { flex: 0 0 102px; }
.site-footer img { display: block; width: 100%; height: auto; }
.ft-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.ft-spacer { height: 37px; }
.ft-bar {
	min-height: 21px;
	background: url(assets/images/footer_fill.gif) repeat left top;
	text-align: center;
	line-height: 21px;
	padding: 0 6px;
}
.ft-bar, .ft-bar a {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #ffffff;
}
.ft-bar a { text-decoration: none; }
.ft-bar a:hover { text-decoration: underline; color: #ffffff; }

/* ------------------------------------------------------------------
   3. Home page main menu grid (original "main menu.png" slices, 544px)
   ------------------------------------------------------------------ */

.mainmenu {
	width: 544px;
	max-width: 100%;
	margin: 0 auto;
}
.mainmenu img { display: block; width: 100%; height: auto; }
.mm-top { display: flex; align-items: stretch; }
.mm-edge { flex: 0 0 3.9106%; max-width: 3.9106%; }
.mm-edge img { height: 100%; object-fit: fill; }
.mm-inner { flex: 0 0 92.1788%; max-width: 92.1788%; }
.mm-tag img { width: 100%; }
.mm-buttons { display: flex; }
.mm-b1 { flex: 0 0 32.3232%; max-width: 32.3232%; }
.mm-b2 { flex: 0 0 36.3636%; max-width: 36.3636%; }
.mm-b3 { flex: 0 0 31.3132%; max-width: 31.3132%; }
.mm-rule img { width: 100%; }
.mm-row { display: flex; }
.mm-r4c1 { flex: 0 0 32.7206%; max-width: 32.7206%; }
.mm-r4c3 { flex: 0 0 34.7426%; max-width: 34.7426%; }
.mm-r4c7 { flex: 0 0 32.5368%; max-width: 32.5368%; }
.mm-r6c1 { flex: 0 0 34.0074%; max-width: 34.0074%; }
.mm-r6c4 { flex: 0 0 32.5368%; max-width: 32.5368%; }
.mm-r6c6 { flex: 0 0 33.4558%; max-width: 33.4558%; }
.mainmenu a { display: block; text-decoration: none; }
.mainmenu a img { transition: opacity .2s ease; }
.mainmenu a:hover img, .mainmenu a:focus img { opacity: .82; }
.mainmenu a:focus-visible { outline: 2px solid #000066; outline-offset: -2px; }

/* ------------------------------------------------------------------
   4. Page content blocks
   ------------------------------------------------------------------ */

.page-block {
	width: 90%;
	margin: 0 auto;
}
.page-block + .page-block { margin-top: 4px; }

.section-heading {
	background-color: #FFCC00;
	padding: 5px;
	text-align: center;
}
.section-body { padding: 5px; }
.section-body p { margin: 0 0 1em; }
.section-body p:last-child { margin-bottom: 0; }

.intro-text {
	font-size: 12px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	line-height: 1.5;
}
.intro-text img.floatleft {
	float: left;
	width: 200px;
	height: auto;
	margin: 0 10px 6px 0;
}
.intro-text::after { content: ""; display: table; clear: both; }

.advantage-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 5px;
}
.advantage-row .adv-img { flex: 0 0 200px; max-width: 200px; }
.advantage-row .adv-img img { display: block; width: 100%; height: auto; }
.advantage-row .adv-text {
	flex: 1 1 auto;
	font-size: 18px;
	line-height: 1.35;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* --- Price list --- */

.price-intro {
	color: #000066;
	font-size: 22px;
	line-height: 1.35;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	text-align: center;
	padding: 5px;
}
.price-note { padding: 5px; }

.price-table {
	width: 100%;
	/* The archived table sized itself to its four columns, about 576px. */
	max-width: 620px;
	border-collapse: collapse;
	margin: 5px auto;
}
.price-table th,
.price-table td {
	padding: 5px;
	text-align: center;
	vertical-align: middle;
}
.price-table thead th { background-color: #FFCC00; }
.price-table tbody tr:nth-child(odd)  td { background-color: #AFC8E7; }
.price-table tbody tr:nth-child(even) td { background-color: #6699FF; }
.price-table tbody td { font-size: 16px; }
.price-table form { margin: 0; }

.paypal-button {
	display: inline-block;
	border: 1px solid #f2c840;
	border-radius: 4px;
	background: linear-gradient(#ffe17a, #f9bf3b);
	color: #003087;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	padding: 6px 14px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}
.paypal-button:hover { background: linear-gradient(#ffe9a0, #ffcc55); }
.paypal-button:focus-visible { outline: 2px solid #000066; outline-offset: 2px; }

.order-phone { padding: 5px; }
.order-phone .alert { color: #FF0000; }
.order-phone a { color: #FF0000; }

/* --- Contact and transactional message pages --- */

.contact-card {
	width: 50%;
	margin: 0 auto;
	padding: 10px 5px;
}
.contact-card p { margin: 0; line-height: 1.6; }

.message-panel {
	width: 80%;
	margin: 0 auto;
	padding: 10px 5px;
}
.message-panel .message-title {
	font-size: 24px;
	font-weight: bold;
	line-height: 1.3;
	text-align: center;
	margin: 0 0 14px;
}
.message-panel p { line-height: 1.6; margin: 0 0 1em; }

/* --- Generic fallbacks for any other page, post or archive --- */

.content .entry {
	padding: 10px 12px;
	font-size: 12px;
	line-height: 1.6;
}
.content .entry h1, .content .entry h2, .content .entry h3 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #000066;
}
.content .entry img { max-width: 100%; height: auto; }
.content .entry a { color: #000066; }

.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { margin: 0 0 14px; }
.archive-list .entry-title { font-size: 14px; font-weight: bold; }
.archive-list .entry-meta { font-size: 11px; color: #444444; }

.search-form { margin: 10px 0; }
.search-form input[type="search"] {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	padding: 4px 6px;
	border: 1px solid #999999;
}
.search-form button {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	padding: 4px 10px;
	border: 1px solid #000066;
	background: #AFC8E7;
	color: #000066;
	cursor: pointer;
}

/* ------------------------------------------------------------------
   5. Responsive behaviour. The original site shipped none; these rules
      keep the recovered proportions intact as the viewport shrinks and
      then reflow the fixed-width pieces on small screens.
   ------------------------------------------------------------------ */

@media (max-width: 800px) {
	.site { width: 100%; }
}

@media (max-width: 700px) {
	.advantage-row .adv-text { font-size: 15px; }
	.price-table tbody td { font-size: 13px; }
	.price-intro { font-size: 18px; }
	.contact-card { width: 80%; }
	.page-block { width: 96%; }
}

@media (max-width: 560px) {
	/* Header keeps the logo only; the three product photos would be
	   unreadable at this width. */
	.hdr-photo, .hdr-gap, .hdr-gap-last { display: none; }
	.hdr-logo { flex: 0 0 100%; max-width: 100%; }

	.col-left  { flex: 0 0 10px; }
	.col-right { flex: 0 0 16px; }
	.col-left img, .col-right img { display: none; }

	.ft-edge-right { flex: 0 0 44px; }

	/* The 544px sliced menu becomes a stack of the four real buttons. */
	.mm-edge, .mm-rule, .mm-r4c3, .mm-r6c1, .mm-r6c6,
	.mm-b1, .mm-b3 { display: none; }
	.mm-top { display: block; }
	.mm-inner { flex: 0 0 100%; max-width: 100%; }
	.mm-buttons, .mm-row { display: block; }
	.mm-b2, .mm-r4c1, .mm-r4c7, .mm-r6c4 {
		flex: 0 0 100%;
		max-width: 260px;
		margin: 8px auto;
	}

	/* The Contact Us slice carries the top of the shared triangle graphic.
	   Once the grid is stacked that band reads as a stray bar, so the slice
	   is drawn from its bottom edge instead. */
	.mm-r6c4 a {
		display: block;
		aspect-ratio: 177 / 71;
		background: url(assets/images/main_menu_r6_c4.gif) no-repeat center bottom;
		background-size: 100% auto;
	}
	.mm-r6c4 a img { visibility: hidden; width: 100%; height: 100%; }

	.advantage-row { display: block; }
	.advantage-row .adv-img { max-width: 200px; margin: 0 auto 8px; }
	.advantage-row .adv-text { font-size: 14px; text-align: center; }

	.intro-text img.floatleft { float: none; display: block; margin: 0 auto 10px; }

	.crumb-text { font-size: 11px; }

	/* Price table becomes stacked cards. */
	.price-table thead { display: none; }
	.price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
	.price-table tr { margin-bottom: 10px; border: 1px solid #6699FF; }
	.price-table td { text-align: left; }
	.price-table td::before {
		content: attr(data-label) ": ";
		font-weight: bold;
		font-size: 12px;
		font-variant: small-caps;
	}
	.price-table td.cell-order::before { content: ""; }
	.price-table td.cell-order { text-align: center; }

	.contact-card, .message-panel { width: 94%; }
}

@media (max-width: 380px) {
	.ft-bar, .ft-bar a { font-size: 9px; }
	.ft-bar { line-height: 1.5; padding: 3px 4px; }
}

@media print {
	.site-header, .crumbbar, .col-left, .col-right, .site-footer { display: none; }
	.site { width: auto; }
}
