<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-23</startDate>
            <endDate>2026-07-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_2a2f081c-5f78-495d-8ce3-c4334e96d6bf">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_26bf26e7-30c6-4e4d-b178-15bbd904f12c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_f42a0fd9-447f-4982-b076-829985b13dab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_144a972b-5a27-471a-8b32-ff3c9bcbe5b6">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_818e58fb-0095-4d69-9697-9e3ed778fa81">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_08e4136b-a4b6-4445-8d6b-b5bf01f1f08b">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_f92f29f0-fed8-40ba-920b-7568465f470e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_dfa06189-1e5b-4ed1-8abb-7dfcb4a783db">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_48087be1-6bc8-491e-872b-03bd2919d2db">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      id="F_00dde7f9-4043-4fc4-bf90-1d343eb659a7">&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;7,293,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_952cb4d6-8c68-4d65-8e6d-1f8ca6947d4f"
      decimals="-3"
      id="F_6a326b96-7127-4583-ba13-f3dda37c305d"
      unitRef="U_USD">7293000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
