/* ==========================================================================
   TORREY PINES LAW GROUP - THE HOME PAGE LOOK FOR THE INTERIOR PAGES
   Loaded by every template except Template-Home, on the line after css/styles.css.
   Nothing in css/styles.css is edited. Rules here simply come later, so they win.
   Sections 1 to 4 are the same rules as css/home.css.

   Sections of this file
     1. Font    2. Header and menu    3. Footer    4. Square logo
     5. Page frame    6. Photograph and page title    7. Text    8. Sidebar
     then the phone and tablet rules.
   ========================================================================== */

/* 1. FONT --------------------------------------------------------------------
   The site already loads Montserrat Regular. Headings on the home page use
   the SemiBold weight, so one more font file is added to the /fonts folder. */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
	font-display: swap;
}

/* 2. HEADER AND MENU ---------------------------------------------------------
   Same HTML as today (#logo, then the Pop Menu Magic menu). Only the colours
   and widths change. max(24px, calc(50% - 600px)) means: line the contents up
   with a 1200px column in the middle, but never closer than 24px to the edge. */
#logo {
	max-width: none;
	padding: 18px 24px;
	padding-left: max(24px, calc(50% - 600px));
	padding-right: max(24px, calc(50% - 600px));
	background-color: #0E2748;
	background-image: none;
	box-shadow: none;
}
#logo .header-phone {
	color: #FFF;
}
#logo .out_link {
	background-color: #FFF;
	color: #0E2748;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 3px;
}
#logo .out_link:hover {
	background-color: #F2A04A;
	color: #091B33;
}
#masthead {
	background-color: #091B33;
}
#layout #masthead .p7PM3-12.horiz {
	padding: 0 6px;
	padding-left: max(6px, calc(50% - 618px));
	padding-right: max(6px, calc(50% - 618px));
}
.p7PM3-12 {
	font-size: 15px;
}
.p7PM3-12 ul li a {
	color: #FFF;
	padding: 14px 18px;
}
.p7PM3-12 a.trig_open,
.p7PM3-12 ul li a.pm3-link:hover,
.p7PM3-12 ul li a:hover {
	color: #F2A04A;
	background-image: none;
}
.p7PM3-12 a.trig_closed,
.p7PM3-12 ul ul a.trig_closed {
	background-image: none;
}
/* drop-down panels */
.p7PM3-12 ul ul,
.p7PM3-12.transparent ul ul {
	background: #0E2748;
}
.p7PM3-12 ul ul li a {
	color: #E3E9F2;
	font-size: 14px;
	padding: 10px 18px;
}
.p7PM3-12 ul ul li a:hover,
.p7PM3-12 ul ul li a.trig_open,
.p7PM3-12 ul ul li a.pm3-link:hover {
	background-color: #1A3D6B;
	color: #FFF;
}
#banner {
	position: relative;
	border: 0;
	background-color: #091B33;
}

/* 3. FOOTER ------------------------------------------------------------------
   Same HTML as today. Dark navy instead of grey, and no capital letters. */
.footer {
	padding: 40px 24px;
	padding-left: max(24px, calc(50% - 600px));
	padding-right: max(24px, calc(50% - 600px));
	border: 0;
	border-radius: 0;
	background-color: #091B33 !important;
	background-image: none !important;
	color: #B9C3D3;
	font-size: 13px;
}
.footer a {
	color: #FFF;
}
.footer a:hover, .footer a:focus {
	color: #F2A04A;
}
.footer .copyright {
	padding: 6px 0;
	font-size: 13px;
	text-transform: none;
	line-height: 1.7;
}
.footer .copyright img {
	margin-right: 12px;
	vertical-align: middle;
}
/* the first footer line (award logos and copyright) is a little smaller so it fits on one line */
.footer .copyright:first-of-type {
	font-size: 12px;
}

/* 4. SQUARE LOGO -------------------------------------------------------------
   The white square logo (art/Torrey-Pines-Law-Group-white.png) replaces the
   one-line logo in the header. It is pinned to the top left and the menu
   starts to its right. Here, on a desktop, the header and
   the menu bar are see-through and lie on top of the photograph, so the logo
   floats on the photograph itself. On tablets and phones the header is solid. */
