<?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_6cf7c192-cc7f-442f-ad53-cdb0784b438e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_14b2e1ad-769d-44d1-8f6c-6c7de7bd0e9f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_84134773-1c9c-4808-95e8-cc9c93ec01c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_983fcf11-4e57-4a4e-9686-0d2d32085e17">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_2d9f396d-ac14-4dfe-bd62-8fd6f97f9269">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_701f203c-0b42-484e-b963-8d949d476222">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_9ce71ee6-4c1a-47a1-a194-c9a696dd752c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_123bb508-31bb-4791-a76d-b35b0e77a7e7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_e3e89f44-9025-4262-83eb-5f2a04114295">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_20a3cb90-2f4c-4579-83db-6a4ec123ae9b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      id="F_a63cedab-3e19-4a83-aec9-e55d161be3f2">&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,982,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_6cf7c192-cc7f-442f-ad53-cdb0784b438e"
      decimals="0"
      id="F_94f8bb19-5b6c-4a7e-9d2a-3bb39a00a278"
      unitRef="U_USD">1982000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
