<?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_fd6fb2f5-d4ab-40e6-b709-70471e1acf93">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_2e4255ec-ab66-47c0-92f3-6e5c1766cf2b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_042cc318-5b95-478c-91eb-2832cde3e660">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_69d4a1e6-0628-439a-aff6-8eba8fcbc45b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_a8f2f35f-dc4c-4bac-8061-c2c53744b314">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_8e68ef01-494f-4959-9981-7da1369e7d4f">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_20169a68-8afe-4fd7-84fc-2629d80cfc06">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_127ff71e-a762-420c-8413-a786824b1cf1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_b5093cc0-b2c1-4037-b179-30bcbdbaeea5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_85075a8d-37be-4c3d-8bdf-41d878894ff6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      id="F_81164210-865d-4b8b-92c0-25d098bcb879">&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,672,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_fd6fb2f5-d4ab-40e6-b709-70471e1acf93"
      decimals="-3"
      id="F_a4b557b6-eea5-4512-8826-5deaefebac06"
      unitRef="U_USD">1672000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
