<?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_e178edea-336e-4dfe-b323-773ff6bcf68c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-29</startDate>
            <endDate>2026-04-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_70dcf3f0-c562-47ce-bcc9-0220aa16c13d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_4c5a5d25-eed9-4c60-a784-3e1b3cea2e10">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_4aed96fb-cff3-4b65-998f-c8dae046f2a0">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_982b6e48-2de8-4a3c-836d-020dd504eb37">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_854bf190-b96f-4b31-b93a-094792d8938a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_ceb876b7-f6f2-4f3c-b6a7-4e98bd1121fd">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_1206d282-e61f-43d9-b8f9-448cc74511e2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_b59c70fd-328f-4ae6-a358-a5f05941744a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_27c7c06b-41e3-47a9-bf12-58879215be6e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e178edea-336e-4dfe-b323-773ff6bcf68c"
      id="F_3b7f6de0-ac93-4f56-b912-ab14e24e7c7a">&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;3,164,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_e178edea-336e-4dfe-b323-773ff6bcf68c"
      decimals="0"
      id="F_618ad2d7-5785-4d83-a368-f472ea2cac60"
      unitRef="U_USD">3164000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
