<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_01757349-d7ba-4b83-9d64-74f923f85c87">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_05625d0f-723c-4cee-89c7-5694478ca407">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_c23e9a2e-f070-4d31-9b2d-d1f2b30a7edf">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_0228995f-99fe-4672-915b-d979a394d964">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_d1b202e3-c950-4366-ac13-10e38285cbb3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_dcf1bc49-6558-4b00-ab7e-b41ffa88476e">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_8d4443b2-e265-486b-9604-05ec977a4e18">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_d74c0142-016c-4fa4-b667-dce291117e1d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_3d1ddd5a-78cc-4711-ba9e-71c503cf5609">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_9b5f4883-1dac-436d-954d-262d6d7e0f2b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_01757349-d7ba-4b83-9d64-74f923f85c87"
      id="F_bc8e55ec-c3d3-44eb-9e02-762de3a98758">&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;4,620,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_01757349-d7ba-4b83-9d64-74f923f85c87"
      decimals="0"
      id="F_774328c6-b0f8-45f3-be30-1521288cfb8d"
      unitRef="U_USD">4620000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
