<?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_68031920-4cb3-46d6-869a-273d354e07ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_9667f584-a9e6-405d-91f4-73947fca4147">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_d5087d59-8e6e-4c4e-b480-ecdeb37a3d52">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_a3f1a1cf-9b55-4054-b0a1-78da4384bf5b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_3997b11b-4522-4690-839a-0ef0f1843144">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_9575216b-6d0f-40df-a2a8-c054d7226254">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_10ebc83f-f3df-4518-8579-eb1509d91fa6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_45f58d96-0bcb-4b43-a3e7-7978b9b045d4">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_9db1bb3b-d56d-4e0c-9296-24fbf7ed46ea">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_a3fc7d62-8760-4e8c-b0d3-1f57ffc523f6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_68031920-4cb3-46d6-869a-273d354e07ad"
      id="F_c9a74d86-a417-40eb-8f29-0c123407768b">&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;500,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_68031920-4cb3-46d6-869a-273d354e07ad"
      decimals="-3"
      id="F_d9feba06-27bd-41c0-9a4d-4f5c5b9fa67f"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
