/* Scoped to compact/touch views. Original forms and handlers remain in use. */
html.qvm-ready body{background:#f8f6ef!important;color:#203d36}
.qvm-home-header,.qvm-home-header *{box-sizing:border-box!important}
.qvm-home-header{background:#183e34;color:#fff9e8;padding:12px 14px 0;font:16px/1.4 Arial,sans-serif}
.qvm-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.qvm-brand{display:flex;align-items:center;gap:10px;color:#fff9e8;text-decoration:none;font:24px/1.2 Georgia,serif}
.qvm-brand img{width:48px;height:48px;object-fit:contain;border-radius:50%}
.qvm-home-header .HP_header_basket{position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:10px 12px!important;background:#e9dfc5!important;color:#183e34!important;border:1px solid #e9dfc5!important;border-radius:4px!important;box-shadow:none!important;font:600 15px/1.4 Arial!important;min-height:44px}
.qvm-home-header form{display:flex!important;gap:8px;width:100%!important;margin:0!important;position:static!important}
.qvm-home-header input:not([type=hidden]){flex:1;width:100%!important;min-width:0!important;min-height:44px!important;padding:10px!important;font:16px Arial!important;border:1px solid #d6dacf!important;border-radius:4px!important;background:#fffefa!important;color:#203d36!important;position:static!important}
.qvm-home-header button{min-height:44px!important;padding:10px 14px!important;font:600 16px Arial!important;border:1px solid #a99d79!important;border-radius:4px!important;background:#e9dfc5!important;color:#183e34!important;position:static!important;width:auto!important}
.qvm-home-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.qvm-home-nav>.HP_ipad_album_link,.qvm-menu>summary{display:flex!important;align-items:center;justify-content:center;min-height:44px!important;margin:0!important;padding:10px!important;border:1px solid #a99d79!important;border-radius:4px!important;background:transparent!important;color:#fff9e8!important;text-decoration:none!important;font:600 15px/1.4 Arial!important;cursor:pointer}
.qvm-menu>summary{display:list-item!important;text-align:center;list-style-position:inside}
.qvm-menu[open]{grid-column:1/-1}
.qvm-menu-content{display:grid;gap:8px;padding:12px 0}
.qvm-home-header .qvm-menu-content a,.qvm-home-header .qvm-menu-content select{position:static!important;display:block!important;width:100%!important;min-height:44px!important;height:auto!important;padding:10px!important;margin:0!important;border:1px solid #a99d79!important;border-radius:4px!important;box-shadow:none!important;background:#fffefa!important;color:#203d36!important;font:16px/1.4 Arial!important;text-decoration:none!important;text-align:left!important;white-space:normal!important}
.qvm-menu-content .tooltiptext{display:none!important}
.qvm-offer{display:block;padding:10px 0;font:13px/1.4 Arial;color:#e9dfc5;text-align:center;text-decoration:none}
html.qvm-home .HP_header_wrapper,html.qvm-home .HP_ipad_search_links_row,html.qvm-home .HP_mainCol1_menuWrapper,html.qvm-home .HP_mainCol2_menuWrapper{display:none!important}
html.qvm-home .HP_wrapper{display:block!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:0!important}
html.qvm-home body,html.qvm-home{height:auto!important;overflow:auto!important}
html.qvm-home .HP_mainCol3_categoryPicturesWrapper{position:static!important;display:block!important;inset:auto!important;width:100%!important;height:auto!important;overflow:visible!important;padding:0 0 16px!important;margin:0!important;background:#f8f6ef!important}
.qvm-browse-title{font:25px/1.3 Georgia,serif;color:#203d36;margin:16px 14px 12px}
html.qvm-home .HP_mainCol3_categoryPictures{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:10px!important;padding:0 12px!important;margin:0!important;width:100%!important;height:auto!important}
html.qvm-home .HP_mainCol3_categoryPictureLink{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;min-width:0!important;height:auto!important;padding:8px!important;gap:6px!important;border:1px solid #d6dacf!important;border-radius:4px!important;background:#fffefa!important;box-shadow:none!important;text-decoration:none!important}
html.qvm-home .HP_mainCol3_categoryPictureLink p:first-child{height:140px!important;width:100%!important;margin:0!important;padding:0!important}
html.qvm-home .HP_mainCol3_categoryPictureLink img{height:100%!important;width:100%!important;object-fit:contain!important;padding:5px!important;border-radius:2px!important}
html.qvm-home .HP_mainCol3_categoryNames{font:17px/1.3 Georgia,serif!important;color:#203d36!important;min-height:44px!important;width:100%!important;margin:0!important;padding:4px 0!important}
html.qvm-ready .SR_LHS,html.qvm-ready .SR_RHS,html.qvm-ready .OL_LHS,html.qvm-ready .OL_RHS{background:#183e34!important;background-image:none!important;color:#fff9e8!important}
html.qvm-ready .SR_LHS_logo img,html.qvm-ready .OL_LHS_logo img{content:url('images/DISPLAY/qvstamps_roundel.jpg');width:72px!important;height:72px!important;object-fit:contain;border-radius:50%}
html.qvm-ready .SR_MID_itemForSale{border:1px solid #cbd3c2!important;border-radius:4px!important;background:#fffefa!important;box-shadow:none!important;color:#203d36!important}
html.qvm-ready .SR_MID_itemDescription{color:#203d36!important}
html.qvm-ready .OL_MID_priceAndBuyingOptions .item>a,html.qvm-ready .OL_MID_box1_price{background:#fffefa!important;color:#203d36!important;border:1px solid #a99d79!important;border-radius:4px!important;box-shadow:none!important}
html.qvm-ready .OL_MID_priceAndBuyingOptions .item>a.OL_MID_box3_addToBasket_2,html.qvm-ready .OL_MID_priceAndBuyingOptions .item>a.OL_MID_box4_addToWatch_2{background:#d6e6d0!important;border-color:#6a8961!important}
html.qvm-ready .OL_MID_box7_itemText,html.qvm-ready .OL_MID_box9_certificatesAndGuarantees,html.qvm-ready .OL_MID_box10_specialOffers{background:#fffefa!important;border:1px solid #d6dacf!important;border-radius:4px!important;box-shadow:none!important;color:#203d36!important}
html.qvm-ready .OL_RHS_box,html.qvm-ready .SR_RHS_links,html.qvm-ready .SR_RHS_button,html.qvm-ready .SR_LHS_button{border-radius:4px!important;box-shadow:none!important}
.qvm-specifications{order:2;margin:12px;background:#183e34;padding:0 12px;border-radius:4px}
html.qvm-ready .qvm-specifications .OL_LHS{display:block!important;position:static!important;width:100%!important;height:auto!important}
html.qvm-ready .qvm-specifications .OL_LHS_logo{display:none!important}
.qvm-home-header :focus-visible,.qvm-menu :focus-visible{outline:3px solid #d9bd79;outline-offset:3px}
@media(min-width:600px){html.qvm-home .HP_mainCol3_categoryPictures{grid-template-columns:repeat(3,minmax(0,1fr))!important}.qvm-menu-content{grid-template-columns:repeat(2,minmax(0,1fr))}.qvm-home-header{padding:14px 24px 0}.qvm-home-nav{max-width:600px}.qvm-brand-row{margin-bottom:10px}}
@media(min-width:900px){html.qvm-home .HP_mainCol3_categoryPictures{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(orientation:portrait),(max-width:1000px) and (max-height:500px){
html.qvm-ready .SR_mobile_nav,html.qvm-ready .OL_mobile_nav{background:#183e34!important;padding:10px!important;gap:8px!important}
html.qvm-ready .SR_mobile_nav a,html.qvm-ready .SR_mobile_nav button,html.qvm-ready .OL_mobile_nav a,html.qvm-ready .OL_mobile_nav button{border:1px solid #a99d79!important;border-radius:4px!important;box-shadow:none!important;background:#183e34!important;color:#fff9e8!important;min-height:44px!important;font-size:15px!important;text-decoration:none!important}
.qvm-nav-logo{width:28px;height:28px;object-fit:contain;margin-right:7px;flex-shrink:0}
html.qvm-ready .OL_mobile_nav{flex-wrap:wrap!important}
html.qvm-ready .OL_mobile_nav a:first-child{flex-basis:48%!important}
html.qvm-ready .OL_mobile_nav button{flex-basis:100%!important}
html.qvm-ready .OL_mobile_nav a[href^="basket.php"]{font-size:15px!important;flex-direction:row!important}
html.qvm-ready .OL_mobile_nav a[href^="basket.php"]::before,html.qvm-ready .OL_mobile_nav a[href^="basket.php"]::after{display:none!important}
html.qvm-ready .SR_LHS input:not([type=hidden]),html.qvm-ready .SR_RHS input:not([type=hidden]){background:#fffefa!important;color:#203d36!important;border-radius:4px!important}
html.qvm-ready .SR_MID_itemPrice{background:#183e34!important;color:#fff9e8!important}
html.qvm-ready .SR_MID>div[class^="SR_MID_itemsForSaleContainer"]{padding:10px!important;gap:10px!important}
html.qvm-ready .SR_MID_itemDescription{font:14px/1.4 Arial!important}
html.qvm-ready #OL-MID_box5_frontImage_image{max-height:320px!important}
html.qvm-ready .OL_MID_priceAndBuyingOptions{order:1!important}
html.qvm-ready .OL_MID_box6_moreImages_1,html.qvm-ready .OL_MID_box6_moreImages_2{order:2!important}
html.qvm-ready .OL_MID_priceAndBuyingOptions .item>a{min-height:48px!important}
}
@media(hover:hover){html.qvm-ready .OL_MID_priceAndBuyingOptions .item>a.OL_MID_box3_addToBasket_2:hover,html.qvm-ready .OL_MID_priceAndBuyingOptions .item>a.OL_MID_box4_addToWatch_2:hover{background:#f5d1d5!important;border-color:#b75a66!important;color:#812d3a!important}}
.qvm-home-nav>.HP_ipad_album_link{grid-column:auto!important;grid-row:auto!important;width:auto!important;min-width:0!important}
@media(orientation:portrait),(max-width:1000px) and (max-height:500px){html.qvm-ready .OL_MID_box5_frontImage{height:auto!important;min-height:0!important;padding:0!important;aspect-ratio:auto!important}html.qvm-ready .OL_MID_box5_frontImage .OL_stampMount{margin:0!important;min-height:0!important;padding:6px!important;aspect-ratio:auto!important}}

.qvm-visible-menus{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.qvm-home-header .qvm-visible-menus select{position:static!important;grid-column:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;margin:0!important;padding:8px!important;font:16px/1.3 Arial,sans-serif!important;border:1px solid #a99d79!important;border-radius:4px!important;background:#fffefa!important;color:#203d36!important}
.qvm-home-header .qvm-visible-menus .HP_ipad_services_dropdown{grid-column:1/-1!important}
@media(min-width:480px){.qvm-visible-menus{grid-template-columns:repeat(3,minmax(0,1fr))}.qvm-home-header .qvm-visible-menus .HP_ipad_services_dropdown{grid-column:auto!important}}

/* Keep the search field and submit button within the tablet header. */
html.qvm-home .qvm-home-header form.HP_ipad_search_box,
html.qvm-home .qvm-home-header form.HP_header_search_box{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important;position:static!important;float:none!important;transform:none!important;box-sizing:border-box!important}
html.qvm-home .qvm-home-header form input:not([type=hidden]){grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;position:static!important;inset:auto!important;float:none!important;transform:none!important;box-sizing:border-box!important}
html.qvm-home .qvm-home-header form button{grid-column:2!important;grid-row:1!important;width:auto!important;min-width:76px!important;max-width:100%!important;margin:0!important;position:static!important;inset:auto!important;float:none!important;transform:none!important;white-space:nowrap!important;box-sizing:border-box!important}

/* Include padding inside the grid width in every orientation. */
html.qvm-home .HP_wrapper,html.qvm-home .HP_wrapper *{box-sizing:border-box!important}
html.qvm-home .HP_mainCol3_categoryPicturesWrapper,html.qvm-home .HP_mainCol3_categoryPictures{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html.qvm-home .HP_mainCol3_categoryPictureLink{width:auto!important;max-width:100%!important;min-width:0!important;grid-column:auto!important;grid-row:auto!important;box-sizing:border-box!important}
html.qvm-home .HP_mainCol3_categoryPictureLink p,html.qvm-home .HP_mainCol3_categoryPictureLink img{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.qvm-more-categories{margin:18px 12px 8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qvm-more-categories h2{grid-column:1/-1;font:24px/1.3 Georgia,serif;color:#203d36;margin:0 0 2px}
.qvm-more-categories a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;padding:14px;background:#e9dfc5;color:#183e34;border:1px solid #b39b62;border-radius:4px;font:600 17px/1.4 Arial,sans-serif;text-decoration:none;overflow-wrap:anywhere}
.qvm-more-categories a:focus-visible{outline:3px solid #ad7e26;outline-offset:3px}

html.qvm-home .HP_mainCol3_categoryPictures>.qvm-category-heading{grid-column:1/-1!important;margin:12px 0 2px!important;padding:12px 0 0!important;border-top:1px solid #d6dacf;font:24px/1.3 Georgia,serif;color:#203d36}
html.qvm-home .HP_mainCol3_categoryPictures>.qvm-category-heading:first-child{margin-top:0!important;padding-top:0!important;border-top:0}

/* Override the legacy full-width Stock Explorer rule in compact layouts. */
html:root.qvm-home .qvm-home-header .qvm-home-nav{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
html:root.qvm-home .qvm-home-header .qvm-home-nav>.HP_ipad_album_link{grid-column:1!important;grid-row:1!important;width:auto!important;min-width:0!important;max-width:100%!important}
html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-menu:not([open]){grid-column:2;grid-row:1;min-width:0}
html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-menu>summary{white-space:normal;overflow-wrap:anywhere}
/* Compact header: brand wording and a clickable offer panel. */
.qvm-brand-blurb{display:none}
html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-offer{grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:8px 12px;background:#e9dfc5;color:#183e34;border:1px solid #d9bd79;border-radius:4px;font:600 14px/1.4 Arial,Helvetica,sans-serif;text-decoration:none;text-align:center}
html:root.qvm-home .qvm-home-header .qvm-offer:hover{background:#dfd0a8}
@media(min-width:600px),(orientation:landscape){
 .qvm-brand{min-width:0;flex:1}
 .qvm-brand-name{display:none}
 .qvm-brand-blurb{display:block;max-width:440px;font:18px/1.35 Georgia,'Times New Roman',serif}
 .qvm-brand-row>.HP_header_basket{flex-shrink:0}
 html:root.qvm-home .qvm-home-header .qvm-home-nav{max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);align-items:start}
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-menu{grid-column:2;grid-row:1;min-width:0}
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-offer{grid-column:3;grid-row:1;align-self:start}
 .qvm-home-nav .qvm-menu-content{grid-template-columns:minmax(0,1fr)}
 .qvm-visible-menus{margin-bottom:12px}
}
@media(orientation:landscape) and (max-height:500px){.qvm-brand-blurb{font-size:16px;max-width:400px}}
/* Preserve the original portrait-phone offer text; separate wider headers from Browse stamps. */
@media(min-width:600px),(orientation:landscape){
 html:root.qvm-home .qvm-home-header{padding-bottom:14px!important}
 html:root.qvm-home .qvm-home-header .qvm-visible-menus{margin-bottom:0}
}
@media(max-width:599px) and (orientation:portrait){
 html:root.qvm-home .qvm-home-header>.qvm-offer{display:block;padding:10px 0;min-height:0;background:transparent;border:0;border-radius:0;color:#e9dfc5;font:13px/1.4 Arial,sans-serif;text-align:center;text-decoration:none}
}
/* Keep the iPhone landscape navigation compact and evenly aligned. */
@media(orientation:landscape) and (max-width:1000px) and (max-height:500px){
 html:root.qvm-home .qvm-home-header .qvm-home-nav{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.6fr)}
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.HP_ipad_album_link,
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-menu>summary{height:48px!important;min-height:48px!important;padding:8px 6px!important;font:600 13px/1.3 Arial,sans-serif!important;white-space:nowrap!important;border-radius:4px!important;background:transparent!important;color:#fff9e8!important;border:1px solid #a99d79!important}
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-offer{height:48px;min-height:48px;flex-direction:column;padding:6px;font-size:12px;line-height:1.35}
 .qvm-home-header .qvm-offer .qvm-offer-separator{display:none}
 .qvm-home-header .qvm-offer-buy,.qvm-home-header .qvm-offer-postage{white-space:nowrap}
}
/* Phone landscape: one-line labels and a 44px navigation row. */
@media(orientation:landscape) and (max-width:1000px) and (max-height:500px){
 html:root.qvm-home .qvm-home-header .qvm-home-nav{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,2.5fr);gap:6px}
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.HP_ipad_album_link,
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-menu>summary{height:44px!important;min-height:44px!important;padding:8px 4px!important;font-size:12px!important}
 html:root.qvm-home .qvm-home-header .qvm-home-nav>.qvm-offer{height:44px;min-height:44px;flex-direction:row;padding:6px 4px;font-size:11px;line-height:1.3;white-space:nowrap;gap:3px}
 .qvm-home-header .qvm-offer .qvm-offer-separator{display:inline}
}/* Legacy header links used far-right numbered grid columns. */
html.qvm-home .qvm-home-header .qvm-menu-content>a,
html.qvm-home .qvm-home-header .qvm-menu-content>select{
 grid-column:auto!important;grid-row:auto!important;order:0!important;
 min-width:0!important;max-width:100%!important;
 float:none!important;transform:none!important;
}
/* Visible authentication actions; account-only dropdown. */
html:root.qvm-home .qvm-home-header .qvm-auth-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-column:2;grid-row:1;min-width:0}
html:root.qvm-home .qvm-home-header .qvm-auth-actions>a{display:flex!important;align-items:center;justify-content:center;position:static!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;height:auto!important;min-height:44px!important;padding:10px 8px!important;margin:0!important;background:#fffefa!important;color:#203d36!important;border:1px solid #a99d79!important;border-radius:4px!important;font:600 15px/1.4 Arial!important;text-decoration:none!important;text-align:center!important;white-space:normal!important;box-shadow:none!important}
html:root.qvm-home .qvm-home-header .qvm-auth-actions>.qvm-menu{position:relative;grid-column:auto!important;grid-row:auto!important;min-width:0}
html:root.qvm-home .qvm-home-header .qvm-auth-actions>.qvm-menu[open]>.qvm-menu-content{position:absolute;right:0;top:calc(100% + 6px);z-index:100;width:230px;max-width:calc(100vw - 24px);padding:8px;background:#fbfaf6;border:1px solid #d6dacf;border-radius:4px;box-shadow:0 6px 20px #183e3420;grid-template-columns:minmax(0,1fr)}
@media(min-width:600px),(orientation:landscape){html:root.qvm-home .qvm-home-header .qvm-home-nav{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,2fr)}}
@media(max-width:599px) and (orientation:portrait){html:root.qvm-home .qvm-home-header .qvm-home-nav{grid-template-columns:minmax(0,1fr)}html:root.qvm-home .qvm-home-header .qvm-auth-actions{grid-column:1;grid-row:2}}
@media(max-width:599px) and (orientation:portrait){html:root.qvm-home .qvm-home-header .qvm-auth-actions>.qvm-menu[open]>.qvm-menu-content{left:0;right:auto}}