#logo {
	z-index: 40;			/* keeps the square in front of the photograph */
	min-height: 40px;
}
#logo .logo-square {
	position: absolute;
	left: max(24px, calc(50% - 600px));
	margin: 0;
}
#logo .logo-square img {
	display: block;
	filter: none;
}
#logo .logo-square {
	top: 20px;
}
#logo .logo-square img {
	width: 150px;
	height: 150px;
}
#layout #masthead .p7PM3-12.horiz {
	padding-left: max(182px, calc(50% - 600px + 158px));
}
@media only screen and (min-width: 901px) {
	#logo {
		box-sizing: border-box;
		height: 76px;
		background-color: transparent;
	}
	#layout {
		position: relative;
		margin-top: -76px;		/* pulls the photograph up behind the header */
	}
	#masthead {
		position: absolute;
		top: 76px;
		right: 0;
		left: 0;
		z-index: 30;
		background-color: transparent;
	}
}
/* Between 900px and 1200px the square and the menu are a little smaller,
   so the menu stays on one line. */
@media only screen and (max-width: 1200px) {
	#logo .logo-square img {
		width: 124px;
		height: 124px;
	}
	#layout #masthead .p7PM3-12.horiz {
		padding-left: 156px;
	}
	.p7PM3-12 {
		font-size: 14px;
	}
	.p7PM3-12 ul li a {
		padding-left: 8px;
		padding-right: 8px;
	}
}
/* Between 900px and 980px the menu is one step smaller again, for the same reason. */
@media only screen and (max-width: 980px) {
	.p7PM3-12 {
		font-size: 13px;
	}
	.p7PM3-12 ul li a {
		padding-left: 6px;
		padding-right: 6px;
	}
}
/* On small phones the square, the telephone number and the button are smaller,
   so all three fit across the top. */
@media only screen and (max-width: 420px) {
	#logo a.logo-square img {
		width: 68px;
		height: 68px;
	}
	#logo .header-cta {
		gap: 6px 12px;
	}
	#logo .header-cta .header-phone {
		font-size: 15px;
	}
	#logo .header-cta .out_link {
		font-size: 13px;
		padding: 8px 10px;
	}
}

/* 5. PAGE FRAME --------------------------------------------------------------
   As on the home page: white, full width, with the content 1200px wide and
   centred. The sidebar stays at the right. */
body {
	margin: 0;
	background-color: #FFF;
	color: #172231;
}
#layout {
	position: relative;
	max-width: none;
	border-radius: 0;
	box-shadow: none;
	background-color: transparent;
}
#layout > .affinity-row.sidebar-right {
	box-sizing: border-box;
	max-width: 1248px;
	margin: 0 auto;
	padding: 40px 24px 64px 24px;
	background-color: #FFF;
}
#layout > .affinity-row.sidebar-right .column-content {
	padding-top: 0;
	padding-left: 0;
	font-size: 16px;
	line-height: 1.65;
}

/* 6. PHOTOGRAPH AND PAGE TITLE -----------------------------------------------
   The photograph has the same dark fade as the home page. Its height on a desktop
   is set twice below (height and top): keep the two numbers the same.
   On a desktop the page's H1 is laid on the photograph, bottom left. The H1 is
   not moved in the HTML: it is still the first heading in EditRegion1. */
#banner .p7IRMimage {
	width: 100%;
	height: 200px !important;
	object-fit: cover;		/* fills the space and crops the edges instead of squashing */
}
#banner::after {			/* the dark fade over the photograph, on a desktop only */
	display: none;
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	background-image: linear-gradient(90deg, rgba(9,27,51,.92) 0%, rgba(9,27,51,.62) 45%, rgba(9,27,51,.25) 100%);
	pointer-events: none;
}
#main-content h1 {
	margin: 10px 0 18px 0;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.15;
	color: #0E2748;
}
@media only screen and (min-width: 901px) {
	#banner .p7IRMimage {
		height: 400px !important;
	}
	#banner::after {
		display: block;
		background-image: linear-gradient(180deg, rgba(9,27,51,.9) 0px, rgba(9,27,51,.55) 130px, rgba(9,27,51,0) 300px), linear-gradient(90deg, rgba(9,27,51,.92) 0%, rgba(9,27,51,.62) 45%, rgba(9,27,51,.25) 100%);
	}
	#main-content h1 {
		position: absolute;
		top: 400px;				/* the foot of the photograph ... */
		left: max(24px, calc(50% - 600px));
		z-index: 25;
		transform: translateY(-100%);	/* ... and the H1 sits just above it */
		box-sizing: border-box;
		max-width: 820px;
		margin: 0;
		padding: 0 24px 44px 0;
		font-size: 42px;
		line-height: 1.1;
		color: #FFF;
	}
}

/* 7. TEXT --------------------------------------------------------------------
   The same headings, link colour and labels as the home page. */
.column-content h2 {
	margin-top: 36px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	color: #0E2748;
}
.column-content h3 {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: #0E2748;
}
#main-content a {
	color: #1F56B3;
}
#main-content a.out_link {
	color: #FFF;
}
/* the "Home > About Us" line becomes the small label used on the home page */
#main-content .breadcrumb, #main-content .breadcrumb a {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #B85C14;
}
/* The coloured icon beside the H1 is no longer shown. The <div class="text-image">
   can stay in the pages; delete it from a page whenever that page is next edited. */
