<?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_be92cd8f-1062-415e-8597-5531bef93b40">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-21</startDate>
            <endDate>2025-11-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_a5fc3624-f18f-4ff8-b33b-950d59debeb3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_8bb08b2b-a674-4b11-8289-f5d61783b8ba">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_4503cb78-08c3-4f17-9641-4c6b8dc18acc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_c4d674d6-a9f7-4c3f-a7d0-217e833b06c7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_47c29205-7d55-4b7d-892f-d5778ac1e465">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_f760aeb8-0e45-438f-bc5e-d4b26bbb4d5a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_f7d7d5d5-21b9-41be-866e-4c3223bff688">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_fe7ffcc8-b807-4eef-bf7b-777dadd17a10">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_394796ff-bf5b-4ca6-b24b-ad32fe437eaf">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_be92cd8f-1062-415e-8597-5531bef93b40"
      id="F_e5c69f51-67fe-43e8-a02e-2144a1f4ba82">&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,339,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_be92cd8f-1062-415e-8597-5531bef93b40"
      decimals="0"
      id="F_5f73003c-790e-43d4-9989-3b9a657b55d0"
      unitRef="U_USD">10339000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
