<?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_b5c33667-079d-44c2-9762-a5a8f37043a2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_c16dc4bf-65b8-4d34-ad30-ce72559a7301">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_4327dba2-d3d4-4eab-a32b-87ceb265726e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_99632978-b93e-4c7a-b43e-a3a0a6c8c706">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_55ec0f80-7bbb-4ee5-94e4-313d27363b36">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_b7d0f31c-ea95-4bbe-8104-6b41775f45ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_2bd5f761-f25c-4244-b085-dd34e60b5406">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_fbb8a6f8-77ca-4b0f-a731-5a5baa8c21c9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_f17a4811-1a0c-49d7-9b98-45b6465011c8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_e351daff-d608-4e78-9787-051f8e4a756a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b5c33667-079d-44c2-9762-a5a8f37043a2"
      id="F_7a0fea85-85dd-40b9-89d4-a121104caf0a">&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,250,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_b5c33667-079d-44c2-9762-a5a8f37043a2"
      decimals="0"
      id="F_8999ecd0-e2c2-4758-9153-95b82a18df49"
      unitRef="U_USD">1250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