div.text-image {
	display: none;
}
/* boxes: pale panel with a sandstone edge, in place of the orange, purple, blue and brown */
.key-facts {
	padding: 22px 26px;
	border: 0;
	border-left: 3px solid #F2A04A;
	border-radius: 0;
	background-color: #F3F5F9;
}
.key-facts h2 {
	margin-top: 0;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #B85C14;
}
#main-content .affinity-row.fancy {
	border: 0;
	border-left: 3px solid #F2A04A !important;
	background-color: #F3F5F9;
}
/* The page rule above (#layout > .affinity-row.sidebar-right .column-content) removes the
   left padding from every column, including the columns inside a box. This puts the
   padding back inside boxes so headings and lists do not touch the coloured edge. */
#main-content .affinity-row.fancy .column-content {
	padding: 16px 26px 10px 26px;
}
/* Space above each box, so that boxes in a row down the page do not touch. */
#main-content .affinity-row.fancy {
	margin-top: 24px;
}
@media only screen and (max-width: 700px) {
	#main-content .affinity-row.fancy .column-content {
		padding: 14px 18px 8px 18px;
	}
}

/* 8. SIDEBAR -----------------------------------------------------------------
   Small sandstone labels and navy links with thin rules, as in the three news
   columns on the home page. The blue square logo is hidden: it is in the header. */
.topic-submenu-logo {
	display: none;
}
#layout > .affinity-row.sidebar-right > .column-2 {
	margin-right: 0;
	padding-left: 1%;			/* the space styles.css kept at the right now sits between the columns */
}
#layout > .affinity-row.sidebar-right > .column-2 > .column-content {
	padding-right: 0;
}
.topic-submenu {
	box-sizing: border-box;
	padding: 24px 24px 8px 24px;
	border-top: 3px solid #F2A04A;
	background-color: #F3F5F9;
}
.topic-submenu h2 {
	margin: 0 0 6px 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #B85C14;
}
.topic-submenu-section {
	margin-bottom: 26px;
}
.topic-submenu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.topic-submenu li::before {		/* no bullets */
	display: none;
}
.topic-submenu-more {
	margin: 0;
}
.topic-submenu-more summary {
	padding-left: 16px !important;	/* room for the small arrow */
}
.topic-submenu-more summary::before {
	top: 16px !important;
}
.topic-submenu li, .topic-submenu summary {
	margin: 0;
	padding: 9px 0;
	border-top: 1px solid #D5DBE5;
	font-size: 15px;
	line-height: 1.4;
}
.topic-submenu a, .topic-submenu summary {
	font-weight: 600;
	color: #0E2748;
}
.topic-submenu a:hover {
	color: #1F56B3;
}

/* PHONE AND TABLET ----------------------------------------------------------- */
@media only screen and (max-width: 900px) {
	/* On tablets and phones the square stays at the top left, a little smaller,
	   with the telephone number and the button at the right. */
	#logo {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 20px;
		text-align: left;
	}
	#logo .logo-square {
		position: static;
		flex: none;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
	}
	#logo .logo-square img {
		width: 84px;
		height: 84px;
		box-shadow: none;
	}
	#logo .header-cta {
		justify-content: flex-end;
		margin: 0 0 0 auto;
	}
	#layout #masthead .p7PM3-12.horiz {
		padding-left: 6px;
	}
	#layout > .affinity-row.sidebar-right {
		padding: 28px 20px 44px 20px;
	}
	#main-content.column-content {
		padding-right: 0;
	}
}
@media only screen and (max-width: 700px) {
	.p7PM3-12.responsive .pmm3-toolbar {
		background-color: #091B33;
		padding: 4px 16px;
	}
	.p7PM3-12.responsive .pmm3-toolbar a {
		color: #FFF;
	}
	.p7PM3-12.responsive ul li a {
		padding: 13px 20px;
		border-top: 1px solid #24395A !important;
	}
	.p7PM3-12.responsive a:hover {
		background-color: #1A3D6B;
	}
}
/* Two-column drop-downs for Professionals and Intellectual Property (desktop only).
   TPLG, November 2026. */
@media only screen and (min-width: 901px) {
	#p7PM3_1u9, #p7PM3_1u10 {
		column-count: 2;
		column-gap: 0;
	}
	#p7PM3_1u9 { width: 560px; }		/* Professionals */
	#p7PM3_1u10 { width: 640px; }		/* Intellectual Property */
	#p7PM3_1u9 > li, #p7PM3_1u10 > li {
		break-inside: avoid;
	}
}
