/* Restricted to the new materials content and homepage block. */
body.site #g-mainbar .category-list:has(.materials-gallery)>.content-category>form{display:none!important}
body.site #g-mainbar:has(.materials-gallery){padding-left:20px!important;padding-right:20px!important}
body.site #g-mainbar:has(.materials-gallery)>.g-grid{max-width:1400px;margin-left:auto;margin-right:auto}
body.site #g-mainbar:has(.materials-gallery) :is(.platform-content,.g-content,.category-desc){padding:0!important;margin:0!important;width:100%!important}
.materials-gallery img.fs-picture{height:auto;aspect-ratio:3/2;object-fit:cover;box-sizing:border-box}
.materials-gallery .fs-card-link p{font-size:13px;line-height:1.5;margin:8px 0;color:#665c50}
@media(min-width:1101px){.materials-gallery .fs-card-row{grid-template-columns:repeat(6,minmax(0,1fr))}}
.materials-article .topic-photo-story{display:flow-root}
.materials-home{display:none!important}
@media(min-width:1025px){.materials-home.materials-ready{display:block!important}.materials-home .materials-home-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.materials-home .materials-home-card{display:flex;flex-direction:column;color:inherit;text-decoration:none;background:#f5f2ec;border:1px solid #c9b99d;border-radius:7px;overflow:hidden;box-shadow:0 2px 6px #26313612}.materials-home .materials-home-card img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}.materials-home .materials-home-card h3{margin:18px 16px 10px;font-size:20px;line-height:1.4;color:#263136}.materials-home .materials-home-card p{margin:0 16px 14px;font-size:14px;line-height:1.55}.materials-home .materials-home-card span{margin:auto 16px 18px;font-size:13px;color:#946536}.materials-home .materials-home-card:hover{border-color:#a9864d}.materials-home .materials-home-card:focus-visible{outline:2px solid #a9864d;outline-offset:3px}}
@media(max-width:1024px){#materials-home,#materials-home.materials-ready{display:none!important}.materials-article .topic-reading-layout{display:block!important;max-width:100%}.materials-article .topic-reading-content{width:100%!important;min-width:0}.materials-article .ae-photo{float:none!important;clear:both!important;box-sizing:border-box;width:100%!important;max-width:100%!important;height:auto!important;margin:18px 0!important;padding:4px;border:1px solid #d8bd98;border-radius:4px;background:#fffaf2}.materials-article .ae-photo img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain!important;margin:0!important}.materials-article .topic-links{width:100%!important;max-width:100%!important;margin-top:24px}.materials-article :is(p,li,a,h2,h3){overflow-wrap:break-word}.materials-article :is(ul,ol){padding-left:24px}}

/* Desktop homepage materials: match the adjacent advice cards only. */
@media(min-width:1025px){
body.itemid-101 #home-transfer #materials-home{padding:0!important;margin:0 0 18px!important;background:transparent!important}
body.itemid-101 #home-transfer #materials-home>.ah-eyebrow{font:700 10px/1.4 Arial,sans-serif!important;letter-spacing:1.5px!important;text-transform:uppercase;color:#8a602f!important;margin:0 0 7px 16px!important;text-shadow:none!important}
body.itemid-101 #home-transfer #materials-home>.ah-wrap{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:0 14px 14px!important;border:1px solid #bb9665;border-top:2px solid #b49260;border-radius:8px;overflow:hidden;background:radial-gradient(at 15% 0,#fff7e7,transparent 70%),linear-gradient(130deg,#f3e6cf,#ddc39f);box-shadow:inset 0 1px #ffffff99,0 12px 20px -16px #49302085}
body.itemid-101 #home-transfer #materials-home .ah-sectionhead{background:linear-gradient(130deg,#6d4a30,#493020 72%);border-bottom:1px solid #bb9665;box-shadow:inset 0 1px #f3d7ac55,0 4px 8px #4930201c;margin:0 -14px 14px!important;padding:8px 16px!important;gap:8px!important}
body.itemid-101 #home-transfer #materials-home .ah-sectionhead>div{width:100%!important;max-width:none!important}
body.itemid-101 #home-transfer #materials-home h2{font:400 23px/1.2 Georgia,serif!important;color:#f5dfb9!important;text-shadow:0 2px 2px #24160b!important;margin:0!important;max-width:none!important}
body.itemid-101 #home-transfer #materials-home .materials-home-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
body.itemid-101 #home-transfer #materials-home .materials-home-card{box-sizing:border-box;min-width:0;display:flex;flex-direction:column;border:1px solid #b58a53;border-radius:6px;background:linear-gradient(135deg,#fff7e7,#eedbbb);box-shadow:inset 0 1px #ffffff99,0 7px 10px -7px #4930209c;overflow:hidden;padding:0;margin:0;text-decoration:none}
body.itemid-101 #home-transfer #materials-home .materials-home-card img{box-sizing:border-box;display:block;width:100%;height:150px;aspect-ratio:auto;object-fit:cover;margin:0;border:3px solid #c4a171;border-bottom:1px solid #b58a53;border-radius:5px 5px 0 0;box-shadow:none}
body.itemid-101 #home-transfer #materials-home .materials-home-card h3{font:600 15px/1.3 Georgia,serif!important;color:#493020!important;text-shadow:none!important;margin:10px 12px 5px!important;min-height:39px}
body.itemid-101 #home-transfer #materials-home .materials-home-card p{font:400 13px/1.5 Arial,sans-serif!important;color:#71583e!important;margin:0 12px 10px!important;min-height:39px}
body.itemid-101 #home-transfer #materials-home .materials-home-card span{display:block;border-top:1px solid #c8aa7d;margin:auto 12px 11px!important;padding:8px 0 0!important;color:#79502d!important;font:600 12px/1.4 Georgia,serif!important}
body.itemid-101 #home-transfer #materials-home .materials-home-card:hover span{color:#493020!important;text-decoration:underline}
body.itemid-101 #home-transfer #materials-home .materials-home-card:focus-visible{outline:2px solid #89603d;outline-offset:-2px}
}
