<?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_a1a88ee3-4475-4de5-9936-3e1a0f6558db">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_2a770916-ee0f-42c7-aa2c-e7f91e2387ad">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_e3fac8e1-3a4e-4527-b5f6-58e73d9c19c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_9e7d9992-24de-4211-a29c-3e90b05bbc22">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_09e83216-1299-4958-98dc-843804180348">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_80ddf7b4-a2ee-446a-ba6b-033ee0833313">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_d20ac63c-7e8d-4b0e-a654-6eea9a655cd0">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_30c579ec-9565-475c-90b7-54d5c1b7b879">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_8b32c83a-e60f-4b26-aa0a-bd358f707287">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_386473a1-76b0-43d6-adbe-9a8ea8e47faf">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      id="F_e7cd589c-d650-4322-9896-ad3b306fa47d">&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,236,400&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_a1a88ee3-4475-4de5-9936-3e1a0f6558db"
      decimals="0"
      id="F_8d2cc3aa-0ca0-4775-bb6d-288ffdf7a0aa"
      unitRef="U_USD">5236400</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
