<?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_76f84fa5-9833-4ed4-b277-9d20a0f83d37">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-17</startDate>
            <endDate>2026-06-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_9fed6d8e-10e4-43b7-b160-c0ef92de0589">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_c9b58977-59e9-4120-8be7-f103ac72e67f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_cd17f707-23ef-48ec-a7ce-e4b8d78d15f1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_58561138-7678-482a-b9ac-7817d4028c67">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_b89e422a-8aea-4189-befd-28edd335f27d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_61aa448f-050c-4467-8015-d946a4bdda06">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_96380d95-daa6-43fa-9a9d-6ce570b0f4db">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_a7bf2362-b615-44bc-b599-e9d8b5142bc9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_18a933fe-3046-4415-b846-1849d33694b8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      id="F_7740aa5c-42a9-4d32-80b8-ee99666bc03c">&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;795,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_76f84fa5-9833-4ed4-b277-9d20a0f83d37"
      decimals="-3"
      id="F_ea0cda26-d033-4264-8ac8-6d1459f0c839"
      unitRef="U_USD">795000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
