<?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_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_68a63fef-5b1d-42d7-b286-64d20055feeb">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_3c792189-4628-407c-bfbd-22f83436502e">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_3d3a580e-74ed-4b10-9016-1a7217b5ef7e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_e53834b6-8621-44a4-9d79-db14a774b35c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_f57fdb84-f09e-480c-a46b-9ccdb077ce90">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_79a0af2b-b63d-4617-a619-0a76e0ba71ee">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_1bcb9dcc-eec0-467c-b92b-09b462c6089e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_ed87566d-3c85-4e8b-ade1-c7652d2be37c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_c238bed5-e354-4312-b84f-664dd46b4f50">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      id="F_32365787-326f-4ad9-ac99-3d25ace2ae37">&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;5,263,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_3a0f2110-9d7e-4aac-8d6f-d1c8ec522900"
      decimals="-3"
      id="F_5f27fa45-20be-4c44-8f42-8ee0d951097c"
      unitRef="U_USD">5263000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
