<?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_3def3739-3fbd-42e5-83d0-80afc22271a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_d595daa4-737f-4f3b-82b7-2d0a88e28eb9">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_f1b5a256-81d6-4372-8a42-838280f057a7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_7e28a1dd-fd5b-4bb3-8647-3d7d53bfb2de">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_7d99dc0d-bdbd-45f9-9728-863af816c62f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_4b2c8f95-5fa4-46dc-927b-6d5b7377c7c2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_20bbf8b6-8d0e-42ac-a09e-c6b322e5a269">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_16bbcc94-26f4-47e4-8ae2-97bf14ac4d78">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_0251088c-14be-4766-a6ba-c1fa6834b21c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_0410558c-008e-47bd-9bac-1dcfde24f79e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3def3739-3fbd-42e5-83d0-80afc22271a8"
      id="F_cc80c5c3-35a1-4c15-90ec-33c00c636502">&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;325,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_3def3739-3fbd-42e5-83d0-80afc22271a8"
      decimals="-3"
      id="F_ef5d02e5-a246-458b-aa42-ca27e8c17b08"
      unitRef="U_USD">325000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
