<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_ef198234-37d5-44c8-a763-093629f43f9f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_bcce0e94-ee59-46bf-9acf-3c94aa29be97">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_06abe805-4f9b-4e79-9314-95b7eb33c380">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_ce391105-fae5-4cd1-a336-f959d5052e57">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_a8be74ff-fe93-4bfe-9714-f61b9e6d7288">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_ee005cff-da56-4676-b89b-a664870f100a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_5a1d864f-49b8-4bf2-8bfe-f3df15f18033">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_2ba4d427-1f24-4526-b6e3-5938f81b2853">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_13985dee-1adf-4a77-8322-5721e7c8c994">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_dda0dcef-81cd-447b-974c-4a043d4c68d9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      id="F_2c6feb4f-b2b0-46e2-ba11-a301153ca7ce">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_ef198234-37d5-44c8-a763-093629f43f9f"
      decimals="0"
      id="F_6928d2b4-8ee9-445a-a6cb-d7fddd4d1657"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
