<?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_6b0c27f8-d07e-444d-9145-22c491b6fc90">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_b51da465-19b6-47dc-aa0f-8914e388950c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_a3c04248-e76d-4809-8a30-927751a150e0">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_26b081d9-3d75-4f90-a21d-5f5973c71a23">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_5df26855-45bf-413a-a989-fd92db50a2d8">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_1b580359-17f5-4ea1-9c8e-84d5f64336cf">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_3282327a-b5ba-47a4-9596-2d297358e20f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_0240b99a-77c0-4f6f-90c4-fac136d35cf0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_f8d899b5-94d5-41ad-bc53-a328712d033d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_d52b333a-655c-4d12-9d6e-34d6f7afc17d">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      id="F_c8ccbb0d-107d-4964-a68f-597b1dc3f733">&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;10,059,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_6b0c27f8-d07e-444d-9145-22c491b6fc90"
      decimals="-3"
      id="F_34ee2021-7bc4-47d0-b705-a1d9e8210ed9"
      unitRef="U_USD">10059000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
