<?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_a6a69012-d1d2-4dfa-8b32-dab3bbc08544">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_b50116c2-9ce2-414c-ad9e-19de6df9fc65">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_d51f0dab-a20b-4a3d-bf9b-a10f85d9c828">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_460c34c8-e119-4ab3-8d6f-96baf4c7d897">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_de33a2a7-d01a-4df0-b2ee-95ac02cb418e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_415eacf4-c162-4ec4-89a0-8a9da63d71a4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_c9dd4bec-997b-4278-9978-b2f697b32950">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_039e776a-246c-4f43-a029-c5b168fab83f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_fd0713db-ee00-4c8b-8342-74ea9a2b58bd">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_836801f6-0c57-4233-bdb6-8319da7d0acf">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      id="F_5a8145a7-eaef-43bc-ba60-8bb07341a4cb">&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;845,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_a6a69012-d1d2-4dfa-8b32-dab3bbc08544"
      decimals="-3"
      id="F_72c27c92-9990-4e08-ae15-e8f7e81b5a06"
      unitRef="U_USD">845000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
