/* DIAMOND GUIDES AND FAQ (sec/scripts/php/seo/Guides.php, template/crafted/seo/guide*.phtml, faq.phtml)
   Loaded on those pages only, and on the education and about pages for the two blocks at the end
   of this file. The guide itself is the aftercare page's document layout (#aftercare in style.css):
   same column, type, colours, summary box, contents list and section rules, so a guide reads as a
   page of the same site. Change one, change the other. */

/* A guide sits in page/1column.phtml, whose .main has its own padding and width for shop pages.
   Here the article sets both, exactly as #aftercare does without a .main around it. */
body.seo-guide-page,
.seo-guide-page .page{background:#fff;}
.seo-guide-page .main{max-width:none; padding:0;}

#guide{box-sizing:border-box; max-width:876px; margin:0 auto; padding:34px 28px 60px; color:#3d3732; font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif; font-size:15px; line-height:25px; text-align:left; overflow-wrap:break-word;}
#guide *, #guide *:before, #guide *:after{box-sizing:border-box;}
#guide h1, #guide h2, #guide h3{font-family:Unna,'Times New Roman',serif; font-weight:normal; color:#211d1a; text-transform:none;}
#guide h1{margin:0 0 12px; font-size:44px; line-height:50px; letter-spacing:-.5px;}
#guide h2{margin:0 0 14px; font-size:26px; line-height:32px;}
#guide h3{margin:26px 0 8px; font-size:22px; line-height:28px;}
#guide p{margin:0 0 14px; font-size:inherit; line-height:inherit;}
#guide strong{font-weight:600; color:#2e2a26;}
#guide a{color:#9b6f21; text-decoration:underline; text-underline-offset:2px;}
#guide a:hover{color:#211d1a;}
#guide a:focus-visible{outline:2px solid #b98a2e; outline-offset:3px; border-radius:2px;}

/* Breadcrumb: Home > Education > this guide. Quiet, above the title. */
#guide .guide-breadcrumb{margin:0 0 22px; font-size:13px; line-height:20px; color:#7a7068;}
#guide .guide-breadcrumb ol{display:flex; flex-wrap:wrap; gap:2px 0; margin:0; padding:0; list-style:none;}
#guide .guide-breadcrumb li{margin:0; padding:0;}
#guide .guide-breadcrumb li + li:before{content:"\203A"; margin:0 9px; color:#b98a2e;}
#guide .guide-breadcrumb a{color:#7a7068; text-decoration:none;}
#guide .guide-breadcrumb a:hover{color:#9b6f21; text-decoration:underline;}

#guide .guide-byline{margin:0; font-size:14px; line-height:22px; color:#6b625a;}
#guide .guide-byline a{color:#2e2a26; font-weight:600;}

#guide .guide-summary{margin:30px 0 0; padding:26px 30px 14px; background:#f7f4ef; border:1px solid #e6ded2; border-radius:8px;}
#guide .guide-summary p{font-size:16px; line-height:26px; color:#2e2a26;}

#guide .guide-contents{margin:36px 0 0;}
#guide .guide-contents h2{margin:0 0 10px; font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif; font-size:12px; line-height:18px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:#a97924;}
#guide .guide-contents ol{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(var(--guide-rows,4),auto); grid-auto-flow:column; column-gap:44px; margin:0; padding:0; border-top:1px solid #e6ded2; list-style:none;}
#guide .guide-contents li{min-width:0; margin:0; padding:0; border-bottom:1px solid #e6ded2;}
#guide .guide-contents a{display:flex; align-items:baseline; height:100%; min-height:48px; padding:11px 4px; color:#2e2a26; text-decoration:none;}
#guide .guide-contents a:hover{color:#9b6f21;}
#guide .guide-contents-number{flex:0 0 36px; font-family:Unna,'Times New Roman',serif; font-size:17px; color:#b98a2e;}
#guide .guide-contents a > span:last-child{min-width:0;}

#guide .guide-section{padding-top:30px; margin-top:40px; border-top:1px solid #e6ded2; scroll-margin-top:20px;}
#guide .guide-section ul,
#guide .guide-section ol{margin:18px 0; padding-left:24px;}
#guide .guide-section ul{list-style:disc;}
#guide .guide-section ol{list-style:decimal;}
#guide .guide-section li{margin:0 0 10px; padding-left:4px;}
#guide .guide-section li::marker{color:#9b6f21;}
#guide .guide-section ol li::marker{font-weight:600;}

/* A comparison table. The wrapper scrolls sideways on a narrow screen, so the page never does. */
#guide .guide-table{margin:20px 0 22px; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid #e6ded2; border-radius:8px;}
#guide .guide-table:focus-visible{outline:2px solid #b98a2e; outline-offset:2px;}
#guide .guide-table table{width:100%; min-width:520px; border-collapse:collapse; font-size:14px; line-height:22px;}
#guide .guide-table caption{padding:12px 16px 0; caption-side:top; font-size:12px; line-height:18px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:#a97924; text-align:left;}
#guide .guide-table th,
#guide .guide-table td{padding:11px 16px; text-align:left; vertical-align:top; border-bottom:1px solid #e6ded2;}
#guide .guide-table thead th{background:#f7f4ef; font-weight:600; color:#2e2a26; white-space:nowrap;}
#guide .guide-table caption + thead th{background:none; padding-top:10px;}
#guide .guide-table tbody th{font-weight:600; color:#2e2a26;}
#guide .guide-table-compact table{min-width:0;}
#guide .guide-table-compact thead th{white-space:normal;}
#guide .guide-table tbody tr:last-child th,
#guide .guide-table tbody tr:last-child td{border-bottom:0;}

/* FAQ: every question a small heading with its answer under it. */
#guide .guide-question{margin-top:26px; scroll-margin-top:20px;}
#guide .guide-section > h2 + .guide-question{margin-top:18px;}
#guide .guide-question h3{margin:0 0 6px; font-size:21px; line-height:27px;}

#guide .guide-related{padding-top:30px; margin-top:44px; border-top:1px solid #e6ded2;}
#guide .guide-related ul{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0 0; padding:0; list-style:none;}
#guide .guide-related li{min-width:0; margin:0; padding:0;}
#guide .guide-related a{display:block; height:100%; padding:18px 20px 16px; border:1px solid #e6ded2; border-radius:8px; color:#5a544f; text-decoration:none; transition:border-color .18s ease;}
#guide .guide-related a:hover{border-color:#b98a2e; color:#5a544f;}
#guide .guide-related strong{display:block; margin:0 0 4px; font-family:Unna,'Times New Roman',serif; font-size:21px; line-height:26px; font-weight:normal; color:#211d1a;}
#guide .guide-related span{display:block; font-size:14px; line-height:22px;}

/* Where to go next: the summary box's ground, the about page's gold button. */
#guide .guide-next{margin:44px 0 0; padding:28px 30px 20px; background:#f7f4ef; border:1px solid #e6ded2; border-radius:8px;}
#guide .guide-actions{display:flex; flex-wrap:wrap; align-items:center; gap:10px 26px; margin:18px 0 18px;}
#guide .guide-actions > a{display:inline-flex; align-items:center; min-height:44px; max-width:100%;}
#guide .guide-actions > a.guide-button{justify-content:center; padding:10px 26px; background:#a8804a; border:1px solid #a8804a; border-radius:4px; color:#fff; font-weight:600; text-decoration:none; transition:background .2s ease, border-color .2s ease;}
#guide .guide-actions > a.guide-button:hover{background:#8f6b3b; border-color:#8f6b3b; color:#fff;}
#guide .guide-viewing{font-size:14px; line-height:22px; color:#6b625a;}

@media screen and (max-width:767px){
	#guide{padding:24px 20px 44px; line-height:24px;}
	#guide h1{font-size:32px; line-height:38px;}
	#guide h2{font-size:22px; line-height:28px;}
	#guide h3{font-size:20px; line-height:26px;}
	#guide .guide-breadcrumb{margin-bottom:16px;}
	/* The title is right under it: on a phone the last crumb would only repeat it on a second line. */
	#guide .guide-breadcrumb li[aria-current]{display:none;}
	#guide .guide-summary{padding:20px 18px 8px;}
	#guide .guide-summary p{font-size:15px; line-height:24px;}
	#guide .guide-contents ol{grid-template-columns:minmax(0,1fr); grid-template-rows:none; grid-auto-flow:row;}
	#guide .guide-section{padding-top:24px; margin-top:32px;}
	#guide .guide-question h3{font-size:19px; line-height:25px;}
	#guide .guide-related{padding-top:24px; margin-top:36px;}
	#guide .guide-related ul{grid-template-columns:minmax(0,1fr);}
	#guide .guide-next{margin-top:36px; padding:22px 18px 14px;}
}
@media screen and (max-width:480px){
	#guide{padding-right:16px; padding-left:16px;}
	#guide .guide-actions{align-items:stretch; flex-direction:column; gap:6px;}
	#guide .guide-actions > a.guide-button{text-align:center;}
	#guide .guide-table th,
	#guide .guide-table td{padding:10px 12px;}
}

/* INDEX OF THE GUIDES under the education page (guide-index.phtml). The section also has the class
   "education", so its heading, text and white list card are that page's own (style.css). Only what
   differs is here: it follows the page instead of opening one, each entry is a title with a line
   under it, and its closing line is plain text, not the page's pull quote. */
.education.guide-index{padding-top:0; scroll-margin-top:20px;}
.education.guide-index > h2{margin-top:0;}
.education.guide-index li a{display:block; border-bottom:0; font-family:Unna,'Times New Roman',serif; font-size:21px; line-height:1.25; color:#2e2a26;}
.education.guide-index li a:hover{color:#a8804a;}
.education.guide-index li span{display:block; margin-top:2px;}
.education.guide-index > p.guide-index-faq{margin:0 auto 18px; padding:0; background:none; border:0; border-radius:0; box-shadow:none; font-family:inherit; font-size:16px; line-height:1.8; color:#5a544f;}

@media screen and (max-width:640px){
	.education.guide-index li a{font-size:19px;}
	.education.guide-index > p.guide-index-faq{margin-top:0; padding:0; font-size:15px; line-height:1.75;}
}

/* AUTHOR OF THE GUIDES under the about page (guide-author.phtml). #about is pulled edge to edge and
   reaches down over the bottom padding of .main; this band does the same, so it joins the page's
   last section instead of floating on the grey body. Type and gold are the about page's. */
.guide-author{position:relative; margin:60px calc(-50vw + 50%) -60px; padding:66px 24px 72px; background:#fff; border-top:1px solid #ece6e0; font-family:"Open Sans",Arial,sans-serif; color:#2e2a26; text-align:center; overflow-x:clip; scroll-margin-top:20px;}
.guide-author-box{max-width:720px; margin:0 auto;}
.guide-author h2{margin:0 0 10px; font-family:"Unna",Georgia,serif; font-size:40px; font-weight:normal; line-height:1.12; color:#2e2a26;}
.guide-author p{margin:0 0 16px; font-size:15px; line-height:1.65; color:#5a544f;}
.guide-author p.guide-author-role{margin:0 0 20px; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:#a8804a;}
.guide-author a{display:inline-block; padding-bottom:2px; border-bottom:1px solid #d9c3a4; color:#a8804a; font-weight:600; text-decoration:none; transition:border-color .2s ease;}
.guide-author a:hover{border-bottom-color:#a8804a; text-decoration:none;}
.guide-author p:last-child{margin-bottom:0;}

@media (max-width:980px){
	.guide-author h2{font-size:32px;}
}
@media (max-width:640px){
	.guide-author{padding:48px 16px 52px;}
	.guide-author h2{font-size:26px;}
}
/* Below 500px .main has 30px under it instead of 60px. */
@media screen and (max-width:500px){
	.guide-author{margin-bottom:-30px;}
}
