<?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_0247601f-8532-4f48-b694-976245fec6d1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_ca668ae9-ea1c-45b0-8e5e-82240c2e364b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_f4f7ee98-3882-47db-b7ce-ad28f946a4e3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_f33882d5-52be-4114-b8f3-de968b9f3888">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_dacce5ec-3972-45a2-9468-f97c713da79b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_4446f416-c957-4bec-827e-fe934388acb1">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_7cd5f01d-b01e-4000-b1e1-337b7fff680b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_75146571-e2fe-4b24-96ec-0498071f459d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_e73182ef-571b-4d9c-82f8-c983b638ee14">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_c47b2bde-6c59-41a5-8dc5-ea5e378a85c2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0247601f-8532-4f48-b694-976245fec6d1"
      id="F_7202ce6d-b1c7-4149-b131-265a9adc7161">&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;111,125,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_0247601f-8532-4f48-b694-976245fec6d1"
      decimals="-3"
      id="F_035fd6f1-2cf4-4459-a0f3-92513506ad84"
      unitRef="U_USD">111125000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
