<?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_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_b713d5c1-3f2d-4daf-8d05-6caaa865b350">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_ecc40b8e-7ddc-478d-b3d3-1770ffe85bd3">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_f0884e17-0b4b-4c5b-bc16-259aa433fe99">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_e86f1aa1-95de-4ea3-bb21-f227091b679a">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_75150fcf-7b29-4d28-8432-898849428ace">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_f035c2e8-2aa6-467c-81ba-66515c7b2575">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_4219b23c-59ce-4aa4-8e8a-93069db6eeda">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_23035fac-aab8-4f99-95ac-04f40aaede98">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_91ab5e33-8af2-4ffe-80c8-b69aafbad42a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      id="F_60c1d3ec-edd4-4a22-b8dc-5227da5ef8b4">&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;20,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_53de9a33-be0a-4f05-a6b7-1f1d3bcfa6c3"
      decimals="-3"
      id="F_8895bcb0-1442-4e61-9d6a-ea2818db3315"
      unitRef="U_USD">20000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
