<?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_71f85ba1-682e-4ae7-ab85-cfc80b912e1c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_4f45abbc-7c3a-4a2b-9c03-85914c36f5c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_cbb8ef60-d9f5-488f-b642-efc8c7fa1aea">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_986e3498-1699-4ab8-82a9-eb8cfe2762ab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_336325e9-7c27-457b-8880-3c42fae69c82">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_cf67e60d-af95-4d28-b8d2-c2e2b7f41aa2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_ff979895-a9d4-4632-b16e-518ed9260a69">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_ec7792d4-5b07-4ca1-a3a2-09b7dfca9aa5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_1ad64be0-c2ff-4f2b-9671-4b27c41c98d3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_a624c371-800e-4a32-8570-1c3ee9592a43">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      id="F_137a9509-ea7a-46b9-83f1-d2e8c00c369e">&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;9,001,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_71f85ba1-682e-4ae7-ab85-cfc80b912e1c"
      decimals="-3"
      id="F_12f95555-2b6e-4af6-b4d4-4b1992a26163"
      unitRef="U_USD">9001000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
